public interface ClassType extends DeclaredType
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.
| Modifier and Type | Method and Description |
|---|---|
ClassDeclaration |
getDeclaration()
Returns the declaration of this type.
|
ClassType |
getSuperclass()
Returns the class type that is a direct supertype of this one.
|
getActualTypeArguments, getContainingType, getSuperinterfacesaccept, equals, toStringClassDeclaration getDeclaration()
Returns null if this type's declaration is unknown. This may be the result of a processing error, such as a missing class file.
getDeclaration in interface DeclaredTypeClassType getSuperclass()
For example, the class type extended by
java.util.TreeSet<String> is
java.util.AbstractSet<String>.
Copyright (c) IBM Corp. and others 2000, 2006. All Rights Reserved.