org.eclipse.jdt.internal.compiler.env
Interface IBinaryType

All Superinterfaces:
IDependent, IGenericType
All Known Implementing Classes:
ClassFileReader

public interface IBinaryType
extends IGenericType


Field Summary
static IBinaryField[] NoField
           
static char[][] NoInterface
           
static IBinaryMethod[] NoMethod
           
static IBinaryNestedType[] NoNestedType
           
 
Fields inherited from interface org.eclipse.jdt.internal.compiler.env.IDependent
JAR_FILE_ENTRY_SEPARATOR
 
Method Summary
 IBinaryAnnotation[] getAnnotations()
          Answer the runtime visible and invisible annoations for this type or null if none.
 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 or null if the receiver is a top level type.
 IBinaryField[] getFields()
          Answer the receiver's fields or null if the array is empty.
 char[] getGenericSignature()
          Answer the receiver's signature which describes the parameter & return types as specified in section 4.4.4 of the Java 2 VM spec 3rd edition.
 char[][] getInterfaceNames()
          Answer the resolved names of the receiver's interfaces in the class file format as specified in section 4.2 of the Java 2 VM spec or null if the array is empty.
 IBinaryNestedType[] getMemberTypes()
          Answer the receiver's nested types or null if the array is empty.
 IBinaryMethod[] getMethods()
          Answer the receiver's methods or null if the array is empty.
 char[] getName()
          Answer the resolved name of the type in the class file format as specified in section 4.2 of the Java 2 VM spec.
 char[] getSourceName()
          Answer the simple name of the type in the class file.
 char[] getSuperclassName()
          Answer the resolved name of the receiver's superclass in the class file format as specified in section 4.2 of the Java 2 VM spec or null if it does not have one.
 long getTagBits()
          Answer the tagbits set according to the bits for annotations.
 boolean isAnonymous()
          Answer true if the receiver is an anonymous class.
 boolean isLocal()
          Answer true if the receiver is a local class.
 boolean isMember()
          Answer true if the receiver is a member class.
 char[] sourceFileName()
          Answer the source file attribute, or null if none.
 
Methods inherited from interface org.eclipse.jdt.internal.compiler.env.IGenericType
getModifiers, isBinaryType
 
Methods inherited from interface org.eclipse.jdt.internal.compiler.env.IDependent
getFileName
 

Field Detail

NoInterface

static final char[][] NoInterface

NoNestedType

static final IBinaryNestedType[] NoNestedType

NoField

static final IBinaryField[] NoField

NoMethod

static final IBinaryMethod[] NoMethod
Method Detail

getAnnotations

IBinaryAnnotation[] getAnnotations()
Answer the runtime visible and invisible annoations for this type or null if none.


getEnclosingTypeName

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 or null if the receiver is a top level type. For example, java.lang.String is java/lang/String.


getFields

IBinaryField[] getFields()
Answer the receiver's fields or null if the array is empty.


getGenericSignature

char[] getGenericSignature()
Answer the receiver's signature which describes the parameter & return types as specified in section 4.4.4 of the Java 2 VM spec 3rd edition. Returns null if none.

Returns:
the receiver's signature, null if none

getInterfaceNames

char[][] getInterfaceNames()
Answer the resolved names of the receiver's interfaces in the class file format as specified in section 4.2 of the Java 2 VM spec or null if the array is empty. For example, java.lang.String is java/lang/String.


getMemberTypes

IBinaryNestedType[] getMemberTypes()
Answer the receiver's nested types or null if the array is empty. This nested type info is extracted from the inner class attributes. Ask the name environment to find a member type using its compound name.


getMethods

IBinaryMethod[] getMethods()
Answer the receiver's methods or null if the array is empty.


getName

char[] getName()
Answer the resolved name of the 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.


getSourceName

char[] getSourceName()
Answer the simple name of the type in the class file. For member A$B, will answer B. For anonymous will answer null.


getSuperclassName

char[] getSuperclassName()
Answer the resolved name of the receiver's superclass in the class file format as specified in section 4.2 of the Java 2 VM spec or null if it does not have one. For example, java.lang.String is java/lang/String.


getTagBits

long getTagBits()
Answer the tagbits set according to the bits for annotations.


isAnonymous

boolean isAnonymous()
Answer true if the receiver is an anonymous class. false otherwise


isLocal

boolean isLocal()
Answer true if the receiver is a local class. false otherwise


isMember

boolean isMember()
Answer true if the receiver is a member class. false otherwise


sourceFileName

char[] sourceFileName()
Answer the source file attribute, or null if none. For example, "String.java"