public class ExceptPattern extends VennPattern
p1, p2
EFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, MAX_COST, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, UPDATE_METHOD, WATCH_METHOD
Constructor and Description |
---|
ExceptPattern(Pattern p1,
Pattern p2)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
computeHashCode()
Hashcode supporting equals()
|
Pattern |
convertToTypedPattern(java.lang.String val)
Convert the pattern to a typed pattern, in which an element name is treated as
schema-element(N)
|
Pattern |
copy(RebindingMap rebindings)
Copy a pattern.
|
boolean |
equals(java.lang.Object other)
Determine whether this pattern is the same as another pattern
|
double |
getDefaultPriority()
The default priority of an "except" pattern is the priority of the LH operand
|
ItemType |
getItemType()
Get an ItemType that all the items matching this pattern must satisfy
|
protected java.lang.String |
getOperatorName()
Get the relevant operator: "union", "intersect", or "except"
|
UType |
getUType()
Get a UType indicating which kinds of items this Pattern can match.
|
boolean |
matches(Item<?> item,
XPathContext context)
Determine if the supplied node matches the pattern
|
boolean |
matchesBeneathAnchor(NodeInfo node,
NodeInfo anchor,
XPathContext context)
Determine whether this pattern matches a given Node within the subtree rooted at a given
anchor node.
|
allocateSlots, bindCurrent, export, gatherComponentPatterns, getDependencies, getLHS, getRHS, isMotionless, matchesCurrentGroup, operands, simplify, toString, typeCheck
effectiveBooleanValue, getFingerprint, getHostLanguage, handleDynamicError, isLiftable, isRecoverable, make, optimize, patternContainsVariable, replaceCurrent, selectNodes, setOriginalText, setPriority, setRecoverable, toShortString
computeCardinality, evaluateAsString, evaluateItem, getImplementationMethod, iterate, process
addToPathMap, adoptChildExpression, allowExtractingCommonSubexpressions, checkedOperands, checkForUpdatingSubexpressions, checkPermittedContents, computeDependencies, computeSpecialProperties, computeStaticProperties, dynamicError, evaluatePendingUpdates, explain, getCardinality, getConfiguration, getConstructType, getCost, getEvaluationMethod, getExpressionName, getExtraProperty, getIntegerBounds, getInterpretedExpression, getIntrinsicDependencies, getLocalRetainedStaticContext, getLocation, getNetCost, getObjectName, getPackageData, getParentExpression, getProperties, getProperty, getRetainedStaticContext, getScopingExpression, getSlotsUsed, getSpecialProperties, getStaticBaseURI, getStaticBaseURIString, getStaticType, getStaticUType, getStreamerName, hasCompatibleStaticContext, hashCode, hasSpecialProperty, hasVariableBinding, identityHashCode, implementsStaticTypeCheck, isCallOn, isEqual, isIdentical, isInstruction, isMultiThreaded, isStaticPropertiesKnown, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, markTailFunctionCalls, operandList, operandSparseList, optimizeChildren, prepareForStreaming, resetLocalStaticProperties, restoreParentPointers, setEvaluationMethod, setExtraProperty, setFiltered, setFlattened, setLocation, setParentExpression, setRetainedStaticContext, setRetainedStaticContextLocally, setRetainedStaticContextThoroughly, setStaticProperty, simplifyChildren, staticTypeCheck, suppressValidation, toPattern, typeCheckChildren, typeError, unordered, verifyParentPointers
public ItemType getItemType()
getItemType
in class Pattern
public UType getUType()
public double getDefaultPriority()
getDefaultPriority
in class Pattern
public boolean matches(Item<?> item, XPathContext context) throws XPathException
matches
in class Pattern
item
- the node to be comparedcontext
- The dynamic context.XPathException
- if an error occurs while matching the pattern (the caller will usually
treat this the same as a false result)public boolean matchesBeneathAnchor(NodeInfo node, NodeInfo anchor, XPathContext context) throws XPathException
matchesBeneathAnchor
in class Pattern
node
- The NodeInfo representing the Element or other node to be tested against the Patternanchor
- The anchor node, which must match any AnchorPattern subpatterncontext
- The dynamic context. Only relevant if the pattern
uses variables, or contains calls on functions such as document() or key().XPathException
- if an error occurs while matching the pattern (the caller will usually
treat this the same as a false result)public Pattern convertToTypedPattern(java.lang.String val) throws XPathException
convertToTypedPattern
in class Pattern
val
- either "strict" or "lax" depending on the value of xsl:mode/@typedXPathException
- if the pattern cannot be convertedpublic boolean equals(java.lang.Object other)
equals
in class VennPattern
other
- the other objectpublic int computeHashCode()
computeHashCode
in class VennPattern
protected java.lang.String getOperatorName()
getOperatorName
in class VennPattern
public Pattern copy(RebindingMap rebindings)
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.