|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.pattern.Pattern
net.sf.saxon.pattern.PatternWithPredicate
public class PatternWithPredicate
| Constructor Summary | |
|---|---|
PatternWithPredicate(Pattern basePattern,
Expression predicate)
|
|
| Method Summary | |
|---|---|
Pattern |
analyze(ExpressionVisitor visitor,
ExpressionVisitor.ContextItemType contextItemType)
Type-check the pattern. |
double |
getDefaultPriority()
Determine the default priority to use if this pattern appears as a match pattern for a template with no explicit priority attribute. |
ItemType |
getItemType()
Get an ItemType that all the items matching this pattern must satisfy |
Iterator |
iterateSubExpressions()
Iterate over the subexpressions within this pattern |
boolean |
matches(Item item,
XPathContext context)
Determine whether this Pattern matches the given Node. |
| Methods inherited from class net.sf.saxon.pattern.Pattern |
|---|
allocateSlots, getColumnNumber, getContainerGranularity, getDependencies, getExecutable, getFingerprint, getHostLanguage, getLineNumber, getLocationProvider, getNodeKind, getPublicId, getSystemId, internalMatches, make, matchesBeneathAnchor, promote, replaceSubExpression, resolveCurrent, selectNodes, 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 PatternWithPredicate(Pattern basePattern,
Expression predicate)
| Method Detail |
|---|
public boolean matches(Item item,
XPathContext context)
throws XPathException
matches in class Patternitem - 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().
XPathExceptionpublic ItemType getItemType()
getItemType in class Patternpublic Iterator iterateSubExpressions()
iterateSubExpressions in class Pattern
public Pattern analyze(ExpressionVisitor visitor,
ExpressionVisitor.ContextItemType contextItemType)
throws XPathException
analyze in class Patternvisitor - the expression visitorcontextItemType - the type of the context item at the point where the pattern
is defined. Set to null if it is known that the context item is undefined.
XPathExceptionpublic double getDefaultPriority()
getDefaultPriority in class Pattern
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||