Class CodeAttribute

  • All Implemented Interfaces:
    Printable

    public class CodeAttribute
    extends Attribute
    Code attribute.
    • Field Summary

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

      Constructors 
      Constructor Description
      CodeAttribute​(ClassInfo classInfo, java.nio.channels.SeekableByteChannel code)
      Constructs a new CodeAttribute instance.
    • 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 Code attribute name.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CodeAttribute

        public CodeAttribute​(ClassInfo classInfo,
                             java.nio.channels.SeekableByteChannel code)
        Constructs a new CodeAttribute instance.
        Parameters:
        classInfo - the ClassInfo instance this attribute is part of.
        code - the bytecode data
    • 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.