Class ModuleAttribute

  • All Implemented Interfaces:
    Printable

    public class ModuleAttribute
    extends Attribute
    Module attribute.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAME
      The Module attribute name.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void print​(ClassPrinter out, ClassContext context)
      Prints this instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NAME

        public static final java.lang.String NAME
        The Module attribute name.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ModuleAttribute

        public ModuleAttribute​(ClassInfo classInfo,
                               int moduleNameIndex,
                               int moduleFlags,
                               int moduleVersionIndex,
                               java.util.List<ModuleInfoElement> elements)
        Constructs a new ModuleAttribute instance.
        Parameters:
        classInfo - the ClassInfo instance this attribute is part of.
        moduleNameIndex - module name index.
        moduleFlags - module flags.
        moduleVersionIndex - module version index.
        elements - the module-info elements.
    • Method Detail

      • print

        public void print​(ClassPrinter out,
                          ClassContext context)
                   throws java.io.IOException
        Description copied from interface: Printable
        Prints this instance.
        Parameters:
        out - the ClassPrinter instance to print to.
        context - the context of this print invocation.
        Throws:
        java.io.IOException - if an I/O error occurs.