|
||||||||||
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.Instruction org.apache.xalan.xsltc.compiler.WithParam
final class WithParam
Field Summary | |
---|---|
private boolean |
_doParameterOptimization
%OPT% This is set to true when the WithParam is used in a CallTemplate for a simple named template. |
protected java.lang.String |
_escapedName
The escaped qname of the with-param. |
private QName |
_name
Parameter's name. |
private Expression |
_select
Parameter's default value. |
Fields inherited from class org.apache.xalan.xsltc.compiler.SyntaxTreeNode |
---|
_attributes, _parent, _qname, Dummy, IndentIncrement, UNKNOWN_STYLESHEET_NODE_ID |
Constructor Summary | |
---|---|
WithParam()
|
Method Summary | |
---|---|
void |
display(int indent)
Displays the contents of this element |
java.lang.String |
getEscapedName()
Returns the escaped qname of the parameter |
QName |
getName()
Return the name of this WithParam. |
void |
parseContents(Parser parser)
The contents of a |
void |
setDoParameterOptimization(boolean flag)
Set the do parameter optimization flag |
void |
setName(QName name)
Set the name of the variable or paremeter. |
void |
translate(ClassGenerator classGen,
MethodGenerator methodGen)
This code generates a sequence of bytecodes that call the addParameter() method in AbstractTranslet. |
void |
translateValue(ClassGenerator classGen,
MethodGenerator methodGen)
Compile the value of the parameter, which is either in an expression in a 'select' attribute, or in the with-param element's body |
Type |
typeCheck(SymbolTable stable)
Type-check either the select attribute or the element body, depending on which is in use. |
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, toString, wait, wait, wait |
Field Detail |
---|
private QName _name
protected java.lang.String _escapedName
private Expression _select
private boolean _doParameterOptimization
Constructor Detail |
---|
WithParam()
Method Detail |
---|
public void display(int indent)
display
in class SyntaxTreeNode
indent
- Indentation level for syntax tree levels.public java.lang.String getEscapedName()
public QName getName()
public void setName(QName name)
public void setDoParameterOptimization(boolean flag)
public void parseContents(Parser parser)
parseContents
in class SyntaxTreeNode
parser
- reference to the XSLT parserpublic Type typeCheck(SymbolTable stable) throws TypeCheckError
typeCheck
in class Instruction
stable
- The compiler/parser's symbol table
TypeCheckError
public void translateValue(ClassGenerator classGen, MethodGenerator methodGen)
public void translate(ClassGenerator classGen, MethodGenerator methodGen)
translate
in class Instruction
classGen
- BCEL Java class generatormethodGen
- BCEL Java method generator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |