Interface Literal<T>

Type Parameters:
T - the JVM type of value held by the literal
All Superinterfaces:
Expression
All Known Implementing Classes:
Literal.LiteralImpl

@Deprecated public interface Literal<T> extends Expression
Deprecated.
This interface will be removed. Use Literal instead.
Represents a constant literal value in the public expression API.
  • Method Details

    • value

      T value()
      Deprecated.
      Returns:
      The literal value.
    • dataType

      Type dataType()
      Deprecated.
      Returns:
      The data type of the literal.
    • children

      default Expression[] children()
      Deprecated.
      Specified by:
      children in interface Expression
      Returns:
      An array of the children of this node. Children should not change.
    • of

      static <T> Literal.LiteralImpl<T> of(T value, Type dataType)
      Deprecated.
      Creates a literal with the given value and data type.
      Type Parameters:
      T - the JVM type of value held by the literal
      Parameters:
      value - the literal value
      dataType - the data type of the literal
      Returns:
      a new Literal instance
    • integer

      static Literal.LiteralImpl<Integer> integer(Integer value)
      Deprecated.
      Creates an integer literal with the given value.
      Parameters:
      value - the integer literal value
      Returns:
      a new Literal instance
    • string

      static Literal.LiteralImpl<String> string(String value)
      Deprecated.
      Creates a string literal with the given value.
      Parameters:
      value - the string literal value
      Returns:
      a new Literal instance