Returns the fields, methods, constructors, and member types
that are directly declared in this class or interface.
This includes any mandated elements such as the (implicit) default constructor
and the implicit
valueOf methods of
an enum type.
@apiNote As a particular instance of the general accuracy requirements and the
ordering behavior required of this interface, the list of
enclosed elements will be returned in the natural order for the
originating source of information about the type. For example,
if the information about the type is originating from a source
file, the elements will be returned in source code order.
(However, in that case the the ordering of implicitly declared elements, such as
default constructors, is not specified.)
@jls 8.8.9 Default Constructor
@jls 8.9.3 Enum Members
Returns the package of a top-level type and returns the immediately lexically enclosing element for a nested type.
Returns the fully qualified name of this type element. More precisely, it returns the canonical name. For local and anonymous classes, which do not have canonical names, an empty name is returned.
The name of a generic type does not include any reference
to its formal type parameters.
For example, the fully qualified name of the interface
java.util.Set<E> is "
Nested types use "
." as a separator, as in
@jls 6.7 Fully Qualified Names and Canonical Names
Returns the simple name of this type element. For an anonymous class, an empty name is returned.
Returns the formal type parameters of this type element in declaration order.