public class AncestorQualifiedPatternADJ extends PatternADJ
pattern
Constructor and Description |
---|
AncestorQualifiedPatternADJ(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<Expression> |
getPreconditions(PatternOptimizationEE patternOptimization)
Get the preconditions for a pattern
|
Set<IndexDefn.Indexation> |
index(List<IndexDefn> idfl)
find any indexable terms for the attached pattern or expression
|
Pattern |
optimizeForName(int fingerprint)
Optimize a pattern with respect to a named node (element or attribute).
|
Pattern |
optimizeForType(int type)
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
|
Adjunct |
updated() |
copyLocationInfo, export, getPatternPreconditions, getRetainedStaticContext, optimizePattern, unify, unifyingBindings
getExpressionAdjunct, getNodeTestAdjunct, getPatternAdjunct
public AncestorQualifiedPatternADJ(Pattern p)
public Pattern optimizeForName(int fingerprint)
PatternADJ
optimizeForName
in class PatternADJ
fingerprint
- the fingerprint of the name of the node to be matched.public Pattern optimizeForType(int type)
PatternADJ
optimizeForType
in class PatternADJ
type
- 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 Set<Expression> getPreconditions(PatternOptimizationEE patternOptimization)
PatternADJ
Note that as a Pattern is a subclass of Expression, we need different named functions for each type.
getPreconditions
in class PatternADJ
patternOptimization
- controls for the optimizationpublic Adjunct processRewrites(PatternOptimizationEE patternOptimization)
Adjunct
processRewrites
in class Adjunct
patternOptimization
- definitions of pattern optimization controlspublic Adjunct updated()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.