All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----epp.TypeNameTable
TypeNameTable
class converts a "type name" into a
fully qualified name.
This class handles "type names" that are Tree
s in the
form of "(name ...)". Types with structures, such as array types are not
handled.
The conversion is conducted under the following rules.
EppUserError
will
be thrown.
The instance of this table is stored in the dynamic variable
:typeNameTable
. However, you cannot use this table
until you get into Phase2. (According to the Java language specification,
conversion to a fully qualified name in Phase1 is impossible. This is
because, the conversion is affected by what classes exist in the
current package.
The conversion to fully qualified names is done by referencing the package declarations and import declarations of the processed files, classes defined in all the source files, and class names that can be accessed through CLASSPATH.
CompilationUnit
as an argument and
creates and returns a TypeNameTable
.
fullName
belongs match, and otherwise returns false.
Tree
into a Tree
that
expresses a fully qualified name.
Tree
into a Symbol
.
public TypeNameTable(Tree tree)
CompilationUnit
as an argument and
creates and returns a TypeNameTable
.
public Symbol nameToFullNameSymbol(Tree tree)
Tree
into a Symbol
.
public Tree nameToFullName(Tree tree)
Tree
into a Tree
that
expresses a fully qualified name.
public boolean doesClassExist(Tree fullName)
nameToFullName
and
Type#resolveAmbiguousName
.
public boolean isSamePackage(Tree fullName)
fullName
belongs match, and otherwise returns false.
All Packages Class Hierarchy This Package Previous Next Index