Class ArithmeticExpressionStateObject
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.model.query.AbstractStateObject
-
- org.eclipse.persistence.jpa.jpql.tools.model.query.CompoundExpressionStateObject
-
- org.eclipse.persistence.jpa.jpql.tools.model.query.ArithmeticExpressionStateObject
-
- All Implemented Interfaces:
StateObject
- Direct Known Subclasses:
AdditionExpressionStateObject,DivisionExpressionStateObject,MultiplicationExpressionStateObject,SubtractionExpressionStateObject
public abstract class ArithmeticExpressionStateObject extends CompoundExpressionStateObject
This expression represents an arithmetic expression, which means the first and second expressions are aggregated with an arithmetic sign.BNF:arithmetic_expression ::= arithmetic_expression <identifier> arithmetic_term- Since:
- 2.4
- Version:
- 2.4
- Author:
- Pascal Filion
- See Also:
AdditionExpressionStateObject,DivisionExpressionStateObject,MultiplicationExpressionStateObject,SubtractionExpressionStateObject,ArithmeticExpression
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.jpa.jpql.tools.model.query.CompoundExpressionStateObject
LEFT_STATE_OBJECT_PROPERTY, RIGHT_STATE_OBJECT_PROPERTY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArithmeticExpressiongetExpression()Returns the actual parsed object if thisStateObjectrepresentation of the JPQL query was created by parsing an existing JPQL query.-
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.model.query.CompoundExpressionStateObject
getIdentifier, getLeft, getRight, hasLeft, hasRight, isEquivalent, parseLeft, parseRight, setLeft, setRight
-
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.model.query.AbstractStateObject
addPropertyChangeListener, children, decorate, equals, findIdentificationVariable, getDeclaration, getDecorator, getGrammar, getManagedTypeProvider, getParent, getQueryBuilder, getRoot, getType, getType, getTypeHelper, getTypeRepository, hashCode, isDecorated, removePropertyChangeListener, setExpression, setParent, toString, toString, toText
-
Methods inherited from interface org.eclipse.persistence.jpa.jpql.tools.model.query.StateObject
accept
-
-
-
-
Method Detail
-
getExpression
public ArithmeticExpression getExpression()
Returns the actual parsed object if thisStateObjectrepresentation of the JPQL query was created by parsing an existing JPQL query.- Specified by:
getExpressionin interfaceStateObject- Overrides:
getExpressionin classCompoundExpressionStateObject- Returns:
- The parsed object when a JPQL query is parsed and converted into a
StateObjectornullwhen the JPQL query is manually created (i.e. not from a string)
-
-