FileDocCategorySizeDatePackage
AttributeSetMethodGenerator.javaAPI DocJava SE 6 API2666Tue Jun 10 00:22:30 BST 2008com.sun.org.apache.xalan.internal.xsltc.compiler.util

AttributeSetMethodGenerator

public final class AttributeSetMethodGenerator extends MethodGenerator
author
Santiago Pericas-Geertsen

Fields Summary
protected static final int
CURRENT_INDEX
private static final int
PARAM_START_INDEX
private static final String[]
argNames
private static final Type[]
argTypes
Constructors Summary
public AttributeSetMethodGenerator(String methodName, ClassGenerator classGen)

    
     
	argTypes[0] = Util.getJCRefType(DOM_INTF_SIG);
	argTypes[1] = Util.getJCRefType(NODE_ITERATOR_SIG);
	argTypes[2] = Util.getJCRefType(TRANSLET_OUTPUT_SIG);
	argTypes[3] = com.sun.org.apache.bcel.internal.generic.Type.INT;
	argNames[0] = DOCUMENT_PNAME;
	argNames[1] = ITERATOR_PNAME;
	argNames[2] = TRANSLET_OUTPUT_PNAME;
	argNames[3] = NODE_PNAME;
    
	super(com.sun.org.apache.bcel.internal.Constants.ACC_PRIVATE,
	      com.sun.org.apache.bcel.internal.generic.Type.VOID,
	      argTypes, argNames, methodName, 
	      classGen.getClassName(),
	      new InstructionList(),
	      classGen.getConstantPool());
   
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);