Class GremlinTranslator
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.language.translator.GremlinTranslator
-
public class GremlinTranslator extends Object
Translates a String representation of a Gremlin traversal into a various source code representation of that traversal using the ANTLR grammar.
-
-
Constructor Summary
Constructors Constructor Description GremlinTranslator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Translation
translate(String query)
Convert a Gremlin string into a Java source code representation of that traversal.static Translation
translate(String query, String graphTraversalSourceName)
Convert a Gremlin string into a Java source code representation of that traversal.static Translation
translate(String query, String graphTraversalSourceName, Translator translator)
Convert a Gremlin string into the specified source code representation of that traversal.static Translation
translate(String query, TranslateVisitor visitor)
Convert a Gremlin string into a source code representation of that traversal using a custom visitor.static Translation
translate(String query, Translator translator)
Convert a Gremlin string into the specified source code representation of that traversal.
-
-
-
Method Detail
-
translate
public static Translation translate(String query)
Convert a Gremlin string into a Java source code representation of that traversal.
-
translate
public static Translation translate(String query, String graphTraversalSourceName)
Convert a Gremlin string into a Java source code representation of that traversal.
-
translate
public static Translation translate(String query, String graphTraversalSourceName, Translator translator)
Convert a Gremlin string into the specified source code representation of that traversal.
-
translate
public static Translation translate(String query, Translator translator)
Convert a Gremlin string into the specified source code representation of that traversal.
-
translate
public static Translation translate(String query, TranslateVisitor visitor)
Convert a Gremlin string into a source code representation of that traversal using a custom visitor.
-
-