|
||||||||||
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.TopLevelElement org.apache.xalan.xsltc.compiler.VariableBase
class VariableBase
Field Summary | |
---|---|
protected java.util.Vector |
_dependencies
|
protected java.lang.String |
_escapedName
|
protected boolean |
_ignore
|
protected boolean |
_isLocal
|
protected Instruction |
_loadInstruction
|
protected LocalVariableGen |
_local
|
protected QName |
_name
|
protected java.util.Vector |
_refs
|
protected Expression |
_select
|
protected Instruction |
_storeInstruction
|
protected Type |
_type
|
protected java.lang.String |
select
|
Fields inherited from class org.apache.xalan.xsltc.compiler.SyntaxTreeNode |
---|
_attributes, _parent, _qname, Dummy, IndentIncrement, UNKNOWN_STYLESHEET_NODE_ID |
Constructor Summary | |
---|---|
VariableBase()
|
Method Summary | |
---|---|
void |
addReference(VariableRefBase vref)
Add a reference to this variable. |
void |
disable()
Disable this variable/parameter |
void |
display(int indent)
Display variable in a full AST dump |
java.lang.String |
getEscapedName()
Returns the escaped qname of the variable or parameter |
Expression |
getExpression()
Returns the expression from this variable's select attribute (if any) |
QName |
getName()
Returns the name of the variable or parameter as it will occur in the compiled translet. |
Type |
getType()
Returns the type of the variable |
boolean |
isLocal()
Returns the true if the variable is local |
Instruction |
loadInstruction()
Returns an instruction for loading the value of this variable onto the JVM stack. |
void |
mapRegister(MethodGenerator methodGen)
Map this variable to a register |
void |
parseContents(Parser parser)
Parse the contents of the |
void |
setName(QName name)
Set the name of the variable or paremeter. |
Instruction |
storeInstruction()
Returns an instruction for storing a value from the JVM stack into this variable. |
java.lang.String |
toString()
Display variable as single string |
void |
translateValue(ClassGenerator classGen,
MethodGenerator methodGen)
Compile the value of the variable, which is either in an expression in a 'select' attribute, or in the variable elements body |
void |
unmapRegister(MethodGenerator methodGen)
Remove the mapping of this variable to a register. |
Methods inherited from class org.apache.xalan.xsltc.compiler.TopLevelElement |
---|
addDependency, compile, getDependencies, translate, typeCheck |
Methods inherited from class org.apache.xalan.xsltc.compiler.SyntaxTreeNode |
---|
addAttribute, addElement, addPrefixMapping, compileResultTree, contextDependent, dependentContents, 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, removeElement, reportError, reportWarning, setAttributes, setFirstElement, setLineNumber, setParent, setParser, 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 |
---|
protected QName _name
protected java.lang.String _escapedName
protected Type _type
protected boolean _isLocal
protected LocalVariableGen _local
protected Instruction _loadInstruction
protected Instruction _storeInstruction
protected Expression _select
protected java.lang.String select
protected java.util.Vector _refs
protected java.util.Vector _dependencies
protected boolean _ignore
Constructor Detail |
---|
VariableBase()
Method Detail |
---|
public void disable()
public void addReference(VariableRefBase vref)
public void mapRegister(MethodGenerator methodGen)
public void unmapRegister(MethodGenerator methodGen)
public Instruction loadInstruction()
public Instruction storeInstruction()
public Expression getExpression()
public java.lang.String toString()
toString
in class java.lang.Object
public void display(int indent)
display
in class TopLevelElement
indent
- Indentation level for syntax tree levels.public Type getType()
public QName getName()
public java.lang.String getEscapedName()
public void setName(QName name)
public boolean isLocal()
public void parseContents(Parser parser)
parseContents
in class SyntaxTreeNode
parser
- reference to the XSLT parserpublic void translateValue(ClassGenerator classGen, MethodGenerator methodGen)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |