| com.sun.mirror.declaration.TypeDeclaration
TypeDeclaration | public interface TypeDeclaration extends MemberDeclaration(Code) | | Represents the declaration of a class or interface.
Provides access to information about the type and its members.
Note that an
is a kind of class,
and an
is
a kind of interface.
While a TypeDeclaration represents the declaration
of a class or interface, a
DeclaredType represents a class
or interface type, the latter being a use
(or invocation) of the former.
The distinction is most apparent with generic types,
for which a single declaration can define a whole
family of types. For example, the declaration of
java.util.Set corresponds to the parameterized types
java.util.Set and
java.util.Set (and many others), and to the raw type
java.util.Set .
com.sun.mirror.util.DeclarationFilter provides a simple way to select just the items of interest
when a method returns a collection of declarations.
author: Joseph D. Darcy author: Scott Seligman version: 1.11 07/05/05 See Also: DeclaredType since: 1.5 |
getFormalTypeParameters | Collection<TypeParameterDeclaration> getFormalTypeParameters()(Code) | | Returns the formal type parameters of this class or interface.
the formal type parameters, or an empty collectionif there are none |
getMethods | Collection<? extends MethodDeclaration> getMethods()(Code) | | Returns the methods that are directly declared by this class or
interface. Includes annotation type elements. Excludes
implicitly declared methods of an interface, such as
toString, that correspond to the methods of
java.lang.Object.
the methods that are directly declared,or an empty collection if there are none See Also: com.sun.mirror.util.DeclarationFilter |
getPackage | PackageDeclaration getPackage()(Code) | | Returns the package within which this type is declared.
the package within which this type is declared |
getQualifiedName | String getQualifiedName()(Code) | | Returns the fully qualified name of this class or interface
declaration. More precisely, it returns the canonical
name.
The name of a generic type does not include any reference
to its formal type parameters.
For example, the the fully qualified name of the interface declaration
java.util.Set is "java.util.Set".
the fully qualified name of this class or interface declaration |
getSuperinterfaces | Collection<InterfaceType> getSuperinterfaces()(Code) | | Returns the interface types directly implemented by this class
or extended by this interface.
the interface types directly implemented by this classor extended by this interface, or an empty collection if there are none See Also: com.sun.mirror.util.DeclarationFilter |
|
|