public class NodeTestPattern extends Pattern
EFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, UPDATE_METHOD, WATCH_METHOD| Constructor and Description |
|---|
NodeTestPattern(NodeTest test)
Create an NodeTestPattern that matches all items of a given type
|
| 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
|
void |
export(ExpressionPresenter presenter)
Diagnostic print of expression structure.
|
int |
getFingerprint()
Determine the name fingerprint of nodes to which this pattern applies.
|
NodeTest |
getItemType()
Get a NodeTest that all the nodes matching this pattern must satisfy
|
NodeTest |
getNodeTest() |
UType |
getUType()
Get a UType indicating which kinds of items this Pattern can match.
|
boolean |
matches(Item<?> item,
XPathContext context)
Determine whether this Pattern matches the given Node.
|
java.lang.String |
toString()
Display the pattern for diagnostics
|
allocateSlots, bindCurrent, effectiveBooleanValue, getDefaultPriority, getDependencies, getHostLanguage, handleDynamicError, isLiftable, isMotionless, isRecoverable, make, matchesBeneathAnchor, matchesCurrentGroup, optimize, patternContainsVariable, replaceCurrent, selectNodes, setOriginalText, setPriority, setRecoverable, simplify, toShortString, typeCheckcomputeCardinality, evaluateAsString, evaluateItem, getImplementationMethod, iterate, processaddToPathMap, 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, operands, operandSparseList, optimizeChildren, prepareForStreaming, resetLocalStaticProperties, restoreParentPointers, setEvaluationMethod, setExtraProperty, setFiltered, setFlattened, setLocation, setParentExpression, setRetainedStaticContext, setRetainedStaticContextLocally, setRetainedStaticContextThoroughly, setStaticProperty, simplifyChildren, staticTypeCheck, suppressValidation, toPattern, typeCheckChildren, typeError, unordered, verifyParentPointerspublic NodeTestPattern(NodeTest test)
test - the type that the items must satisfy for the pattern to matchpublic boolean matches(Item<?> item, XPathContext context)
public NodeTest getItemType()
getItemType in class Patternpublic UType getUType()
public int getFingerprint()
getFingerprint in class Patternpublic java.lang.String toString()
public boolean equals(java.lang.Object other)
equals in class Expressionother - the other objectpublic int computeHashCode()
computeHashCode in class Expressionpublic Pattern convertToTypedPattern(java.lang.String val) throws XPathException
convertToTypedPattern in class Patternval - either "strict" or "lax" depending on the value of xsl:mode/@typedXPathException - if the pattern cannot be convertedpublic void export(ExpressionPresenter presenter) throws XPathException
Expressionexport in interface ExportAgentexport in class Patternpresenter - the expression presenter used to display the structureXPathException - if the export fails, for example if an expression is found that won't work
in the target environment.public Pattern copy(RebindingMap rebindings)
public NodeTest getNodeTest()
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.