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
- case class ExternalField(declaringClass: ObjectType, name: String, declaredFieldType: FieldType) extends Product with Serializable
Represents a field in the external world.
Represents a field in the external world. Such fields can either not be resolved by the Project (because the class file defining the field was not loaded), or they belong to a class file which was loaded as a library file.
- declaringClass
Object type of the class which declares the field (is also in the external world).
- name
Name of the field.
- declaredFieldType
Type of the field.
- 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
- 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.