/** * Returns the matched argument for the given pattern argument. */ protected int matchedArgument(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, int argument) { return matchedArgument(clazz, argument); }
/** * Returns the matched argument for the given pattern argument. */ protected int matchedArgument(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, int argument) { return matchedArgument(clazz, argument); }
/** * Returns the matched argument for the given pattern argument. */ protected int matchedArgument(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, int argument) { return matchedArgument(clazz, argument); }
@Override protected int matchedArgument(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, int argument) { switch (argument) { case LOCAL_VARIABLE_INDEX_1: return codeAttribute.u2maxLocals; case LOCAL_VARIABLE_INDEX_2: return codeAttribute.u2maxLocals + 1; case LOCAL_VARIABLE_INDEX_3: return codeAttribute.u2maxLocals + 2; default: return super.matchedArgument(clazz, argument); } }
@Override protected int matchedArgument(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, int argument) { switch (argument) { case LOCAL_VARIABLE_INDEX_1: return codeAttribute.u2maxLocals; case LOCAL_VARIABLE_INDEX_2: return codeAttribute.u2maxLocals + 1; case LOCAL_VARIABLE_INDEX_3: return codeAttribute.u2maxLocals + 2; default: return super.matchedArgument(clazz, argument); } }
@Override protected int matchedArgument(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, int argument) { switch (argument) { case LOCAL_VARIABLE_INDEX_1: return codeAttribute.u2maxLocals; case LOCAL_VARIABLE_INDEX_2: return codeAttribute.u2maxLocals + 1; case LOCAL_VARIABLE_INDEX_3: return codeAttribute.u2maxLocals + 2; default: return super.matchedArgument(clazz, argument); } }
public void visitSimpleInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, SimpleInstruction simpleInstruction) { replacementInstruction = new SimpleInstruction(simpleInstruction.opcode, matchedArgument(clazz, method, codeAttribute, offset, simpleInstruction.constant)); }
public void visitSimpleInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, SimpleInstruction simpleInstruction) { replacementInstruction = new SimpleInstruction(simpleInstruction.opcode, matchedArgument(clazz, method, codeAttribute, offset, simpleInstruction.constant)); }
public void visitSimpleInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, SimpleInstruction simpleInstruction) { replacementInstruction = new SimpleInstruction(simpleInstruction.opcode, matchedArgument(clazz, method, codeAttribute, offset, simpleInstruction.constant)); }
public void visitVariableInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VariableInstruction variableInstruction) { replacementInstruction = new VariableInstruction(variableInstruction.opcode, matchedArgument(clazz, method, codeAttribute, offset, variableInstruction.variableIndex), instructionSequenceMatcher.matchedArgument(variableInstruction.constant)); }
public void visitVariableInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VariableInstruction variableInstruction) { replacementInstruction = new VariableInstruction(variableInstruction.opcode, matchedArgument(clazz, method, codeAttribute, offset, variableInstruction.variableIndex), instructionSequenceMatcher.matchedArgument(variableInstruction.constant)); }
public void visitVariableInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VariableInstruction variableInstruction) { replacementInstruction = new VariableInstruction(variableInstruction.opcode, matchedArgument(clazz, method, codeAttribute, offset, variableInstruction.variableIndex), instructionSequenceMatcher.matchedArgument(variableInstruction.constant)); }
return Boolean.toString((wasConstant(argument) ? ((IntegerConstant)matchedConstant(programClass, argument)).getValue() : matchedArgument(argument)) != 0); matchedArgument(argument))); matchedArgument(argument)); matchedArgument(argument)); matchedArgument(argument)); matchedArgument(argument));
return Boolean.toString((wasConstant(argument) ? ((IntegerConstant)matchedConstant(programClass, argument)).getValue() : matchedArgument(argument)) != 0); matchedArgument(argument))); matchedArgument(argument)); matchedArgument(argument)); matchedArgument(argument)); matchedArgument(argument));
return Boolean.toString((wasConstant(argument) ? ((IntegerConstant)matchedConstant(programClass, argument)).getValue() : matchedArgument(argument)) != 0); matchedArgument(argument))); matchedArgument(argument)); matchedArgument(argument)); matchedArgument(argument)); matchedArgument(argument));