public abstract class IInstantiationBehavior
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
IInstantiationBehavior.Exactness
Information on how the IInstanciationBehavior made its decision for
IInstantiationBehavior.InstanceBehavior |
static class |
IInstantiationBehavior.InstanceBehavior
The handling for a variable occurring in the AndroidModel.
|
| Constructor and Description |
|---|
IInstantiationBehavior() |
| Modifier and Type | Method and Description |
|---|---|
IInstantiationBehavior.InstanceBehavior |
getBehavior(com.ibm.wala.types.TypeName param,
com.ibm.wala.classLoader.IMethod inCallTo,
java.lang.String withName)
Returns how the model should behave on the type.
|
abstract IInstantiationBehavior.InstanceBehavior |
getBehavior(com.ibm.wala.types.TypeName type,
com.ibm.wala.types.TypeName asParameterTo,
com.ibm.wala.types.MethodReference inCall,
java.lang.String withName)
Returns how the model should behave on the type.
|
abstract IInstantiationBehavior.InstanceBehavior |
getDafultBehavior() |
abstract IInstantiationBehavior.Exactness |
getExactness(com.ibm.wala.types.TypeName type,
com.ibm.wala.types.TypeName asParameterTo,
com.ibm.wala.types.MethodReference inCall,
java.lang.String withName)
The Exactness depends on how the behavior to a type was determined.
|
public abstract IInstantiationBehavior.InstanceBehavior getBehavior(com.ibm.wala.types.TypeName type, com.ibm.wala.types.TypeName asParameterTo, com.ibm.wala.types.MethodReference inCall, java.lang.String withName)
See the documentation of IInstantiationBehavior.InstanceBehavior for the description of the possible
behaviours.
Although this function takes a parameter withName one should not rely on its value.
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)public IInstantiationBehavior.InstanceBehavior getBehavior(com.ibm.wala.types.TypeName param, com.ibm.wala.classLoader.IMethod inCallTo, java.lang.String withName)
param - The parameter in question of being reuseinCallTo - The callee to query the REUSEness forpublic abstract IInstantiationBehavior.Exactness getExactness(com.ibm.wala.types.TypeName type, com.ibm.wala.types.TypeName asParameterTo, com.ibm.wala.types.MethodReference inCall, java.lang.String withName)
Currently it has no effect on the model but it may come in handy if you want to cascade classes for determining the IInstanciationBehavior.
public abstract IInstantiationBehavior.InstanceBehavior getDafultBehavior()