package xta
- Source
- package.scala
- Alphabetic
- By Inheritance
- xta
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final class ArrayInstantiationsAnalysis extends ReachableMethodAnalysis
Updates InstantiatedTypes attached to a method's set for each array allocation occurring within that method.
Updates InstantiatedTypes attached to a method's set for each array allocation occurring within that method.
It also updates InstantiatedTypes of multidimensional ArrayTypes (see comments below for more details).
The analysis is triggered for a method once it becomes reachable, i.e., a caller has been added. Thus, there are no property computations for unreachable methods.
- class ArrayInstantiationsAnalysisScheduler extends BasicFPCFTriggeredAnalysisScheduler
- class ConfiguredNativeMethodsInstantiatedTypesAnalysis extends ReachableMethodAnalysis
Handles the effect of certain (configured native methods) to the set of instantiated types.
- class ConfiguredNativeMethodsInstantiatedTypesAnalysisScheduler extends BasicFPCFTriggeredAnalysisScheduler
- final class ConfiguredNativeMethodsTypePropagationState[ContextType <: Context] extends BaseAnalysisState
- class InstantiatedTypesAnalysis extends FPCFAnalysis
Marks types as instantiated if their constructor is invoked.
Marks types as instantiated if their constructor is invoked. Constructors invoked by subclass constructors do not result in additional instantiated types. The analysis does not just looks for "new" instructions, in order to support reflection.
This analysis is adapted from the RTA version. Instead of adding the instantiations to the type set of the Project, they are added to the type set of the calling method. Which entity the type is attached to depends on the call graph variant used.
TODO: Refactor this and the rta version in order to provide a common base-class.
- class InstantiatedTypesAnalysisScheduler extends BasicFPCFTriggeredAnalysisScheduler
- class LibraryInstantiatedTypesBasedEntryPointsAnalysis extends FPCFAnalysis
In a library analysis scenario, this analysis complements the call graph by marking public methods of instantiated types reachable by unknown callers from outside the library.
In a library analysis scenario, this analysis complements the call graph by marking public methods of instantiated types reachable by unknown callers from outside the library.
While for RTA, the single type set attached to the Project is known in advance, there are many entities with type sets and the concrete entities are unknown in advance. Thus, this analysis is triggered. Similarly, since a type can be added to more than one type set, already processed types are remembered globally so that they are not processed twice.
- final class TypePropagationAnalysis extends ReachableMethodAnalysis
This analysis handles the type propagation of XTA, MTA, FTA and CTA call graph algorithms.
- final class TypePropagationAnalysisScheduler extends BasicFPCFTriggeredAnalysisScheduler
- final class TypePropagationState[ContextType <: Context] extends BaseAnalysisState with TACAIBasedAnalysisState[ContextType]
Manages the state of each method analyzed by TypePropagationAnalysis.
- type TypeSetEntity = AnyRef
Type alias for Entity/AnyRef for better code comprehension.
Type alias for Entity/AnyRef for better code comprehension. Within the context of propagation-based call graph construction algorithms, each entity has a corresponding "set entity". The type set of an entity is attached to its set entity. The set entity may be itself, or some other entity. The set of a single set entity may be shared among multiple entities. The assignment of entity to set entity varies per algorithm. For example, in XTA, the set entity of a DefinedMethod is the DefinedMethod itself, but in CTA, the set entity is the method's class.
- trait TypeSetEntitySelector extends (Entity) => TypeSetEntity
Selects the corresponding set entity for each entity.
Selects the corresponding set entity for each entity.
This function is the only aspect XTA, MTA, FTA and CTA are distinguished by.
Value Members
- def candidateMatchesTypeFilter(candidateType: ReferenceType, filterType: ReferenceType)(implicit classHierarchy: ClassHierarchy, project: Project[_]): Boolean
Checks whether a given candidate type is compatible to a given filter type in terms of XTA type propagation.
Checks whether a given candidate type is compatible to a given filter type in terms of XTA type propagation.
- candidateType
The candidate type to check
- filterType
The type to check compatibility to
- classHierarchy
The current class hierarchy
- project
The current project
- returns
True if the types match, false if not
- object CTASetEntitySelector extends TypeSetEntitySelector
CTA type propagation uses a single set for all methods and field in a class.
- object ExternalWorld
Entity which is used for types flow from/to the "external world".
- object FTASetEntitySelector extends TypeSetEntitySelector
FTA type propagation uses a separate set for each method and a single set for all fields in a class.
- object LibraryInstantiatedTypesBasedEntryPointsAnalysis extends BasicFPCFTriggeredAnalysisScheduler
- object MTASetEntitySelector extends TypeSetEntitySelector
MTA type propagation uses a separate set each field and a single set for all methods in a class.
- object TypePropagationTrace
- object XTASetEntitySelector extends TypeSetEntitySelector
XTA type propagation uses a separate set for each method and each field.