Interface NumericLiteral

All Superinterfaces:
Expression, Tree
All Known Implementing Classes:
NumericLiteralImpl

public interface NumericLiteral extends Expression
  • Method Details

    • valueAsLong

      long valueAsLong()
      Returns:
      the value of this literal as a long.
      Throws:
      NumberFormatException - if the literal cannot be parsed as a long.
    • valueAsString

      String valueAsString()
      Returns:
      the token value of this literal.