Class NumericLiteral

java.lang.Object
org.eclipse.persistence.jpa.jpql.parser.AbstractExpression
org.eclipse.persistence.jpa.jpql.parser.NumericLiteral
All Implemented Interfaces:
Expression

public final class NumericLiteral extends AbstractExpression
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.5
Author:
Pascal Filion
  • Constructor Details

    • NumericLiteral

      public NumericLiteral(AbstractExpression parent)
      Creates a new NumericLiteral.
      Parameters:
      parent - The parent of this expression
    • NumericLiteral

      public NumericLiteral(AbstractExpression parent, String numeric)
      Creates a new NumericLiteral.
      Parameters:
      parent - The parent of this expression
      numeric - The numeric value
  • Method Details