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 SummaryConstructors Constructor Description GremlinTranslator()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static Translationtranslate(String query)Convert a Gremlin string into a Java source code representation of that traversal.static Translationtranslate(String query, String graphTraversalSourceName)Convert 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.
 
- 
- 
- 
Method Detail- 
translatepublic static Translation translate(String query) Convert a Gremlin string into a Java source code representation of that traversal.
 - 
translatepublic static Translation translate(String query, String graphTraversalSourceName) Convert a Gremlin string into a Java source code representation of that traversal.
 - 
translatepublic static Translation translate(String query, String graphTraversalSourceName, Translator translator) Convert a Gremlin string into the specified source code representation of that traversal.
 - 
translatepublic static Translation translate(String query, Translator translator) Convert a Gremlin string into the specified source code representation of that traversal.
 - 
translatepublic static Translation translate(String query, TranslateVisitor visitor) Convert a Gremlin string into a source code representation of that traversal using a custom visitor.
 
- 
 
-