Package net.sf.saxon.pattern
Class JNodePattern
java.lang.Object
net.sf.saxon.expr.Expression
net.sf.saxon.expr.PseudoExpression
net.sf.saxon.pattern.Pattern
net.sf.saxon.pattern.JNodePattern
- All Implemented Interfaces:
ExportAgent,Locatable,IdentityComparable,Traceable
-
Field Summary
Fields inherited from class net.sf.saxon.expr.Expression
EFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, MAX_COST, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, staticProperties, UPDATE_METHOD, WATCH_METHOD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy(RebindingMap rebindings) Copy an expression.voidexport(ExpressionPresenter presenter) Diagnostic print of expression structure.doubleDetermine the default priority to use if this pattern appears as a match pattern for a template with no explicit priority attribute.Get an ItemType that all the items matching this pattern must satisfygetUType()Get a UType indicating which kinds of items this Pattern can match.booleanmatches(Item item, XPathContext context) Determine whether this Pattern matches the given item.Methods inherited from class net.sf.saxon.pattern.Pattern
allocateSlots, bindCurrent, convertToTypedPattern, effectiveBooleanValue, getDependencies, getElaborator, getFingerprint, getHostLanguage, getOriginalText, handleDynamicError, isLiftable, isMotionless, isRecoverable, make, matchesBeneathAnchor, matchesCurrentGroup, matchesItem, optimize, patternContainsVariable, reconstruct, replaceCurrent, selectNodes, setOriginalText, setPriority, setRecoverable, simplify, toPattern, toShortString, toString, typeCheckMethods inherited from class net.sf.saxon.expr.PseudoExpression
computeCardinality, evaluateAsString, evaluateItem, getImplementationMethod, iterate, processMethods inherited from class net.sf.saxon.expr.Expression
adoptChildExpression, allowExtractingCommonSubexpressions, checkedOperands, checkForUpdatingSubexpressions, checkPermittedContents, computeDependencies, computeHashCode, computeSpecialProperties, computeStaticProperties, dispatchTailCall, dynamicError, equals, explain, getCardinality, getConfiguration, getCost, getEvaluationMethod, getExpressionName, getExtraProperty, getIntrinsicDependencies, getLocalRetainedStaticContext, getLocation, getNetCost, getObjectName, getPackageData, getParentExpression, getProperties, getProperty, getRetainedStaticContext, getScopingExpression, getSlotsUsed, getSpecialProperties, getStaticBaseURI, getStaticBaseURIString, getStaticType, getStaticUType, getStreamerName, getTracingTag, hasCompatibleStaticContext, hashCode, hasSpecialProperty, hasVariableBinding, identityHashCode, implementsStaticTypeCheck, isCallOn, isEqual, isIdentical, isInstruction, isMultiThreaded, isStaticPropertiesKnown, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, makeElaborator, markTailFunctionCalls, operandList, operands, operandSparseList, optimizeChildren, prepareForStreaming, resetLocalStaticProperties, restoreParentPointers, setEvaluationMethod, setExtraProperty, setFiltered, setFlattened, setLocation, setParentExpression, setRetainedStaticContext, setRetainedStaticContextLocally, setRetainedStaticContextThoroughly, setStaticProperty, simplifyChildren, staticTypeCheck, supportsLazyEvaluation, suppressValidation, typeCheckChildren, typeError, unordered, verifyParentPointers, warning, withLocationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.sf.saxon.trace.Traceable
gatherProperties
-
Constructor Details
-
JNodePattern
-
-
Method Details
-
matches
Description copied from class:PatternDetermine whether this Pattern matches the given item. This should be called viamatchesItem()to get the XSLT-defined error handling behaviour.The method, where required, sets current() to the node being tested.
- Specified by:
matchesin classPattern- Parameters:
item- The item to be tested against the Patterncontext- The dynamic context.- Returns:
- true if the node matches the Pattern, false otherwise
- Throws:
XPathException- if an error occurs while matching the pattern
-
getUType
Description copied from class:PatternGet a UType indicating which kinds of items this Pattern can match. -
getItemType
Description copied from class:PatternGet an ItemType that all the items matching this pattern must satisfy- Specified by:
getItemTypein classPattern- Returns:
- an ItemType, as specific as possible, which all the matching items satisfy
-
export
Description copied from class:ExpressionDiagnostic print of expression structure. The abstract expression tree is written to the supplied output destination.- Specified by:
exportin interfaceExportAgent- Specified by:
exportin classPattern- Parameters:
presenter- the expression presenter used to display the structure- Throws:
XPathException- if the export fails, for example if an expression is found that won't work in the target environment.
-
getDefaultPriority
public double getDefaultPriority()Description copied from class:PatternDetermine the default priority to use if this pattern appears as a match pattern for a template with no explicit priority attribute. Note that the default priority of a pattern- Overrides:
getDefaultPriorityin classPattern- Returns:
- the default priority for the pattern
-
copy
Description copied from class:ExpressionCopy an expression. This makes a deep copy.
-