public class PatternThatSetsCurrentADJ extends PatternADJ
pattern
Constructor and Description |
---|
PatternThatSetsCurrentADJ(Pattern p) |
Modifier and Type | Method and Description |
---|---|
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
|
applyAxis, copyLocationInfo, evaluateAgainstBoolean, export, getPatternPreconditions, getPreconditions, getRetainedStaticContext, optimizePattern, unify, unifyingBindings
getExpressionAdjunct, getNodeTestAdjunct, getPatternAdjunct, index, processRewrites
public PatternThatSetsCurrentADJ(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
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.