Interface ModuleMainClassAttribute

All Superinterfaces:
Attribute<ModuleMainClassAttribute>, ClassElement, ClassfileElement, WritableElement<ModuleMainClassAttribute>
All Known Implementing Classes:
BoundAttribute.BoundModuleMainClassAttribute, UnboundAttribute.UnboundModuleMainClassAttribute

Models the ModuleMainClass attribute , which can appear on classes that represent module descriptors. Delivered as a ClassElement when traversing the elements of a ClassModel.
  • Method Details

    • mainClass

      ClassEntry mainClass()
      Returns main class for this module.
      Returns:
      main class for this module
    • of

      static ModuleMainClassAttribute of(ClassEntry mainClass)
      Returns a ModuleMainClass attribute.
      Parameters:
      mainClass - the main class
      Returns:
      a ModuleMainClass attribute
    • of

      static ModuleMainClassAttribute of(ClassDesc mainClass)
      Returns a ModuleMainClass attribute.
      Parameters:
      mainClass - the main class
      Returns:
      a ModuleMainClass attribute