Class MethodPositions


  • public final class MethodPositions
    extends java.lang.Object
    This class represents the MethodPositions attribute.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ATTRIBUTE_NAME
      Stores the attribute name of this attribute
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodPositions​(byte[] data)
      Creates a new instance of MethodPositions
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Range getFooterInfo()
      Returns the source position range of the end of the method block.
      Range getHeaderInfo()
      Returns the source position range of the method declaration.
      Range getMethodInfo()
      Returns the source position range of the method parameter declaration.
      protected void readData​(java.io.DataInputStream in)
      Reads the attribute data from the input stream.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • ATTRIBUTE_NAME

        public static final java.lang.String ATTRIBUTE_NAME
        Stores the attribute name of this attribute
        See Also:
        Constant Field Values
    • Constructor Detail

      • MethodPositions

        public MethodPositions​(byte[] data)
                        throws java.io.IOException
        Creates a new instance of MethodPositions
        Parameters:
        data - the byte array containing the attribute
        Throws:
        java.io.IOException - if the attribute can't be read.
    • Method Detail

      • readData

        protected void readData​(java.io.DataInputStream in)
                         throws java.io.IOException
        Reads the attribute data from the input stream.
        Parameters:
        in - the input stream
        Throws:
        java.io.IOException - if the input stream cannot be read.
      • getHeaderInfo

        public Range getHeaderInfo()
        Returns the source position range of the method declaration.
        Returns:
        the source position range of the method declaration
      • getMethodInfo

        public Range getMethodInfo()
        Returns the source position range of the method parameter declaration.
        Returns:
        the source position range of the method parameter declaration
      • getFooterInfo

        public Range getFooterInfo()
        Returns the source position range of the end of the method block.
        Returns:
        the source position range of the end of the method block
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object