Class AnnotatableType

java.lang.Object
Direct Known Subclasses:
NameQualifiedType, PrimitiveType, QualifiedType, SimpleType, WildcardType

public abstract class AnnotatableType extends Type
Abstract base class of AST nodes that represent an annotatable type (added in JLS8 API).

Introduced in JLS8, type references that can be annotated are represented by AnnotatableType. For the list of types extending AnnotatableType, see Type.

Note that type annotations (ITypeBinding.getTypeAnnotations()) that semantically belong to a resolved type reference don't always show up in annotations(). Syntactically, type annotations can also be part of an associated declaration node's modifiers() list.

Since:
3.10