public class PatternWithPredicateADJ extends PatternADJ
pattern
Constructor and Description |
---|
PatternWithPredicateADJ(Pattern p) |
Modifier and Type | Method and Description |
---|---|
Pattern |
applyAxis(byte axis)
Convert a pattern to apply to nodes along a given axis.
|
Pattern |
evaluateAgainstBoolean(Expression t,
PatternOptimizationEE patternOptimizationEE)
Evaluate this pattern against an expression designated as 'true' in the execution context.
|
Set<IndexDefn.Indexation> |
index(List<IndexDefn> idfl)
find any indexable terms for the attached pattern or expression
|
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
|
Adjunct |
processRewrites(PatternOptimizationEE patternOptimization)
process any rewrites for the attached expression or pattern
|
Pattern |
unify(PatternADJ source,
RewriteContext rc) |
Set<RewriteContext> |
unifyingBindings(PatternADJ source,
RewriteContext rc)
Unify this expression against another expression
|
Adjunct |
updated() |
copyLocationInfo, export, getPatternPreconditions, getPreconditions, getRetainedStaticContext, optimizePattern
getExpressionAdjunct, getNodeTestAdjunct, getPatternAdjunct
public PatternWithPredicateADJ(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 applyAxis(byte axis)
PatternADJ
applyAxis
in class PatternADJ
axis
- The axis to mode this pattern topublic Pattern evaluateAgainstBoolean(Expression t, PatternOptimizationEE patternOptimizationEE)
PatternADJ
evaluateAgainstBoolean
in class PatternADJ
t
- the expression assumed to be true.public Adjunct processRewrites(PatternOptimizationEE patternOptimization)
Adjunct
processRewrites
in class Adjunct
patternOptimization
- definitions of pattern optimization controlspublic Adjunct updated()
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.