|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.xsltc.compiler.SyntaxTreeNode org.apache.xalan.xsltc.compiler.Expression org.apache.xalan.xsltc.compiler.RelativeLocationPath org.apache.xalan.xsltc.compiler.Step
final class Step
Field Summary | |
---|---|
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 java.util.Vector |
_predicates
A vector of predicates (filters) defined on this step - may be null |
Fields inherited from class org.apache.xalan.xsltc.compiler.Expression |
---|
_falseList, _trueList, _type |
Fields inherited from class org.apache.xalan.xsltc.compiler.SyntaxTreeNode |
---|
_attributes, _parent, _qname, Dummy, IndentIncrement, UNKNOWN_STYLESHEET_NODE_ID |
Constructor Summary | |
---|---|
Step(int axis,
int nodeType,
java.util.Vector predicates)
|
Method Summary | |
---|---|
void |
addPredicates(java.util.Vector predicates)
Returns the vector containing all predicates for this step. |
int |
getAxis()
Define the axis (defined in Axis class) for this step |
int |
getNodeType()
Returns the node-type for this step |
java.util.Vector |
getPredicates()
Returns the vector containing all predicates for this step. |
private boolean |
hasParentPattern()
Returns 'true' if this step has a parent pattern. |
private boolean |
hasPredicates()
Returns 'true' if this step has any predicates |
boolean |
isAbbreviatedDDot()
True if this step is the abbreviated step '..' |
boolean |
isAbbreviatedDot()
True if this step is the abbreviated step '.' |
private boolean |
isPredicate()
Returns 'true' if this step is used within a predicate |
void |
setAxis(int axis)
Get the axis (defined in Axis class) for this step |
void |
setParser(Parser parser)
Set the parser for this element and all child predicates |
java.lang.String |
toString()
Returns a string representation of this step. |
void |
translate(ClassGenerator classGen,
MethodGenerator methodGen)
Translate a step by pushing the appropriate iterator onto the stack. |
void |
translatePredicates(ClassGenerator classGen,
MethodGenerator methodGen)
Translate a sequence of predicates. |
Type |
typeCheck(SymbolTable stable)
Type check this step. |
Methods inherited from class org.apache.xalan.xsltc.compiler.Expression |
---|
backPatchFalseList, backPatchTrueList, compile, desynthesize, evaluateAtCompileTime, getFalseList, getTrueList, getType, hasLastCall, hasPositionCall, lookupPrimop, startIterator, synthesize, translateDesynthesized |
Methods inherited from class org.apache.xalan.xsltc.compiler.SyntaxTreeNode |
---|
addAttribute, addElement, addPrefixMapping, compileResultTree, contextDependent, dependentContents, display, displayContents, elementAt, elementCount, elements, getAttribute, getAttribute, getAttributes, getContents, getImportPrecedence, getLineNumber, getNodeIDForStylesheetNSLookup, getParent, getParser, getPrefixMapping, getQName, getStylesheet, getSymbolTable, getTemplate, getXSLTC, hasAttribute, hasContents, indent, isDummy, lastChild, lookupNamespace, lookupPrefix, parseChildren, parseContents, removeElement, reportError, reportWarning, setAttributes, setFirstElement, setLineNumber, setParent, setPrefixMapping, setQName, setQName, translateContents, typeCheckContents, updateScope |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int _axis
private java.util.Vector _predicates
private boolean _hadPredicates
private int _nodeType
Constructor Detail |
---|
public Step(int axis, int nodeType, java.util.Vector predicates)
Method Detail |
---|
public void setParser(Parser parser)
setParser
in class SyntaxTreeNode
parser
- The XSLT parser.public int getAxis()
getAxis
in class RelativeLocationPath
public void setAxis(int axis)
setAxis
in class RelativeLocationPath
public int getNodeType()
public java.util.Vector getPredicates()
public void addPredicates(java.util.Vector predicates)
private boolean hasParentPattern()
private boolean hasPredicates()
private boolean isPredicate()
public boolean isAbbreviatedDot()
public boolean isAbbreviatedDDot()
public Type typeCheck(SymbolTable stable) throws TypeCheckError
typeCheck
in class Expression
stable
- The compiler/parser's symbol table
TypeCheckError
public void translate(ClassGenerator classGen, MethodGenerator methodGen)
translate
in class Expression
classGen
- BCEL Java class generatormethodGen
- BCEL Java method generatorpublic void translatePredicates(ClassGenerator classGen, MethodGenerator methodGen)
CurrentNodeListIterator
which is initialized from another iterator (recursive call),
a filter and a closure (call to translate on the predicate) and "this".
public java.lang.String toString()
toString
in class Expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |