| Modifier and Type | Field and Description |
|---|---|
| private int | _axis
This step's axis as defined in class Axis. |
| private boolean | _hadPredicates
Some simple predicates can be handled by this class (and not by the Predicate class) and will be removed from the above vector as they are handled. |
| private int | _nodeType
Type of the node test. |
| private List | _predicates
A vector of predicates (filters) defined on this step - may be null |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addPredicates(List<Predicate> predicates)
Returns the vector containing all predicates for this step. |
| public int | getAxis()
Implements abstract com. Define the axis (defined in Axis class) for this step |
| public int | |
| public List | |
| private boolean | |
| private boolean | |
| private boolean | |
| public boolean | |
| public boolean | |
| private boolean | |
| public void | setAxis(int axis)
Implements abstract com. Get the axis (defined in Axis class) for this step |
| public void | setParser(Parser parser)
Overrides com. Set the parser for this element and all child predicates |
| public String | toString()
Implements abstract com. Returns a string representation of this step. |
| public void | translate(ClassGenerator classGen, MethodGenerator methodGen)
Overrides com. Translate a step by pushing the appropriate iterator onto the stack. |
| public void | translatePredicates(ClassGenerator classGen, MethodGenerator methodGen, int predicateIndex)
Translate a sequence of predicates. |
| private void | |
| public Type | typeCheck(SymbolTable stable)
Overrides com. Type check this step. |
| _axis | back to summary |
|---|---|
| private int _axis This step's axis as defined in class Axis. | |
| _hadPredicates | back to summary |
|---|---|
| private boolean _hadPredicates Some simple predicates can be handled by this class (and not by the Predicate class) and will be removed from the above vector as they are handled. We use this boolean to remember if we did have any predicates. | |
| _nodeType | back to summary |
|---|---|
| private int _nodeType Type of the node test. | |
| _predicates | back to summary |
|---|---|
| private List<Predicate> _predicates A vector of predicates (filters) defined on this step - may be null | |
| Step | back to summary |
|---|---|
| public Step(int axis, int nodeType, List<Predicate> predicates) | |
| addPredicates | back to summary |
|---|---|
| public void addPredicates(List<Predicate> predicates) Returns the vector containing all predicates for this step. | |
| getAxis | back to summary |
|---|---|
| public int getAxis() Implements abstract com. Define the axis (defined in Axis class) for this step | |
| getNodeType | back to summary |
|---|---|
| public int getNodeType() Returns the node-type for this step | |
| getPredicates | back to summary |
|---|---|
| public List Returns the vector containing all predicates for this step. | |
| hasParentLocationPath | back to summary |
|---|---|
| private boolean hasParentLocationPath() Returns 'true' if this step has a parent location path. | |
| hasParentPattern | back to summary |
|---|---|
| private boolean hasParentPattern() Returns 'true' if this step has a parent pattern. This method will return 'false' if this step occurs on its own under an element like <xsl:for-each> or <xsl:apply-templates>. | |
| hasPredicates | back to summary |
|---|---|
| private boolean hasPredicates() Returns 'true' if this step has any predicates | |
| isAbbreviatedDDot | back to summary |
|---|---|
| public boolean isAbbreviatedDDot() True if this step is the abbreviated step '..' | |
| isAbbreviatedDot | back to summary |
|---|---|
| public boolean isAbbreviatedDot() True if this step is the abbreviated step '.' | |
| isPredicate | back to summary |
|---|---|
| private boolean isPredicate() Returns 'true' if this step is used within a predicate | |
| setAxis | back to summary |
|---|---|
| public void setAxis(int axis) Implements abstract com. Get the axis (defined in Axis class) for this step | |
| setParser | back to summary |
|---|---|
| public void setParser(Parser parser) Overrides com. Set the parser for this element and all child predicates | |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract com. Returns a string representation of this step. | |
| translate | back to summary |
|---|---|
| public void translate(ClassGenerator classGen, MethodGenerator methodGen) Overrides com. Translate a step by pushing the appropriate iterator onto the stack. The abbreviated steps '.' and '@attr' do not create new iterators if they are not part of a LocationPath and have no filters. In these cases a node index instead of an iterator is pushed onto the stack. | |
| translatePredicates | back to summary |
|---|---|
| public void translatePredicates(ClassGenerator classGen, MethodGenerator methodGen, int predicateIndex) Translate a sequence of predicates. Each predicate is translated
by constructing an instance of | |
| translateStep | back to summary |
|---|---|
private void translateStep(ClassGenerator classGen, MethodGenerator methodGen, int predicateIndex)
| |
| typeCheck | back to summary |
|---|---|
| public Type typeCheck(SymbolTable stable) throws TypeCheckError Overrides com. Type check this step. The abbreviated steps '.' and '@attr' are assigned type node if they have no predicates. All other steps have type node-set. | |