|
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.InstanceFieldLoadStreamFactory
public class InstanceFieldLoadStreamFactory
StreamFactory for stream objects loaded from instance fields.
Constructor Summary | |
---|---|
InstanceFieldLoadStreamFactory(java.lang.String streamBaseClass)
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. |
InstanceFieldLoadStreamFactory |
setBugPatternType(java.lang.String bugPatternType)
Set the bug pattern type reported for unclosed streams loaded from this field. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstanceFieldLoadStreamFactory(java.lang.String streamBaseClass)
streamBaseClass
- the base class of the streams
produced by the factoryMethod Detail |
---|
public InstanceFieldLoadStreamFactory setBugPatternType(java.lang.String bugPatternType)
bugPatternType
- the bug pattern typepublic 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 |