Class GroovyTranslator
Converts bytecode to a Groovy string of Gremlin.
Inheritance
System.Object
GroovyTranslator
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Gremlin.Net.Process.Traversal.Translator
Assembly: cs.temp.dll.dll
Syntax
public class GroovyTranslator
Properties
TargetLanguage
Get the language that the translator is converting the traversal byte code to.
Declaration
public string TargetLanguage { get; }
Property Value
Type | Description |
---|---|
System.String |
TraversalSource
Gets the TraversalSource representation rooting this translator. This is typically a "g".
Declaration
public string TraversalSource { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Of(String)
Creates the translator.
Declaration
public static GroovyTranslator Of(string traversalSource)
Parameters
Type | Name | Description |
---|---|---|
System.String | traversalSource | The traversal source for the traversal to be translated. |
Returns
Type | Description |
---|---|
GroovyTranslator | The created translator instance. |
Translate(Bytecode, Boolean)
Translate Bytecode into gremlin-groovy.
Declaration
public string Translate(Bytecode bytecode, bool isChildTraversal = false)
Parameters
Type | Name | Description |
---|---|---|
Bytecode | bytecode | The bytecode representing traversal source and traversal manipulations. |
System.Boolean | isChildTraversal | Whether this is an anonymous traversal (started via '__'). |
Returns
Type | Description |
---|---|
System.String | The translated gremlin-groovy traversal. |
Translate(ITraversal, Boolean)
Translate ITraversal into gremlin-groovy.
Declaration
public string Translate(ITraversal traversal, bool isChildTraversal = false)
Parameters
Type | Name | Description |
---|---|---|
ITraversal | traversal | The traversal to translate. |
System.Boolean | isChildTraversal | Whether this is an anonymous traversal (started via '__'). |
Returns
Type | Description |
---|---|
System.String | The translated gremlin-groovy traversal. |