public int[] matchedArguments(int[] arguments) { int[] matchedArguments = new int[arguments.length]; for (int index = 0; index < arguments.length; index++) { matchedArguments[index] = matchedArgument(arguments[index]); } return matchedArguments; }
/** * Returns the values of the specified matched arguments (wildcard or not). */ public int[] matchedArguments(int[] arguments) { int[] matchedArguments = new int[arguments.length]; for (int index = 0; index < arguments.length; index++) { matchedArguments[index] = matchedArgument(arguments[index]); } return matchedArguments; }
/** * Returns the values of the specified matched arguments (wildcard or not). */ public int[] matchedArguments(int[] arguments) { int[] matchedArguments = new int[arguments.length]; for (int index = 0; index < arguments.length; index++) { matchedArguments[index] = matchedArgument(arguments[index]); } return matchedArguments; }
/** * Returns the values of the specified matched arguments (wildcard or not). */ public int[] matchedArguments(int[] arguments) { int[] matchedArguments = new int[arguments.length]; for (int index = 0; index < arguments.length; index++) { matchedArguments[index] = matchedArgument(arguments[index]); } return matchedArguments; }
protected int matchedArgument(int argument) { return instructionSequenceMatcher.matchedArgument(argument); }
protected int matchedArgument(int argument) { return instructionSequenceMatcher.matchedArgument(argument); }
public void visitVariableInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VariableInstruction variableInstruction) { replacementInstruction = new VariableInstruction(variableInstruction.opcode, instructionSequenceMatcher.matchedArgument(variableInstruction.variableIndex), instructionSequenceMatcher.matchedArgument(variableInstruction.constant)); }
public void visitSimpleInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, SimpleInstruction simpleInstruction) { replacementInstruction = new SimpleInstruction(simpleInstruction.opcode, instructionSequenceMatcher.matchedArgument(simpleInstruction.constant)); }
public void visitTableSwitchInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, TableSwitchInstruction tableSwitchInstruction) { replacementInstruction = new TableSwitchInstruction(tableSwitchInstruction.opcode, matchedBranchOffset(offset, tableSwitchInstruction.defaultOffset), instructionSequenceMatcher.matchedArgument(tableSwitchInstruction.lowCase), instructionSequenceMatcher.matchedArgument(tableSwitchInstruction.highCase), matchedJumpOffsets(offset, tableSwitchInstruction.jumpOffsets)); }
public void visitTableSwitchInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, TableSwitchInstruction tableSwitchInstruction) { replacementInstruction = new TableSwitchInstruction(tableSwitchInstruction.opcode, instructionSequenceMatcher.matchedBranchOffset(offset, tableSwitchInstruction.defaultOffset), instructionSequenceMatcher.matchedArgument(tableSwitchInstruction.lowCase), instructionSequenceMatcher.matchedArgument(tableSwitchInstruction.highCase), instructionSequenceMatcher.matchedJumpOffsets(offset, tableSwitchInstruction.jumpOffsets)); }
public void visitTableSwitchInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, TableSwitchInstruction tableSwitchInstruction) { replacementInstruction = new TableSwitchInstruction(tableSwitchInstruction.opcode, matchedBranchOffset(offset, tableSwitchInstruction.defaultOffset), instructionSequenceMatcher.matchedArgument(tableSwitchInstruction.lowCase), instructionSequenceMatcher.matchedArgument(tableSwitchInstruction.highCase), matchedJumpOffsets(offset, tableSwitchInstruction.jumpOffsets)); }
public void visitTableSwitchInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, TableSwitchInstruction tableSwitchInstruction) { replacementInstruction = new TableSwitchInstruction(tableSwitchInstruction.opcode, matchedBranchOffset(offset, tableSwitchInstruction.defaultOffset), instructionSequenceMatcher.matchedArgument(tableSwitchInstruction.lowCase), instructionSequenceMatcher.matchedArgument(tableSwitchInstruction.highCase), matchedJumpOffsets(offset, tableSwitchInstruction.jumpOffsets)); }
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 visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction) { replacementInstruction = new ConstantInstruction(constantInstruction.opcode, instructionSequenceMatcher.matchedConstantIndex(constantInstruction.constantIndex), instructionSequenceMatcher.matchedArgument(constantInstruction.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 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 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 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 visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction) { instruction.accept(clazz, method, codeAttribute, offset, invokeMatcher); if (invokeMatcher.isMatching()) { MethodrefConstant methodrefConstant = (MethodrefConstant)((ProgramClass)clazz).getConstant(invokeMatcher.matchedArgument(FIELD_INDEX)); if (ClassConstants.METHOD_NAME_INIT.equals(methodrefConstant.getName(clazz))) { isSuperConstructorCalled |= methodrefConstant.getClassName(clazz).equals(clazz.getSuperName()); } } }