edu.umd.cs.findbugs.ba.bcp
public class ByteCodePattern extends Object
See Also: PatternElement PatternMatcher
Method Summary | |
---|---|
ByteCodePattern | add(PatternElement element)
Add a PatternElement to the end of the pattern.
|
ByteCodePattern | addWild(int numWild)
Add a wildcard to match between 0 and given number of instructions.
|
String | dummyVariable()
Get a dummy variable name.
|
PatternElement | getFirst()
Get the first PatternElement in the pattern. |
ByteCodePattern | setInterElementWild(int numWild)
Set number of inter-element wildcards to create between
explicit PatternElements. |
Parameters: element the PatternElement
Returns: this object
Parameters: numWild maximum number of instructions to be matched by the wildcard
'$'
character,
and will be different than any previous dummy variable name allocated
by this object. Dummy variable names are useful for creating
PatternElements where you don't care whether the value it uses
is the same as one used by another PatternElement.Parameters: numWild the number of wildcard instructions which may be matched between explicit PatternElements
Returns: this object