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

public abstract Class MathDoubleExpression

extends AbstractDoubleEncapsulatedExpression
Class Inheritance
Known Direct Subclasses
org.eclipse.persistence.jpa.jpql.parser.MathDoubleExpression.Power, org.eclipse.persistence.jpa.jpql.parser.MathDoubleExpression.Round

Math double argument functions expressions.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
MathDoubleExpression.Power

The POWER function takes two numeric arguments and returns a double.

public static class
MathDoubleExpression.Round

The ROUND function takes numeric argument and an integer argument and returns a number of the same type as the first argument.

Constructor Summary

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

Creates a new instance of math double argument function expression.

Method Summary

Modifier and TypeMethod and Description
public JPQLQueryBNF
Inherited from org.eclipse.persistence.jpa.jpql.parser.AbstractDoubleEncapsulatedExpression:
acceptChildrenaddChildrenToaddOrderedEncapsulatedExpressionTobuildCollectionExpressionfindQueryBNFgetFirstExpressiongetSecondExpressionhasCommahasEncapsulatedExpressionhasFirstExpressionhasSecondExpressionhasSpaceAfterCommaisParsingCompleteisSecondExpressionOptionalparameterExpressionBNFparseEncapsulatedExpressionremoveEncapsulatedExpressiontoParsedTextEncapsulatedExpression

Constructor Detail

MathDoubleExpressionback to summary
protected MathDoubleExpression(AbstractExpression parent, String identifier)

Creates a new instance of math double argument function expression.

Parameters
parent:AbstractExpression

The parent of this expression

identifier:String

The JPQL identifier that starts this expression

Method Detail

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 MathDoubleExpression.Power

extends MathDoubleExpression
Class Inheritance

The POWER function takes two numeric arguments and returns a double.
Jakarta Persistence 3.1:
BNF: expression ::= POWER(arithmetic_expression)

Constructor Summary

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

Creates a new instance of POWER 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.
public String
parameterExpressionBNF(int
The position of the encapsulated Expression that needs to be parsed within the parenthesis, which starts at position 0
index
)

Implements abstract org.eclipse.persistence.jpa.jpql.parser.AbstractDoubleEncapsulatedExpression.parameterExpressionBNF.

Returns the BNF to be used to parse one of the encapsulated expression.
Inherited from org.eclipse.persistence.jpa.jpql.parser.MathDoubleExpression:
getQueryBNF

Constructor Detail

Powerback to summary
public Power(AbstractExpression parent)

Creates a new instance of POWER 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
parameterExpressionBNFback to summary
public String parameterExpressionBNF(int index)

Implements abstract org.eclipse.persistence.jpa.jpql.parser.AbstractDoubleEncapsulatedExpression.parameterExpressionBNF.

Doc from org.eclipse.persistence.jpa.jpql.parser.AbstractDoubleEncapsulatedExpression.parameterExpressionBNF.

Returns the BNF to be used to parse one of the encapsulated expression.

Parameters
index:int

The position of the encapsulated Expression that needs to be parsed within the parenthesis, which starts at position 0

Returns:String

The BNF to be used to parse one of the encapsulated expression

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

public final Class MathDoubleExpression.Round

extends MathDoubleExpression
Class Inheritance

The ROUND function takes numeric argument and an integer argument and returns a number of the same type as the first argument.
Jakarta Persistence 3.1:
BNF: expression ::= ROUND(arithmetic_expression)

Constructor Summary

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

Creates a new instance of ROUND 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.
public String
parameterExpressionBNF(int
The position of the encapsulated Expression that needs to be parsed within the parenthesis, which starts at position 0
index
)

Implements abstract org.eclipse.persistence.jpa.jpql.parser.AbstractDoubleEncapsulatedExpression.parameterExpressionBNF.

Returns the BNF to be used to parse one of the encapsulated expression.
Inherited from org.eclipse.persistence.jpa.jpql.parser.MathDoubleExpression:
getQueryBNF

Constructor Detail

Roundback to summary
public Round(AbstractExpression parent)

Creates a new instance of ROUND 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
parameterExpressionBNFback to summary
public String parameterExpressionBNF(int index)

Implements abstract org.eclipse.persistence.jpa.jpql.parser.AbstractDoubleEncapsulatedExpression.parameterExpressionBNF.

Doc from org.eclipse.persistence.jpa.jpql.parser.AbstractDoubleEncapsulatedExpression.parameterExpressionBNF.

Returns the BNF to be used to parse one of the encapsulated expression.

Parameters
index:int

The position of the encapsulated Expression that needs to be parsed within the parenthesis, which starts at position 0

Returns:String

The BNF to be used to parse one of the encapsulated expression

Annotations
@Override