Top Description Inners Constructors Methods
org.eclipse.persistence.jpa.jpql.parser

public abstract Class MathSingleExpression

extends AbstractSingleEncapsulatedExpression
Class Inheritance
Known Direct Subclasses
org.eclipse.persistence.jpa.jpql.parser.MathSingleExpression.Ceiling, org.eclipse.persistence.jpa.jpql.parser.MathSingleExpression.Exp, org.eclipse.persistence.jpa.jpql.parser.MathSingleExpression.Floor, org.eclipse.persistence.jpa.jpql.parser.MathSingleExpression.Ln, org.eclipse.persistence.jpa.jpql.parser.MathSingleExpression.Sign

Math single argument functions expressions.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
MathSingleExpression.Ceiling

The CEILING function takes a numeric argument and return a number (integer, float, or double) of the same type as the argument.

public static class
MathSingleExpression.Exp

The EXP function takes a numeric argument and returns a double.

public static class
MathSingleExpression.Floor

The FLOOR function takes a numeric argument and returns a number (integer, float, or double) of the same type as the argument.

public static class
MathSingleExpression.Ln

The LN function takes a numeric argument and returns a double.

public static class
MathSingleExpression.Sign

The SIGN function takes a numeric argument and returns an integer.

Constructor Summary

AccessConstructor and Description
protected
MathSingleExpression(AbstractExpression
The parent of this expression
parent
,
String
The JPQL identifier that starts this expression
identifier
)

Creates a new instance of math single argument function expression.

Method Summary

Modifier and TypeMethod and Description
public String
public JPQLQueryBNF
Inherited from org.eclipse.persistence.jpa.jpql.parser.AbstractSingleEncapsulatedExpression:
acceptChildrenaddChildrenToaddOrderedEncapsulatedExpressionTofindQueryBNFgetExpressionhasEncapsulatedExpressionhasExpressionparseEncapsulatedExpressionremoveEncapsulatedExpressionsetExpressiontoParsedTextEncapsulatedExpression

Constructor Detail

MathSingleExpressionback to summary
protected MathSingleExpression(AbstractExpression parent, String identifier)

Creates a new instance of math single argument function expression.

Parameters
parent:AbstractExpression

The parent of this expression

identifier:String

The JPQL identifier that starts this expression

Method Detail

getEncapsulatedExpressionQueryBNFIdback to summary
public String getEncapsulatedExpressionQueryBNFId()

Implements abstract org.eclipse.persistence.jpa.jpql.parser.AbstractSingleEncapsulatedExpression.getEncapsulatedExpressionQueryBNFId.

Doc from org.eclipse.persistence.jpa.jpql.parser.AbstractSingleEncapsulatedExpression.getEncapsulatedExpressionQueryBNFId.

Returns the BNF used to parse the encapsulated expression.

Returns:String

The BNF used to parse the encapsulated expression

Annotations
@Override
getQueryBNFback to summary
public JPQLQueryBNF getQueryBNF()

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.getQueryBNF.

Doc from org.eclipse.persistence.jpa.jpql.parser.Expression.getQueryBNF.

Returns the BNF of this Expression.

Returns:JPQLQueryBNF

The JPQLQueryBNF, which represents the grammar of this Expression

Annotations
@Override
org.eclipse.persistence.jpa.jpql.parser back to summary

public final Class MathSingleExpression.Ceiling

extends MathSingleExpression
Class Inheritance

The CEILING function takes a numeric argument and return a number (integer, float, or double) of the same type as the argument.
Jakarta Persistence 3.1:
BNF: expression ::= CEILING(arithmetic_expression)

Constructor Summary

AccessConstructor and Description
public
Ceiling(AbstractExpression
The parent of this expression
parent
)

Creates a new instance of CEILING math function expression.

Method Summary

Modifier and TypeMethod and Description
public void
accept(ExpressionVisitor
The ExpressionVisitor to visit this object
visitor
)

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Visits this Expression by the given visitor.
Inherited from org.eclipse.persistence.jpa.jpql.parser.MathSingleExpression:
getEncapsulatedExpressionQueryBNFIdgetQueryBNF

Constructor Detail

Ceilingback to summary
public Ceiling(AbstractExpression parent)

Creates a new instance of CEILING math function expression.

Parameters
parent:AbstractExpression

The parent of this expression

Method Detail

acceptback to summary
public void accept(ExpressionVisitor visitor)

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Doc from org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Visits this Expression by the given visitor.

Parameters
visitor:ExpressionVisitor

The ExpressionVisitor to visit this object

Annotations
@Override
org.eclipse.persistence.jpa.jpql.parser back to summary

public final Class MathSingleExpression.Exp

extends MathSingleExpression
Class Inheritance

The EXP function takes a numeric argument and returns a double.
Jakarta Persistence 3.1:
BNF: expression ::= EXP(arithmetic_expression)

