public class NegateExpression extends UnaryExpression
operandEFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, WATCH_METHOD| Constructor and Description |
|---|
NegateExpression(Expression base)
Create a NegateExpression
|
| Modifier and Type | Method and Description |
|---|---|
Expression |
copy()
Copy an expression.
|
protected String |
displayOperator(Configuration config)
Give a string representation of the operator for use in diagnostics
|
NumericValue |
evaluateItem(XPathContext context)
Evaluate the expression.
|
ExpressionCompiler |
getExpressionCompiler()
Return the compiler of the Negate expression
|
String |
getExpressionName()
Get a name identifying the kind of expression, in terms meaningful to a user.
|
ItemType |
getItemType()
Determine the data type of the expression, if this is known statically
/*@NotNull
|
protected OperandRole |
getOperandRole()
Get the usage (in terms of streamability analysis) of the single operand
|
boolean |
isBackwardsCompatible()
Ask whether the expression is to be evaluated in XPath 1.0 compatibility mode
|
void |
setBackwardsCompatible(boolean compatible)
Set whether the expression is to be evaluated in XPath 1.0 compatibility mode
|
Expression |
typeCheck(ExpressionVisitor visitor,
ContextItemStaticInfo contextInfo)
Type-check the expression.
|
computeCardinality, computeSpecialProperties, equals, explain, getBaseExpression, hashCode, operands, optimize, promote, replaceOperand, toShortString, toStringaddToPathMap, adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, clearStreamabilityData, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluatePendingUpdates, explain, getCardinality, getColumnNumber, getConfiguration, getConstructType, getContainer, getDependencies, getEvaluationMethod, getHostLanguage, getImplementationMethod, getIntegerBounds, getIntrinsicDependencies, getLineNumber, getLocationId, getObjectName, getPosture, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getStreamability, getStreamingAdjunct, getSweep, getSystemId, hasVariableBinding, identityHashCode, implementsStaticTypeCheck, isIdentical, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterate, iterateEvents, makeStreamingAdjunct, markTailFunctionCalls, operandList, process, resetLocalStaticProperties, setContainer, setEvaluationMethod, setFiltered, setFlattened, setLocationId, setPostureAndSweep, simplify, staticTypeCheck, suppressValidation, toPattern, toStreamingPattern, typeError, unorderedpublic NegateExpression(Expression base)
base - the expression that computes the value whose sign is to be reversedpublic void setBackwardsCompatible(boolean compatible)
compatible - true if XPath 1.0 compatibility mode is enabledpublic boolean isBackwardsCompatible()
protected OperandRole getOperandRole()
UnaryExpressiongetOperandRole in class UnaryExpressionpublic Expression typeCheck(ExpressionVisitor visitor, ContextItemStaticInfo contextInfo) throws XPathException
UnaryExpressiontypeCheck in class UnaryExpressionvisitor - an expression visitorcontextInfo - Information available statically about the context item: whether it is (possibly)
absent; its static type; its streaming posture.XPathException - if an error is discovered during this phase
(typically a type error)public ItemType getItemType()
getItemType in class UnaryExpressionpublic NumericValue evaluateItem(XPathContext context) throws XPathException
evaluateItem in class Expressioncontext - The context in which the expression is to be evaluatedXPathException - if any dynamic error occurs evaluating the
expressionpublic ExpressionCompiler getExpressionCompiler()
getExpressionCompiler in class Expressionpublic Expression copy()
copy in class Expressionprotected String displayOperator(Configuration config)
UnaryExpressiondisplayOperator in class UnaryExpressionconfig - the Saxon configurationpublic String getExpressionName()
getExpressionName in class ExpressionCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.