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
and
ClassHierarchyJava7-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 which ArrayList
inherits. However, the information about List
is incomplete
and List
will be a boundary class unless we also analyze the class file that
defines java.util.List
.
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.
Factory methods for creating
ClassHierarchy
objects.