APIdia Launch Partner
Top Fields Constructors Methods
com.sun.org.apache.xalan.internal.xsltc.compiler

pack-priv final Class CallTemplate

extends Instruction
Class Inheritance
Imports
com.sun.org.apache.bcel.internal.generic.ConstantPoolGen, .INVOKEVIRTUAL, .InstructionList, com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator, .ErrorMsg, .MethodGenerator, .Type, .TypeCheckError, .Util, com.sun.org.apache.xml.internal.utils.XML11Char, java.util.List

Authors
Jacek Ambroziak, Santiago Pericas-Geertsen, Erwin Bolwidt

Field Summary

Modifier and TypeField 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.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
buildParameterList()

Build the list of effective parameters in this CallTemplate.

public void
display(int indent)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode.display.

Displays the contents of this syntax tree node (to stdout).

public Template
getCalleeTemplate()

Return the simple named template which this CallTemplate calls.

public boolean
public void
parseContents(Parser parser)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode.parseContents.

Parse the contents of this syntax tree nodes (child nodes, XPath expressions, patterns and functions).

public void
translate(ClassGenerator classGen, MethodGenerator methodGen)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.Instruction.translate.

Translate this node into JVM bytecodes.

public Type
typeCheck(SymbolTable stable)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.Instruction.typeCheck.

Verify that a template with this name exists.

Field Detail

_calleeTemplateback to summary
private Template _calleeTemplate

The corresponding template which this CallTemplate calls.

_nameback to summary
private QName _name

Name of template to call.

_parametersback 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.

Constructor Detail

CallTemplateback to summary
pack-priv CallTemplate()

Method Detail

buildParameterListback 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.

displayback to summary
public void display(int indent)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode.display.

Doc from com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode.display.

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.

getCalleeTemplateback 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.

hasWithParamsback to summary
public boolean hasWithParams()
parseContentsback to summary
public void parseContents(Parser parser)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode.parseContents.

Doc from com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode.parseContents.

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.

translateback to summary
public void translate(ClassGenerator classGen, MethodGenerator methodGen)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.Instruction.translate.

Doc from com.sun.org.apache.xalan.internal.xsltc.compiler.Instruction.translate.

Translate this node into JVM bytecodes.

typeCheckback to summary
public Type typeCheck(SymbolTable stable) throws TypeCheckError

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.Instruction.typeCheck.

Verify that a template with this name exists.