Merged "Open PHP Declaration" and "Open Include File" into one action "Open Declarati...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / lookup / ReferenceBinding.java
index 81faa08..ab0d9cf 100644 (file)
@@ -180,121 +180,121 @@ public final boolean canBeSeenBy(Scope scope) {
        // isDefault()
        return invocationType.fPackage == fPackage;
 }
-public void computeId() {
-       if (compoundName.length != 3) {
-               if (compoundName.length == 4 && CharOperation.equals(JAVA_LANG_REFLECT_CONSTRUCTOR, compoundName)) {
-                       id = T_JavaLangReflectConstructor;
-                       return;
-               }
-               return;         // all other types are in java.*.*
-       }
-
-       if (!CharOperation.equals(JAVA, compoundName[0]))
-               return;         // assumes we only look up types in java
-
-       if (!CharOperation.equals(LANG, compoundName[1])) {
-               if (CharOperation.equals(JAVA_IO_PRINTSTREAM, compoundName)) {
-                       id = T_JavaIoPrintStream;
-                       return;
-               }
-               return;         // all other types are in java.lang
-       }
-
-       if (CharOperation.equals(JAVA_LANG_OBJECT, compoundName)) {
-               id = T_JavaLangObject;
-               return;
-       }
-       if (CharOperation.equals(JAVA_LANG_STRING, compoundName)) {
-               id = T_JavaLangString;
-               return;
-       }
-
-       // well-known exception types
-       if (CharOperation.equals(JAVA_LANG_THROWABLE, compoundName)) {
-               id = T_JavaLangThrowable;
-               return;
-       }
-       if (CharOperation.equals(JAVA_LANG_ERROR, compoundName)) {
-               id = T_JavaLangError;
-               return;
-       }
-       if (CharOperation.equals(JAVA_LANG_EXCEPTION, compoundName)) {
-               id = T_JavaLangException;
-               return;
-       }
-       if (CharOperation.equals(JAVA_LANG_CLASSNOTFOUNDEXCEPTION, compoundName)) {
-               id = T_JavaLangClassNotFoundException;
-               return;
-       }
-       if (CharOperation.equals(JAVA_LANG_NOCLASSDEFERROR, compoundName)) {
-               id = T_JavaLangNoClassDefError;
-               return;
-       }
-
-       // other well-known types
-       if (CharOperation.equals(JAVA_LANG_CLASS, compoundName)) {
-               id = T_JavaLangClass;
-               return;
-       }
-       if (CharOperation.equals(JAVA_LANG_STRINGBUFFER, compoundName)) {
-               id = T_JavaLangStringBuffer;
-               return;
-       }
-       if (CharOperation.equals(JAVA_LANG_SYSTEM, compoundName)) {
-               id = T_JavaLangSystem;
-               return;
-       }
-
-       if (CharOperation.equals(JAVA_LANG_INTEGER, compoundName)) {
-               id = T_JavaLangInteger;
-               return;
-       }
-
-       if (CharOperation.equals(JAVA_LANG_BYTE, compoundName)) {
-               id = T_JavaLangByte;
-               return;
-       }       
-
-       if (CharOperation.equals(JAVA_LANG_CHARACTER, compoundName)) {
-               id = T_JavaLangCharacter;
-               return;
-       }
-
-       if (CharOperation.equals(JAVA_LANG_FLOAT, compoundName)) {
-               id = T_JavaLangFloat;
-               return;
-       }
-
-       if (CharOperation.equals(JAVA_LANG_DOUBLE, compoundName)) {
-               id = T_JavaLangDouble;
-               return;
-       }
-
-       if (CharOperation.equals(JAVA_LANG_BOOLEAN, compoundName)) {
-               id = T_JavaLangBoolean;
-               return;
-       }
-
-       if (CharOperation.equals(JAVA_LANG_SHORT, compoundName)) {
-               id = T_JavaLangShort;
-               return;
-       }
-
-       if (CharOperation.equals(JAVA_LANG_LONG, compoundName)) {
-               id = T_JavaLangLong;
-               return;
-       }
-
-       if (CharOperation.equals(JAVA_LANG_VOID, compoundName)) {
-               id = T_JavaLangVoid;
-               return;
-       }
-       
-       if (CharOperation.equals(JAVA_LANG_ASSERTIONERROR, compoundName)) {
-               id = T_JavaLangAssertionError;
-               return;
-       }
-}
+//public void computeId() {
+//     if (compoundName.length != 3) {
+//             if (compoundName.length == 4 && CharOperation.equals(JAVA_LANG_REFLECT_CONSTRUCTOR, compoundName)) {
+//                     id = T_JavaLangReflectConstructor;
+//                     return;
+//             }
+//             return;         // all other types are in java.*.*
+//     }
+//
+//     if (!CharOperation.equals(JAVA, compoundName[0]))
+//             return;         // assumes we only look up types in java
+//
+//     if (!CharOperation.equals(LANG, compoundName[1])) {
+//             if (CharOperation.equals(JAVA_IO_PRINTSTREAM, compoundName)) {
+//                     id = T_JavaIoPrintStream;
+//                     return;
+//             }
+//             return;         // all other types are in java.lang
+//     }
+//
+//     if (CharOperation.equals(JAVA_LANG_OBJECT, compoundName)) {
+//             id = T_JavaLangObject;
+//             return;
+//     }
+//     if (CharOperation.equals(JAVA_LANG_STRING, compoundName)) {
+//             id = T_JavaLangString;
+//             return;
+//     }
+//
+//     // well-known exception types
+//     if (CharOperation.equals(JAVA_LANG_THROWABLE, compoundName)) {
+//             id = T_JavaLangThrowable;
+//             return;
+//     }
+//     if (CharOperation.equals(JAVA_LANG_ERROR, compoundName)) {
+//             id = T_JavaLangError;
+//             return;
+//     }
+//     if (CharOperation.equals(JAVA_LANG_EXCEPTION, compoundName)) {
+//             id = T_JavaLangException;
+//             return;
+//     }
+//     if (CharOperation.equals(JAVA_LANG_CLASSNOTFOUNDEXCEPTION, compoundName)) {
+//             id = T_JavaLangClassNotFoundException;
+//             return;
+//     }
+//     if (CharOperation.equals(JAVA_LANG_NOCLASSDEFERROR, compoundName)) {
+//             id = T_JavaLangNoClassDefError;
+//             return;
+//     }
+//
+//     // other well-known types
+//     if (CharOperation.equals(JAVA_LANG_CLASS, compoundName)) {
+//             id = T_JavaLangClass;
+//             return;
+//     }
+//     if (CharOperation.equals(JAVA_LANG_STRINGBUFFER, compoundName)) {
+//             id = T_JavaLangStringBuffer;
+//             return;
+//     }
+//     if (CharOperation.equals(JAVA_LANG_SYSTEM, compoundName)) {
+//             id = T_JavaLangSystem;
+//             return;
+//     }
+//
+//     if (CharOperation.equals(JAVA_LANG_INTEGER, compoundName)) {
+//             id = T_JavaLangInteger;
+//             return;
+//     }
+//
+//     if (CharOperation.equals(JAVA_LANG_BYTE, compoundName)) {
+//             id = T_JavaLangByte;
+//             return;
+//     }       
+//
+//     if (CharOperation.equals(JAVA_LANG_CHARACTER, compoundName)) {
+//             id = T_JavaLangCharacter;
+//             return;
+//     }
+//
+//     if (CharOperation.equals(JAVA_LANG_FLOAT, compoundName)) {
+//             id = T_JavaLangFloat;
+//             return;
+//     }
+//
+//     if (CharOperation.equals(JAVA_LANG_DOUBLE, compoundName)) {
+//             id = T_JavaLangDouble;
+//             return;
+//     }
+//
+//     if (CharOperation.equals(JAVA_LANG_BOOLEAN, compoundName)) {
+//             id = T_JavaLangBoolean;
+//             return;
+//     }
+//
+//     if (CharOperation.equals(JAVA_LANG_SHORT, compoundName)) {
+//             id = T_JavaLangShort;
+//             return;
+//     }
+//
+//     if (CharOperation.equals(JAVA_LANG_LONG, compoundName)) {
+//             id = T_JavaLangLong;
+//             return;
+//     }
+//
+//     if (CharOperation.equals(JAVA_LANG_VOID, compoundName)) {
+//             id = T_JavaLangVoid;
+//             return;
+//     }
+//     
+//     if (CharOperation.equals(JAVA_LANG_ASSERTIONERROR, compoundName)) {
+//             id = T_JavaLangAssertionError;
+//             return;
+//     }
+//}
 /* Answer the receiver's constant pool name.
 *
 * NOTE: This method should only be used during/after code gen.