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

public final Class DivisionExpression

extends ArithmeticExpression
Class Inheritance
Imports
org.eclipse.persistence.jpa.jpql.WordParser

One of the four binary operators. A division is a mathematical operation of dividing one operand (the dividend) by a second operand (the divisor).
BNF: arithmetic_expression ::= arithmetic_expression / arithmetic_term
Author
Pascal Filion
Since
2.3
Version
2.4

Constructor Summary

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

Creates a new DivisionExpression.

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.
protected boolean
isParsingComplete(WordParser
The text to parse based on the current position of the cursor
wordParser
,
String
The word that was retrieved from the given text, which is the first word in the text
word
,
Expression
The Expression that has already been parsed
expression
)

Overrides org.eclipse.persistence.jpa.jpql.parser.ArithmeticExpression.isParsingComplete.

Determines whether the parsing is complete based on what is left in the given text.
Inherited from org.eclipse.persistence.jpa.jpql.parser.ArithmeticExpression:
findQueryBNFgetArithmeticSigngetLeftExpressionQueryBNFIdgetQueryBNFgetRightExpressionQueryBNFIdparseIdentifier

Constructor Detail

DivisionExpressionback to summary
public DivisionExpression(AbstractExpression parent)

Creates a new DivisionExpression.

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
isParsingCompleteback to summary
protected boolean isParsingComplete(WordParser wordParser, String word, Expression expression)

Overrides org.eclipse.persistence.jpa.jpql.parser.ArithmeticExpression.isParsingComplete.

Doc from org.eclipse.persistence.jpa.jpql.parser.AbstractExpression.isParsingComplete.

Determines whether the parsing is complete based on what is left in the given text. The text is never empty.

Parameters
wordParser:WordParser

The text to parse based on the current position of the cursor

word:String

The word that was retrieved from the given text, which is the first word in the text

expression:Expression

The Expression that has already been parsed

Returns:boolean

true if the text no longer can't be parsed by the current expression; false if more can be parsed

Annotations
@Override