|
||||||||||
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.VariableRefBase
class VariableRefBase
Field Summary | |
---|---|
protected Closure |
_closure
A reference to the enclosing expression/instruction for which a closure is needed (Predicate, Number or Sort). |
protected VariableBase |
_variable
A reference to the associated variable. |
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 | |
---|---|
VariableRefBase()
|
|
VariableRefBase(VariableBase variable)
|
Method Summary | |
---|---|
void |
addParentDependency()
If this variable reference is in a top-level element like another variable, param or key, add a dependency between that top-level element and the referenced variable. |
boolean |
equals(java.lang.Object obj)
Two variable references are deemed equal if they refer to the same variable. |
VariableBase |
getVariable()
Returns a reference to the associated variable |
java.lang.String |
toString()
Returns a string representation of this variable reference on the format 'variable-ref( |
Type |
typeCheck(SymbolTable stable)
Type check all the children of this node. |
Methods inherited from class org.apache.xalan.xsltc.compiler.Expression |
---|
backPatchFalseList, backPatchTrueList, compile, desynthesize, evaluateAtCompileTime, getFalseList, getTrueList, getType, hasLastCall, hasPositionCall, lookupPrimop, startIterator, synthesize, translate, 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, setParser, setPrefixMapping, setQName, setQName, translateContents, typeCheckContents, updateScope |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected VariableBase _variable
protected Closure _closure
Constructor Detail |
---|
public VariableRefBase(VariableBase variable)
public VariableRefBase()
Method Detail |
---|
public VariableBase getVariable()
public void addParentDependency()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class Expression
public Type typeCheck(SymbolTable stable) throws TypeCheckError
Expression
typeCheck
in class Expression
stable
- The compiler/parser's symbol table
TypeCheckError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |