Class MiniModel
- All Implemented Interfaces:
IClassHierarchyDweller
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.
- Since:
- 2013-10-29
- Author:
- Tobias Blaschke <code@tobiasblaschke.de>
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionMiniModel(IClassHierarchy cha, AnalysisOptions options, IAnalysisCacheView cache, AndroidComponent forCompo) -
Method Summary
Methods inherited from class AndroidModel
build, build, getClassHierarchy, getDeclaringClass, getDescriptor, getMethodAs, getMethodEncap, getReturnType, isStatic
-
Constructor Details
-
MiniModel
public MiniModel(IClassHierarchy cha, AnalysisOptions options, IAnalysisCacheView cache, AndroidComponent forCompo)
-
-
Method Details
-
selectEntryPoint
Restrict the model to Activities.Overridden by models to restraint Entrypoints.
For each entrypoint this method is queried if it should be part of the model.
- Overrides:
selectEntryPointin classAndroidModel- Parameters:
ep- The EntryPoint in question- Returns:
- if the given EntryPoint shall be part of the model
-
getName
- Overrides:
getNamein classAndroidModel
-
getMethod
Description copied from class:AndroidModelBuilding the SummarizedMethod is delayed upon the first class to this method.- Overrides:
getMethodin classAndroidModel- Returns:
- the method for this model as generated by build()
- Throws:
CancelException
-
toString
- Overrides:
toStringin classAndroidModel
-