|
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.ByteCodePattern
public class ByteCodePattern
A ByteCodePattern is a pattern matching a sequence of bytecode instructions.
PatternElement
,
PatternMatcher
Constructor Summary | |
---|---|
ByteCodePattern()
|
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. |
java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteCodePattern()
Method Detail |
---|
public ByteCodePattern add(PatternElement element)
element
- the PatternElement
public ByteCodePattern addWild(int numWild)
numWild
- maximum number of instructions to be matched by
the wildcardpublic ByteCodePattern setInterElementWild(int numWild)
numWild
- the number of wildcard instructions which
may be matched between explicit PatternElements
public PatternElement getFirst()
public java.lang.String dummyVariable()
'$'
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.
|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |