Enum Translator
- java.lang.Object
-
- java.lang.Enum<Translator>
-
- org.apache.tinkerpop.gremlin.language.translator.Translator
-
- All Implemented Interfaces:
Serializable
,Comparable<Translator>
public enum Translator extends Enum<Translator>
Built in translator implementations to be provided
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANONYMIZED
Translates to gremlin-language with anonymized arguments.DOTNET
Translates to gremlin-dotnet.GO
Translates to gremlin-groovy.GROOVY
Translates to gremlin-groovy.JAVA
Translates to gremlin-java.JAVASCRIPT
Translates to gremlin-javascript.LANGUAGE
Translates to gremlin-language.PYTHON
Translates to gremlin-python.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
TranslateVisitor
getTranslateVisitor(String graphTraversalSourceName)
String
toString()
static Translator
valueOf(String name)
Returns the enum constant of this type with the specified name.static Translator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LANGUAGE
public static final Translator LANGUAGE
Translates to gremlin-language.
-
ANONYMIZED
public static final Translator ANONYMIZED
Translates to gremlin-language with anonymized arguments.
-
DOTNET
public static final Translator DOTNET
Translates to gremlin-dotnet.
-
GO
public static final Translator GO
Translates to gremlin-groovy.
-
GROOVY
public static final Translator GROOVY
Translates to gremlin-groovy.
-
JAVA
public static final Translator JAVA
Translates to gremlin-java.
-
JAVASCRIPT
public static final Translator JAVASCRIPT
Translates to gremlin-javascript.
-
PYTHON
public static final Translator PYTHON
Translates to gremlin-python.
-
-
Method Detail
-
values
public static Translator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Translator c : Translator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Translator valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
public String getName()
-
getTranslateVisitor
public TranslateVisitor getTranslateVisitor(String graphTraversalSourceName)
-
toString
public String toString()
- Overrides:
toString
in classEnum<Translator>
-
-