public class MiniModel extends AndroidModel
So for example it contains all EntryPoints from all Activities.
It is like a "regular" AndroidModel but the calls are restricted to EntryPoints whose target-class is of the type of the given AndroidComponent.
In the ClassHierarchy a MiniModel will be known as "AndroidModelClass.???Model" (where ??? is the AndroidComponent) and be called by "AndroidModelClass.startUnknown???" (which is generated by the UnknownTargetModel).
A MiniModel is used when a startComponent-call (startActivity, bindService, ...) is encountered, but the Context at the call site is insufficient to determine the actual target. In this case an UnknownTargetModel which uses an MiniModel and an ExternalModel is placed there.
| Constructor and Description |
|---|
MiniModel(com.ibm.wala.ipa.cha.IClassHierarchy cha,
com.ibm.wala.ipa.callgraph.AnalysisOptions options,
com.ibm.wala.ipa.callgraph.IAnalysisCacheView cache,
AndroidComponent forCompo) |
| Modifier and Type | Method and Description |
|---|---|
com.ibm.wala.types.Descriptor |
getDescriptor() |
com.ibm.wala.ipa.summaries.SummarizedMethod |
getMethod()
Building the SummarizedMethod is delayed upon the first class to this method.
|
com.ibm.wala.util.strings.Atom |
getName() |
protected boolean |
selectEntryPoint(AndroidEntryPoint ep)
Restrict the model to Activities.
|
java.lang.String |
toString() |
build, build, getClassHierarchy, getDeclaringClass, getMethodAs, getMethodEncap, getReturnType, isStaticpublic MiniModel(com.ibm.wala.ipa.cha.IClassHierarchy cha,
com.ibm.wala.ipa.callgraph.AnalysisOptions options,
com.ibm.wala.ipa.callgraph.IAnalysisCacheView cache,
AndroidComponent forCompo)
protected boolean selectEntryPoint(AndroidEntryPoint ep)
Overridden by models to restraint Entrypoints.
For each entrypoint this method is queried if it should be part of the model.
selectEntryPoint in class AndroidModelep - The EntryPoint in questionpublic com.ibm.wala.types.Descriptor getDescriptor()
throws com.ibm.wala.util.CancelException
getDescriptor in class AndroidModelcom.ibm.wala.util.CancelExceptionpublic com.ibm.wala.util.strings.Atom getName()
getName in class AndroidModelpublic com.ibm.wala.ipa.summaries.SummarizedMethod getMethod()
throws com.ibm.wala.util.CancelException
AndroidModelgetMethod in class AndroidModelcom.ibm.wala.util.CancelExceptionpublic java.lang.String toString()
toString in class AndroidModel