Package com.ibm.wala.shrike.shrikeCT
Class InnerClassesReader
- java.lang.Object
-
- com.ibm.wala.shrike.shrikeCT.AttributeReader
-
- com.ibm.wala.shrike.shrikeCT.InnerClassesReader
-
public final class InnerClassesReader extends AttributeReader
This class reads InnerClasses attributes.
-
-
Field Summary
-
Fields inherited from class com.ibm.wala.shrike.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 intgetAccessFlags(java.lang.String s)return the mask of flags recorded in the InnerClasses attribute for a class named s.java.lang.String[]getInnerClasses()java.lang.StringgetOuterClass(java.lang.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.shrike.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 java.lang.String[] getInnerClasses() throws InvalidClassFileException- Returns:
- the names of inner classes this attribute holds information about.
- Throws:
InvalidClassFileException
-
getOuterClass
public java.lang.String getOuterClass(java.lang.String s) throws InvalidClassFileExceptionreturn 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(java.lang.String s) throws InvalidClassFileExceptionreturn the mask of flags recorded in the InnerClasses attribute for a class named s. return 0 if not found.- Throws:
InvalidClassFileException
-
-