public abstract class SingleInstruction extends PatternElement
PatternElement
Constructor and Description |
---|
SingleInstruction() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptBranch(Edge edge,
org.apache.bcel.generic.InstructionHandle source)
Return whether or not it is acceptable to take the given branch.
|
int |
maxOccur()
Return the maximum number of instructions this PatternElement must match
in the ByteCodePattern.
|
int |
minOccur()
Return the minimum number of instructions this PatternElement must match
in the ByteCodePattern.
|
addOrCheckDefinition, allowTrailingEdges, dominatedBy, getDominatedBy, getLabel, getNext, label, lookup, match, setAllowTrailingEdges, setIndex, setNext, toString
public boolean acceptBranch(Edge edge, org.apache.bcel.generic.InstructionHandle source)
PatternElement
acceptBranch
in class PatternElement
edge
- the Edge representing the branchsource
- the source instruction of the branchpublic int minOccur()
PatternElement
minOccur
in class PatternElement
public int maxOccur()
PatternElement
maxOccur
in class PatternElement
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.