final class ArrayInstantiationsAnalysis extends ReachableMethodAnalysis
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.
- Alphabetic
- By Inheritance
- ArrayInstantiationsAnalysis
- ReachableMethodAnalysis
- TypeConsumerAnalysis
- FPCFAnalysis
- ProjectBasedAnalysis
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ArrayInstantiationsAnalysis(project: SomeProject, selectSetEntity: TypeSetEntitySelector)
Type Members
- type ContextType = TypeIterator.ContextType
- Definition Classes
- TypeConsumerAnalysis
- type PropertyType = TypeIterator.PropertyType
- Definition Classes
- TypeConsumerAnalysis
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def analyze(declaredMethod: DeclaredMethod): PropertyComputationResult
- Definition Classes
- ReachableMethodAnalysis
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def ch: ClassHierarchy
- Definition Classes
- ProjectBasedAnalysis
- implicit final def classHierarchy: ClassHierarchy
- Definition Classes
- ProjectBasedAnalysis
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def continuationForTAC(declaredMethod: DeclaredMethod)(someEPS: SomeEPS): ProperPropertyComputationResult
- Attributes
- protected
- Definition Classes
- ReachableMethodAnalysis
- implicit val declaredMethods: DeclaredMethods
- Attributes
- protected
- Definition Classes
- ReachableMethodAnalysis
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit final def logContext: LogContext
- Definition Classes
- ProjectBasedAnalysis
- def multidimensionalArrayInitialAssignments(arrays: Iterable[ArrayType]): Iterable[PartialResult[ArrayType, InstantiatedTypes]]
When allocating array with dimension > 1, the JVM allocates and assigns sub-arrays implicitly.
When allocating array with dimension > 1, the JVM allocates and assigns sub-arrays implicitly. We need to capture these effects for the analysis.
E.g., consider the allocation "arr = new A[1][1]". Here, it is necessary that ArrayType(ArrayType(ObjectType(A))) has the type ArrayType(ObjectType(A)) in its type set, otherwise reads like arr[0] will return no types when propagating which may lead to incorrect results.
This implementation has a (sound) over-approximation: Consider an allocation like "arr = new A[1][]", then a[0] == null, which means there is no such implicit assignment. However, capturing this more accurately requires more in-depth analysis of the bytecode/ TAC. (TODO Future work.)
- arrays
ArrayTypes which were found to be instantiated within the method.
- returns
Partial results for the implicit assignments.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- implicit final def p: SomeProject
- Definition Classes
- ProjectBasedAnalysis
- def processMethod(callContext: ContextType, tacEP: EPS[Method, properties.TACAI]): ProperPropertyComputationResult
- Definition Classes
- ArrayInstantiationsAnalysis → ReachableMethodAnalysis
- def processMethodWithoutBody(eOptP: EOptionP[DeclaredMethod, Callers]): PropertyComputationResult
- Attributes
- protected
- Definition Classes
- ReachableMethodAnalysis
- val processesMethodsWithoutBody: Boolean
- Attributes
- protected
- Definition Classes
- ReachableMethodAnalysis
- val project: SomeProject
- Definition Classes
- ArrayInstantiationsAnalysis → ProjectBasedAnalysis
- implicit final val propertyStore: PropertyStore
- Definition Classes
- FPCFAnalysis
- final def ps: PropertyStore
- Definition Classes
- FPCFAnalysis
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- implicit val typeIterator: TypeIterator
- Definition Classes
- ArrayInstantiationsAnalysis → TypeConsumerAnalysis
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated