public class NodeTestPatternADJ extends PatternADJ
pattern| Constructor and Description |
|---|
NodeTestPatternADJ(Pattern p) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Pattern |
optimizeForName(int i)
Optimize a pattern with respect to a named node (element or attribute).
|
Pattern |
optimizeForType(int i)
Optimize a pattern with respect to a typed node.
|
Pattern |
optimizePattern()
Generic optimization of a pattern
|
Pattern |
unify(PatternADJ source,
RewriteContext rc) |
Set<RewriteContext> |
unifyingBindings(PatternADJ source,
RewriteContext rc)
Unify this expression against another expression
|
applyAxis, copyLocationInfo, evaluateAgainstBoolean, export, getPatternPreconditions, getPreconditions, getRetainedStaticContext, optimizePatterngetExpressionAdjunct, getNodeTestAdjunct, getPatternAdjunct, index, processRewritespublic NodeTestPatternADJ(Pattern p)
public Pattern optimizeForName(int i)
PatternADJoptimizeForName in class PatternADJi - the fingerprint of the name of the node to be matched.public Pattern optimizeForType(int i)
PatternADJoptimizeForType in class PatternADJi - the type of the node to be matched.public Pattern optimizePattern()
PatternADJoptimizePattern in class PatternADJpublic Pattern unify(PatternADJ source, RewriteContext rc)
unify in class PatternADJpublic Set<RewriteContext> unifyingBindings(PatternADJ source, RewriteContext rc)
PatternADJunifyingBindings in class PatternADJsource - the expression to be unified againstrc - the evaluation context to use (which may be side-effected)Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.