|
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.Wild
public class Wild
A wildcard PatternElement, which matches any kind of instruction indiscriminately.
PatternElement| Constructor Summary | |
|---|---|
Wild()
Default constructor. |
|
Wild(int max)
Constructor. |
|
Wild(int min,
int max)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
acceptBranch(Edge edge,
org.apache.bcel.generic.InstructionHandle source)
Return whether or not it is acceptable to take the given branch. |
MatchResult |
match(org.apache.bcel.generic.InstructionHandle handle,
org.apache.bcel.generic.ConstantPoolGen cpg,
ValueNumberFrame before,
ValueNumberFrame after,
BindingSet bindingSet)
Return whether or not this element matches the given instruction with the given Bindings in effect. |
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. |
void |
setMinAndMax(int min,
int max)
Set min and max values. |
| Methods inherited from class edu.umd.cs.findbugs.ba.bcp.PatternElement |
|---|
addOrCheckDefinition, allowTrailingEdges, dominatedBy, getDominatedBy, getLabel, getNext, label, lookup, setAllowTrailingEdges, setIndex, setNext, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Wild()
public Wild(int max)
max - the maximum number of instructions the wildcard may match
public Wild(int min,
int max)
min - minimum number of times the wildcard must matchmax - maximum number of times the wildcard may match| Method Detail |
|---|
public void setMinAndMax(int min,
int max)
min - minimum number of times the wildcard must matchmax - maximum number of times the wildcard may matchpublic int minOccur()
PatternElement
minOccur in class PatternElementpublic int maxOccur()
PatternElement
maxOccur in class PatternElement
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 MatchResult match(org.apache.bcel.generic.InstructionHandle handle,
org.apache.bcel.generic.ConstantPoolGen cpg,
ValueNumberFrame before,
ValueNumberFrame after,
BindingSet bindingSet)
throws DataflowAnalysisException
PatternElement
match in class PatternElementhandle - the instructioncpg - the ConstantPoolGen from the methodbefore - the ValueNumberFrame representing values in the Java stack frame
just before the execution of the instructionafter - the ValueNumberFrame representing values in the Java stack frame
just after the execution of the instructionbindingSet - the set of Bindings
DataflowAnalysisException
|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||