|
||||||||||
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.CallTemplate
final class CallTemplate
Field Summary | |
---|---|
private Template |
_calleeTemplate
The corresponding template which this CallTemplate calls. |
private QName |
_name
Name of template to call. |
private java.lang.Object[] |
_parameters
The array of effective parameters in this CallTemplate. |
Fields inherited from class org.apache.xalan.xsltc.compiler.SyntaxTreeNode |
---|
_attributes, _parent, _qname, Dummy, IndentIncrement, UNKNOWN_STYLESHEET_NODE_ID |
Constructor Summary | |
---|---|
CallTemplate()
|
Method Summary | |
---|---|
private void |
buildParameterList()
Build the list of effective parameters in this CallTemplate. |
void |
display(int indent)
Displays the contents of this syntax tree node (to stdout). |
Template |
getCalleeTemplate()
Return the simple named template which this CallTemplate calls. |
boolean |
hasWithParams()
|
void |
parseContents(Parser parser)
Parse the contents of this syntax tree nodes (child nodes, XPath expressions, patterns and functions). |
void |
translate(ClassGenerator classGen,
MethodGenerator methodGen)
Translate this node into JVM bytecodes. |
Type |
typeCheck(SymbolTable stable)
Verify that a template with this name exists. |
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
private java.lang.Object[] _parameters
private Template _calleeTemplate
Constructor Detail |
---|
CallTemplate()
Method Detail |
---|
public void display(int indent)
SyntaxTreeNode
display
in class SyntaxTreeNode
indent
- Indentation level for syntax tree levels.public boolean hasWithParams()
public void parseContents(Parser parser)
SyntaxTreeNode
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 translate(ClassGenerator classGen, MethodGenerator methodGen)
Instruction
translate
in class Instruction
classGen
- BCEL Java class generatormethodGen
- BCEL Java method generatorpublic Template getCalleeTemplate()
private void buildParameterList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |