Enum Class Translator
- All Implemented Interfaces:
Serializable,Comparable<Translator>,Constable
Built in translator implementations to be provided
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTranslates to gremlin-language with anonymized arguments.Translates to gremlin-language, the canonical form of Gremlin.Translates to gremlin-dotnet.Translates to gremlin-groovy.Translates to gremlin-groovy.Translates to gremlin-java.Translates to gremlin-javascript.Deprecated.Translates to gremlin-python. -
Method Summary
Modifier and TypeMethodDescriptiongetName()getTranslateVisitor(String graphTraversalSourceName) toString()static TranslatorReturns the enum constant of this class with the specified name.static Translator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LANGUAGE
Deprecated.As of release 3.8.1, replaced byCANONICAL.Translates to gremlin-language. -
CANONICAL
Translates to gremlin-language, the canonical form of Gremlin. -
ANONYMIZED
Translates to gremlin-language with anonymized arguments. -
DOTNET
Translates to gremlin-dotnet. Note that variable arguments are translated to bare literals. To instead preserve variables as strongly-typedGValue<T>instances in the translated output, construct aDotNetTranslateVisitor(String, boolean)withparameterizeset totrueand translate viaGremlinTranslator.translate(String, TranslateVisitor). -
GO
Translates to gremlin-groovy. -
GROOVY
Translates to gremlin-groovy. -
JAVA
Translates to gremlin-java. -
JAVASCRIPT
Translates to gremlin-javascript. -
PYTHON
Translates to gremlin-python.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getName
-
getTranslateVisitor
-
toString
- Overrides:
toStringin classEnum<Translator>
-
CANONICAL.