import eclipse 3.1 M4 compiler
[org.ibex.tool.git] / src / org / eclipse / jdt / internal / compiler / env / IGenericType.java
index cca5c60..414d190 100644 (file)
 package org.eclipse.jdt.internal.compiler.env;
 
 public interface IGenericType extends IDependent {
+
+       // Type decl kinds
+       int CLASS_DECL = 1;
+       int INTERFACE_DECL = 2;
+       int ENUM_DECL = 3;      
+       int ANNOTATION_TYPE_DECL = 4;
+       
+/**
+ * Returns the kind of this type CLASS, INTERFACE, ENUM, ANNOTATION_TYPE
+ */
+int getKind();
+
 /**
  * Answer an int whose bits are set according the access constants
  * defined by the VM spec.
+ * NOTE 1: We have added AccDeprecated & AccSynthetic.
+ * NOTE 2: If the receiver represents a member type, the modifiers are extracted from its inner class attributes.
  */
-
-// We have added AccDeprecated & AccSynthetic.
-
-// NOTE: If the receiver represents a member type, the modifiers are extracted from its inner class attributes.
-
 int getModifiers();
 /**
  * Answer whether the receiver contains the resolved binary form
@@ -27,6 +36,4 @@ int getModifiers();
  */
 
 boolean isBinaryType();
-boolean isClass();
-boolean isInterface();
 }