public class PatternElementMatch extends 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(Object o) |
BasicBlock |
getBasicBlock()
Get the basic block containing the matched instruction.
|
PatternElementMatch |
getFirstLabeledMatch(String label)
Get first match element with given label, if any.
|
org.apache.bcel.generic.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() |
org.apache.bcel.generic.InstructionHandle |
getMatchedInstructionInstructionHandle()
Get the matched instruction.
|
PatternElement |
getPatternElement()
Get the PatternElement.
|
PatternElementMatch |
getPrev()
Get the previous PatternMatchElement.
|
int |
hashCode() |
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(String label)
public PatternElementMatch getFirstLabeledMatch(String label)
public PatternElementMatch getLastLabeledMatch(String label)
public boolean allowTrailingEdges()
Copyright © 2003–2015. All rights reserved.