Class MarkerAnnotation

All Implemented Interfaces:
IExtendedModifier

public final class MarkerAnnotation extends Annotation
Marker annotation node (added in JLS3 API). The marker annotation "@foo" is equivalent to the normal annotation "@foo()".
 MarkerAnnotation:
   @ TypeName
 
Since:
3.1
Restriction:
This class is not intended to be instantiated by clients.
  • Field Details

    • TYPE_NAME_PROPERTY

      public static final ChildPropertyDescriptor TYPE_NAME_PROPERTY
      The "typeName" structural property of this node type (child type: Name).
  • Method Details

    • propertyDescriptors

      public static List propertyDescriptors(int apiLevel)
      Returns a list of structural property descriptors for this node type. Clients must not modify the result.
      Parameters:
      apiLevel - the API level; one of the AST.JLS* constants
      Returns:
      a list of property descriptors (element type: StructuralPropertyDescriptor)