Package com.ibm.wala.shrike.shrikeCT
Class SourceFileReader
- java.lang.Object
-
- com.ibm.wala.shrike.shrikeCT.AttributeReader
-
- com.ibm.wala.shrike.shrikeCT.SourceFileReader
-
public final class SourceFileReader extends AttributeReader
This class reads SourceFile attributes.
-
-
Field Summary
-
Fields inherited from class com.ibm.wala.shrike.shrikeCT.AttributeReader
attr, cr, length
-
-
Constructor Summary
Constructors Constructor Description SourceFileReader(ClassReader.AttrIterator iter)Build a reader for the attribute 'iter'.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetSourceFile()intgetSourceFileCPIndex()-
Methods inherited from class com.ibm.wala.shrike.shrikeCT.AttributeReader
checkSize, checkSizeEquals, getClassReader, getRawOffset, getRawSize
-
-
-
-
Constructor Detail
-
SourceFileReader
public SourceFileReader(ClassReader.AttrIterator iter) throws InvalidClassFileException
Build a reader for the attribute 'iter'.- Throws:
InvalidClassFileException
-
-
Method Detail
-
getSourceFileCPIndex
public int getSourceFileCPIndex()
- Returns:
- the index of the constant pool item holding the value
-
getSourceFile
public java.lang.String getSourceFile() throws java.lang.IllegalArgumentException, InvalidClassFileException- Throws:
java.lang.IllegalArgumentExceptionInvalidClassFileException
-
-