Class GremlinTranslator
java.lang.Object
org.apache.tinkerpop.gremlin.language.translator.GremlinTranslator
Translates a String representation of a Gremlin traversal into a various source code representation of that traversal
using the ANTLR grammar.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TranslationConvert a Gremlin string into a Java source code representation of that traversal.static TranslationConvert a Gremlin string into a Java source code representation of that traversal.static Translationtranslate(String query, String graphTraversalSourceName, Translator translator) Convert a Gremlin string into the specified source code representation of that traversal.static Translationtranslate(String query, TranslateVisitor visitor) Convert a Gremlin string into a source code representation of that traversal using a custom visitor.static Translationtranslate(String query, Translator translator) Convert a Gremlin string into the specified source code representation of that traversal.
-
Constructor Details
-
GremlinTranslator
public GremlinTranslator()
-
-
Method Details
-
translate
Convert a Gremlin string into a Java source code representation of that traversal. -
translate
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
Convert a Gremlin string into the specified source code representation of that traversal. -
translate
Convert a Gremlin string into a source code representation of that traversal using a custom visitor.
-