Enum Class ScriptLanguage

java.lang.Object
java.lang.Enum<ScriptLanguage>
co.elastic.clients.elasticsearch._types.ScriptLanguage
All Implemented Interfaces:
JsonEnum, JsonpSerializable, Serializable, Comparable<ScriptLanguage>, Constable

@JsonpDeserializable public enum ScriptLanguage extends Enum<ScriptLanguage> implements JsonEnum
See Also:
  • Enum Constant Details

    • Painless

      public static final ScriptLanguage Painless
      Painless scripting language, purpose-built for Elasticsearch.
    • Expression

      public static final ScriptLanguage Expression
      Lucene’s expressions language, compiles a JavaScript expression to bytecode.
    • Mustache

      public static final ScriptLanguage Mustache
      Mustache templated, used for templates.
    • Java

      public static final ScriptLanguage Java
      Expert Java API
  • Field Details

  • Method Details

    • values

      public static ScriptLanguage[] 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 ScriptLanguage 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
    • jsonValue

      public String jsonValue()
      Specified by:
      jsonValue in interface JsonEnum