Class ModuleTargetAttribute


  • public final class ModuleTargetAttribute
    extends org.objectweb.asm.Attribute
    A ModuleTarget attribute. This attribute is specific to the OpenJDK and may change in the future.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String platform
      The name of the platform on which the module can run.
      • Fields inherited from class org.objectweb.asm.Attribute

        type
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.objectweb.asm.Attribute read​(org.objectweb.asm.ClassReader classReader, int offset, int length, char[] charBuffer, int codeOffset, org.objectweb.asm.Label[] labels)  
      protected org.objectweb.asm.ByteVector write​(org.objectweb.asm.ClassWriter classWriter, byte[] code, int codeLength, int maxStack, int maxLocals)  
      • Methods inherited from class org.objectweb.asm.Attribute

        getLabels, isCodeAttribute, isUnknown
      • Methods inherited from class java.lang.Object

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

      • platform

        public java.lang.String platform
        The name of the platform on which the module can run.
    • Constructor Detail

      • ModuleTargetAttribute

        public ModuleTargetAttribute​(java.lang.String platform)
        Constructs a new ModuleTargetAttribute.
        Parameters:
        platform - the name of the platform on which the module can run.
      • ModuleTargetAttribute

        public ModuleTargetAttribute()
        Constructs an empty ModuleTargetAttribute. This object can be passed as a prototype to the ClassReader.accept(org.objectweb.asm.ClassVisitor, Attribute[], int) method.
    • Method Detail

      • read

        protected org.objectweb.asm.Attribute read​(org.objectweb.asm.ClassReader classReader,
                                                   int offset,
                                                   int length,
                                                   char[] charBuffer,
                                                   int codeOffset,
                                                   org.objectweb.asm.Label[] labels)
        Overrides:
        read in class org.objectweb.asm.Attribute
      • write

        protected org.objectweb.asm.ByteVector write​(org.objectweb.asm.ClassWriter classWriter,
                                                     byte[] code,
                                                     int codeLength,
                                                     int maxStack,
                                                     int maxLocals)
        Overrides:
        write in class org.objectweb.asm.Attribute