Class LoadedInstantiationBehavior
java.lang.Object
com.ibm.wala.dalvik.ipa.callgraph.androidModel.parameters.IInstantiationBehavior
com.ibm.wala.dalvik.ipa.callgraph.androidModel.parameters.LoadedInstantiationBehavior
- All Implemented Interfaces:
Serializable
Behavior loaded from a file.
This class generates an empty mutable IInstantiationBehavior.
- Since:
- 2013-10-25
- Author:
- Tobias Blaschke <code@tobiasblaschke.de>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class IInstantiationBehavior
IInstantiationBehavior.Exactness, IInstantiationBehavior.InstanceBehavior -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanIncluding the cache may be useful to get all seen types. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBehavior(TypeName type, TypeName asParameterTo, MethodReference inCall, String withName) Returns how the model should behave on the type.getExactness(TypeName type, TypeName asParameterTo, MethodReference inCall, String withName) The Exactness depends on how the behavior to a type was determined.voidsetBehavior(Atom pack, IInstantiationBehavior.InstanceBehavior beh, IInstantiationBehavior.Exactness exactness) voidsetBehavior(TypeName type, IInstantiationBehavior.InstanceBehavior beh, IInstantiationBehavior.Exactness exactness) voidsetDefaultBehavior(IInstantiationBehavior.InstanceBehavior defaultBehavior) protected static AtomConvert a TypeName back to an Atom.Methods inherited from class IInstantiationBehavior
getBehavior
-
Field Details
-
serializationIncludesCache
public transient boolean serializationIncludesCacheIncluding the cache may be useful to get all seen types.
-
-
Constructor Details
-
LoadedInstantiationBehavior
-
-
Method Details
-
setDefaultBehavior
-
getBehavior
public IInstantiationBehavior.InstanceBehavior getBehavior(TypeName type, TypeName asParameterTo, MethodReference inCall, String withName) Description copied from class:IInstantiationBehaviorReturns how the model should behave on the type.See the documentation of
IInstantiationBehavior.InstanceBehaviorfor the description of the possible behaviours.Although this function takes a parameter withName one should not rely on its value.
- Specified by:
getBehaviorin classIInstantiationBehavior- Parameters:
type- The type of the variable in questionasParameterTo- not consideredinCall- not consideredwithName- not considered- Returns:
- The behaviour to use
-
getExactness
public IInstantiationBehavior.Exactness getExactness(TypeName type, TypeName asParameterTo, MethodReference inCall, String withName) The Exactness depends on how the behavior to a type was determined.Currently it has no effect on the model but it may come in handy if you want to cascade classes for determining the
IInstantiationBehavior.The DefaultInstanciationBehavior only knows EXACT, PACKAGE, PREFIX and DEFAULT
- Specified by:
getExactnessin classIInstantiationBehavior
-
getDafultBehavior
- Specified by:
getDafultBehaviorin classIInstantiationBehavior
-
setBehavior
public void setBehavior(TypeName type, IInstantiationBehavior.InstanceBehavior beh, IInstantiationBehavior.Exactness exactness) -
setBehavior
public void setBehavior(Atom pack, IInstantiationBehavior.InstanceBehavior beh, IInstantiationBehavior.Exactness exactness) -
type2atom
-