public class InstructionSequencesReplacer extends MultiInstructionVisitor implements InstructionVisitor
InstructionSequenceReplacer| Constructor and Description |
|---|
InstructionSequencesReplacer(Constant[] patternConstants,
Instruction[][][] instructionSequences,
BranchTargetFinder branchTargetFinder,
CodeAttributeEditor codeAttributeEditor)
Creates a new InstructionSequencesReplacer.
|
InstructionSequencesReplacer(Constant[] patternConstants,
Instruction[][][] instructionSequences,
BranchTargetFinder branchTargetFinder,
CodeAttributeEditor codeAttributeEditor,
InstructionVisitor extraInstructionVisitor)
Creates a new InstructionSequenceReplacer.
|
addInstructionVisitor, visitBranchInstruction, visitConstantInstruction, visitLookUpSwitchInstruction, visitSimpleInstruction, visitTableSwitchInstruction, visitVariableInstructionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisitBranchInstruction, visitConstantInstruction, visitLookUpSwitchInstruction, visitSimpleInstruction, visitTableSwitchInstruction, visitVariableInstructionpublic InstructionSequencesReplacer(Constant[] patternConstants, Instruction[][][] instructionSequences, BranchTargetFinder branchTargetFinder, CodeAttributeEditor codeAttributeEditor)
patternConstants - any constants referenced by the pattern
instruction.instructionSequences - the instruction sequences to be replaced,
with subsequently the sequence pair index,
the patten/replacement index (0 or 1),
and the instruction index in the sequence.branchTargetFinder - a branch target finder that has been
initialized to indicate branch targets
in the visited code.codeAttributeEditor - a code editor that can be used for
accumulating changes to the code.public InstructionSequencesReplacer(Constant[] patternConstants, Instruction[][][] instructionSequences, BranchTargetFinder branchTargetFinder, CodeAttributeEditor codeAttributeEditor, InstructionVisitor extraInstructionVisitor)
patternConstants - any constants referenced by the pattern
instruction.instructionSequences - the instruction sequences to be replaced,
with subsequently the sequence pair index,
the patten/replacement index (0 or 1),
and the instruction index in the sequence.branchTargetFinder - a branch target finder that has been
initialized to indicate branch targets
in the visited code.codeAttributeEditor - a code editor that can be used for
accumulating changes to the code.extraInstructionVisitor - an optional extra visitor for all deleted
load instructions.Copyright © 2015. All Rights Reserved.