|Constructor and Description|
|Modifier and Type||Method and Description|
Determine if a Stream is created at given location.
Set the bug pattern type reported for unclosed streams loaded from this field.
public InstanceFieldLoadStreamFactory(java.lang.String streamBaseClass)
streamBaseClass- the base class of the streams produced by the factory
public InstanceFieldLoadStreamFactory setBugPatternType(java.lang.String bugPatternType)
bugPatternType- the bug pattern type
public Stream createStream(Location location, org.apache.bcel.generic.ObjectType type, org.apache.bcel.generic.ConstantPoolGen cpg, RepositoryLookupFailureCallback lookupFailureCallback)
location- the Location
type- 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 object
cpg- the ConstantPoolGen for the method
lookupFailureCallback- used to report missing classes in the class hierarchy
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.