Class MethodPositions


  • public final class MethodPositions
    extends Object
    This class represents the MethodPositions attribute.
    • Field Detail

      • ATTRIBUTE_NAME

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

      • MethodPositions

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

      • readData

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

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

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

        public final 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