Package com.ibm.wala.shrikeCT
Class InnerClassesReader
- java.lang.Object
-
- com.ibm.wala.shrikeCT.AttributeReader
-
- com.ibm.wala.shrikeCT.InnerClassesReader
-
public final class InnerClassesReader extends AttributeReader
This class reads InnerClasses attributes.
-
-
Field Summary
-
Fields inherited from class com.ibm.wala.shrikeCT.AttributeReader
attr, cr, length
-
-
Constructor Summary
Constructors Constructor Description InnerClassesReader(ClassReader.AttrIterator iter)
Build a reader for the attribute 'iter'.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAccessFlags(String s)
return the mask of flags recorded in the InnerClasses attribute for a class named s.String[]
getInnerClasses()
String
getOuterClass(String s)
return the name of the outer class recorded as the enclosing class for a class named s.int[]
getRawTable()
-
Methods inherited from class com.ibm.wala.shrikeCT.AttributeReader
checkSize, checkSizeEquals, getClassReader, getRawOffset, getRawSize
-
-
-
-
Constructor Detail
-
InnerClassesReader
public InnerClassesReader(ClassReader.AttrIterator iter) throws InvalidClassFileException
Build a reader for the attribute 'iter'.- Throws:
InvalidClassFileException
-
-
Method Detail
-
getRawTable
public int[] getRawTable()
- Returns:
- the raw values that make up this attribute
-
getInnerClasses
public String[] getInnerClasses() throws InvalidClassFileException
- Returns:
- the names of inner classes this attribute holds information about.
- Throws:
InvalidClassFileException
-
getOuterClass
public String getOuterClass(String s) throws InvalidClassFileException
return the name of the outer class recorded as the enclosing class for a class named s. return null if not found.- Throws:
InvalidClassFileException
-
getAccessFlags
public int getAccessFlags(String s) throws InvalidClassFileException
return the mask of flags recorded in the InnerClasses attribute for a class named s. return 0 if not found.- Throws:
InvalidClassFileException
-
-