/** * Creates the replacement instruction for the given index in the * instruction sequence. */ public Instruction create(Clazz clazz, CodeAttribute codeAttribute, int index) { int matchedInstructionIndex = index < instructionSequenceMatcher.instructionCount() ? index : instructionSequenceMatcher.instructionCount() - 1; int matchedInstructionOffset = instructionSequenceMatcher.matchedInstructionOffset(matchedInstructionIndex); // Create the instruction. replacementInstructions[index].accept(clazz, null, codeAttribute, matchedInstructionOffset, this); // Return it. return replacementInstruction; }
/** * Creates the replacement instruction for the given index in the * instruction sequence. */ public Instruction create(Clazz clazz, CodeAttribute codeAttribute, int index) { int matchedInstructionIndex = index < instructionSequenceMatcher.instructionCount() ? index : instructionSequenceMatcher.instructionCount() - 1; int matchedInstructionOffset = instructionSequenceMatcher.matchedInstructionOffset(matchedInstructionIndex); // Create the instruction. replacementInstructions[index].accept(clazz, null, codeAttribute, matchedInstructionOffset, this); // Return it. return replacementInstruction; }
/** * Creates the replacement instruction for the given index in the * instruction sequence. */ public Instruction create(Clazz clazz, CodeAttribute codeAttribute, int index) { int matchedInstructionIndex = index < instructionSequenceMatcher.instructionCount() ? index : instructionSequenceMatcher.instructionCount() - 1; int matchedInstructionOffset = instructionSequenceMatcher.matchedInstructionOffset(matchedInstructionIndex); // Create the instruction. replacementInstructions[index].accept(clazz, null, codeAttribute, matchedInstructionOffset, this); // Return it. return replacementInstruction; }
/** * Returns whether the matched pattern instructions haven't been modified * before. */ private boolean matchedInstructionsUnmodified() { for (int index = 0; index < instructionSequenceMatcher.instructionCount(); index++) { if (codeAttributeEditor.isModified(instructionSequenceMatcher.matchedInstructionOffset(index))) { return false; } } return true; }
/** * Returns whether the matched pattern instructions haven't been modified * before. */ private boolean matchedInstructionsUnmodified() { for (int index = 0; index < instructionSequenceMatcher.instructionCount(); index++) { if (codeAttributeEditor.isModified(instructionSequenceMatcher.matchedInstructionOffset(index))) { return false; } } return true; }
/** * Returns whether the matched pattern instructions haven't been modified * before. */ private boolean matchedInstructionsUnmodified() { for (int index = 0; index < instructionSequenceMatcher.instructionCount(); index++) { if (codeAttributeEditor.isModified(instructionSequenceMatcher.matchedInstructionOffset(index))) { return false; } } return true; }
/** * Returns whether the matched pattern instructions haven't been modified * before. */ private boolean matchedInstructionsUnmodified() { for (int index = 0; index < instructionSequenceMatcher.instructionCount(); index++) { if (codeAttributeEditor.isModified(instructionSequenceMatcher.matchedInstructionOffset(index))) { return false; } } return true; }
int startOffset) final int instructionCount = arrayPreStoreMatcher.instructionCount();
int startOffset) final int instructionCount = arrayPreStoreMatcher.instructionCount();
int startOffset) final int instructionCount = arrayPreStoreMatcher.instructionCount();
for (int index = replacementInstructions.length; index < instructionSequenceMatcher.instructionCount(); index++)
constantSequenceMatcher.instructionCount() - 2);
constantSequenceMatcher.instructionCount() - 2);
constantSequenceMatcher.instructionCount() - 2);
matchedInstructionsUnmodified()) int patternCount = instructionSequenceMatcher.instructionCount(); int replacementCount = replacementInstructions.length;
matchedInstructionsUnmodified()) int patternCount = instructionSequenceMatcher.instructionCount(); int replacementCount = replacementInstructions.length;
matchedInstructionsUnmodified()) int patternCount = instructionSequenceMatcher.instructionCount(); int replacementCount = replacementInstructions.length;