Class: Translator

Translator()

Class to translate glv bytecode steps into executable Gremlin-Groovy script

Constructor

new Translator()

Source:

Methods

convert(anyObject) → {string}

Converts an object to a Gremlin script representation.
Parameters:
Name Type Description
anyObject Object The object to convert to a script representation
Source:
Returns:
The Gremlin script representation
Type
string

translate(bytecodeOrTraversal, child) → {string}

Returns a script representation of the given bytecode instructions.
Parameters:
Name Type Default Description
bytecodeOrTraversal Object The traversal or bytecode of a traversal containing step instructions.
child boolean false Determines if a traversal object should be treated as an anonymous child or if it is a spawn from "g"
Source:
Returns:
Gremlin-Groovy script
Type
string