public class MethodReturnValueStreamFactory extends java.lang.Object implements StreamFactory
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 methodpublic 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 hierarchyFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.