public class PatternElementMatch
extends java.lang.Object
Constructor and Description |
---|
PatternElementMatch(PatternElement patternElement,
org.apache.bcel.generic.InstructionHandle matchedInstruction,
BasicBlock basicBlock,
int matchCount,
PatternElementMatch prev)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowTrailingEdges()
Return whether or not the most recently matched instruction allows
trailing edges.
|
boolean |
equals(java.lang.Object o) |
BasicBlock |
getBasicBlock()
Get the basic block containing the matched instruction.
|
PatternElementMatch |
getFirstLabeledMatch(java.lang.String label)
Get first match element with given label, if any.
|
org.apache.bcel.generic.InstructionHandle |
getLabeledInstruction(java.lang.String label)
Get the first instruction matched by the PatternElement with
given label.
|
PatternElementMatch |
getLastLabeledMatch(java.lang.String label)
Get last match element with given label, if any.
|
int |
getMatchCount() |
org.apache.bcel.generic.InstructionHandle |
getMatchedInstructionInstructionHandle()
Get the matched instruction.
|
PatternElement |
getPatternElement()
Get the PatternElement.
|
PatternElementMatch |
getPrev()
Get the previous PatternMatchElement.
|
int |
hashCode() |
java.lang.String |
toString() |
public PatternElementMatch(PatternElement patternElement, org.apache.bcel.generic.InstructionHandle matchedInstruction, BasicBlock basicBlock, int matchCount, PatternElementMatch prev)
patternElement
- the PatternElement being matchedmatchedInstruction
- the instruction which matched the PatternElementbasicBlock
- the basic block containing the matched instructionmatchCount
- the index (starting at zero) of the instructions matching the
PatternElement; multiple instructions can match the same
PatternElementprev
- the previous PatternElementMatchpublic PatternElement getPatternElement()
public org.apache.bcel.generic.InstructionHandle getMatchedInstructionInstructionHandle()
public BasicBlock getBasicBlock()
public int getMatchCount()
public PatternElementMatch getPrev()
public org.apache.bcel.generic.InstructionHandle getLabeledInstruction(java.lang.String label)
public PatternElementMatch getFirstLabeledMatch(java.lang.String label)
public PatternElementMatch getLastLabeledMatch(java.lang.String label)
public boolean allowTrailingEdges()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.