Class SequenceSearchOperation
- java.lang.Object
-
- org.adoptopenjdk.jitwatch.jarscan.sequencesearch.SequenceSearchOperation
-
- All Implemented Interfaces:
IJarScanOperation
public class SequenceSearchOperation extends java.lang.Object implements IJarScanOperation
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Opcode>chainprivate java.util.List<FoundSequence>matchingMethodsprivate java.util.List<Opcode>wantedChain
-
Constructor Summary
Constructors Constructor Description SequenceSearchOperation(java.lang.String sequence)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleancompareChains()private intgetIndexForBCI(java.util.List<BytecodeInstruction> instructions, int bci)java.lang.StringgetReport()private booleanhandleChainStartingAtIndex(int index, java.util.List<BytecodeInstruction> instructions)voidprocessInstructions(java.lang.String className, MemberBytecode memberBytecode)voidreset()
-
-
-
Field Detail
-
matchingMethods
private java.util.List<FoundSequence> matchingMethods
-
chain
private java.util.List<Opcode> chain
-
wantedChain
private java.util.List<Opcode> wantedChain
-
-
Method Detail
-
compareChains
private boolean compareChains()
-
reset
public void reset()
-
processInstructions
public void processInstructions(java.lang.String className, MemberBytecode memberBytecode)- Specified by:
processInstructionsin interfaceIJarScanOperation
-
handleChainStartingAtIndex
private boolean handleChainStartingAtIndex(int index, java.util.List<BytecodeInstruction> instructions)
-
getIndexForBCI
private int getIndexForBCI(java.util.List<BytecodeInstruction> instructions, int bci)
-
getReport
public java.lang.String getReport()
- Specified by:
getReportin interfaceIJarScanOperation
-
-