GroovyTranslator
in gremlin-core
.@Deprecated public final class GroovyTranslator extends Object implements Translator.ScriptTranslator
Modifier and Type | Class and Description |
---|---|
static class |
GroovyTranslator.DefaultTypeTranslator
Deprecated.
Performs standard type translation for the TinkerPop types to Groovy.
|
Translator.ScriptTranslator.TypeTranslator
Translator.ScriptTranslator, Translator.StepTranslator<S extends TraversalSource,T extends Traversal.Admin<?,?>>
Modifier and Type | Method and Description |
---|---|
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 GroovyTranslator |
of(String traversalSource)
Deprecated.
|
static GroovyTranslator |
of(String traversalSource,
Translator.ScriptTranslator.TypeTranslator typeTranslator)
Deprecated.
|
String |
toString()
Deprecated.
|
String |
translate(Bytecode bytecode)
Deprecated.
Translate
Bytecode into a new representation. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
translate
public static final GroovyTranslator of(String traversalSource)
public static final GroovyTranslator of(String traversalSource, Translator.ScriptTranslator.TypeTranslator typeTranslator)
public String translate(Bytecode bytecode)
Translator
Bytecode
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()
Translator
getTargetLanguage
in interface Translator<String,String>
public String getTraversalSource()
Translator
TraversalSource
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>
Copyright © 2013–2021 Apache Software Foundation. All rights reserved.