Class JavaTranslator<S extends TraversalSource,T extends Traversal.Admin<?,?>>
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.jsr223.JavaTranslator<S,T>
 
- 
- All Implemented Interfaces:
- Translator<S,T>,- Translator.StepTranslator<S,T>
 
 public final class JavaTranslator<S extends TraversalSource,T extends Traversal.Admin<?,?>> extends Object implements Translator.StepTranslator<S,T> - Author:
- Marko A. Rodriguez (http://markorodriguez.com)
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TranslatorTranslator.ScriptTranslator, Translator.StepTranslator<S extends TraversalSource,T extends Traversal.Admin<?,?>>
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetTargetLanguage()Get the language that the translator is converting the traversal byte code to.SgetTraversalSource()Get theTraversalSourcerepresentation rooting this translator.static <S extends TraversalSource,T extends Traversal.Admin<?,?>>
 JavaTranslator<S,T>of(S traversalSource)StringtoString()Ttranslate(Bytecode bytecode)TranslateBytecodeinto a new representation.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Translatortranslate
 
- 
 
- 
- 
- 
Method Detail- 
ofpublic static <S extends TraversalSource,T extends Traversal.Admin<?,?>> JavaTranslator<S,T> of(S traversalSource) 
 - 
getTraversalSourcepublic S getTraversalSource() Description copied from interface:TranslatorGet theTraversalSourcerepresentation rooting this translator. For string-based translators (Translator.ScriptTranslator), this is typically a "g". For java-based translators (Translator.StepTranslator), this is typically theTraversalSourceinstance which theTraversalwill be built from.- Specified by:
- getTraversalSourcein interface- Translator<S extends TraversalSource,T extends Traversal.Admin<?,?>>
- Returns:
- the traversal source representation
 
 - 
translatepublic T translate(Bytecode bytecode) Description copied from interface:TranslatorTranslateBytecodeinto a new representation. Typically, for language translations, the translation is to a string representing the traversal in the respective scripting language.- Specified by:
- translatein interface- Translator<S extends TraversalSource,T extends Traversal.Admin<?,?>>
- Parameters:
- bytecode- the bytecode representing traversal source and traversal manipulations.
- Returns:
- the translated object
 
 - 
getTargetLanguagepublic String getTargetLanguage() Description copied from interface:TranslatorGet the language that the translator is converting the traversal byte code to.- Specified by:
- getTargetLanguagein interface- Translator<S extends TraversalSource,T extends Traversal.Admin<?,?>>
- Returns:
- the language of the translation
 
 
- 
 
-