All Superinterfaces:
Expression, VisitableExpression

public interface Literal extends Expression
Represents a literal expression node in the expression tree Literal is not validated by default
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Numeric literals without an dot and without an e return the smallest possible Edm Integer type.

    Methods inherited from interface org.apache.olingo.server.api.uri.queryoption.expression.VisitableExpression

    accept
  • Method Details

    • getText

      String getText()
      Returns:
      Literal
    • getType

      EdmType getType()
      Numeric literals without an dot and without an e return the smallest possible Edm Integer type. Numeric literals without an dot, without an e and larger than 2^63 - 1 are considered as Edm.Decimal Numeric literals with an e, are considered to be Edm.Double Numeric literals with an dot and without an e, are supposed to be Edm.Decimal
      Returns:
      Type of the literal if detected. The type of the literal is guessed by the parser.