| Modifier and Type | Field and Description |
|---|---|
| private Template | _calleeTemplate
The corresponding template which this CallTemplate calls. |
| private QName | _name
Name of template to call. |
| private SyntaxTreeNode[] | _parameters
The array of effective parameters in this CallTemplate. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | display(int indent)
Overrides com. Displays the contents of this syntax tree node (to stdout). |
| public Template | |
| public boolean | |
| public void | parseContents(Parser parser)
Overrides com. Parse the contents of this syntax tree nodes (child nodes, XPath expressions, patterns and functions). |
| public void | translate(ClassGenerator classGen, MethodGenerator methodGen)
Overrides com. Translate this node into JVM bytecodes. |
| public Type | typeCheck(SymbolTable stable)
Overrides com. Verify that a template with this name exists. |
| _calleeTemplate | back to summary |
|---|---|
| private Template _calleeTemplate The corresponding template which this CallTemplate calls. | |
| _name | back to summary |
|---|---|
| private QName _name Name of template to call. | |
| _parameters | back to summary |
|---|---|
| private SyntaxTreeNode[] _parameters The array of effective parameters in this CallTemplate. An object in this array can be either a WithParam or a Param if no WithParam exists for a particular parameter. | |
| CallTemplate | back to summary |
|---|---|
| pack-priv CallTemplate() | |
| buildParameterList | back to summary |
|---|---|
| private void buildParameterList() Build the list of effective parameters in this CallTemplate. The parameters of the called template are put into the array first. Then we visit the WithParam children of this CallTemplate and replace the Param with a corresponding WithParam having the same name. | |
| display | back to summary |
|---|---|
| public void display(int indent) Overrides com. Doc from com. Displays the contents of this syntax tree node (to stdout). This method is intended for debugging _only_, and should be overridden by all syntax tree node implementations. | |
| getCalleeTemplate | back to summary |
|---|---|
| public Template getCalleeTemplate() Return the simple named template which this CallTemplate calls. Return false if there is no matched template or the matched template is not a simple named template. | |
| hasWithParams | back to summary |
|---|---|
| public boolean hasWithParams() | |
| parseContents | back to summary |
|---|---|
| public void parseContents(Parser parser) Overrides com. Doc from com. Parse the contents of this syntax tree nodes (child nodes, XPath expressions, patterns and functions). The default behaviour is to parser the syntax tree node's children (since there are no common expressions, patterns, etc. that can be handled in this base class. | |
| translate | back to summary |
|---|---|
| public void translate(ClassGenerator classGen, MethodGenerator methodGen) Overrides com. Doc from com. Translate this node into JVM bytecodes. | |
| typeCheck | back to summary |
|---|---|
| public Type typeCheck(SymbolTable stable) throws TypeCheckError Overrides com. Verify that a template with this name exists. | |