Enum Class Translator

java.lang.Object
java.lang.Enum<Translator>
org.apache.tinkerpop.gremlin.language.translator.Translator
All Implemented Interfaces:
Serializable, Comparable<Translator>, Constable

public enum Translator extends Enum<Translator>
Built in translator implementations to be provided
  • Enum Constant Details

    • LANGUAGE

      @Deprecated public static final Translator LANGUAGE
      Deprecated.
      As of release 3.8.1, replaced by CANONICAL.
      Translates to gremlin-language.
    • CANONICAL

      public static final Translator CANONICAL
      Translates to gremlin-language, the canonical form of Gremlin.
    • ANONYMIZED

      public static final Translator ANONYMIZED
      Translates to gremlin-language with anonymized arguments.
    • DOTNET

      public static final Translator DOTNET
      Translates to gremlin-dotnet. Note that variable arguments are translated to bare literals. To instead preserve variables as strongly-typed GValue<T> instances in the translated output, construct a DotNetTranslateVisitor(String, boolean) with parameterize set to true and translate via GremlinTranslator.translate(String, TranslateVisitor).
    • 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 Details

    • values

      public static Translator[] 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

      public static Translator valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getName

      public String getName()
    • getTranslateVisitor

      public TranslateVisitor getTranslateVisitor(String graphTraversalSourceName)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Translator>