public class ItemTypePattern extends Pattern
| Constructor and Description |
|---|
ItemTypePattern(ItemType test)
Create an ItemTypePattern that matches all items of a given type
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Determine whether this pattern is the same as another pattern
|
double |
getDefaultPriority()
Determine the default priority of this item type test when used on its own as a Pattern
|
int |
getFingerprint()
Determine the name fingerprint of nodes to which this pattern applies.
|
ItemType |
getItemType()
Get a NodeTest that all the nodes matching this pattern must satisfy
|
int |
getNodeKind()
Determine the types of nodes to which this pattern applies.
|
int |
hashCode()
Hashcode supporting equals()
|
boolean |
matches(Item item,
XPathContext context)
Determine whether this Pattern matches the given Node.
|
void |
setPriority(double priority)
Set a priority to override the default priority.
|
String |
toString()
Display the pattern for diagnostics
|
allocateSlots, analyze, bindCurrent, getColumnNumber, getContainerGranularity, getDependencies, getExecutable, getHostLanguage, getLineNumber, getLocationProvider, getPublicId, getSystemId, isMotionless, iterateSubExpressions, make, matchesBeneathAnchor, promote, replaceCurrent, replaceSubExpression, selectNodes, setExecutable, setLineNumber, setOriginalText, setSystemId, simplifypublic ItemTypePattern(ItemType test)
test - the type that the items must satisfy for the pattern to matchpublic void setPriority(double priority)
priority - the priority to be used if no explicit priority is given in the template rulepublic boolean matches(Item item, XPathContext context)
matches in class Patternitem - The NodeInfo representing the Element or other node to be tested against the Patterncontext - The context in which the match is to take place. Only relevant if the pattern
uses variables, or contains calls on functions such as document() or key(). Not used (and can be
set to null) in the case of patterns that are NodeTestspublic ItemType getItemType()
getItemType in class Patternpublic final double getDefaultPriority()
getDefaultPriority in class Patternpublic int getNodeKind()
getNodeKind in class Patternpublic int getFingerprint()
getFingerprint in class Patternpublic String toString()
public boolean equals(Object other)
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.