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

pack-priv final Class Param

extends VariableBase
Class Inheritance
Imports
com.sun.org.apache.bcel.internal.classfile.Field, com.sun.org.apache.bcel.internal.generic.BranchHandle, .CHECKCAST, .IFNONNULL, .ConstantPoolGen, .INVOKEVIRTUAL, .Instruction, .InstructionList, .PUSH, .PUTFIELD, com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator, .ErrorMsg, .MethodGenerator, .ReferenceType, .Type, .ObjectType, .TypeCheckError, com.sun.org.apache.xalan.internal.xsltc.runtime.BasisLibrary

Authors
Jacek Ambroziak, Santiago Pericas-Geertsen, Morten Jorgensen, Erwin Bolwidt , John Howard

Field Summary

Modifier and TypeField and Description
private boolean
_isInSimpleNamedTemplate

True if this Param is declared in a simple named template.

Inherited from com.sun.org.apache.xalan.internal.xsltc.compiler.VariableBase:
_escapedName_ignore_isLocal_loadInstruction_local_name_refs_select_storeInstruction_typeselect

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
display(int indent)

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

Display variable in a full AST dump

public void
parseContents(Parser parser)

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

Parse the contents of the <xsl:param> element.

public Instruction
setLoadInstruction(Instruction instruction)

Set the instruction for loading the value of this variable onto the JVM stack and returns the old instruction.

public Instruction
setStoreInstruction(Instruction instruction)

Set the instruction for storing a value from the stack into this variable and returns the old instruction.

public String
public void
translate(ClassGenerator classGen, MethodGenerator methodGen)

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

Translate this node into JVM bytecodes.

public Type
Inherited from com.sun.org.apache.xalan.internal.xsltc.compiler.VariableBase:
addReferencecopyReferencesdisablegetEscapedNamegetExpressiongetNamegetTypeisLocalloadInstructionmapRegistersetNamestoreInstructiontranslateValueunmapRegister

Field Detail

_isInSimpleNamedTemplateback to summary
private boolean _isInSimpleNamedTemplate

True if this Param is declared in a simple named template. This is used to optimize codegen for parameter passing in named templates.

Constructor Detail

Paramback to summary
pack-priv Param()

Method Detail

displayback to summary
public void display(int indent)

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

Display variable in a full AST dump

parseContentsback to summary
public void parseContents(Parser parser)

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

Parse the contents of the <xsl:param> element. This method must read the 'name' (required) and 'select' (optional) attributes.

setLoadInstructionback to summary
public Instruction setLoadInstruction(Instruction instruction)

Set the instruction for loading the value of this variable onto the JVM stack and returns the old instruction.

setStoreInstructionback to summary
public Instruction setStoreInstruction(Instruction instruction)

Set the instruction for storing a value from the stack into this variable and returns the old instruction.

toStringback to summary
public String toString()

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.VariableBase.toString.

Display variable as single string

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

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

Doc from com.sun.org.apache.xalan.internal.xsltc.compiler.TopLevelElement.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.TopLevelElement.typeCheck.

Type-checks the parameter. The parameter type is determined by the 'select' expression (if present) or is a result tree if the parameter element has a body and no 'select' expression.