Class IInstantiationBehavior
- java.lang.Object
-
- com.ibm.wala.dalvik.ipa.callgraph.androidModel.parameters.IInstantiationBehavior
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DefaultInstantiationBehavior,LoadedInstantiationBehavior
public abstract class IInstantiationBehavior extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIInstantiationBehavior.ExactnessInformation on how the IInstanciationBehavior made its decision for#InstanceBehaviorstatic classIInstantiationBehavior.InstanceBehaviorThe handling for a variable occurring in the AndroidModel.
-
Constructor Summary
Constructors Constructor Description IInstantiationBehavior()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description IInstantiationBehavior.InstanceBehaviorgetBehavior(TypeName param, IMethod inCallTo, String withName)Returns how the model should behave on the type.abstract IInstantiationBehavior.InstanceBehaviorgetBehavior(TypeName type, TypeName asParameterTo, MethodReference inCall, String withName)Returns how the model should behave on the type.abstract IInstantiationBehavior.InstanceBehaviorgetDafultBehavior()abstract IInstantiationBehavior.ExactnessgetExactness(TypeName type, TypeName asParameterTo, MethodReference inCall, String withName)The Exactness depends on how the behavior to a type was determined.
-
-
-
Method Detail
-
getBehavior
public abstract IInstantiationBehavior.InstanceBehavior getBehavior(TypeName type, TypeName asParameterTo, MethodReference inCall, String withName)
Returns how the model should behave on the type. See the documentation of#InstanceBehaviorfor the description of the possible behaviours. Although this function takes a parameter withName one should not rely on its value.- Parameters:
type- The type of the variable in questionasParameterTo- The component whose function the variable shall be used as parameter to.inCall- The call in questionwithName- The name of the parameter in inCall (this might not work)- Returns:
- The behaviour to use
-
getBehavior
public IInstantiationBehavior.InstanceBehavior getBehavior(TypeName param, IMethod inCallTo, String withName)
Returns how the model should behave on the type.- Parameters:
param- The parameter in question of being reuseinCallTo- The callee to query the REUSEness for
-
getExactness
public abstract 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 IInstanciationBehavior.
-
getDafultBehavior
public abstract IInstantiationBehavior.InstanceBehavior getDafultBehavior()
-
-