StreamFactory
public class StaticFieldLoadStreamFactory extends java.lang.Object implements StreamFactory
Modifier and Type | Field | Description |
---|---|---|
java.lang.String |
className |
|
java.lang.String |
fieldName |
|
java.lang.String |
fieldSig |
|
java.lang.String |
streamBaseClass |
Constructor | Description |
---|---|
StaticFieldLoadStreamFactory(java.lang.String streamBaseClass,
java.lang.String className,
java.lang.String fieldName,
java.lang.String fieldSig) |
Constructor.
|
Modifier and Type | Method | 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 java.lang.String streamBaseClass
public java.lang.String className
public java.lang.String fieldName
public java.lang.String fieldSig
public StaticFieldLoadStreamFactory(java.lang.String streamBaseClass, java.lang.String className, java.lang.String fieldName, java.lang.String fieldSig)
streamBaseClass
- the base class of the stream objects created by the factoryclassName
- name of the class containing the static fieldfieldName
- name of the static fieldfieldSig
- signature of the static fieldpublic 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 hierarchySpotBugs is licensed under the LGPL.