FileDocCategorySizeDatePackage
NamedMethodGenerator.javaAPI DocJava SE 5 API2268Fri Aug 26 14:55:38 BST 2005com.sun.org.apache.xalan.internal.xsltc.compiler.util

NamedMethodGenerator

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

Fields Summary
protected static int
CURRENT_INDEX
private static final int
PARAM_START_INDEX
Constructors 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)


        
				   
				   
				    
	super(access_flags, return_type, arg_types, arg_names, method_name, 
	      class_name, il, cp);
    
Methods Summary
public intgetLocalIndex(java.lang.String name)

	if (name.equals("current")) {
	    return CURRENT_INDEX;
	}
	return super.getLocalIndex(name);
    
public com.sun.org.apache.bcel.internal.generic.InstructionloadParameter(int index)

        return new ALOAD(index + PARAM_START_INDEX);
    
public com.sun.org.apache.bcel.internal.generic.InstructionstoreParameter(int index)

        return new ASTORE(index + PARAM_START_INDEX);