Module org.eclipse.persistence.core
Class NotNode
java.lang.Object
org.eclipse.persistence.internal.jpa.parsing.Node
org.eclipse.persistence.internal.jpa.parsing.LogicalOperatorNode
org.eclipse.persistence.internal.jpa.parsing.NotNode
INTERNAL
Purpose: Represent a NOT
Responsibilities:
- Generate the correct expression for a NOT
- Since:
- TopLink 4.0
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerateExpression
(GenerationContext context) INTERNAL Return a EclipseLink expression by calling generateExpression on the right node and adding .not() to the returned expressionboolean
INTERNAL Is this node a Not nodevoid
validate
(ParseTreeContext context) INTERNAL Validate node and calculate its type.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, isParameterNode, isPlusNode, isSubqueryNode, isVariableNode, qualifyAttributeAccess, resolveAttribute, resolveClass, resolveClass, resolveMapping, resolveMapping, setAlias, setColumn, setLeft, setLine, setRight, setType, toString, toString, toStringDisplayName, toStringIndent, validateParameter
-
Constructor Details
-
NotNode
public NotNode()Return a new NotNode.
-
-
Method Details
-
validate
INTERNAL Validate node and calculate its type.- Overrides:
validate
in classLogicalOperatorNode
-
generateExpression
INTERNAL Return a EclipseLink expression by calling generateExpression on the right node and adding .not() to the returned expression- Overrides:
generateExpression
in classNode
-
isNotNode
public boolean isNotNode()INTERNAL Is this node a Not node
-