public void visitCatchInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Catch catch_) { // Convert this pseudo-instruction into a corresponding // pseudo-instruction for the code attribute editor. // Then make sure we create and reference unique labels, // because there may be other matching sequences. replacementInstruction = codeAttributeEditor.catch_(uniqueLabel(catch_.identifier), uniqueLabel(catch_.startOfffset), uniqueLabel(catch_.endOffset), matchedConstantIndex((ProgramClass)clazz, catch_.catchType)); } }
public void visitCatchInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Catch catch_) { // Convert this pseudo-instruction into a corresponding // pseudo-instruction for the code attribute editor. // Then make sure we create and reference unique labels, // because there may be other matching sequences. replacementInstruction = codeAttributeEditor.catch_(uniqueLabel(catch_.identifier), uniqueLabel(catch_.startOfffset), uniqueLabel(catch_.endOffset), matchedConstantIndex((ProgramClass)clazz, catch_.catchType)); } }
public void visitCatchInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Catch catch_) { // Convert this pseudo-instruction into a corresponding // pseudo-instruction for the code attribute editor. // Then make sure we create and reference unique labels, // because there may be other matching sequences. replacementInstruction = codeAttributeEditor.catch_(uniqueLabel(catch_.identifier), uniqueLabel(catch_.startOfffset), uniqueLabel(catch_.endOffset), matchedConstantIndex((ProgramClass)clazz, catch_.catchType)); } }
public void visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction) { replacementInstruction = new ConstantInstruction(constantInstruction.opcode, matchedConstantIndex((ProgramClass)clazz, constantInstruction.constantIndex), instructionSequenceMatcher.matchedArgument(constantInstruction.constant)); }
public void visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction) { replacementInstruction = new ConstantInstruction(constantInstruction.opcode, matchedConstantIndex((ProgramClass)clazz, constantInstruction.constantIndex), instructionSequenceMatcher.matchedArgument(constantInstruction.constant)); }
public void visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction) { replacementInstruction = new ConstantInstruction(constantInstruction.opcode, matchedConstantIndex((ProgramClass)clazz, constantInstruction.constantIndex), instructionSequenceMatcher.matchedArgument(constantInstruction.constant)); }
@Override protected int matchedConstantIndex(ProgramClass programClass, int constantIndex) { switch (constantIndex) { case ConfigurationLoggingInstructionSequenceConstants.CLASS_NAME: return new ConstantPoolEditor(programClass) .addStringConstant(ClassUtil.externalClassName(programClass.getName()), programClass, null); default: return super.matchedConstantIndex(programClass, constantIndex); } } }
@Override protected int matchedConstantIndex(ProgramClass programClass, int constantIndex) { switch (constantIndex) { case ConfigurationLoggingInstructionSequenceConstants.CLASS_NAME: return new ConstantPoolEditor(programClass) .addStringConstant(ClassUtil.externalClassName(programClass.getName()), programClass, null); default: return super.matchedConstantIndex(programClass, constantIndex); } } }
@Override protected int matchedConstantIndex(ProgramClass programClass, int constantIndex) { switch (constantIndex) { case ConfigurationLoggingInstructionSequenceConstants.CLASS_NAME: return new ConstantPoolEditor(programClass) .addStringConstant(ClassUtil.externalClassName(programClass.getName()), programClass, null); default: return super.matchedConstantIndex(programClass, constantIndex); } } }