ExpressionFactory creates a new expression when the portion of the query to parse
starts with an arithmetic identifier. It is possible the expression to parse is also a NumericLiteral or an ArithmeticFactor.
| Modifier and Type | Class and Description |
|---|---|
| private static class | ArithmeticExpressionFactory.ArithmeticExpressionVisitor
This |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | ID
The unique identifier of this |
| private ArithmeticExpressionFactory. | visitor
This |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private CompoundExpression | Returns: A newCompoundExpressionThe parent of the new parent, char ExpressionThe arithmetic character character)Creates the |
| protected final AbstractExpression | buildExpression(AbstractExpression
The parent parent, WordParser AbstractExpressionThe text to parse based on the current position of the cursor wordParser, String The current word being parsed word, JPQLQueryBNF The BNF grammar that was used to identifier this factory to be capable to
parse a portion of the query queryBNF, AbstractExpression During the parsing, it is possible the first part of an expression was
parsed which needs to be used as a sub-expression of the newly created expression expression, boolean tolerant)Implements abstract org. Expression.
|
| private ArithmeticExpressionFactory. |
| ID | back to summary |
|---|---|
| public static final String ID The unique identifier of this | |
| visitor | back to summary |
|---|---|
| private ArithmeticExpressionFactory. This | |
| ArithmeticExpressionFactory | back to summary |
|---|---|
| public ArithmeticExpressionFactory() Creates a new | |
| buildExpression | back to summary |
|---|---|
| private CompoundExpression buildExpression(AbstractExpression parent, char character) Creates the
| |
| buildExpression | back to summary |
|---|---|
| protected final AbstractExpression buildExpression(AbstractExpression parent, WordParser wordParser, String word, JPQLQueryBNF queryBNF, AbstractExpression expression, boolean tolerant) Implements abstract org. Doc from org. Creates a new
| |
| visitor | back to summary |
|---|---|
| private ArithmeticExpressionFactory. | |
ExpressionVisitor is used to check if the Expression passed to this
factory is an AdditionExpression or SubtractionExpression.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | found
This flag is turned on if the |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | visit(AdditionExpression
The expression)Expression to visitOverrides org. Implements org. AdditionExpression expression.
|
| public void | visit(SubtractionExpression
The expression)Expression to visitOverrides org. Implements org. SubtractionExpression expression.
|
| found | back to summary |
|---|---|
| pack-priv boolean found This flag is turned on if the | |
| ArithmeticExpressionVisitor | back to summary |
|---|---|
| private ArithmeticExpressionVisitor() | |
| visit | back to summary |
|---|---|
| public void visit(AdditionExpression expression) Overrides org. Implements org. Doc from org. Visits the
| |
| visit | back to summary |
|---|---|
| public void visit(SubtractionExpression expression) Overrides org. Implements org. Doc from org. Visits the
| |