Class UnaryMinus
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.parsing.Node
-
- org.eclipse.persistence.internal.jpa.parsing.UnaryMinus
-
public class UnaryMinus extends Node
INTERNALPurpose: Represent an unary '-' in EJBQL
Responsibilities:
- Generate the correct expression for an unary '-'
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression
-
-
Constructor Summary
Constructors Constructor Description UnaryMinus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressiongenerateExpression(GenerationContext context)INTERNAL Generate the expression.voidvalidate(ParseTreeContext context)INTERNAL Validate node and calculate its type.voidvalidateParameter(ParseTreeContext context, java.lang.Object contextType)INTERNAL-
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
addToExpression, appendExpression, applyToQuery, getAlias, getAsString, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAggregateNode, isAliasableNode, isAttributeNode, isConstructorNode, isCountNode, isDivideNode, isDotNode, isEscape, isLiteralNode, isMapKeyNode, isMinusNode, isMultiplyNode, isNotNode, isParameterNode, isPlusNode, isSubqueryNode, isVariableNode, qualifyAttributeAccess, resolveAttribute, resolveClass, resolveClass, resolveMapping, resolveMapping, setAlias, setColumn, setLeft, setLine, setRight, setType, toString, toString, toStringDisplayName, toStringIndent
-
-
-
-
Method Detail
-
validate
public void validate(ParseTreeContext context)
INTERNAL Validate node and calculate its type.
-
validateParameter
public void validateParameter(ParseTreeContext context, java.lang.Object contextType)
INTERNAL- Overrides:
validateParameterin classNode
-
generateExpression
public Expression generateExpression(GenerationContext context)
INTERNAL Generate the expression.- Overrides:
generateExpressionin classNode
-
-