Class NumericLiteralStateObject

  • All Implemented Interfaces:
    StateObject

    public class NumericLiteralStateObject
    extends SimpleStateObject
    Exact numeric literals support the use of Java integer literal syntax as well as SQL exact numeric literal syntax. Approximate literals support the use of Java floating point literal syntax as well as SQL approximate numeric literal syntax.

    Appropriate suffixes may be used to indicate the specific type of a numeric literal in accordance with the Java Language Specification.

    Version:
    2.4
    See Also:
    NumericLiteral
    Author:
    Pascal Filion
    Since:
    2.4
    • Constructor Detail

      • NumericLiteralStateObject

        public NumericLiteralStateObject​(StateObject parent)
        Creates a new NumericLiteralStateObject.
        Parameters:
        parent - The parent of this state object, which cannot be null
        Throws:
        java.lang.NullPointerException - The given parent cannot be null
      • NumericLiteralStateObject

        public NumericLiteralStateObject​(StateObject parent,
                                         java.lang.Number numeric)
        Creates a new NumericLiteralStateObject.
        Parameters:
        parent - The parent of this state object, which cannot be null
        numeric - The actual number
        Throws:
        java.lang.NullPointerException - The given parent cannot be null
      • NumericLiteralStateObject

        public NumericLiteralStateObject​(StateObject parent,
                                         java.lang.String numeric)
        Creates a new NumericLiteralStateObject.
        Parameters:
        parent - The parent of this state object, which cannot be null
        numeric - The string representation of the numeric literal
        Throws:
        java.lang.NullPointerException - The given parent cannot be null