236237238239240241242243244245246
else { final ConstantPoolGen cpg = classGen.getConstantPool(); final InstructionList il = methodGen.getInstructionList(); final int initBuffer = cpg.addMethodref(STRING_BUFFER_CLASS, "<init>", "()V"); final Instruction append = new INVOKEVIRTUAL(cpg.addMethodref(STRING_BUFFER_CLASS, "append", "(" + STRING_SIG + ")" + STRING_BUFFER_SIG));
7273747576777879808182
break; default: final int initBuffer = cpg.addMethodref(STRING_BUFFER_CLASS, "<init>", "()V"); final Instruction append = new INVOKEVIRTUAL(cpg.addMethodref(STRING_BUFFER_CLASS, "append", "("+STRING_SIG+")" +STRING_BUFFER_SIG));
124125126127128129130131132133134
/** * Returns an instruction for loading the value of this variable onto * the JVM stack. */ public Instruction loadInstruction() { final Instruction instr = _loadInstruction; if (_loadInstruction == null) { _loadInstruction = _type.LOAD(_local.getIndex()); } return _loadInstruction; }
136137138139140141142143144145146
/** * Returns an instruction for storing a value from the JVM stack * into this variable. */ public Instruction storeInstruction() { final Instruction instr = _storeInstruction; if (_storeInstruction == null) { _storeInstruction = _type.STORE(_local.getIndex()); } return _storeInstruction; }
686970717273747576
/** * Set the instruction for loading the value of this variable onto the * JVM stack and returns the old instruction. */ public Instruction setLoadInstruction(Instruction instruction) { Instruction tmp = _loadInstruction; _loadInstruction = instruction; return tmp; }
787980818283848586
/** * Set the instruction for storing a value from the stack into this * variable and returns the old instruction. */ public Instruction setStoreInstruction(Instruction instruction) { Instruction tmp = _storeInstruction; _storeInstruction = instruction; return tmp; }
14641465146614671468146914701471147214731474
try { if (!match[0].hasTargeters() && !match[1].hasTargeters() && !match[2].hasTargeters()) { Instruction load_m = match[1].getInstruction(); il.insert(match[0], load_m); il.delete(match[1], match[2]); } } catch (TargetLostException e) {
132133134135136137138139140141142
144145146147148149150151152153154
14661467146814691470147114721473147414751476