Class ExportsDirective


public class ExportsDirective extends ModulePackageAccess
Exports directive AST node type (added in JLS9 API).
 ExportsDirective:
     exports PackageName [ to  ModuleName {, ModuleName } ] ;
 
Since:
3.14
Restriction:
This class is not intended to be subclassed by clients.
Restriction:
This class is not intended to be instantiated by clients.
  • Field Details

    • NAME_PROPERTY

      public static final ChildPropertyDescriptor NAME_PROPERTY
      The "name" structural property of this node type (child type: Name).
    • MODULES_PROPERTY

      public static final ChildListPropertyDescriptor MODULES_PROPERTY
      The "modules" structural property of this node type (element 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)