Class MethodPositions

java.lang.Object
com.ibm.wala.shrike.sourcepos.MethodPositions

public final class MethodPositions extends Object
This class represents the MethodPositions attribute.
Author:
Siegfried Weber, Juergen Graf <juergen.graf@gmail.com>
  • Field Details

    • ATTRIBUTE_NAME

      public static final String ATTRIBUTE_NAME
      Stores the attribute name of this attribute
      See Also:
  • Constructor Details

    • 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 Details

    • readData

      protected 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 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 String toString()
      Overrides:
      toString in class Object