Interface CqnNumericLiteral<N extends Number>

All Superinterfaces:
CqnLiteral<N>, CqnToken, CqnValue, JSONizable

public interface CqnNumericLiteral<N extends Number> extends CqnLiteral<N>
  • Method Details

    • value

      N value()
      Description copied from interface: CqnLiteral
      Returns the literal value.
      Specified by:
      value in interface CqnLiteral<N extends Number>
      Returns:
      the literal value
    • accept

      default void accept(CqnVisitor visitor)
      Description copied from interface: CqnToken
      Traverses the expression tree represented by this token with a given visitor. The traversal order is depth-first. If this token has child nodes they are traversed first by dispatching the visitor to the children's accept methods. Afterwards this token is passed to the visitor's visit method specific for this token's type.
      Specified by:
      accept in interface CqnToken
      Parameters:
      visitor - the CqnVisitor
    • isNumeric

      default boolean isNumeric()
      Description copied from interface: CqnLiteral
      Returns true if this is a CqnNumericLiteral.
      Specified by:
      isNumeric in interface CqnLiteral<N extends Number>
      Returns:
      true if this is a numeric literal, otherwise false