Class ModuleMainClassAttribute

    • Field Detail

      • u2mainClass

        public int u2mainClass
    • Constructor Detail

      • ModuleMainClassAttribute

        public ModuleMainClassAttribute()
        Creates an uninitialized ModuleMainClassAttribute.
      • ModuleMainClassAttribute

        public ModuleMainClassAttribute​(int u2attributeNameIndex,
                                        int u2mainClass)
        Creates an initialized ModuleMainClassAttribute.
    • Method Detail

      • getMainClassName

        public java.lang.String getMainClassName​(Clazz clazz)
        Returns the main class name.
      • mainClassAccept

        public void mainClassAccept​(Clazz clazz,
                                    ConstantVisitor constantVisitor)
        Applies the given constant pool visitor to the class constant of the main class, if any.