Package edu.umd.cs.findbugs.detect
Interface StreamFactory
- All Known Implementing Classes:
AnyMethodReturnValueStreamFactory
,InstanceFieldLoadStreamFactory
,IOStreamFactory
,MethodReturnValueStreamFactory
,StaticFieldLoadStreamFactory
public interface StreamFactory
An object that examines a Location and determines if a Stream is created
there.
-
Method Summary
Modifier and TypeMethodDescriptioncreateStream
(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.
-
Method Details
-
createStream
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.- Parameters:
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- Returns:
- a Stream created at the Location, or null if no stream is created there
-