import eclipse 3.1 M4 compiler
[org.ibex.tool.git] / src / org / eclipse / jdt / internal / compiler / lookup / ImportBinding.java
index 6eb0985..05c2992 100644 (file)
@@ -18,7 +18,7 @@ public class ImportBinding extends Binding {
        public boolean onDemand;
        public ImportReference reference;
 
-       Binding resolvedImport; // must ensure the import is resolved
+       public Binding resolvedImport; // must ensure the import is resolved
        
 public ImportBinding(char[][] compoundName, boolean isOnDemand, Binding binding, ImportReference reference) {
        this.compoundName = compoundName;
@@ -30,9 +30,12 @@ public ImportBinding(char[][] compoundName, boolean isOnDemand, Binding binding,
 * Answer the receiver's binding type from Binding.BindingID.
 */
 
-public final int bindingType() {
+public final int kind() {
        return IMPORT;
 }
+public boolean isStatic() {
+       return this.reference != null && this.reference.isStatic();
+}
 public char[] readableName() {
        if (onDemand)
                return CharOperation.concat(CharOperation.concatWith(compoundName, '.'), ".*".toCharArray()); //$NON-NLS-1$