Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package opalj

    OPAL is a Scala-based framework for the static analysis, manipulation and creation of Java bytecode.

    OPAL is a Scala-based framework for the static analysis, manipulation and creation of Java bytecode. OPAL is designed with performance, scalability and adaptability in mind.

    Its main components are:

    • a library (Common) which provides generally useful data-structures and algorithms for static analyses.
    • a framework for implementing lattice based static analyses (Static Analysis Infrastructure)
    • a framework for parsing Java bytecode (Bytecode Infrastructure) that can be used to create arbitrary representations.
    • a library to create a one-to-one in-memory representation of Java bytecode (Bytecode Disassembler).
    • a library to create a representation of Java bytecode that facilitates writing simple static analyses (Bytecode Representation - org.opalj.br).
    • a scalable, easily customizable framework for the abstract interpretation of Java bytecode (Abstract Interpretation Framework - org.opalj.ai).
    • a library to extract dependencies between code elements and to facilitate checking architecture definitions.
    • a library for the lightweight manipulation and creation of Java bytecode (Bytecode Assembler).

    General Design Decisions

    Thread Safety

    Unless explicitly noted, OPAL is thread safe. I.e., the classes defined by OPAL can be considered to be thread safe unless otherwise stated. (For example, it is possible to read and process class files concurrently without explicit synchronization on the client side.)

    No null Values

    Unless explicitly noted, OPAL does not null values I.e., fields that are accessible will never contain null values and methods will never return null. If a method accepts null as a value for a parameter or returns a null value it is always explicitly documented. In general, the behavior of methods that are passed null values is undefined unless explicitly documented.

    No Typecasts for Collections

    For efficiency reasons, OPAL sometimes uses mutable data-structures internally. After construction time, these data-structures are generally represented using their generic interfaces (e.g., scala.collection.{Set,Map}). However, a downcast (e.g., to add/remove elements) is always forbidden as it would effectively prevent thread-safety.

    Assertions

    OPAL makes heavy use of Scala's Assertion Facility to facilitate writing correct code. Hence, for production builds (after thorough testing(!)) it is highly recommend to build OPAL again using -Xdisable-assertions.

    Definition Classes
    org
  • package tac

    Common definitions related to the definition and processing of three address code.

    Common definitions related to the definition and processing of three address code.

    Definition Classes
    opalj
  • package fpcf
    Definition Classes
    tac
  • package analyses
    Definition Classes
    fpcf
  • package cg
    Definition Classes
    analyses
  • package xta

    Definition Classes
    cg
  • ArrayInstantiationsAnalysis
  • ArrayInstantiationsAnalysisScheduler
  • CTASetEntitySelector
  • ExternalField
  • ExternalWorld
  • FTASetEntitySelector
  • InstantiatedTypesAnalysis
  • InstantiatedTypesAnalysisScheduler
  • LibraryInstantiatedTypesBasedEntryPointsAnalysis
  • MTASetEntitySelector
  • TypePropagationAnalysis
  • TypePropagationAnalysisScheduler
  • TypePropagationState
  • TypePropagationTrace
  • TypeSetEntitySelector
  • XTASetEntitySelector
c

org.opalj.tac.fpcf.analyses.cg.xta

ArrayInstantiationsAnalysis

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.

Source
ArrayInstantiationsAnalysis.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ArrayInstantiationsAnalysis
  2. ReachableMethodAnalysis
  3. TypeConsumerAnalysis
  4. FPCFAnalysis
  5. ProjectBasedAnalysis
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ArrayInstantiationsAnalysis(project: SomeProject, selectSetEntity: TypeSetEntitySelector)

Type Members

  1. type ContextType = TypeIterator.ContextType
    Definition Classes
    TypeConsumerAnalysis
  2. type PropertyType = TypeIterator.PropertyType
    Definition Classes
    TypeConsumerAnalysis

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def analyze(declaredMethod: DeclaredMethod): PropertyComputationResult
    Definition Classes
    ReachableMethodAnalysis
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. final def ch: ClassHierarchy
    Definition Classes
    ProjectBasedAnalysis
  7. implicit final def classHierarchy: ClassHierarchy
    Definition Classes
    ProjectBasedAnalysis
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  9. def continuationForTAC(declaredMethod: DeclaredMethod)(someEPS: SomeEPS): ProperPropertyComputationResult
    Attributes
    protected
    Definition Classes
    ReachableMethodAnalysis
  10. implicit val declaredMethods: DeclaredMethods
    Attributes
    protected
    Definition Classes
    ReachableMethodAnalysis
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. implicit final def logContext: LogContext
    Definition Classes
    ProjectBasedAnalysis
  17. 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.

  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  21. implicit final def p: SomeProject
    Definition Classes
    ProjectBasedAnalysis
  22. def processMethod(callContext: ContextType, tacEP: EPS[Method, properties.TACAI]): ProperPropertyComputationResult
  23. def processMethodWithoutBody(eOptP: EOptionP[DeclaredMethod, Callers]): PropertyComputationResult
    Attributes
    protected
    Definition Classes
    ReachableMethodAnalysis
  24. val processesMethodsWithoutBody: Boolean
    Attributes
    protected
    Definition Classes
    ReachableMethodAnalysis
  25. val project: SomeProject
  26. implicit final val propertyStore: PropertyStore
    Definition Classes
    FPCFAnalysis
  27. final def ps: PropertyStore
    Definition Classes
    FPCFAnalysis
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. implicit val typeIterator: TypeIterator
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from TypeConsumerAnalysis

Inherited from FPCFAnalysis

Inherited from ProjectBasedAnalysis

Inherited from AnyRef

Inherited from Any

Ungrouped