|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cs.findbugs.ba.bcp.PatternElement
edu.umd.cs.findbugs.ba.bcp.SingleInstruction
public abstract class SingleInstruction
An abstract PatternElement subclass for pattern elements which must match exactly one instruction and accept any kind of branch. (Subclasses may override acceptBranch() to implement more selective handling of branches.)
PatternElement| Constructor Summary | |
|---|---|
SingleInstruction()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class edu.umd.cs.findbugs.ba.bcp.PatternElement |
|---|
addOrCheckDefinition, allowTrailingEdges, dominatedBy, getDominatedBy, getLabel, getNext, label, lookup, match, setAllowTrailingEdges, setIndex, setNext, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SingleInstruction()
| Method Detail |
|---|
public boolean acceptBranch(Edge edge,
org.apache.bcel.generic.InstructionHandle source)
PatternElement
acceptBranch in class PatternElementedge - the Edge representing the branchsource - the source instruction of the branch
public int minOccur()
PatternElement
minOccur in class PatternElementpublic int maxOccur()
PatternElement
maxOccur in class PatternElement
|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||