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, optimizePattern
getExpressionAdjunct, getNodeTestAdjunct, getPatternAdjunct, index, processRewrites
public NodeTestPatternADJ(Pattern p)
public Pattern optimizeForName(int i)
PatternADJ
optimizeForName
in class PatternADJ
i
- the fingerprint of the name of the node to be matched.public Pattern optimizeForType(int i)
PatternADJ
optimizeForType
in class PatternADJ
i
- the type of the node to be matched.public Pattern optimizePattern()
PatternADJ
optimizePattern
in class PatternADJ
public Pattern unify(PatternADJ source, RewriteContext rc)
unify
in class PatternADJ
public Set<RewriteContext> unifyingBindings(PatternADJ source, RewriteContext rc)
PatternADJ
unifyingBindings
in class PatternADJ
source
- 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.