|
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.detect.MethodReturnValueStreamFactory
public class MethodReturnValueStreamFactory
StreamFactory for streams that are created as the result of calling a method on an object.
Constructor Summary | |
---|---|
MethodReturnValueStreamFactory(java.lang.String baseClass,
java.lang.String methodName,
java.lang.String methodSig)
Constructor. |
|
MethodReturnValueStreamFactory(java.lang.String baseClass,
java.lang.String methodName,
java.lang.String methodSig,
java.lang.String bugType)
Constructor. |
Method Summary | |
---|---|
Stream |
createStream(Location location,
org.apache.bcel.generic.ObjectType type,
org.apache.bcel.generic.ConstantPoolGen cpg,
RepositoryLookupFailureCallback lookupFailureCallback)
Determine if a Stream is created at given location. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodReturnValueStreamFactory(java.lang.String baseClass, java.lang.String methodName, java.lang.String methodSig)
baseClass
- base class through which the method will be
called (we check instances of the base class and all subtypes)methodName
- name of the method calledmethodSig
- signature of the method calledpublic MethodReturnValueStreamFactory(java.lang.String baseClass, java.lang.String methodName, java.lang.String methodSig, java.lang.String bugType)
baseClass
- base class through which the method will be
called (we check instances of the base class and all subtypes)methodName
- name of the method calledmethodSig
- signature of the method calledbugType
- the bug type that should be reported if
the stream is not closed on all paths out of the methodMethod Detail |
---|
public Stream createStream(Location location, org.apache.bcel.generic.ObjectType type, org.apache.bcel.generic.ConstantPoolGen cpg, RepositoryLookupFailureCallback lookupFailureCallback)
StreamFactory
createStream
in interface StreamFactory
location
- the Locationtype
- the ObjectType associated with the instruction at the location;
the StreamResourceTracker prescreens for TypedInstructions
that are associated with ObjectTypes, since they are
the only instructions that could conceivably create a
stream objectcpg
- the ConstantPoolGen for the methodlookupFailureCallback
- used to report missing
classes in the class hierarchy
|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |