Class TypeClass

All Implemented Interfaces:
Excerpt

public class TypeClass extends Type
Representation of a class or interface element.

When used as an excerpt or Type, it acts as a prototypical type of the class. This is the element's invocation on the type variables corresponding to its own formal type parameters. For example, the TypeClass of EnumSet would appear in code as EnumSet<E>. This is probably the most common use of a type class in code generation.

The declaration() and declarationParameters() methods, on the other hand, return excerpts reflecting the type element. For example, the declaration of EnumSet would be EnumSet<E extends Enum<E>>.

A hybrid of a TypeElement and its prototypical DeclaredType.

See Also: