public final class JavaTranslator<S extends TraversalSource,T extends Traversal.Admin<?,?>> extends Object implements Translator.StepTranslator<S,T>
Translator.ScriptTranslator, Translator.StepTranslator<S extends TraversalSource,T extends Traversal.Admin<?,?>>| Modifier and Type | Method and Description | 
|---|---|
| String | getTargetLanguage()Get the language that the translator is converting the traversal byte code to. | 
| S | getTraversalSource()Get the  TraversalSourcerepresentation rooting this translator. | 
| static <S extends TraversalSource,T extends Traversal.Admin<?,?>> | of(S traversalSource) | 
| String | toString() | 
| T | translate(Bytecode bytecode)Translate  Bytecodeinto a new representation. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittranslatepublic static <S extends TraversalSource,T extends Traversal.Admin<?,?>> JavaTranslator<S,T> of(S traversalSource)
public S getTraversalSource()
TranslatorTraversalSource representation rooting this translator.
 For string-based translators (Translator.ScriptTranslator), this is typically a "g".
 For java-based translators (Translator.StepTranslator), this is typically the TraversalSource instance
 which the Traversal will be built from.getTraversalSource in interface Translator<S extends TraversalSource,T extends Traversal.Admin<?,?>>public T translate(Bytecode bytecode)
TranslatorBytecode into a new representation. Typically, for language translations, the translation is
 to a string representing the traversal in the respective scripting language.translate in interface Translator<S extends TraversalSource,T extends Traversal.Admin<?,?>>bytecode - the bytecode representing traversal source and traversal manipulations.public String getTargetLanguage()
TranslatorgetTargetLanguage in interface Translator<S extends TraversalSource,T extends Traversal.Admin<?,?>>Copyright © 2013–2022 Apache Software Foundation. All rights reserved.