Spec-Zone .ru
спецификации, руководства, описания, API

Mirror API
DRAFT ea-b118

com.sun.mirror.type
Interface ClassType

All Superinterfaces:
DeclaredType, ReferenceType, TypeMirror
All Known Subinterfaces:
EnumType

Deprecated. All components of this API have been superseded by the standardized annotation processing API. The replacement for the functionality of this interface is included in DeclaredType.

@Deprecated
public interface ClassType
extends DeclaredType

Represents a class type. Interface types are represented separately by InterfaceType. Note that an enum is a kind of class.

While a ClassDeclaration represents the declaration of a class, a ClassType represents a class type. See TypeDeclaration for more on this distinction.

Since:
1.5

Method Summary
Modifier and Type Method and Description
 ClassDeclaration getDeclaration()
          Deprecated. Returns the declaration of this type.
 ClassType getSuperclass()
          Deprecated. Returns the class type that is a direct supertype of this one.
 
Methods inherited from interface com.sun.mirror.type.DeclaredType
getActualTypeArguments, getContainingType, getSuperinterfaces
 
Methods inherited from interface com.sun.mirror.type.TypeMirror
accept, equals, toString
 

Method Detail

getDeclaration

ClassDeclaration getDeclaration()
Deprecated. 
Returns the declaration of this type.

Returns null if this type's declaration is unknown. This may be the result of a processing error, such as a missing class file.

Specified by:
getDeclaration in interface DeclaredType
Returns:
the declaration of this type, or null if unknown

getSuperclass

ClassType getSuperclass()
Deprecated. 
Returns the class type that is a direct supertype of this one. This is the superclass of this type's declaring class, with any type arguments substituted in. The only class with no superclass is java.lang.Object, for which this method returns null.

For example, the class type extended by java.util.TreeSet<String> is java.util.AbstractSet<String>.

Returns:
the class type that is a direct supertype of this one, or null if there is none

Mirror API
DRAFT ea-b118

Copyright © 2004, 2010, Oracle Corporation. All rights reserved.
DRAFT ea-b118

Scripting on this page tracks web page traffic, but does not change the content in any way.