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

public final Class NamedMethodGenerator

extends MethodGenerator
Class Inheritance
Imports
com.sun.org.apache.bcel.internal.generic.ALOAD, .ASTORE, .ConstantPoolGen, .Instruction, .InstructionList, .Type

This class is used for named templates. Named template methods have access to the DOM, the current iterator, the handler and the current node.
Authors
Jacek Ambroziak, Santiago Pericas-Geertsen

Field Summary

Modifier and TypeField and Description
protected static final int
private static final int
Inherited from com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator:
INVALID_INDEX

Constructor Summary

AccessConstructor and Description
public
NamedMethodGenerator(int access_flags, Type return_type, Type[] arg_types, String[] arg_names, String method_name, String class_name, InstructionList il, ConstantPoolGen cp)

Method Summary

Modifier and TypeMethod and Description
public int
public Instruction
loadParameter(int index)

public Instruction
storeParameter(int index)

Inherited from com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator:
addInstructionListaddLocalVariableaddLocalVariable2attributeendDocumentendElementgetGeneratedMethodsgetInstructionListgetLocalVariablegetThisMethodloadContextNodeloadCurrentNodeloadDOMloadHandlerloadIteratormarkChunkEndmarkChunkStartnamespacenextNodeoffsetInLocalVariableGenRangeoutlineChunksremoveLocalVariableresetsetMaxLocalssetStartNodestartDocumentstartElementstoreContextNodestoreCurrentNodestoreDOMstoreHandlerstoreIteratoruniqueAttributewidenConditionalBranchTargetOffsets

Field Detail

CURRENT_INDEXback to summary
protected static final int CURRENT_INDEX
PARAM_START_INDEXback to summary
private static final int PARAM_START_INDEX

Constructor Detail

NamedMethodGeneratorback to summary
public NamedMethodGenerator(int access_flags, Type return_type, Type[] arg_types, String[] arg_names, String method_name, String class_name, InstructionList il, ConstantPoolGen cp)

Method Detail

getLocalIndexback to summary
public int getLocalIndex(String name)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.util.MethodGenerator.getLocalIndex.

loadParameterback to summary
public Instruction loadParameter(int index)
storeParameterback to summary
public Instruction storeParameter(int index)