Class/Object

org.opalj.fpcf.analysis

TypeExtensibilityAnalysis

Related Docs: object TypeExtensibilityAnalysis | package analysis

Permalink

class TypeExtensibilityAnalysis extends FPCFAnalysis

Determines if a class is extensible (i.e., can be inherited from). This property generally depends on the kind of the project. If the project is an application, all classes are considered to be closed; i.e., the class hierarchy is considered to be fixed; if the analyzed project is a library, then the result depends on the concrete assumption about the openness of the library.

However, package visible classes in packages starting with "java." are always treated as not client extensible as this would require that those classes are defined in the respective package which is prevented by the default ClassLoader in all cases.

Note

Since the computed property is a set property, other analyses have to wait till the property is computed.

Linear Supertypes
FPCFAnalysis, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TypeExtensibilityAnalysis
  2. FPCFAnalysis
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. implicit final val classHierarchy: ClassHierarchy

    Permalink
    Definition Classes
    FPCFAnalysis
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def determineExtensibility(typesToProcess: Queue[ObjectType], hasExtensibleSubtype: Array[Boolean], hasUnknownSubtype: Array[Boolean], isEnqueued: Array[Boolean]): Unit

    Permalink

    Computes the extensibility of the given class or interface and also of all supertypes of it.

    Computes the extensibility of the given class or interface and also of all supertypes of it.

    A type is considered as extensible if one of the criteria matches:

    • it is not (effectively) final and either public or the analysis mode is OPA,
    • one of its subtypes is extensible.
    Annotations
    @tailrec()
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isClosedLibrary: Boolean

    Permalink
    Definition Classes
    FPCFAnalysis
  14. final def isDesktopApplication: Boolean

    Permalink
    Definition Classes
    FPCFAnalysis
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def isJEEApplication: Boolean

    Permalink
    Definition Classes
    FPCFAnalysis
  17. final def isOpenLibrary: Boolean

    Permalink
    Definition Classes
    FPCFAnalysis
  18. implicit final val logContext: LogContext

    Permalink
    Definition Classes
    FPCFAnalysis
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. val project: SomeProject

    Permalink
  23. implicit final val propertyStore: PropertyStore

    Permalink
    Definition Classes
    FPCFAnalysis
  24. final def ps: PropertyStore

    Permalink
    Definition Classes
    FPCFAnalysis
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from FPCFAnalysis

Inherited from AnyRef

Inherited from Any

Ungrouped