Class ClassFile.MethodInfo

  • Enclosing class:
    ClassFile

    public class ClassFile.MethodInfo
    extends java.lang.Object
    This class represents a "method_info" structure, as defined by the JVM specification.
    • Constructor Detail

      • MethodInfo

        public MethodInfo​(short accessFlags,
                          short nameIndex,
                          short descriptorIndex,
                          java.util.List attributes)
        Initialize the "method_info" structure.
    • Method Detail

      • getClassFile

        public ClassFile getClassFile()
      • getAccessFlags

        public short getAccessFlags()
      • getNameIndex

        public short getNameIndex()
      • getDescriptorIndex

        public short getDescriptorIndex()
      • store

        public void store​(java.io.DataOutputStream dos)
                   throws java.io.IOException
        Write this object to a DataOutputStream, in the format defined by the JVM specification.
        Throws:
        java.io.IOException