- All Known Subinterfaces:
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.
getDeclarationClassDeclaration getDeclaration()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.
getSuperclassClassType getSuperclass()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
For example, the class type extended by
- the class type that is a direct supertype of this one,
nullif there is none