Package com.ibm.wala.sourcepos
Class MethodPositions
- java.lang.Object
-
- com.ibm.wala.sourcepos.MethodPositions
-
public final class MethodPositions extends Object
This class represents the MethodPositions attribute.
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTRIBUTE_NAMEStores 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 RangegetFooterInfo()Returns the source position range of the end of the method block.RangegetHeaderInfo()Returns the source position range of the method declaration.RangegetMethodInfo()Returns the source position range of the method parameter declaration.protected voidreadData(DataInputStream in)Reads the attribute data from the input stream.StringtoString()
-
-
-
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 IOExceptionCreates 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
-
-