Class NegateExp
java.lang.Object
org.apache.cayenne.exp.Expression
org.apache.cayenne.exp.NegateExp
- All Implemented Interfaces:
XMLSerializable
-
Field Summary
Fields inherited from class Expression
operands, PRUNED_NODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendAsString(Appendable out) Appends own content as a String to the provided Appendable: the operands separated by the operator.protected ObjectEvaluates itself with object, pushing result on the stack.protected StringgetExpressionOperator(int index) Returns the operator printed between the operands, before the operand at the given index.intReturns a count of operands of this expression.protected booleanWhether this node is wrapped in parentheses when printed as an operand of another node.Creates a copy of this expression node, without copying children.Methods inherited from class Expression
andExp, andExp, appendOperandAsString, deepCopy, encodeAsXML, equals, evaluate, evaluateOperand, exists, expName, filter, filterObjects, first, flattenTree, getOperand, getPathAliases, hashCode, isValidParent, match, notExists, notExp, orExp, orExp, params, params, paramsArray, pruneNodeForPrunedChild, setOperand, setOperands, toString, transform, transformExpression, traverse, traverse
-
Constructor Details
-
NegateExp
-
-
Method Details
-
shallowCopy
Creates a copy of this expression node, without copying children.- Specified by:
shallowCopyin classExpression
-
evaluateNode
Description copied from class:ExpressionEvaluates itself with object, pushing result on the stack.- Specified by:
evaluateNodein classExpression- Throws:
Exception
-
appendAsString
Description copied from class:ExpressionAppends own content as a String to the provided Appendable: the operands separated by the operator.- Overrides:
appendAsStringin classExpression- Throws:
IOException
-
getExpressionOperator
Description copied from class:ExpressionReturns the operator printed between the operands, before the operand at the given index.- Specified by:
getExpressionOperatorin classExpression
-
getOperandCount
public int getOperandCount()Description copied from class:ExpressionReturns a count of operands of this expression. In real life there are unary (count == 1), binary (count == 2) and ternary (count == 3) expressions.- Overrides:
getOperandCountin classExpression
-
parenthesizeAsOperand
protected boolean parenthesizeAsOperand()Description copied from class:ExpressionWhether this node is wrapped in parentheses when printed as an operand of another node. Compound nodes are, leaves and nodes with their own delimiters (function calls, lists) are not.- Overrides:
parenthesizeAsOperandin classExpression
-