public class DefaultInstantiationBehavior extends IInstantiationBehavior implements Serializable
IInstantiationBehavior.Exactness, IInstantiationBehavior.InstanceBehavior| Modifier and Type | Field and Description |
|---|---|
boolean |
serializationIncludesCache
Including the cache may be useful to get all seen types.
|
| Constructor and Description |
|---|
DefaultInstantiationBehavior(IClassHierarchy cha) |
| Modifier and Type | Method and Description |
|---|---|
IInstantiationBehavior.InstanceBehavior |
getBehavior(TypeName type,
TypeName asParameterTo,
MethodReference inCall,
String withName)
Returns how the model should behave on the type.
|
IInstantiationBehavior.InstanceBehavior |
getDafultBehavior() |
IInstantiationBehavior.Exactness |
getExactness(TypeName type,
TypeName asParameterTo,
MethodReference inCall,
String withName)
The Exactness depends on how the behavior to a type was determined.
|
protected static Atom |
type2atom(TypeName type)
Convert a TypeName back to an Atom.
|
getBehaviorpublic transient boolean serializationIncludesCache
public DefaultInstantiationBehavior(IClassHierarchy cha)
public IInstantiationBehavior.InstanceBehavior getBehavior(TypeName type, TypeName asParameterTo, MethodReference inCall, String withName)
#InstanceBehavior for the description of the possible behaviours.
Although this function takes a parameter withName one should not rely on its value.getBehavior in class IInstantiationBehaviorasParameterTo - not consideredinCall - not consideredwithName - not consideredtype - The type of the variable in questionpublic IInstantiationBehavior.Exactness getExactness(TypeName type, TypeName asParameterTo, MethodReference inCall, String withName)
getExactness in class IInstantiationBehaviorpublic IInstantiationBehavior.InstanceBehavior getDafultBehavior()
getDafultBehavior in class IInstantiationBehavior