@Deprecated public class PythonTranslator extends Object implements Translator.ScriptTranslator
Translator.ScriptTranslator.TypeTranslatorTranslator.ScriptTranslator, Translator.StepTranslator<S extends TraversalSource,T extends Traversal.Admin<?,?>>| Modifier and Type | Method and Description |
|---|---|
protected String |
convertLambdaToString(Lambda lambda)
Deprecated.
|
protected String |
convertToString(Object object)
Deprecated.
|
String |
getTargetLanguage()
Deprecated.
Get the language that the translator is converting the traversal byte code to.
|
String |
getTraversalSource()
Deprecated.
Get the
TraversalSource representation rooting this translator. |
static PythonTranslator |
of(String traversalSource)
Deprecated.
|
static PythonTranslator |
of(String traversalSource,
boolean importStatics)
Deprecated.
|
protected String |
resolveSymbol(String methodName)
Deprecated.
|
protected String |
resolveTraversalStrategyProxy(TraversalStrategyProxy proxy)
Deprecated.
|
String |
toString()
Deprecated.
|
String |
translate(Bytecode bytecode)
Deprecated.
Translate
Bytecode into a new representation. |
public static PythonTranslator of(String traversalSource, boolean importStatics)
public static PythonTranslator of(String traversalSource)
public String 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<String,String>public String translate(Bytecode bytecode)
TranslatorBytecode into a new representation.
Typically, for language translations, the translation is to a string represenging the traversal in the respective scripting language.translate in interface Translator<String,String>bytecode - the byte code representing traversal source and traversal manipulations.public String getTargetLanguage()
TranslatorgetTargetLanguage in interface Translator<String,String>protected String resolveTraversalStrategyProxy(TraversalStrategyProxy proxy)
Copyright © 2013–2020 Apache Software Foundation. All rights reserved.