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

pack-priv final Class Variable

extends VariableBase
Class Inheritance
Imports
com.sun.org.apache.bcel.internal.classfile.Field, com.sun.org.apache.bcel.internal.generic.ACONST_NULL, .ConstantPoolGen, .DCONST, .ICONST, .InstructionHandle, .InstructionList, .PUTFIELD, com.sun.org.apache.xalan.internal.xsltc.compiler.util.BooleanType, .ClassGenerator, .ErrorMsg, .IntType, .MethodGenerator, .NodeType, .RealType, .Type, .TypeCheckError

Field Summary

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 int
public void
initialize(ClassGenerator classGen, MethodGenerator methodGen)

This method is part of a little trick that is needed to use local variables inside nested for-each loops.

public void
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
typeCheck(SymbolTable stable)

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

Runs a type check on either the variable element body or the expression in the 'select' attribute

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

Constructor Detail

Variableback to summary
pack-priv Variable()

Method Detail

getIndexback to summary
public int getIndex()
initializeback to summary
public void initialize(ClassGenerator classGen, MethodGenerator methodGen)

This method is part of a little trick that is needed to use local variables inside nested for-each loops. See the initializeVariables() method in the ForEach class for an explanation

parseContentsback to summary
public void parseContents(Parser parser)

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

Parse the contents of the variable

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.

Runs a type check on either the variable element body or the expression in the 'select' attribute