Class/Object

org.opalj.fpcf.analysis

ObjectImmutabilityAnalysis

Related Docs: object ObjectImmutabilityAnalysis | package analysis

Permalink

class ObjectImmutabilityAnalysis extends FPCFAnalysis

Determines the mutability of instances of a specific class. In case the class is abstract the (implicit) assumption is made that all abstract methods (if any) are/can be implemented without necessarily/always requiring additional state; i.e., only the currently defined fields are take into consideration. An interfaces is always considered to be immutable. If you need to know if all possible instances of an interface or some type; i.e., all instances of the classes that implement the respective interface/inherit from some class are immutable, you can query the org.opalj.fpcf.properties.TypeImmutability property.

In case of incomplete class hierarchies or if the class hierarchy is complete, but some class files are not found the sound approximation is done that the respective classes are mutable.

This analysis uses the org.opalj.fpcf.properties.FieldMutability property to determine those fields which could be final, but which are not declared as final.

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

Instance Constructors

  1. new ObjectImmutabilityAnalysis(project: SomeProject)

    Permalink

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. def determineObjectImmutability(superClassFile: ClassFile, superClassMutability: ObjectImmutability)(cf: ClassFile): PropertyComputationResult

    Permalink

    Determines the immutability of instances of the given class file cf.

    Determines the immutability of instances of the given class file cf.

    superClassFile

    The direct super class (file) of the given class file cf. Can be null if superClassMutability is ImmutableObject.

    superClassMutability

    The mutability of the given super class. The mutability must not be "MutableObject"; this case has to be handled explicitly. Hence, the mutability is either unknown, immutable or (at least) conditionally immutable.

  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