public abstract class Step<T extends XSComponent>
extends java.lang.Object
SCD
.Modifier and Type | Class and Description |
---|---|
(package private) static class |
Step.AnonymousType
Matches anonymous types.
|
(package private) static class |
Step.Any
Matches any name.
|
(package private) static class |
Step.Facet
Matches a particular kind of facets.
|
private static class |
Step.Filtered<T extends XSComponent> |
(package private) static class |
Step.Named
Matches a particular name.
|
(package private) static class |
Step.Schema
Matches a schema in a particular namespace.
|
Modifier and Type | Field and Description |
---|---|
Axis<? extends T> |
axis |
(package private) int |
predicate
'Predicate' in SCD designates the index of the item.
|
Modifier | Constructor and Description |
---|---|
protected |
Step(Axis<? extends T> axis) |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<T> |
evaluate(java.util.Iterator<XSComponent> nodeSet)
Evaluate this step against the current node set
and returns matched nodes.
|
protected abstract java.util.Iterator<? extends T> |
filter(java.util.Iterator<? extends T> base)
Perform filtering (which is different depending on the kind of step.)
|
public final Axis<? extends T extends XSComponent> axis
int predicate
Because of the parsing order this parameter cannot be marked final, even though it's immutable once it's parsed.
protected abstract java.util.Iterator<? extends T> filter(java.util.Iterator<? extends T> base)
public final java.util.Iterator<T> evaluate(java.util.Iterator<XSComponent> nodeSet)