Package com.ibm.wala.shrike.sourcepos
Class MethodPositions
- java.lang.Object
-
- com.ibm.wala.shrike.sourcepos.MethodPositions
-
public final class MethodPositions extends java.lang.ObjectThis class represents the MethodPositions attribute.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.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(java.io.DataInputStream in)Reads the attribute data from the input stream.java.lang.StringtoString()
-
-
-
Field Detail
-
ATTRIBUTE_NAME
public static final java.lang.String ATTRIBUTE_NAME
Stores the attribute name of this attribute- See Also:
- Constant Field Values
-
-
Method Detail
-
readData
protected void readData(java.io.DataInputStream in) throws java.io.IOExceptionReads 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:
toStringin classjava.lang.Object
-
-