Module org.eclipse.persistence.core
Class ModNode
java.lang.Object
org.eclipse.persistence.internal.jpa.parsing.Node
org.eclipse.persistence.internal.jpa.parsing.FunctionalExpressionNode
org.eclipse.persistence.internal.jpa.parsing.ArithmeticFunctionNode
org.eclipse.persistence.internal.jpa.parsing.ModNode
- All Implemented Interfaces:
AliasableNode
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateExpression(GenerationContext context) INTERNAL Generate an expression for the node.qualifyAttributeAccess(ParseTreeContext context) INTERNAL Check the child nodes for an unqualified field access and if so, replace it by a qualified field access.voidsetDenominator(Node denominator) voidvalidate(ParseTreeContext context) INTERNAL Validate node and calculate its type.Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.FunctionalExpressionNode
applyToQuery, isAliasableNodeMethods inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
addToExpression, appendExpression, getAlias, getAsString, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAggregateNode, isAttributeNode, isConstructorNode, isCountNode, isDivideNode, isDotNode, isEscape, isLiteralNode, isMapKeyNode, isMinusNode, isMultiplyNode, isNotNode, isParameterNode, isPlusNode, isSubqueryNode, isVariableNode, resolveAttribute, resolveClass, resolveClass, resolveMapping, resolveMapping, setAlias, setColumn, setLeft, setLine, setRight, setType, toString, toString, toStringDisplayName, toStringIndent, validateParameterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.persistence.internal.jpa.parsing.AliasableNode
getAlias, setAlias
-
Constructor Details
-
ModNode
public ModNode()
-
-
Method Details
-
qualifyAttributeAccess
INTERNAL Check the child nodes for an unqualified field access and if so, replace it by a qualified field access.- Overrides:
qualifyAttributeAccessin classNode
-
validate
INTERNAL Validate node and calculate its type. -
generateExpression
Description copied from class:NodeINTERNAL Generate an expression for the node. Each subclass will generate a different expression and thus will need to override this method- Overrides:
generateExpressionin classNode
-
getDenominator
-
setDenominator
-