edu.umd.cs.findbugs.ba.bcp
public class PatternElementMatch extends Object
Constructor Summary | |
---|---|
PatternElementMatch(PatternElement patternElement, InstructionHandle matchedInstruction, BasicBlock basicBlock, int matchCount, PatternElementMatch prev)
Constructor.
|
Method Summary | |
---|---|
boolean | allowTrailingEdges()
Return whether or not the most recently matched instruction
allows trailing edges. |
BasicBlock | getBasicBlock()
Get the basic block containing the matched instruction. |
PatternElementMatch | getFirstLabeledMatch(String label)
Get first match element with given label,
if any. |
InstructionHandle | getLabeledInstruction(String label)
Get the first instruction matched by the PatternElement with given label. |
PatternElementMatch | getLastLabeledMatch(String label)
Get last match element with given label,
if any. |
int | getMatchCount() |
InstructionHandle | getMatchedInstructionInstructionHandle()
Get the matched instruction. |
PatternElement | getPatternElement()
Get the PatternElement. |
PatternElementMatch | getPrev()
Get the previous PatternMatchElement. |
Parameters: patternElement the PatternElement being matched matchedInstruction the instruction which matched the PatternElement basicBlock the basic block containing the matched instruction matchCount the index (starting at zero) of the instructions matching the PatternElement; multiple instructions can match the same PatternElement prev the previous PatternElementMatch