Constructor Summary

AccessConstructor and Description
public
Exp(AbstractExpression
The parent of this expression
parent
)

Creates a new instance of EXP math function expression.

Method Summary

Modifier and TypeMethod and Description
public void
accept(ExpressionVisitor
The ExpressionVisitor to visit this object
visitor
)

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Visits this Expression by the given visitor.
Inherited from org.eclipse.persistence.jpa.jpql.parser.MathSingleExpression:
getEncapsulatedExpressionQueryBNFIdgetQueryBNF

Constructor Detail

Expback to summary
public Exp(AbstractExpression parent)

Creates a new instance of EXP math function expression.

Parameters
parent:AbstractExpression

The parent of this expression

Method Detail

acceptback to summary
public void accept(ExpressionVisitor visitor)

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Doc from org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Visits this Expression by the given visitor.

Parameters
visitor:ExpressionVisitor

The ExpressionVisitor to visit this object

Annotations
@Override
org.eclipse.persistence.jpa.jpql.parser back to summary

public final Class MathSingleExpression.Floor

extends MathSingleExpression
Class Inheritance

The FLOOR function takes a numeric argument and returns a number (integer, float, or double) of the same type as the argument.
Jakarta Persistence 3.1:
BNF: expression ::= FLOOR(arithmetic_expression)

Constructor Summary

AccessConstructor and Description
public
Floor(AbstractExpression
The parent of this expression
parent
)

Creates a new instance of FLOOR math function expression.

Method Summary

Modifier and TypeMethod and Description
public void
accept(ExpressionVisitor
The ExpressionVisitor to visit this object
visitor
)

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Visits this Expression by the given visitor.
Inherited from org.eclipse.persistence.jpa.jpql.parser.MathSingleExpression:
getEncapsulatedExpressionQueryBNFIdgetQueryBNF

Constructor Detail

Floorback to summary
public Floor(AbstractExpression parent)

Creates a new instance of FLOOR math function expression.

Parameters
parent:AbstractExpression

The parent of this expression

Method Detail

acceptback to summary
public void accept(ExpressionVisitor visitor)

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Doc from org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Visits this Expression by the given visitor.

Parameters
visitor:ExpressionVisitor

The ExpressionVisitor to visit this object

Annotations
@Override
org.eclipse.persistence.jpa.jpql.parser back to summary

public final Class MathSingleExpression.Ln

extends MathSingleExpression
Class Inheritance

The LN function takes a numeric argument and returns a double.
Jakarta Persistence 3.1:
BNF: expression ::= LN(arithmetic_expression)

Constructor Summary

AccessConstructor and Description
public
Ln(AbstractExpression
The parent of this expression
parent
)

Creates a new instance of LN math function expression.

Method Summary

Modifier and TypeMethod and Description
public void
accept(ExpressionVisitor
The ExpressionVisitor to visit this object
visitor
)

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Visits this Expression by the given visitor.
Inherited from org.eclipse.persistence.jpa.jpql.parser.MathSingleExpression:
getEncapsulatedExpressionQueryBNFIdgetQueryBNF

Constructor Detail

Lnback to summary
public Ln(AbstractExpression parent)

Creates a new instance of LN math function expression.

Parameters
parent:AbstractExpression

The parent of this expression

Method Detail

acceptback to summary
public void accept(ExpressionVisitor visitor)

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Doc from org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Visits this Expression by the given visitor.

Parameters
visitor:ExpressionVisitor

The ExpressionVisitor to visit this object

Annotations
@Override
org.eclipse.persistence.jpa.jpql.parser back to summary

public final Class MathSingleExpression.Sign

extends MathSingleExpression
Class Inheritance

The SIGN function takes a numeric argument and returns an integer.
Jakarta Persistence 3.1:
BNF: expression ::= SIGN(arithmetic_expression)

Constructor Summary

AccessConstructor and Description
public
Sign(AbstractExpression
The parent of this expression
parent
)

Creates a new instance of SIGN math function expression.

Method Summary

Modifier and TypeMethod and Description
public void
accept(ExpressionVisitor
The ExpressionVisitor to visit this object
visitor
)

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Visits this Expression by the given visitor.
Inherited from org.eclipse.persistence.jpa.jpql.parser.MathSingleExpression:
getEncapsulatedExpressionQueryBNFIdgetQueryBNF

Constructor Detail

Signback to summary
public Sign(AbstractExpression parent)

Creates a new instance of SIGN math function expression.

Parameters
parent:AbstractExpression

The parent of this expression

Method Detail

acceptback to summary
public void accept(ExpressionVisitor visitor)

Implements org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Doc from org.eclipse.persistence.jpa.jpql.parser.Expression.accept.

Visits this Expression by the given visitor.

Parameters
visitor:ExpressionVisitor

The ExpressionVisitor to visit this object

Annotations
@Override