org.eclipse.jdt.internal.compiler.classfmt
Class InnerClassInfo

java.lang.Object
  extended by org.eclipse.jdt.internal.compiler.classfmt.ClassFileStruct
      extended by org.eclipse.jdt.internal.compiler.classfmt.InnerClassInfo
All Implemented Interfaces:
IBinaryNestedType

public class InnerClassInfo
extends ClassFileStruct
implements IBinaryNestedType

Describes one entry in the classes table of the InnerClasses attribute. See the inner class specification (The class file attribute "InnerClasses").


Constructor Summary
InnerClassInfo(byte[] classFileBytes, int[] offsets, int offset)
           
 
Method Summary
 char[] getEnclosingTypeName()
          Answer the resolved name of the enclosing type in the class file format as specified in section 4.2 of the Java 2 VM spec.
 int getModifiers()
          Answer an int whose bits are set according the access constants defined by the VM spec.
 char[] getName()
          Answer the resolved name of the member type in the class file format as specified in section 4.2 of the Java 2 VM spec.
 char[] getSourceName()
          Answer the source name of the member type.
 java.lang.String toString()
          Answer the string representation of the receiver
 
Methods inherited from class org.eclipse.jdt.internal.compiler.classfmt.ClassFileStruct
doubleAt, floatAt, i4At, i8At, u1At, u2At, u4At, utf8At
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InnerClassInfo

public InnerClassInfo(byte[] classFileBytes,
                      int[] offsets,
                      int offset)
Method Detail

getEnclosingTypeName

public char[] getEnclosingTypeName()
Answer the resolved name of the enclosing type in the class file format as specified in section 4.2 of the Java 2 VM spec. For example, java.lang.String is java/lang/String.

Specified by:
getEnclosingTypeName in interface IBinaryNestedType
Returns:
char[]

getModifiers

public int getModifiers()
Answer an int whose bits are set according the access constants defined by the VM spec.

Specified by:
getModifiers in interface IBinaryNestedType
Returns:
int

getName

public char[] getName()
Answer the resolved name of the member type in the class file format as specified in section 4.2 of the Java 2 VM spec. For example, p1.p2.A.M is p1/p2/A$M.

Specified by:
getName in interface IBinaryNestedType
Returns:
char[]

getSourceName

public char[] getSourceName()
Answer the source name of the member type. For example, p1.p2.A.M is M.

Returns:
char[]

toString

public java.lang.String toString()
Answer the string representation of the receiver

Overrides:
toString in class java.lang.Object
Returns:
java.lang.String