edu.umd.cs.findbugs.ba.bcp
public class Invoke extends PatternElement
Invoke objects match by class name, method name, method signature, and mode.
Names and signatures may be matched in several ways:
The mode specifies what kind of invocations in the Invoke element matches. It is specified as the bitwise combination of the following values:
INSTANCE
, which matches ordinary instance method invocations
STATIC
, which matches static method invocations
CONSTRUCTOR
, which matches object constructor invocations
ORDINARY_METHOD
is equivalent to INSTANCE|STATIC
.
The special mode ANY
is equivalent to INSTANCE|STATIC|CONSTRUCTOR
.
See Also: PatternElement
Field Summary | |
---|---|
static int | ANY
Match both static and instance invocations. |
static int | CONSTRUCTOR
Match object constructor invocations. |
static int | INSTANCE
Match ordinary (non-constructor) instance invocations. |
static int | ORDINARY_METHOD
Match ordinary methods (everything except constructors). |
static int | STATIC
Match static invocations. |
Constructor Summary | |
---|---|
Invoke(String className, String methodName, String methodSig, int mode, RepositoryLookupFailureCallback lookupFailureCallback)
Constructor.
|
Parameters: className the class name of the method; may be specified exactly, as a regexp, or as a subtype match methodName the name of the method; may be specified exactly or as a regexp methodSig the signature of the method; may be specified exactly or as a regexp mode the mode of invocation