|
|||||||||
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.VennPattern net.sf.saxon.pattern.ExceptPattern
public class ExceptPattern
A pattern formed as the difference of two other patterns
Field Summary |
---|
Fields inherited from class net.sf.saxon.pattern.VennPattern |
---|
p1, p2 |
Constructor Summary | |
---|---|
ExceptPattern(Pattern p1,
Pattern p2)
Constructor |
Method Summary | |
---|---|
boolean |
equals(Object other)
Determine whether this pattern is the same as another pattern |
int |
hashCode()
Hashcode supporting equals() |
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. |
Methods inherited from class net.sf.saxon.pattern.VennPattern |
---|
allocateSlots, analyze, gatherComponentPatterns, getDependencies, getItemType, getLHS, getNodeKind, getRHS, iterateSubExpressions, promote, replaceSubExpression, resolveCurrent, setExecutable, setLineNumber, setOriginalText, setSystemId, simplify |
Methods inherited from class net.sf.saxon.pattern.Pattern |
---|
getColumnNumber, getContainerGranularity, getDefaultPriority, getExecutable, getFingerprint, getHostLanguage, getLineNumber, getLocationProvider, getPublicId, getSystemId, internalMatches, make, selectNodes, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExceptPattern(Pattern p1, Pattern p2)
p1
- the left-hand operandp2
- the right-hand operandMethod Detail |
---|
public boolean matches(Item item, XPathContext context) throws XPathException
matches
in class Pattern
item
- the node to be comparedcontext
- The dynamic context. Only relevant if the pattern
uses variables, or contains calls on functions such as document() or key().
XPathException
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
public boolean equals(Object other)
equals
in class VennPattern
other
- the other objectpublic int hashCode()
hashCode
in class VennPattern
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |