Class GroovyTranslator
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.groovy.jsr223.GroovyTranslator
-
- All Implemented Interfaces:
Translator<String,Script>,Translator.ScriptTranslator
@Deprecated public final class GroovyTranslator extends Object implements Translator.ScriptTranslator
Deprecated.As of release 3.4.9, moved toGroovyTranslatoringremlin-core.Converts bytecode to a Groovy string of Gremlin.- Author:
- Marko A. Rodriguez (http://markorodriguez.com), Stephen Mallette (http://stephen.genoprime.com), Stark Arya (sandszhou.zj@alibaba-inc.com)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGroovyTranslator.DefaultTypeTranslatorDeprecated.Performs standard type translation for the TinkerPop types to Groovy.-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Translator
Translator.ScriptTranslator, Translator.StepTranslator<S extends TraversalSource,T extends Traversal.Admin<?,?>>
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Translator.ScriptTranslator
Translator.ScriptTranslator.AbstractTypeTranslator, Translator.ScriptTranslator.TypeTranslator
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetTargetLanguage()Deprecated.StringgetTraversalSource()Deprecated.static GroovyTranslatorof(String traversalSource)Deprecated.static GroovyTranslatorof(String traversalSource, boolean withParameters)Deprecated.Creates the translator with theGroovyTranslator.DefaultTypeTranslatorpassing thewithParametersoption 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 GroovyTranslatorof(String traversalSource, Translator.ScriptTranslator.TypeTranslator typeTranslator)Deprecated.StringtoString()Deprecated.Scripttranslate(Bytecode bytecode)Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Translator
translate
-
-
-
-
Method Detail
-
of
public static final GroovyTranslator of(String traversalSource)
Deprecated.
-
of
public static final GroovyTranslator of(String traversalSource, boolean withParameters)
Deprecated.Creates the translator with theGroovyTranslator.DefaultTypeTranslatorpassing thewithParametersoption 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.
-
of
public static final GroovyTranslator of(String traversalSource, Translator.ScriptTranslator.TypeTranslator typeTranslator)
Deprecated.
-
translate
public Script translate(Bytecode bytecode)
Deprecated.- Specified by:
translatein interfaceTranslator<String,Script>
-
getTargetLanguage
public String getTargetLanguage()
Deprecated.- Specified by:
getTargetLanguagein interfaceTranslator<String,Script>
-
getTraversalSource
public String getTraversalSource()
Deprecated.- Specified by:
getTraversalSourcein interfaceTranslator<String,Script>
-
-