1 16 19 20 package com.sun.org.apache.xalan.internal.xsltc.compiler.util; 21 22 import com.sun.org.apache.bcel.internal.generic.ALOAD; 23 import com.sun.org.apache.bcel.internal.generic.ASTORE; 24 import com.sun.org.apache.bcel.internal.generic.ConstantPoolGen; 25 import com.sun.org.apache.bcel.internal.generic.Instruction; 26 import com.sun.org.apache.bcel.internal.generic.InstructionList; 27 import com.sun.org.apache.bcel.internal.generic.Type; 28 29 35 public final class RtMethodGenerator extends MethodGenerator { 36 private static final int HANDLER_INDEX = 2; 37 private final Instruction _astoreHandler; 38 private final Instruction _aloadHandler; 39 40 public RtMethodGenerator(int access_flags, Type return_type, 41 Type[] arg_types, String [] arg_names, 42 String method_name, String class_name, 43 InstructionList il, ConstantPoolGen cp) { 44 super(access_flags, return_type, arg_types, arg_names, method_name, 45 class_name, il, cp); 46 47 _astoreHandler = new ASTORE(HANDLER_INDEX); 48 _aloadHandler = new ALOAD(HANDLER_INDEX); 49 } 50 51 public int getIteratorIndex() { 52 return INVALID_INDEX; } 54 55 public final Instruction storeHandler() { 56 return _astoreHandler; 57 } 58 59 public final Instruction loadHandler() { 60 return _aloadHandler; 61 } 62 63 public int getLocalIndex(String name) { 64 return INVALID_INDEX; } 66 } 67 | Popular Tags |