public class StaticFieldLoadStreamFactory extends Object implements StreamFactory
| Modifier and Type | Field and Description |
|---|---|
String |
className |
String |
fieldName |
String |
fieldSig |
String |
streamBaseClass |
| Constructor and Description |
|---|
StaticFieldLoadStreamFactory(String streamBaseClass,
String className,
String fieldName,
String fieldSig)
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 String streamBaseClass
public String className
public String fieldName
public String fieldSig
public StaticFieldLoadStreamFactory(String streamBaseClass, String className, String fieldName, 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)
StreamFactorycreateStream in interface StreamFactorylocation - 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 hierarchyCopyright © 2003–2015. All rights reserved.