|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saxon.pattern.Pattern | +--net.sf.saxon.pattern.KeyPattern
A KeyPattern is a pattern of the form key(keyname, keyvalue)
Constructor Summary | |
KeyPattern(int namecode,
Expression key)
Constructor |
Method Summary | |
NodeTest |
getNodeTest()
Get a NodeTest that all the nodes matching this pattern must satisfy |
boolean |
matches(NodeInfo e,
XPathContext context)
Determine whether this Pattern matches the given Node. |
Pattern |
typeCheck(StaticContext env,
ItemType contextItemType)
Type-check the pattern. |
Methods inherited from class net.sf.saxon.pattern.Pattern |
getColumnNumber, getDefaultPriority, getExecutable, getFingerprint, getLineNumber, getNodeKind, getPublicId, getSystemId, internalMatches, make, setExecutable, setLineNumber, setOriginalText, setSystemId, simplify, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public KeyPattern(int namecode, Expression key)
namecode
- the name of the keykey
- the value of the keyMethod Detail |
public Pattern typeCheck(StaticContext env, ItemType contextItemType) throws XPathException
typeCheck
in class Pattern
XPathException
public boolean matches(NodeInfo e, XPathContext context) throws XPathException
matches
in class Pattern
e
- The NodeInfo representing the Element or other node to be tested against the Patterncontext
- The dynamic context. Only relevant if the pattern
uses variables, or contains calls on functions such as document() or key().
XPathException
public NodeTest getNodeTest()
getNodeTest
in class Pattern
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |