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.AbstractTypeTranslator, Translator.ScriptTranslator.TypeTranslatorTranslator.ScriptTranslator, Translator.StepTranslator<S extends TraversalSource,T extends Traversal.Admin<?,?>>| Modifier and Type | Method and Description |
|---|---|
String |
getTargetLanguage()
Deprecated.
|
String |
getTraversalSource()
Deprecated.
|
static GroovyTranslator |
of(String traversalSource)
Deprecated.
|
static GroovyTranslator |
of(String traversalSource,
boolean withParameters)
Deprecated.
Creates the translator with the
GroovyTranslator.DefaultTypeTranslator passing the withParameters option to it
which will handle type translation in a fashion that should typically increase cache hits and reduce
compilation times if enabled at the sacrifice to rewriting of the script that could reduce readability. |
static GroovyTranslator |
of(String traversalSource,
Translator.ScriptTranslator.TypeTranslator typeTranslator)
Deprecated.
|
String |
toString()
Deprecated.
|
Script |
translate(Bytecode bytecode)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittranslatepublic static final GroovyTranslator of(String traversalSource)
public static final GroovyTranslator of(String traversalSource, boolean withParameters)
GroovyTranslator.DefaultTypeTranslator passing the withParameters option to it
which will handle type translation in a fashion that should typically increase cache hits and reduce
compilation times if enabled at the sacrifice to rewriting of the script that could reduce readability.public static final GroovyTranslator of(String traversalSource, Translator.ScriptTranslator.TypeTranslator typeTranslator)
public Script translate(Bytecode bytecode)
translate in interface Translator<String,Script>public String getTargetLanguage()
getTargetLanguage in interface Translator<String,Script>public String getTraversalSource()
getTraversalSource in interface Translator<String,Script>Copyright © 2013–2022 Apache Software Foundation. All rights reserved.