public class Wild extends PatternElement
PatternElement| Constructor | Description |
|---|---|
Wild() |
Default constructor.
|
Wild(int max) |
Constructor.
|
Wild(int min,
int max) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddOrCheckDefinition, allowTrailingEdges, dominatedBy, getDominatedBy, getLabel, getNext, label, lookup, setAllowTrailingEdges, setIndex, setNext, toStringpublic Wild()
public Wild(int max)
max - the maximum number of instructions the wildcard may matchpublic Wild(int min,
int max)
min - minimum number of times the wildcard must matchmax - maximum number of times the wildcard may matchpublic 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()
PatternElementminOccur in class PatternElementpublic int maxOccur()
PatternElementmaxOccur in class PatternElementpublic boolean acceptBranch(Edge edge, org.apache.bcel.generic.InstructionHandle source)
PatternElementacceptBranch in class PatternElementedge - the Edge representing the branchsource - the source instruction of the branchpublic MatchResult match(org.apache.bcel.generic.InstructionHandle handle, org.apache.bcel.generic.ConstantPoolGen cpg, ValueNumberFrame before, ValueNumberFrame after, BindingSet bindingSet) throws DataflowAnalysisException
PatternElementmatch 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 BindingsDataflowAnalysisExceptionFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.