object ClassHierarchy
- Alphabetic
- By Inheritance
- ClassHierarchy
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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 val JustObject: UIDSet[ObjectType]
- lazy val PreInitializedClassHierarchy: ClassHierarchy
Creates a
ClassHierarchy
that captures the type hierarchy related to the exceptions thrown by specific Java bytecode instructions as well as fundamental types such as Cloneable and Serializable and also those types related to reflection..Creates a
ClassHierarchy
that captures the type hierarchy related to the exceptions thrown by specific Java bytecode instructions as well as fundamental types such as Cloneable and Serializable and also those types related to reflection..This class hierarchy is primarily useful for testing purposes.
- def apply(classFiles: Iterable[ClassFile], typeHierarchyDefinitions: Seq[() => InputStream] = defaultTypeHierarchyDefinitions())(implicit logContext: LogContext): ClassHierarchy
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def create(classFiles: Iterable[ClassFile], typeDeclarations: Iterable[TypeDeclaration])(implicit logContext: LogContext): ClassHierarchy
Creates the class hierarchy by analyzing the given class files, the predefined type declarations, and the specified predefined class hierarchies.
Creates the class hierarchy by analyzing the given class files, the predefined type declarations, and the specified predefined class hierarchies.
By default the class hierarchy related to the exceptions thrown by bytecode instructions are predefined as well as the class hierarchy related to the main classes of the JDK. See the file
ClassHierarchyJVMExceptions.ths
,ClassHierarchyJLS.ths
andClassHierarchyJava7-java.lang.reflect.ths
(text files) for further details.Basically, only the part of a project's class hierarchy is reified that is referred to in the class declarations of the analyzed classes I.e., those classes which are directly referred to in class declarations, but for which the respective class file was not analyzed, are also considered to be visible and are integrated in the class hierarchy. However, types only referred to in the body of a method, but for which neither the defining class file is analyzed nor a class exists that inherits from them are not integrated. For example, if the class file of the class
java.util.ArrayList
is analyzed, then the class hierarchy will have some information about, e.g.,java.util.List
from whichArrayList
inherits. However, the information aboutList
is incomplete andList
will be a boundary class unless we also analyze the class file that definesjava.util.List
. - def defaultTypeHierarchyDefinitions(): List[() => InputStream]
- 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
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noDefaultTypeHierarchyDefinitions(): List[() => InputStream]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def parseTypeHierarchyDefinition(in: InputStream)(implicit logContext: LogContext): Seq[TypeDeclaration]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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