id
int32
0
12.9k
code
sequencelengths
2
264k
5,600
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ImportReference", ";", "public", "class", "ImportBinding", "extends", "Binding", "{", "public", "char", "[", "]", "[", "]", "compoundName", ";", "public", "boolean", "onDemand", ";", "public", "ImportReference", "reference", ";", "public", "Binding", "resolvedImport", ";", "public", "ImportBinding", "(", "char", "[", "]", "[", "]", "compoundName", ",", "boolean", "isOnDemand", ",", "Binding", "binding", ",", "ImportReference", "reference", ")", "{", "this", ".", "compoundName", "=", "compoundName", ";", "this", ".", "onDemand", "=", "isOnDemand", ";", "this", ".", "resolvedImport", "=", "binding", ";", "this", ".", "reference", "=", "reference", ";", "}", "public", "final", "int", "kind", "(", ")", "{", "return", "IMPORT", ";", "}", "public", "boolean", "isStatic", "(", ")", "{", "return", "this", ".", "reference", "!=", "null", "&&", "this", ".", "reference", ".", "isStatic", "(", ")", ";", "}", "public", "char", "[", "]", "readableName", "(", ")", "{", "if", "(", "this", ".", "onDemand", ")", "return", "CharOperation", ".", "concat", "(", "CharOperation", ".", "concatWith", "(", "this", ".", "compoundName", ",", "'.'", ")", ",", "\".*\"", ".", "toCharArray", "(", ")", ")", ";", "else", "return", "CharOperation", ".", "concatWith", "(", "this", ".", "compoundName", ",", "'.'", ")", ";", "}", "public", "String", "toString", "(", ")", "{", "return", "\"import", ":", "\"", "+", "new", "String", "(", "readableName", "(", ")", ")", ";", "}", "}", "</s>" ]
5,601
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "public", "interface", "TypeConstants", "{", "char", "[", "]", "JAVA", "=", "\"java\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "LANG", "=", "\"lang\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "IO", "=", "\"io\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "UTIL", "=", "\"util\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "ANNOTATION", "=", "\"annotation\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "REFLECT", "=", "\"reflect\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "LENGTH", "=", "\"length\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "CLONE", "=", "\"clone\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "EQUALS", "=", "\"equals\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "GETCLASS", "=", "\"getClass\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "HASHCODE", "=", "\"hashCode\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "OBJECT", "=", "\"Object\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "MAIN", "=", "\"main\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "SERIALVERSIONUID", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "SERIALPERSISTENTFIELDS", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "READRESOLVE", "=", "\"readResolve\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "WRITEREPLACE", "=", "\"writeReplace\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "READOBJECT", "=", "\"readObject\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "WRITEOBJECT", "=", "\"writeObject\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "CharArray_JAVA_LANG_OBJECT", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "CharArray_JAVA_LANG_ENUM", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "CharArray_JAVA_LANG_ANNOTATION_ANNOTATION", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "CharArray_JAVA_IO_OBJECTINPUTSTREAM", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "CharArray_JAVA_IO_OBJECTOUTPUTSTREAM", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "CharArray_JAVA_IO_OBJECTSTREAMFIELD", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "ANONYM_PREFIX", "=", "\"new", "\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "ANONYM_SUFFIX", "=", "\"(){}\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "WILDCARD_NAME", "=", "{", "'?'", "}", ";", "char", "[", "]", "WILDCARD_SUPER", "=", "\"", "super", "\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "WILDCARD_EXTENDS", "=", "\"", "extends", "\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "WILDCARD_MINUS", "=", "{", "'-'", "}", ";", "char", "[", "]", "WILDCARD_STAR", "=", "{", "'*'", "}", ";", "char", "[", "]", "WILDCARD_PLUS", "=", "{", "'+'", "}", ";", "char", "[", "]", "WILDCARD_CAPTURE_NAME_PREFIX", "=", "\"capture#\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "WILDCARD_CAPTURE_NAME_SUFFIX", "=", "\"-of", "\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "WILDCARD_CAPTURE", "=", "{", "'!'", "}", ";", "char", "[", "]", "BYTE", "=", "\"byte\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "SHORT", "=", "\"short\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "INT", "=", "\"int\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "LONG", "=", "\"long\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "FLOAT", "=", "\"float\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "DOUBLE", "=", "\"double\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "CHAR", "=", "\"char\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "BOOLEAN", "=", "\"boolean\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "NULL", "=", "\"null\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "VOID", "=", "\"void\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "VALUE", "=", "\"value\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "VALUES", "=", "\"values\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "VALUEOF", "=", "\"valueOf\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "UPPER_SOURCE", "=", "\"SOURCE\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "UPPER_CLASS", "=", "\"CLASS\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "UPPER_RUNTIME", "=", "\"RUNTIME\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "ANNOTATION_PREFIX", "=", "\"@\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "ANNOTATION_SUFFIX", "=", "\"()\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "TYPE", "=", "\"TYPE\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "UPPER_FIELD", "=", "\"FIELD\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "UPPER_METHOD", "=", "\"METHOD\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "UPPER_PARAMETER", "=", "\"PARAMETER\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "UPPER_CONSTRUCTOR", "=", "\"CONSTRUCTOR\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "UPPER_LOCAL_VARIABLE", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "UPPER_ANNOTATION_TYPE", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "UPPER_PACKAGE", "=", "\"PACKAGE\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "[", "]", "JAVA_LANG", "=", "{", "JAVA", ",", "LANG", "}", ";", "char", "[", "]", "[", "]", "JAVA_IO", "=", "{", "JAVA", ",", "IO", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_ANNOTATION_ANNOTATION", "=", "{", "JAVA", ",", "LANG", ",", "ANNOTATION", ",", "\"Annotation\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_ASSERTIONERROR", "=", "{", "JAVA", ",", "LANG", ",", "\"\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_CLASS", "=", "{", "JAVA", ",", "LANG", ",", "\"Class\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_CLASSNOTFOUNDEXCEPTION", "=", "{", "JAVA", ",", "LANG", ",", "\"\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_CLONEABLE", "=", "{", "JAVA", ",", "LANG", ",", "\"Cloneable\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_ENUM", "=", "{", "JAVA", ",", "LANG", ",", "\"Enum\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_EXCEPTION", "=", "{", "JAVA", ",", "LANG", ",", "\"Exception\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_ERROR", "=", "{", "JAVA", ",", "LANG", ",", "\"Error\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_ILLEGALARGUMENTEXCEPTION", "=", "{", "JAVA", ",", "LANG", ",", "\"\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_ITERABLE", "=", "{", "JAVA", ",", "LANG", ",", "\"Iterable\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_NOCLASSDEFERROR", "=", "{", "JAVA", ",", "LANG", ",", "\"\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_OBJECT", "=", "{", "JAVA", ",", "LANG", ",", "OBJECT", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_STRING", "=", "{", "JAVA", ",", "LANG", ",", "\"String\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_STRINGBUFFER", "=", "{", "JAVA", ",", "LANG", ",", "\"StringBuffer\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_STRINGBUILDER", "=", "{", "JAVA", ",", "LANG", ",", "\"\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_SYSTEM", "=", "{", "JAVA", ",", "LANG", ",", "\"System\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_RUNTIMEEXCEPTION", "=", "{", "JAVA", ",", "LANG", ",", "\"\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_THROWABLE", "=", "{", "JAVA", ",", "LANG", ",", "\"Throwable\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_REFLECT_CONSTRUCTOR", "=", "{", "JAVA", ",", "LANG", ",", "REFLECT", ",", "\"Constructor\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_IO_PRINTSTREAM", "=", "{", "JAVA", ",", "IO", ",", "\"PrintStream\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_IO_SERIALIZABLE", "=", "{", "JAVA", ",", "IO", ",", "\"Serializable\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_BYTE", "=", "{", "JAVA", ",", "LANG", ",", "\"Byte\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_SHORT", "=", "{", "JAVA", ",", "LANG", ",", "\"Short\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_CHARACTER", "=", "{", "JAVA", ",", "LANG", ",", "\"Character\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_INTEGER", "=", "{", "JAVA", ",", "LANG", ",", "\"Integer\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_LONG", "=", "{", "JAVA", ",", "LANG", ",", "\"Long\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_FLOAT", "=", "{", "JAVA", ",", "LANG", ",", "\"Float\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_DOUBLE", "=", "{", "JAVA", ",", "LANG", ",", "\"Double\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_BOOLEAN", "=", "{", "JAVA", ",", "LANG", ",", "\"Boolean\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_VOID", "=", "{", "JAVA", ",", "LANG", ",", "\"Void\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_UTIL_COLLECTION", "=", "{", "JAVA", ",", "UTIL", ",", "\"Collection\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_UTIL_ITERATOR", "=", "{", "JAVA", ",", "UTIL", ",", "\"Iterator\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_DEPRECATED", "=", "{", "JAVA", ",", "LANG", ",", "\"Deprecated\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_ANNOTATION_DOCUMENTED", "=", "{", "JAVA", ",", "LANG", ",", "ANNOTATION", ",", "\"Documented\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_ANNOTATION_INHERITED", "=", "{", "JAVA", ",", "LANG", ",", "ANNOTATION", ",", "\"Inherited\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_OVERRIDE", "=", "{", "JAVA", ",", "LANG", ",", "\"Override\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_ANNOTATION_RETENTION", "=", "{", "JAVA", ",", "LANG", ",", "ANNOTATION", ",", "\"Retention\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_SUPPRESSWARNINGS", "=", "{", "JAVA", ",", "LANG", ",", "\"\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_ANNOTATION_TARGET", "=", "{", "JAVA", ",", "LANG", ",", "ANNOTATION", ",", "\"Target\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_ANNOTATION_RETENTIONPOLICY", "=", "{", "JAVA", ",", "LANG", ",", "ANNOTATION", ",", "\"\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_ANNOTATION_ELEMENTTYPE", "=", "{", "JAVA", ",", "LANG", ",", "ANNOTATION", ",", "\"ElementType\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_REFLECT_FIELD", "=", "new", "char", "[", "]", "[", "]", "{", "JAVA", ",", "LANG", ",", "REFLECT", ",", "\"Field\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_LANG_REFLECT_METHOD", "=", "new", "char", "[", "]", "[", "]", "{", "JAVA", ",", "LANG", ",", "REFLECT", ",", "\"Method\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_IO_OBJECTSTREAMEXCEPTION", "=", "new", "char", "[", "]", "[", "]", "{", "JAVA", ",", "IO", ",", "\"\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_IO_EXTERNALIZABLE", "=", "{", "JAVA", ",", "IO", ",", "\"\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_IO_IOEXCEPTION", "=", "new", "char", "[", "]", "[", "]", "{", "JAVA", ",", "IO", ",", "\"IOException\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_IO_OBJECTOUTPUTSTREAM", "=", "new", "char", "[", "]", "[", "]", "{", "JAVA", ",", "IO", ",", "\"\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVA_IO_OBJECTINPUTSTREAM", "=", "new", "char", "[", "]", "[", "]", "{", "JAVA", ",", "IO", ",", "\"\"", ".", "toCharArray", "(", ")", "}", ";", "char", "[", "]", "[", "]", "JAVAX_RMI_CORBA_STUB", "=", "new", "char", "[", "]", "[", "]", "{", "\"javax\"", ".", "toCharArray", "(", ")", ",", "\"rmi\"", ".", "toCharArray", "(", ")", ",", "\"CORBA\"", ".", "toCharArray", "(", ")", ",", "\"Stub\"", ".", "toCharArray", "(", ")", ",", "}", ";", "int", "CONSTRAINT_EQUAL", "=", "0", ";", "int", "CONSTRAINT_EXTENDS", "=", "1", ";", "int", "CONSTRAINT_SUPER", "=", "2", ";", "int", "OK", "=", "0", ";", "int", "UNCHECKED", "=", "1", ";", "int", "MISMATCH", "=", "2", ";", "char", "[", "]", "INIT", "=", "\"<init>\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "CLINIT", "=", "\"<clinit>\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "SYNTHETIC_SWITCH_ENUM_TABLE", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "SYNTHETIC_ENUM_VALUES", "=", "\"ENUM$VALUES\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "SYNTHETIC_ASSERT_DISABLED", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "SYNTHETIC_CLASS", "=", "\"class$\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "SYNTHETIC_OUTER_LOCAL_PREFIX", "=", "\"val$\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "SYNTHETIC_ENCLOSING_INSTANCE_PREFIX", "=", "\"this$\"", ".", "toCharArray", "(", ")", ";", "char", "[", "]", "SYNTHETIC_ACCESS_METHOD_PREFIX", "=", "\"access$\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "char", "[", "]", "PACKAGE_INFO_NAME", "=", "\"package-info\"", ".", "toCharArray", "(", ")", ";", "}", "</s>" ]
5,602
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "java", ".", "util", ".", "HashMap", ";", "import", "java", ".", "util", ".", "Iterator", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "AbstractMethodDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "AbstractVariableDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Argument", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "FieldDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "MethodDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeParameter", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "SimpleLookupTable", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "class", "SourceTypeBinding", "extends", "ReferenceBinding", "{", "public", "ReferenceBinding", "superclass", ";", "public", "ReferenceBinding", "[", "]", "superInterfaces", ";", "private", "FieldBinding", "[", "]", "fields", ";", "private", "MethodBinding", "[", "]", "methods", ";", "public", "ReferenceBinding", "[", "]", "memberTypes", ";", "public", "TypeVariableBinding", "[", "]", "typeVariables", ";", "public", "ClassScope", "scope", ";", "private", "final", "static", "int", "METHOD_EMUL", "=", "0", ";", "private", "final", "static", "int", "FIELD_EMUL", "=", "1", ";", "private", "final", "static", "int", "CLASS_LITERAL_EMUL", "=", "2", ";", "private", "final", "static", "int", "MAX_SYNTHETICS", "=", "3", ";", "HashMap", "[", "]", "synthetics", ";", "char", "[", "]", "genericReferenceTypeSignature", ";", "private", "SimpleLookupTable", "storedAnnotations", "=", "null", ";", "public", "SourceTypeBinding", "(", "char", "[", "]", "[", "]", "compoundName", ",", "PackageBinding", "fPackage", ",", "ClassScope", "scope", ")", "{", "this", ".", "compoundName", "=", "compoundName", ";", "this", ".", "fPackage", "=", "fPackage", ";", "this", ".", "fileName", "=", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "getFileName", "(", ")", ";", "this", ".", "modifiers", "=", "scope", ".", "referenceContext", ".", "modifiers", ";", "this", ".", "sourceName", "=", "scope", ".", "referenceContext", ".", "name", ";", "this", ".", "scope", "=", "scope", ";", "this", ".", "fields", "=", "Binding", ".", "UNINITIALIZED_FIELDS", ";", "this", ".", "methods", "=", "Binding", ".", "UNINITIALIZED_METHODS", ";", "computeId", "(", ")", ";", "}", "private", "void", "addDefaultAbstractMethods", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "KnowsDefaultAbstractMethods", ")", "!=", "0", ")", "return", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "KnowsDefaultAbstractMethods", ";", "if", "(", "isClass", "(", ")", "&&", "isAbstract", "(", ")", ")", "{", "if", "(", "this", ".", "scope", ".", "compilerOptions", "(", ")", ".", "targetJDK", ">=", "ClassFileConstants", ".", "JDK1_2", ")", "return", ";", "ReferenceBinding", "[", "]", "itsInterfaces", "=", "superInterfaces", "(", ")", ";", "if", "(", "itsInterfaces", "!=", "Binding", ".", "NO_SUPERINTERFACES", ")", "{", "MethodBinding", "[", "]", "defaultAbstracts", "=", "null", ";", "int", "defaultAbstractsCount", "=", "0", ";", "ReferenceBinding", "[", "]", "interfacesToVisit", "=", "itsInterfaces", ";", "int", "nextPosition", "=", "interfacesToVisit", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "nextPosition", ";", "i", "++", ")", "{", "ReferenceBinding", "superType", "=", "interfacesToVisit", "[", "i", "]", ";", "if", "(", "superType", ".", "isValidBinding", "(", ")", ")", "{", "MethodBinding", "[", "]", "superMethods", "=", "superType", ".", "methods", "(", ")", ";", "nextAbstractMethod", ":", "for", "(", "int", "m", "=", "superMethods", ".", "length", ";", "--", "m", ">=", "0", ";", ")", "{", "MethodBinding", "method", "=", "superMethods", "[", "m", "]", ";", "if", "(", "implementsMethod", "(", "method", ")", ")", "continue", "nextAbstractMethod", ";", "if", "(", "defaultAbstractsCount", "==", "0", ")", "{", "defaultAbstracts", "=", "new", "MethodBinding", "[", "5", "]", ";", "}", "else", "{", "for", "(", "int", "k", "=", "0", ";", "k", "<", "defaultAbstractsCount", ";", "k", "++", ")", "{", "MethodBinding", "alreadyAdded", "=", "defaultAbstracts", "[", "k", "]", ";", "if", "(", "CharOperation", ".", "equals", "(", "alreadyAdded", ".", "selector", ",", "method", ".", "selector", ")", "&&", "alreadyAdded", ".", "areParametersEqual", "(", "method", ")", ")", "continue", "nextAbstractMethod", ";", "}", "}", "MethodBinding", "defaultAbstract", "=", "new", "MethodBinding", "(", "method", ".", "modifiers", "|", "ExtraCompilerModifiers", ".", "AccDefaultAbstract", "|", "ClassFileConstants", ".", "AccSynthetic", ",", "method", ".", "selector", ",", "method", ".", "returnType", ",", "method", ".", "parameters", ",", "method", ".", "thrownExceptions", ",", "this", ")", ";", "if", "(", "defaultAbstractsCount", "==", "defaultAbstracts", ".", "length", ")", "System", ".", "arraycopy", "(", "defaultAbstracts", ",", "0", ",", "defaultAbstracts", "=", "new", "MethodBinding", "[", "2", "*", "defaultAbstractsCount", "]", ",", "0", ",", "defaultAbstractsCount", ")", ";", "defaultAbstracts", "[", "defaultAbstractsCount", "++", "]", "=", "defaultAbstract", ";", "}", "if", "(", "(", "itsInterfaces", "=", "superType", ".", "superInterfaces", "(", ")", ")", "!=", "Binding", ".", "NO_SUPERINTERFACES", ")", "{", "int", "itsLength", "=", "itsInterfaces", ".", "length", ";", "if", "(", "nextPosition", "+", "itsLength", ">=", "interfacesToVisit", ".", "length", ")", "System", ".", "arraycopy", "(", "interfacesToVisit", ",", "0", ",", "interfacesToVisit", "=", "new", "ReferenceBinding", "[", "nextPosition", "+", "itsLength", "+", "5", "]", ",", "0", ",", "nextPosition", ")", ";", "nextInterface", ":", "for", "(", "int", "a", "=", "0", ";", "a", "<", "itsLength", ";", "a", "++", ")", "{", "ReferenceBinding", "next", "=", "itsInterfaces", "[", "a", "]", ";", "for", "(", "int", "b", "=", "0", ";", "b", "<", "nextPosition", ";", "b", "++", ")", "if", "(", "next", "==", "interfacesToVisit", "[", "b", "]", ")", "continue", "nextInterface", ";", "interfacesToVisit", "[", "nextPosition", "++", "]", "=", "next", ";", "}", "}", "}", "}", "if", "(", "defaultAbstractsCount", ">", "0", ")", "{", "int", "length", "=", "this", ".", "methods", ".", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "methods", ",", "0", ",", "this", ".", "methods", "=", "new", "MethodBinding", "[", "length", "+", "defaultAbstractsCount", "]", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "defaultAbstracts", ",", "0", ",", "this", ".", "methods", ",", "length", ",", "defaultAbstractsCount", ")", ";", "length", "=", "length", "+", "defaultAbstractsCount", ";", "if", "(", "length", ">", "1", ")", "ReferenceBinding", ".", "sortMethods", "(", "this", ".", "methods", ",", "0", ",", "length", ")", ";", "}", "}", "}", "}", "public", "FieldBinding", "addSyntheticFieldForInnerclass", "(", "LocalVariableBinding", "actualOuterLocalVariable", ")", "{", "if", "(", "this", ".", "synthetics", "==", "null", ")", "this", ".", "synthetics", "=", "new", "HashMap", "[", "MAX_SYNTHETICS", "]", ";", "if", "(", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", "==", "null", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", "=", "new", "HashMap", "(", "5", ")", ";", "FieldBinding", "synthField", "=", "(", "FieldBinding", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", ".", "get", "(", "actualOuterLocalVariable", ")", ";", "if", "(", "synthField", "==", "null", ")", "{", "synthField", "=", "new", "SyntheticFieldBinding", "(", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "SYNTHETIC_OUTER_LOCAL_PREFIX", ",", "actualOuterLocalVariable", ".", "name", ")", ",", "actualOuterLocalVariable", ".", "type", ",", "ClassFileConstants", ".", "AccPrivate", "|", "ClassFileConstants", ".", "AccFinal", "|", "ClassFileConstants", ".", "AccSynthetic", ",", "this", ",", "Constant", ".", "NotAConstant", ",", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", ".", "size", "(", ")", ")", ";", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", ".", "put", "(", "actualOuterLocalVariable", ",", "synthField", ")", ";", "}", "boolean", "needRecheck", ";", "int", "index", "=", "1", ";", "do", "{", "needRecheck", "=", "false", ";", "FieldBinding", "existingField", ";", "if", "(", "(", "existingField", "=", "getField", "(", "synthField", ".", "name", ",", "true", ")", ")", "!=", "null", ")", "{", "TypeDeclaration", "typeDecl", "=", "this", ".", "scope", ".", "referenceContext", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "typeDecl", ".", "fields", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "FieldDeclaration", "fieldDecl", "=", "typeDecl", ".", "fields", "[", "i", "]", ";", "if", "(", "fieldDecl", ".", "binding", "==", "existingField", ")", "{", "synthField", ".", "name", "=", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "SYNTHETIC_OUTER_LOCAL_PREFIX", ",", "actualOuterLocalVariable", ".", "name", ",", "(", "\"$\"", "+", "String", ".", "valueOf", "(", "index", "++", ")", ")", ".", "toCharArray", "(", ")", ")", ";", "needRecheck", "=", "true", ";", "break", ";", "}", "}", "}", "}", "while", "(", "needRecheck", ")", ";", "return", "synthField", ";", "}", "public", "FieldBinding", "addSyntheticFieldForInnerclass", "(", "ReferenceBinding", "enclosingType", ")", "{", "if", "(", "this", ".", "synthetics", "==", "null", ")", "this", ".", "synthetics", "=", "new", "HashMap", "[", "MAX_SYNTHETICS", "]", ";", "if", "(", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", "==", "null", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", "=", "new", "HashMap", "(", "5", ")", ";", "FieldBinding", "synthField", "=", "(", "FieldBinding", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", ".", "get", "(", "enclosingType", ")", ";", "if", "(", "synthField", "==", "null", ")", "{", "synthField", "=", "new", "SyntheticFieldBinding", "(", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "SYNTHETIC_ENCLOSING_INSTANCE_PREFIX", ",", "String", ".", "valueOf", "(", "enclosingType", ".", "depth", "(", ")", ")", ".", "toCharArray", "(", ")", ")", ",", "enclosingType", ",", "ClassFileConstants", ".", "AccDefault", "|", "ClassFileConstants", ".", "AccFinal", "|", "ClassFileConstants", ".", "AccSynthetic", ",", "this", ",", "Constant", ".", "NotAConstant", ",", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", ".", "size", "(", ")", ")", ";", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", ".", "put", "(", "enclosingType", ",", "synthField", ")", ";", "}", "boolean", "needRecheck", ";", "do", "{", "needRecheck", "=", "false", ";", "FieldBinding", "existingField", ";", "if", "(", "(", "existingField", "=", "getField", "(", "synthField", ".", "name", ",", "true", ")", ")", "!=", "null", ")", "{", "TypeDeclaration", "typeDecl", "=", "this", ".", "scope", ".", "referenceContext", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "typeDecl", ".", "fields", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "FieldDeclaration", "fieldDecl", "=", "typeDecl", ".", "fields", "[", "i", "]", ";", "if", "(", "fieldDecl", ".", "binding", "==", "existingField", ")", "{", "if", "(", "this", ".", "scope", ".", "compilerOptions", "(", ")", ".", "complianceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "synthField", ".", "name", "=", "CharOperation", ".", "concat", "(", "synthField", ".", "name", ",", "\"$\"", ".", "toCharArray", "(", ")", ")", ";", "needRecheck", "=", "true", ";", "}", "else", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "duplicateFieldInType", "(", "this", ",", "fieldDecl", ")", ";", "}", "break", ";", "}", "}", "}", "}", "while", "(", "needRecheck", ")", ";", "return", "synthField", ";", "}", "public", "FieldBinding", "addSyntheticFieldForClassLiteral", "(", "TypeBinding", "targetType", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "this", ".", "synthetics", "==", "null", ")", "this", ".", "synthetics", "=", "new", "HashMap", "[", "MAX_SYNTHETICS", "]", ";", "if", "(", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "CLASS_LITERAL_EMUL", "]", "==", "null", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "CLASS_LITERAL_EMUL", "]", "=", "new", "HashMap", "(", "5", ")", ";", "FieldBinding", "synthField", "=", "(", "FieldBinding", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "CLASS_LITERAL_EMUL", "]", ".", "get", "(", "targetType", ")", ";", "if", "(", "synthField", "==", "null", ")", "{", "synthField", "=", "new", "SyntheticFieldBinding", "(", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "SYNTHETIC_CLASS", ",", "String", ".", "valueOf", "(", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "CLASS_LITERAL_EMUL", "]", ".", "size", "(", ")", ")", ".", "toCharArray", "(", ")", ")", ",", "blockScope", ".", "getJavaLangClass", "(", ")", ",", "ClassFileConstants", ".", "AccDefault", "|", "ClassFileConstants", ".", "AccStatic", "|", "ClassFileConstants", ".", "AccSynthetic", ",", "this", ",", "Constant", ".", "NotAConstant", ",", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "CLASS_LITERAL_EMUL", "]", ".", "size", "(", ")", ")", ";", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "CLASS_LITERAL_EMUL", "]", ".", "put", "(", "targetType", ",", "synthField", ")", ";", "}", "FieldBinding", "existingField", ";", "if", "(", "(", "existingField", "=", "getField", "(", "synthField", ".", "name", ",", "true", ")", ")", "!=", "null", ")", "{", "TypeDeclaration", "typeDecl", "=", "blockScope", ".", "referenceType", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "typeDecl", ".", "fields", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "FieldDeclaration", "fieldDecl", "=", "typeDecl", ".", "fields", "[", "i", "]", ";", "if", "(", "fieldDecl", ".", "binding", "==", "existingField", ")", "{", "blockScope", ".", "problemReporter", "(", ")", ".", "duplicateFieldInType", "(", "this", ",", "fieldDecl", ")", ";", "break", ";", "}", "}", "}", "return", "synthField", ";", "}", "public", "FieldBinding", "addSyntheticFieldForAssert", "(", "BlockScope", "blockScope", ")", "{", "if", "(", "this", ".", "synthetics", "==", "null", ")", "this", ".", "synthetics", "=", "new", "HashMap", "[", "MAX_SYNTHETICS", "]", ";", "if", "(", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", "==", "null", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", "=", "new", "HashMap", "(", "5", ")", ";", "FieldBinding", "synthField", "=", "(", "FieldBinding", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", ".", "get", "(", "\"\"", ")", ";", "if", "(", "synthField", "==", "null", ")", "{", "synthField", "=", "new", "SyntheticFieldBinding", "(", "TypeConstants", ".", "SYNTHETIC_ASSERT_DISABLED", ",", "TypeBinding", ".", "BOOLEAN", ",", "ClassFileConstants", ".", "AccDefault", "|", "ClassFileConstants", ".", "AccStatic", "|", "ClassFileConstants", ".", "AccSynthetic", "|", "ClassFileConstants", ".", "AccFinal", ",", "this", ",", "Constant", ".", "NotAConstant", ",", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", ".", "size", "(", ")", ")", ";", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", ".", "put", "(", "\"\"", ",", "synthField", ")", ";", "}", "boolean", "needRecheck", ";", "int", "index", "=", "0", ";", "do", "{", "needRecheck", "=", "false", ";", "FieldBinding", "existingField", ";", "if", "(", "(", "existingField", "=", "getField", "(", "synthField", ".", "name", ",", "true", ")", ")", "!=", "null", ")", "{", "TypeDeclaration", "typeDecl", "=", "this", ".", "scope", ".", "referenceContext", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "typeDecl", ".", "fields", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "FieldDeclaration", "fieldDecl", "=", "typeDecl", ".", "fields", "[", "i", "]", ";", "if", "(", "fieldDecl", ".", "binding", "==", "existingField", ")", "{", "synthField", ".", "name", "=", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "SYNTHETIC_ASSERT_DISABLED", ",", "(", "\"_\"", "+", "String", ".", "valueOf", "(", "index", "++", ")", ")", ".", "toCharArray", "(", ")", ")", ";", "needRecheck", "=", "true", ";", "break", ";", "}", "}", "}", "}", "while", "(", "needRecheck", ")", ";", "return", "synthField", ";", "}", "public", "FieldBinding", "addSyntheticFieldForEnumValues", "(", ")", "{", "if", "(", "this", ".", "synthetics", "==", "null", ")", "this", ".", "synthetics", "=", "new", "HashMap", "[", "MAX_SYNTHETICS", "]", ";", "if", "(", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", "==", "null", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", "=", "new", "HashMap", "(", "5", ")", ";", "FieldBinding", "synthField", "=", "(", "FieldBinding", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", ".", "get", "(", "\"\"", ")", ";", "if", "(", "synthField", "==", "null", ")", "{", "synthField", "=", "new", "SyntheticFieldBinding", "(", "TypeConstants", ".", "SYNTHETIC_ENUM_VALUES", ",", "this", ".", "scope", ".", "createArrayType", "(", "this", ",", "1", ")", ",", "ClassFileConstants", ".", "AccPrivate", "|", "ClassFileConstants", ".", "AccStatic", "|", "ClassFileConstants", ".", "AccSynthetic", "|", "ClassFileConstants", ".", "AccFinal", ",", "this", ",", "Constant", ".", "NotAConstant", ",", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", ".", "size", "(", ")", ")", ";", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", ".", "put", "(", "\"\"", ",", "synthField", ")", ";", "}", "boolean", "needRecheck", ";", "int", "index", "=", "0", ";", "do", "{", "needRecheck", "=", "false", ";", "FieldBinding", "existingField", ";", "if", "(", "(", "existingField", "=", "getField", "(", "synthField", ".", "name", ",", "true", ")", ")", "!=", "null", ")", "{", "TypeDeclaration", "typeDecl", "=", "this", ".", "scope", ".", "referenceContext", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "typeDecl", ".", "fields", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "FieldDeclaration", "fieldDecl", "=", "typeDecl", ".", "fields", "[", "i", "]", ";", "if", "(", "fieldDecl", ".", "binding", "==", "existingField", ")", "{", "synthField", ".", "name", "=", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "SYNTHETIC_ENUM_VALUES", ",", "(", "\"_\"", "+", "String", ".", "valueOf", "(", "index", "++", ")", ")", ".", "toCharArray", "(", ")", ")", ";", "needRecheck", "=", "true", ";", "break", ";", "}", "}", "}", "}", "while", "(", "needRecheck", ")", ";", "return", "synthField", ";", "}", "public", "SyntheticMethodBinding", "addSyntheticMethod", "(", "FieldBinding", "targetField", ",", "boolean", "isReadAccess", ",", "boolean", "isSuperAccess", ")", "{", "if", "(", "this", ".", "synthetics", "==", "null", ")", "this", ".", "synthetics", "=", "new", "HashMap", "[", "MAX_SYNTHETICS", "]", ";", "if", "(", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", "==", "null", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", "=", "new", "HashMap", "(", "5", ")", ";", "SyntheticMethodBinding", "accessMethod", "=", "null", ";", "SyntheticMethodBinding", "[", "]", "accessors", "=", "(", "SyntheticMethodBinding", "[", "]", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", ".", "get", "(", "targetField", ")", ";", "if", "(", "accessors", "==", "null", ")", "{", "accessMethod", "=", "new", "SyntheticMethodBinding", "(", "targetField", ",", "isReadAccess", ",", "isSuperAccess", ",", "this", ")", ";", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", ".", "put", "(", "targetField", ",", "accessors", "=", "new", "SyntheticMethodBinding", "[", "2", "]", ")", ";", "accessors", "[", "isReadAccess", "?", "0", ":", "1", "]", "=", "accessMethod", ";", "}", "else", "{", "if", "(", "(", "accessMethod", "=", "accessors", "[", "isReadAccess", "?", "0", ":", "1", "]", ")", "==", "null", ")", "{", "accessMethod", "=", "new", "SyntheticMethodBinding", "(", "targetField", ",", "isReadAccess", ",", "isSuperAccess", ",", "this", ")", ";", "accessors", "[", "isReadAccess", "?", "0", ":", "1", "]", "=", "accessMethod", ";", "}", "}", "return", "accessMethod", ";", "}", "public", "SyntheticMethodBinding", "addSyntheticEnumMethod", "(", "char", "[", "]", "selector", ")", "{", "if", "(", "this", ".", "synthetics", "==", "null", ")", "this", ".", "synthetics", "=", "new", "HashMap", "[", "MAX_SYNTHETICS", "]", ";", "if", "(", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", "==", "null", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", "=", "new", "HashMap", "(", "5", ")", ";", "SyntheticMethodBinding", "accessMethod", "=", "null", ";", "SyntheticMethodBinding", "[", "]", "accessors", "=", "(", "SyntheticMethodBinding", "[", "]", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", ".", "get", "(", "selector", ")", ";", "if", "(", "accessors", "==", "null", ")", "{", "accessMethod", "=", "new", "SyntheticMethodBinding", "(", "this", ",", "selector", ")", ";", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", ".", "put", "(", "selector", ",", "accessors", "=", "new", "SyntheticMethodBinding", "[", "2", "]", ")", ";", "accessors", "[", "0", "]", "=", "accessMethod", ";", "}", "else", "{", "if", "(", "(", "accessMethod", "=", "accessors", "[", "0", "]", ")", "==", "null", ")", "{", "accessMethod", "=", "new", "SyntheticMethodBinding", "(", "this", ",", "selector", ")", ";", "accessors", "[", "0", "]", "=", "accessMethod", ";", "}", "}", "return", "accessMethod", ";", "}", "public", "SyntheticFieldBinding", "addSyntheticFieldForSwitchEnum", "(", "char", "[", "]", "fieldName", ",", "String", "key", ")", "{", "if", "(", "this", ".", "synthetics", "==", "null", ")", "this", ".", "synthetics", "=", "new", "HashMap", "[", "MAX_SYNTHETICS", "]", ";", "if", "(", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", "==", "null", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", "=", "new", "HashMap", "(", "5", ")", ";", "SyntheticFieldBinding", "synthField", "=", "(", "SyntheticFieldBinding", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", ".", "get", "(", "key", ")", ";", "if", "(", "synthField", "==", "null", ")", "{", "synthField", "=", "new", "SyntheticFieldBinding", "(", "fieldName", ",", "this", ".", "scope", ".", "createArrayType", "(", "TypeBinding", ".", "INT", ",", "1", ")", ",", "ClassFileConstants", ".", "AccPrivate", "|", "ClassFileConstants", ".", "AccStatic", "|", "ClassFileConstants", ".", "AccSynthetic", ",", "this", ",", "Constant", ".", "NotAConstant", ",", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", ".", "size", "(", ")", ")", ";", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", ".", "put", "(", "key", ",", "synthField", ")", ";", "}", "boolean", "needRecheck", ";", "int", "index", "=", "0", ";", "do", "{", "needRecheck", "=", "false", ";", "FieldBinding", "existingField", ";", "if", "(", "(", "existingField", "=", "getField", "(", "synthField", ".", "name", ",", "true", ")", ")", "!=", "null", ")", "{", "TypeDeclaration", "typeDecl", "=", "this", ".", "scope", ".", "referenceContext", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "typeDecl", ".", "fields", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "FieldDeclaration", "fieldDecl", "=", "typeDecl", ".", "fields", "[", "i", "]", ";", "if", "(", "fieldDecl", ".", "binding", "==", "existingField", ")", "{", "synthField", ".", "name", "=", "CharOperation", ".", "concat", "(", "fieldName", ",", "(", "\"_\"", "+", "String", ".", "valueOf", "(", "index", "++", ")", ")", ".", "toCharArray", "(", ")", ")", ";", "needRecheck", "=", "true", ";", "break", ";", "}", "}", "}", "}", "while", "(", "needRecheck", ")", ";", "return", "synthField", ";", "}", "public", "SyntheticMethodBinding", "addSyntheticMethodForSwitchEnum", "(", "TypeBinding", "enumBinding", ")", "{", "if", "(", "this", ".", "synthetics", "==", "null", ")", "this", ".", "synthetics", "=", "new", "HashMap", "[", "MAX_SYNTHETICS", "]", ";", "if", "(", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", "==", "null", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", "=", "new", "HashMap", "(", "5", ")", ";", "SyntheticMethodBinding", "accessMethod", "=", "null", ";", "char", "[", "]", "selector", "=", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "SYNTHETIC_SWITCH_ENUM_TABLE", ",", "enumBinding", ".", "constantPoolName", "(", ")", ")", ";", "CharOperation", ".", "replace", "(", "selector", ",", "'/'", ",", "'$'", ")", ";", "final", "String", "key", "=", "new", "String", "(", "selector", ")", ";", "SyntheticMethodBinding", "[", "]", "accessors", "=", "(", "SyntheticMethodBinding", "[", "]", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", ".", "get", "(", "key", ")", ";", "if", "(", "accessors", "==", "null", ")", "{", "final", "SyntheticFieldBinding", "fieldBinding", "=", "addSyntheticFieldForSwitchEnum", "(", "selector", ",", "key", ")", ";", "accessMethod", "=", "new", "SyntheticMethodBinding", "(", "fieldBinding", ",", "this", ",", "enumBinding", ",", "selector", ")", ";", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", ".", "put", "(", "key", ",", "accessors", "=", "new", "SyntheticMethodBinding", "[", "2", "]", ")", ";", "accessors", "[", "0", "]", "=", "accessMethod", ";", "}", "else", "{", "if", "(", "(", "accessMethod", "=", "accessors", "[", "0", "]", ")", "==", "null", ")", "{", "final", "SyntheticFieldBinding", "fieldBinding", "=", "addSyntheticFieldForSwitchEnum", "(", "selector", ",", "key", ")", ";", "accessMethod", "=", "new", "SyntheticMethodBinding", "(", "fieldBinding", ",", "this", ",", "enumBinding", ",", "selector", ")", ";", "accessors", "[", "0", "]", "=", "accessMethod", ";", "}", "}", "return", "accessMethod", ";", "}", "public", "SyntheticMethodBinding", "addSyntheticMethod", "(", "MethodBinding", "targetMethod", ",", "boolean", "isSuperAccess", ")", "{", "if", "(", "this", ".", "synthetics", "==", "null", ")", "this", ".", "synthetics", "=", "new", "HashMap", "[", "MAX_SYNTHETICS", "]", ";", "if", "(", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", "==", "null", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", "=", "new", "HashMap", "(", "5", ")", ";", "SyntheticMethodBinding", "accessMethod", "=", "null", ";", "SyntheticMethodBinding", "[", "]", "accessors", "=", "(", "SyntheticMethodBinding", "[", "]", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", ".", "get", "(", "targetMethod", ")", ";", "if", "(", "accessors", "==", "null", ")", "{", "accessMethod", "=", "new", "SyntheticMethodBinding", "(", "targetMethod", ",", "isSuperAccess", ",", "this", ")", ";", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", ".", "put", "(", "targetMethod", ",", "accessors", "=", "new", "SyntheticMethodBinding", "[", "2", "]", ")", ";", "accessors", "[", "isSuperAccess", "?", "0", ":", "1", "]", "=", "accessMethod", ";", "}", "else", "{", "if", "(", "(", "accessMethod", "=", "accessors", "[", "isSuperAccess", "?", "0", ":", "1", "]", ")", "==", "null", ")", "{", "accessMethod", "=", "new", "SyntheticMethodBinding", "(", "targetMethod", ",", "isSuperAccess", ",", "this", ")", ";", "accessors", "[", "isSuperAccess", "?", "0", ":", "1", "]", "=", "accessMethod", ";", "}", "}", "return", "accessMethod", ";", "}", "public", "SyntheticMethodBinding", "addSyntheticBridgeMethod", "(", "MethodBinding", "inheritedMethodToBridge", ",", "MethodBinding", "targetMethod", ")", "{", "if", "(", "isInterface", "(", ")", ")", "return", "null", ";", "if", "(", "inheritedMethodToBridge", ".", "returnType", ".", "erasure", "(", ")", "==", "targetMethod", ".", "returnType", ".", "erasure", "(", ")", "&&", "inheritedMethodToBridge", ".", "areParameterErasuresEqual", "(", "targetMethod", ")", ")", "{", "return", "null", ";", "}", "if", "(", "this", ".", "synthetics", "==", "null", ")", "this", ".", "synthetics", "=", "new", "HashMap", "[", "MAX_SYNTHETICS", "]", ";", "if", "(", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", "==", "null", ")", "{", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", "=", "new", "HashMap", "(", "5", ")", ";", "}", "else", "{", "Iterator", "synthMethods", "=", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", ".", "keySet", "(", ")", ".", "iterator", "(", ")", ";", "while", "(", "synthMethods", ".", "hasNext", "(", ")", ")", "{", "Object", "synthetic", "=", "synthMethods", ".", "next", "(", ")", ";", "if", "(", "synthetic", "instanceof", "MethodBinding", ")", "{", "MethodBinding", "method", "=", "(", "MethodBinding", ")", "synthetic", ";", "if", "(", "CharOperation", ".", "equals", "(", "inheritedMethodToBridge", ".", "selector", ",", "method", ".", "selector", ")", "&&", "inheritedMethodToBridge", ".", "returnType", ".", "erasure", "(", ")", "==", "method", ".", "returnType", ".", "erasure", "(", ")", "&&", "inheritedMethodToBridge", ".", "areParameterErasuresEqual", "(", "method", ")", ")", "{", "return", "null", ";", "}", "}", "}", "}", "SyntheticMethodBinding", "accessMethod", "=", "null", ";", "SyntheticMethodBinding", "[", "]", "accessors", "=", "(", "SyntheticMethodBinding", "[", "]", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", ".", "get", "(", "inheritedMethodToBridge", ")", ";", "if", "(", "accessors", "==", "null", ")", "{", "accessMethod", "=", "new", "SyntheticMethodBinding", "(", "inheritedMethodToBridge", ",", "targetMethod", ",", "this", ")", ";", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", ".", "put", "(", "inheritedMethodToBridge", ",", "accessors", "=", "new", "SyntheticMethodBinding", "[", "2", "]", ")", ";", "accessors", "[", "1", "]", "=", "accessMethod", ";", "}", "else", "{", "if", "(", "(", "accessMethod", "=", "accessors", "[", "1", "]", ")", "==", "null", ")", "{", "accessMethod", "=", "new", "SyntheticMethodBinding", "(", "inheritedMethodToBridge", ",", "targetMethod", ",", "this", ")", ";", "accessors", "[", "1", "]", "=", "accessMethod", ";", "}", "}", "return", "accessMethod", ";", "}", "public", "SyntheticMethodBinding", "addSyntheticBridgeMethod", "(", "MethodBinding", "inheritedMethodToBridge", ")", "{", "if", "(", "this", ".", "scope", ".", "compilerOptions", "(", ")", ".", "complianceLevel", "<=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "return", "null", ";", "}", "if", "(", "isInterface", "(", ")", ")", "return", "null", ";", "if", "(", "inheritedMethodToBridge", ".", "isAbstract", "(", ")", "||", "inheritedMethodToBridge", ".", "isFinal", "(", ")", "||", "inheritedMethodToBridge", ".", "isStatic", "(", ")", ")", "{", "return", "null", ";", "}", "if", "(", "this", ".", "synthetics", "==", "null", ")", "this", ".", "synthetics", "=", "new", "HashMap", "[", "MAX_SYNTHETICS", "]", ";", "if", "(", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", "==", "null", ")", "{", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", "=", "new", "HashMap", "(", "5", ")", ";", "}", "else", "{", "Iterator", "synthMethods", "=", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", ".", "keySet", "(", ")", ".", "iterator", "(", ")", ";", "while", "(", "synthMethods", ".", "hasNext", "(", ")", ")", "{", "Object", "synthetic", "=", "synthMethods", ".", "next", "(", ")", ";", "if", "(", "synthetic", "instanceof", "MethodBinding", ")", "{", "MethodBinding", "method", "=", "(", "MethodBinding", ")", "synthetic", ";", "if", "(", "CharOperation", ".", "equals", "(", "inheritedMethodToBridge", ".", "selector", ",", "method", ".", "selector", ")", "&&", "inheritedMethodToBridge", ".", "returnType", ".", "erasure", "(", ")", "==", "method", ".", "returnType", ".", "erasure", "(", ")", "&&", "inheritedMethodToBridge", ".", "areParameterErasuresEqual", "(", "method", ")", ")", "{", "return", "null", ";", "}", "}", "}", "}", "SyntheticMethodBinding", "accessMethod", "=", "null", ";", "SyntheticMethodBinding", "[", "]", "accessors", "=", "(", "SyntheticMethodBinding", "[", "]", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", ".", "get", "(", "inheritedMethodToBridge", ")", ";", "if", "(", "accessors", "==", "null", ")", "{", "accessMethod", "=", "new", "SyntheticMethodBinding", "(", "inheritedMethodToBridge", ",", "this", ")", ";", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", ".", "put", "(", "inheritedMethodToBridge", ",", "accessors", "=", "new", "SyntheticMethodBinding", "[", "2", "]", ")", ";", "accessors", "[", "0", "]", "=", "accessMethod", ";", "}", "else", "{", "if", "(", "(", "accessMethod", "=", "accessors", "[", "0", "]", ")", "==", "null", ")", "{", "accessMethod", "=", "new", "SyntheticMethodBinding", "(", "inheritedMethodToBridge", ",", "this", ")", ";", "accessors", "[", "0", "]", "=", "accessMethod", ";", "}", "}", "return", "accessMethod", ";", "}", "boolean", "areFieldsInitialized", "(", ")", "{", "return", "this", ".", "fields", "!=", "Binding", ".", "UNINITIALIZED_FIELDS", ";", "}", "boolean", "areMethodsInitialized", "(", ")", "{", "return", "this", ".", "methods", "!=", "Binding", ".", "UNINITIALIZED_METHODS", ";", "}", "public", "int", "kind", "(", ")", "{", "if", "(", "this", ".", "typeVariables", "!=", "Binding", ".", "NO_TYPE_VARIABLES", ")", "return", "Binding", ".", "GENERIC_TYPE", ";", "return", "Binding", ".", "TYPE", ";", "}", "public", "char", "[", "]", "computeUniqueKey", "(", "boolean", "isLeaf", ")", "{", "char", "[", "]", "uniqueKey", "=", "super", ".", "computeUniqueKey", "(", "isLeaf", ")", ";", "if", "(", "uniqueKey", ".", "length", "==", "2", ")", "return", "uniqueKey", ";", "if", "(", "Util", ".", "isClassFileName", "(", "this", ".", "fileName", ")", ")", "return", "uniqueKey", ";", "int", "end", "=", "CharOperation", ".", "lastIndexOf", "(", "'.'", ",", "this", ".", "fileName", ")", ";", "if", "(", "end", "!=", "-", "1", ")", "{", "int", "start", "=", "CharOperation", ".", "lastIndexOf", "(", "'/'", ",", "this", ".", "fileName", ")", "+", "1", ";", "char", "[", "]", "mainTypeName", "=", "CharOperation", ".", "subarray", "(", "this", ".", "fileName", ",", "start", ",", "end", ")", ";", "start", "=", "CharOperation", ".", "lastIndexOf", "(", "'/'", ",", "uniqueKey", ")", "+", "1", ";", "if", "(", "start", "==", "0", ")", "start", "=", "1", ";", "end", "=", "CharOperation", ".", "indexOf", "(", "'$'", ",", "uniqueKey", ",", "start", ")", ";", "if", "(", "end", "==", "-", "1", ")", "end", "=", "CharOperation", ".", "indexOf", "(", "'<'", ",", "uniqueKey", ",", "start", ")", ";", "if", "(", "end", "==", "-", "1", ")", "end", "=", "CharOperation", ".", "indexOf", "(", "';'", ",", "uniqueKey", ",", "start", ")", ";", "char", "[", "]", "topLevelType", "=", "CharOperation", ".", "subarray", "(", "uniqueKey", ",", "start", ",", "end", ")", ";", "if", "(", "!", "CharOperation", ".", "equals", "(", "topLevelType", ",", "mainTypeName", ")", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "buffer", ".", "append", "(", "uniqueKey", ",", "0", ",", "start", ")", ";", "buffer", ".", "append", "(", "mainTypeName", ")", ";", "buffer", ".", "append", "(", "'~'", ")", ";", "buffer", ".", "append", "(", "topLevelType", ")", ";", "buffer", ".", "append", "(", "uniqueKey", ",", "end", ",", "uniqueKey", ".", "length", "-", "end", ")", ";", "int", "length", "=", "buffer", ".", "length", "(", ")", ";", "uniqueKey", "=", "new", "char", "[", "length", "]", ";", "buffer", ".", "getChars", "(", "0", ",", "length", ",", "uniqueKey", ",", "0", ")", ";", "return", "uniqueKey", ";", "}", "}", "return", "uniqueKey", ";", "}", "void", "faultInTypesForFieldsAndMethods", "(", ")", "{", "getAnnotationTagBits", "(", ")", ";", "ReferenceBinding", "enclosingType", "=", "enclosingType", "(", ")", ";", "if", "(", "enclosingType", "!=", "null", "&&", "enclosingType", ".", "isViewedAsDeprecated", "(", ")", "&&", "!", "isDeprecated", "(", ")", ")", "this", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccDeprecatedImplicitly", ";", "fields", "(", ")", ";", "methods", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "memberTypes", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "(", "(", "SourceTypeBinding", ")", "this", ".", "memberTypes", "[", "i", "]", ")", ".", "faultInTypesForFieldsAndMethods", "(", ")", ";", "}", "public", "FieldBinding", "[", "]", "fields", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreFieldsComplete", ")", "!=", "0", ")", "return", "this", ".", "fields", ";", "int", "failed", "=", "0", ";", "FieldBinding", "[", "]", "resolvedFields", "=", "this", ".", "fields", ";", "try", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreFieldsSorted", ")", "==", "0", ")", "{", "int", "length", "=", "this", ".", "fields", ".", "length", ";", "if", "(", "length", ">", "1", ")", "ReferenceBinding", ".", "sortFields", "(", "this", ".", "fields", ",", "0", ",", "length", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "AreFieldsSorted", ";", "}", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "fields", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "resolveTypeFor", "(", "this", ".", "fields", "[", "i", "]", ")", "==", "null", ")", "{", "if", "(", "resolvedFields", "==", "this", ".", "fields", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "fields", ",", "0", ",", "resolvedFields", "=", "new", "FieldBinding", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "resolvedFields", "[", "i", "]", "=", "null", ";", "failed", "++", ";", "}", "}", "}", "finally", "{", "if", "(", "failed", ">", "0", ")", "{", "int", "newSize", "=", "resolvedFields", ".", "length", "-", "failed", ";", "if", "(", "newSize", "==", "0", ")", "return", "this", ".", "fields", "=", "Binding", ".", "NO_FIELDS", ";", "FieldBinding", "[", "]", "newFields", "=", "new", "FieldBinding", "[", "newSize", "]", ";", "for", "(", "int", "i", "=", "0", ",", "j", "=", "0", ",", "length", "=", "resolvedFields", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "resolvedFields", "[", "i", "]", "!=", "null", ")", "newFields", "[", "j", "++", "]", "=", "resolvedFields", "[", "i", "]", ";", "}", "this", ".", "fields", "=", "newFields", ";", "}", "}", "this", ".", "tagBits", "|=", "TagBits", ".", "AreFieldsComplete", ";", "return", "this", ".", "fields", ";", "}", "public", "char", "[", "]", "genericTypeSignature", "(", ")", "{", "if", "(", "this", ".", "genericReferenceTypeSignature", "==", "null", ")", "this", ".", "genericReferenceTypeSignature", "=", "computeGenericTypeSignature", "(", "this", ".", "typeVariables", ")", ";", "return", "this", ".", "genericReferenceTypeSignature", ";", "}", "public", "char", "[", "]", "genericSignature", "(", ")", "{", "StringBuffer", "sig", "=", "null", ";", "if", "(", "this", ".", "typeVariables", "!=", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "sig", "=", "new", "StringBuffer", "(", "10", ")", ";", "sig", ".", "append", "(", "'<'", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "typeVariables", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "sig", ".", "append", "(", "this", ".", "typeVariables", "[", "i", "]", ".", "genericSignature", "(", ")", ")", ";", "sig", ".", "append", "(", "'>'", ")", ";", "}", "else", "{", "noSignature", ":", "if", "(", "this", ".", "superclass", "==", "null", "||", "!", "this", ".", "superclass", ".", "isParameterizedType", "(", ")", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "superInterfaces", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "if", "(", "this", ".", "superInterfaces", "[", "i", "]", ".", "isParameterizedType", "(", ")", ")", "break", "noSignature", ";", "return", "null", ";", "}", "sig", "=", "new", "StringBuffer", "(", "10", ")", ";", "}", "if", "(", "this", ".", "superclass", "!=", "null", ")", "sig", ".", "append", "(", "this", ".", "superclass", ".", "genericTypeSignature", "(", ")", ")", ";", "else", "sig", ".", "append", "(", "this", ".", "scope", ".", "getJavaLangObject", "(", ")", ".", "genericTypeSignature", "(", ")", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "superInterfaces", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "sig", ".", "append", "(", "this", ".", "superInterfaces", "[", "i", "]", ".", "genericTypeSignature", "(", ")", ")", ";", "return", "sig", ".", "toString", "(", ")", ".", "toCharArray", "(", ")", ";", "}", "public", "long", "getAnnotationTagBits", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AnnotationResolved", ")", "==", "0", "&&", "this", ".", "scope", "!=", "null", ")", "{", "TypeDeclaration", "typeDecl", "=", "this", ".", "scope", ".", "referenceContext", ";", "boolean", "old", "=", "typeDecl", ".", "staticInitializerScope", ".", "insideTypeAnnotation", ";", "try", "{", "typeDecl", ".", "staticInitializerScope", ".", "insideTypeAnnotation", "=", "true", ";", "ASTNode", ".", "resolveAnnotations", "(", "typeDecl", ".", "staticInitializerScope", ",", "typeDecl", ".", "annotations", ",", "this", ")", ";", "}", "finally", "{", "typeDecl", ".", "staticInitializerScope", ".", "insideTypeAnnotation", "=", "old", ";", "}", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AnnotationDeprecated", ")", "!=", "0", ")", "this", ".", "modifiers", "|=", "ClassFileConstants", ".", "AccDeprecated", ";", "}", "return", "this", ".", "tagBits", ";", "}", "public", "MethodBinding", "[", "]", "getDefaultAbstractMethods", "(", ")", "{", "int", "count", "=", "0", ";", "for", "(", "int", "i", "=", "this", ".", "methods", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "this", ".", "methods", "[", "i", "]", ".", "isDefaultAbstract", "(", ")", ")", "count", "++", ";", "if", "(", "count", "==", "0", ")", "return", "Binding", ".", "NO_METHODS", ";", "MethodBinding", "[", "]", "result", "=", "new", "MethodBinding", "[", "count", "]", ";", "count", "=", "0", ";", "for", "(", "int", "i", "=", "this", ".", "methods", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "this", ".", "methods", "[", "i", "]", ".", "isDefaultAbstract", "(", ")", ")", "result", "[", "count", "++", "]", "=", "this", ".", "methods", "[", "i", "]", ";", "return", "result", ";", "}", "public", "MethodBinding", "getExactConstructor", "(", "TypeBinding", "[", "]", "argumentTypes", ")", "{", "int", "argCount", "=", "argumentTypes", ".", "length", ";", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsComplete", ")", "!=", "0", ")", "{", "long", "range", ";", "if", "(", "(", "range", "=", "ReferenceBinding", ".", "binarySearch", "(", "TypeConstants", ".", "INIT", ",", "this", ".", "methods", ")", ")", ">=", "0", ")", "{", "nextMethod", ":", "for", "(", "int", "imethod", "=", "(", "int", ")", "range", ",", "end", "=", "(", "int", ")", "(", "range", ">>", "32", ")", ";", "imethod", "<=", "end", ";", "imethod", "++", ")", "{", "MethodBinding", "method", "=", "this", ".", "methods", "[", "imethod", "]", ";", "if", "(", "method", ".", "parameters", ".", "length", "==", "argCount", ")", "{", "TypeBinding", "[", "]", "toMatch", "=", "method", ".", "parameters", ";", "for", "(", "int", "iarg", "=", "0", ";", "iarg", "<", "argCount", ";", "iarg", "++", ")", "if", "(", "toMatch", "[", "iarg", "]", "!=", "argumentTypes", "[", "iarg", "]", ")", "continue", "nextMethod", ";", "return", "method", ";", "}", "}", "}", "}", "else", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsSorted", ")", "==", "0", ")", "{", "int", "length", "=", "this", ".", "methods", ".", "length", ";", "if", "(", "length", ">", "1", ")", "ReferenceBinding", ".", "sortMethods", "(", "this", ".", "methods", ",", "0", ",", "length", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "AreMethodsSorted", ";", "}", "long", "range", ";", "if", "(", "(", "range", "=", "ReferenceBinding", ".", "binarySearch", "(", "TypeConstants", ".", "INIT", ",", "this", ".", "methods", ")", ")", ">=", "0", ")", "{", "nextMethod", ":", "for", "(", "int", "imethod", "=", "(", "int", ")", "range", ",", "end", "=", "(", "int", ")", "(", "range", ">>", "32", ")", ";", "imethod", "<=", "end", ";", "imethod", "++", ")", "{", "MethodBinding", "method", "=", "this", ".", "methods", "[", "imethod", "]", ";", "if", "(", "resolveTypesFor", "(", "method", ")", "==", "null", "||", "method", ".", "returnType", "==", "null", ")", "{", "methods", "(", ")", ";", "return", "getExactConstructor", "(", "argumentTypes", ")", ";", "}", "if", "(", "method", ".", "parameters", ".", "length", "==", "argCount", ")", "{", "TypeBinding", "[", "]", "toMatch", "=", "method", ".", "parameters", ";", "for", "(", "int", "iarg", "=", "0", ";", "iarg", "<", "argCount", ";", "iarg", "++", ")", "if", "(", "toMatch", "[", "iarg", "]", "!=", "argumentTypes", "[", "iarg", "]", ")", "continue", "nextMethod", ";", "return", "method", ";", "}", "}", "}", "}", "return", "null", ";", "}", "public", "MethodBinding", "getExactMethod", "(", "char", "[", "]", "selector", ",", "TypeBinding", "[", "]", "argumentTypes", ",", "CompilationUnitScope", "refScope", ")", "{", "int", "argCount", "=", "argumentTypes", ".", "length", ";", "boolean", "foundNothing", "=", "true", ";", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsComplete", ")", "!=", "0", ")", "{", "long", "range", ";", "if", "(", "(", "range", "=", "ReferenceBinding", ".", "binarySearch", "(", "selector", ",", "this", ".", "methods", ")", ")", ">=", "0", ")", "{", "nextMethod", ":", "for", "(", "int", "imethod", "=", "(", "int", ")", "range", ",", "end", "=", "(", "int", ")", "(", "range", ">>", "32", ")", ";", "imethod", "<=", "end", ";", "imethod", "++", ")", "{", "MethodBinding", "method", "=", "this", ".", "methods", "[", "imethod", "]", ";", "foundNothing", "=", "false", ";", "if", "(", "method", ".", "parameters", ".", "length", "==", "argCount", ")", "{", "TypeBinding", "[", "]", "toMatch", "=", "method", ".", "parameters", ";", "for", "(", "int", "iarg", "=", "0", ";", "iarg", "<", "argCount", ";", "iarg", "++", ")", "if", "(", "toMatch", "[", "iarg", "]", "!=", "argumentTypes", "[", "iarg", "]", ")", "continue", "nextMethod", ";", "return", "method", ";", "}", "}", "}", "}", "else", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsSorted", ")", "==", "0", ")", "{", "int", "length", "=", "this", ".", "methods", ".", "length", ";", "if", "(", "length", ">", "1", ")", "ReferenceBinding", ".", "sortMethods", "(", "this", ".", "methods", ",", "0", ",", "length", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "AreMethodsSorted", ";", "}", "long", "range", ";", "if", "(", "(", "range", "=", "ReferenceBinding", ".", "binarySearch", "(", "selector", ",", "this", ".", "methods", ")", ")", ">=", "0", ")", "{", "int", "start", "=", "(", "int", ")", "range", ",", "end", "=", "(", "int", ")", "(", "range", ">>", "32", ")", ";", "for", "(", "int", "imethod", "=", "start", ";", "imethod", "<=", "end", ";", "imethod", "++", ")", "{", "MethodBinding", "method", "=", "this", ".", "methods", "[", "imethod", "]", ";", "if", "(", "resolveTypesFor", "(", "method", ")", "==", "null", "||", "method", ".", "returnType", "==", "null", ")", "{", "methods", "(", ")", ";", "return", "getExactMethod", "(", "selector", ",", "argumentTypes", ",", "refScope", ")", ";", "}", "}", "boolean", "isSource15", "=", "this", ".", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "for", "(", "int", "i", "=", "start", ";", "i", "<=", "end", ";", "i", "++", ")", "{", "MethodBinding", "method1", "=", "this", ".", "methods", "[", "i", "]", ";", "for", "(", "int", "j", "=", "end", ";", "j", ">", "i", ";", "j", "--", ")", "{", "MethodBinding", "method2", "=", "this", ".", "methods", "[", "j", "]", ";", "boolean", "paramsMatch", "=", "isSource15", "?", "method1", ".", "areParameterErasuresEqual", "(", "method2", ")", ":", "method1", ".", "areParametersEqual", "(", "method2", ")", ";", "if", "(", "paramsMatch", ")", "{", "methods", "(", ")", ";", "return", "getExactMethod", "(", "selector", ",", "argumentTypes", ",", "refScope", ")", ";", "}", "}", "}", "nextMethod", ":", "for", "(", "int", "imethod", "=", "start", ";", "imethod", "<=", "end", ";", "imethod", "++", ")", "{", "MethodBinding", "method", "=", "this", ".", "methods", "[", "imethod", "]", ";", "TypeBinding", "[", "]", "toMatch", "=", "method", ".", "parameters", ";", "if", "(", "toMatch", ".", "length", "==", "argCount", ")", "{", "for", "(", "int", "iarg", "=", "0", ";", "iarg", "<", "argCount", ";", "iarg", "++", ")", "if", "(", "toMatch", "[", "iarg", "]", "!=", "argumentTypes", "[", "iarg", "]", ")", "continue", "nextMethod", ";", "return", "method", ";", "}", "}", "}", "}", "if", "(", "foundNothing", ")", "{", "if", "(", "isInterface", "(", ")", ")", "{", "if", "(", "this", ".", "superInterfaces", ".", "length", "==", "1", ")", "{", "if", "(", "refScope", "!=", "null", ")", "refScope", ".", "recordTypeReference", "(", "this", ".", "superInterfaces", "[", "0", "]", ")", ";", "return", "this", ".", "superInterfaces", "[", "0", "]", ".", "getExactMethod", "(", "selector", ",", "argumentTypes", ",", "refScope", ")", ";", "}", "}", "else", "if", "(", "this", ".", "superclass", "!=", "null", ")", "{", "if", "(", "refScope", "!=", "null", ")", "refScope", ".", "recordTypeReference", "(", "this", ".", "superclass", ")", ";", "return", "this", ".", "superclass", ".", "getExactMethod", "(", "selector", ",", "argumentTypes", ",", "refScope", ")", ";", "}", "}", "return", "null", ";", "}", "public", "FieldBinding", "getField", "(", "char", "[", "]", "fieldName", ",", "boolean", "needResolve", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreFieldsComplete", ")", "!=", "0", ")", "return", "ReferenceBinding", ".", "binarySearch", "(", "fieldName", ",", "this", ".", "fields", ")", ";", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreFieldsSorted", ")", "==", "0", ")", "{", "int", "length", "=", "this", ".", "fields", ".", "length", ";", "if", "(", "length", ">", "1", ")", "ReferenceBinding", ".", "sortFields", "(", "this", ".", "fields", ",", "0", ",", "length", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "AreFieldsSorted", ";", "}", "FieldBinding", "field", "=", "ReferenceBinding", ".", "binarySearch", "(", "fieldName", ",", "this", ".", "fields", ")", ";", "if", "(", "field", "!=", "null", ")", "{", "FieldBinding", "result", "=", "null", ";", "try", "{", "result", "=", "resolveTypeFor", "(", "field", ")", ";", "return", "result", ";", "}", "finally", "{", "if", "(", "result", "==", "null", ")", "{", "int", "newSize", "=", "this", ".", "fields", ".", "length", "-", "1", ";", "if", "(", "newSize", "==", "0", ")", "{", "this", ".", "fields", "=", "Binding", ".", "NO_FIELDS", ";", "}", "else", "{", "FieldBinding", "[", "]", "newFields", "=", "new", "FieldBinding", "[", "newSize", "]", ";", "int", "index", "=", "0", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "fields", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "FieldBinding", "f", "=", "this", ".", "fields", "[", "i", "]", ";", "if", "(", "f", "==", "field", ")", "continue", ";", "newFields", "[", "index", "++", "]", "=", "f", ";", "}", "this", ".", "fields", "=", "newFields", ";", "}", "}", "}", "}", "return", "null", ";", "}", "public", "MethodBinding", "[", "]", "getAnyExtraMethods", "(", "char", "[", "]", "selector", ")", "{", "return", "(", "scope", "==", "null", "?", "null", ":", "scope", ".", "getAnyExtraMethods", "(", "selector", ")", ")", ";", "}", "public", "MethodBinding", "[", "]", "getMethods", "(", "char", "[", "]", "selector", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsComplete", ")", "!=", "0", ")", "{", "long", "range", ";", "if", "(", "(", "range", "=", "ReferenceBinding", ".", "binarySearch", "(", "selector", ",", "this", ".", "methods", ")", ")", ">=", "0", ")", "{", "int", "start", "=", "(", "int", ")", "range", ",", "end", "=", "(", "int", ")", "(", "range", ">>", "32", ")", ";", "int", "length", "=", "end", "-", "start", "+", "1", ";", "MethodBinding", "[", "]", "result", ";", "System", ".", "arraycopy", "(", "this", ".", "methods", ",", "start", ",", "result", "=", "new", "MethodBinding", "[", "length", "]", ",", "0", ",", "length", ")", ";", "return", "result", ";", "}", "else", "{", "return", "Binding", ".", "NO_METHODS", ";", "}", "}", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsSorted", ")", "==", "0", ")", "{", "int", "length", "=", "this", ".", "methods", ".", "length", ";", "if", "(", "length", ">", "1", ")", "ReferenceBinding", ".", "sortMethods", "(", "this", ".", "methods", ",", "0", ",", "length", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "AreMethodsSorted", ";", "}", "MethodBinding", "[", "]", "result", ";", "long", "range", ";", "if", "(", "(", "range", "=", "ReferenceBinding", ".", "binarySearch", "(", "selector", ",", "this", ".", "methods", ")", ")", ">=", "0", ")", "{", "int", "start", "=", "(", "int", ")", "range", ",", "end", "=", "(", "int", ")", "(", "range", ">>", "32", ")", ";", "for", "(", "int", "i", "=", "start", ";", "i", "<=", "end", ";", "i", "++", ")", "{", "MethodBinding", "method", "=", "this", ".", "methods", "[", "i", "]", ";", "if", "(", "resolveTypesFor", "(", "method", ")", "==", "null", "||", "method", ".", "returnType", "==", "null", ")", "{", "methods", "(", ")", ";", "return", "getMethods", "(", "selector", ")", ";", "}", "}", "int", "length", "=", "end", "-", "start", "+", "1", ";", "System", ".", "arraycopy", "(", "this", ".", "methods", ",", "start", ",", "result", "=", "new", "MethodBinding", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "else", "{", "return", "Binding", ".", "NO_METHODS", ";", "}", "boolean", "isSource15", "=", "this", ".", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "result", ".", "length", "-", "1", ";", "i", "<", "length", ";", "i", "++", ")", "{", "MethodBinding", "method", "=", "result", "[", "i", "]", ";", "for", "(", "int", "j", "=", "length", ";", "j", ">", "i", ";", "j", "--", ")", "{", "boolean", "paramsMatch", "=", "isSource15", "?", "method", ".", "areParameterErasuresEqual", "(", "result", "[", "j", "]", ")", ":", "method", ".", "areParametersEqual", "(", "result", "[", "j", "]", ")", ";", "if", "(", "paramsMatch", ")", "{", "methods", "(", ")", ";", "return", "getMethods", "(", "selector", ")", ";", "}", "}", "}", "return", "result", ";", "}", "public", "FieldBinding", "getSyntheticField", "(", "LocalVariableBinding", "actualOuterLocalVariable", ")", "{", "if", "(", "this", ".", "synthetics", "==", "null", "||", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", "==", "null", ")", "return", "null", ";", "return", "(", "FieldBinding", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", ".", "get", "(", "actualOuterLocalVariable", ")", ";", "}", "public", "FieldBinding", "getSyntheticField", "(", "ReferenceBinding", "targetEnclosingType", ",", "boolean", "onlyExactMatch", ")", "{", "if", "(", "this", ".", "synthetics", "==", "null", "||", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", "==", "null", ")", "return", "null", ";", "FieldBinding", "field", "=", "(", "FieldBinding", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", ".", "get", "(", "targetEnclosingType", ")", ";", "if", "(", "field", "!=", "null", ")", "return", "field", ";", "if", "(", "!", "onlyExactMatch", ")", "{", "Iterator", "accessFields", "=", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", ".", "values", "(", ")", ".", "iterator", "(", ")", ";", "while", "(", "accessFields", ".", "hasNext", "(", ")", ")", "{", "field", "=", "(", "FieldBinding", ")", "accessFields", ".", "next", "(", ")", ";", "if", "(", "CharOperation", ".", "prefixEquals", "(", "TypeConstants", ".", "SYNTHETIC_ENCLOSING_INSTANCE_PREFIX", ",", "field", ".", "name", ")", "&&", "field", ".", "type", ".", "findSuperTypeOriginatingFrom", "(", "targetEnclosingType", ")", "!=", "null", ")", "return", "field", ";", "}", "}", "return", "null", ";", "}", "public", "SyntheticMethodBinding", "getSyntheticBridgeMethod", "(", "MethodBinding", "inheritedMethodToBridge", ")", "{", "if", "(", "this", ".", "synthetics", "==", "null", ")", "return", "null", ";", "if", "(", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", "==", "null", ")", "return", "null", ";", "SyntheticMethodBinding", "[", "]", "accessors", "=", "(", "SyntheticMethodBinding", "[", "]", ")", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", ".", "get", "(", "inheritedMethodToBridge", ")", ";", "if", "(", "accessors", "==", "null", ")", "return", "null", ";", "return", "accessors", "[", "1", "]", ";", "}", "public", "void", "initializeDeprecatedAnnotationTagBits", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "DeprecatedAnnotationResolved", ")", "==", "0", ")", "{", "TypeDeclaration", "typeDecl", "=", "this", ".", "scope", ".", "referenceContext", ";", "boolean", "old", "=", "typeDecl", ".", "staticInitializerScope", ".", "insideTypeAnnotation", ";", "try", "{", "typeDecl", ".", "staticInitializerScope", ".", "insideTypeAnnotation", "=", "true", ";", "ASTNode", ".", "resolveDeprecatedAnnotations", "(", "typeDecl", ".", "staticInitializerScope", ",", "typeDecl", ".", "annotations", ",", "this", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "DeprecatedAnnotationResolved", ";", "}", "finally", "{", "typeDecl", ".", "staticInitializerScope", ".", "insideTypeAnnotation", "=", "old", ";", "}", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AnnotationDeprecated", ")", "!=", "0", ")", "{", "this", ".", "modifiers", "|=", "ClassFileConstants", ".", "AccDeprecated", ";", "}", "}", "}", "void", "initializeForStaticImports", "(", ")", "{", "if", "(", "this", ".", "scope", "==", "null", ")", "return", ";", "if", "(", "this", ".", "superInterfaces", "==", "null", ")", "this", ".", "scope", ".", "connectTypeHierarchy", "(", ")", ";", "this", ".", "scope", ".", "buildFields", "(", ")", ";", "this", ".", "scope", ".", "buildMethods", "(", ")", ";", "}", "public", "boolean", "isEquivalentTo", "(", "TypeBinding", "otherType", ")", "{", "if", "(", "this", "==", "otherType", ")", "return", "true", ";", "if", "(", "otherType", "==", "null", ")", "return", "false", ";", "switch", "(", "otherType", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "WILDCARD_TYPE", ":", "case", "Binding", ".", "INTERSECTION_TYPE", ":", "return", "(", "(", "WildcardBinding", ")", "otherType", ")", ".", "boundCheck", "(", "this", ")", ";", "case", "Binding", ".", "PARAMETERIZED_TYPE", ":", "if", "(", "(", "otherType", ".", "tagBits", "&", "TagBits", ".", "HasDirectWildcard", ")", "==", "0", "&&", "(", "!", "isMemberType", "(", ")", "||", "!", "otherType", ".", "isMemberType", "(", ")", ")", ")", "return", "false", ";", "ParameterizedTypeBinding", "otherParamType", "=", "(", "ParameterizedTypeBinding", ")", "otherType", ";", "if", "(", "this", "!=", "otherParamType", ".", "genericType", "(", ")", ")", "return", "false", ";", "if", "(", "!", "isStatic", "(", ")", ")", "{", "ReferenceBinding", "enclosing", "=", "enclosingType", "(", ")", ";", "if", "(", "enclosing", "!=", "null", ")", "{", "ReferenceBinding", "otherEnclosing", "=", "otherParamType", ".", "enclosingType", "(", ")", ";", "if", "(", "otherEnclosing", "==", "null", ")", "return", "false", ";", "if", "(", "(", "otherEnclosing", ".", "tagBits", "&", "TagBits", ".", "HasDirectWildcard", ")", "==", "0", ")", "{", "if", "(", "enclosing", "!=", "otherEnclosing", ")", "return", "false", ";", "}", "else", "{", "if", "(", "!", "enclosing", ".", "isEquivalentTo", "(", "otherParamType", ".", "enclosingType", "(", ")", ")", ")", "return", "false", ";", "}", "}", "}", "int", "length", "=", "this", ".", "typeVariables", "==", "null", "?", "0", ":", "this", ".", "typeVariables", ".", "length", ";", "TypeBinding", "[", "]", "otherArguments", "=", "otherParamType", ".", "arguments", ";", "int", "otherLength", "=", "otherArguments", "==", "null", "?", "0", ":", "otherArguments", ".", "length", ";", "if", "(", "otherLength", "!=", "length", ")", "return", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "if", "(", "!", "this", ".", "typeVariables", "[", "i", "]", ".", "isTypeArgumentContainedBy", "(", "otherArguments", "[", "i", "]", ")", ")", "return", "false", ";", "return", "true", ";", "case", "Binding", ".", "RAW_TYPE", ":", "return", "otherType", ".", "erasure", "(", ")", "==", "this", ";", "}", "return", "false", ";", "}", "public", "boolean", "isGenericType", "(", ")", "{", "return", "this", ".", "typeVariables", "!=", "Binding", ".", "NO_TYPE_VARIABLES", ";", "}", "public", "boolean", "isHierarchyConnected", "(", ")", "{", "return", "(", "this", ".", "tagBits", "&", "TagBits", ".", "EndHierarchyCheck", ")", "!=", "0", ";", "}", "public", "ReferenceBinding", "[", "]", "memberTypes", "(", ")", "{", "return", "this", ".", "memberTypes", ";", "}", "public", "boolean", "hasMemberTypes", "(", ")", "{", "return", "this", ".", "memberTypes", ".", "length", ">", "0", ";", "}", "public", "MethodBinding", "[", "]", "methods", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsComplete", ")", "!=", "0", ")", "return", "this", ".", "methods", ";", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsSorted", ")", "==", "0", ")", "{", "int", "length", "=", "this", ".", "methods", ".", "length", ";", "if", "(", "length", ">", "1", ")", "ReferenceBinding", ".", "sortMethods", "(", "this", ".", "methods", ",", "0", ",", "length", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "AreMethodsSorted", ";", "}", "int", "failed", "=", "0", ";", "MethodBinding", "[", "]", "resolvedMethods", "=", "this", ".", "methods", ";", "try", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "methods", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "resolveTypesFor", "(", "this", ".", "methods", "[", "i", "]", ")", "==", "null", ")", "{", "if", "(", "resolvedMethods", "==", "this", ".", "methods", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "methods", ",", "0", ",", "resolvedMethods", "=", "new", "MethodBinding", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "resolvedMethods", "[", "i", "]", "=", "null", ";", "failed", "++", ";", "}", "}", "boolean", "complyTo15", "=", "this", ".", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "methods", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "MethodBinding", "method", "=", "resolvedMethods", "[", "i", "]", ";", "if", "(", "method", "==", "null", ")", "continue", ";", "char", "[", "]", "selector", "=", "method", ".", "selector", ";", "AbstractMethodDeclaration", "methodDecl", "=", "null", ";", "nextSibling", ":", "for", "(", "int", "j", "=", "i", "+", "1", ";", "j", "<", "length", ";", "j", "++", ")", "{", "MethodBinding", "method2", "=", "resolvedMethods", "[", "j", "]", ";", "if", "(", "method2", "==", "null", ")", "continue", "nextSibling", ";", "if", "(", "!", "CharOperation", ".", "equals", "(", "selector", ",", "method2", ".", "selector", ")", ")", "break", "nextSibling", ";", "if", "(", "complyTo15", "?", "!", "method", ".", "areParameterErasuresEqual", "(", "method2", ")", ":", "!", "method", ".", "areParametersEqual", "(", "method2", ")", ")", "continue", "nextSibling", ";", "boolean", "isEnumSpecialMethod", "=", "isEnum", "(", ")", "&&", "(", "CharOperation", ".", "equals", "(", "selector", ",", "TypeConstants", ".", "VALUEOF", ")", "||", "CharOperation", ".", "equals", "(", "selector", ",", "TypeConstants", ".", "VALUES", ")", ")", ";", "boolean", "removeMethod2", "=", "true", ";", "if", "(", "methodDecl", "==", "null", ")", "{", "methodDecl", "=", "method", ".", "sourceMethod", "(", ")", ";", "if", "(", "methodDecl", "!=", "null", "&&", "methodDecl", ".", "binding", "!=", "null", ")", "{", "boolean", "removeMethod", "=", "method", ".", "returnType", "==", "null", "&&", "method2", ".", "returnType", "!=", "null", ";", "if", "(", "isEnumSpecialMethod", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "duplicateEnumSpecialMethod", "(", "this", ",", "methodDecl", ")", ";", "removeMethod", "=", "true", ";", "}", "else", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "duplicateMethodInType", "(", "this", ",", "methodDecl", ",", "method", ".", "areParametersEqual", "(", "method2", ")", ")", ";", "}", "if", "(", "removeMethod", ")", "{", "removeMethod2", "=", "false", ";", "methodDecl", ".", "binding", "=", "null", ";", "if", "(", "resolvedMethods", "==", "this", ".", "methods", ")", "System", ".", "arraycopy", "(", "this", ".", "methods", ",", "0", ",", "resolvedMethods", "=", "new", "MethodBinding", "[", "length", "]", ",", "0", ",", "length", ")", ";", "resolvedMethods", "[", "i", "]", "=", "null", ";", "failed", "++", ";", "}", "}", "}", "AbstractMethodDeclaration", "method2Decl", "=", "method2", ".", "sourceMethod", "(", ")", ";", "if", "(", "method2Decl", "!=", "null", "&&", "method2Decl", ".", "binding", "!=", "null", ")", "{", "if", "(", "isEnumSpecialMethod", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "duplicateEnumSpecialMethod", "(", "this", ",", "method2Decl", ")", ";", "removeMethod2", "=", "true", ";", "}", "else", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "duplicateMethodInType", "(", "this", ",", "method2Decl", ",", "method", ".", "areParametersEqual", "(", "method2", ")", ")", ";", "}", "if", "(", "removeMethod2", ")", "{", "method2Decl", ".", "binding", "=", "null", ";", "if", "(", "resolvedMethods", "==", "this", ".", "methods", ")", "System", ".", "arraycopy", "(", "this", ".", "methods", ",", "0", ",", "resolvedMethods", "=", "new", "MethodBinding", "[", "length", "]", ",", "0", ",", "length", ")", ";", "resolvedMethods", "[", "j", "]", "=", "null", ";", "failed", "++", ";", "}", "}", "}", "if", "(", "method", ".", "returnType", "==", "null", "&&", "resolvedMethods", "[", "i", "]", "!=", "null", ")", "{", "methodDecl", "=", "method", ".", "sourceMethod", "(", ")", ";", "if", "(", "methodDecl", "!=", "null", ")", "methodDecl", ".", "binding", "=", "null", ";", "if", "(", "resolvedMethods", "==", "this", ".", "methods", ")", "System", ".", "arraycopy", "(", "this", ".", "methods", ",", "0", ",", "resolvedMethods", "=", "new", "MethodBinding", "[", "length", "]", ",", "0", ",", "length", ")", ";", "resolvedMethods", "[", "i", "]", "=", "null", ";", "failed", "++", ";", "}", "}", "}", "finally", "{", "if", "(", "failed", ">", "0", ")", "{", "int", "newSize", "=", "resolvedMethods", ".", "length", "-", "failed", ";", "if", "(", "newSize", "==", "0", ")", "{", "this", ".", "methods", "=", "Binding", ".", "NO_METHODS", ";", "}", "else", "{", "MethodBinding", "[", "]", "newMethods", "=", "new", "MethodBinding", "[", "newSize", "]", ";", "for", "(", "int", "i", "=", "0", ",", "j", "=", "0", ",", "length", "=", "resolvedMethods", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "if", "(", "resolvedMethods", "[", "i", "]", "!=", "null", ")", "newMethods", "[", "j", "++", "]", "=", "resolvedMethods", "[", "i", "]", ";", "this", ".", "methods", "=", "newMethods", ";", "}", "}", "addDefaultAbstractMethods", "(", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "AreMethodsComplete", ";", "}", "return", "this", ".", "methods", ";", "}", "public", "FieldBinding", "resolveTypeFor", "(", "FieldBinding", "field", ")", "{", "if", "(", "(", "field", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccUnresolved", ")", "==", "0", ")", "return", "field", ";", "if", "(", "this", ".", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "if", "(", "(", "field", ".", "getAnnotationTagBits", "(", ")", "&", "TagBits", ".", "AnnotationDeprecated", ")", "!=", "0", ")", "field", ".", "modifiers", "|=", "ClassFileConstants", ".", "AccDeprecated", ";", "}", "if", "(", "isViewedAsDeprecated", "(", ")", "&&", "!", "field", ".", "isDeprecated", "(", ")", ")", "field", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccDeprecatedImplicitly", ";", "if", "(", "hasRestrictedAccess", "(", ")", ")", "field", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccRestrictedAccess", ";", "FieldDeclaration", "[", "]", "fieldDecls", "=", "this", ".", "scope", ".", "referenceContext", ".", "fields", ";", "for", "(", "int", "f", "=", "0", ",", "length", "=", "fieldDecls", ".", "length", ";", "f", "<", "length", ";", "f", "++", ")", "{", "if", "(", "fieldDecls", "[", "f", "]", ".", "binding", "!=", "field", ")", "continue", ";", "MethodScope", "initializationScope", "=", "field", ".", "isStatic", "(", ")", "?", "this", ".", "scope", ".", "referenceContext", ".", "staticInitializerScope", ":", "this", ".", "scope", ".", "referenceContext", ".", "initializerScope", ";", "FieldBinding", "previousField", "=", "initializationScope", ".", "initializedField", ";", "try", "{", "initializationScope", ".", "initializedField", "=", "field", ";", "FieldDeclaration", "fieldDecl", "=", "fieldDecls", "[", "f", "]", ";", "TypeBinding", "fieldType", "=", "fieldDecl", ".", "getKind", "(", ")", "==", "AbstractVariableDeclaration", ".", "ENUM_CONSTANT", "?", "initializationScope", ".", "environment", "(", ")", ".", "convertToRawType", "(", "this", ",", "false", ")", ":", "fieldDecl", ".", "type", ".", "resolveType", "(", "initializationScope", ",", "true", ")", ";", "field", ".", "type", "=", "fieldType", ";", "field", ".", "modifiers", "&=", "~", "ExtraCompilerModifiers", ".", "AccUnresolved", ";", "if", "(", "fieldType", "==", "null", ")", "{", "fieldDecl", ".", "binding", "=", "null", ";", "return", "null", ";", "}", "if", "(", "fieldType", "==", "TypeBinding", ".", "VOID", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "variableTypeCannotBeVoid", "(", "fieldDecl", ")", ";", "fieldDecl", ".", "binding", "=", "null", ";", "return", "null", ";", "}", "if", "(", "fieldType", ".", "isArrayType", "(", ")", "&&", "(", "(", "ArrayBinding", ")", "fieldType", ")", ".", "leafComponentType", "==", "TypeBinding", ".", "VOID", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "variableTypeCannotBeVoidArray", "(", "fieldDecl", ")", ";", "fieldDecl", ".", "binding", "=", "null", ";", "return", "null", ";", "}", "if", "(", "(", "fieldType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "field", ".", "tagBits", "|=", "TagBits", ".", "HasMissingType", ";", "}", "TypeBinding", "leafType", "=", "fieldType", ".", "leafComponentType", "(", ")", ";", "if", "(", "leafType", "instanceof", "ReferenceBinding", "&&", "(", "(", "(", "ReferenceBinding", ")", "leafType", ")", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccGenericSignature", ")", "!=", "0", ")", "{", "field", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccGenericSignature", ";", "}", "}", "finally", "{", "initializationScope", ".", "initializedField", "=", "previousField", ";", "}", "return", "field", ";", "}", "return", "null", ";", "}", "public", "MethodBinding", "resolveTypesFor", "(", "MethodBinding", "method", ")", "{", "if", "(", "(", "method", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccUnresolved", ")", "==", "0", ")", "return", "method", ";", "if", "(", "this", ".", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "if", "(", "(", "method", ".", "getAnnotationTagBits", "(", ")", "&", "TagBits", ".", "AnnotationDeprecated", ")", "!=", "0", ")", "method", ".", "modifiers", "|=", "ClassFileConstants", ".", "AccDeprecated", ";", "}", "if", "(", "isViewedAsDeprecated", "(", ")", "&&", "!", "method", ".", "isDeprecated", "(", ")", ")", "method", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccDeprecatedImplicitly", ";", "if", "(", "hasRestrictedAccess", "(", ")", ")", "method", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccRestrictedAccess", ";", "AbstractMethodDeclaration", "methodDecl", "=", "method", ".", "sourceMethod", "(", ")", ";", "if", "(", "methodDecl", "==", "null", ")", "{", "if", "(", "method", "instanceof", "LazilyResolvedMethodBinding", ")", "{", "LazilyResolvedMethodBinding", "lrMethod", "=", "(", "LazilyResolvedMethodBinding", ")", "method", ";", "TypeBinding", "ptb", "=", "lrMethod", ".", "getParameterTypeBinding", "(", ")", ";", "if", "(", "ptb", "==", "null", ")", "{", "method", ".", "parameters", "=", "Binding", ".", "NO_PARAMETERS", ";", "}", "else", "{", "method", ".", "parameters", "=", "new", "TypeBinding", "[", "]", "{", "ptb", "}", ";", "}", "method", ".", "returnType", "=", "lrMethod", ".", "getReturnTypeBinding", "(", ")", ";", "method", ".", "modifiers", "&=", "~", "ExtraCompilerModifiers", ".", "AccUnresolved", ";", "return", "method", ";", "}", "return", "null", ";", "}", "TypeParameter", "[", "]", "typeParameters", "=", "methodDecl", ".", "typeParameters", "(", ")", ";", "if", "(", "typeParameters", "!=", "null", ")", "{", "methodDecl", ".", "scope", ".", "connectTypeVariables", "(", "typeParameters", ",", "true", ")", ";", "for", "(", "int", "i", "=", "0", ",", "paramLength", "=", "typeParameters", ".", "length", ";", "i", "<", "paramLength", ";", "i", "++", ")", "typeParameters", "[", "i", "]", ".", "checkBounds", "(", "methodDecl", ".", "scope", ")", ";", "}", "TypeReference", "[", "]", "exceptionTypes", "=", "methodDecl", ".", "thrownExceptions", ";", "if", "(", "exceptionTypes", "!=", "null", ")", "{", "int", "size", "=", "exceptionTypes", ".", "length", ";", "method", ".", "thrownExceptions", "=", "new", "ReferenceBinding", "[", "size", "]", ";", "int", "count", "=", "0", ";", "ReferenceBinding", "resolvedExceptionType", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "++", ")", "{", "resolvedExceptionType", "=", "(", "ReferenceBinding", ")", "exceptionTypes", "[", "i", "]", ".", "resolveType", "(", "methodDecl", ".", "scope", ",", "true", ")", ";", "if", "(", "resolvedExceptionType", "==", "null", ")", "continue", ";", "if", "(", "resolvedExceptionType", ".", "isBoundParameterizedType", "(", ")", ")", "{", "methodDecl", ".", "scope", ".", "problemReporter", "(", ")", ".", "invalidParameterizedExceptionType", "(", "resolvedExceptionType", ",", "exceptionTypes", "[", "i", "]", ")", ";", "continue", ";", "}", "if", "(", "resolvedExceptionType", ".", "findSuperTypeOriginatingFrom", "(", "TypeIds", ".", "T_JavaLangThrowable", ",", "true", ")", "==", "null", ")", "{", "if", "(", "resolvedExceptionType", ".", "isValidBinding", "(", ")", ")", "{", "methodDecl", ".", "scope", ".", "problemReporter", "(", ")", ".", "cannotThrowType", "(", "exceptionTypes", "[", "i", "]", ",", "resolvedExceptionType", ")", ";", "continue", ";", "}", "}", "if", "(", "(", "resolvedExceptionType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "method", ".", "tagBits", "|=", "TagBits", ".", "HasMissingType", ";", "}", "method", ".", "modifiers", "|=", "(", "resolvedExceptionType", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccGenericSignature", ")", ";", "method", ".", "thrownExceptions", "[", "count", "++", "]", "=", "resolvedExceptionType", ";", "}", "if", "(", "count", "<", "size", ")", "System", ".", "arraycopy", "(", "method", ".", "thrownExceptions", ",", "0", ",", "method", ".", "thrownExceptions", "=", "new", "ReferenceBinding", "[", "count", "]", ",", "0", ",", "count", ")", ";", "}", "boolean", "foundArgProblem", "=", "false", ";", "Argument", "[", "]", "arguments", "=", "methodDecl", ".", "arguments", ";", "if", "(", "arguments", "!=", "null", ")", "{", "int", "size", "=", "arguments", ".", "length", ";", "method", ".", "parameters", "=", "Binding", ".", "NO_PARAMETERS", ";", "TypeBinding", "[", "]", "newParameters", "=", "new", "TypeBinding", "[", "size", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "++", ")", "{", "Argument", "arg", "=", "arguments", "[", "i", "]", ";", "if", "(", "arg", ".", "annotations", "!=", "null", ")", "{", "method", ".", "tagBits", "|=", "TagBits", ".", "HasParameterAnnotations", ";", "}", "TypeBinding", "parameterType", "=", "arg", ".", "type", ".", "resolveType", "(", "methodDecl", ".", "scope", ",", "true", ")", ";", "if", "(", "parameterType", "==", "null", ")", "{", "foundArgProblem", "=", "true", ";", "}", "else", "if", "(", "parameterType", "==", "TypeBinding", ".", "VOID", ")", "{", "methodDecl", ".", "scope", ".", "problemReporter", "(", ")", ".", "argumentTypeCannotBeVoid", "(", "this", ",", "methodDecl", ",", "arg", ")", ";", "foundArgProblem", "=", "true", ";", "}", "else", "{", "if", "(", "(", "parameterType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "method", ".", "tagBits", "|=", "TagBits", ".", "HasMissingType", ";", "}", "TypeBinding", "leafType", "=", "parameterType", ".", "leafComponentType", "(", ")", ";", "if", "(", "leafType", "instanceof", "ReferenceBinding", "&&", "(", "(", "(", "ReferenceBinding", ")", "leafType", ")", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccGenericSignature", ")", "!=", "0", ")", "method", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccGenericSignature", ";", "newParameters", "[", "i", "]", "=", "parameterType", ";", "arg", ".", "binding", "=", "new", "LocalVariableBinding", "(", "arg", ",", "parameterType", ",", "arg", ".", "modifiers", ",", "true", ")", ";", "}", "}", "if", "(", "!", "foundArgProblem", ")", "{", "method", ".", "parameters", "=", "newParameters", ";", "}", "}", "boolean", "foundReturnTypeProblem", "=", "false", ";", "if", "(", "!", "method", ".", "isConstructor", "(", ")", ")", "{", "TypeReference", "returnType", "=", "methodDecl", "instanceof", "MethodDeclaration", "?", "(", "(", "MethodDeclaration", ")", "methodDecl", ")", ".", "returnType", ":", "null", ";", "if", "(", "returnType", "==", "null", ")", "{", "methodDecl", ".", "scope", ".", "problemReporter", "(", ")", ".", "missingReturnType", "(", "methodDecl", ")", ";", "method", ".", "returnType", "=", "null", ";", "foundReturnTypeProblem", "=", "true", ";", "}", "else", "{", "TypeBinding", "methodType", "=", "returnType", ".", "resolveType", "(", "methodDecl", ".", "scope", ",", "true", ")", ";", "if", "(", "methodType", "==", "null", ")", "{", "foundReturnTypeProblem", "=", "true", ";", "}", "else", "if", "(", "methodType", ".", "isArrayType", "(", ")", "&&", "(", "(", "ArrayBinding", ")", "methodType", ")", ".", "leafComponentType", "==", "TypeBinding", ".", "VOID", ")", "{", "methodDecl", ".", "scope", ".", "problemReporter", "(", ")", ".", "returnTypeCannotBeVoidArray", "(", "(", "MethodDeclaration", ")", "methodDecl", ")", ";", "foundReturnTypeProblem", "=", "true", ";", "}", "else", "{", "if", "(", "(", "methodType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "method", ".", "tagBits", "|=", "TagBits", ".", "HasMissingType", ";", "}", "method", ".", "returnType", "=", "methodType", ";", "TypeBinding", "leafType", "=", "methodType", ".", "leafComponentType", "(", ")", ";", "if", "(", "leafType", "instanceof", "ReferenceBinding", "&&", "(", "(", "(", "ReferenceBinding", ")", "leafType", ")", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccGenericSignature", ")", "!=", "0", ")", "method", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccGenericSignature", ";", "}", "}", "}", "if", "(", "foundArgProblem", ")", "{", "methodDecl", ".", "binding", "=", "null", ";", "method", ".", "parameters", "=", "Binding", ".", "NO_PARAMETERS", ";", "if", "(", "typeParameters", "!=", "null", ")", "for", "(", "int", "i", "=", "0", ",", "length", "=", "typeParameters", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "typeParameters", "[", "i", "]", ".", "binding", "=", "null", ";", "return", "null", ";", "}", "if", "(", "foundReturnTypeProblem", ")", "return", "method", ";", "method", ".", "modifiers", "&=", "~", "ExtraCompilerModifiers", ".", "AccUnresolved", ";", "return", "method", ";", "}", "public", "AnnotationHolder", "retrieveAnnotationHolder", "(", "Binding", "binding", ",", "boolean", "forceInitialization", ")", "{", "if", "(", "forceInitialization", ")", "binding", ".", "getAnnotationTagBits", "(", ")", ";", "return", "super", ".", "retrieveAnnotationHolder", "(", "binding", ",", "false", ")", ";", "}", "public", "void", "setFields", "(", "FieldBinding", "[", "]", "fields", ")", "{", "this", ".", "fields", "=", "fields", ";", "}", "public", "void", "setMethods", "(", "MethodBinding", "[", "]", "methods", ")", "{", "this", ".", "methods", "=", "methods", ";", "}", "public", "final", "int", "sourceEnd", "(", ")", "{", "return", "this", ".", "scope", ".", "referenceContext", ".", "sourceEnd", ";", "}", "public", "final", "int", "sourceStart", "(", ")", "{", "return", "this", ".", "scope", ".", "referenceContext", ".", "sourceStart", ";", "}", "SimpleLookupTable", "storedAnnotations", "(", "boolean", "forceInitialize", ")", "{", "if", "(", "forceInitialize", "&&", "this", ".", "storedAnnotations", "==", "null", "&&", "this", ".", "scope", "!=", "null", ")", "{", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ".", "hasAnnotations", "=", "true", ";", "if", "(", "!", "this", ".", "scope", ".", "environment", "(", ")", ".", "globalOptions", ".", "storeAnnotations", ")", "return", "null", ";", "this", ".", "storedAnnotations", "=", "new", "SimpleLookupTable", "(", "3", ")", ";", "}", "return", "this", ".", "storedAnnotations", ";", "}", "public", "ReferenceBinding", "superclass", "(", ")", "{", "return", "this", ".", "superclass", ";", "}", "public", "ReferenceBinding", "[", "]", "superInterfaces", "(", ")", "{", "return", "this", ".", "superInterfaces", ";", "}", "public", "SyntheticMethodBinding", "[", "]", "syntheticMethods", "(", ")", "{", "if", "(", "this", ".", "synthetics", "==", "null", "||", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", "==", "null", "||", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", ".", "size", "(", ")", "==", "0", ")", "{", "return", "null", ";", "}", "int", "index", "=", "0", ";", "SyntheticMethodBinding", "[", "]", "bindings", "=", "new", "SyntheticMethodBinding", "[", "1", "]", ";", "Iterator", "methodArrayIterator", "=", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "METHOD_EMUL", "]", ".", "values", "(", ")", ".", "iterator", "(", ")", ";", "while", "(", "methodArrayIterator", ".", "hasNext", "(", ")", ")", "{", "SyntheticMethodBinding", "[", "]", "methodAccessors", "=", "(", "SyntheticMethodBinding", "[", "]", ")", "methodArrayIterator", ".", "next", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "methodAccessors", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "if", "(", "methodAccessors", "[", "i", "]", "!=", "null", ")", "{", "if", "(", "index", "+", "1", ">", "bindings", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "bindings", ",", "0", ",", "(", "bindings", "=", "new", "SyntheticMethodBinding", "[", "index", "+", "1", "]", ")", ",", "0", ",", "index", ")", ";", "}", "bindings", "[", "index", "++", "]", "=", "methodAccessors", "[", "i", "]", ";", "}", "}", "}", "int", "length", ";", "SyntheticMethodBinding", "[", "]", "sortedBindings", "=", "new", "SyntheticMethodBinding", "[", "length", "=", "bindings", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "SyntheticMethodBinding", "binding", "=", "bindings", "[", "i", "]", ";", "sortedBindings", "[", "binding", ".", "index", "]", "=", "binding", ";", "}", "return", "sortedBindings", ";", "}", "public", "FieldBinding", "[", "]", "syntheticFields", "(", ")", "{", "if", "(", "this", ".", "synthetics", "==", "null", ")", "return", "null", ";", "int", "fieldSize", "=", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", "==", "null", "?", "0", ":", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", ".", "size", "(", ")", ";", "int", "literalSize", "=", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "CLASS_LITERAL_EMUL", "]", "==", "null", "?", "0", ":", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "CLASS_LITERAL_EMUL", "]", ".", "size", "(", ")", ";", "int", "totalSize", "=", "fieldSize", "+", "literalSize", ";", "if", "(", "totalSize", "==", "0", ")", "return", "null", ";", "FieldBinding", "[", "]", "bindings", "=", "new", "FieldBinding", "[", "totalSize", "]", ";", "if", "(", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", "!=", "null", ")", "{", "Iterator", "elements", "=", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "FIELD_EMUL", "]", ".", "values", "(", ")", ".", "iterator", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "fieldSize", ";", "i", "++", ")", "{", "SyntheticFieldBinding", "synthBinding", "=", "(", "SyntheticFieldBinding", ")", "elements", ".", "next", "(", ")", ";", "bindings", "[", "synthBinding", ".", "index", "]", "=", "synthBinding", ";", "}", "}", "if", "(", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "CLASS_LITERAL_EMUL", "]", "!=", "null", ")", "{", "Iterator", "elements", "=", "this", ".", "synthetics", "[", "SourceTypeBinding", ".", "CLASS_LITERAL_EMUL", "]", ".", "values", "(", ")", ".", "iterator", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "literalSize", ";", "i", "++", ")", "{", "SyntheticFieldBinding", "synthBinding", "=", "(", "SyntheticFieldBinding", ")", "elements", ".", "next", "(", ")", ";", "bindings", "[", "fieldSize", "+", "synthBinding", ".", "index", "]", "=", "synthBinding", ";", "}", "}", "return", "bindings", ";", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "30", ")", ";", "buffer", ".", "append", "(", "\"(id=\"", ")", ";", "if", "(", "this", ".", "id", "==", "TypeIds", ".", "NoId", ")", "buffer", ".", "append", "(", "\"NoId\"", ")", ";", "else", "buffer", ".", "append", "(", "this", ".", "id", ")", ";", "buffer", ".", "append", "(", "\")n\"", ")", ";", "if", "(", "isDeprecated", "(", ")", ")", "buffer", ".", "append", "(", "\"deprecated", "\"", ")", ";", "if", "(", "isPublic", "(", ")", ")", "buffer", ".", "append", "(", "\"public", "\"", ")", ";", "if", "(", "isProtected", "(", ")", ")", "buffer", ".", "append", "(", "\"protected", "\"", ")", ";", "if", "(", "isPrivate", "(", ")", ")", "buffer", ".", "append", "(", "\"private", "\"", ")", ";", "if", "(", "isAbstract", "(", ")", "&&", "isClass", "(", ")", ")", "buffer", ".", "append", "(", "\"abstract", "\"", ")", ";", "if", "(", "isStatic", "(", ")", "&&", "isNestedType", "(", ")", ")", "buffer", ".", "append", "(", "\"static", "\"", ")", ";", "if", "(", "isFinal", "(", ")", ")", "buffer", ".", "append", "(", "\"final", "\"", ")", ";", "if", "(", "isEnum", "(", ")", ")", "buffer", ".", "append", "(", "\"enum", "\"", ")", ";", "else", "if", "(", "isAnnotationType", "(", ")", ")", "buffer", ".", "append", "(", "\"@interface", "\"", ")", ";", "else", "if", "(", "isClass", "(", ")", ")", "buffer", ".", "append", "(", "\"class", "\"", ")", ";", "else", "buffer", ".", "append", "(", "\"interface", "\"", ")", ";", "buffer", ".", "append", "(", "(", "this", ".", "compoundName", "!=", "null", ")", "?", "CharOperation", ".", "toString", "(", "this", ".", "compoundName", ")", ":", "\"UNNAMED", "TYPE\"", ")", ";", "if", "(", "this", ".", "typeVariables", "==", "null", ")", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "}", "else", "if", "(", "this", ".", "typeVariables", "!=", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "buffer", ".", "append", "(", "\"<\"", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "typeVariables", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "buffer", ".", "append", "(", "\",", "\"", ")", ";", "if", "(", "this", ".", "typeVariables", "[", "i", "]", "==", "null", ")", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "continue", ";", "}", "char", "[", "]", "varChars", "=", "this", ".", "typeVariables", "[", "i", "]", ".", "toString", "(", ")", ".", "toCharArray", "(", ")", ";", "buffer", ".", "append", "(", "varChars", ",", "1", ",", "varChars", ".", "length", "-", "2", ")", ";", "}", "buffer", ".", "append", "(", "\">\"", ")", ";", "}", "buffer", ".", "append", "(", "\"ntextends", "\"", ")", ";", "buffer", ".", "append", "(", "(", "this", ".", "superclass", "!=", "null", ")", "?", "this", ".", "superclass", ".", "debugName", "(", ")", ":", "\"NULL", "TYPE\"", ")", ";", "if", "(", "this", ".", "superInterfaces", "!=", "null", ")", "{", "if", "(", "this", ".", "superInterfaces", "!=", "Binding", ".", "NO_SUPERINTERFACES", ")", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "superInterfaces", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "buffer", ".", "append", "(", "\",", "\"", ")", ";", "buffer", ".", "append", "(", "(", "this", ".", "superInterfaces", "[", "i", "]", "!=", "null", ")", "?", "this", ".", "superInterfaces", "[", "i", "]", ".", "debugName", "(", ")", ":", "\"NULL", "TYPE\"", ")", ";", "}", "}", "}", "else", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "}", "if", "(", "enclosingType", "(", ")", "!=", "null", ")", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "buffer", ".", "append", "(", "enclosingType", "(", ")", ".", "debugName", "(", ")", ")", ";", "}", "if", "(", "this", ".", "fields", "!=", "null", ")", "{", "if", "(", "this", ".", "fields", "!=", "Binding", ".", "NO_FIELDS", ")", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "fields", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "buffer", ".", "append", "(", "'\\n'", ")", ".", "append", "(", "(", "this", ".", "fields", "[", "i", "]", "!=", "null", ")", "?", "this", ".", "fields", "[", "i", "]", ".", "toString", "(", ")", ":", "\"NULL", "FIELD\"", ")", ";", "}", "}", "else", "{", "buffer", ".", "append", "(", "\"NULL", "FIELDS\"", ")", ";", "}", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "if", "(", "this", ".", "methods", "!=", "Binding", ".", "NO_METHODS", ")", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "methods", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "buffer", ".", "append", "(", "'\\n'", ")", ".", "append", "(", "(", "this", ".", "methods", "[", "i", "]", "!=", "null", ")", "?", "this", ".", "methods", "[", "i", "]", ".", "toString", "(", ")", ":", "\"NULL", "METHOD\"", ")", ";", "}", "}", "else", "{", "buffer", ".", "append", "(", "\"NULL", "METHODS\"", ")", ";", "}", "if", "(", "this", ".", "memberTypes", "!=", "null", ")", "{", "if", "(", "this", ".", "memberTypes", "!=", "Binding", ".", "NO_MEMBER_TYPES", ")", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "memberTypes", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "buffer", ".", "append", "(", "'\\n'", ")", ".", "append", "(", "(", "this", ".", "memberTypes", "[", "i", "]", "!=", "null", ")", "?", "this", ".", "memberTypes", "[", "i", "]", ".", "toString", "(", ")", ":", "\"NULL", "TYPE\"", ")", ";", "}", "}", "else", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "}", "buffer", ".", "append", "(", "\"nn\"", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}", "public", "TypeVariableBinding", "[", "]", "typeVariables", "(", ")", "{", "return", "this", ".", "typeVariables", "!=", "null", "?", "this", ".", "typeVariables", ":", "Binding", ".", "NO_TYPE_VARIABLES", ";", "}", "void", "verifyMethods", "(", "MethodVerifier", "verifier", ")", "{", "verifier", ".", "verify", "(", "this", ")", ";", "for", "(", "int", "i", "=", "this", ".", "memberTypes", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "(", "(", "SourceTypeBinding", ")", "this", ".", "memberTypes", "[", "i", "]", ")", ".", "verifyMethods", "(", "verifier", ")", ";", "}", "public", "FieldBinding", "[", "]", "unResolvedFields", "(", ")", "{", "return", "this", ".", "fields", ";", "}", "}", "</s>" ]
5,603
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ImportReference", ";", "public", "class", "ImportConflictBinding", "extends", "ImportBinding", "{", "public", "ReferenceBinding", "conflictingTypeBinding", ";", "public", "ImportConflictBinding", "(", "char", "[", "]", "[", "]", "compoundName", ",", "Binding", "methodBinding", ",", "ReferenceBinding", "conflictingTypeBinding", ",", "ImportReference", "reference", ")", "{", "super", "(", "compoundName", ",", "false", ",", "methodBinding", ",", "reference", ")", ";", "this", ".", "conflictingTypeBinding", "=", "conflictingTypeBinding", ";", "}", "public", "char", "[", "]", "readableName", "(", ")", "{", "return", "CharOperation", ".", "concatWith", "(", "this", ".", "compoundName", ",", "'.'", ")", ";", "}", "public", "String", "toString", "(", ")", "{", "return", "\"\"", "+", "new", "String", "(", "readableName", "(", ")", ")", ";", "}", "}", "</s>" ]
5,604
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "java", ".", "util", ".", "List", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Wildcard", ";", "public", "class", "ParameterizedTypeBinding", "extends", "ReferenceBinding", "implements", "Substitution", "{", "private", "ReferenceBinding", "type", ";", "public", "TypeBinding", "[", "]", "arguments", ";", "public", "LookupEnvironment", "environment", ";", "public", "char", "[", "]", "genericTypeSignature", ";", "public", "ReferenceBinding", "superclass", ";", "public", "ReferenceBinding", "[", "]", "superInterfaces", ";", "public", "FieldBinding", "[", "]", "fields", ";", "public", "ReferenceBinding", "[", "]", "memberTypes", ";", "public", "MethodBinding", "[", "]", "methods", ";", "private", "ReferenceBinding", "enclosingType", ";", "public", "ParameterizedTypeBinding", "(", "ReferenceBinding", "type", ",", "TypeBinding", "[", "]", "arguments", ",", "ReferenceBinding", "enclosingType", ",", "LookupEnvironment", "environment", ")", "{", "this", ".", "environment", "=", "environment", ";", "this", ".", "enclosingType", "=", "enclosingType", ";", "initialize", "(", "type", ",", "arguments", ")", ";", "if", "(", "type", "instanceof", "UnresolvedReferenceBinding", ")", "(", "(", "UnresolvedReferenceBinding", ")", "type", ")", ".", "addWrapper", "(", "this", ",", "environment", ")", ";", "if", "(", "arguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "l", "=", "arguments", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "if", "(", "arguments", "[", "i", "]", "instanceof", "UnresolvedReferenceBinding", ")", "(", "(", "UnresolvedReferenceBinding", ")", "arguments", "[", "i", "]", ")", ".", "addWrapper", "(", "this", ",", "environment", ")", ";", "}", "this", ".", "tagBits", "|=", "TagBits", ".", "HasUnresolvedTypeVariables", ";", "}", "protected", "ReferenceBinding", "actualType", "(", ")", "{", "return", "this", ".", "type", ";", "}", "public", "void", "boundCheck", "(", "Scope", "scope", ",", "TypeReference", "[", "]", "argumentReferences", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "PassedBoundCheck", ")", "==", "0", ")", "{", "boolean", "hasErrors", "=", "false", ";", "TypeVariableBinding", "[", "]", "typeVariables", "=", "this", ".", "type", ".", "typeVariables", "(", ")", ";", "if", "(", "this", ".", "arguments", "!=", "null", "&&", "typeVariables", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "typeVariables", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "typeVariables", "[", "i", "]", ".", "boundCheck", "(", "this", ",", "this", ".", "arguments", "[", "i", "]", ")", "!=", "TypeConstants", ".", "OK", ")", "{", "hasErrors", "=", "true", ";", "if", "(", "(", "this", ".", "arguments", "[", "i", "]", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "typeMismatchError", "(", "this", ".", "arguments", "[", "i", "]", ",", "typeVariables", "[", "i", "]", ",", "this", ".", "type", ",", "argumentReferences", "[", "i", "]", ")", ";", "}", "}", "}", "}", "if", "(", "!", "hasErrors", ")", "this", ".", "tagBits", "|=", "TagBits", ".", "PassedBoundCheck", ";", "}", "}", "public", "boolean", "canBeInstantiated", "(", ")", "{", "return", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "HasDirectWildcard", ")", "==", "0", ")", "&&", "super", ".", "canBeInstantiated", "(", ")", ";", "}", "public", "TypeBinding", "capture", "(", "Scope", "scope", ",", "int", "position", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "HasDirectWildcard", ")", "==", "0", ")", "return", "this", ";", "TypeBinding", "[", "]", "originalArguments", "=", "this", ".", "arguments", ";", "int", "length", "=", "originalArguments", ".", "length", ";", "TypeBinding", "[", "]", "capturedArguments", "=", "new", "TypeBinding", "[", "length", "]", ";", "ReferenceBinding", "contextType", "=", "scope", ".", "enclosingSourceType", "(", ")", ";", "if", "(", "contextType", "!=", "null", ")", "contextType", "=", "contextType", ".", "outermostEnclosingType", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeBinding", "argument", "=", "originalArguments", "[", "i", "]", ";", "if", "(", "argument", ".", "kind", "(", ")", "==", "Binding", ".", "WILDCARD_TYPE", ")", "{", "capturedArguments", "[", "i", "]", "=", "new", "CaptureBinding", "(", "(", "WildcardBinding", ")", "argument", ",", "contextType", ",", "position", ",", "scope", ".", "compilationUnitScope", "(", ")", ".", "nextCaptureID", "(", ")", ")", ";", "}", "else", "{", "capturedArguments", "[", "i", "]", "=", "argument", ";", "}", "}", "ParameterizedTypeBinding", "capturedParameterizedType", "=", "this", ".", "environment", ".", "createParameterizedType", "(", "this", ".", "type", ",", "capturedArguments", ",", "enclosingType", "(", ")", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeBinding", "argument", "=", "capturedArguments", "[", "i", "]", ";", "if", "(", "argument", ".", "isCapture", "(", ")", ")", "{", "(", "(", "CaptureBinding", ")", "argument", ")", ".", "initializeBounds", "(", "scope", ",", "capturedParameterizedType", ")", ";", "}", "}", "return", "capturedParameterizedType", ";", "}", "public", "List", "collectMissingTypes", "(", "List", "missingTypes", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "if", "(", "this", ".", "enclosingType", "!=", "null", ")", "{", "missingTypes", "=", "this", ".", "enclosingType", ".", "collectMissingTypes", "(", "missingTypes", ")", ";", "}", "missingTypes", "=", "genericType", "(", ")", ".", "collectMissingTypes", "(", "missingTypes", ")", ";", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "arguments", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "missingTypes", "=", "this", ".", "arguments", "[", "i", "]", ".", "collectMissingTypes", "(", "missingTypes", ")", ";", "}", "}", "}", "return", "missingTypes", ";", "}", "public", "void", "collectSubstitutes", "(", "Scope", "scope", ",", "TypeBinding", "actualType", ",", "InferenceContext", "inferenceContext", ",", "int", "constraint", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "HasTypeVariable", ")", "==", "0", ")", "{", "TypeBinding", "actualEquivalent", "=", "actualType", ".", "findSuperTypeOriginatingFrom", "(", "this", ".", "type", ")", ";", "if", "(", "actualEquivalent", "!=", "null", "&&", "actualEquivalent", ".", "isRawType", "(", ")", ")", "{", "inferenceContext", ".", "isUnchecked", "=", "true", ";", "}", "return", ";", "}", "if", "(", "actualType", "==", "TypeBinding", ".", "NULL", ")", "return", ";", "if", "(", "!", "(", "actualType", "instanceof", "ReferenceBinding", ")", ")", "return", ";", "TypeBinding", "formalEquivalent", ",", "actualEquivalent", ";", "switch", "(", "constraint", ")", "{", "case", "TypeConstants", ".", "CONSTRAINT_EQUAL", ":", "case", "TypeConstants", ".", "CONSTRAINT_EXTENDS", ":", "formalEquivalent", "=", "this", ";", "actualEquivalent", "=", "actualType", ".", "findSuperTypeOriginatingFrom", "(", "this", ".", "type", ")", ";", "if", "(", "actualEquivalent", "==", "null", ")", "return", ";", "break", ";", "case", "TypeConstants", ".", "CONSTRAINT_SUPER", ":", "default", ":", "formalEquivalent", "=", "this", ".", "findSuperTypeOriginatingFrom", "(", "actualType", ")", ";", "if", "(", "formalEquivalent", "==", "null", ")", "return", ";", "actualEquivalent", "=", "actualType", ";", "break", ";", "}", "ReferenceBinding", "formalEnclosingType", "=", "formalEquivalent", ".", "enclosingType", "(", ")", ";", "if", "(", "formalEnclosingType", "!=", "null", ")", "{", "formalEnclosingType", ".", "collectSubstitutes", "(", "scope", ",", "actualEquivalent", ".", "enclosingType", "(", ")", ",", "inferenceContext", ",", "constraint", ")", ";", "}", "if", "(", "this", ".", "arguments", "==", "null", ")", "return", ";", "TypeBinding", "[", "]", "formalArguments", ";", "switch", "(", "formalEquivalent", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "GENERIC_TYPE", ":", "formalArguments", "=", "formalEquivalent", ".", "typeVariables", "(", ")", ";", "break", ";", "case", "Binding", ".", "PARAMETERIZED_TYPE", ":", "formalArguments", "=", "(", "(", "ParameterizedTypeBinding", ")", "formalEquivalent", ")", ".", "arguments", ";", "break", ";", "case", "Binding", ".", "RAW_TYPE", ":", "if", "(", "inferenceContext", ".", "depth", ">", "0", ")", "{", "inferenceContext", ".", "status", "=", "InferenceContext", ".", "FAILED", ";", "}", "return", ";", "default", ":", "return", ";", "}", "TypeBinding", "[", "]", "actualArguments", ";", "switch", "(", "actualEquivalent", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "GENERIC_TYPE", ":", "actualArguments", "=", "actualEquivalent", ".", "typeVariables", "(", ")", ";", "break", ";", "case", "Binding", ".", "PARAMETERIZED_TYPE", ":", "actualArguments", "=", "(", "(", "ParameterizedTypeBinding", ")", "actualEquivalent", ")", ".", "arguments", ";", "break", ";", "case", "Binding", ".", "RAW_TYPE", ":", "if", "(", "inferenceContext", ".", "depth", ">", "0", ")", "{", "inferenceContext", ".", "status", "=", "InferenceContext", ".", "FAILED", ";", "}", "else", "{", "inferenceContext", ".", "isUnchecked", "=", "true", ";", "}", "return", ";", "default", ":", "return", ";", "}", "inferenceContext", ".", "depth", "++", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "formalArguments", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeBinding", "formalArgument", "=", "formalArguments", "[", "i", "]", ";", "TypeBinding", "actualArgument", "=", "actualArguments", "[", "i", "]", ";", "if", "(", "formalArgument", ".", "isWildcard", "(", ")", ")", "{", "formalArgument", ".", "collectSubstitutes", "(", "scope", ",", "actualArgument", ",", "inferenceContext", ",", "constraint", ")", ";", "continue", ";", "}", "else", "if", "(", "actualArgument", ".", "isWildcard", "(", ")", ")", "{", "WildcardBinding", "actualWildcardArgument", "=", "(", "WildcardBinding", ")", "actualArgument", ";", "if", "(", "actualWildcardArgument", ".", "otherBounds", "==", "null", ")", "{", "if", "(", "constraint", "==", "TypeConstants", ".", "CONSTRAINT_SUPER", ")", "{", "switch", "(", "actualWildcardArgument", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "EXTENDS", ":", "formalArgument", ".", "collectSubstitutes", "(", "scope", ",", "actualWildcardArgument", ".", "bound", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_SUPER", ")", ";", "continue", ";", "case", "Wildcard", ".", "SUPER", ":", "formalArgument", ".", "collectSubstitutes", "(", "scope", ",", "actualWildcardArgument", ".", "bound", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_EXTENDS", ")", ";", "continue", ";", "default", ":", "continue", ";", "}", "}", "else", "{", "continue", ";", "}", "}", "}", "formalArgument", ".", "collectSubstitutes", "(", "scope", ",", "actualArgument", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_EQUAL", ")", ";", "}", "inferenceContext", ".", "depth", "--", ";", "}", "public", "void", "computeId", "(", ")", "{", "this", ".", "id", "=", "TypeIds", ".", "NoId", ";", "}", "public", "char", "[", "]", "computeUniqueKey", "(", "boolean", "isLeaf", ")", "{", "StringBuffer", "sig", "=", "new", "StringBuffer", "(", "10", ")", ";", "ReferenceBinding", "enclosing", ";", "if", "(", "isMemberType", "(", ")", "&&", "(", "(", "enclosing", "=", "enclosingType", "(", ")", ")", ".", "isParameterizedType", "(", ")", "||", "enclosing", ".", "isRawType", "(", ")", ")", ")", "{", "char", "[", "]", "typeSig", "=", "enclosing", ".", "computeUniqueKey", "(", "false", ")", ";", "sig", ".", "append", "(", "typeSig", ",", "0", ",", "typeSig", ".", "length", "-", "1", ")", ";", "sig", ".", "append", "(", "'.'", ")", ".", "append", "(", "sourceName", "(", ")", ")", ";", "}", "else", "if", "(", "this", ".", "type", ".", "isLocalType", "(", ")", ")", "{", "LocalTypeBinding", "localTypeBinding", "=", "(", "LocalTypeBinding", ")", "this", ".", "type", ";", "enclosing", "=", "localTypeBinding", ".", "enclosingType", "(", ")", ";", "ReferenceBinding", "temp", ";", "while", "(", "(", "temp", "=", "enclosing", ".", "enclosingType", "(", ")", ")", "!=", "null", ")", "enclosing", "=", "temp", ";", "char", "[", "]", "typeSig", "=", "enclosing", ".", "computeUniqueKey", "(", "false", ")", ";", "sig", ".", "append", "(", "typeSig", ",", "0", ",", "typeSig", ".", "length", "-", "1", ")", ";", "sig", ".", "append", "(", "'$'", ")", ";", "sig", ".", "append", "(", "localTypeBinding", ".", "sourceStart", ")", ";", "}", "else", "{", "char", "[", "]", "typeSig", "=", "this", ".", "type", ".", "computeUniqueKey", "(", "false", ")", ";", "sig", ".", "append", "(", "typeSig", ",", "0", ",", "typeSig", ".", "length", "-", "1", ")", ";", "}", "ReferenceBinding", "captureSourceType", "=", "null", ";", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "sig", ".", "append", "(", "'<'", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "arguments", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeBinding", "typeBinding", "=", "this", ".", "arguments", "[", "i", "]", ";", "sig", ".", "append", "(", "typeBinding", ".", "computeUniqueKey", "(", "false", ")", ")", ";", "if", "(", "typeBinding", "instanceof", "CaptureBinding", ")", "captureSourceType", "=", "(", "(", "CaptureBinding", ")", "typeBinding", ")", ".", "sourceType", ";", "}", "sig", ".", "append", "(", "'>'", ")", ";", "}", "sig", ".", "append", "(", "';'", ")", ";", "if", "(", "captureSourceType", "!=", "null", "&&", "captureSourceType", "!=", "this", ".", "type", ")", "{", "sig", ".", "insert", "(", "0", ",", "\"&\"", ")", ";", "sig", ".", "insert", "(", "0", ",", "captureSourceType", ".", "computeUniqueKey", "(", "false", ")", ")", ";", "}", "int", "sigLength", "=", "sig", ".", "length", "(", ")", ";", "char", "[", "]", "uniqueKey", "=", "new", "char", "[", "sigLength", "]", ";", "sig", ".", "getChars", "(", "0", ",", "sigLength", ",", "uniqueKey", ",", "0", ")", ";", "return", "uniqueKey", ";", "}", "public", "char", "[", "]", "constantPoolName", "(", ")", "{", "return", "this", ".", "type", ".", "constantPoolName", "(", ")", ";", "}", "public", "ParameterizedMethodBinding", "createParameterizedMethod", "(", "MethodBinding", "originalMethod", ")", "{", "return", "new", "ParameterizedMethodBinding", "(", "this", ",", "originalMethod", ")", ";", "}", "public", "String", "debugName", "(", ")", "{", "StringBuffer", "nameBuffer", "=", "new", "StringBuffer", "(", "10", ")", ";", "if", "(", "this", ".", "type", "instanceof", "UnresolvedReferenceBinding", ")", "{", "nameBuffer", ".", "append", "(", "this", ".", "type", ")", ";", "}", "else", "{", "nameBuffer", ".", "append", "(", "this", ".", "type", ".", "sourceName", "(", ")", ")", ";", "}", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "nameBuffer", ".", "append", "(", "'<'", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "arguments", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "nameBuffer", ".", "append", "(", "','", ")", ";", "nameBuffer", ".", "append", "(", "this", ".", "arguments", "[", "i", "]", ".", "debugName", "(", ")", ")", ";", "}", "nameBuffer", ".", "append", "(", "'>'", ")", ";", "}", "return", "nameBuffer", ".", "toString", "(", ")", ";", "}", "public", "ReferenceBinding", "enclosingType", "(", ")", "{", "return", "this", ".", "enclosingType", ";", "}", "public", "LookupEnvironment", "environment", "(", ")", "{", "return", "this", ".", "environment", ";", "}", "public", "TypeBinding", "erasure", "(", ")", "{", "return", "this", ".", "type", ".", "erasure", "(", ")", ";", "}", "public", "int", "fieldCount", "(", ")", "{", "return", "this", ".", "type", ".", "fieldCount", "(", ")", ";", "}", "public", "FieldBinding", "[", "]", "fields", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreFieldsComplete", ")", "!=", "0", ")", "return", "this", ".", "fields", ";", "try", "{", "FieldBinding", "[", "]", "originalFields", "=", "this", ".", "type", ".", "fields", "(", ")", ";", "int", "length", "=", "originalFields", ".", "length", ";", "FieldBinding", "[", "]", "parameterizedFields", "=", "new", "FieldBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "parameterizedFields", "[", "i", "]", "=", "new", "ParameterizedFieldBinding", "(", "this", ",", "originalFields", "[", "i", "]", ")", ";", "this", ".", "fields", "=", "parameterizedFields", ";", "}", "finally", "{", "if", "(", "this", ".", "fields", "==", "null", ")", "this", ".", "fields", "=", "Binding", ".", "NO_FIELDS", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "AreFieldsComplete", ";", "}", "return", "this", ".", "fields", ";", "}", "public", "ReferenceBinding", "genericType", "(", ")", "{", "if", "(", "this", ".", "type", "instanceof", "UnresolvedReferenceBinding", ")", "(", "(", "UnresolvedReferenceBinding", ")", "this", ".", "type", ")", ".", "resolve", "(", "this", ".", "environment", ",", "false", ")", ";", "return", "this", ".", "type", ";", "}", "public", "char", "[", "]", "genericTypeSignature", "(", ")", "{", "if", "(", "this", ".", "genericTypeSignature", "==", "null", ")", "{", "if", "(", "(", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccGenericSignature", ")", "==", "0", ")", "{", "this", ".", "genericTypeSignature", "=", "this", ".", "type", ".", "signature", "(", ")", ";", "}", "else", "{", "StringBuffer", "sig", "=", "new", "StringBuffer", "(", "10", ")", ";", "if", "(", "isMemberType", "(", ")", ")", "{", "ReferenceBinding", "enclosing", "=", "enclosingType", "(", ")", ";", "char", "[", "]", "typeSig", "=", "enclosing", ".", "genericTypeSignature", "(", ")", ";", "sig", ".", "append", "(", "typeSig", ",", "0", ",", "typeSig", ".", "length", "-", "1", ")", ";", "if", "(", "(", "enclosing", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccGenericSignature", ")", "!=", "0", ")", "{", "sig", ".", "append", "(", "'.'", ")", ";", "}", "else", "{", "sig", ".", "append", "(", "'$'", ")", ";", "}", "sig", ".", "append", "(", "sourceName", "(", ")", ")", ";", "}", "else", "{", "char", "[", "]", "typeSig", "=", "this", ".", "type", ".", "signature", "(", ")", ";", "sig", ".", "append", "(", "typeSig", ",", "0", ",", "typeSig", ".", "length", "-", "1", ")", ";", "}", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "sig", ".", "append", "(", "'<'", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "arguments", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "sig", ".", "append", "(", "this", ".", "arguments", "[", "i", "]", ".", "genericTypeSignature", "(", ")", ")", ";", "}", "sig", ".", "append", "(", "'>'", ")", ";", "}", "sig", ".", "append", "(", "';'", ")", ";", "int", "sigLength", "=", "sig", ".", "length", "(", ")", ";", "this", ".", "genericTypeSignature", "=", "new", "char", "[", "sigLength", "]", ";", "sig", ".", "getChars", "(", "0", ",", "sigLength", ",", "this", ".", "genericTypeSignature", ",", "0", ")", ";", "}", "}", "return", "this", ".", "genericTypeSignature", ";", "}", "public", "long", "getAnnotationTagBits", "(", ")", "{", "return", "this", ".", "type", ".", "getAnnotationTagBits", "(", ")", ";", "}", "public", "int", "getEnclosingInstancesSlotSize", "(", ")", "{", "return", "genericType", "(", ")", ".", "getEnclosingInstancesSlotSize", "(", ")", ";", "}", "public", "MethodBinding", "getExactConstructor", "(", "TypeBinding", "[", "]", "argumentTypes", ")", "{", "int", "argCount", "=", "argumentTypes", ".", "length", ";", "MethodBinding", "match", "=", "null", ";", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsComplete", ")", "!=", "0", ")", "{", "long", "range", ";", "if", "(", "(", "range", "=", "ReferenceBinding", ".", "binarySearch", "(", "TypeConstants", ".", "INIT", ",", "this", ".", "methods", ")", ")", ">=", "0", ")", "{", "nextMethod", ":", "for", "(", "int", "imethod", "=", "(", "int", ")", "range", ",", "end", "=", "(", "int", ")", "(", "range", ">>", "32", ")", ";", "imethod", "<=", "end", ";", "imethod", "++", ")", "{", "MethodBinding", "method", "=", "this", ".", "methods", "[", "imethod", "]", ";", "if", "(", "method", ".", "parameters", ".", "length", "==", "argCount", ")", "{", "TypeBinding", "[", "]", "toMatch", "=", "method", ".", "parameters", ";", "for", "(", "int", "iarg", "=", "0", ";", "iarg", "<", "argCount", ";", "iarg", "++", ")", "if", "(", "toMatch", "[", "iarg", "]", "!=", "argumentTypes", "[", "iarg", "]", ")", "continue", "nextMethod", ";", "if", "(", "match", "!=", "null", ")", "return", "null", ";", "match", "=", "method", ";", "}", "}", "}", "}", "else", "{", "MethodBinding", "[", "]", "matchingMethods", "=", "getMethods", "(", "TypeConstants", ".", "INIT", ")", ";", "nextMethod", ":", "for", "(", "int", "m", "=", "matchingMethods", ".", "length", ";", "--", "m", ">=", "0", ";", ")", "{", "MethodBinding", "method", "=", "matchingMethods", "[", "m", "]", ";", "TypeBinding", "[", "]", "toMatch", "=", "method", ".", "parameters", ";", "if", "(", "toMatch", ".", "length", "==", "argCount", ")", "{", "for", "(", "int", "p", "=", "0", ";", "p", "<", "argCount", ";", "p", "++", ")", "if", "(", "toMatch", "[", "p", "]", "!=", "argumentTypes", "[", "p", "]", ")", "continue", "nextMethod", ";", "if", "(", "match", "!=", "null", ")", "return", "null", ";", "match", "=", "method", ";", "}", "}", "}", "return", "match", ";", "}", "public", "MethodBinding", "getExactMethod", "(", "char", "[", "]", "selector", ",", "TypeBinding", "[", "]", "argumentTypes", ",", "CompilationUnitScope", "refScope", ")", "{", "int", "argCount", "=", "argumentTypes", ".", "length", ";", "boolean", "foundNothing", "=", "true", ";", "MethodBinding", "match", "=", "null", ";", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsComplete", ")", "!=", "0", ")", "{", "long", "range", ";", "if", "(", "(", "range", "=", "ReferenceBinding", ".", "binarySearch", "(", "selector", ",", "this", ".", "methods", ")", ")", ">=", "0", ")", "{", "nextMethod", ":", "for", "(", "int", "imethod", "=", "(", "int", ")", "range", ",", "end", "=", "(", "int", ")", "(", "range", ">>", "32", ")", ";", "imethod", "<=", "end", ";", "imethod", "++", ")", "{", "MethodBinding", "method", "=", "this", ".", "methods", "[", "imethod", "]", ";", "foundNothing", "=", "false", ";", "if", "(", "method", ".", "parameters", ".", "length", "==", "argCount", ")", "{", "TypeBinding", "[", "]", "toMatch", "=", "method", ".", "parameters", ";", "for", "(", "int", "iarg", "=", "0", ";", "iarg", "<", "argCount", ";", "iarg", "++", ")", "if", "(", "toMatch", "[", "iarg", "]", "!=", "argumentTypes", "[", "iarg", "]", ")", "continue", "nextMethod", ";", "if", "(", "match", "!=", "null", ")", "return", "null", ";", "match", "=", "method", ";", "}", "}", "}", "}", "else", "{", "MethodBinding", "[", "]", "matchingMethods", "=", "getMethods", "(", "selector", ")", ";", "foundNothing", "=", "matchingMethods", "==", "Binding", ".", "NO_METHODS", ";", "nextMethod", ":", "for", "(", "int", "m", "=", "matchingMethods", ".", "length", ";", "--", "m", ">=", "0", ";", ")", "{", "MethodBinding", "method", "=", "matchingMethods", "[", "m", "]", ";", "TypeBinding", "[", "]", "toMatch", "=", "method", ".", "parameters", ";", "if", "(", "toMatch", ".", "length", "==", "argCount", ")", "{", "for", "(", "int", "p", "=", "0", ";", "p", "<", "argCount", ";", "p", "++", ")", "if", "(", "toMatch", "[", "p", "]", "!=", "argumentTypes", "[", "p", "]", ")", "continue", "nextMethod", ";", "if", "(", "match", "!=", "null", ")", "return", "null", ";", "match", "=", "method", ";", "}", "}", "}", "if", "(", "match", "!=", "null", ")", "{", "if", "(", "match", ".", "hasSubstitutedParameters", "(", ")", ")", "return", "null", ";", "return", "match", ";", "}", "if", "(", "foundNothing", "&&", "(", "this", ".", "arguments", "==", "null", "||", "this", ".", "arguments", ".", "length", "<=", "1", ")", ")", "{", "if", "(", "isInterface", "(", ")", ")", "{", "if", "(", "superInterfaces", "(", ")", ".", "length", "==", "1", ")", "{", "if", "(", "refScope", "!=", "null", ")", "refScope", ".", "recordTypeReference", "(", "this", ".", "superInterfaces", "[", "0", "]", ")", ";", "return", "this", ".", "superInterfaces", "[", "0", "]", ".", "getExactMethod", "(", "selector", ",", "argumentTypes", ",", "refScope", ")", ";", "}", "}", "else", "if", "(", "superclass", "(", ")", "!=", "null", ")", "{", "if", "(", "refScope", "!=", "null", ")", "refScope", ".", "recordTypeReference", "(", "this", ".", "superclass", ")", ";", "return", "this", ".", "superclass", ".", "getExactMethod", "(", "selector", ",", "argumentTypes", ",", "refScope", ")", ";", "}", "}", "return", "null", ";", "}", "public", "FieldBinding", "getField", "(", "char", "[", "]", "fieldName", ",", "boolean", "needResolve", ")", "{", "fields", "(", ")", ";", "return", "ReferenceBinding", ".", "binarySearch", "(", "fieldName", ",", "this", ".", "fields", ")", ";", "}", "public", "ReferenceBinding", "getMemberType", "(", "char", "[", "]", "typeName", ")", "{", "memberTypes", "(", ")", ";", "int", "typeLength", "=", "typeName", ".", "length", ";", "for", "(", "int", "i", "=", "this", ".", "memberTypes", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "{", "ReferenceBinding", "memberType", "=", "this", ".", "memberTypes", "[", "i", "]", ";", "if", "(", "memberType", ".", "sourceName", ".", "length", "==", "typeLength", "&&", "CharOperation", ".", "equals", "(", "memberType", ".", "sourceName", ",", "typeName", ")", ")", "return", "memberType", ";", "}", "return", "null", ";", "}", "public", "MethodBinding", "[", "]", "getMethods", "(", "char", "[", "]", "selector", ")", "{", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "long", "range", ";", "if", "(", "(", "range", "=", "ReferenceBinding", ".", "binarySearch", "(", "selector", ",", "this", ".", "methods", ")", ")", ">=", "0", ")", "{", "int", "start", "=", "(", "int", ")", "range", ";", "int", "length", "=", "(", "int", ")", "(", "range", ">>", "32", ")", "-", "start", "+", "1", ";", "MethodBinding", "[", "]", "result", ";", "System", ".", "arraycopy", "(", "this", ".", "methods", ",", "start", ",", "result", "=", "new", "MethodBinding", "[", "length", "]", ",", "0", ",", "length", ")", ";", "return", "result", ";", "}", "}", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsComplete", ")", "!=", "0", ")", "return", "Binding", ".", "NO_METHODS", ";", "MethodBinding", "[", "]", "parameterizedMethods", "=", "null", ";", "try", "{", "MethodBinding", "[", "]", "originalMethods", "=", "this", ".", "type", ".", "getMethods", "(", "selector", ")", ";", "int", "length", "=", "originalMethods", ".", "length", ";", "if", "(", "length", "==", "0", ")", "return", "Binding", ".", "NO_METHODS", ";", "parameterizedMethods", "=", "new", "MethodBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "parameterizedMethods", "[", "i", "]", "=", "createParameterizedMethod", "(", "originalMethods", "[", "i", "]", ")", ";", "if", "(", "this", ".", "methods", "==", "null", ")", "{", "MethodBinding", "[", "]", "temp", "=", "new", "MethodBinding", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "parameterizedMethods", ",", "0", ",", "temp", ",", "0", ",", "length", ")", ";", "this", ".", "methods", "=", "temp", ";", "}", "else", "{", "int", "total", "=", "length", "+", "this", ".", "methods", ".", "length", ";", "MethodBinding", "[", "]", "temp", "=", "new", "MethodBinding", "[", "total", "]", ";", "System", ".", "arraycopy", "(", "parameterizedMethods", ",", "0", ",", "temp", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "methods", ",", "0", ",", "temp", ",", "length", ",", "this", ".", "methods", ".", "length", ")", ";", "if", "(", "total", ">", "1", ")", "ReferenceBinding", ".", "sortMethods", "(", "temp", ",", "0", ",", "total", ")", ";", "this", ".", "methods", "=", "temp", ";", "}", "return", "parameterizedMethods", ";", "}", "finally", "{", "if", "(", "parameterizedMethods", "==", "null", ")", "this", ".", "methods", "=", "parameterizedMethods", "=", "Binding", ".", "NO_METHODS", ";", "}", "}", "public", "int", "getOuterLocalVariablesSlotSize", "(", ")", "{", "return", "genericType", "(", ")", ".", "getOuterLocalVariablesSlotSize", "(", ")", ";", "}", "public", "boolean", "hasMemberTypes", "(", ")", "{", "return", "this", ".", "type", ".", "hasMemberTypes", "(", ")", ";", "}", "public", "boolean", "implementsMethod", "(", "MethodBinding", "method", ")", "{", "return", "this", ".", "type", ".", "implementsMethod", "(", "method", ")", ";", "}", "void", "initialize", "(", "ReferenceBinding", "someType", ",", "TypeBinding", "[", "]", "someArguments", ")", "{", "this", ".", "type", "=", "someType", ";", "this", ".", "sourceName", "=", "someType", ".", "sourceName", ";", "this", ".", "compoundName", "=", "someType", ".", "compoundName", ";", "this", ".", "fPackage", "=", "someType", ".", "fPackage", ";", "this", ".", "fileName", "=", "someType", ".", "fileName", ";", "this", ".", "modifiers", "=", "someType", ".", "modifiers", "&", "~", "ExtraCompilerModifiers", ".", "AccGenericSignature", ";", "if", "(", "someArguments", "!=", "null", ")", "{", "this", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccGenericSignature", ";", "}", "else", "if", "(", "this", ".", "enclosingType", "!=", "null", ")", "{", "this", ".", "modifiers", "|=", "(", "this", ".", "enclosingType", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccGenericSignature", ")", ";", "this", ".", "tagBits", "|=", "this", ".", "enclosingType", ".", "tagBits", "&", "(", "TagBits", ".", "HasTypeVariable", "|", "TagBits", ".", "HasMissingType", ")", ";", "}", "if", "(", "someArguments", "!=", "null", ")", "{", "this", ".", "arguments", "=", "someArguments", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "someArguments", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeBinding", "someArgument", "=", "someArguments", "[", "i", "]", ";", "switch", "(", "someArgument", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "WILDCARD_TYPE", ":", "this", ".", "tagBits", "|=", "TagBits", ".", "HasDirectWildcard", ";", "if", "(", "(", "(", "WildcardBinding", ")", "someArgument", ")", ".", "boundKind", "!=", "Wildcard", ".", "UNBOUND", ")", "{", "this", ".", "tagBits", "|=", "TagBits", ".", "IsBoundParameterizedType", ";", "}", "break", ";", "case", "Binding", ".", "INTERSECTION_TYPE", ":", "this", ".", "tagBits", "|=", "TagBits", ".", "HasDirectWildcard", ";", "break", ";", "default", ":", "this", ".", "tagBits", "|=", "TagBits", ".", "IsBoundParameterizedType", ";", "break", ";", "}", "this", ".", "tagBits", "|=", "someArgument", ".", "tagBits", "&", "(", "TagBits", ".", "HasTypeVariable", "|", "TagBits", ".", "HasMissingType", "|", "TagBits", ".", "ContainsNestedTypeReferences", ")", ";", "}", "}", "this", ".", "tagBits", "|=", "someType", ".", "tagBits", "&", "(", "TagBits", ".", "IsLocalType", "|", "TagBits", ".", "IsMemberType", "|", "TagBits", ".", "IsNestedType", "|", "TagBits", ".", "HasMissingType", "|", "TagBits", ".", "ContainsNestedTypeReferences", ")", ";", "this", ".", "tagBits", "&=", "~", "(", "TagBits", ".", "AreFieldsComplete", "|", "TagBits", ".", "AreMethodsComplete", ")", ";", "}", "protected", "void", "initializeArguments", "(", ")", "{", "}", "void", "initializeForStaticImports", "(", ")", "{", "this", ".", "type", ".", "initializeForStaticImports", "(", ")", ";", "}", "public", "boolean", "isEquivalentTo", "(", "TypeBinding", "otherType", ")", "{", "if", "(", "this", "==", "otherType", ")", "return", "true", ";", "if", "(", "otherType", "==", "null", ")", "return", "false", ";", "switch", "(", "otherType", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "WILDCARD_TYPE", ":", "case", "Binding", ".", "INTERSECTION_TYPE", ":", "return", "(", "(", "WildcardBinding", ")", "otherType", ")", ".", "boundCheck", "(", "this", ")", ";", "case", "Binding", ".", "PARAMETERIZED_TYPE", ":", "ParameterizedTypeBinding", "otherParamType", "=", "(", "ParameterizedTypeBinding", ")", "otherType", ";", "if", "(", "this", ".", "type", "!=", "otherParamType", ".", "type", ")", "return", "false", ";", "if", "(", "!", "isStatic", "(", ")", ")", "{", "ReferenceBinding", "enclosing", "=", "enclosingType", "(", ")", ";", "if", "(", "enclosing", "!=", "null", ")", "{", "ReferenceBinding", "otherEnclosing", "=", "otherParamType", ".", "enclosingType", "(", ")", ";", "if", "(", "otherEnclosing", "==", "null", ")", "return", "false", ";", "if", "(", "(", "otherEnclosing", ".", "tagBits", "&", "TagBits", ".", "HasDirectWildcard", ")", "==", "0", ")", "{", "if", "(", "enclosing", "!=", "otherEnclosing", ")", "return", "false", ";", "}", "else", "{", "if", "(", "!", "enclosing", ".", "isEquivalentTo", "(", "otherParamType", ".", "enclosingType", "(", ")", ")", ")", "return", "false", ";", "}", "}", "}", "if", "(", "this", ".", "arguments", "==", "null", ")", "{", "return", "otherParamType", ".", "arguments", "==", "null", ";", "}", "int", "length", "=", "this", ".", "arguments", ".", "length", ";", "TypeBinding", "[", "]", "otherArguments", "=", "otherParamType", ".", "arguments", ";", "if", "(", "otherArguments", "==", "null", "||", "otherArguments", ".", "length", "!=", "length", ")", "return", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "!", "this", ".", "arguments", "[", "i", "]", ".", "isTypeArgumentContainedBy", "(", "otherArguments", "[", "i", "]", ")", ")", "return", "false", ";", "}", "return", "true", ";", "case", "Binding", ".", "RAW_TYPE", ":", "return", "erasure", "(", ")", "==", "otherType", ".", "erasure", "(", ")", ";", "}", "return", "false", ";", "}", "public", "boolean", "isHierarchyConnected", "(", ")", "{", "return", "this", ".", "superclass", "!=", "null", "&&", "this", ".", "superInterfaces", "!=", "null", ";", "}", "public", "boolean", "isRawSubstitution", "(", ")", "{", "return", "isRawType", "(", ")", ";", "}", "public", "int", "kind", "(", ")", "{", "return", "PARAMETERIZED_TYPE", ";", "}", "public", "ReferenceBinding", "[", "]", "memberTypes", "(", ")", "{", "if", "(", "this", ".", "memberTypes", "==", "null", ")", "{", "try", "{", "ReferenceBinding", "[", "]", "originalMemberTypes", "=", "this", ".", "type", ".", "memberTypes", "(", ")", ";", "int", "length", "=", "originalMemberTypes", ".", "length", ";", "ReferenceBinding", "[", "]", "parameterizedMemberTypes", "=", "new", "ReferenceBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "parameterizedMemberTypes", "[", "i", "]", "=", "this", ".", "environment", ".", "createParameterizedType", "(", "originalMemberTypes", "[", "i", "]", ",", "null", ",", "this", ")", ";", "this", ".", "memberTypes", "=", "parameterizedMemberTypes", ";", "}", "finally", "{", "if", "(", "this", ".", "memberTypes", "==", "null", ")", "this", ".", "memberTypes", "=", "Binding", ".", "NO_MEMBER_TYPES", ";", "}", "}", "return", "this", ".", "memberTypes", ";", "}", "public", "MethodBinding", "[", "]", "methods", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsComplete", ")", "!=", "0", ")", "return", "this", ".", "methods", ";", "try", "{", "MethodBinding", "[", "]", "originalMethods", "=", "this", ".", "type", ".", "methods", "(", ")", ";", "int", "length", "=", "originalMethods", ".", "length", ";", "MethodBinding", "[", "]", "parameterizedMethods", "=", "new", "MethodBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "parameterizedMethods", "[", "i", "]", "=", "createParameterizedMethod", "(", "originalMethods", "[", "i", "]", ")", ";", "this", ".", "methods", "=", "parameterizedMethods", ";", "}", "finally", "{", "if", "(", "this", ".", "methods", "==", "null", ")", "this", ".", "methods", "=", "Binding", ".", "NO_METHODS", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "AreMethodsComplete", ";", "}", "return", "this", ".", "methods", ";", "}", "public", "int", "problemId", "(", ")", "{", "return", "this", ".", "type", ".", "problemId", "(", ")", ";", "}", "public", "char", "[", "]", "qualifiedPackageName", "(", ")", "{", "return", "this", ".", "type", ".", "qualifiedPackageName", "(", ")", ";", "}", "public", "char", "[", "]", "qualifiedSourceName", "(", ")", "{", "return", "this", ".", "type", ".", "qualifiedSourceName", "(", ")", ";", "}", "public", "char", "[", "]", "readableName", "(", ")", "{", "StringBuffer", "nameBuffer", "=", "new", "StringBuffer", "(", "10", ")", ";", "if", "(", "isMemberType", "(", ")", ")", "{", "nameBuffer", ".", "append", "(", "CharOperation", ".", "concat", "(", "enclosingType", "(", ")", ".", "readableName", "(", ")", ",", "this", ".", "sourceName", ",", "'.'", ")", ")", ";", "}", "else", "{", "nameBuffer", ".", "append", "(", "CharOperation", ".", "concatWith", "(", "this", ".", "type", ".", "compoundName", ",", "'.'", ")", ")", ";", "}", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "nameBuffer", ".", "append", "(", "'<'", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "arguments", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "nameBuffer", ".", "append", "(", "','", ")", ";", "nameBuffer", ".", "append", "(", "this", ".", "arguments", "[", "i", "]", ".", "readableName", "(", ")", ")", ";", "}", "nameBuffer", ".", "append", "(", "'>'", ")", ";", "}", "int", "nameLength", "=", "nameBuffer", ".", "length", "(", ")", ";", "char", "[", "]", "readableName", "=", "new", "char", "[", "nameLength", "]", ";", "nameBuffer", ".", "getChars", "(", "0", ",", "nameLength", ",", "readableName", ",", "0", ")", ";", "return", "readableName", ";", "}", "ReferenceBinding", "resolve", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "HasUnresolvedTypeVariables", ")", "==", "0", ")", "return", "this", ";", "this", ".", "tagBits", "&=", "~", "TagBits", ".", "HasUnresolvedTypeVariables", ";", "ReferenceBinding", "resolvedType", "=", "(", "ReferenceBinding", ")", "BinaryTypeBinding", ".", "resolveType", "(", "this", ".", "type", ",", "this", ".", "environment", ",", "false", ")", ";", "this", ".", "tagBits", "|=", "resolvedType", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ";", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "int", "argLength", "=", "this", ".", "arguments", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "argLength", ";", "i", "++", ")", "{", "TypeBinding", "resolveType", "=", "BinaryTypeBinding", ".", "resolveType", "(", "this", ".", "arguments", "[", "i", "]", ",", "this", ".", "environment", ",", "true", ")", ";", "this", ".", "arguments", "[", "i", "]", "=", "resolveType", ";", "this", ".", "tagBits", "|=", "resolvedType", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ";", "}", "TypeVariableBinding", "[", "]", "refTypeVariables", "=", "resolvedType", ".", "typeVariables", "(", ")", ";", "if", "(", "refTypeVariables", "==", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "if", "(", "(", "resolvedType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "==", "0", ")", "{", "this", ".", "environment", ".", "problemReporter", ".", "nonGenericTypeCannotBeParameterized", "(", "0", ",", "null", ",", "resolvedType", ",", "this", ".", "arguments", ")", ";", "}", "return", "this", ";", "}", "else", "if", "(", "argLength", "!=", "refTypeVariables", ".", "length", ")", "{", "this", ".", "environment", ".", "problemReporter", ".", "incorrectArityForParameterizedType", "(", "null", ",", "resolvedType", ",", "this", ".", "arguments", ")", ";", "return", "this", ";", "}", "}", "return", "this", ";", "}", "public", "char", "[", "]", "shortReadableName", "(", ")", "{", "StringBuffer", "nameBuffer", "=", "new", "StringBuffer", "(", "10", ")", ";", "if", "(", "isMemberType", "(", ")", ")", "{", "nameBuffer", ".", "append", "(", "CharOperation", ".", "concat", "(", "enclosingType", "(", ")", ".", "shortReadableName", "(", ")", ",", "this", ".", "sourceName", ",", "'.'", ")", ")", ";", "}", "else", "{", "nameBuffer", ".", "append", "(", "this", ".", "type", ".", "sourceName", ")", ";", "}", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "nameBuffer", ".", "append", "(", "'<'", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "arguments", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "nameBuffer", ".", "append", "(", "','", ")", ";", "nameBuffer", ".", "append", "(", "this", ".", "arguments", "[", "i", "]", ".", "shortReadableName", "(", ")", ")", ";", "}", "nameBuffer", ".", "append", "(", "'>'", ")", ";", "}", "int", "nameLength", "=", "nameBuffer", ".", "length", "(", ")", ";", "char", "[", "]", "shortReadableName", "=", "new", "char", "[", "nameLength", "]", ";", "nameBuffer", ".", "getChars", "(", "0", ",", "nameLength", ",", "shortReadableName", ",", "0", ")", ";", "return", "shortReadableName", ";", "}", "public", "char", "[", "]", "signature", "(", ")", "{", "if", "(", "this", ".", "signature", "==", "null", ")", "{", "this", ".", "signature", "=", "this", ".", "type", ".", "signature", "(", ")", ";", "}", "return", "this", ".", "signature", ";", "}", "public", "char", "[", "]", "sourceName", "(", ")", "{", "return", "this", ".", "type", ".", "sourceName", "(", ")", ";", "}", "public", "TypeBinding", "substitute", "(", "TypeVariableBinding", "originalVariable", ")", "{", "ParameterizedTypeBinding", "currentType", "=", "this", ";", "while", "(", "true", ")", "{", "TypeVariableBinding", "[", "]", "typeVariables", "=", "currentType", ".", "type", ".", "typeVariables", "(", ")", ";", "int", "length", "=", "typeVariables", ".", "length", ";", "if", "(", "originalVariable", ".", "rank", "<", "length", "&&", "typeVariables", "[", "originalVariable", ".", "rank", "]", "==", "originalVariable", ")", "{", "if", "(", "currentType", ".", "arguments", "==", "null", ")", "currentType", ".", "initializeArguments", "(", ")", ";", "if", "(", "currentType", ".", "arguments", "!=", "null", ")", "return", "currentType", ".", "arguments", "[", "originalVariable", ".", "rank", "]", ";", "}", "if", "(", "currentType", ".", "isStatic", "(", ")", ")", "break", ";", "ReferenceBinding", "enclosing", "=", "currentType", ".", "enclosingType", "(", ")", ";", "if", "(", "!", "(", "enclosing", "instanceof", "ParameterizedTypeBinding", ")", ")", "break", ";", "currentType", "=", "(", "ParameterizedTypeBinding", ")", "enclosing", ";", "}", "return", "originalVariable", ";", "}", "public", "ReferenceBinding", "superclass", "(", ")", "{", "if", "(", "this", ".", "superclass", "==", "null", ")", "{", "ReferenceBinding", "genericSuperclass", "=", "this", ".", "type", ".", "superclass", "(", ")", ";", "if", "(", "genericSuperclass", "==", "null", ")", "return", "null", ";", "this", ".", "superclass", "=", "(", "ReferenceBinding", ")", "Scope", ".", "substitute", "(", "this", ",", "genericSuperclass", ")", ";", "}", "return", "this", ".", "superclass", ";", "}", "public", "ReferenceBinding", "[", "]", "superInterfaces", "(", ")", "{", "if", "(", "this", ".", "superInterfaces", "==", "null", ")", "{", "if", "(", "this", ".", "type", ".", "isHierarchyBeingConnected", "(", ")", ")", "return", "Binding", ".", "NO_SUPERINTERFACES", ";", "this", ".", "superInterfaces", "=", "Scope", ".", "substitute", "(", "this", ",", "this", ".", "type", ".", "superInterfaces", "(", ")", ")", ";", "}", "return", "this", ".", "superInterfaces", ";", "}", "public", "void", "swapUnresolved", "(", "UnresolvedReferenceBinding", "unresolvedType", ",", "ReferenceBinding", "resolvedType", ",", "LookupEnvironment", "env", ")", "{", "boolean", "update", "=", "false", ";", "if", "(", "this", ".", "type", "==", "unresolvedType", ")", "{", "this", ".", "type", "=", "resolvedType", ";", "update", "=", "true", ";", "ReferenceBinding", "enclosing", "=", "resolvedType", ".", "enclosingType", "(", ")", ";", "if", "(", "enclosing", "!=", "null", ")", "{", "this", ".", "enclosingType", "=", "(", "ReferenceBinding", ")", "env", ".", "convertUnresolvedBinaryToRawType", "(", "enclosing", ")", ";", "}", "}", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "l", "=", "this", ".", "arguments", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "{", "if", "(", "this", ".", "arguments", "[", "i", "]", "==", "unresolvedType", ")", "{", "this", ".", "arguments", "[", "i", "]", "=", "env", ".", "convertUnresolvedBinaryToRawType", "(", "resolvedType", ")", ";", "update", "=", "true", ";", "}", "}", "}", "if", "(", "update", ")", "initialize", "(", "this", ".", "type", ",", "this", ".", "arguments", ")", ";", "}", "public", "ReferenceBinding", "[", "]", "syntheticEnclosingInstanceTypes", "(", ")", "{", "return", "genericType", "(", ")", ".", "syntheticEnclosingInstanceTypes", "(", ")", ";", "}", "public", "SyntheticArgumentBinding", "[", "]", "syntheticOuterLocalVariables", "(", ")", "{", "return", "genericType", "(", ")", ".", "syntheticOuterLocalVariables", "(", ")", ";", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "30", ")", ";", "if", "(", "this", ".", "type", "instanceof", "UnresolvedReferenceBinding", ")", "{", "buffer", ".", "append", "(", "debugName", "(", ")", ")", ";", "}", "else", "{", "if", "(", "isDeprecated", "(", ")", ")", "buffer", ".", "append", "(", "\"deprecated", "\"", ")", ";", "if", "(", "isPublic", "(", ")", ")", "buffer", ".", "append", "(", "\"public", "\"", ")", ";", "if", "(", "isProtected", "(", ")", ")", "buffer", ".", "append", "(", "\"protected", "\"", ")", ";", "if", "(", "isPrivate", "(", ")", ")", "buffer", ".", "append", "(", "\"private", "\"", ")", ";", "if", "(", "isAbstract", "(", ")", "&&", "isClass", "(", ")", ")", "buffer", ".", "append", "(", "\"abstract", "\"", ")", ";", "if", "(", "isStatic", "(", ")", "&&", "isNestedType", "(", ")", ")", "buffer", ".", "append", "(", "\"static", "\"", ")", ";", "if", "(", "isFinal", "(", ")", ")", "buffer", ".", "append", "(", "\"final", "\"", ")", ";", "if", "(", "isEnum", "(", ")", ")", "buffer", ".", "append", "(", "\"enum", "\"", ")", ";", "else", "if", "(", "isAnnotationType", "(", ")", ")", "buffer", ".", "append", "(", "\"@interface", "\"", ")", ";", "else", "if", "(", "isClass", "(", ")", ")", "buffer", ".", "append", "(", "\"class", "\"", ")", ";", "else", "buffer", ".", "append", "(", "\"interface", "\"", ")", ";", "buffer", ".", "append", "(", "debugName", "(", ")", ")", ";", "buffer", ".", "append", "(", "\"ntextends", "\"", ")", ";", "buffer", ".", "append", "(", "(", "this", ".", "superclass", "!=", "null", ")", "?", "this", ".", "superclass", ".", "debugName", "(", ")", ":", "\"NULL", "TYPE\"", ")", ";", "if", "(", "this", ".", "superInterfaces", "!=", "null", ")", "{", "if", "(", "this", ".", "superInterfaces", "!=", "Binding", ".", "NO_SUPERINTERFACES", ")", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "superInterfaces", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "buffer", ".", "append", "(", "\",", "\"", ")", ";", "buffer", ".", "append", "(", "(", "this", ".", "superInterfaces", "[", "i", "]", "!=", "null", ")", "?", "this", ".", "superInterfaces", "[", "i", "]", ".", "debugName", "(", ")", ":", "\"NULL", "TYPE\"", ")", ";", "}", "}", "}", "else", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "}", "if", "(", "enclosingType", "(", ")", "!=", "null", ")", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "buffer", ".", "append", "(", "enclosingType", "(", ")", ".", "debugName", "(", ")", ")", ";", "}", "if", "(", "this", ".", "fields", "!=", "null", ")", "{", "if", "(", "this", ".", "fields", "!=", "Binding", ".", "NO_FIELDS", ")", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "fields", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "buffer", ".", "append", "(", "'\\n'", ")", ".", "append", "(", "(", "this", ".", "fields", "[", "i", "]", "!=", "null", ")", "?", "this", ".", "fields", "[", "i", "]", ".", "toString", "(", ")", ":", "\"NULL", "FIELD\"", ")", ";", "}", "}", "else", "{", "buffer", ".", "append", "(", "\"NULL", "FIELDS\"", ")", ";", "}", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "if", "(", "this", ".", "methods", "!=", "Binding", ".", "NO_METHODS", ")", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "methods", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "buffer", ".", "append", "(", "'\\n'", ")", ".", "append", "(", "(", "this", ".", "methods", "[", "i", "]", "!=", "null", ")", "?", "this", ".", "methods", "[", "i", "]", ".", "toString", "(", ")", ":", "\"NULL", "METHOD\"", ")", ";", "}", "}", "else", "{", "buffer", ".", "append", "(", "\"NULL", "METHODS\"", ")", ";", "}", "buffer", ".", "append", "(", "\"nn\"", ")", ";", "}", "return", "buffer", ".", "toString", "(", ")", ";", "}", "public", "TypeVariableBinding", "[", "]", "typeVariables", "(", ")", "{", "if", "(", "this", ".", "arguments", "==", "null", ")", "{", "return", "this", ".", "type", ".", "typeVariables", "(", ")", ";", "}", "return", "Binding", ".", "NO_TYPE_VARIABLES", ";", "}", "}", "</s>" ]
5,605
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "java", ".", "util", ".", "ArrayList", ";", "import", "java", ".", "util", ".", "HashMap", ";", "import", "java", ".", "util", ".", "Map", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ClassFilePool", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "CompilationUnitDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Wildcard", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ".", "AccessRestriction", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ".", "IBinaryType", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ".", "INameEnvironment", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ".", "NameEnvironmentAnswer", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "CompilerOptions", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "ITypeRequestor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "ProblemReporter", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "HashtableOfPackage", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "SimpleLookupTable", ";", "public", "class", "LookupEnvironment", "implements", "ProblemReasons", ",", "TypeConstants", "{", "private", "Map", "accessRestrictions", ";", "ImportBinding", "[", "]", "defaultImports", ";", "public", "PackageBinding", "defaultPackage", ";", "HashtableOfPackage", "knownPackages", ";", "private", "int", "lastCompletedUnitIndex", "=", "-", "1", ";", "private", "int", "lastUnitIndex", "=", "-", "1", ";", "public", "INameEnvironment", "nameEnvironment", ";", "public", "CompilerOptions", "globalOptions", ";", "public", "ProblemReporter", "problemReporter", ";", "public", "ClassFilePool", "classFilePool", ";", "private", "int", "stepCompleted", ";", "public", "ITypeRequestor", "typeRequestor", ";", "private", "ArrayBinding", "[", "]", "[", "]", "uniqueArrayBindings", ";", "private", "SimpleLookupTable", "uniqueParameterizedTypeBindings", ";", "private", "SimpleLookupTable", "uniqueRawTypeBindings", ";", "private", "SimpleLookupTable", "uniqueWildcardBindings", ";", "private", "SimpleLookupTable", "uniqueParameterizedGenericMethodBindings", ";", "private", "SimpleLookupTable", "uniqueGetClassMethodBinding", ";", "public", "CompilationUnitDeclaration", "unitBeingCompleted", "=", "null", ";", "public", "Object", "missingClassFileLocation", "=", "null", ";", "private", "CompilationUnitDeclaration", "[", "]", "units", "=", "new", "CompilationUnitDeclaration", "[", "4", "]", ";", "private", "MethodVerifier", "verifier", ";", "public", "MethodBinding", "arrayClone", ";", "private", "ArrayList", "missingTypes", ";", "public", "boolean", "isProcessingAnnotations", "=", "false", ";", "final", "static", "int", "BUILD_FIELDS_AND_METHODS", "=", "4", ";", "final", "static", "int", "BUILD_TYPE_HIERARCHY", "=", "1", ";", "final", "static", "int", "CHECK_AND_SET_IMPORTS", "=", "2", ";", "final", "static", "int", "CONNECT_TYPE_HIERARCHY", "=", "3", ";", "static", "final", "ProblemPackageBinding", "TheNotFoundPackage", "=", "new", "ProblemPackageBinding", "(", "CharOperation", ".", "NO_CHAR", ",", "NotFound", ")", ";", "static", "final", "ProblemReferenceBinding", "TheNotFoundType", "=", "new", "ProblemReferenceBinding", "(", "CharOperation", ".", "NO_CHAR_CHAR", ",", "null", ",", "NotFound", ")", ";", "public", "LookupEnvironment", "(", "ITypeRequestor", "typeRequestor", ",", "CompilerOptions", "globalOptions", ",", "ProblemReporter", "problemReporter", ",", "INameEnvironment", "nameEnvironment", ")", "{", "this", ".", "typeRequestor", "=", "typeRequestor", ";", "this", ".", "globalOptions", "=", "globalOptions", ";", "this", ".", "problemReporter", "=", "problemReporter", ";", "this", ".", "defaultPackage", "=", "new", "PackageBinding", "(", "this", ")", ";", "this", ".", "defaultImports", "=", "null", ";", "this", ".", "nameEnvironment", "=", "nameEnvironment", ";", "this", ".", "knownPackages", "=", "new", "HashtableOfPackage", "(", ")", ";", "this", ".", "uniqueArrayBindings", "=", "new", "ArrayBinding", "[", "5", "]", "[", "]", ";", "this", ".", "uniqueArrayBindings", "[", "0", "]", "=", "new", "ArrayBinding", "[", "50", "]", ";", "this", ".", "uniqueParameterizedTypeBindings", "=", "new", "SimpleLookupTable", "(", "3", ")", ";", "this", ".", "uniqueRawTypeBindings", "=", "new", "SimpleLookupTable", "(", "3", ")", ";", "this", ".", "uniqueWildcardBindings", "=", "new", "SimpleLookupTable", "(", "3", ")", ";", "this", ".", "uniqueParameterizedGenericMethodBindings", "=", "new", "SimpleLookupTable", "(", "3", ")", ";", "this", ".", "missingTypes", "=", "null", ";", "this", ".", "accessRestrictions", "=", "new", "HashMap", "(", "3", ")", ";", "this", ".", "classFilePool", "=", "ClassFilePool", ".", "newInstance", "(", ")", ";", "}", "public", "ReferenceBinding", "askForType", "(", "char", "[", "]", "[", "]", "compoundName", ")", "{", "NameEnvironmentAnswer", "answer", "=", "this", ".", "nameEnvironment", ".", "findType", "(", "compoundName", ")", ";", "if", "(", "answer", "==", "null", ")", "return", "null", ";", "if", "(", "answer", ".", "isBinaryType", "(", ")", ")", "{", "this", ".", "typeRequestor", ".", "accept", "(", "answer", ".", "getBinaryType", "(", ")", ",", "computePackageFrom", "(", "compoundName", ",", "false", ")", ",", "answer", ".", "getAccessRestriction", "(", ")", ")", ";", "}", "else", "if", "(", "answer", ".", "isCompilationUnit", "(", ")", ")", "{", "this", ".", "typeRequestor", ".", "accept", "(", "answer", ".", "getCompilationUnit", "(", ")", ",", "answer", ".", "getAccessRestriction", "(", ")", ")", ";", "}", "else", "if", "(", "answer", ".", "isSourceType", "(", ")", ")", "{", "this", ".", "typeRequestor", ".", "accept", "(", "answer", ".", "getSourceTypes", "(", ")", ",", "computePackageFrom", "(", "compoundName", ",", "false", ")", ",", "answer", ".", "getAccessRestriction", "(", ")", ")", ";", "}", "return", "getCachedType", "(", "compoundName", ")", ";", "}", "ReferenceBinding", "askForType", "(", "PackageBinding", "packageBinding", ",", "char", "[", "]", "name", ")", "{", "if", "(", "packageBinding", "==", "null", ")", "{", "if", "(", "this", ".", "defaultPackage", "==", "null", ")", "return", "null", ";", "packageBinding", "=", "this", ".", "defaultPackage", ";", "}", "NameEnvironmentAnswer", "answer", "=", "this", ".", "nameEnvironment", ".", "findType", "(", "name", ",", "packageBinding", ".", "compoundName", ")", ";", "if", "(", "answer", "==", "null", ")", "return", "null", ";", "if", "(", "answer", ".", "isBinaryType", "(", ")", ")", "{", "this", ".", "typeRequestor", ".", "accept", "(", "answer", ".", "getBinaryType", "(", ")", ",", "packageBinding", ",", "answer", ".", "getAccessRestriction", "(", ")", ")", ";", "}", "else", "if", "(", "answer", ".", "isCompilationUnit", "(", ")", ")", "{", "this", ".", "typeRequestor", ".", "accept", "(", "answer", ".", "getCompilationUnit", "(", ")", ",", "answer", ".", "getAccessRestriction", "(", ")", ")", ";", "}", "else", "if", "(", "answer", ".", "isSourceType", "(", ")", ")", "{", "this", ".", "typeRequestor", ".", "accept", "(", "answer", ".", "getSourceTypes", "(", ")", ",", "packageBinding", ",", "answer", ".", "getAccessRestriction", "(", ")", ")", ";", "}", "return", "packageBinding", ".", "getType0", "(", "name", ")", ";", "}", "public", "void", "buildTypeBindings", "(", "CompilationUnitDeclaration", "unit", ",", "AccessRestriction", "accessRestriction", ")", "{", "CompilationUnitScope", "scope", "=", "unit", ".", "buildCompilationUnitScope", "(", "this", ")", ";", "scope", ".", "buildTypeBindings", "(", "accessRestriction", ")", ";", "int", "unitsLength", "=", "this", ".", "units", ".", "length", ";", "if", "(", "++", "this", ".", "lastUnitIndex", ">=", "unitsLength", ")", "System", ".", "arraycopy", "(", "this", ".", "units", ",", "0", ",", "this", ".", "units", "=", "new", "CompilationUnitDeclaration", "[", "2", "*", "unitsLength", "]", ",", "0", ",", "unitsLength", ")", ";", "this", ".", "units", "[", "this", ".", "lastUnitIndex", "]", "=", "unit", ";", "}", "public", "BinaryTypeBinding", "cacheBinaryType", "(", "IBinaryType", "binaryType", ",", "AccessRestriction", "accessRestriction", ")", "{", "return", "cacheBinaryType", "(", "binaryType", ",", "true", ",", "accessRestriction", ")", ";", "}", "public", "BinaryTypeBinding", "cacheBinaryType", "(", "IBinaryType", "binaryType", ",", "boolean", "needFieldsAndMethods", ",", "AccessRestriction", "accessRestriction", ")", "{", "char", "[", "]", "[", "]", "compoundName", "=", "CharOperation", ".", "splitOn", "(", "'/'", ",", "binaryType", ".", "getName", "(", ")", ")", ";", "ReferenceBinding", "existingType", "=", "getCachedType", "(", "compoundName", ")", ";", "if", "(", "existingType", "==", "null", "||", "existingType", "instanceof", "UnresolvedReferenceBinding", ")", "return", "createBinaryTypeFrom", "(", "binaryType", ",", "computePackageFrom", "(", "compoundName", ",", "false", ")", ",", "needFieldsAndMethods", ",", "accessRestriction", ")", ";", "return", "null", ";", "}", "public", "void", "completeTypeBindings", "(", ")", "{", "this", ".", "stepCompleted", "=", "BUILD_TYPE_HIERARCHY", ";", "for", "(", "int", "i", "=", "this", ".", "lastCompletedUnitIndex", "+", "1", ";", "i", "<=", "this", ".", "lastUnitIndex", ";", "i", "++", ")", "{", "(", "this", ".", "unitBeingCompleted", "=", "this", ".", "units", "[", "i", "]", ")", ".", "scope", ".", "checkAndSetImports", "(", ")", ";", "}", "this", ".", "stepCompleted", "=", "CHECK_AND_SET_IMPORTS", ";", "for", "(", "int", "i", "=", "this", ".", "lastCompletedUnitIndex", "+", "1", ";", "i", "<=", "this", ".", "lastUnitIndex", ";", "i", "++", ")", "{", "(", "this", ".", "unitBeingCompleted", "=", "this", ".", "units", "[", "i", "]", ")", ".", "scope", ".", "connectTypeHierarchy", "(", ")", ";", "(", "this", ".", "unitBeingCompleted", "=", "this", ".", "units", "[", "i", "]", ")", ".", "scope", ".", "augmentTypeHierarchy", "(", ")", ";", "}", "this", ".", "stepCompleted", "=", "CONNECT_TYPE_HIERARCHY", ";", "for", "(", "int", "i", "=", "this", ".", "lastCompletedUnitIndex", "+", "1", ";", "i", "<=", "this", ".", "lastUnitIndex", ";", "i", "++", ")", "{", "CompilationUnitScope", "unitScope", "=", "(", "this", ".", "unitBeingCompleted", "=", "this", ".", "units", "[", "i", "]", ")", ".", "scope", ";", "unitScope", ".", "checkParameterizedTypes", "(", ")", ";", "unitScope", ".", "buildFieldsAndMethods", "(", ")", ";", "this", ".", "units", "[", "i", "]", "=", "null", ";", "}", "this", ".", "stepCompleted", "=", "BUILD_FIELDS_AND_METHODS", ";", "this", ".", "lastCompletedUnitIndex", "=", "this", ".", "lastUnitIndex", ";", "this", ".", "unitBeingCompleted", "=", "null", ";", "}", "public", "void", "completeTypeBindings", "(", "CompilationUnitDeclaration", "parsedUnit", ")", "{", "if", "(", "this", ".", "stepCompleted", "==", "BUILD_FIELDS_AND_METHODS", ")", "{", "completeTypeBindings", "(", ")", ";", "}", "else", "{", "if", "(", "parsedUnit", ".", "scope", "==", "null", ")", "return", ";", "if", "(", "this", ".", "stepCompleted", ">=", "CHECK_AND_SET_IMPORTS", ")", "(", "this", ".", "unitBeingCompleted", "=", "parsedUnit", ")", ".", "scope", ".", "checkAndSetImports", "(", ")", ";", "if", "(", "this", ".", "stepCompleted", ">=", "CONNECT_TYPE_HIERARCHY", ")", "(", "this", ".", "unitBeingCompleted", "=", "parsedUnit", ")", ".", "scope", ".", "connectTypeHierarchy", "(", ")", ";", "this", ".", "unitBeingCompleted", "=", "null", ";", "}", "}", "public", "void", "completeTypeBindings", "(", "CompilationUnitDeclaration", "parsedUnit", ",", "boolean", "buildFieldsAndMethods", ")", "{", "if", "(", "parsedUnit", ".", "scope", "==", "null", ")", "return", ";", "(", "this", ".", "unitBeingCompleted", "=", "parsedUnit", ")", ".", "scope", ".", "checkAndSetImports", "(", ")", ";", "parsedUnit", ".", "scope", ".", "connectTypeHierarchy", "(", ")", ";", "parsedUnit", ".", "scope", ".", "checkParameterizedTypes", "(", ")", ";", "if", "(", "buildFieldsAndMethods", ")", "parsedUnit", ".", "scope", ".", "buildFieldsAndMethods", "(", ")", ";", "this", ".", "unitBeingCompleted", "=", "null", ";", "}", "public", "void", "completeTypeBindings", "(", "CompilationUnitDeclaration", "[", "]", "parsedUnits", ",", "boolean", "[", "]", "buildFieldsAndMethods", ",", "int", "unitCount", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "unitCount", ";", "i", "++", ")", "{", "CompilationUnitDeclaration", "parsedUnit", "=", "parsedUnits", "[", "i", "]", ";", "if", "(", "parsedUnit", ".", "scope", "!=", "null", ")", "(", "this", ".", "unitBeingCompleted", "=", "parsedUnit", ")", ".", "scope", ".", "checkAndSetImports", "(", ")", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "unitCount", ";", "i", "++", ")", "{", "CompilationUnitDeclaration", "parsedUnit", "=", "parsedUnits", "[", "i", "]", ";", "if", "(", "parsedUnit", ".", "scope", "!=", "null", ")", "(", "this", ".", "unitBeingCompleted", "=", "parsedUnit", ")", ".", "scope", ".", "connectTypeHierarchy", "(", ")", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "unitCount", ";", "i", "++", ")", "{", "CompilationUnitDeclaration", "parsedUnit", "=", "parsedUnits", "[", "i", "]", ";", "if", "(", "parsedUnit", ".", "scope", "!=", "null", ")", "{", "(", "this", ".", "unitBeingCompleted", "=", "parsedUnit", ")", ".", "scope", ".", "checkParameterizedTypes", "(", ")", ";", "if", "(", "buildFieldsAndMethods", "[", "i", "]", ")", "parsedUnit", ".", "scope", ".", "buildFieldsAndMethods", "(", ")", ";", "}", "}", "this", ".", "unitBeingCompleted", "=", "null", ";", "}", "public", "MethodBinding", "computeArrayClone", "(", "MethodBinding", "objectClone", ")", "{", "if", "(", "this", ".", "arrayClone", "==", "null", ")", "{", "this", ".", "arrayClone", "=", "new", "MethodBinding", "(", "(", "objectClone", ".", "modifiers", "&", "~", "ClassFileConstants", ".", "AccProtected", ")", "|", "ClassFileConstants", ".", "AccPublic", ",", "TypeConstants", ".", "CLONE", ",", "objectClone", ".", "returnType", ",", "Binding", ".", "NO_PARAMETERS", ",", "Binding", ".", "NO_EXCEPTIONS", ",", "(", "ReferenceBinding", ")", "objectClone", ".", "returnType", ")", ";", "}", "return", "this", ".", "arrayClone", ";", "}", "public", "TypeBinding", "computeBoxingType", "(", "TypeBinding", "type", ")", "{", "TypeBinding", "boxedType", ";", "switch", "(", "type", ".", "id", ")", "{", "case", "TypeIds", ".", "T_JavaLangBoolean", ":", "return", "TypeBinding", ".", "BOOLEAN", ";", "case", "TypeIds", ".", "T_JavaLangByte", ":", "return", "TypeBinding", ".", "BYTE", ";", "case", "TypeIds", ".", "T_JavaLangCharacter", ":", "return", "TypeBinding", ".", "CHAR", ";", "case", "TypeIds", ".", "T_JavaLangShort", ":", "return", "TypeBinding", ".", "SHORT", ";", "case", "TypeIds", ".", "T_JavaLangDouble", ":", "return", "TypeBinding", ".", "DOUBLE", ";", "case", "TypeIds", ".", "T_JavaLangFloat", ":", "return", "TypeBinding", ".", "FLOAT", ";", "case", "TypeIds", ".", "T_JavaLangInteger", ":", "return", "TypeBinding", ".", "INT", ";", "case", "TypeIds", ".", "T_JavaLangLong", ":", "return", "TypeBinding", ".", "LONG", ";", "case", "TypeIds", ".", "T_int", ":", "boxedType", "=", "getType", "(", "JAVA_LANG_INTEGER", ")", ";", "if", "(", "boxedType", "!=", "null", ")", "return", "boxedType", ";", "return", "new", "ProblemReferenceBinding", "(", "JAVA_LANG_INTEGER", ",", "null", ",", "NotFound", ")", ";", "case", "TypeIds", ".", "T_byte", ":", "boxedType", "=", "getType", "(", "JAVA_LANG_BYTE", ")", ";", "if", "(", "boxedType", "!=", "null", ")", "return", "boxedType", ";", "return", "new", "ProblemReferenceBinding", "(", "JAVA_LANG_BYTE", ",", "null", ",", "NotFound", ")", ";", "case", "TypeIds", ".", "T_short", ":", "boxedType", "=", "getType", "(", "JAVA_LANG_SHORT", ")", ";", "if", "(", "boxedType", "!=", "null", ")", "return", "boxedType", ";", "return", "new", "ProblemReferenceBinding", "(", "JAVA_LANG_SHORT", ",", "null", ",", "NotFound", ")", ";", "case", "TypeIds", ".", "T_char", ":", "boxedType", "=", "getType", "(", "JAVA_LANG_CHARACTER", ")", ";", "if", "(", "boxedType", "!=", "null", ")", "return", "boxedType", ";", "return", "new", "ProblemReferenceBinding", "(", "JAVA_LANG_CHARACTER", ",", "null", ",", "NotFound", ")", ";", "case", "TypeIds", ".", "T_long", ":", "boxedType", "=", "getType", "(", "JAVA_LANG_LONG", ")", ";", "if", "(", "boxedType", "!=", "null", ")", "return", "boxedType", ";", "return", "new", "ProblemReferenceBinding", "(", "JAVA_LANG_LONG", ",", "null", ",", "NotFound", ")", ";", "case", "TypeIds", ".", "T_float", ":", "boxedType", "=", "getType", "(", "JAVA_LANG_FLOAT", ")", ";", "if", "(", "boxedType", "!=", "null", ")", "return", "boxedType", ";", "return", "new", "ProblemReferenceBinding", "(", "JAVA_LANG_FLOAT", ",", "null", ",", "NotFound", ")", ";", "case", "TypeIds", ".", "T_double", ":", "boxedType", "=", "getType", "(", "JAVA_LANG_DOUBLE", ")", ";", "if", "(", "boxedType", "!=", "null", ")", "return", "boxedType", ";", "return", "new", "ProblemReferenceBinding", "(", "JAVA_LANG_DOUBLE", ",", "null", ",", "NotFound", ")", ";", "case", "TypeIds", ".", "T_boolean", ":", "boxedType", "=", "getType", "(", "JAVA_LANG_BOOLEAN", ")", ";", "if", "(", "boxedType", "!=", "null", ")", "return", "boxedType", ";", "return", "new", "ProblemReferenceBinding", "(", "JAVA_LANG_BOOLEAN", ",", "null", ",", "NotFound", ")", ";", "}", "switch", "(", "type", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "WILDCARD_TYPE", ":", "case", "Binding", ".", "INTERSECTION_TYPE", ":", "case", "Binding", ".", "TYPE_PARAMETER", ":", "switch", "(", "type", ".", "erasure", "(", ")", ".", "id", ")", "{", "case", "TypeIds", ".", "T_JavaLangBoolean", ":", "return", "TypeBinding", ".", "BOOLEAN", ";", "case", "TypeIds", ".", "T_JavaLangByte", ":", "return", "TypeBinding", ".", "BYTE", ";", "case", "TypeIds", ".", "T_JavaLangCharacter", ":", "return", "TypeBinding", ".", "CHAR", ";", "case", "TypeIds", ".", "T_JavaLangShort", ":", "return", "TypeBinding", ".", "SHORT", ";", "case", "TypeIds", ".", "T_JavaLangDouble", ":", "return", "TypeBinding", ".", "DOUBLE", ";", "case", "TypeIds", ".", "T_JavaLangFloat", ":", "return", "TypeBinding", ".", "FLOAT", ";", "case", "TypeIds", ".", "T_JavaLangInteger", ":", "return", "TypeBinding", ".", "INT", ";", "case", "TypeIds", ".", "T_JavaLangLong", ":", "return", "TypeBinding", ".", "LONG", ";", "}", "}", "return", "type", ";", "}", "private", "PackageBinding", "computePackageFrom", "(", "char", "[", "]", "[", "]", "constantPoolName", ",", "boolean", "isMissing", ")", "{", "if", "(", "constantPoolName", ".", "length", "==", "1", ")", "return", "this", ".", "defaultPackage", ";", "PackageBinding", "packageBinding", "=", "getPackage0", "(", "constantPoolName", "[", "0", "]", ")", ";", "if", "(", "packageBinding", "==", "null", "||", "packageBinding", "==", "TheNotFoundPackage", ")", "{", "packageBinding", "=", "new", "PackageBinding", "(", "constantPoolName", "[", "0", "]", ",", "this", ")", ";", "if", "(", "isMissing", ")", "packageBinding", ".", "tagBits", "|=", "TagBits", ".", "HasMissingType", ";", "this", ".", "knownPackages", ".", "put", "(", "constantPoolName", "[", "0", "]", ",", "packageBinding", ")", ";", "}", "for", "(", "int", "i", "=", "1", ",", "length", "=", "constantPoolName", ".", "length", "-", "1", ";", "i", "<", "length", ";", "i", "++", ")", "{", "PackageBinding", "parent", "=", "packageBinding", ";", "if", "(", "(", "packageBinding", "=", "parent", ".", "getPackage0", "(", "constantPoolName", "[", "i", "]", ")", ")", "==", "null", "||", "packageBinding", "==", "TheNotFoundPackage", ")", "{", "packageBinding", "=", "new", "PackageBinding", "(", "CharOperation", ".", "subarray", "(", "constantPoolName", ",", "0", ",", "i", "+", "1", ")", ",", "parent", ",", "this", ")", ";", "if", "(", "isMissing", ")", "{", "packageBinding", ".", "tagBits", "|=", "TagBits", ".", "HasMissingType", ";", "}", "parent", ".", "addPackage", "(", "packageBinding", ")", ";", "}", "}", "return", "packageBinding", ";", "}", "public", "ReferenceBinding", "convertToParameterizedType", "(", "ReferenceBinding", "originalType", ")", "{", "if", "(", "originalType", "!=", "null", ")", "{", "boolean", "isGeneric", "=", "originalType", ".", "isGenericType", "(", ")", ";", "ReferenceBinding", "originalEnclosingType", "=", "originalType", ".", "enclosingType", "(", ")", ";", "ReferenceBinding", "convertedEnclosingType", "=", "originalEnclosingType", ";", "boolean", "needToConvert", "=", "isGeneric", ";", "if", "(", "originalEnclosingType", "!=", "null", ")", "{", "convertedEnclosingType", "=", "originalType", ".", "isStatic", "(", ")", "?", "(", "ReferenceBinding", ")", "convertToRawType", "(", "originalEnclosingType", ",", "false", ")", ":", "convertToParameterizedType", "(", "originalEnclosingType", ")", ";", "needToConvert", "|=", "originalEnclosingType", "!=", "convertedEnclosingType", ";", "}", "if", "(", "needToConvert", ")", "{", "return", "createParameterizedType", "(", "originalType", ",", "isGeneric", "?", "originalType", ".", "typeVariables", "(", ")", ":", "null", ",", "convertedEnclosingType", ")", ";", "}", "}", "return", "originalType", ";", "}", "public", "TypeBinding", "convertToRawType", "(", "TypeBinding", "type", ",", "boolean", "forceRawEnclosingType", ")", "{", "int", "dimension", ";", "TypeBinding", "originalType", ";", "switch", "(", "type", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "BASE_TYPE", ":", "case", "Binding", ".", "TYPE_PARAMETER", ":", "case", "Binding", ".", "WILDCARD_TYPE", ":", "case", "Binding", ".", "INTERSECTION_TYPE", ":", "case", "Binding", ".", "RAW_TYPE", ":", "return", "type", ";", "case", "Binding", ".", "ARRAY_TYPE", ":", "dimension", "=", "type", ".", "dimensions", "(", ")", ";", "originalType", "=", "type", ".", "leafComponentType", "(", ")", ";", "break", ";", "default", ":", "if", "(", "type", ".", "id", "==", "TypeIds", ".", "T_JavaLangObject", ")", "return", "type", ";", "dimension", "=", "0", ";", "originalType", "=", "type", ";", "}", "boolean", "needToConvert", ";", "switch", "(", "originalType", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "BASE_TYPE", ":", "return", "type", ";", "case", "Binding", ".", "GENERIC_TYPE", ":", "needToConvert", "=", "true", ";", "break", ";", "case", "Binding", ".", "PARAMETERIZED_TYPE", ":", "ParameterizedTypeBinding", "paramType", "=", "(", "ParameterizedTypeBinding", ")", "originalType", ";", "needToConvert", "=", "paramType", ".", "genericType", "(", ")", ".", "isGenericType", "(", ")", ";", "break", ";", "default", ":", "needToConvert", "=", "false", ";", "break", ";", "}", "ReferenceBinding", "originalEnclosing", "=", "originalType", ".", "enclosingType", "(", ")", ";", "TypeBinding", "convertedType", ";", "if", "(", "originalEnclosing", "==", "null", ")", "{", "convertedType", "=", "needToConvert", "?", "createRawType", "(", "(", "ReferenceBinding", ")", "originalType", ".", "erasure", "(", ")", ",", "null", ")", ":", "originalType", ";", "}", "else", "{", "ReferenceBinding", "convertedEnclosing", ";", "if", "(", "originalEnclosing", ".", "kind", "(", ")", "==", "Binding", ".", "RAW_TYPE", ")", "{", "needToConvert", "|=", "!", "(", "(", "ReferenceBinding", ")", "originalType", ")", ".", "isStatic", "(", ")", ";", "convertedEnclosing", "=", "originalEnclosing", ";", "}", "else", "if", "(", "forceRawEnclosingType", "&&", "!", "needToConvert", ")", "{", "convertedEnclosing", "=", "(", "ReferenceBinding", ")", "convertToRawType", "(", "originalEnclosing", ",", "forceRawEnclosingType", ")", ";", "needToConvert", "=", "originalEnclosing", "!=", "convertedEnclosing", ";", "}", "else", "if", "(", "needToConvert", "||", "(", "(", "ReferenceBinding", ")", "originalType", ")", ".", "isStatic", "(", ")", ")", "{", "convertedEnclosing", "=", "(", "ReferenceBinding", ")", "convertToRawType", "(", "originalEnclosing", ",", "false", ")", ";", "}", "else", "{", "convertedEnclosing", "=", "convertToParameterizedType", "(", "originalEnclosing", ")", ";", "}", "if", "(", "needToConvert", ")", "{", "convertedType", "=", "createRawType", "(", "(", "ReferenceBinding", ")", "originalType", ".", "erasure", "(", ")", ",", "convertedEnclosing", ")", ";", "}", "else", "if", "(", "originalEnclosing", "!=", "convertedEnclosing", ")", "{", "convertedType", "=", "createParameterizedType", "(", "(", "ReferenceBinding", ")", "originalType", ".", "erasure", "(", ")", ",", "null", ",", "convertedEnclosing", ")", ";", "}", "else", "{", "convertedType", "=", "originalType", ";", "}", "}", "if", "(", "originalType", "!=", "convertedType", ")", "{", "return", "dimension", ">", "0", "?", "(", "TypeBinding", ")", "createArrayType", "(", "convertedType", ",", "dimension", ")", ":", "convertedType", ";", "}", "return", "type", ";", "}", "public", "ReferenceBinding", "[", "]", "convertToRawTypes", "(", "ReferenceBinding", "[", "]", "originalTypes", ",", "boolean", "forceErasure", ",", "boolean", "forceRawEnclosingType", ")", "{", "if", "(", "originalTypes", "==", "null", ")", "return", "null", ";", "ReferenceBinding", "[", "]", "convertedTypes", "=", "originalTypes", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "originalTypes", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "ReferenceBinding", "originalType", "=", "originalTypes", "[", "i", "]", ";", "ReferenceBinding", "convertedType", "=", "(", "ReferenceBinding", ")", "convertToRawType", "(", "forceErasure", "?", "originalType", ".", "erasure", "(", ")", ":", "originalType", ",", "forceRawEnclosingType", ")", ";", "if", "(", "convertedType", "!=", "originalType", ")", "{", "if", "(", "convertedTypes", "==", "originalTypes", ")", "{", "System", ".", "arraycopy", "(", "originalTypes", ",", "0", ",", "convertedTypes", "=", "new", "ReferenceBinding", "[", "length", "]", ",", "0", ",", "i", ")", ";", "}", "convertedTypes", "[", "i", "]", "=", "convertedType", ";", "}", "else", "if", "(", "convertedTypes", "!=", "originalTypes", ")", "{", "convertedTypes", "[", "i", "]", "=", "originalType", ";", "}", "}", "return", "convertedTypes", ";", "}", "public", "TypeBinding", "convertUnresolvedBinaryToRawType", "(", "TypeBinding", "type", ")", "{", "int", "dimension", ";", "TypeBinding", "originalType", ";", "switch", "(", "type", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "BASE_TYPE", ":", "case", "Binding", ".", "TYPE_PARAMETER", ":", "case", "Binding", ".", "WILDCARD_TYPE", ":", "case", "Binding", ".", "INTERSECTION_TYPE", ":", "case", "Binding", ".", "RAW_TYPE", ":", "return", "type", ";", "case", "Binding", ".", "ARRAY_TYPE", ":", "dimension", "=", "type", ".", "dimensions", "(", ")", ";", "originalType", "=", "type", ".", "leafComponentType", "(", ")", ";", "break", ";", "default", ":", "if", "(", "type", ".", "id", "==", "TypeIds", ".", "T_JavaLangObject", ")", "return", "type", ";", "dimension", "=", "0", ";", "originalType", "=", "type", ";", "}", "boolean", "needToConvert", ";", "switch", "(", "originalType", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "BASE_TYPE", ":", "return", "type", ";", "case", "Binding", ".", "GENERIC_TYPE", ":", "needToConvert", "=", "true", ";", "break", ";", "case", "Binding", ".", "PARAMETERIZED_TYPE", ":", "ParameterizedTypeBinding", "paramType", "=", "(", "ParameterizedTypeBinding", ")", "originalType", ";", "needToConvert", "=", "paramType", ".", "genericType", "(", ")", ".", "isGenericType", "(", ")", ";", "break", ";", "default", ":", "needToConvert", "=", "false", ";", "break", ";", "}", "ReferenceBinding", "originalEnclosing", "=", "originalType", ".", "enclosingType", "(", ")", ";", "TypeBinding", "convertedType", ";", "if", "(", "originalEnclosing", "==", "null", ")", "{", "convertedType", "=", "needToConvert", "?", "createRawType", "(", "(", "ReferenceBinding", ")", "originalType", ".", "erasure", "(", ")", ",", "null", ")", ":", "originalType", ";", "}", "else", "{", "ReferenceBinding", "convertedEnclosing", "=", "(", "ReferenceBinding", ")", "convertUnresolvedBinaryToRawType", "(", "originalEnclosing", ")", ";", "if", "(", "convertedEnclosing", "!=", "originalEnclosing", ")", "{", "needToConvert", "|=", "!", "(", "(", "ReferenceBinding", ")", "originalType", ")", ".", "isStatic", "(", ")", ";", "}", "if", "(", "needToConvert", ")", "{", "convertedType", "=", "createRawType", "(", "(", "ReferenceBinding", ")", "originalType", ".", "erasure", "(", ")", ",", "convertedEnclosing", ")", ";", "}", "else", "if", "(", "originalEnclosing", "!=", "convertedEnclosing", ")", "{", "convertedType", "=", "createParameterizedType", "(", "(", "ReferenceBinding", ")", "originalType", ".", "erasure", "(", ")", ",", "null", ",", "convertedEnclosing", ")", ";", "}", "else", "{", "convertedType", "=", "originalType", ";", "}", "}", "if", "(", "originalType", "!=", "convertedType", ")", "{", "return", "dimension", ">", "0", "?", "(", "TypeBinding", ")", "createArrayType", "(", "convertedType", ",", "dimension", ")", ":", "convertedType", ";", "}", "return", "type", ";", "}", "public", "AnnotationBinding", "createAnnotation", "(", "ReferenceBinding", "annotationType", ",", "ElementValuePair", "[", "]", "pairs", ")", "{", "if", "(", "pairs", ".", "length", "!=", "0", ")", "{", "AnnotationBinding", ".", "setMethodBindings", "(", "annotationType", ",", "pairs", ")", ";", "}", "return", "new", "AnnotationBinding", "(", "annotationType", ",", "pairs", ")", ";", "}", "public", "ArrayBinding", "createArrayType", "(", "TypeBinding", "leafComponentType", ",", "int", "dimensionCount", ")", "{", "if", "(", "leafComponentType", "instanceof", "LocalTypeBinding", ")", "return", "(", "(", "LocalTypeBinding", ")", "leafComponentType", ")", ".", "createArrayType", "(", "dimensionCount", ",", "this", ")", ";", "int", "dimIndex", "=", "dimensionCount", "-", "1", ";", "int", "length", "=", "this", ".", "uniqueArrayBindings", ".", "length", ";", "ArrayBinding", "[", "]", "arrayBindings", ";", "if", "(", "dimIndex", "<", "length", ")", "{", "if", "(", "(", "arrayBindings", "=", "this", ".", "uniqueArrayBindings", "[", "dimIndex", "]", ")", "==", "null", ")", "this", ".", "uniqueArrayBindings", "[", "dimIndex", "]", "=", "arrayBindings", "=", "new", "ArrayBinding", "[", "10", "]", ";", "}", "else", "{", "System", ".", "arraycopy", "(", "this", ".", "uniqueArrayBindings", ",", "0", ",", "this", ".", "uniqueArrayBindings", "=", "new", "ArrayBinding", "[", "dimensionCount", "]", "[", "]", ",", "0", ",", "length", ")", ";", "this", ".", "uniqueArrayBindings", "[", "dimIndex", "]", "=", "arrayBindings", "=", "new", "ArrayBinding", "[", "10", "]", ";", "}", "int", "index", "=", "-", "1", ";", "length", "=", "arrayBindings", ".", "length", ";", "while", "(", "++", "index", "<", "length", ")", "{", "ArrayBinding", "currentBinding", "=", "arrayBindings", "[", "index", "]", ";", "if", "(", "currentBinding", "==", "null", ")", "return", "arrayBindings", "[", "index", "]", "=", "new", "ArrayBinding", "(", "leafComponentType", ",", "dimensionCount", ",", "this", ")", ";", "if", "(", "currentBinding", ".", "leafComponentType", "==", "leafComponentType", ")", "return", "currentBinding", ";", "}", "System", ".", "arraycopy", "(", "arrayBindings", ",", "0", ",", "(", "arrayBindings", "=", "new", "ArrayBinding", "[", "length", "*", "2", "]", ")", ",", "0", ",", "length", ")", ";", "this", ".", "uniqueArrayBindings", "[", "dimIndex", "]", "=", "arrayBindings", ";", "return", "arrayBindings", "[", "length", "]", "=", "new", "ArrayBinding", "(", "leafComponentType", ",", "dimensionCount", ",", "this", ")", ";", "}", "public", "BinaryTypeBinding", "createBinaryTypeFrom", "(", "IBinaryType", "binaryType", ",", "PackageBinding", "packageBinding", ",", "AccessRestriction", "accessRestriction", ")", "{", "return", "createBinaryTypeFrom", "(", "binaryType", ",", "packageBinding", ",", "true", ",", "accessRestriction", ")", ";", "}", "public", "BinaryTypeBinding", "createBinaryTypeFrom", "(", "IBinaryType", "binaryType", ",", "PackageBinding", "packageBinding", ",", "boolean", "needFieldsAndMethods", ",", "AccessRestriction", "accessRestriction", ")", "{", "BinaryTypeBinding", "binaryBinding", "=", "new", "BinaryTypeBinding", "(", "packageBinding", ",", "binaryType", ",", "this", ")", ";", "ReferenceBinding", "cachedType", "=", "packageBinding", ".", "getType0", "(", "binaryBinding", ".", "compoundName", "[", "binaryBinding", ".", "compoundName", ".", "length", "-", "1", "]", ")", ";", "if", "(", "cachedType", "!=", "null", ")", "{", "if", "(", "cachedType", "instanceof", "UnresolvedReferenceBinding", ")", "{", "(", "(", "UnresolvedReferenceBinding", ")", "cachedType", ")", ".", "setResolvedType", "(", "binaryBinding", ",", "this", ")", ";", "}", "else", "{", "if", "(", "cachedType", ".", "isBinaryBinding", "(", ")", ")", "return", "(", "BinaryTypeBinding", ")", "cachedType", ";", "return", "null", ";", "}", "}", "packageBinding", ".", "addType", "(", "binaryBinding", ")", ";", "setAccessRestriction", "(", "binaryBinding", ",", "accessRestriction", ")", ";", "binaryBinding", ".", "cachePartsFrom", "(", "binaryType", ",", "needFieldsAndMethods", ")", ";", "return", "binaryBinding", ";", "}", "public", "MissingTypeBinding", "createMissingType", "(", "PackageBinding", "packageBinding", ",", "char", "[", "]", "[", "]", "compoundName", ")", "{", "if", "(", "packageBinding", "==", "null", ")", "{", "packageBinding", "=", "computePackageFrom", "(", "compoundName", ",", "true", ")", ";", "if", "(", "packageBinding", "==", "TheNotFoundPackage", ")", "packageBinding", "=", "this", ".", "defaultPackage", ";", "}", "MissingTypeBinding", "missingType", "=", "new", "MissingTypeBinding", "(", "packageBinding", ",", "compoundName", ",", "this", ")", ";", "if", "(", "missingType", ".", "id", "!=", "TypeIds", ".", "T_JavaLangObject", ")", "{", "ReferenceBinding", "objectType", "=", "getType", "(", "TypeConstants", ".", "JAVA_LANG_OBJECT", ")", ";", "if", "(", "objectType", "==", "null", ")", "{", "objectType", "=", "createMissingType", "(", "null", ",", "TypeConstants", ".", "JAVA_LANG_OBJECT", ")", ";", "}", "missingType", ".", "setMissingSuperclass", "(", "objectType", ")", ";", "}", "packageBinding", ".", "addType", "(", "missingType", ")", ";", "if", "(", "this", ".", "missingTypes", "==", "null", ")", "this", ".", "missingTypes", "=", "new", "ArrayList", "(", "3", ")", ";", "this", ".", "missingTypes", ".", "add", "(", "missingType", ")", ";", "return", "missingType", ";", "}", "public", "PackageBinding", "createPackage", "(", "char", "[", "]", "[", "]", "compoundName", ")", "{", "PackageBinding", "packageBinding", "=", "getPackage0", "(", "compoundName", "[", "0", "]", ")", ";", "if", "(", "packageBinding", "==", "null", "||", "packageBinding", "==", "TheNotFoundPackage", ")", "{", "packageBinding", "=", "new", "PackageBinding", "(", "compoundName", "[", "0", "]", ",", "this", ")", ";", "this", ".", "knownPackages", ".", "put", "(", "compoundName", "[", "0", "]", ",", "packageBinding", ")", ";", "}", "for", "(", "int", "i", "=", "1", ",", "length", "=", "compoundName", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "ReferenceBinding", "type", "=", "packageBinding", ".", "getType0", "(", "compoundName", "[", "i", "]", ")", ";", "if", "(", "type", "!=", "null", "&&", "type", "!=", "TheNotFoundType", "&&", "!", "(", "type", "instanceof", "UnresolvedReferenceBinding", ")", ")", "return", "null", ";", "PackageBinding", "parent", "=", "packageBinding", ";", "if", "(", "(", "packageBinding", "=", "parent", ".", "getPackage0", "(", "compoundName", "[", "i", "]", ")", ")", "==", "null", "||", "packageBinding", "==", "TheNotFoundPackage", ")", "{", "if", "(", "this", ".", "nameEnvironment", ".", "findType", "(", "compoundName", "[", "i", "]", ",", "parent", ".", "compoundName", ")", "!=", "null", ")", "return", "null", ";", "packageBinding", "=", "new", "PackageBinding", "(", "CharOperation", ".", "subarray", "(", "compoundName", ",", "0", ",", "i", "+", "1", ")", ",", "parent", ",", "this", ")", ";", "parent", ".", "addPackage", "(", "packageBinding", ")", ";", "}", "}", "return", "packageBinding", ";", "}", "public", "ParameterizedGenericMethodBinding", "createParameterizedGenericMethod", "(", "MethodBinding", "genericMethod", ",", "RawTypeBinding", "rawType", ")", "{", "ParameterizedGenericMethodBinding", "[", "]", "cachedInfo", "=", "(", "ParameterizedGenericMethodBinding", "[", "]", ")", "this", ".", "uniqueParameterizedGenericMethodBindings", ".", "get", "(", "genericMethod", ")", ";", "boolean", "needToGrow", "=", "false", ";", "int", "index", "=", "0", ";", "if", "(", "cachedInfo", "!=", "null", ")", "{", "nextCachedMethod", ":", "for", "(", "int", "max", "=", "cachedInfo", ".", "length", ";", "index", "<", "max", ";", "index", "++", ")", "{", "ParameterizedGenericMethodBinding", "cachedMethod", "=", "cachedInfo", "[", "index", "]", ";", "if", "(", "cachedMethod", "==", "null", ")", "break", "nextCachedMethod", ";", "if", "(", "!", "cachedMethod", ".", "isRaw", ")", "continue", "nextCachedMethod", ";", "if", "(", "cachedMethod", ".", "declaringClass", "!=", "(", "rawType", "==", "null", "?", "genericMethod", ".", "declaringClass", ":", "rawType", ")", ")", "continue", "nextCachedMethod", ";", "return", "cachedMethod", ";", "}", "needToGrow", "=", "true", ";", "}", "else", "{", "cachedInfo", "=", "new", "ParameterizedGenericMethodBinding", "[", "5", "]", ";", "this", ".", "uniqueParameterizedGenericMethodBindings", ".", "put", "(", "genericMethod", ",", "cachedInfo", ")", ";", "}", "int", "length", "=", "cachedInfo", ".", "length", ";", "if", "(", "needToGrow", "&&", "index", "==", "length", ")", "{", "System", ".", "arraycopy", "(", "cachedInfo", ",", "0", ",", "cachedInfo", "=", "new", "ParameterizedGenericMethodBinding", "[", "length", "*", "2", "]", ",", "0", ",", "length", ")", ";", "this", ".", "uniqueParameterizedGenericMethodBindings", ".", "put", "(", "genericMethod", ",", "cachedInfo", ")", ";", "}", "ParameterizedGenericMethodBinding", "parameterizedGenericMethod", "=", "new", "ParameterizedGenericMethodBinding", "(", "genericMethod", ",", "rawType", ",", "this", ")", ";", "cachedInfo", "[", "index", "]", "=", "parameterizedGenericMethod", ";", "return", "parameterizedGenericMethod", ";", "}", "public", "ParameterizedGenericMethodBinding", "createParameterizedGenericMethod", "(", "MethodBinding", "genericMethod", ",", "TypeBinding", "[", "]", "typeArguments", ")", "{", "ParameterizedGenericMethodBinding", "[", "]", "cachedInfo", "=", "(", "ParameterizedGenericMethodBinding", "[", "]", ")", "this", ".", "uniqueParameterizedGenericMethodBindings", ".", "get", "(", "genericMethod", ")", ";", "int", "argLength", "=", "typeArguments", "==", "null", "?", "0", ":", "typeArguments", ".", "length", ";", "boolean", "needToGrow", "=", "false", ";", "int", "index", "=", "0", ";", "if", "(", "cachedInfo", "!=", "null", ")", "{", "nextCachedMethod", ":", "for", "(", "int", "max", "=", "cachedInfo", ".", "length", ";", "index", "<", "max", ";", "index", "++", ")", "{", "ParameterizedGenericMethodBinding", "cachedMethod", "=", "cachedInfo", "[", "index", "]", ";", "if", "(", "cachedMethod", "==", "null", ")", "break", "nextCachedMethod", ";", "if", "(", "cachedMethod", ".", "isRaw", ")", "continue", "nextCachedMethod", ";", "TypeBinding", "[", "]", "cachedArguments", "=", "cachedMethod", ".", "typeArguments", ";", "int", "cachedArgLength", "=", "cachedArguments", "==", "null", "?", "0", ":", "cachedArguments", ".", "length", ";", "if", "(", "argLength", "!=", "cachedArgLength", ")", "continue", "nextCachedMethod", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "cachedArgLength", ";", "j", "++", ")", "{", "if", "(", "typeArguments", "[", "j", "]", "!=", "cachedArguments", "[", "j", "]", ")", "continue", "nextCachedMethod", ";", "}", "return", "cachedMethod", ";", "}", "needToGrow", "=", "true", ";", "}", "else", "{", "cachedInfo", "=", "new", "ParameterizedGenericMethodBinding", "[", "5", "]", ";", "this", ".", "uniqueParameterizedGenericMethodBindings", ".", "put", "(", "genericMethod", ",", "cachedInfo", ")", ";", "}", "int", "length", "=", "cachedInfo", ".", "length", ";", "if", "(", "needToGrow", "&&", "index", "==", "length", ")", "{", "System", ".", "arraycopy", "(", "cachedInfo", ",", "0", ",", "cachedInfo", "=", "new", "ParameterizedGenericMethodBinding", "[", "length", "*", "2", "]", ",", "0", ",", "length", ")", ";", "this", ".", "uniqueParameterizedGenericMethodBindings", ".", "put", "(", "genericMethod", ",", "cachedInfo", ")", ";", "}", "ParameterizedGenericMethodBinding", "parameterizedGenericMethod", "=", "new", "ParameterizedGenericMethodBinding", "(", "genericMethod", ",", "typeArguments", ",", "this", ")", ";", "cachedInfo", "[", "index", "]", "=", "parameterizedGenericMethod", ";", "return", "parameterizedGenericMethod", ";", "}", "public", "ParameterizedMethodBinding", "createGetClassMethod", "(", "TypeBinding", "receiverType", ",", "MethodBinding", "originalMethod", ",", "Scope", "scope", ")", "{", "ParameterizedMethodBinding", "retVal", "=", "null", ";", "if", "(", "this", ".", "uniqueGetClassMethodBinding", "==", "null", ")", "{", "this", ".", "uniqueGetClassMethodBinding", "=", "new", "SimpleLookupTable", "(", "3", ")", ";", "}", "else", "{", "retVal", "=", "(", "ParameterizedMethodBinding", ")", "this", ".", "uniqueGetClassMethodBinding", ".", "get", "(", "receiverType", ")", ";", "}", "if", "(", "retVal", "==", "null", ")", "{", "retVal", "=", "ParameterizedMethodBinding", ".", "instantiateGetClass", "(", "receiverType", ",", "originalMethod", ",", "scope", ")", ";", "this", ".", "uniqueGetClassMethodBinding", ".", "put", "(", "receiverType", ",", "retVal", ")", ";", "}", "return", "retVal", ";", "}", "public", "ParameterizedTypeBinding", "createParameterizedType", "(", "ReferenceBinding", "genericType", ",", "TypeBinding", "[", "]", "typeArguments", ",", "ReferenceBinding", "enclosingType", ")", "{", "ParameterizedTypeBinding", "[", "]", "cachedInfo", "=", "(", "ParameterizedTypeBinding", "[", "]", ")", "this", ".", "uniqueParameterizedTypeBindings", ".", "get", "(", "genericType", ")", ";", "int", "argLength", "=", "typeArguments", "==", "null", "?", "0", ":", "typeArguments", ".", "length", ";", "boolean", "needToGrow", "=", "false", ";", "int", "index", "=", "0", ";", "if", "(", "cachedInfo", "!=", "null", ")", "{", "nextCachedType", ":", "for", "(", "int", "max", "=", "cachedInfo", ".", "length", ";", "index", "<", "max", ";", "index", "++", ")", "{", "ParameterizedTypeBinding", "cachedType", "=", "cachedInfo", "[", "index", "]", ";", "if", "(", "cachedType", "==", "null", ")", "break", "nextCachedType", ";", "if", "(", "cachedType", ".", "actualType", "(", ")", "!=", "genericType", ")", "continue", "nextCachedType", ";", "if", "(", "cachedType", ".", "enclosingType", "(", ")", "!=", "enclosingType", ")", "continue", "nextCachedType", ";", "TypeBinding", "[", "]", "cachedArguments", "=", "cachedType", ".", "arguments", ";", "int", "cachedArgLength", "=", "cachedArguments", "==", "null", "?", "0", ":", "cachedArguments", ".", "length", ";", "if", "(", "argLength", "!=", "cachedArgLength", ")", "continue", "nextCachedType", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "cachedArgLength", ";", "j", "++", ")", "{", "if", "(", "typeArguments", "[", "j", "]", "!=", "cachedArguments", "[", "j", "]", ")", "continue", "nextCachedType", ";", "}", "return", "cachedType", ";", "}", "needToGrow", "=", "true", ";", "}", "else", "{", "cachedInfo", "=", "new", "ParameterizedTypeBinding", "[", "5", "]", ";", "this", ".", "uniqueParameterizedTypeBindings", ".", "put", "(", "genericType", ",", "cachedInfo", ")", ";", "}", "int", "length", "=", "cachedInfo", ".", "length", ";", "if", "(", "needToGrow", "&&", "index", "==", "length", ")", "{", "System", ".", "arraycopy", "(", "cachedInfo", ",", "0", ",", "cachedInfo", "=", "new", "ParameterizedTypeBinding", "[", "length", "*", "2", "]", ",", "0", ",", "length", ")", ";", "this", ".", "uniqueParameterizedTypeBindings", ".", "put", "(", "genericType", ",", "cachedInfo", ")", ";", "}", "ParameterizedTypeBinding", "parameterizedType", "=", "new", "ParameterizedTypeBinding", "(", "genericType", ",", "typeArguments", ",", "enclosingType", ",", "this", ")", ";", "cachedInfo", "[", "index", "]", "=", "parameterizedType", ";", "return", "parameterizedType", ";", "}", "public", "RawTypeBinding", "createRawType", "(", "ReferenceBinding", "genericType", ",", "ReferenceBinding", "enclosingType", ")", "{", "RawTypeBinding", "[", "]", "cachedInfo", "=", "(", "RawTypeBinding", "[", "]", ")", "this", ".", "uniqueRawTypeBindings", ".", "get", "(", "genericType", ")", ";", "boolean", "needToGrow", "=", "false", ";", "int", "index", "=", "0", ";", "if", "(", "cachedInfo", "!=", "null", ")", "{", "nextCachedType", ":", "for", "(", "int", "max", "=", "cachedInfo", ".", "length", ";", "index", "<", "max", ";", "index", "++", ")", "{", "RawTypeBinding", "cachedType", "=", "cachedInfo", "[", "index", "]", ";", "if", "(", "cachedType", "==", "null", ")", "break", "nextCachedType", ";", "if", "(", "cachedType", ".", "actualType", "(", ")", "!=", "genericType", ")", "continue", "nextCachedType", ";", "if", "(", "cachedType", ".", "enclosingType", "(", ")", "!=", "enclosingType", ")", "continue", "nextCachedType", ";", "return", "cachedType", ";", "}", "needToGrow", "=", "true", ";", "}", "else", "{", "cachedInfo", "=", "new", "RawTypeBinding", "[", "1", "]", ";", "this", ".", "uniqueRawTypeBindings", ".", "put", "(", "genericType", ",", "cachedInfo", ")", ";", "}", "int", "length", "=", "cachedInfo", ".", "length", ";", "if", "(", "needToGrow", "&&", "index", "==", "length", ")", "{", "System", ".", "arraycopy", "(", "cachedInfo", ",", "0", ",", "cachedInfo", "=", "new", "RawTypeBinding", "[", "length", "*", "2", "]", ",", "0", ",", "length", ")", ";", "this", ".", "uniqueRawTypeBindings", ".", "put", "(", "genericType", ",", "cachedInfo", ")", ";", "}", "RawTypeBinding", "rawType", "=", "new", "RawTypeBinding", "(", "genericType", ",", "enclosingType", ",", "this", ")", ";", "cachedInfo", "[", "index", "]", "=", "rawType", ";", "return", "rawType", ";", "}", "public", "WildcardBinding", "createWildcard", "(", "ReferenceBinding", "genericType", ",", "int", "rank", ",", "TypeBinding", "bound", ",", "TypeBinding", "[", "]", "otherBounds", ",", "int", "boundKind", ")", "{", "if", "(", "genericType", "==", "null", ")", "genericType", "=", "ReferenceBinding", ".", "LUB_GENERIC", ";", "WildcardBinding", "[", "]", "cachedInfo", "=", "(", "WildcardBinding", "[", "]", ")", "this", ".", "uniqueWildcardBindings", ".", "get", "(", "genericType", ")", ";", "boolean", "needToGrow", "=", "false", ";", "int", "index", "=", "0", ";", "if", "(", "cachedInfo", "!=", "null", ")", "{", "nextCachedType", ":", "for", "(", "int", "max", "=", "cachedInfo", ".", "length", ";", "index", "<", "max", ";", "index", "++", ")", "{", "WildcardBinding", "cachedType", "=", "cachedInfo", "[", "index", "]", ";", "if", "(", "cachedType", "==", "null", ")", "break", "nextCachedType", ";", "if", "(", "cachedType", ".", "genericType", "!=", "genericType", ")", "continue", "nextCachedType", ";", "if", "(", "cachedType", ".", "rank", "!=", "rank", ")", "continue", "nextCachedType", ";", "if", "(", "cachedType", ".", "boundKind", "!=", "boundKind", ")", "continue", "nextCachedType", ";", "if", "(", "cachedType", ".", "bound", "!=", "bound", ")", "continue", "nextCachedType", ";", "if", "(", "cachedType", ".", "otherBounds", "!=", "otherBounds", ")", "{", "int", "cachedLength", "=", "cachedType", ".", "otherBounds", "==", "null", "?", "0", ":", "cachedType", ".", "otherBounds", ".", "length", ";", "int", "length", "=", "otherBounds", "==", "null", "?", "0", ":", "otherBounds", ".", "length", ";", "if", "(", "cachedLength", "!=", "length", ")", "continue", "nextCachedType", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "length", ";", "j", "++", ")", "{", "if", "(", "cachedType", ".", "otherBounds", "[", "j", "]", "!=", "otherBounds", "[", "j", "]", ")", "continue", "nextCachedType", ";", "}", "}", "return", "cachedType", ";", "}", "needToGrow", "=", "true", ";", "}", "else", "{", "cachedInfo", "=", "new", "WildcardBinding", "[", "10", "]", ";", "this", ".", "uniqueWildcardBindings", ".", "put", "(", "genericType", ",", "cachedInfo", ")", ";", "}", "int", "length", "=", "cachedInfo", ".", "length", ";", "if", "(", "needToGrow", "&&", "index", "==", "length", ")", "{", "System", ".", "arraycopy", "(", "cachedInfo", ",", "0", ",", "cachedInfo", "=", "new", "WildcardBinding", "[", "length", "*", "2", "]", ",", "0", ",", "length", ")", ";", "this", ".", "uniqueWildcardBindings", ".", "put", "(", "genericType", ",", "cachedInfo", ")", ";", "}", "WildcardBinding", "wildcard", "=", "new", "WildcardBinding", "(", "genericType", ",", "rank", ",", "bound", ",", "otherBounds", ",", "boundKind", ",", "this", ")", ";", "cachedInfo", "[", "index", "]", "=", "wildcard", ";", "return", "wildcard", ";", "}", "public", "AccessRestriction", "getAccessRestriction", "(", "TypeBinding", "type", ")", "{", "return", "(", "AccessRestriction", ")", "this", ".", "accessRestrictions", ".", "get", "(", "type", ")", ";", "}", "public", "ReferenceBinding", "getCachedType", "(", "char", "[", "]", "[", "]", "compoundName", ")", "{", "if", "(", "compoundName", ".", "length", "==", "1", ")", "{", "if", "(", "this", ".", "defaultPackage", "==", "null", ")", "return", "null", ";", "return", "this", ".", "defaultPackage", ".", "getType0", "(", "compoundName", "[", "0", "]", ")", ";", "}", "PackageBinding", "packageBinding", "=", "getPackage0", "(", "compoundName", "[", "0", "]", ")", ";", "if", "(", "packageBinding", "==", "null", "||", "packageBinding", "==", "TheNotFoundPackage", ")", "return", "null", ";", "for", "(", "int", "i", "=", "1", ",", "packageLength", "=", "compoundName", ".", "length", "-", "1", ";", "i", "<", "packageLength", ";", "i", "++", ")", "if", "(", "(", "packageBinding", "=", "packageBinding", ".", "getPackage0", "(", "compoundName", "[", "i", "]", ")", ")", "==", "null", "||", "packageBinding", "==", "TheNotFoundPackage", ")", "return", "null", ";", "return", "packageBinding", ".", "getType0", "(", "compoundName", "[", "compoundName", ".", "length", "-", "1", "]", ")", ";", "}", "PackageBinding", "getPackage0", "(", "char", "[", "]", "name", ")", "{", "return", "this", ".", "knownPackages", ".", "get", "(", "name", ")", ";", "}", "public", "ReferenceBinding", "getResolvedType", "(", "char", "[", "]", "[", "]", "compoundName", ",", "Scope", "scope", ")", "{", "ReferenceBinding", "type", "=", "getType", "(", "compoundName", ")", ";", "if", "(", "type", "!=", "null", ")", "return", "type", ";", "this", ".", "problemReporter", ".", "isClassPathCorrect", "(", "compoundName", ",", "scope", "==", "null", "?", "this", ".", "unitBeingCompleted", ":", "scope", ".", "referenceCompilationUnit", "(", ")", ",", "this", ".", "missingClassFileLocation", ")", ";", "return", "createMissingType", "(", "null", ",", "compoundName", ")", ";", "}", "PackageBinding", "getTopLevelPackage", "(", "char", "[", "]", "name", ")", "{", "PackageBinding", "packageBinding", "=", "getPackage0", "(", "name", ")", ";", "if", "(", "packageBinding", "!=", "null", ")", "{", "if", "(", "packageBinding", "==", "TheNotFoundPackage", ")", "return", "null", ";", "return", "packageBinding", ";", "}", "if", "(", "this", ".", "nameEnvironment", ".", "isPackage", "(", "null", ",", "name", ")", ")", "{", "this", ".", "knownPackages", ".", "put", "(", "name", ",", "packageBinding", "=", "new", "PackageBinding", "(", "name", ",", "this", ")", ")", ";", "return", "packageBinding", ";", "}", "this", ".", "knownPackages", ".", "put", "(", "name", ",", "TheNotFoundPackage", ")", ";", "return", "null", ";", "}", "public", "ReferenceBinding", "getType", "(", "char", "[", "]", "[", "]", "compoundName", ")", "{", "ReferenceBinding", "referenceBinding", ";", "if", "(", "compoundName", ".", "length", "==", "1", ")", "{", "if", "(", "this", ".", "defaultPackage", "==", "null", ")", "return", "null", ";", "if", "(", "(", "referenceBinding", "=", "this", ".", "defaultPackage", ".", "getType0", "(", "compoundName", "[", "0", "]", ")", ")", "==", "null", ")", "{", "PackageBinding", "packageBinding", "=", "getPackage0", "(", "compoundName", "[", "0", "]", ")", ";", "if", "(", "packageBinding", "!=", "null", "&&", "packageBinding", "!=", "TheNotFoundPackage", ")", "return", "null", ";", "referenceBinding", "=", "askForType", "(", "this", ".", "defaultPackage", ",", "compoundName", "[", "0", "]", ")", ";", "}", "}", "else", "{", "PackageBinding", "packageBinding", "=", "getPackage0", "(", "compoundName", "[", "0", "]", ")", ";", "if", "(", "packageBinding", "==", "TheNotFoundPackage", ")", "return", "null", ";", "if", "(", "packageBinding", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "1", ",", "packageLength", "=", "compoundName", ".", "length", "-", "1", ";", "i", "<", "packageLength", ";", "i", "++", ")", "{", "if", "(", "(", "packageBinding", "=", "packageBinding", ".", "getPackage0", "(", "compoundName", "[", "i", "]", ")", ")", "==", "null", ")", "break", ";", "if", "(", "packageBinding", "==", "TheNotFoundPackage", ")", "return", "null", ";", "}", "}", "if", "(", "packageBinding", "==", "null", ")", "referenceBinding", "=", "askForType", "(", "compoundName", ")", ";", "else", "if", "(", "(", "referenceBinding", "=", "packageBinding", ".", "getType0", "(", "compoundName", "[", "compoundName", ".", "length", "-", "1", "]", ")", ")", "==", "null", ")", "referenceBinding", "=", "askForType", "(", "packageBinding", ",", "compoundName", "[", "compoundName", ".", "length", "-", "1", "]", ")", ";", "}", "if", "(", "referenceBinding", "==", "null", "||", "referenceBinding", "==", "TheNotFoundType", ")", "return", "null", ";", "referenceBinding", "=", "(", "ReferenceBinding", ")", "BinaryTypeBinding", ".", "resolveType", "(", "referenceBinding", ",", "this", ",", "false", ")", ";", "if", "(", "referenceBinding", ".", "isNestedType", "(", ")", ")", "return", "new", "ProblemReferenceBinding", "(", "compoundName", ",", "referenceBinding", ",", "InternalNameProvided", ")", ";", "return", "referenceBinding", ";", "}", "private", "TypeBinding", "[", "]", "getTypeArgumentsFromSignature", "(", "SignatureWrapper", "wrapper", ",", "TypeVariableBinding", "[", "]", "staticVariables", ",", "ReferenceBinding", "enclosingType", ",", "ReferenceBinding", "genericType", ",", "char", "[", "]", "[", "]", "[", "]", "missingTypeNames", ")", "{", "java", ".", "util", ".", "ArrayList", "args", "=", "new", "java", ".", "util", ".", "ArrayList", "(", "2", ")", ";", "int", "rank", "=", "0", ";", "do", "{", "args", ".", "add", "(", "getTypeFromVariantTypeSignature", "(", "wrapper", ",", "staticVariables", ",", "enclosingType", ",", "genericType", ",", "rank", "++", ",", "missingTypeNames", ")", ")", ";", "}", "while", "(", "wrapper", ".", "signature", "[", "wrapper", ".", "start", "]", "!=", "'>'", ")", ";", "wrapper", ".", "start", "++", ";", "TypeBinding", "[", "]", "typeArguments", "=", "new", "TypeBinding", "[", "args", ".", "size", "(", ")", "]", ";", "args", ".", "toArray", "(", "typeArguments", ")", ";", "return", "typeArguments", ";", "}", "private", "ReferenceBinding", "getTypeFromCompoundName", "(", "char", "[", "]", "[", "]", "compoundName", ",", "boolean", "isParameterized", ",", "boolean", "wasMissingType", ")", "{", "ReferenceBinding", "binding", "=", "getCachedType", "(", "compoundName", ")", ";", "if", "(", "binding", "==", "null", ")", "{", "PackageBinding", "packageBinding", "=", "computePackageFrom", "(", "compoundName", ",", "false", ")", ";", "binding", "=", "new", "UnresolvedReferenceBinding", "(", "compoundName", ",", "packageBinding", ")", ";", "if", "(", "wasMissingType", ")", "{", "binding", ".", "tagBits", "|=", "TagBits", ".", "HasMissingType", ";", "}", "packageBinding", ".", "addType", "(", "binding", ")", ";", "}", "else", "if", "(", "binding", "==", "TheNotFoundType", ")", "{", "this", ".", "problemReporter", ".", "isClassPathCorrect", "(", "compoundName", ",", "this", ".", "unitBeingCompleted", ",", "this", ".", "missingClassFileLocation", ")", ";", "binding", "=", "createMissingType", "(", "null", ",", "compoundName", ")", ";", "}", "else", "if", "(", "!", "isParameterized", ")", "{", "binding", "=", "(", "ReferenceBinding", ")", "convertUnresolvedBinaryToRawType", "(", "binding", ")", ";", "}", "return", "binding", ";", "}", "ReferenceBinding", "getTypeFromConstantPoolName", "(", "char", "[", "]", "signature", ",", "int", "start", ",", "int", "end", ",", "boolean", "isParameterized", ",", "char", "[", "]", "[", "]", "[", "]", "missingTypeNames", ")", "{", "if", "(", "end", "==", "-", "1", ")", "end", "=", "signature", ".", "length", ";", "char", "[", "]", "[", "]", "compoundName", "=", "CharOperation", ".", "splitOn", "(", "'/'", ",", "signature", ",", "start", ",", "end", ")", ";", "boolean", "wasMissingType", "=", "false", ";", "if", "(", "missingTypeNames", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "missingTypeNames", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "if", "(", "CharOperation", ".", "equals", "(", "compoundName", ",", "missingTypeNames", "[", "i", "]", ")", ")", "{", "wasMissingType", "=", "true", ";", "break", ";", "}", "}", "}", "return", "getTypeFromCompoundName", "(", "compoundName", ",", "isParameterized", ",", "wasMissingType", ")", ";", "}", "TypeBinding", "getTypeFromSignature", "(", "char", "[", "]", "signature", ",", "int", "start", ",", "int", "end", ",", "boolean", "isParameterized", ",", "TypeBinding", "enclosingType", ",", "char", "[", "]", "[", "]", "[", "]", "missingTypeNames", ")", "{", "int", "dimension", "=", "0", ";", "while", "(", "signature", "[", "start", "]", "==", "'['", ")", "{", "start", "++", ";", "dimension", "++", ";", "}", "if", "(", "end", "==", "-", "1", ")", "end", "=", "signature", ".", "length", "-", "1", ";", "TypeBinding", "binding", "=", "null", ";", "if", "(", "start", "==", "end", ")", "{", "switch", "(", "signature", "[", "start", "]", ")", "{", "case", "'I'", ":", "binding", "=", "TypeBinding", ".", "INT", ";", "break", ";", "case", "'Z'", ":", "binding", "=", "TypeBinding", ".", "BOOLEAN", ";", "break", ";", "case", "'V'", ":", "binding", "=", "TypeBinding", ".", "VOID", ";", "break", ";", "case", "'C'", ":", "binding", "=", "TypeBinding", ".", "CHAR", ";", "break", ";", "case", "'D'", ":", "binding", "=", "TypeBinding", ".", "DOUBLE", ";", "break", ";", "case", "'B'", ":", "binding", "=", "TypeBinding", ".", "BYTE", ";", "break", ";", "case", "'F'", ":", "binding", "=", "TypeBinding", ".", "FLOAT", ";", "break", ";", "case", "'J'", ":", "binding", "=", "TypeBinding", ".", "LONG", ";", "break", ";", "case", "'S'", ":", "binding", "=", "TypeBinding", ".", "SHORT", ";", "break", ";", "default", ":", "this", ".", "problemReporter", ".", "corruptedSignature", "(", "enclosingType", ",", "signature", ",", "start", ")", ";", "}", "}", "else", "{", "binding", "=", "getTypeFromConstantPoolName", "(", "signature", ",", "start", "+", "1", ",", "end", ",", "isParameterized", ",", "missingTypeNames", ")", ";", "}", "if", "(", "dimension", "==", "0", ")", "return", "binding", ";", "return", "createArrayType", "(", "binding", ",", "dimension", ")", ";", "}", "public", "TypeBinding", "getTypeFromTypeSignature", "(", "SignatureWrapper", "wrapper", ",", "TypeVariableBinding", "[", "]", "staticVariables", ",", "ReferenceBinding", "enclosingType", ",", "char", "[", "]", "[", "]", "[", "]", "missingTypeNames", ")", "{", "int", "dimension", "=", "0", ";", "while", "(", "wrapper", ".", "signature", "[", "wrapper", ".", "start", "]", "==", "'['", ")", "{", "wrapper", ".", "start", "++", ";", "dimension", "++", ";", "}", "if", "(", "wrapper", ".", "signature", "[", "wrapper", ".", "start", "]", "==", "'T'", ")", "{", "int", "varStart", "=", "wrapper", ".", "start", "+", "1", ";", "int", "varEnd", "=", "wrapper", ".", "computeEnd", "(", ")", ";", "for", "(", "int", "i", "=", "staticVariables", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "CharOperation", ".", "equals", "(", "staticVariables", "[", "i", "]", ".", "sourceName", ",", "wrapper", ".", "signature", ",", "varStart", ",", "varEnd", ")", ")", "return", "dimension", "==", "0", "?", "(", "TypeBinding", ")", "staticVariables", "[", "i", "]", ":", "createArrayType", "(", "staticVariables", "[", "i", "]", ",", "dimension", ")", ";", "ReferenceBinding", "initialType", "=", "enclosingType", ";", "do", "{", "TypeVariableBinding", "[", "]", "enclosingTypeVariables", ";", "if", "(", "enclosingType", "instanceof", "BinaryTypeBinding", ")", "{", "enclosingTypeVariables", "=", "(", "(", "BinaryTypeBinding", ")", "enclosingType", ")", ".", "typeVariables", ";", "}", "else", "{", "enclosingTypeVariables", "=", "enclosingType", ".", "typeVariables", "(", ")", ";", "}", "for", "(", "int", "i", "=", "enclosingTypeVariables", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "CharOperation", ".", "equals", "(", "enclosingTypeVariables", "[", "i", "]", ".", "sourceName", ",", "wrapper", ".", "signature", ",", "varStart", ",", "varEnd", ")", ")", "return", "dimension", "==", "0", "?", "(", "TypeBinding", ")", "enclosingTypeVariables", "[", "i", "]", ":", "createArrayType", "(", "enclosingTypeVariables", "[", "i", "]", ",", "dimension", ")", ";", "}", "while", "(", "(", "enclosingType", "=", "enclosingType", ".", "enclosingType", "(", ")", ")", "!=", "null", ")", ";", "this", ".", "problemReporter", ".", "undefinedTypeVariableSignature", "(", "CharOperation", ".", "subarray", "(", "wrapper", ".", "signature", ",", "varStart", ",", "varEnd", ")", ",", "initialType", ")", ";", "return", "null", ";", "}", "boolean", "isParameterized", ";", "TypeBinding", "type", "=", "getTypeFromSignature", "(", "wrapper", ".", "signature", ",", "wrapper", ".", "start", ",", "wrapper", ".", "computeEnd", "(", ")", ",", "isParameterized", "=", "(", "wrapper", ".", "end", "==", "wrapper", ".", "bracket", ")", ",", "enclosingType", ",", "missingTypeNames", ")", ";", "if", "(", "!", "isParameterized", ")", "return", "dimension", "==", "0", "?", "type", ":", "createArrayType", "(", "type", ",", "dimension", ")", ";", "ReferenceBinding", "actualType", "=", "(", "ReferenceBinding", ")", "type", ";", "if", "(", "actualType", "instanceof", "UnresolvedReferenceBinding", ")", "if", "(", "CharOperation", ".", "indexOf", "(", "'$'", ",", "actualType", ".", "compoundName", "[", "actualType", ".", "compoundName", ".", "length", "-", "1", "]", ")", ">", "0", ")", "actualType", "=", "(", "ReferenceBinding", ")", "BinaryTypeBinding", ".", "resolveType", "(", "actualType", ",", "this", ",", "false", ")", ";", "ReferenceBinding", "actualEnclosing", "=", "actualType", ".", "enclosingType", "(", ")", ";", "if", "(", "actualEnclosing", "!=", "null", ")", "{", "actualEnclosing", "=", "(", "ReferenceBinding", ")", "convertToRawType", "(", "actualEnclosing", ",", "false", ")", ";", "}", "TypeBinding", "[", "]", "typeArguments", "=", "getTypeArgumentsFromSignature", "(", "wrapper", ",", "staticVariables", ",", "enclosingType", ",", "actualType", ",", "missingTypeNames", ")", ";", "ParameterizedTypeBinding", "parameterizedType", "=", "createParameterizedType", "(", "actualType", ",", "typeArguments", ",", "actualEnclosing", ")", ";", "while", "(", "wrapper", ".", "signature", "[", "wrapper", ".", "start", "]", "==", "'.'", ")", "{", "wrapper", ".", "start", "++", ";", "int", "memberStart", "=", "wrapper", ".", "start", ";", "char", "[", "]", "memberName", "=", "wrapper", ".", "nextWord", "(", ")", ";", "BinaryTypeBinding", ".", "resolveType", "(", "parameterizedType", ",", "this", ",", "false", ")", ";", "ReferenceBinding", "memberType", "=", "parameterizedType", ".", "genericType", "(", ")", ".", "getMemberType", "(", "memberName", ")", ";", "if", "(", "memberType", "==", "null", ")", "this", ".", "problemReporter", ".", "corruptedSignature", "(", "parameterizedType", ",", "wrapper", ".", "signature", ",", "memberStart", ")", ";", "if", "(", "wrapper", ".", "signature", "[", "wrapper", ".", "start", "]", "==", "'<'", ")", "{", "wrapper", ".", "start", "++", ";", "typeArguments", "=", "getTypeArgumentsFromSignature", "(", "wrapper", ",", "staticVariables", ",", "enclosingType", ",", "memberType", ",", "missingTypeNames", ")", ";", "}", "else", "{", "typeArguments", "=", "null", ";", "}", "parameterizedType", "=", "createParameterizedType", "(", "memberType", ",", "typeArguments", ",", "parameterizedType", ")", ";", "}", "wrapper", ".", "start", "++", ";", "return", "dimension", "==", "0", "?", "(", "TypeBinding", ")", "parameterizedType", ":", "createArrayType", "(", "parameterizedType", ",", "dimension", ")", ";", "}", "TypeBinding", "getTypeFromVariantTypeSignature", "(", "SignatureWrapper", "wrapper", ",", "TypeVariableBinding", "[", "]", "staticVariables", ",", "ReferenceBinding", "enclosingType", ",", "ReferenceBinding", "genericType", ",", "int", "rank", ",", "char", "[", "]", "[", "]", "[", "]", "missingTypeNames", ")", "{", "switch", "(", "wrapper", ".", "signature", "[", "wrapper", ".", "start", "]", ")", "{", "case", "'-'", ":", "wrapper", ".", "start", "++", ";", "TypeBinding", "bound", "=", "getTypeFromTypeSignature", "(", "wrapper", ",", "staticVariables", ",", "enclosingType", ",", "missingTypeNames", ")", ";", "return", "createWildcard", "(", "genericType", ",", "rank", ",", "bound", ",", "null", ",", "Wildcard", ".", "SUPER", ")", ";", "case", "'+'", ":", "wrapper", ".", "start", "++", ";", "bound", "=", "getTypeFromTypeSignature", "(", "wrapper", ",", "staticVariables", ",", "enclosingType", ",", "missingTypeNames", ")", ";", "return", "createWildcard", "(", "genericType", ",", "rank", ",", "bound", ",", "null", ",", "Wildcard", ".", "EXTENDS", ")", ";", "case", "'*'", ":", "wrapper", ".", "start", "++", ";", "return", "createWildcard", "(", "genericType", ",", "rank", ",", "null", ",", "null", ",", "Wildcard", ".", "UNBOUND", ")", ";", "default", ":", "return", "getTypeFromTypeSignature", "(", "wrapper", ",", "staticVariables", ",", "enclosingType", ",", "missingTypeNames", ")", ";", "}", "}", "boolean", "isMissingType", "(", "char", "[", "]", "typeName", ")", "{", "for", "(", "int", "i", "=", "this", ".", "missingTypes", "==", "null", "?", "0", ":", "this", ".", "missingTypes", ".", "size", "(", ")", ";", "--", "i", ">=", "0", ";", ")", "{", "MissingTypeBinding", "missingType", "=", "(", "MissingTypeBinding", ")", "this", ".", "missingTypes", ".", "get", "(", "i", ")", ";", "if", "(", "CharOperation", ".", "equals", "(", "missingType", ".", "sourceName", ",", "typeName", ")", ")", "return", "true", ";", "}", "return", "false", ";", "}", "boolean", "isPackage", "(", "char", "[", "]", "[", "]", "compoundName", ",", "char", "[", "]", "name", ")", "{", "if", "(", "compoundName", "==", "null", "||", "compoundName", ".", "length", "==", "0", ")", "return", "this", ".", "nameEnvironment", ".", "isPackage", "(", "null", ",", "name", ")", ";", "return", "this", ".", "nameEnvironment", ".", "isPackage", "(", "compoundName", ",", "name", ")", ";", "}", "public", "MethodVerifier", "methodVerifier", "(", ")", "{", "if", "(", "this", ".", "verifier", "==", "null", ")", "this", ".", "verifier", "=", "newMethodVerifier", "(", ")", ";", "return", "this", ".", "verifier", ";", "}", "public", "MethodVerifier", "newMethodVerifier", "(", ")", "{", "return", "this", ".", "globalOptions", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", "?", "new", "MethodVerifier", "(", "this", ")", ":", "new", "MethodVerifier15", "(", "this", ")", ";", "}", "public", "void", "releaseClassFiles", "(", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ClassFile", "[", "]", "classFiles", ")", "{", "for", "(", "int", "i", "=", "0", ",", "fileCount", "=", "classFiles", ".", "length", ";", "i", "<", "fileCount", ";", "i", "++", ")", "this", ".", "classFilePool", ".", "release", "(", "classFiles", "[", "i", "]", ")", ";", "}", "public", "void", "reset", "(", ")", "{", "this", ".", "defaultPackage", "=", "new", "PackageBinding", "(", "this", ")", ";", "this", ".", "defaultImports", "=", "null", ";", "this", ".", "knownPackages", "=", "new", "HashtableOfPackage", "(", ")", ";", "this", ".", "accessRestrictions", "=", "new", "HashMap", "(", "3", ")", ";", "this", ".", "verifier", "=", "null", ";", "for", "(", "int", "i", "=", "this", ".", "uniqueArrayBindings", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "{", "ArrayBinding", "[", "]", "arrayBindings", "=", "this", ".", "uniqueArrayBindings", "[", "i", "]", ";", "if", "(", "arrayBindings", "!=", "null", ")", "for", "(", "int", "j", "=", "arrayBindings", ".", "length", ";", "--", "j", ">=", "0", ";", ")", "arrayBindings", "[", "j", "]", "=", "null", ";", "}", "this", ".", "uniqueParameterizedTypeBindings", "=", "new", "SimpleLookupTable", "(", "3", ")", ";", "this", ".", "uniqueRawTypeBindings", "=", "new", "SimpleLookupTable", "(", "3", ")", ";", "this", ".", "uniqueWildcardBindings", "=", "new", "SimpleLookupTable", "(", "3", ")", ";", "this", ".", "uniqueParameterizedGenericMethodBindings", "=", "new", "SimpleLookupTable", "(", "3", ")", ";", "this", ".", "uniqueGetClassMethodBinding", "=", "null", ";", "this", ".", "missingTypes", "=", "null", ";", "for", "(", "int", "i", "=", "this", ".", "units", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "this", ".", "units", "[", "i", "]", "=", "null", ";", "this", ".", "lastUnitIndex", "=", "-", "1", ";", "this", ".", "lastCompletedUnitIndex", "=", "-", "1", ";", "this", ".", "unitBeingCompleted", "=", "null", ";", "this", ".", "classFilePool", ".", "reset", "(", ")", ";", "}", "public", "void", "setAccessRestriction", "(", "ReferenceBinding", "type", ",", "AccessRestriction", "accessRestriction", ")", "{", "if", "(", "accessRestriction", "==", "null", ")", "return", ";", "type", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccRestrictedAccess", ";", "this", ".", "accessRestrictions", ".", "put", "(", "type", ",", "accessRestriction", ")", ";", "}", "void", "updateCaches", "(", "UnresolvedReferenceBinding", "unresolvedType", ",", "ReferenceBinding", "resolvedType", ")", "{", "if", "(", "this", ".", "uniqueParameterizedTypeBindings", ".", "get", "(", "unresolvedType", ")", "!=", "null", ")", "{", "Object", "[", "]", "keys", "=", "this", ".", "uniqueParameterizedTypeBindings", ".", "keyTable", ";", "for", "(", "int", "i", "=", "0", ",", "l", "=", "keys", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "{", "if", "(", "keys", "[", "i", "]", "==", "unresolvedType", ")", "{", "keys", "[", "i", "]", "=", "resolvedType", ";", "break", ";", "}", "}", "}", "if", "(", "this", ".", "uniqueRawTypeBindings", ".", "get", "(", "unresolvedType", ")", "!=", "null", ")", "{", "Object", "[", "]", "keys", "=", "this", ".", "uniqueRawTypeBindings", ".", "keyTable", ";", "for", "(", "int", "i", "=", "0", ",", "l", "=", "keys", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "{", "if", "(", "keys", "[", "i", "]", "==", "unresolvedType", ")", "{", "keys", "[", "i", "]", "=", "resolvedType", ";", "break", ";", "}", "}", "}", "if", "(", "this", ".", "uniqueWildcardBindings", ".", "get", "(", "unresolvedType", ")", "!=", "null", ")", "{", "Object", "[", "]", "keys", "=", "this", ".", "uniqueWildcardBindings", ".", "keyTable", ";", "for", "(", "int", "i", "=", "0", ",", "l", "=", "keys", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "{", "if", "(", "keys", "[", "i", "]", "==", "unresolvedType", ")", "{", "keys", "[", "i", "]", "=", "resolvedType", ";", "break", ";", "}", "}", "}", "}", "}", "</s>" ]
5,606
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "java", ".", "util", ".", "HashMap", ";", "import", "java", ".", "util", ".", "Map", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "IProblem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "AbstractMethodDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "AbstractVariableDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "FieldDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "QualifiedAllocationExpression", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeParameter", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ".", "AccessRestriction", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "AbortCompilation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "ProblemReporter", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "HashtableOfObject", ";", "public", "class", "ClassScope", "extends", "Scope", "{", "public", "TypeDeclaration", "referenceContext", ";", "public", "TypeReference", "superTypeReference", ";", "java", ".", "util", ".", "ArrayList", "deferredBoundChecks", ";", "public", "ClassScope", "(", "Scope", "parent", ",", "TypeDeclaration", "context", ")", "{", "super", "(", "Scope", ".", "CLASS_SCOPE", ",", "parent", ")", ";", "this", ".", "referenceContext", "=", "context", ";", "this", ".", "deferredBoundChecks", "=", "null", ";", "}", "void", "buildAnonymousTypeBinding", "(", "SourceTypeBinding", "enclosingType", ",", "ReferenceBinding", "supertype", ")", "{", "LocalTypeBinding", "anonymousType", "=", "buildLocalType", "(", "enclosingType", ",", "supertype", ",", "enclosingType", ".", "fPackage", ")", ";", "anonymousType", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccLocallyUsed", ";", "if", "(", "supertype", ".", "isInterface", "(", ")", ")", "{", "anonymousType", ".", "superclass", "=", "getJavaLangObject", "(", ")", ";", "anonymousType", ".", "superInterfaces", "=", "new", "ReferenceBinding", "[", "]", "{", "supertype", "}", ";", "TypeReference", "typeReference", "=", "this", ".", "referenceContext", ".", "allocation", ".", "type", ";", "if", "(", "typeReference", "!=", "null", ")", "{", "if", "(", "(", "supertype", ".", "tagBits", "&", "TagBits", ".", "HasDirectWildcard", ")", "!=", "0", ")", "{", "problemReporter", "(", ")", ".", "superTypeCannotUseWildcard", "(", "anonymousType", ",", "typeReference", ",", "supertype", ")", ";", "anonymousType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "anonymousType", ".", "superInterfaces", "=", "Binding", ".", "NO_SUPERINTERFACES", ";", "}", "}", "}", "else", "{", "anonymousType", ".", "superclass", "=", "supertype", ";", "anonymousType", ".", "superInterfaces", "=", "Binding", ".", "NO_SUPERINTERFACES", ";", "TypeReference", "typeReference", "=", "this", ".", "referenceContext", ".", "allocation", ".", "type", ";", "if", "(", "typeReference", "!=", "null", ")", "{", "if", "(", "supertype", ".", "erasure", "(", ")", ".", "id", "==", "TypeIds", ".", "T_JavaLangEnum", ")", "{", "problemReporter", "(", ")", ".", "cannotExtendEnum", "(", "anonymousType", ",", "typeReference", ",", "supertype", ")", ";", "anonymousType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "anonymousType", ".", "superclass", "=", "getJavaLangObject", "(", ")", ";", "}", "else", "if", "(", "supertype", ".", "isFinal", "(", ")", ")", "{", "problemReporter", "(", ")", ".", "anonymousClassCannotExtendFinalClass", "(", "typeReference", ",", "supertype", ")", ";", "anonymousType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "anonymousType", ".", "superclass", "=", "getJavaLangObject", "(", ")", ";", "}", "else", "if", "(", "(", "supertype", ".", "tagBits", "&", "TagBits", ".", "HasDirectWildcard", ")", "!=", "0", ")", "{", "problemReporter", "(", ")", ".", "superTypeCannotUseWildcard", "(", "anonymousType", ",", "typeReference", ",", "supertype", ")", ";", "anonymousType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "anonymousType", ".", "superclass", "=", "getJavaLangObject", "(", ")", ";", "}", "}", "}", "connectMemberTypes", "(", ")", ";", "buildFieldsAndMethods", "(", ")", ";", "anonymousType", ".", "faultInTypesForFieldsAndMethods", "(", ")", ";", "anonymousType", ".", "verifyMethods", "(", "environment", "(", ")", ".", "methodVerifier", "(", ")", ")", ";", "}", "void", "buildFields", "(", ")", "{", "SourceTypeBinding", "sourceType", "=", "this", ".", "referenceContext", ".", "binding", ";", "if", "(", "sourceType", ".", "areFieldsInitialized", "(", ")", ")", "return", ";", "if", "(", "this", ".", "referenceContext", ".", "fields", "==", "null", ")", "{", "sourceType", ".", "setFields", "(", "Binding", ".", "NO_FIELDS", ")", ";", "return", ";", "}", "FieldDeclaration", "[", "]", "fields", "=", "this", ".", "referenceContext", ".", "fields", ";", "int", "size", "=", "fields", ".", "length", ";", "int", "count", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "++", ")", "{", "switch", "(", "fields", "[", "i", "]", ".", "getKind", "(", ")", ")", "{", "case", "AbstractVariableDeclaration", ".", "FIELD", ":", "case", "AbstractVariableDeclaration", ".", "ENUM_CONSTANT", ":", "count", "++", ";", "}", "}", "FieldBinding", "[", "]", "fieldBindings", "=", "new", "FieldBinding", "[", "count", "]", ";", "HashtableOfObject", "knownFieldNames", "=", "new", "HashtableOfObject", "(", "count", ")", ";", "count", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "++", ")", "{", "FieldDeclaration", "field", "=", "fields", "[", "i", "]", ";", "if", "(", "field", ".", "getKind", "(", ")", "==", "AbstractVariableDeclaration", ".", "INITIALIZER", ")", "{", "if", "(", "sourceType", ".", "isInterface", "(", ")", ")", "problemReporter", "(", ")", ".", "interfaceCannotHaveInitializers", "(", "sourceType", ",", "field", ")", ";", "}", "else", "{", "FieldBinding", "fieldBinding", "=", "new", "FieldBinding", "(", "field", ",", "null", ",", "field", ".", "modifiers", "|", "ExtraCompilerModifiers", ".", "AccUnresolved", ",", "sourceType", ")", ";", "fieldBinding", ".", "id", "=", "count", ";", "checkAndSetModifiersForField", "(", "fieldBinding", ",", "field", ")", ";", "if", "(", "knownFieldNames", ".", "containsKey", "(", "field", ".", "name", ")", ")", "{", "FieldBinding", "previousBinding", "=", "(", "FieldBinding", ")", "knownFieldNames", ".", "get", "(", "field", ".", "name", ")", ";", "if", "(", "previousBinding", "!=", "null", ")", "{", "for", "(", "int", "f", "=", "0", ";", "f", "<", "i", ";", "f", "++", ")", "{", "FieldDeclaration", "previousField", "=", "fields", "[", "f", "]", ";", "if", "(", "previousField", ".", "binding", "==", "previousBinding", ")", "{", "problemReporter", "(", ")", ".", "duplicateFieldInType", "(", "sourceType", ",", "previousField", ")", ";", "break", ";", "}", "}", "}", "knownFieldNames", ".", "put", "(", "field", ".", "name", ",", "null", ")", ";", "problemReporter", "(", ")", ".", "duplicateFieldInType", "(", "sourceType", ",", "field", ")", ";", "field", ".", "binding", "=", "null", ";", "}", "else", "{", "knownFieldNames", ".", "put", "(", "field", ".", "name", ",", "fieldBinding", ")", ";", "fieldBindings", "[", "count", "++", "]", "=", "fieldBinding", ";", "}", "}", "}", "if", "(", "count", "!=", "fieldBindings", ".", "length", ")", "System", ".", "arraycopy", "(", "fieldBindings", ",", "0", ",", "fieldBindings", "=", "new", "FieldBinding", "[", "count", "]", ",", "0", ",", "count", ")", ";", "sourceType", ".", "tagBits", "&=", "~", "(", "TagBits", ".", "AreFieldsSorted", "|", "TagBits", ".", "AreFieldsComplete", ")", ";", "sourceType", ".", "setFields", "(", "fieldBindings", ")", ";", "}", "void", "buildFieldsAndMethods", "(", ")", "{", "buildFields", "(", ")", ";", "buildMethods", "(", ")", ";", "SourceTypeBinding", "sourceType", "=", "this", ".", "referenceContext", ".", "binding", ";", "if", "(", "sourceType", ".", "isMemberType", "(", ")", "&&", "!", "sourceType", ".", "isLocalType", "(", ")", ")", "(", "(", "MemberTypeBinding", ")", "sourceType", ")", ".", "checkSyntheticArgsAndFields", "(", ")", ";", "ReferenceBinding", "[", "]", "memberTypes", "=", "sourceType", ".", "memberTypes", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "memberTypes", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "(", "(", "SourceTypeBinding", ")", "memberTypes", "[", "i", "]", ")", ".", "scope", ".", "buildFieldsAndMethods", "(", ")", ";", "}", "private", "LocalTypeBinding", "buildLocalType", "(", "SourceTypeBinding", "enclosingType", ",", "ReferenceBinding", "anonymousOriginalSuperType", ",", "PackageBinding", "packageBinding", ")", "{", "this", ".", "referenceContext", ".", "scope", "=", "this", ";", "this", ".", "referenceContext", ".", "staticInitializerScope", "=", "new", "MethodScope", "(", "this", ",", "this", ".", "referenceContext", ",", "true", ")", ";", "this", ".", "referenceContext", ".", "initializerScope", "=", "new", "MethodScope", "(", "this", ",", "this", ".", "referenceContext", ",", "false", ")", ";", "LocalTypeBinding", "localType", "=", "new", "LocalTypeBinding", "(", "this", ",", "enclosingType", ",", "innermostSwitchCase", "(", ")", ",", "anonymousOriginalSuperType", ")", ";", "this", ".", "referenceContext", ".", "binding", "=", "localType", ";", "checkAndSetModifiers", "(", ")", ";", "buildTypeVariables", "(", ")", ";", "ReferenceBinding", "[", "]", "memberTypeBindings", "=", "Binding", ".", "NO_MEMBER_TYPES", ";", "if", "(", "this", ".", "referenceContext", ".", "memberTypes", "!=", "null", ")", "{", "int", "size", "=", "this", ".", "referenceContext", ".", "memberTypes", ".", "length", ";", "memberTypeBindings", "=", "new", "ReferenceBinding", "[", "size", "]", ";", "int", "count", "=", "0", ";", "nextMember", ":", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "++", ")", "{", "TypeDeclaration", "memberContext", "=", "this", ".", "referenceContext", ".", "memberTypes", "[", "i", "]", ";", "switch", "(", "TypeDeclaration", ".", "kind", "(", "memberContext", ".", "modifiers", ")", ")", "{", "case", "TypeDeclaration", ".", "INTERFACE_DECL", ":", "case", "TypeDeclaration", ".", "ANNOTATION_TYPE_DECL", ":", "problemReporter", "(", ")", ".", "illegalLocalTypeDeclaration", "(", "memberContext", ")", ";", "continue", "nextMember", ";", "}", "ReferenceBinding", "type", "=", "localType", ";", "do", "{", "if", "(", "CharOperation", ".", "equals", "(", "type", ".", "sourceName", ",", "memberContext", ".", "name", ")", ")", "{", "problemReporter", "(", ")", ".", "typeCollidesWithEnclosingType", "(", "memberContext", ")", ";", "continue", "nextMember", ";", "}", "type", "=", "type", ".", "enclosingType", "(", ")", ";", "}", "while", "(", "type", "!=", "null", ")", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "i", ";", "j", "++", ")", "{", "if", "(", "CharOperation", ".", "equals", "(", "this", ".", "referenceContext", ".", "memberTypes", "[", "j", "]", ".", "name", ",", "memberContext", ".", "name", ")", ")", "{", "problemReporter", "(", ")", ".", "duplicateNestedType", "(", "memberContext", ")", ";", "continue", "nextMember", ";", "}", "}", "ClassScope", "memberScope", "=", "new", "ClassScope", "(", "this", ",", "this", ".", "referenceContext", ".", "memberTypes", "[", "i", "]", ")", ";", "LocalTypeBinding", "memberBinding", "=", "memberScope", ".", "buildLocalType", "(", "localType", ",", "null", ",", "packageBinding", ")", ";", "memberBinding", ".", "setAsMemberType", "(", ")", ";", "memberTypeBindings", "[", "count", "++", "]", "=", "memberBinding", ";", "}", "if", "(", "count", "!=", "size", ")", "System", ".", "arraycopy", "(", "memberTypeBindings", ",", "0", ",", "memberTypeBindings", "=", "new", "ReferenceBinding", "[", "count", "]", ",", "0", ",", "count", ")", ";", "}", "localType", ".", "memberTypes", "=", "memberTypeBindings", ";", "return", "localType", ";", "}", "void", "buildLocalTypeBinding", "(", "SourceTypeBinding", "enclosingType", ")", "{", "LocalTypeBinding", "localType", "=", "buildLocalType", "(", "enclosingType", ",", "null", ",", "enclosingType", ".", "fPackage", ")", ";", "connectTypeHierarchy", "(", ")", ";", "if", "(", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "checkParameterizedTypeBounds", "(", ")", ";", "checkParameterizedSuperTypeCollisions", "(", ")", ";", "}", "buildFieldsAndMethods", "(", ")", ";", "localType", ".", "faultInTypesForFieldsAndMethods", "(", ")", ";", "this", ".", "referenceContext", ".", "binding", ".", "verifyMethods", "(", "environment", "(", ")", ".", "methodVerifier", "(", ")", ")", ";", "}", "private", "void", "buildMemberTypes", "(", "AccessRestriction", "accessRestriction", ")", "{", "SourceTypeBinding", "sourceType", "=", "this", ".", "referenceContext", ".", "binding", ";", "ReferenceBinding", "[", "]", "memberTypeBindings", "=", "Binding", ".", "NO_MEMBER_TYPES", ";", "if", "(", "this", ".", "referenceContext", ".", "memberTypes", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "referenceContext", ".", "memberTypes", ".", "length", ";", "memberTypeBindings", "=", "new", "ReferenceBinding", "[", "length", "]", ";", "int", "count", "=", "0", ";", "nextMember", ":", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeDeclaration", "memberContext", "=", "this", ".", "referenceContext", ".", "memberTypes", "[", "i", "]", ";", "switch", "(", "TypeDeclaration", ".", "kind", "(", "memberContext", ".", "modifiers", ")", ")", "{", "case", "TypeDeclaration", ".", "INTERFACE_DECL", ":", "case", "TypeDeclaration", ".", "ANNOTATION_TYPE_DECL", ":", "if", "(", "sourceType", ".", "isNestedType", "(", ")", "&&", "sourceType", ".", "isClass", "(", ")", "&&", "!", "sourceType", ".", "isStatic", "(", ")", ")", "{", "problemReporter", "(", ")", ".", "illegalLocalTypeDeclaration", "(", "memberContext", ")", ";", "continue", "nextMember", ";", "}", "break", ";", "}", "ReferenceBinding", "type", "=", "sourceType", ";", "do", "{", "if", "(", "CharOperation", ".", "equals", "(", "type", ".", "sourceName", ",", "memberContext", ".", "name", ")", ")", "{", "problemReporter", "(", ")", ".", "typeCollidesWithEnclosingType", "(", "memberContext", ")", ";", "continue", "nextMember", ";", "}", "type", "=", "type", ".", "enclosingType", "(", ")", ";", "}", "while", "(", "type", "!=", "null", ")", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "i", ";", "j", "++", ")", "{", "if", "(", "CharOperation", ".", "equals", "(", "this", ".", "referenceContext", ".", "memberTypes", "[", "j", "]", ".", "name", ",", "memberContext", ".", "name", ")", ")", "{", "problemReporter", "(", ")", ".", "duplicateNestedType", "(", "memberContext", ")", ";", "continue", "nextMember", ";", "}", "}", "ClassScope", "memberScope", "=", "buildClassScope", "(", "this", ",", "memberContext", ")", ";", "memberTypeBindings", "[", "count", "++", "]", "=", "memberScope", ".", "buildType", "(", "sourceType", ",", "sourceType", ".", "fPackage", ",", "accessRestriction", ")", ";", "}", "if", "(", "count", "!=", "length", ")", "System", ".", "arraycopy", "(", "memberTypeBindings", ",", "0", ",", "memberTypeBindings", "=", "new", "ReferenceBinding", "[", "count", "]", ",", "0", ",", "count", ")", ";", "}", "sourceType", ".", "memberTypes", "=", "memberTypeBindings", ";", "}", "protected", "ClassScope", "buildClassScope", "(", "Scope", "parent", ",", "TypeDeclaration", "typeDecl", ")", "{", "return", "new", "ClassScope", "(", "parent", ",", "typeDecl", ")", ";", "}", "void", "buildMethods", "(", ")", "{", "SourceTypeBinding", "sourceType", "=", "this", ".", "referenceContext", ".", "binding", ";", "if", "(", "sourceType", ".", "areMethodsInitialized", "(", ")", ")", "return", ";", "boolean", "isEnum", "=", "TypeDeclaration", ".", "kind", "(", "this", ".", "referenceContext", ".", "modifiers", ")", "==", "TypeDeclaration", ".", "ENUM_DECL", ";", "if", "(", "this", ".", "referenceContext", ".", "methods", "==", "null", "&&", "!", "isEnum", ")", "{", "this", ".", "referenceContext", ".", "binding", ".", "setMethods", "(", "Binding", ".", "NO_METHODS", ")", ";", "return", ";", "}", "AbstractMethodDeclaration", "[", "]", "methods", "=", "this", ".", "referenceContext", ".", "methods", ";", "int", "size", "=", "methods", "==", "null", "?", "0", ":", "methods", ".", "length", ";", "int", "clinitIndex", "=", "-", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "++", ")", "{", "if", "(", "methods", "[", "i", "]", ".", "isClinit", "(", ")", ")", "{", "clinitIndex", "=", "i", ";", "break", ";", "}", "}", "int", "count", "=", "isEnum", "?", "2", ":", "0", ";", "MethodBinding", "[", "]", "methodBindings", "=", "new", "MethodBinding", "[", "(", "clinitIndex", "==", "-", "1", "?", "size", ":", "size", "-", "1", ")", "+", "count", "]", ";", "if", "(", "isEnum", ")", "{", "methodBindings", "[", "0", "]", "=", "sourceType", ".", "addSyntheticEnumMethod", "(", "TypeConstants", ".", "VALUES", ")", ";", "methodBindings", "[", "1", "]", "=", "sourceType", ".", "addSyntheticEnumMethod", "(", "TypeConstants", ".", "VALUEOF", ")", ";", "}", "boolean", "hasNativeMethods", "=", "false", ";", "if", "(", "sourceType", ".", "isAbstract", "(", ")", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "++", ")", "{", "if", "(", "i", "!=", "clinitIndex", ")", "{", "MethodScope", "scope", "=", "new", "MethodScope", "(", "this", ",", "methods", "[", "i", "]", ",", "false", ")", ";", "MethodBinding", "methodBinding", "=", "scope", ".", "createMethod", "(", "methods", "[", "i", "]", ")", ";", "if", "(", "methodBinding", "!=", "null", ")", "{", "methodBindings", "[", "count", "++", "]", "=", "methodBinding", ";", "hasNativeMethods", "=", "hasNativeMethods", "||", "methodBinding", ".", "isNative", "(", ")", ";", "}", "}", "}", "}", "else", "{", "boolean", "hasAbstractMethods", "=", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "++", ")", "{", "if", "(", "i", "!=", "clinitIndex", ")", "{", "MethodScope", "scope", "=", "new", "MethodScope", "(", "this", ",", "methods", "[", "i", "]", ",", "false", ")", ";", "MethodBinding", "methodBinding", "=", "scope", ".", "createMethod", "(", "methods", "[", "i", "]", ")", ";", "if", "(", "methodBinding", "!=", "null", ")", "{", "methodBindings", "[", "count", "++", "]", "=", "methodBinding", ";", "hasAbstractMethods", "=", "hasAbstractMethods", "||", "methodBinding", ".", "isAbstract", "(", ")", ";", "hasNativeMethods", "=", "hasNativeMethods", "||", "methodBinding", ".", "isNative", "(", ")", ";", "}", "}", "}", "if", "(", "hasAbstractMethods", ")", "problemReporter", "(", ")", ".", "abstractMethodInConcreteClass", "(", "sourceType", ")", ";", "}", "if", "(", "count", "!=", "methodBindings", ".", "length", ")", "System", ".", "arraycopy", "(", "methodBindings", ",", "0", ",", "methodBindings", "=", "new", "MethodBinding", "[", "count", "]", ",", "0", ",", "count", ")", ";", "methodBindings", "=", "augmentMethodBindings", "(", "methodBindings", ")", ";", "sourceType", ".", "tagBits", "&=", "~", "(", "TagBits", ".", "AreMethodsSorted", "|", "TagBits", ".", "AreMethodsComplete", ")", ";", "sourceType", ".", "setMethods", "(", "methodBindings", ")", ";", "if", "(", "hasNativeMethods", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "methodBindings", ".", "length", ";", "i", "++", ")", "{", "methodBindings", "[", "i", "]", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccLocallyUsed", ";", "}", "FieldBinding", "[", "]", "fields", "=", "sourceType", ".", "unResolvedFields", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "fields", ".", "length", ";", "i", "++", ")", "{", "fields", "[", "i", "]", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccLocallyUsed", ";", "}", "}", "}", "protected", "MethodBinding", "[", "]", "augmentMethodBindings", "(", "MethodBinding", "[", "]", "methodBindings", ")", "{", "return", "methodBindings", ";", "}", "SourceTypeBinding", "buildType", "(", "SourceTypeBinding", "enclosingType", ",", "PackageBinding", "packageBinding", ",", "AccessRestriction", "accessRestriction", ")", "{", "this", ".", "referenceContext", ".", "scope", "=", "this", ";", "this", ".", "referenceContext", ".", "staticInitializerScope", "=", "new", "MethodScope", "(", "this", ",", "this", ".", "referenceContext", ",", "true", ")", ";", "this", ".", "referenceContext", ".", "initializerScope", "=", "new", "MethodScope", "(", "this", ",", "this", ".", "referenceContext", ",", "false", ")", ";", "if", "(", "enclosingType", "==", "null", ")", "{", "char", "[", "]", "[", "]", "className", "=", "CharOperation", ".", "arrayConcat", "(", "packageBinding", ".", "compoundName", ",", "this", ".", "referenceContext", ".", "name", ")", ";", "this", ".", "referenceContext", ".", "binding", "=", "new", "SourceTypeBinding", "(", "className", ",", "packageBinding", ",", "this", ")", ";", "}", "else", "{", "char", "[", "]", "[", "]", "className", "=", "CharOperation", ".", "deepCopy", "(", "enclosingType", ".", "compoundName", ")", ";", "className", "[", "className", ".", "length", "-", "1", "]", "=", "CharOperation", ".", "concat", "(", "className", "[", "className", ".", "length", "-", "1", "]", ",", "this", ".", "referenceContext", ".", "name", ",", "'$'", ")", ";", "ReferenceBinding", "existingType", "=", "packageBinding", ".", "getType0", "(", "className", "[", "className", ".", "length", "-", "1", "]", ")", ";", "if", "(", "existingType", "!=", "null", ")", "{", "if", "(", "existingType", "instanceof", "UnresolvedReferenceBinding", ")", "{", "}", "else", "{", "this", ".", "parent", ".", "problemReporter", "(", ")", ".", "duplicateNestedType", "(", "this", ".", "referenceContext", ")", ";", "}", "}", "this", ".", "referenceContext", ".", "binding", "=", "new", "MemberTypeBinding", "(", "className", ",", "this", ",", "enclosingType", ")", ";", "}", "SourceTypeBinding", "sourceType", "=", "this", ".", "referenceContext", ".", "binding", ";", "environment", "(", ")", ".", "setAccessRestriction", "(", "sourceType", ",", "accessRestriction", ")", ";", "sourceType", ".", "fPackage", ".", "addType", "(", "sourceType", ")", ";", "checkAndSetModifiers", "(", ")", ";", "buildTypeVariables", "(", ")", ";", "buildMemberTypes", "(", "accessRestriction", ")", ";", "return", "sourceType", ";", "}", "private", "void", "buildTypeVariables", "(", ")", "{", "SourceTypeBinding", "sourceType", "=", "this", ".", "referenceContext", ".", "binding", ";", "TypeParameter", "[", "]", "typeParameters", "=", "this", ".", "referenceContext", ".", "typeParameters", ";", "if", "(", "typeParameters", "==", "null", "||", "compilerOptions", "(", ")", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "sourceType", ".", "typeVariables", "=", "Binding", ".", "NO_TYPE_VARIABLES", ";", "return", ";", "}", "sourceType", ".", "typeVariables", "=", "Binding", ".", "NO_TYPE_VARIABLES", ";", "if", "(", "sourceType", ".", "id", "==", "TypeIds", ".", "T_JavaLangObject", ")", "{", "problemReporter", "(", ")", ".", "objectCannotBeGeneric", "(", "this", ".", "referenceContext", ")", ";", "return", ";", "}", "sourceType", ".", "typeVariables", "=", "createTypeVariables", "(", "typeParameters", ",", "sourceType", ")", ";", "sourceType", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccGenericSignature", ";", "}", "private", "void", "checkAndSetModifiers", "(", ")", "{", "SourceTypeBinding", "sourceType", "=", "this", ".", "referenceContext", ".", "binding", ";", "int", "modifiers", "=", "sourceType", ".", "modifiers", ";", "if", "(", "(", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccAlternateModifierProblem", ")", "!=", "0", ")", "problemReporter", "(", ")", ".", "duplicateModifierForType", "(", "sourceType", ")", ";", "ReferenceBinding", "enclosingType", "=", "sourceType", ".", "enclosingType", "(", ")", ";", "boolean", "isMemberType", "=", "sourceType", ".", "isMemberType", "(", ")", ";", "if", "(", "isMemberType", ")", "{", "modifiers", "|=", "(", "enclosingType", ".", "modifiers", "&", "(", "ExtraCompilerModifiers", ".", "AccGenericSignature", "|", "ClassFileConstants", ".", "AccStrictfp", ")", ")", ";", "if", "(", "enclosingType", ".", "isInterface", "(", ")", ")", "modifiers", "|=", "ClassFileConstants", ".", "AccPublic", ";", "if", "(", "sourceType", ".", "isEnum", "(", ")", ")", "{", "if", "(", "!", "enclosingType", ".", "isStatic", "(", ")", ")", "problemReporter", "(", ")", ".", "nonStaticContextForEnumMemberType", "(", "sourceType", ")", ";", "else", "modifiers", "|=", "ClassFileConstants", ".", "AccStatic", ";", "}", "if", "(", "enclosingType", ".", "isViewedAsDeprecated", "(", ")", "&&", "!", "sourceType", ".", "isDeprecated", "(", ")", ")", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccDeprecatedImplicitly", ";", "}", "else", "if", "(", "sourceType", ".", "isLocalType", "(", ")", ")", "{", "if", "(", "sourceType", ".", "isEnum", "(", ")", ")", "{", "problemReporter", "(", ")", ".", "illegalLocalTypeDeclaration", "(", "this", ".", "referenceContext", ")", ";", "sourceType", ".", "modifiers", "=", "0", ";", "return", ";", "}", "if", "(", "sourceType", ".", "isAnonymousType", "(", ")", ")", "{", "modifiers", "|=", "ClassFileConstants", ".", "AccFinal", ";", "if", "(", "this", ".", "referenceContext", ".", "allocation", ".", "type", "==", "null", ")", "modifiers", "|=", "ClassFileConstants", ".", "AccEnum", ";", "}", "Scope", "scope", "=", "this", ";", "do", "{", "switch", "(", "scope", ".", "kind", ")", "{", "case", "METHOD_SCOPE", ":", "MethodScope", "methodScope", "=", "(", "MethodScope", ")", "scope", ";", "if", "(", "methodScope", ".", "isInsideInitializer", "(", ")", ")", "{", "SourceTypeBinding", "type", "=", "(", "(", "TypeDeclaration", ")", "methodScope", ".", "referenceContext", ")", ".", "binding", ";", "if", "(", "methodScope", ".", "initializedField", "!=", "null", ")", "{", "if", "(", "methodScope", ".", "initializedField", ".", "isViewedAsDeprecated", "(", ")", "&&", "!", "sourceType", ".", "isDeprecated", "(", ")", ")", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccDeprecatedImplicitly", ";", "}", "else", "{", "if", "(", "type", ".", "isStrictfp", "(", ")", ")", "modifiers", "|=", "ClassFileConstants", ".", "AccStrictfp", ";", "if", "(", "type", ".", "isViewedAsDeprecated", "(", ")", "&&", "!", "sourceType", ".", "isDeprecated", "(", ")", ")", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccDeprecatedImplicitly", ";", "}", "}", "else", "{", "MethodBinding", "method", "=", "(", "(", "AbstractMethodDeclaration", ")", "methodScope", ".", "referenceContext", ")", ".", "binding", ";", "if", "(", "method", "!=", "null", ")", "{", "if", "(", "method", ".", "isStrictfp", "(", ")", ")", "modifiers", "|=", "ClassFileConstants", ".", "AccStrictfp", ";", "if", "(", "method", ".", "isViewedAsDeprecated", "(", ")", "&&", "!", "sourceType", ".", "isDeprecated", "(", ")", ")", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccDeprecatedImplicitly", ";", "}", "}", "break", ";", "case", "CLASS_SCOPE", ":", "if", "(", "enclosingType", ".", "isStrictfp", "(", ")", ")", "modifiers", "|=", "ClassFileConstants", ".", "AccStrictfp", ";", "if", "(", "enclosingType", ".", "isViewedAsDeprecated", "(", ")", "&&", "!", "sourceType", ".", "isDeprecated", "(", ")", ")", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccDeprecatedImplicitly", ";", "break", ";", "}", "scope", "=", "scope", ".", "parent", ";", "}", "while", "(", "scope", "!=", "null", ")", ";", "}", "int", "realModifiers", "=", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccJustFlag", ";", "if", "(", "(", "realModifiers", "&", "ClassFileConstants", ".", "AccInterface", ")", "!=", "0", ")", "{", "if", "(", "isMemberType", ")", "{", "final", "int", "UNEXPECTED_MODIFIERS", "=", "~", "(", "ClassFileConstants", ".", "AccPublic", "|", "ClassFileConstants", ".", "AccPrivate", "|", "ClassFileConstants", ".", "AccProtected", "|", "ClassFileConstants", ".", "AccStatic", "|", "ClassFileConstants", ".", "AccAbstract", "|", "ClassFileConstants", ".", "AccInterface", "|", "ClassFileConstants", ".", "AccStrictfp", "|", "ClassFileConstants", ".", "AccAnnotation", ")", ";", "if", "(", "(", "realModifiers", "&", "UNEXPECTED_MODIFIERS", ")", "!=", "0", ")", "{", "if", "(", "(", "realModifiers", "&", "ClassFileConstants", ".", "AccAnnotation", ")", "!=", "0", ")", "problemReporter", "(", ")", ".", "illegalModifierForAnnotationMemberType", "(", "sourceType", ")", ";", "else", "problemReporter", "(", ")", ".", "illegalModifierForMemberInterface", "(", "sourceType", ")", ";", "}", "}", "else", "{", "final", "int", "UNEXPECTED_MODIFIERS", "=", "~", "(", "ClassFileConstants", ".", "AccPublic", "|", "ClassFileConstants", ".", "AccAbstract", "|", "ClassFileConstants", ".", "AccInterface", "|", "ClassFileConstants", ".", "AccStrictfp", "|", "ClassFileConstants", ".", "AccAnnotation", ")", ";", "if", "(", "(", "realModifiers", "&", "UNEXPECTED_MODIFIERS", ")", "!=", "0", ")", "{", "if", "(", "(", "realModifiers", "&", "ClassFileConstants", ".", "AccAnnotation", ")", "!=", "0", ")", "problemReporter", "(", ")", ".", "illegalModifierForAnnotationType", "(", "sourceType", ")", ";", "else", "problemReporter", "(", ")", ".", "illegalModifierForInterface", "(", "sourceType", ")", ";", "}", "}", "if", "(", "sourceType", ".", "sourceName", "==", "TypeConstants", ".", "PACKAGE_INFO_NAME", "&&", "compilerOptions", "(", ")", ".", "targetJDK", ">", "ClassFileConstants", ".", "JDK1_5", ")", "{", "modifiers", "|=", "ClassFileConstants", ".", "AccSynthetic", ";", "}", "modifiers", "|=", "ClassFileConstants", ".", "AccAbstract", ";", "}", "else", "if", "(", "(", "realModifiers", "&", "ClassFileConstants", ".", "AccEnum", ")", "!=", "0", ")", "{", "if", "(", "isMemberType", ")", "{", "final", "int", "UNEXPECTED_MODIFIERS", "=", "~", "(", "ClassFileConstants", ".", "AccPublic", "|", "ClassFileConstants", ".", "AccPrivate", "|", "ClassFileConstants", ".", "AccProtected", "|", "ClassFileConstants", ".", "AccStatic", "|", "ClassFileConstants", ".", "AccStrictfp", "|", "ClassFileConstants", ".", "AccEnum", ")", ";", "if", "(", "(", "realModifiers", "&", "UNEXPECTED_MODIFIERS", ")", "!=", "0", ")", "{", "problemReporter", "(", ")", ".", "illegalModifierForMemberEnum", "(", "sourceType", ")", ";", "modifiers", "&=", "~", "ClassFileConstants", ".", "AccAbstract", ";", "realModifiers", "&=", "~", "ClassFileConstants", ".", "AccAbstract", ";", "}", "}", "else", "if", "(", "sourceType", ".", "isLocalType", "(", ")", ")", "{", "}", "else", "{", "final", "int", "UNEXPECTED_MODIFIERS", "=", "~", "(", "ClassFileConstants", ".", "AccPublic", "|", "ClassFileConstants", ".", "AccStrictfp", "|", "ClassFileConstants", ".", "AccEnum", ")", ";", "if", "(", "(", "realModifiers", "&", "UNEXPECTED_MODIFIERS", ")", "!=", "0", ")", "problemReporter", "(", ")", ".", "illegalModifierForEnum", "(", "sourceType", ")", ";", "}", "if", "(", "!", "sourceType", ".", "isAnonymousType", "(", ")", ")", "{", "checkAbstractEnum", ":", "{", "if", "(", "(", "this", ".", "referenceContext", ".", "bits", "&", "ASTNode", ".", "HasAbstractMethods", ")", "!=", "0", ")", "{", "modifiers", "|=", "ClassFileConstants", ".", "AccAbstract", ";", "break", "checkAbstractEnum", ";", "}", "TypeDeclaration", "typeDeclaration", "=", "this", ".", "referenceContext", ";", "FieldDeclaration", "[", "]", "fields", "=", "typeDeclaration", ".", "fields", ";", "int", "fieldsLength", "=", "fields", "==", "null", "?", "0", ":", "fields", ".", "length", ";", "if", "(", "fieldsLength", "==", "0", ")", "break", "checkAbstractEnum", ";", "AbstractMethodDeclaration", "[", "]", "methods", "=", "typeDeclaration", ".", "methods", ";", "int", "methodsLength", "=", "methods", "==", "null", "?", "0", ":", "methods", ".", "length", ";", "boolean", "definesAbstractMethod", "=", "typeDeclaration", ".", "superInterfaces", "!=", "null", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "methodsLength", "&&", "!", "definesAbstractMethod", ";", "i", "++", ")", "definesAbstractMethod", "=", "methods", "[", "i", "]", ".", "isAbstract", "(", ")", ";", "if", "(", "!", "definesAbstractMethod", ")", "break", "checkAbstractEnum", ";", "boolean", "needAbstractBit", "=", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "fieldsLength", ";", "i", "++", ")", "{", "FieldDeclaration", "fieldDecl", "=", "fields", "[", "i", "]", ";", "if", "(", "fieldDecl", ".", "getKind", "(", ")", "==", "AbstractVariableDeclaration", ".", "ENUM_CONSTANT", ")", "{", "if", "(", "fieldDecl", ".", "initialization", "instanceof", "QualifiedAllocationExpression", ")", "{", "needAbstractBit", "=", "true", ";", "}", "else", "{", "break", "checkAbstractEnum", ";", "}", "}", "}", "if", "(", "needAbstractBit", ")", "{", "modifiers", "|=", "ClassFileConstants", ".", "AccAbstract", ";", "}", "}", "checkFinalEnum", ":", "{", "TypeDeclaration", "typeDeclaration", "=", "this", ".", "referenceContext", ";", "FieldDeclaration", "[", "]", "fields", "=", "typeDeclaration", ".", "fields", ";", "if", "(", "fields", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "fieldsLength", "=", "fields", ".", "length", ";", "i", "<", "fieldsLength", ";", "i", "++", ")", "{", "FieldDeclaration", "fieldDecl", "=", "fields", "[", "i", "]", ";", "if", "(", "fieldDecl", ".", "getKind", "(", ")", "==", "AbstractVariableDeclaration", ".", "ENUM_CONSTANT", ")", "{", "if", "(", "fieldDecl", ".", "initialization", "instanceof", "QualifiedAllocationExpression", ")", "{", "break", "checkFinalEnum", ";", "}", "}", "}", "}", "modifiers", "|=", "ClassFileConstants", ".", "AccFinal", ";", "}", "}", "}", "else", "{", "if", "(", "isMemberType", ")", "{", "final", "int", "UNEXPECTED_MODIFIERS", "=", "~", "(", "ClassFileConstants", ".", "AccPublic", "|", "ClassFileConstants", ".", "AccPrivate", "|", "ClassFileConstants", ".", "AccProtected", "|", "ClassFileConstants", ".", "AccStatic", "|", "ClassFileConstants", ".", "AccAbstract", "|", "ClassFileConstants", ".", "AccFinal", "|", "ClassFileConstants", ".", "AccStrictfp", ")", ";", "if", "(", "(", "realModifiers", "&", "UNEXPECTED_MODIFIERS", ")", "!=", "0", ")", "problemReporter", "(", ")", ".", "illegalModifierForMemberClass", "(", "sourceType", ")", ";", "}", "else", "if", "(", "sourceType", ".", "isLocalType", "(", ")", ")", "{", "final", "int", "UNEXPECTED_MODIFIERS", "=", "~", "(", "ClassFileConstants", ".", "AccAbstract", "|", "ClassFileConstants", ".", "AccFinal", "|", "ClassFileConstants", ".", "AccStrictfp", ")", ";", "if", "(", "(", "realModifiers", "&", "UNEXPECTED_MODIFIERS", ")", "!=", "0", ")", "problemReporter", "(", ")", ".", "illegalModifierForLocalClass", "(", "sourceType", ")", ";", "}", "else", "{", "final", "int", "UNEXPECTED_MODIFIERS", "=", "~", "(", "ClassFileConstants", ".", "AccPublic", "|", "ClassFileConstants", ".", "AccAbstract", "|", "ClassFileConstants", ".", "AccFinal", "|", "ClassFileConstants", ".", "AccStrictfp", ")", ";", "if", "(", "(", "realModifiers", "&", "UNEXPECTED_MODIFIERS", ")", "!=", "0", ")", "problemReporter", "(", ")", ".", "illegalModifierForClass", "(", "sourceType", ")", ";", "}", "if", "(", "(", "realModifiers", "&", "(", "ClassFileConstants", ".", "AccFinal", "|", "ClassFileConstants", ".", "AccAbstract", ")", ")", "==", "(", "ClassFileConstants", ".", "AccFinal", "|", "ClassFileConstants", ".", "AccAbstract", ")", ")", "problemReporter", "(", ")", ".", "illegalModifierCombinationFinalAbstractForClass", "(", "sourceType", ")", ";", "}", "if", "(", "isMemberType", ")", "{", "if", "(", "enclosingType", ".", "isInterface", "(", ")", ")", "{", "if", "(", "(", "realModifiers", "&", "(", "ClassFileConstants", ".", "AccProtected", "|", "ClassFileConstants", ".", "AccPrivate", ")", ")", "!=", "0", ")", "{", "problemReporter", "(", ")", ".", "illegalVisibilityModifierForInterfaceMemberType", "(", "sourceType", ")", ";", "if", "(", "(", "realModifiers", "&", "ClassFileConstants", ".", "AccProtected", ")", "!=", "0", ")", "modifiers", "&=", "~", "ClassFileConstants", ".", "AccProtected", ";", "if", "(", "(", "realModifiers", "&", "ClassFileConstants", ".", "AccPrivate", ")", "!=", "0", ")", "modifiers", "&=", "~", "ClassFileConstants", ".", "AccPrivate", ";", "}", "}", "else", "{", "int", "accessorBits", "=", "realModifiers", "&", "(", "ClassFileConstants", ".", "AccPublic", "|", "ClassFileConstants", ".", "AccProtected", "|", "ClassFileConstants", ".", "AccPrivate", ")", ";", "if", "(", "(", "accessorBits", "&", "(", "accessorBits", "-", "1", ")", ")", ">", "1", ")", "{", "problemReporter", "(", ")", ".", "illegalVisibilityModifierCombinationForMemberType", "(", "sourceType", ")", ";", "if", "(", "(", "accessorBits", "&", "ClassFileConstants", ".", "AccPublic", ")", "!=", "0", ")", "{", "if", "(", "(", "accessorBits", "&", "ClassFileConstants", ".", "AccProtected", ")", "!=", "0", ")", "modifiers", "&=", "~", "ClassFileConstants", ".", "AccProtected", ";", "if", "(", "(", "accessorBits", "&", "ClassFileConstants", ".", "AccPrivate", ")", "!=", "0", ")", "modifiers", "&=", "~", "ClassFileConstants", ".", "AccPrivate", ";", "}", "else", "if", "(", "(", "accessorBits", "&", "ClassFileConstants", ".", "AccProtected", ")", "!=", "0", "&&", "(", "accessorBits", "&", "ClassFileConstants", ".", "AccPrivate", ")", "!=", "0", ")", "{", "modifiers", "&=", "~", "ClassFileConstants", ".", "AccPrivate", ";", "}", "}", "}", "if", "(", "(", "realModifiers", "&", "ClassFileConstants", ".", "AccStatic", ")", "==", "0", ")", "{", "if", "(", "enclosingType", ".", "isInterface", "(", ")", ")", "modifiers", "|=", "ClassFileConstants", ".", "AccStatic", ";", "}", "else", "if", "(", "!", "enclosingType", ".", "isStatic", "(", ")", ")", "{", "problemReporter", "(", ")", ".", "illegalStaticModifierForMemberType", "(", "sourceType", ")", ";", "}", "}", "sourceType", ".", "modifiers", "=", "modifiers", ";", "}", "private", "void", "checkAndSetModifiersForField", "(", "FieldBinding", "fieldBinding", ",", "FieldDeclaration", "fieldDecl", ")", "{", "int", "modifiers", "=", "fieldBinding", ".", "modifiers", ";", "final", "ReferenceBinding", "declaringClass", "=", "fieldBinding", ".", "declaringClass", ";", "if", "(", "(", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccAlternateModifierProblem", ")", "!=", "0", ")", "problemReporter", "(", ")", ".", "duplicateModifierForField", "(", "declaringClass", ",", "fieldDecl", ")", ";", "if", "(", "declaringClass", ".", "isInterface", "(", ")", ")", "{", "final", "int", "IMPLICIT_MODIFIERS", "=", "ClassFileConstants", ".", "AccPublic", "|", "ClassFileConstants", ".", "AccStatic", "|", "ClassFileConstants", ".", "AccFinal", ";", "modifiers", "|=", "IMPLICIT_MODIFIERS", ";", "if", "(", "(", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccJustFlag", ")", "!=", "IMPLICIT_MODIFIERS", ")", "{", "if", "(", "(", "declaringClass", ".", "modifiers", "&", "ClassFileConstants", ".", "AccAnnotation", ")", "!=", "0", ")", "problemReporter", "(", ")", ".", "illegalModifierForAnnotationField", "(", "fieldDecl", ")", ";", "else", "problemReporter", "(", ")", ".", "illegalModifierForInterfaceField", "(", "fieldDecl", ")", ";", "}", "fieldBinding", ".", "modifiers", "=", "modifiers", ";", "return", ";", "}", "else", "if", "(", "fieldDecl", ".", "getKind", "(", ")", "==", "AbstractVariableDeclaration", ".", "ENUM_CONSTANT", ")", "{", "if", "(", "(", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccJustFlag", ")", "!=", "0", ")", "problemReporter", "(", ")", ".", "illegalModifierForEnumConstant", "(", "declaringClass", ",", "fieldDecl", ")", ";", "final", "int", "IMPLICIT_MODIFIERS", "=", "ClassFileConstants", ".", "AccPublic", "|", "ClassFileConstants", ".", "AccStatic", "|", "ClassFileConstants", ".", "AccFinal", "|", "ClassFileConstants", ".", "AccEnum", "|", "ExtraCompilerModifiers", ".", "AccLocallyUsed", ";", "fieldBinding", ".", "modifiers", "|=", "IMPLICIT_MODIFIERS", ";", "return", ";", "}", "int", "realModifiers", "=", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccJustFlag", ";", "final", "int", "UNEXPECTED_MODIFIERS", "=", "~", "(", "ClassFileConstants", ".", "AccPublic", "|", "ClassFileConstants", ".", "AccPrivate", "|", "ClassFileConstants", ".", "AccProtected", "|", "ClassFileConstants", ".", "AccFinal", "|", "ClassFileConstants", ".", "AccStatic", "|", "ClassFileConstants", ".", "AccTransient", "|", "ClassFileConstants", ".", "AccVolatile", ")", ";", "if", "(", "(", "realModifiers", "&", "UNEXPECTED_MODIFIERS", ")", "!=", "0", ")", "{", "problemReporter", "(", ")", ".", "illegalModifierForField", "(", "declaringClass", ",", "fieldDecl", ")", ";", "modifiers", "&=", "~", "ExtraCompilerModifiers", ".", "AccJustFlag", "|", "~", "UNEXPECTED_MODIFIERS", ";", "}", "int", "accessorBits", "=", "realModifiers", "&", "(", "ClassFileConstants", ".", "AccPublic", "|", "ClassFileConstants", ".", "AccProtected", "|", "ClassFileConstants", ".", "AccPrivate", ")", ";", "if", "(", "(", "accessorBits", "&", "(", "accessorBits", "-", "1", ")", ")", ">", "1", ")", "{", "problemReporter", "(", ")", ".", "illegalVisibilityModifierCombinationForField", "(", "declaringClass", ",", "fieldDecl", ")", ";", "if", "(", "(", "accessorBits", "&", "ClassFileConstants", ".", "AccPublic", ")", "!=", "0", ")", "{", "if", "(", "(", "accessorBits", "&", "ClassFileConstants", ".", "AccProtected", ")", "!=", "0", ")", "modifiers", "&=", "~", "ClassFileConstants", ".", "AccProtected", ";", "if", "(", "(", "accessorBits", "&", "ClassFileConstants", ".", "AccPrivate", ")", "!=", "0", ")", "modifiers", "&=", "~", "ClassFileConstants", ".", "AccPrivate", ";", "}", "else", "if", "(", "(", "accessorBits", "&", "ClassFileConstants", ".", "AccProtected", ")", "!=", "0", "&&", "(", "accessorBits", "&", "ClassFileConstants", ".", "AccPrivate", ")", "!=", "0", ")", "{", "modifiers", "&=", "~", "ClassFileConstants", ".", "AccPrivate", ";", "}", "}", "if", "(", "(", "realModifiers", "&", "(", "ClassFileConstants", ".", "AccFinal", "|", "ClassFileConstants", ".", "AccVolatile", ")", ")", "==", "(", "ClassFileConstants", ".", "AccFinal", "|", "ClassFileConstants", ".", "AccVolatile", ")", ")", "problemReporter", "(", ")", ".", "illegalModifierCombinationFinalVolatileForField", "(", "declaringClass", ",", "fieldDecl", ")", ";", "if", "(", "fieldDecl", ".", "initialization", "==", "null", "&&", "(", "modifiers", "&", "ClassFileConstants", ".", "AccFinal", ")", "!=", "0", ")", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccBlankFinal", ";", "fieldBinding", ".", "modifiers", "=", "modifiers", ";", "}", "public", "void", "checkParameterizedSuperTypeCollisions", "(", ")", "{", "SourceTypeBinding", "sourceType", "=", "this", ".", "referenceContext", ".", "binding", ";", "ReferenceBinding", "[", "]", "interfaces", "=", "sourceType", ".", "superInterfaces", ";", "Map", "invocations", "=", "new", "HashMap", "(", "2", ")", ";", "ReferenceBinding", "itsSuperclass", "=", "sourceType", ".", "isInterface", "(", ")", "?", "null", ":", "sourceType", ".", "superclass", ";", "nextInterface", ":", "for", "(", "int", "i", "=", "0", ",", "length", "=", "interfaces", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "ReferenceBinding", "one", "=", "interfaces", "[", "i", "]", ";", "if", "(", "one", "==", "null", ")", "continue", "nextInterface", ";", "if", "(", "itsSuperclass", "!=", "null", "&&", "hasErasedCandidatesCollisions", "(", "itsSuperclass", ",", "one", ",", "invocations", ",", "sourceType", ",", "this", ".", "referenceContext", ")", ")", "continue", "nextInterface", ";", "nextOtherInterface", ":", "for", "(", "int", "j", "=", "0", ";", "j", "<", "i", ";", "j", "++", ")", "{", "ReferenceBinding", "two", "=", "interfaces", "[", "j", "]", ";", "if", "(", "two", "==", "null", ")", "continue", "nextOtherInterface", ";", "if", "(", "hasErasedCandidatesCollisions", "(", "one", ",", "two", ",", "invocations", ",", "sourceType", ",", "this", ".", "referenceContext", ")", ")", "continue", "nextInterface", ";", "}", "}", "TypeParameter", "[", "]", "typeParameters", "=", "this", ".", "referenceContext", ".", "typeParameters", ";", "nextVariable", ":", "for", "(", "int", "i", "=", "0", ",", "paramLength", "=", "typeParameters", "==", "null", "?", "0", ":", "typeParameters", ".", "length", ";", "i", "<", "paramLength", ";", "i", "++", ")", "{", "TypeParameter", "typeParameter", "=", "typeParameters", "[", "i", "]", ";", "TypeVariableBinding", "typeVariable", "=", "typeParameter", ".", "binding", ";", "if", "(", "typeVariable", "==", "null", "||", "!", "typeVariable", ".", "isValidBinding", "(", ")", ")", "continue", "nextVariable", ";", "TypeReference", "[", "]", "boundRefs", "=", "typeParameter", ".", "bounds", ";", "if", "(", "boundRefs", "!=", "null", ")", "{", "boolean", "checkSuperclass", "=", "typeVariable", ".", "firstBound", "==", "typeVariable", ".", "superclass", ";", "for", "(", "int", "j", "=", "0", ",", "boundLength", "=", "boundRefs", ".", "length", ";", "j", "<", "boundLength", ";", "j", "++", ")", "{", "TypeReference", "typeRef", "=", "boundRefs", "[", "j", "]", ";", "TypeBinding", "superType", "=", "typeRef", ".", "resolvedType", ";", "if", "(", "superType", "==", "null", "||", "!", "superType", ".", "isValidBinding", "(", ")", ")", "continue", ";", "if", "(", "checkSuperclass", ")", "if", "(", "hasErasedCandidatesCollisions", "(", "superType", ",", "typeVariable", ".", "superclass", ",", "invocations", ",", "typeVariable", ",", "typeRef", ")", ")", "continue", "nextVariable", ";", "for", "(", "int", "index", "=", "typeVariable", ".", "superInterfaces", ".", "length", ";", "--", "index", ">=", "0", ";", ")", "if", "(", "hasErasedCandidatesCollisions", "(", "superType", ",", "typeVariable", ".", "superInterfaces", "[", "index", "]", ",", "invocations", ",", "typeVariable", ",", "typeRef", ")", ")", "continue", "nextVariable", ";", "}", "}", "}", "ReferenceBinding", "[", "]", "memberTypes", "=", "this", ".", "referenceContext", ".", "binding", ".", "memberTypes", ";", "if", "(", "memberTypes", "!=", "null", "&&", "memberTypes", "!=", "Binding", ".", "NO_MEMBER_TYPES", ")", "for", "(", "int", "i", "=", "0", ",", "size", "=", "memberTypes", ".", "length", ";", "i", "<", "size", ";", "i", "++", ")", "(", "(", "SourceTypeBinding", ")", "memberTypes", "[", "i", "]", ")", ".", "scope", ".", "checkParameterizedSuperTypeCollisions", "(", ")", ";", "}", "private", "void", "checkForInheritedMemberTypes", "(", "SourceTypeBinding", "sourceType", ")", "{", "ReferenceBinding", "currentType", "=", "sourceType", ";", "ReferenceBinding", "[", "]", "interfacesToVisit", "=", "null", ";", "int", "nextPosition", "=", "0", ";", "do", "{", "if", "(", "currentType", ".", "hasMemberTypes", "(", ")", ")", "return", ";", "ReferenceBinding", "[", "]", "itsInterfaces", "=", "currentType", ".", "superInterfaces", "(", ")", ";", "if", "(", "itsInterfaces", "!=", "null", "&&", "itsInterfaces", "!=", "Binding", ".", "NO_SUPERINTERFACES", ")", "{", "if", "(", "interfacesToVisit", "==", "null", ")", "{", "interfacesToVisit", "=", "itsInterfaces", ";", "nextPosition", "=", "interfacesToVisit", ".", "length", ";", "}", "else", "{", "int", "itsLength", "=", "itsInterfaces", ".", "length", ";", "if", "(", "nextPosition", "+", "itsLength", ">=", "interfacesToVisit", ".", "length", ")", "System", ".", "arraycopy", "(", "interfacesToVisit", ",", "0", ",", "interfacesToVisit", "=", "new", "ReferenceBinding", "[", "nextPosition", "+", "itsLength", "+", "5", "]", ",", "0", ",", "nextPosition", ")", ";", "nextInterface", ":", "for", "(", "int", "a", "=", "0", ";", "a", "<", "itsLength", ";", "a", "++", ")", "{", "ReferenceBinding", "next", "=", "itsInterfaces", "[", "a", "]", ";", "for", "(", "int", "b", "=", "0", ";", "b", "<", "nextPosition", ";", "b", "++", ")", "if", "(", "next", "==", "interfacesToVisit", "[", "b", "]", ")", "continue", "nextInterface", ";", "interfacesToVisit", "[", "nextPosition", "++", "]", "=", "next", ";", "}", "}", "}", "}", "while", "(", "(", "currentType", "=", "currentType", ".", "superclass", "(", ")", ")", "!=", "null", "&&", "(", "currentType", ".", "tagBits", "&", "TagBits", ".", "HasNoMemberTypes", ")", "==", "0", ")", ";", "if", "(", "interfacesToVisit", "!=", "null", ")", "{", "boolean", "needToTag", "=", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "nextPosition", ";", "i", "++", ")", "{", "ReferenceBinding", "anInterface", "=", "interfacesToVisit", "[", "i", "]", ";", "if", "(", "(", "anInterface", ".", "tagBits", "&", "TagBits", ".", "HasNoMemberTypes", ")", "==", "0", ")", "{", "if", "(", "anInterface", ".", "hasMemberTypes", "(", ")", ")", "return", ";", "needToTag", "=", "true", ";", "ReferenceBinding", "[", "]", "itsInterfaces", "=", "anInterface", ".", "superInterfaces", "(", ")", ";", "if", "(", "itsInterfaces", "!=", "null", "&&", "itsInterfaces", "!=", "Binding", ".", "NO_SUPERINTERFACES", ")", "{", "int", "itsLength", "=", "itsInterfaces", ".", "length", ";", "if", "(", "nextPosition", "+", "itsLength", ">=", "interfacesToVisit", ".", "length", ")", "System", ".", "arraycopy", "(", "interfacesToVisit", ",", "0", ",", "interfacesToVisit", "=", "new", "ReferenceBinding", "[", "nextPosition", "+", "itsLength", "+", "5", "]", ",", "0", ",", "nextPosition", ")", ";", "nextInterface", ":", "for", "(", "int", "a", "=", "0", ";", "a", "<", "itsLength", ";", "a", "++", ")", "{", "ReferenceBinding", "next", "=", "itsInterfaces", "[", "a", "]", ";", "for", "(", "int", "b", "=", "0", ";", "b", "<", "nextPosition", ";", "b", "++", ")", "if", "(", "next", "==", "interfacesToVisit", "[", "b", "]", ")", "continue", "nextInterface", ";", "interfacesToVisit", "[", "nextPosition", "++", "]", "=", "next", ";", "}", "}", "}", "}", "if", "(", "needToTag", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "nextPosition", ";", "i", "++", ")", "interfacesToVisit", "[", "i", "]", ".", "tagBits", "|=", "TagBits", ".", "HasNoMemberTypes", ";", "}", "}", "currentType", "=", "sourceType", ";", "do", "{", "currentType", ".", "tagBits", "|=", "TagBits", ".", "HasNoMemberTypes", ";", "}", "while", "(", "(", "currentType", "=", "currentType", ".", "superclass", "(", ")", ")", "!=", "null", "&&", "(", "currentType", ".", "tagBits", "&", "TagBits", ".", "HasNoMemberTypes", ")", "==", "0", ")", ";", "}", "public", "void", "checkParameterizedTypeBounds", "(", ")", "{", "for", "(", "int", "i", "=", "0", ",", "l", "=", "this", ".", "deferredBoundChecks", "==", "null", "?", "0", ":", "this", ".", "deferredBoundChecks", ".", "size", "(", ")", ";", "i", "<", "l", ";", "i", "++", ")", "(", "(", "TypeReference", ")", "this", ".", "deferredBoundChecks", ".", "get", "(", "i", ")", ")", ".", "checkBounds", "(", "this", ")", ";", "this", ".", "deferredBoundChecks", "=", "null", ";", "ReferenceBinding", "[", "]", "memberTypes", "=", "this", ".", "referenceContext", ".", "binding", ".", "memberTypes", ";", "if", "(", "memberTypes", "!=", "null", "&&", "memberTypes", "!=", "Binding", ".", "NO_MEMBER_TYPES", ")", "for", "(", "int", "i", "=", "0", ",", "size", "=", "memberTypes", ".", "length", ";", "i", "<", "size", ";", "i", "++", ")", "(", "(", "SourceTypeBinding", ")", "memberTypes", "[", "i", "]", ")", ".", "scope", ".", "checkParameterizedTypeBounds", "(", ")", ";", "}", "private", "void", "connectMemberTypes", "(", ")", "{", "SourceTypeBinding", "sourceType", "=", "this", ".", "referenceContext", ".", "binding", ";", "ReferenceBinding", "[", "]", "memberTypes", "=", "sourceType", ".", "memberTypes", ";", "if", "(", "memberTypes", "!=", "null", "&&", "memberTypes", "!=", "Binding", ".", "NO_MEMBER_TYPES", ")", "{", "for", "(", "int", "i", "=", "0", ",", "size", "=", "memberTypes", ".", "length", ";", "i", "<", "size", ";", "i", "++", ")", "(", "(", "SourceTypeBinding", ")", "memberTypes", "[", "i", "]", ")", ".", "scope", ".", "connectTypeHierarchy", "(", ")", ";", "}", "}", "private", "boolean", "connectSuperclass", "(", ")", "{", "SourceTypeBinding", "sourceType", "=", "this", ".", "referenceContext", ".", "binding", ";", "if", "(", "sourceType", ".", "id", "==", "TypeIds", ".", "T_JavaLangObject", ")", "{", "sourceType", ".", "superclass", "=", "null", ";", "sourceType", ".", "superInterfaces", "=", "Binding", ".", "NO_SUPERINTERFACES", ";", "if", "(", "!", "sourceType", ".", "isClass", "(", ")", ")", "problemReporter", "(", ")", ".", "objectMustBeClass", "(", "sourceType", ")", ";", "if", "(", "this", ".", "referenceContext", ".", "superclass", "!=", "null", "||", "(", "this", ".", "referenceContext", ".", "superInterfaces", "!=", "null", "&&", "this", ".", "referenceContext", ".", "superInterfaces", ".", "length", ">", "0", ")", ")", "problemReporter", "(", ")", ".", "objectCannotHaveSuperTypes", "(", "sourceType", ")", ";", "return", "true", ";", "}", "if", "(", "this", ".", "referenceContext", ".", "superclass", "==", "null", ")", "{", "if", "(", "sourceType", ".", "isEnum", "(", ")", "&&", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "return", "connectEnumSuperclass", "(", ")", ";", "sourceType", ".", "superclass", "=", "getJavaLangObject", "(", ")", ";", "return", "!", "detectHierarchyCycle", "(", "sourceType", ",", "sourceType", ".", "superclass", ",", "null", ")", ";", "}", "TypeReference", "superclassRef", "=", "this", ".", "referenceContext", ".", "superclass", ";", "ReferenceBinding", "superclass", "=", "findSupertype", "(", "superclassRef", ")", ";", "if", "(", "superclass", "!=", "null", ")", "{", "if", "(", "!", "superclass", ".", "isClass", "(", ")", "&&", "(", "superclass", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "==", "0", ")", "{", "if", "(", "shouldReport", "(", "IProblem", ".", "SuperclassMustBeAClass", ")", ")", "problemReporter", "(", ")", ".", "superclassMustBeAClass", "(", "sourceType", ",", "superclassRef", ",", "superclass", ")", ";", "}", "else", "if", "(", "superclass", ".", "isFinal", "(", ")", ")", "{", "problemReporter", "(", ")", ".", "classExtendFinalClass", "(", "sourceType", ",", "superclassRef", ",", "superclass", ")", ";", "}", "else", "if", "(", "(", "superclass", ".", "tagBits", "&", "TagBits", ".", "HasDirectWildcard", ")", "!=", "0", ")", "{", "problemReporter", "(", ")", ".", "superTypeCannotUseWildcard", "(", "sourceType", ",", "superclassRef", ",", "superclass", ")", ";", "}", "else", "if", "(", "superclass", ".", "erasure", "(", ")", ".", "id", "==", "TypeIds", ".", "T_JavaLangEnum", ")", "{", "problemReporter", "(", ")", ".", "cannotExtendEnum", "(", "sourceType", ",", "superclassRef", ",", "superclass", ")", ";", "}", "else", "if", "(", "(", "superclass", ".", "tagBits", "&", "TagBits", ".", "HierarchyHasProblems", ")", "!=", "0", "||", "!", "superclassRef", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "sourceType", ".", "superclass", "=", "superclass", ";", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "return", "superclassRef", ".", "resolvedType", ".", "isValidBinding", "(", ")", ";", "}", "else", "{", "sourceType", ".", "superclass", "=", "superclass", ";", "return", "true", ";", "}", "}", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "sourceType", ".", "superclass", "=", "getJavaLangObject", "(", ")", ";", "if", "(", "(", "sourceType", ".", "superclass", ".", "tagBits", "&", "TagBits", ".", "BeginHierarchyCheck", ")", "==", "0", ")", "detectHierarchyCycle", "(", "sourceType", ",", "sourceType", ".", "superclass", ",", "null", ")", ";", "return", "false", ";", "}", "public", "boolean", "shouldReport", "(", "int", "i", ")", "{", "return", "true", ";", "}", "private", "boolean", "connectEnumSuperclass", "(", ")", "{", "SourceTypeBinding", "sourceType", "=", "this", ".", "referenceContext", ".", "binding", ";", "ReferenceBinding", "rootEnumType", "=", "getJavaLangEnum", "(", ")", ";", "boolean", "foundCycle", "=", "detectHierarchyCycle", "(", "sourceType", ",", "rootEnumType", ",", "null", ")", ";", "TypeVariableBinding", "[", "]", "refTypeVariables", "=", "rootEnumType", ".", "typeVariables", "(", ")", ";", "if", "(", "refTypeVariables", "==", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "problemReporter", "(", ")", ".", "nonGenericTypeCannotBeParameterized", "(", "0", ",", "null", ",", "rootEnumType", ",", "new", "TypeBinding", "[", "]", "{", "sourceType", "}", ")", ";", "return", "false", ";", "}", "else", "if", "(", "1", "!=", "refTypeVariables", ".", "length", ")", "{", "problemReporter", "(", ")", ".", "incorrectArityForParameterizedType", "(", "null", ",", "rootEnumType", ",", "new", "TypeBinding", "[", "]", "{", "sourceType", "}", ")", ";", "return", "false", ";", "}", "ParameterizedTypeBinding", "superType", "=", "environment", "(", ")", ".", "createParameterizedType", "(", "rootEnumType", ",", "new", "TypeBinding", "[", "]", "{", "environment", "(", ")", ".", "convertToRawType", "(", "sourceType", ",", "false", ")", ",", "}", ",", "null", ")", ";", "sourceType", ".", "tagBits", "|=", "(", "superType", ".", "tagBits", "&", "TagBits", ".", "HierarchyHasProblems", ")", ";", "sourceType", ".", "superclass", "=", "superType", ";", "if", "(", "refTypeVariables", "[", "0", "]", ".", "boundCheck", "(", "superType", ",", "sourceType", ")", "!=", "TypeConstants", ".", "OK", ")", "{", "problemReporter", "(", ")", ".", "typeMismatchError", "(", "rootEnumType", ",", "refTypeVariables", "[", "0", "]", ",", "sourceType", ",", "null", ")", ";", "}", "return", "!", "foundCycle", ";", "}", "protected", "boolean", "connectSuperInterfaces", "(", ")", "{", "SourceTypeBinding", "sourceType", "=", "this", ".", "referenceContext", ".", "binding", ";", "sourceType", ".", "superInterfaces", "=", "Binding", ".", "NO_SUPERINTERFACES", ";", "if", "(", "this", ".", "referenceContext", ".", "superInterfaces", "==", "null", ")", "{", "if", "(", "sourceType", ".", "isAnnotationType", "(", ")", "&&", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "ReferenceBinding", "annotationType", "=", "getJavaLangAnnotationAnnotation", "(", ")", ";", "boolean", "foundCycle", "=", "detectHierarchyCycle", "(", "sourceType", ",", "annotationType", ",", "null", ")", ";", "sourceType", ".", "superInterfaces", "=", "new", "ReferenceBinding", "[", "]", "{", "annotationType", "}", ";", "return", "!", "foundCycle", ";", "}", "return", "true", ";", "}", "if", "(", "sourceType", ".", "id", "==", "TypeIds", ".", "T_JavaLangObject", ")", "return", "true", ";", "boolean", "noProblems", "=", "true", ";", "int", "length", "=", "this", ".", "referenceContext", ".", "superInterfaces", ".", "length", ";", "ReferenceBinding", "[", "]", "interfaceBindings", "=", "new", "ReferenceBinding", "[", "length", "]", ";", "int", "count", "=", "0", ";", "nextInterface", ":", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeReference", "superInterfaceRef", "=", "this", ".", "referenceContext", ".", "superInterfaces", "[", "i", "]", ";", "ReferenceBinding", "superInterface", "=", "findSupertype", "(", "superInterfaceRef", ")", ";", "if", "(", "superInterface", "==", "null", ")", "{", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "noProblems", "=", "false", ";", "continue", "nextInterface", ";", "}", "for", "(", "int", "j", "=", "0", ";", "j", "<", "i", ";", "j", "++", ")", "{", "if", "(", "interfaceBindings", "[", "j", "]", "==", "superInterface", ")", "{", "problemReporter", "(", ")", ".", "duplicateSuperinterface", "(", "sourceType", ",", "superInterfaceRef", ",", "superInterface", ")", ";", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "noProblems", "=", "false", ";", "continue", "nextInterface", ";", "}", "}", "if", "(", "!", "superInterface", ".", "isInterface", "(", ")", "&&", "(", "superInterface", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "==", "0", ")", "{", "problemReporter", "(", ")", ".", "superinterfaceMustBeAnInterface", "(", "sourceType", ",", "superInterfaceRef", ",", "superInterface", ")", ";", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "noProblems", "=", "false", ";", "continue", "nextInterface", ";", "}", "else", "if", "(", "superInterface", ".", "isAnnotationType", "(", ")", ")", "{", "problemReporter", "(", ")", ".", "annotationTypeUsedAsSuperinterface", "(", "sourceType", ",", "superInterfaceRef", ",", "superInterface", ")", ";", "}", "if", "(", "(", "superInterface", ".", "tagBits", "&", "TagBits", ".", "HasDirectWildcard", ")", "!=", "0", ")", "{", "problemReporter", "(", ")", ".", "superTypeCannotUseWildcard", "(", "sourceType", ",", "superInterfaceRef", ",", "superInterface", ")", ";", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "noProblems", "=", "false", ";", "continue", "nextInterface", ";", "}", "if", "(", "(", "superInterface", ".", "tagBits", "&", "TagBits", ".", "HierarchyHasProblems", ")", "!=", "0", "||", "!", "superInterfaceRef", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "noProblems", "&=", "superInterfaceRef", ".", "resolvedType", ".", "isValidBinding", "(", ")", ";", "}", "interfaceBindings", "[", "count", "++", "]", "=", "superInterface", ";", "}", "if", "(", "count", ">", "0", ")", "{", "if", "(", "count", "!=", "length", ")", "System", ".", "arraycopy", "(", "interfaceBindings", ",", "0", ",", "interfaceBindings", "=", "new", "ReferenceBinding", "[", "count", "]", ",", "0", ",", "count", ")", ";", "sourceType", ".", "superInterfaces", "=", "interfaceBindings", ";", "}", "return", "noProblems", ";", "}", "void", "connectTypeHierarchy", "(", ")", "{", "SourceTypeBinding", "sourceType", "=", "this", ".", "referenceContext", ".", "binding", ";", "if", "(", "(", "sourceType", ".", "tagBits", "&", "TagBits", ".", "BeginHierarchyCheck", ")", "==", "0", ")", "{", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "BeginHierarchyCheck", ";", "boolean", "noProblems", "=", "connectSuperclass", "(", ")", ";", "noProblems", "&=", "connectSuperInterfaces", "(", ")", ";", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "EndHierarchyCheck", ";", "noProblems", "&=", "connectTypeVariables", "(", "this", ".", "referenceContext", ".", "typeParameters", ",", "false", ")", ";", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "TypeVariablesAreConnected", ";", "if", "(", "noProblems", "&&", "sourceType", ".", "isHierarchyInconsistent", "(", ")", ")", "problemReporter", "(", ")", ".", "hierarchyHasProblems", "(", "sourceType", ")", ";", "}", "connectMemberTypes", "(", ")", ";", "LookupEnvironment", "env", "=", "environment", "(", ")", ";", "try", "{", "env", ".", "missingClassFileLocation", "=", "this", ".", "referenceContext", ";", "checkForInheritedMemberTypes", "(", "sourceType", ")", ";", "}", "catch", "(", "AbortCompilation", "e", ")", "{", "e", ".", "updateContext", "(", "this", ".", "referenceContext", ",", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ")", ";", "throw", "e", ";", "}", "finally", "{", "env", ".", "missingClassFileLocation", "=", "null", ";", "}", "}", "private", "void", "connectTypeHierarchyWithoutMembers", "(", ")", "{", "if", "(", "this", ".", "parent", "instanceof", "CompilationUnitScope", ")", "{", "if", "(", "(", "(", "CompilationUnitScope", ")", "this", ".", "parent", ")", ".", "imports", "==", "null", ")", "(", "(", "CompilationUnitScope", ")", "this", ".", "parent", ")", ".", "checkAndSetImports", "(", ")", ";", "}", "else", "if", "(", "this", ".", "parent", "instanceof", "ClassScope", ")", "{", "(", "(", "ClassScope", ")", "this", ".", "parent", ")", ".", "connectTypeHierarchyWithoutMembers", "(", ")", ";", "}", "SourceTypeBinding", "sourceType", "=", "this", ".", "referenceContext", ".", "binding", ";", "if", "(", "(", "sourceType", ".", "tagBits", "&", "TagBits", ".", "BeginHierarchyCheck", ")", "!=", "0", ")", "return", ";", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "BeginHierarchyCheck", ";", "boolean", "noProblems", "=", "connectSuperclass", "(", ")", ";", "noProblems", "&=", "connectSuperInterfaces", "(", ")", ";", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "EndHierarchyCheck", ";", "noProblems", "&=", "connectTypeVariables", "(", "this", ".", "referenceContext", ".", "typeParameters", ",", "false", ")", ";", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "TypeVariablesAreConnected", ";", "if", "(", "noProblems", "&&", "sourceType", ".", "isHierarchyInconsistent", "(", ")", ")", "problemReporter", "(", ")", ".", "hierarchyHasProblems", "(", "sourceType", ")", ";", "}", "public", "boolean", "detectHierarchyCycle", "(", "TypeBinding", "superType", ",", "TypeReference", "reference", ")", "{", "if", "(", "!", "(", "superType", "instanceof", "ReferenceBinding", ")", ")", "return", "false", ";", "if", "(", "reference", "==", "this", ".", "superTypeReference", ")", "{", "if", "(", "superType", ".", "isTypeVariable", "(", ")", ")", "return", "false", ";", "if", "(", "superType", ".", "isParameterizedType", "(", ")", ")", "superType", "=", "(", "(", "ParameterizedTypeBinding", ")", "superType", ")", ".", "genericType", "(", ")", ";", "compilationUnitScope", "(", ")", ".", "recordSuperTypeReference", "(", "superType", ")", ";", "return", "detectHierarchyCycle", "(", "this", ".", "referenceContext", ".", "binding", ",", "(", "ReferenceBinding", ")", "superType", ",", "reference", ")", ";", "}", "if", "(", "(", "superType", ".", "tagBits", "&", "TagBits", ".", "BeginHierarchyCheck", ")", "==", "0", "&&", "superType", "instanceof", "SourceTypeBinding", ")", "(", "(", "SourceTypeBinding", ")", "superType", ")", ".", "scope", ".", "connectTypeHierarchyWithoutMembers", "(", ")", ";", "return", "false", ";", "}", "private", "boolean", "detectHierarchyCycle", "(", "SourceTypeBinding", "sourceType", ",", "ReferenceBinding", "superType", ",", "TypeReference", "reference", ")", "{", "if", "(", "superType", ".", "isRawType", "(", ")", ")", "superType", "=", "(", "(", "RawTypeBinding", ")", "superType", ")", ".", "genericType", "(", ")", ";", "if", "(", "sourceType", "==", "superType", ")", "{", "problemReporter", "(", ")", ".", "hierarchyCircularity", "(", "sourceType", ",", "superType", ",", "reference", ")", ";", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "return", "true", ";", "}", "if", "(", "superType", ".", "isMemberType", "(", ")", ")", "{", "ReferenceBinding", "current", "=", "superType", ".", "enclosingType", "(", ")", ";", "do", "{", "if", "(", "current", ".", "isHierarchyBeingActivelyConnected", "(", ")", "&&", "current", "==", "sourceType", ")", "{", "problemReporter", "(", ")", ".", "hierarchyCircularity", "(", "sourceType", ",", "current", ",", "reference", ")", ";", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "current", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "return", "true", ";", "}", "}", "while", "(", "(", "current", "=", "current", ".", "enclosingType", "(", ")", ")", "!=", "null", ")", ";", "}", "if", "(", "superType", ".", "isBinaryBinding", "(", ")", ")", "{", "boolean", "hasCycle", "=", "false", ";", "ReferenceBinding", "parentType", "=", "superType", ".", "superclass", "(", ")", ";", "if", "(", "parentType", "!=", "null", ")", "{", "if", "(", "sourceType", "==", "parentType", ")", "{", "problemReporter", "(", ")", ".", "hierarchyCircularity", "(", "sourceType", ",", "superType", ",", "reference", ")", ";", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "superType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "return", "true", ";", "}", "if", "(", "parentType", ".", "isParameterizedType", "(", ")", ")", "parentType", "=", "(", "(", "ParameterizedTypeBinding", ")", "parentType", ")", ".", "genericType", "(", ")", ";", "hasCycle", "|=", "detectHierarchyCycle", "(", "sourceType", ",", "parentType", ",", "reference", ")", ";", "if", "(", "(", "parentType", ".", "tagBits", "&", "TagBits", ".", "HierarchyHasProblems", ")", "!=", "0", ")", "{", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "parentType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "}", "}", "ReferenceBinding", "[", "]", "itsInterfaces", "=", "superType", ".", "superInterfaces", "(", ")", ";", "if", "(", "itsInterfaces", "!=", "null", "&&", "itsInterfaces", "!=", "Binding", ".", "NO_SUPERINTERFACES", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "itsInterfaces", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "ReferenceBinding", "anInterface", "=", "itsInterfaces", "[", "i", "]", ";", "if", "(", "sourceType", "==", "anInterface", ")", "{", "problemReporter", "(", ")", ".", "hierarchyCircularity", "(", "sourceType", ",", "superType", ",", "reference", ")", ";", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "superType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "return", "true", ";", "}", "if", "(", "anInterface", ".", "isParameterizedType", "(", ")", ")", "anInterface", "=", "(", "(", "ParameterizedTypeBinding", ")", "anInterface", ")", ".", "genericType", "(", ")", ";", "hasCycle", "|=", "detectHierarchyCycle", "(", "sourceType", ",", "anInterface", ",", "reference", ")", ";", "if", "(", "(", "anInterface", ".", "tagBits", "&", "TagBits", ".", "HierarchyHasProblems", ")", "!=", "0", ")", "{", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "superType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "}", "}", "}", "return", "hasCycle", ";", "}", "if", "(", "superType", ".", "isHierarchyBeingActivelyConnected", "(", ")", ")", "{", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeReference", "ref", "=", "(", "(", "SourceTypeBinding", ")", "superType", ")", ".", "scope", ".", "superTypeReference", ";", "if", "(", "ref", "!=", "null", "&&", "(", "ref", ".", "resolvedType", "==", "null", "||", "(", "(", "ReferenceBinding", ")", "ref", ".", "resolvedType", ")", ".", "isHierarchyBeingActivelyConnected", "(", ")", ")", ")", "{", "problemReporter", "(", ")", ".", "hierarchyCircularity", "(", "sourceType", ",", "superType", ",", "reference", ")", ";", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "superType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "return", "true", ";", "}", "}", "if", "(", "(", "superType", ".", "tagBits", "&", "TagBits", ".", "BeginHierarchyCheck", ")", "==", "0", ")", "(", "(", "SourceTypeBinding", ")", "superType", ")", ".", "scope", ".", "connectTypeHierarchyWithoutMembers", "(", ")", ";", "if", "(", "(", "superType", ".", "tagBits", "&", "TagBits", ".", "HierarchyHasProblems", ")", "!=", "0", ")", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "return", "false", ";", "}", "private", "ReferenceBinding", "findSupertype", "(", "TypeReference", "typeReference", ")", "{", "CompilationUnitScope", "unitScope", "=", "compilationUnitScope", "(", ")", ";", "LookupEnvironment", "env", "=", "unitScope", ".", "environment", ";", "try", "{", "env", ".", "missingClassFileLocation", "=", "typeReference", ";", "typeReference", ".", "aboutToResolve", "(", "this", ")", ";", "unitScope", ".", "recordQualifiedReference", "(", "typeReference", ".", "getTypeName", "(", ")", ")", ";", "this", ".", "superTypeReference", "=", "typeReference", ";", "ReferenceBinding", "superType", "=", "(", "ReferenceBinding", ")", "typeReference", ".", "resolveSuperType", "(", "this", ")", ";", "return", "superType", ";", "}", "catch", "(", "AbortCompilation", "e", ")", "{", "SourceTypeBinding", "sourceType", "=", "this", ".", "referenceContext", ".", "binding", ";", "if", "(", "sourceType", ".", "superInterfaces", "==", "null", ")", "sourceType", ".", "superInterfaces", "=", "Binding", ".", "NO_SUPERINTERFACES", ";", "e", ".", "updateContext", "(", "typeReference", ",", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ")", ";", "throw", "e", ";", "}", "finally", "{", "env", ".", "missingClassFileLocation", "=", "null", ";", "this", ".", "superTypeReference", "=", "null", ";", "}", "}", "public", "ProblemReporter", "problemReporter", "(", ")", "{", "MethodScope", "outerMethodScope", ";", "if", "(", "(", "outerMethodScope", "=", "outerMostMethodScope", "(", ")", ")", "==", "null", ")", "{", "ProblemReporter", "problemReporter", "=", "referenceCompilationUnit", "(", ")", ".", "problemReporter", ";", "problemReporter", ".", "referenceContext", "=", "this", ".", "referenceContext", ";", "return", "problemReporter", ";", "}", "return", "outerMethodScope", ".", "problemReporter", "(", ")", ";", "}", "public", "TypeDeclaration", "referenceType", "(", ")", "{", "return", "this", ".", "referenceContext", ";", "}", "public", "String", "toString", "(", ")", "{", "if", "(", "this", ".", "referenceContext", "!=", "null", ")", "return", "\"\"", "+", "this", ".", "referenceContext", ".", "binding", ".", "toString", "(", ")", ";", "return", "\"\"", ";", "}", "public", "MethodBinding", "[", "]", "getAnyExtraMethods", "(", "char", "[", "]", "selector", ")", "{", "return", "null", ";", "}", "}", "</s>" ]
5,607
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "public", "class", "ProblemPackageBinding", "extends", "PackageBinding", "{", "private", "int", "problemId", ";", "ProblemPackageBinding", "(", "char", "[", "]", "[", "]", "compoundName", ",", "int", "problemId", ")", "{", "this", ".", "compoundName", "=", "compoundName", ";", "this", ".", "problemId", "=", "problemId", ";", "}", "ProblemPackageBinding", "(", "char", "[", "]", "name", ",", "int", "problemId", ")", "{", "this", "(", "new", "char", "[", "]", "[", "]", "{", "name", "}", ",", "problemId", ")", ";", "}", "public", "final", "int", "problemId", "(", ")", "{", "return", "this", ".", "problemId", ";", "}", "}", "</s>" ]
5,608
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "public", "abstract", "class", "VariableBinding", "extends", "Binding", "{", "public", "int", "modifiers", ";", "public", "TypeBinding", "type", ";", "public", "char", "[", "]", "name", ";", "protected", "Constant", "constant", ";", "public", "int", "id", ";", "public", "long", "tagBits", ";", "public", "VariableBinding", "(", "char", "[", "]", "name", ",", "TypeBinding", "type", ",", "int", "modifiers", ",", "Constant", "constant", ")", "{", "this", ".", "name", "=", "name", ";", "this", ".", "type", "=", "type", ";", "this", ".", "modifiers", "=", "modifiers", ";", "this", ".", "constant", "=", "constant", ";", "if", "(", "type", "!=", "null", ")", "{", "this", ".", "tagBits", "|=", "(", "type", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", ";", "}", "}", "public", "Constant", "constant", "(", ")", "{", "return", "this", ".", "constant", ";", "}", "public", "abstract", "AnnotationBinding", "[", "]", "getAnnotations", "(", ")", ";", "public", "final", "boolean", "isBlankFinal", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccBlankFinal", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isFinal", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccFinal", ")", "!=", "0", ";", "}", "public", "char", "[", "]", "readableName", "(", ")", "{", "return", "this", ".", "name", ";", "}", "public", "void", "setConstant", "(", "Constant", "constant", ")", "{", "this", ".", "constant", "=", "constant", ";", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "output", "=", "new", "StringBuffer", "(", "10", ")", ";", "ASTNode", ".", "printModifiers", "(", "this", ".", "modifiers", ",", "output", ")", ";", "if", "(", "(", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccUnresolved", ")", "!=", "0", ")", "{", "output", ".", "append", "(", "\"\"", ")", ";", "}", "output", ".", "append", "(", "this", ".", "type", "!=", "null", "?", "this", ".", "type", ".", "debugName", "(", ")", ":", "\"<no", "type>\"", ")", ";", "output", ".", "append", "(", "\"", "\"", ")", ";", "output", ".", "append", "(", "(", "this", ".", "name", "!=", "null", ")", "?", "new", "String", "(", "this", ".", "name", ")", ":", "\"<no", "name>\"", ")", ";", "return", "output", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
5,609
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "public", "interface", "InvocationSite", "{", "TypeBinding", "[", "]", "genericTypeArguments", "(", ")", ";", "boolean", "isSuperAccess", "(", ")", ";", "boolean", "isTypeAccess", "(", ")", ";", "void", "setActualReceiverType", "(", "ReferenceBinding", "receiverType", ")", ";", "void", "setDepth", "(", "int", "depth", ")", ";", "void", "setFieldIndex", "(", "int", "depth", ")", ";", "int", "sourceEnd", "(", ")", ";", "int", "sourceStart", "(", ")", ";", "TypeBinding", "expectedType", "(", ")", ";", "}", "</s>" ]
5,610
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "public", "interface", "TypeIds", "{", "final", "int", "T_undefined", "=", "0", ";", "final", "int", "T_JavaLangObject", "=", "1", ";", "final", "int", "T_char", "=", "2", ";", "final", "int", "T_byte", "=", "3", ";", "final", "int", "T_short", "=", "4", ";", "final", "int", "T_boolean", "=", "5", ";", "final", "int", "T_void", "=", "6", ";", "final", "int", "T_long", "=", "7", ";", "final", "int", "T_double", "=", "8", ";", "final", "int", "T_float", "=", "9", ";", "final", "int", "T_int", "=", "10", ";", "final", "int", "T_JavaLangString", "=", "11", ";", "final", "int", "T_null", "=", "12", ";", "final", "int", "T_JavaLangClass", "=", "16", ";", "final", "int", "T_JavaLangStringBuffer", "=", "17", ";", "final", "int", "T_JavaLangSystem", "=", "18", ";", "final", "int", "T_JavaLangError", "=", "19", ";", "final", "int", "T_JavaLangReflectConstructor", "=", "20", ";", "final", "int", "T_JavaLangThrowable", "=", "21", ";", "final", "int", "T_JavaLangNoClassDefError", "=", "22", ";", "final", "int", "T_JavaLangClassNotFoundException", "=", "23", ";", "final", "int", "T_JavaLangRuntimeException", "=", "24", ";", "final", "int", "T_JavaLangException", "=", "25", ";", "final", "int", "T_JavaLangByte", "=", "26", ";", "final", "int", "T_JavaLangShort", "=", "27", ";", "final", "int", "T_JavaLangCharacter", "=", "28", ";", "final", "int", "T_JavaLangInteger", "=", "29", ";", "final", "int", "T_JavaLangLong", "=", "30", ";", "final", "int", "T_JavaLangFloat", "=", "31", ";", "final", "int", "T_JavaLangDouble", "=", "32", ";", "final", "int", "T_JavaLangBoolean", "=", "33", ";", "final", "int", "T_JavaLangVoid", "=", "34", ";", "final", "int", "T_JavaLangAssertionError", "=", "35", ";", "final", "int", "T_JavaLangCloneable", "=", "36", ";", "final", "int", "T_JavaIoSerializable", "=", "37", ";", "final", "int", "T_JavaLangIterable", "=", "38", ";", "final", "int", "T_JavaUtilIterator", "=", "39", ";", "final", "int", "T_JavaLangStringBuilder", "=", "40", ";", "final", "int", "T_JavaLangEnum", "=", "41", ";", "final", "int", "T_JavaLangIllegalArgumentException", "=", "42", ";", "final", "int", "T_JavaLangAnnotationAnnotation", "=", "43", ";", "final", "int", "T_JavaLangDeprecated", "=", "44", ";", "final", "int", "T_JavaLangAnnotationDocumented", "=", "45", ";", "final", "int", "T_JavaLangAnnotationInherited", "=", "46", ";", "final", "int", "T_JavaLangOverride", "=", "47", ";", "final", "int", "T_JavaLangAnnotationRetention", "=", "48", ";", "final", "int", "T_JavaLangSuppressWarnings", "=", "49", ";", "final", "int", "T_JavaLangAnnotationTarget", "=", "50", ";", "final", "int", "T_JavaLangAnnotationRetentionPolicy", "=", "51", ";", "final", "int", "T_JavaLangAnnotationElementType", "=", "52", ";", "final", "int", "T_JavaIoPrintStream", "=", "53", ";", "final", "int", "T_JavaLangReflectField", "=", "54", ";", "final", "int", "T_JavaLangReflectMethod", "=", "55", ";", "final", "int", "T_JavaIoExternalizable", "=", "56", ";", "final", "int", "T_JavaIoObjectStreamException", "=", "57", ";", "final", "int", "T_JavaIoException", "=", "58", ";", "final", "int", "T_JavaUtilCollection", "=", "59", ";", "final", "int", "NoId", "=", "Integer", ".", "MAX_VALUE", ";", "public", "static", "final", "int", "IMPLICIT_CONVERSION_MASK", "=", "0xFF", ";", "public", "static", "final", "int", "COMPILE_TYPE_MASK", "=", "0xF", ";", "final", "int", "Boolean2Int", "=", "T_boolean", "+", "(", "T_int", "<<", "4", ")", ";", "final", "int", "Boolean2String", "=", "T_boolean", "+", "(", "T_JavaLangString", "<<", "4", ")", ";", "final", "int", "Boolean2Boolean", "=", "T_boolean", "+", "(", "T_boolean", "<<", "4", ")", ";", "final", "int", "Byte2Byte", "=", "T_byte", "+", "(", "T_byte", "<<", "4", ")", ";", "final", "int", "Byte2Short", "=", "T_byte", "+", "(", "T_short", "<<", "4", ")", ";", "final", "int", "Byte2Char", "=", "T_byte", "+", "(", "T_char", "<<", "4", ")", ";", "final", "int", "Byte2Int", "=", "T_byte", "+", "(", "T_int", "<<", "4", ")", ";", "final", "int", "Byte2Long", "=", "T_byte", "+", "(", "T_long", "<<", "4", ")", ";", "final", "int", "Byte2Float", "=", "T_byte", "+", "(", "T_float", "<<", "4", ")", ";", "final", "int", "Byte2Double", "=", "T_byte", "+", "(", "T_double", "<<", "4", ")", ";", "final", "int", "Byte2String", "=", "T_byte", "+", "(", "T_JavaLangString", "<<", "4", ")", ";", "final", "int", "Short2Byte", "=", "T_short", "+", "(", "T_byte", "<<", "4", ")", ";", "final", "int", "Short2Short", "=", "T_short", "+", "(", "T_short", "<<", "4", ")", ";", "final", "int", "Short2Char", "=", "T_short", "+", "(", "T_char", "<<", "4", ")", ";", "final", "int", "Short2Int", "=", "T_short", "+", "(", "T_int", "<<", "4", ")", ";", "final", "int", "Short2Long", "=", "T_short", "+", "(", "T_long", "<<", "4", ")", ";", "final", "int", "Short2Float", "=", "T_short", "+", "(", "T_float", "<<", "4", ")", ";", "final", "int", "Short2Double", "=", "T_short", "+", "(", "T_double", "<<", "4", ")", ";", "final", "int", "Short2String", "=", "T_short", "+", "(", "T_JavaLangString", "<<", "4", ")", ";", "final", "int", "Char2Byte", "=", "T_char", "+", "(", "T_byte", "<<", "4", ")", ";", "final", "int", "Char2Short", "=", "T_char", "+", "(", "T_short", "<<", "4", ")", ";", "final", "int", "Char2Char", "=", "T_char", "+", "(", "T_char", "<<", "4", ")", ";", "final", "int", "Char2Int", "=", "T_char", "+", "(", "T_int", "<<", "4", ")", ";", "final", "int", "Char2Long", "=", "T_char", "+", "(", "T_long", "<<", "4", ")", ";", "final", "int", "Char2Float", "=", "T_char", "+", "(", "T_float", "<<", "4", ")", ";", "final", "int", "Char2Double", "=", "T_char", "+", "(", "T_double", "<<", "4", ")", ";", "final", "int", "Char2String", "=", "T_char", "+", "(", "T_JavaLangString", "<<", "4", ")", ";", "final", "int", "Int2Byte", "=", "T_int", "+", "(", "T_byte", "<<", "4", ")", ";", "final", "int", "Int2Short", "=", "T_int", "+", "(", "T_short", "<<", "4", ")", ";", "final", "int", "Int2Char", "=", "T_int", "+", "(", "T_char", "<<", "4", ")", ";", "final", "int", "Int2Int", "=", "T_int", "+", "(", "T_int", "<<", "4", ")", ";", "final", "int", "Int2Long", "=", "T_int", "+", "(", "T_long", "<<", "4", ")", ";", "final", "int", "Int2Float", "=", "T_int", "+", "(", "T_float", "<<", "4", ")", ";", "final", "int", "Int2Double", "=", "T_int", "+", "(", "T_double", "<<", "4", ")", ";", "final", "int", "Int2String", "=", "T_int", "+", "(", "T_JavaLangString", "<<", "4", ")", ";", "final", "int", "Long2Byte", "=", "T_long", "+", "(", "T_byte", "<<", "4", ")", ";", "final", "int", "Long2Short", "=", "T_long", "+", "(", "T_short", "<<", "4", ")", ";", "final", "int", "Long2Char", "=", "T_long", "+", "(", "T_char", "<<", "4", ")", ";", "final", "int", "Long2Int", "=", "T_long", "+", "(", "T_int", "<<", "4", ")", ";", "final", "int", "Long2Long", "=", "T_long", "+", "(", "T_long", "<<", "4", ")", ";", "final", "int", "Long2Float", "=", "T_long", "+", "(", "T_float", "<<", "4", ")", ";", "final", "int", "Long2Double", "=", "T_long", "+", "(", "T_double", "<<", "4", ")", ";", "final", "int", "Long2String", "=", "T_long", "+", "(", "T_JavaLangString", "<<", "4", ")", ";", "final", "int", "Float2Byte", "=", "T_float", "+", "(", "T_byte", "<<", "4", ")", ";", "final", "int", "Float2Short", "=", "T_float", "+", "(", "T_short", "<<", "4", ")", ";", "final", "int", "Float2Char", "=", "T_float", "+", "(", "T_char", "<<", "4", ")", ";", "final", "int", "Float2Int", "=", "T_float", "+", "(", "T_int", "<<", "4", ")", ";", "final", "int", "Float2Long", "=", "T_float", "+", "(", "T_long", "<<", "4", ")", ";", "final", "int", "Float2Float", "=", "T_float", "+", "(", "T_float", "<<", "4", ")", ";", "final", "int", "Float2Double", "=", "T_float", "+", "(", "T_double", "<<", "4", ")", ";", "final", "int", "Float2String", "=", "T_float", "+", "(", "T_JavaLangString", "<<", "4", ")", ";", "final", "int", "Double2Byte", "=", "T_double", "+", "(", "T_byte", "<<", "4", ")", ";", "final", "int", "Double2Short", "=", "T_double", "+", "(", "T_short", "<<", "4", ")", ";", "final", "int", "Double2Char", "=", "T_double", "+", "(", "T_char", "<<", "4", ")", ";", "final", "int", "Double2Int", "=", "T_double", "+", "(", "T_int", "<<", "4", ")", ";", "final", "int", "Double2Long", "=", "T_double", "+", "(", "T_long", "<<", "4", ")", ";", "final", "int", "Double2Float", "=", "T_double", "+", "(", "T_float", "<<", "4", ")", ";", "final", "int", "Double2Double", "=", "T_double", "+", "(", "T_double", "<<", "4", ")", ";", "final", "int", "Double2String", "=", "T_double", "+", "(", "T_JavaLangString", "<<", "4", ")", ";", "final", "int", "String2String", "=", "T_JavaLangString", "+", "(", "T_JavaLangString", "<<", "4", ")", ";", "final", "int", "Object2String", "=", "T_JavaLangObject", "+", "(", "T_JavaLangString", "<<", "4", ")", ";", "final", "int", "Null2Null", "=", "T_null", "+", "(", "T_null", "<<", "4", ")", ";", "final", "int", "Null2String", "=", "T_null", "+", "(", "T_JavaLangString", "<<", "4", ")", ";", "final", "int", "Object2Object", "=", "T_JavaLangObject", "+", "(", "T_JavaLangObject", "<<", "4", ")", ";", "final", "int", "BOXING", "=", "0x200", ";", "final", "int", "UNBOXING", "=", "0x400", ";", "}", "</s>" ]
5,611
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "java", ".", "util", ".", "List", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Wildcard", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "public", "class", "WildcardBinding", "extends", "ReferenceBinding", "{", "public", "ReferenceBinding", "genericType", ";", "public", "int", "rank", ";", "public", "TypeBinding", "bound", ";", "public", "TypeBinding", "[", "]", "otherBounds", ";", "char", "[", "]", "genericSignature", ";", "public", "int", "boundKind", ";", "ReferenceBinding", "superclass", ";", "ReferenceBinding", "[", "]", "superInterfaces", ";", "TypeVariableBinding", "typeVariable", ";", "LookupEnvironment", "environment", ";", "public", "WildcardBinding", "(", "ReferenceBinding", "genericType", ",", "int", "rank", ",", "TypeBinding", "bound", ",", "TypeBinding", "[", "]", "otherBounds", ",", "int", "boundKind", ",", "LookupEnvironment", "environment", ")", "{", "this", ".", "rank", "=", "rank", ";", "this", ".", "boundKind", "=", "boundKind", ";", "this", ".", "modifiers", "=", "ClassFileConstants", ".", "AccPublic", "|", "ExtraCompilerModifiers", ".", "AccGenericSignature", ";", "this", ".", "environment", "=", "environment", ";", "initialize", "(", "genericType", ",", "bound", ",", "otherBounds", ")", ";", "if", "(", "genericType", "instanceof", "UnresolvedReferenceBinding", ")", "(", "(", "UnresolvedReferenceBinding", ")", "genericType", ")", ".", "addWrapper", "(", "this", ",", "environment", ")", ";", "if", "(", "bound", "instanceof", "UnresolvedReferenceBinding", ")", "(", "(", "UnresolvedReferenceBinding", ")", "bound", ")", ".", "addWrapper", "(", "this", ",", "environment", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "HasUnresolvedTypeVariables", ";", "}", "public", "int", "kind", "(", ")", "{", "return", "this", ".", "otherBounds", "==", "null", "?", "Binding", ".", "WILDCARD_TYPE", ":", "Binding", ".", "INTERSECTION_TYPE", ";", "}", "public", "boolean", "boundCheck", "(", "TypeBinding", "argumentType", ")", "{", "switch", "(", "this", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "UNBOUND", ":", "return", "true", ";", "case", "Wildcard", ".", "EXTENDS", ":", "if", "(", "!", "argumentType", ".", "isCompatibleWith", "(", "this", ".", "bound", ")", ")", "return", "false", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "otherBounds", "==", "null", "?", "0", ":", "this", ".", "otherBounds", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "!", "argumentType", ".", "isCompatibleWith", "(", "this", ".", "otherBounds", "[", "i", "]", ")", ")", "return", "false", ";", "}", "return", "true", ";", "default", ":", "return", "argumentType", ".", "isCompatibleWith", "(", "this", ".", "bound", ")", ";", "}", "}", "public", "boolean", "canBeInstantiated", "(", ")", "{", "return", "false", ";", "}", "public", "List", "collectMissingTypes", "(", "List", "missingTypes", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "missingTypes", "=", "this", ".", "bound", ".", "collectMissingTypes", "(", "missingTypes", ")", ";", "}", "return", "missingTypes", ";", "}", "public", "void", "collectSubstitutes", "(", "Scope", "scope", ",", "TypeBinding", "actualType", ",", "InferenceContext", "inferenceContext", ",", "int", "constraint", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "HasTypeVariable", ")", "==", "0", ")", "return", ";", "if", "(", "actualType", "==", "TypeBinding", ".", "NULL", ")", "return", ";", "if", "(", "actualType", ".", "isCapture", "(", ")", ")", "{", "CaptureBinding", "capture", "=", "(", "CaptureBinding", ")", "actualType", ";", "actualType", "=", "capture", ".", "wildcard", ";", "}", "switch", "(", "constraint", ")", "{", "case", "TypeConstants", ".", "CONSTRAINT_EXTENDS", ":", "switch", "(", "this", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "UNBOUND", ":", "break", ";", "case", "Wildcard", ".", "EXTENDS", ":", "switch", "(", "actualType", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "WILDCARD_TYPE", ":", "WildcardBinding", "actualWildcard", "=", "(", "WildcardBinding", ")", "actualType", ";", "switch", "(", "actualWildcard", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "UNBOUND", ":", "break", ";", "case", "Wildcard", ".", "EXTENDS", ":", "this", ".", "bound", ".", "collectSubstitutes", "(", "scope", ",", "actualWildcard", ".", "bound", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_EXTENDS", ")", ";", "break", ";", "case", "Wildcard", ".", "SUPER", ":", "break", ";", "}", "break", ";", "case", "Binding", ".", "INTERSECTION_TYPE", ":", "WildcardBinding", "actualIntersection", "=", "(", "WildcardBinding", ")", "actualType", ";", "this", ".", "bound", ".", "collectSubstitutes", "(", "scope", ",", "actualIntersection", ".", "bound", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_EXTENDS", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "actualIntersection", ".", "otherBounds", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "bound", ".", "collectSubstitutes", "(", "scope", ",", "actualIntersection", ".", "otherBounds", "[", "i", "]", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_EXTENDS", ")", ";", "}", "break", ";", "default", ":", "this", ".", "bound", ".", "collectSubstitutes", "(", "scope", ",", "actualType", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_EXTENDS", ")", ";", "break", ";", "}", "break", ";", "case", "Wildcard", ".", "SUPER", ":", "switch", "(", "actualType", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "WILDCARD_TYPE", ":", "WildcardBinding", "actualWildcard", "=", "(", "WildcardBinding", ")", "actualType", ";", "switch", "(", "actualWildcard", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "UNBOUND", ":", "break", ";", "case", "Wildcard", ".", "EXTENDS", ":", "break", ";", "case", "Wildcard", ".", "SUPER", ":", "this", ".", "bound", ".", "collectSubstitutes", "(", "scope", ",", "actualWildcard", ".", "bound", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_SUPER", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "actualWildcard", ".", "otherBounds", "==", "null", "?", "0", ":", "actualWildcard", ".", "otherBounds", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "bound", ".", "collectSubstitutes", "(", "scope", ",", "actualWildcard", ".", "otherBounds", "[", "i", "]", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_SUPER", ")", ";", "}", "break", ";", "}", "break", ";", "case", "Binding", ".", "INTERSECTION_TYPE", ":", "break", ";", "default", ":", "this", ".", "bound", ".", "collectSubstitutes", "(", "scope", ",", "actualType", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_SUPER", ")", ";", "break", ";", "}", "break", ";", "}", "break", ";", "case", "TypeConstants", ".", "CONSTRAINT_EQUAL", ":", "switch", "(", "this", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "UNBOUND", ":", "break", ";", "case", "Wildcard", ".", "EXTENDS", ":", "switch", "(", "actualType", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "WILDCARD_TYPE", ":", "WildcardBinding", "actualWildcard", "=", "(", "WildcardBinding", ")", "actualType", ";", "switch", "(", "actualWildcard", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "UNBOUND", ":", "break", ";", "case", "Wildcard", ".", "EXTENDS", ":", "this", ".", "bound", ".", "collectSubstitutes", "(", "scope", ",", "actualWildcard", ".", "bound", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_EQUAL", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "actualWildcard", ".", "otherBounds", "==", "null", "?", "0", ":", "actualWildcard", ".", "otherBounds", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "bound", ".", "collectSubstitutes", "(", "scope", ",", "actualWildcard", ".", "otherBounds", "[", "i", "]", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_EQUAL", ")", ";", "}", "break", ";", "case", "Wildcard", ".", "SUPER", ":", "break", ";", "}", "break", ";", "case", "Binding", ".", "INTERSECTION_TYPE", ":", "WildcardBinding", "actuaIntersection", "=", "(", "WildcardBinding", ")", "actualType", ";", "this", ".", "bound", ".", "collectSubstitutes", "(", "scope", ",", "actuaIntersection", ".", "bound", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_EQUAL", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "actuaIntersection", ".", "otherBounds", "==", "null", "?", "0", ":", "actuaIntersection", ".", "otherBounds", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "bound", ".", "collectSubstitutes", "(", "scope", ",", "actuaIntersection", ".", "otherBounds", "[", "i", "]", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_EQUAL", ")", ";", "}", "break", ";", "default", ":", "break", ";", "}", "break", ";", "case", "Wildcard", ".", "SUPER", ":", "switch", "(", "actualType", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "WILDCARD_TYPE", ":", "WildcardBinding", "actualWildcard", "=", "(", "WildcardBinding", ")", "actualType", ";", "switch", "(", "actualWildcard", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "UNBOUND", ":", "break", ";", "case", "Wildcard", ".", "EXTENDS", ":", "break", ";", "case", "Wildcard", ".", "SUPER", ":", "this", ".", "bound", ".", "collectSubstitutes", "(", "scope", ",", "actualWildcard", ".", "bound", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_EQUAL", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "actualWildcard", ".", "otherBounds", "==", "null", "?", "0", ":", "actualWildcard", ".", "otherBounds", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "bound", ".", "collectSubstitutes", "(", "scope", ",", "actualWildcard", ".", "otherBounds", "[", "i", "]", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_EQUAL", ")", ";", "}", "break", ";", "}", "break", ";", "case", "Binding", ".", "INTERSECTION_TYPE", ":", "break", ";", "default", ":", "break", ";", "}", "break", ";", "}", "break", ";", "case", "TypeConstants", ".", "CONSTRAINT_SUPER", ":", "switch", "(", "this", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "UNBOUND", ":", "break", ";", "case", "Wildcard", ".", "EXTENDS", ":", "switch", "(", "actualType", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "WILDCARD_TYPE", ":", "WildcardBinding", "actualWildcard", "=", "(", "WildcardBinding", ")", "actualType", ";", "switch", "(", "actualWildcard", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "UNBOUND", ":", "break", ";", "case", "Wildcard", ".", "EXTENDS", ":", "this", ".", "bound", ".", "collectSubstitutes", "(", "scope", ",", "actualWildcard", ".", "bound", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_SUPER", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "actualWildcard", ".", "otherBounds", "==", "null", "?", "0", ":", "actualWildcard", ".", "otherBounds", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "bound", ".", "collectSubstitutes", "(", "scope", ",", "actualWildcard", ".", "otherBounds", "[", "i", "]", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_SUPER", ")", ";", "}", "break", ";", "case", "Wildcard", ".", "SUPER", ":", "break", ";", "}", "break", ";", "case", "Binding", ".", "INTERSECTION_TYPE", ":", "WildcardBinding", "actualIntersection", "=", "(", "WildcardBinding", ")", "actualType", ";", "this", ".", "bound", ".", "collectSubstitutes", "(", "scope", ",", "actualIntersection", ".", "bound", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_SUPER", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "actualIntersection", ".", "otherBounds", "==", "null", "?", "0", ":", "actualIntersection", ".", "otherBounds", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "bound", ".", "collectSubstitutes", "(", "scope", ",", "actualIntersection", ".", "otherBounds", "[", "i", "]", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_SUPER", ")", ";", "}", "break", ";", "default", ":", "break", ";", "}", "break", ";", "case", "Wildcard", ".", "SUPER", ":", "switch", "(", "actualType", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "WILDCARD_TYPE", ":", "WildcardBinding", "actualWildcard", "=", "(", "WildcardBinding", ")", "actualType", ";", "switch", "(", "actualWildcard", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "UNBOUND", ":", "break", ";", "case", "Wildcard", ".", "EXTENDS", ":", "break", ";", "case", "Wildcard", ".", "SUPER", ":", "this", ".", "bound", ".", "collectSubstitutes", "(", "scope", ",", "actualWildcard", ".", "bound", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_SUPER", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "actualWildcard", ".", "otherBounds", "==", "null", "?", "0", ":", "actualWildcard", ".", "otherBounds", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "bound", ".", "collectSubstitutes", "(", "scope", ",", "actualWildcard", ".", "otherBounds", "[", "i", "]", ",", "inferenceContext", ",", "TypeConstants", ".", "CONSTRAINT_SUPER", ")", ";", "}", "break", ";", "}", "break", ";", "case", "Binding", ".", "INTERSECTION_TYPE", ":", "break", ";", "default", ":", "break", ";", "}", "break", ";", "}", "break", ";", "}", "}", "public", "char", "[", "]", "computeUniqueKey", "(", "boolean", "isLeaf", ")", "{", "char", "[", "]", "genericTypeKey", "=", "this", ".", "genericType", ".", "computeUniqueKey", "(", "false", ")", ";", "char", "[", "]", "wildCardKey", ";", "char", "[", "]", "rankComponent", "=", "(", "'{'", "+", "String", ".", "valueOf", "(", "this", ".", "rank", ")", "+", "'}'", ")", ".", "toCharArray", "(", ")", ";", "switch", "(", "this", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "UNBOUND", ":", "wildCardKey", "=", "TypeConstants", ".", "WILDCARD_STAR", ";", "break", ";", "case", "Wildcard", ".", "EXTENDS", ":", "wildCardKey", "=", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "WILDCARD_PLUS", ",", "this", ".", "bound", ".", "computeUniqueKey", "(", "false", ")", ")", ";", "break", ";", "default", ":", "wildCardKey", "=", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "WILDCARD_MINUS", ",", "this", ".", "bound", ".", "computeUniqueKey", "(", "false", ")", ")", ";", "break", ";", "}", "return", "CharOperation", ".", "concat", "(", "genericTypeKey", ",", "rankComponent", ",", "wildCardKey", ")", ";", "}", "public", "char", "[", "]", "constantPoolName", "(", ")", "{", "return", "erasure", "(", ")", ".", "constantPoolName", "(", ")", ";", "}", "public", "String", "debugName", "(", ")", "{", "return", "toString", "(", ")", ";", "}", "public", "TypeBinding", "erasure", "(", ")", "{", "if", "(", "this", ".", "otherBounds", "==", "null", ")", "{", "if", "(", "this", ".", "boundKind", "==", "Wildcard", ".", "EXTENDS", ")", "return", "this", ".", "bound", ".", "erasure", "(", ")", ";", "TypeVariableBinding", "var", "=", "typeVariable", "(", ")", ";", "if", "(", "var", "!=", "null", ")", "return", "var", ".", "erasure", "(", ")", ";", "return", "this", ".", "genericType", ";", "}", "return", "this", ".", "bound", ".", "id", "==", "TypeIds", ".", "T_JavaLangObject", "?", "this", ".", "otherBounds", "[", "0", "]", ".", "erasure", "(", ")", ":", "this", ".", "bound", ".", "erasure", "(", ")", ";", "}", "public", "char", "[", "]", "genericTypeSignature", "(", ")", "{", "if", "(", "this", ".", "genericSignature", "==", "null", ")", "{", "switch", "(", "this", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "UNBOUND", ":", "this", ".", "genericSignature", "=", "TypeConstants", ".", "WILDCARD_STAR", ";", "break", ";", "case", "Wildcard", ".", "EXTENDS", ":", "this", ".", "genericSignature", "=", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "WILDCARD_PLUS", ",", "this", ".", "bound", ".", "genericTypeSignature", "(", ")", ")", ";", "break", ";", "default", ":", "this", ".", "genericSignature", "=", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "WILDCARD_MINUS", ",", "this", ".", "bound", ".", "genericTypeSignature", "(", ")", ")", ";", "}", "}", "return", "this", ".", "genericSignature", ";", "}", "public", "int", "hashCode", "(", ")", "{", "return", "this", ".", "genericType", ".", "hashCode", "(", ")", ";", "}", "void", "initialize", "(", "ReferenceBinding", "someGenericType", ",", "TypeBinding", "someBound", ",", "TypeBinding", "[", "]", "someOtherBounds", ")", "{", "this", ".", "genericType", "=", "someGenericType", ";", "this", ".", "bound", "=", "someBound", ";", "this", ".", "otherBounds", "=", "someOtherBounds", ";", "if", "(", "someGenericType", "!=", "null", ")", "{", "this", ".", "fPackage", "=", "someGenericType", ".", "getPackage", "(", ")", ";", "}", "if", "(", "someBound", "!=", "null", ")", "{", "this", ".", "tagBits", "|=", "someBound", ".", "tagBits", "&", "(", "TagBits", ".", "HasTypeVariable", "|", "TagBits", ".", "HasMissingType", "|", "TagBits", ".", "ContainsNestedTypeReferences", ")", ";", "}", "if", "(", "someOtherBounds", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "someOtherBounds", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "TypeBinding", "someOtherBound", "=", "someOtherBounds", "[", "i", "]", ";", "this", ".", "tagBits", "|=", "someOtherBound", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ";", "}", "}", "}", "public", "boolean", "isSuperclassOf", "(", "ReferenceBinding", "otherType", ")", "{", "if", "(", "this", ".", "boundKind", "==", "Wildcard", ".", "SUPER", ")", "{", "if", "(", "this", ".", "bound", "instanceof", "ReferenceBinding", ")", "{", "return", "(", "(", "ReferenceBinding", ")", "this", ".", "bound", ")", ".", "isSuperclassOf", "(", "otherType", ")", ";", "}", "else", "{", "return", "otherType", ".", "id", "==", "TypeIds", ".", "T_JavaLangObject", ";", "}", "}", "return", "false", ";", "}", "public", "boolean", "isIntersectionType", "(", ")", "{", "return", "this", ".", "otherBounds", "!=", "null", ";", "}", "public", "boolean", "isHierarchyConnected", "(", ")", "{", "return", "this", ".", "superclass", "!=", "null", "&&", "this", ".", "superInterfaces", "!=", "null", ";", "}", "public", "boolean", "isUnboundWildcard", "(", ")", "{", "return", "this", ".", "boundKind", "==", "Wildcard", ".", "UNBOUND", ";", "}", "public", "boolean", "isWildcard", "(", ")", "{", "return", "true", ";", "}", "public", "char", "[", "]", "readableName", "(", ")", "{", "switch", "(", "this", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "UNBOUND", ":", "return", "TypeConstants", ".", "WILDCARD_NAME", ";", "case", "Wildcard", ".", "EXTENDS", ":", "if", "(", "this", ".", "otherBounds", "==", "null", ")", "return", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "WILDCARD_NAME", ",", "TypeConstants", ".", "WILDCARD_EXTENDS", ",", "this", ".", "bound", ".", "readableName", "(", ")", ")", ";", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "10", ")", ";", "buffer", ".", "append", "(", "this", ".", "bound", ".", "readableName", "(", ")", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "otherBounds", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "buffer", ".", "append", "(", "'&'", ")", ".", "append", "(", "this", ".", "otherBounds", "[", "i", "]", ".", "readableName", "(", ")", ")", ";", "}", "int", "length", ";", "char", "[", "]", "result", "=", "new", "char", "[", "length", "=", "buffer", ".", "length", "(", ")", "]", ";", "buffer", ".", "getChars", "(", "0", ",", "length", ",", "result", ",", "0", ")", ";", "return", "result", ";", "default", ":", "return", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "WILDCARD_NAME", ",", "TypeConstants", ".", "WILDCARD_SUPER", ",", "this", ".", "bound", ".", "readableName", "(", ")", ")", ";", "}", "}", "ReferenceBinding", "resolve", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "HasUnresolvedTypeVariables", ")", "==", "0", ")", "return", "this", ";", "this", ".", "tagBits", "&=", "~", "TagBits", ".", "HasUnresolvedTypeVariables", ";", "BinaryTypeBinding", ".", "resolveType", "(", "this", ".", "genericType", ",", "this", ".", "environment", ",", "false", ")", ";", "switch", "(", "this", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "EXTENDS", ":", "TypeBinding", "resolveType", "=", "BinaryTypeBinding", ".", "resolveType", "(", "this", ".", "bound", ",", "this", ".", "environment", ",", "true", ")", ";", "this", ".", "bound", "=", "resolveType", ";", "this", ".", "tagBits", "|=", "resolveType", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "otherBounds", "==", "null", "?", "0", ":", "this", ".", "otherBounds", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "resolveType", "=", "BinaryTypeBinding", ".", "resolveType", "(", "this", ".", "otherBounds", "[", "i", "]", ",", "this", ".", "environment", ",", "true", ")", ";", "this", ".", "otherBounds", "[", "i", "]", "=", "resolveType", ";", "this", ".", "tagBits", "|=", "resolveType", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ";", "}", "break", ";", "case", "Wildcard", ".", "SUPER", ":", "resolveType", "=", "BinaryTypeBinding", ".", "resolveType", "(", "this", ".", "bound", ",", "this", ".", "environment", ",", "true", ")", ";", "this", ".", "bound", "=", "resolveType", ";", "this", ".", "tagBits", "|=", "resolveType", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ";", "break", ";", "case", "Wildcard", ".", "UNBOUND", ":", "}", "return", "this", ";", "}", "public", "char", "[", "]", "shortReadableName", "(", ")", "{", "switch", "(", "this", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "UNBOUND", ":", "return", "TypeConstants", ".", "WILDCARD_NAME", ";", "case", "Wildcard", ".", "EXTENDS", ":", "if", "(", "this", ".", "otherBounds", "==", "null", ")", "return", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "WILDCARD_NAME", ",", "TypeConstants", ".", "WILDCARD_EXTENDS", ",", "this", ".", "bound", ".", "shortReadableName", "(", ")", ")", ";", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "10", ")", ";", "buffer", ".", "append", "(", "this", ".", "bound", ".", "shortReadableName", "(", ")", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "otherBounds", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "buffer", ".", "append", "(", "'&'", ")", ".", "append", "(", "this", ".", "otherBounds", "[", "i", "]", ".", "shortReadableName", "(", ")", ")", ";", "}", "int", "length", ";", "char", "[", "]", "result", "=", "new", "char", "[", "length", "=", "buffer", ".", "length", "(", ")", "]", ";", "buffer", ".", "getChars", "(", "0", ",", "length", ",", "result", ",", "0", ")", ";", "return", "result", ";", "default", ":", "return", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "WILDCARD_NAME", ",", "TypeConstants", ".", "WILDCARD_SUPER", ",", "this", ".", "bound", ".", "shortReadableName", "(", ")", ")", ";", "}", "}", "public", "char", "[", "]", "signature", "(", ")", "{", "if", "(", "this", ".", "signature", "==", "null", ")", "{", "switch", "(", "this", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "EXTENDS", ":", "return", "this", ".", "bound", ".", "signature", "(", ")", ";", "default", ":", "return", "typeVariable", "(", ")", ".", "signature", "(", ")", ";", "}", "}", "return", "this", ".", "signature", ";", "}", "public", "char", "[", "]", "sourceName", "(", ")", "{", "switch", "(", "this", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "UNBOUND", ":", "return", "TypeConstants", ".", "WILDCARD_NAME", ";", "case", "Wildcard", ".", "EXTENDS", ":", "return", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "WILDCARD_NAME", ",", "TypeConstants", ".", "WILDCARD_EXTENDS", ",", "this", ".", "bound", ".", "sourceName", "(", ")", ")", ";", "default", ":", "return", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "WILDCARD_NAME", ",", "TypeConstants", ".", "WILDCARD_SUPER", ",", "this", ".", "bound", ".", "sourceName", "(", ")", ")", ";", "}", "}", "public", "ReferenceBinding", "superclass", "(", ")", "{", "if", "(", "this", ".", "superclass", "==", "null", ")", "{", "TypeBinding", "superType", "=", "null", ";", "if", "(", "this", ".", "boundKind", "==", "Wildcard", ".", "EXTENDS", "&&", "!", "this", ".", "bound", ".", "isInterface", "(", ")", ")", "{", "superType", "=", "this", ".", "bound", ";", "}", "else", "{", "TypeVariableBinding", "variable", "=", "typeVariable", "(", ")", ";", "if", "(", "variable", "!=", "null", ")", "superType", "=", "variable", ".", "firstBound", ";", "}", "this", ".", "superclass", "=", "superType", "instanceof", "ReferenceBinding", "&&", "!", "superType", ".", "isInterface", "(", ")", "?", "(", "ReferenceBinding", ")", "superType", ":", "this", ".", "environment", ".", "getResolvedType", "(", "TypeConstants", ".", "JAVA_LANG_OBJECT", ",", "null", ")", ";", "}", "return", "this", ".", "superclass", ";", "}", "public", "ReferenceBinding", "[", "]", "superInterfaces", "(", ")", "{", "if", "(", "this", ".", "superInterfaces", "==", "null", ")", "{", "if", "(", "typeVariable", "(", ")", "!=", "null", ")", "{", "this", ".", "superInterfaces", "=", "this", ".", "typeVariable", ".", "superInterfaces", "(", ")", ";", "}", "else", "{", "this", ".", "superInterfaces", "=", "Binding", ".", "NO_SUPERINTERFACES", ";", "}", "if", "(", "this", ".", "boundKind", "==", "Wildcard", ".", "EXTENDS", ")", "{", "if", "(", "this", ".", "bound", ".", "isInterface", "(", ")", ")", "{", "int", "length", "=", "this", ".", "superInterfaces", ".", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "superInterfaces", ",", "0", ",", "this", ".", "superInterfaces", "=", "new", "ReferenceBinding", "[", "length", "+", "1", "]", ",", "1", ",", "length", ")", ";", "this", ".", "superInterfaces", "[", "0", "]", "=", "(", "ReferenceBinding", ")", "this", ".", "bound", ";", "}", "if", "(", "this", ".", "otherBounds", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "superInterfaces", ".", "length", ";", "int", "otherLength", "=", "this", ".", "otherBounds", ".", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "superInterfaces", ",", "0", ",", "this", ".", "superInterfaces", "=", "new", "ReferenceBinding", "[", "length", "+", "otherLength", "]", ",", "0", ",", "length", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "otherLength", ";", "i", "++", ")", "{", "this", ".", "superInterfaces", "[", "length", "+", "i", "]", "=", "(", "ReferenceBinding", ")", "this", ".", "otherBounds", "[", "i", "]", ";", "}", "}", "}", "}", "return", "this", ".", "superInterfaces", ";", "}", "public", "void", "swapUnresolved", "(", "UnresolvedReferenceBinding", "unresolvedType", ",", "ReferenceBinding", "resolvedType", ",", "LookupEnvironment", "env", ")", "{", "boolean", "affected", "=", "false", ";", "if", "(", "this", ".", "genericType", "==", "unresolvedType", ")", "{", "this", ".", "genericType", "=", "resolvedType", ";", "affected", "=", "true", ";", "}", "if", "(", "this", ".", "bound", "==", "unresolvedType", ")", "{", "this", ".", "bound", "=", "env", ".", "convertUnresolvedBinaryToRawType", "(", "resolvedType", ")", ";", "affected", "=", "true", ";", "}", "if", "(", "this", ".", "otherBounds", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "otherBounds", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "this", ".", "otherBounds", "[", "i", "]", "==", "unresolvedType", ")", "{", "this", ".", "otherBounds", "[", "i", "]", "=", "env", ".", "convertUnresolvedBinaryToRawType", "(", "resolvedType", ")", ";", "affected", "=", "true", ";", "}", "}", "}", "if", "(", "affected", ")", "initialize", "(", "this", ".", "genericType", ",", "this", ".", "bound", ",", "this", ".", "otherBounds", ")", ";", "}", "public", "String", "toString", "(", ")", "{", "switch", "(", "this", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "UNBOUND", ":", "return", "new", "String", "(", "TypeConstants", ".", "WILDCARD_NAME", ")", ";", "case", "Wildcard", ".", "EXTENDS", ":", "if", "(", "this", ".", "otherBounds", "==", "null", ")", "return", "new", "String", "(", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "WILDCARD_NAME", ",", "TypeConstants", ".", "WILDCARD_EXTENDS", ",", "this", ".", "bound", ".", "debugName", "(", ")", ".", "toCharArray", "(", ")", ")", ")", ";", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "this", ".", "bound", ".", "debugName", "(", ")", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "otherBounds", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "buffer", ".", "append", "(", "'&'", ")", ".", "append", "(", "this", ".", "otherBounds", "[", "i", "]", ".", "debugName", "(", ")", ")", ";", "}", "return", "buffer", ".", "toString", "(", ")", ";", "default", ":", "return", "new", "String", "(", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "WILDCARD_NAME", ",", "TypeConstants", ".", "WILDCARD_SUPER", ",", "this", ".", "bound", ".", "debugName", "(", ")", ".", "toCharArray", "(", ")", ")", ")", ";", "}", "}", "public", "TypeVariableBinding", "typeVariable", "(", ")", "{", "if", "(", "this", ".", "typeVariable", "==", "null", ")", "{", "TypeVariableBinding", "[", "]", "typeVariables", "=", "this", ".", "genericType", ".", "typeVariables", "(", ")", ";", "if", "(", "this", ".", "rank", "<", "typeVariables", ".", "length", ")", "this", ".", "typeVariable", "=", "typeVariables", "[", "this", ".", "rank", "]", ";", "}", "return", "this", ".", "typeVariable", ";", "}", "}", "</s>" ]
5,612
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "AbstractMethodDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "CaseStatement", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeReference", ";", "public", "final", "class", "LocalTypeBinding", "extends", "NestedTypeBinding", "{", "final", "static", "char", "[", "]", "LocalTypePrefix", "=", "{", "'$'", ",", "'L'", ",", "'o'", ",", "'c'", ",", "'a'", ",", "'l'", ",", "'$'", "}", ";", "private", "InnerEmulationDependency", "[", "]", "dependents", ";", "public", "ArrayBinding", "[", "]", "localArrayBindings", ";", "public", "CaseStatement", "enclosingCase", ";", "public", "int", "sourceStart", ";", "public", "MethodBinding", "enclosingMethod", ";", "public", "LocalTypeBinding", "(", "ClassScope", "scope", ",", "SourceTypeBinding", "enclosingType", ",", "CaseStatement", "switchCase", ",", "ReferenceBinding", "anonymousOriginalSuperType", ")", "{", "super", "(", "new", "char", "[", "]", "[", "]", "{", "CharOperation", ".", "concat", "(", "LocalTypeBinding", ".", "LocalTypePrefix", ",", "scope", ".", "referenceContext", ".", "name", ")", "}", ",", "scope", ",", "enclosingType", ")", ";", "TypeDeclaration", "typeDeclaration", "=", "scope", ".", "referenceContext", ";", "if", "(", "(", "typeDeclaration", ".", "bits", "&", "ASTNode", ".", "IsAnonymousType", ")", "!=", "0", ")", "{", "this", ".", "tagBits", "|=", "TagBits", ".", "AnonymousTypeMask", ";", "}", "else", "{", "this", ".", "tagBits", "|=", "TagBits", ".", "LocalTypeMask", ";", "}", "this", ".", "enclosingCase", "=", "switchCase", ";", "this", ".", "sourceStart", "=", "typeDeclaration", ".", "sourceStart", ";", "MethodScope", "methodScope", "=", "scope", ".", "enclosingMethodScope", "(", ")", ";", "AbstractMethodDeclaration", "methodDeclaration", "=", "methodScope", ".", "referenceMethod", "(", ")", ";", "if", "(", "methodDeclaration", "!=", "null", ")", "{", "this", ".", "enclosingMethod", "=", "methodDeclaration", ".", "binding", ";", "}", "}", "public", "void", "addInnerEmulationDependent", "(", "BlockScope", "dependentScope", ",", "boolean", "wasEnclosingInstanceSupplied", ")", "{", "int", "index", ";", "if", "(", "this", ".", "dependents", "==", "null", ")", "{", "index", "=", "0", ";", "this", ".", "dependents", "=", "new", "InnerEmulationDependency", "[", "1", "]", ";", "}", "else", "{", "index", "=", "this", ".", "dependents", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "index", ";", "i", "++", ")", "if", "(", "this", ".", "dependents", "[", "i", "]", ".", "scope", "==", "dependentScope", ")", "return", ";", "System", ".", "arraycopy", "(", "this", ".", "dependents", ",", "0", ",", "(", "this", ".", "dependents", "=", "new", "InnerEmulationDependency", "[", "index", "+", "1", "]", ")", ",", "0", ",", "index", ")", ";", "}", "this", ".", "dependents", "[", "index", "]", "=", "new", "InnerEmulationDependency", "(", "dependentScope", ",", "wasEnclosingInstanceSupplied", ")", ";", "}", "public", "ReferenceBinding", "anonymousOriginalSuperType", "(", ")", "{", "if", "(", "this", ".", "superInterfaces", "!=", "Binding", ".", "NO_SUPERINTERFACES", ")", "{", "return", "this", ".", "superInterfaces", "[", "0", "]", ";", "}", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "HierarchyHasProblems", ")", "==", "0", ")", "{", "return", "this", ".", "superclass", ";", "}", "if", "(", "this", ".", "scope", "!=", "null", ")", "{", "TypeReference", "typeReference", "=", "this", ".", "scope", ".", "referenceContext", ".", "allocation", ".", "type", ";", "if", "(", "typeReference", "!=", "null", ")", "{", "return", "(", "ReferenceBinding", ")", "typeReference", ".", "resolvedType", ";", "}", "}", "return", "this", ".", "superclass", ";", "}", "public", "char", "[", "]", "computeUniqueKey", "(", "boolean", "isLeaf", ")", "{", "char", "[", "]", "outerKey", "=", "outermostEnclosingType", "(", ")", ".", "computeUniqueKey", "(", "isLeaf", ")", ";", "int", "semicolon", "=", "CharOperation", ".", "lastIndexOf", "(", "';'", ",", "outerKey", ")", ";", "StringBuffer", "sig", "=", "new", "StringBuffer", "(", ")", ";", "sig", ".", "append", "(", "outerKey", ",", "0", ",", "semicolon", ")", ";", "sig", ".", "append", "(", "'$'", ")", ";", "sig", ".", "append", "(", "String", ".", "valueOf", "(", "this", ".", "sourceStart", ")", ")", ";", "if", "(", "!", "isAnonymousType", "(", ")", ")", "{", "sig", ".", "append", "(", "'$'", ")", ";", "sig", ".", "append", "(", "this", ".", "sourceName", ")", ";", "}", "sig", ".", "append", "(", "outerKey", ",", "semicolon", ",", "outerKey", ".", "length", "-", "semicolon", ")", ";", "int", "sigLength", "=", "sig", ".", "length", "(", ")", ";", "char", "[", "]", "uniqueKey", "=", "new", "char", "[", "sigLength", "]", ";", "sig", ".", "getChars", "(", "0", ",", "sigLength", ",", "uniqueKey", ",", "0", ")", ";", "return", "uniqueKey", ";", "}", "public", "char", "[", "]", "constantPoolName", "(", ")", "{", "if", "(", "this", ".", "constantPoolName", "==", "null", "&&", "this", ".", "scope", "!=", "null", ")", "{", "this", ".", "constantPoolName", "=", "this", ".", "scope", ".", "compilationUnitScope", "(", ")", ".", "computeConstantPoolName", "(", "this", ")", ";", "}", "return", "this", ".", "constantPoolName", ";", "}", "ArrayBinding", "createArrayType", "(", "int", "dimensionCount", ",", "LookupEnvironment", "lookupEnvironment", ")", "{", "if", "(", "this", ".", "localArrayBindings", "==", "null", ")", "{", "this", ".", "localArrayBindings", "=", "new", "ArrayBinding", "[", "]", "{", "new", "ArrayBinding", "(", "this", ",", "dimensionCount", ",", "lookupEnvironment", ")", "}", ";", "return", "this", ".", "localArrayBindings", "[", "0", "]", ";", "}", "int", "length", "=", "this", ".", "localArrayBindings", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "if", "(", "this", ".", "localArrayBindings", "[", "i", "]", ".", "dimensions", "==", "dimensionCount", ")", "return", "this", ".", "localArrayBindings", "[", "i", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "localArrayBindings", ",", "0", ",", "this", ".", "localArrayBindings", "=", "new", "ArrayBinding", "[", "length", "+", "1", "]", ",", "0", ",", "length", ")", ";", "return", "this", ".", "localArrayBindings", "[", "length", "]", "=", "new", "ArrayBinding", "(", "this", ",", "dimensionCount", ",", "lookupEnvironment", ")", ";", "}", "public", "char", "[", "]", "genericTypeSignature", "(", ")", "{", "if", "(", "this", ".", "genericReferenceTypeSignature", "==", "null", "&&", "this", ".", "constantPoolName", "==", "null", ")", "{", "if", "(", "isAnonymousType", "(", ")", ")", "setConstantPoolName", "(", "superclass", "(", ")", ".", "sourceName", "(", ")", ")", ";", "else", "setConstantPoolName", "(", "sourceName", "(", ")", ")", ";", "}", "return", "super", ".", "genericTypeSignature", "(", ")", ";", "}", "public", "char", "[", "]", "readableName", "(", ")", "{", "char", "[", "]", "readableName", ";", "if", "(", "isAnonymousType", "(", ")", ")", "{", "readableName", "=", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "ANONYM_PREFIX", ",", "anonymousOriginalSuperType", "(", ")", ".", "readableName", "(", ")", ",", "TypeConstants", ".", "ANONYM_SUFFIX", ")", ";", "}", "else", "if", "(", "isMemberType", "(", ")", ")", "{", "readableName", "=", "CharOperation", ".", "concat", "(", "enclosingType", "(", ")", ".", "readableName", "(", ")", ",", "this", ".", "sourceName", ",", "'.'", ")", ";", "}", "else", "{", "readableName", "=", "this", ".", "sourceName", ";", "}", "TypeVariableBinding", "[", "]", "typeVars", ";", "if", "(", "(", "typeVars", "=", "typeVariables", "(", ")", ")", "!=", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "StringBuffer", "nameBuffer", "=", "new", "StringBuffer", "(", "10", ")", ";", "nameBuffer", ".", "append", "(", "readableName", ")", ".", "append", "(", "'<'", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "typeVars", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "nameBuffer", ".", "append", "(", "','", ")", ";", "nameBuffer", ".", "append", "(", "typeVars", "[", "i", "]", ".", "readableName", "(", ")", ")", ";", "}", "nameBuffer", ".", "append", "(", "'>'", ")", ";", "int", "nameLength", "=", "nameBuffer", ".", "length", "(", ")", ";", "readableName", "=", "new", "char", "[", "nameLength", "]", ";", "nameBuffer", ".", "getChars", "(", "0", ",", "nameLength", ",", "readableName", ",", "0", ")", ";", "}", "return", "readableName", ";", "}", "public", "char", "[", "]", "shortReadableName", "(", ")", "{", "char", "[", "]", "shortReadableName", ";", "if", "(", "isAnonymousType", "(", ")", ")", "{", "shortReadableName", "=", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "ANONYM_PREFIX", ",", "anonymousOriginalSuperType", "(", ")", ".", "shortReadableName", "(", ")", ",", "TypeConstants", ".", "ANONYM_SUFFIX", ")", ";", "}", "else", "if", "(", "isMemberType", "(", ")", ")", "{", "shortReadableName", "=", "CharOperation", ".", "concat", "(", "enclosingType", "(", ")", ".", "shortReadableName", "(", ")", ",", "this", ".", "sourceName", ",", "'.'", ")", ";", "}", "else", "{", "shortReadableName", "=", "this", ".", "sourceName", ";", "}", "TypeVariableBinding", "[", "]", "typeVars", ";", "if", "(", "(", "typeVars", "=", "typeVariables", "(", ")", ")", "!=", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "StringBuffer", "nameBuffer", "=", "new", "StringBuffer", "(", "10", ")", ";", "nameBuffer", ".", "append", "(", "shortReadableName", ")", ".", "append", "(", "'<'", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "typeVars", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "nameBuffer", ".", "append", "(", "','", ")", ";", "nameBuffer", ".", "append", "(", "typeVars", "[", "i", "]", ".", "shortReadableName", "(", ")", ")", ";", "}", "nameBuffer", ".", "append", "(", "'>'", ")", ";", "int", "nameLength", "=", "nameBuffer", ".", "length", "(", ")", ";", "shortReadableName", "=", "new", "char", "[", "nameLength", "]", ";", "nameBuffer", ".", "getChars", "(", "0", ",", "nameLength", ",", "shortReadableName", ",", "0", ")", ";", "}", "return", "shortReadableName", ";", "}", "public", "void", "setAsMemberType", "(", ")", "{", "this", ".", "tagBits", "|=", "TagBits", ".", "MemberTypeMask", ";", "}", "public", "void", "setConstantPoolName", "(", "char", "[", "]", "computedConstantPoolName", ")", "{", "this", ".", "constantPoolName", "=", "computedConstantPoolName", ";", "}", "public", "char", "[", "]", "signature", "(", ")", "{", "if", "(", "this", ".", "signature", "==", "null", "&&", "this", ".", "constantPoolName", "==", "null", ")", "{", "if", "(", "isAnonymousType", "(", ")", ")", "setConstantPoolName", "(", "superclass", "(", ")", ".", "sourceName", "(", ")", ")", ";", "else", "setConstantPoolName", "(", "sourceName", "(", ")", ")", ";", "}", "return", "super", ".", "signature", "(", ")", ";", "}", "public", "char", "[", "]", "sourceName", "(", ")", "{", "if", "(", "isAnonymousType", "(", ")", ")", "{", "return", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "ANONYM_PREFIX", ",", "anonymousOriginalSuperType", "(", ")", ".", "sourceName", "(", ")", ",", "TypeConstants", ".", "ANONYM_SUFFIX", ")", ";", "}", "else", "return", "this", ".", "sourceName", ";", "}", "public", "String", "toString", "(", ")", "{", "if", "(", "isAnonymousType", "(", ")", ")", "return", "\"\"", "+", "super", ".", "toString", "(", ")", ";", "if", "(", "isMemberType", "(", ")", ")", "return", "\"\"", "+", "new", "String", "(", "sourceName", "(", ")", ")", "+", "\"", "\"", "+", "super", ".", "toString", "(", ")", ";", "return", "\"\"", "+", "new", "String", "(", "sourceName", "(", ")", ")", "+", "\"", "\"", "+", "super", ".", "toString", "(", ")", ";", "}", "public", "void", "updateInnerEmulationDependents", "(", ")", "{", "if", "(", "this", ".", "dependents", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "dependents", ".", "length", ";", "i", "++", ")", "{", "InnerEmulationDependency", "dependency", "=", "this", ".", "dependents", "[", "i", "]", ";", "dependency", ".", "scope", ".", "propagateInnerEmulation", "(", "this", ",", "dependency", ".", "wasEnclosingInstanceSupplied", ")", ";", "}", "}", "}", "}", "</s>" ]
5,613
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Wildcard", ";", "public", "class", "ParameterizedMethodBinding", "extends", "MethodBinding", "{", "protected", "MethodBinding", "originalMethod", ";", "public", "ParameterizedMethodBinding", "(", "final", "ParameterizedTypeBinding", "parameterizedDeclaringClass", ",", "MethodBinding", "originalMethod", ")", "{", "super", "(", "originalMethod", ".", "modifiers", ",", "originalMethod", ".", "selector", ",", "originalMethod", ".", "returnType", ",", "originalMethod", ".", "parameters", ",", "originalMethod", ".", "thrownExceptions", ",", "parameterizedDeclaringClass", ")", ";", "this", ".", "originalMethod", "=", "originalMethod", ";", "this", ".", "tagBits", "=", "originalMethod", ".", "tagBits", "&", "~", "TagBits", ".", "HasMissingType", ";", "final", "TypeVariableBinding", "[", "]", "originalVariables", "=", "originalMethod", ".", "typeVariables", ";", "Substitution", "substitution", "=", "null", ";", "final", "int", "length", "=", "originalVariables", ".", "length", ";", "final", "boolean", "isStatic", "=", "originalMethod", ".", "isStatic", "(", ")", ";", "if", "(", "length", "==", "0", ")", "{", "this", ".", "typeVariables", "=", "Binding", ".", "NO_TYPE_VARIABLES", ";", "if", "(", "!", "isStatic", ")", "substitution", "=", "parameterizedDeclaringClass", ";", "}", "else", "{", "final", "TypeVariableBinding", "[", "]", "substitutedVariables", "=", "new", "TypeVariableBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeVariableBinding", "originalVariable", "=", "originalVariables", "[", "i", "]", ";", "substitutedVariables", "[", "i", "]", "=", "new", "TypeVariableBinding", "(", "originalVariable", ".", "sourceName", ",", "this", ",", "originalVariable", ".", "rank", ",", "parameterizedDeclaringClass", ".", "environment", ")", ";", "}", "this", ".", "typeVariables", "=", "substitutedVariables", ";", "substitution", "=", "new", "Substitution", "(", ")", "{", "public", "LookupEnvironment", "environment", "(", ")", "{", "return", "parameterizedDeclaringClass", ".", "environment", ";", "}", "public", "boolean", "isRawSubstitution", "(", ")", "{", "return", "!", "isStatic", "&&", "parameterizedDeclaringClass", ".", "isRawSubstitution", "(", ")", ";", "}", "public", "TypeBinding", "substitute", "(", "TypeVariableBinding", "typeVariable", ")", "{", "if", "(", "typeVariable", ".", "rank", "<", "length", "&&", "originalVariables", "[", "typeVariable", ".", "rank", "]", "==", "typeVariable", ")", "{", "return", "substitutedVariables", "[", "typeVariable", ".", "rank", "]", ";", "}", "if", "(", "!", "isStatic", ")", "return", "parameterizedDeclaringClass", ".", "substitute", "(", "typeVariable", ")", ";", "return", "typeVariable", ";", "}", "}", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeVariableBinding", "originalVariable", "=", "originalVariables", "[", "i", "]", ";", "TypeVariableBinding", "substitutedVariable", "=", "substitutedVariables", "[", "i", "]", ";", "TypeBinding", "substitutedSuperclass", "=", "Scope", ".", "substitute", "(", "substitution", ",", "originalVariable", ".", "superclass", ")", ";", "ReferenceBinding", "[", "]", "substitutedInterfaces", "=", "Scope", ".", "substitute", "(", "substitution", ",", "originalVariable", ".", "superInterfaces", ")", ";", "if", "(", "originalVariable", ".", "firstBound", "!=", "null", ")", "{", "substitutedVariable", ".", "firstBound", "=", "originalVariable", ".", "firstBound", "==", "originalVariable", ".", "superclass", "?", "substitutedSuperclass", ":", "substitutedInterfaces", "[", "0", "]", ";", "}", "switch", "(", "substitutedSuperclass", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "ARRAY_TYPE", ":", "substitutedVariable", ".", "superclass", "=", "parameterizedDeclaringClass", ".", "environment", ".", "getResolvedType", "(", "TypeConstants", ".", "JAVA_LANG_OBJECT", ",", "null", ")", ";", "substitutedVariable", ".", "superInterfaces", "=", "substitutedInterfaces", ";", "break", ";", "default", ":", "if", "(", "substitutedSuperclass", ".", "isInterface", "(", ")", ")", "{", "substitutedVariable", ".", "superclass", "=", "parameterizedDeclaringClass", ".", "environment", ".", "getResolvedType", "(", "TypeConstants", ".", "JAVA_LANG_OBJECT", ",", "null", ")", ";", "int", "interfaceCount", "=", "substitutedInterfaces", ".", "length", ";", "System", ".", "arraycopy", "(", "substitutedInterfaces", ",", "0", ",", "substitutedInterfaces", "=", "new", "ReferenceBinding", "[", "interfaceCount", "+", "1", "]", ",", "1", ",", "interfaceCount", ")", ";", "substitutedInterfaces", "[", "0", "]", "=", "(", "ReferenceBinding", ")", "substitutedSuperclass", ";", "substitutedVariable", ".", "superInterfaces", "=", "substitutedInterfaces", ";", "}", "else", "{", "substitutedVariable", ".", "superclass", "=", "(", "ReferenceBinding", ")", "substitutedSuperclass", ";", "substitutedVariable", ".", "superInterfaces", "=", "substitutedInterfaces", ";", "}", "}", "}", "}", "if", "(", "substitution", "!=", "null", ")", "{", "this", ".", "returnType", "=", "Scope", ".", "substitute", "(", "substitution", ",", "this", ".", "returnType", ")", ";", "this", ".", "parameters", "=", "Scope", ".", "substitute", "(", "substitution", ",", "this", ".", "parameters", ")", ";", "this", ".", "thrownExceptions", "=", "Scope", ".", "substitute", "(", "substitution", ",", "this", ".", "thrownExceptions", ")", ";", "if", "(", "this", ".", "thrownExceptions", "==", "null", ")", "this", ".", "thrownExceptions", "=", "Binding", ".", "NO_EXCEPTIONS", ";", "}", "checkMissingType", ":", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "break", "checkMissingType", ";", "if", "(", "(", "this", ".", "returnType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "this", ".", "tagBits", "|=", "TagBits", ".", "HasMissingType", ";", "break", "checkMissingType", ";", "}", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "parameters", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "if", "(", "(", "this", ".", "parameters", "[", "i", "]", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "this", ".", "tagBits", "|=", "TagBits", ".", "HasMissingType", ";", "break", "checkMissingType", ";", "}", "}", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "thrownExceptions", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "if", "(", "(", "this", ".", "thrownExceptions", "[", "i", "]", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "this", ".", "tagBits", "|=", "TagBits", ".", "HasMissingType", ";", "break", "checkMissingType", ";", "}", "}", "}", "}", "public", "ParameterizedMethodBinding", "(", "final", "ReferenceBinding", "declaringClass", ",", "MethodBinding", "originalMethod", ",", "char", "[", "]", "[", "]", "alternateParamaterNames", ",", "final", "LookupEnvironment", "environment", ")", "{", "super", "(", "originalMethod", ".", "modifiers", ",", "originalMethod", ".", "selector", ",", "originalMethod", ".", "returnType", ",", "originalMethod", ".", "parameters", ",", "originalMethod", ".", "thrownExceptions", ",", "declaringClass", ")", ";", "this", ".", "originalMethod", "=", "originalMethod", ";", "this", ".", "tagBits", "=", "originalMethod", ".", "tagBits", "&", "~", "TagBits", ".", "HasMissingType", ";", "final", "TypeVariableBinding", "[", "]", "originalVariables", "=", "originalMethod", ".", "typeVariables", ";", "Substitution", "substitution", "=", "null", ";", "final", "int", "length", "=", "originalVariables", ".", "length", ";", "if", "(", "length", "==", "0", ")", "{", "this", ".", "typeVariables", "=", "Binding", ".", "NO_TYPE_VARIABLES", ";", "}", "else", "{", "final", "TypeVariableBinding", "[", "]", "substitutedVariables", "=", "new", "TypeVariableBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeVariableBinding", "originalVariable", "=", "originalVariables", "[", "i", "]", ";", "substitutedVariables", "[", "i", "]", "=", "new", "TypeVariableBinding", "(", "alternateParamaterNames", "==", "null", "?", "originalVariable", ".", "sourceName", ":", "alternateParamaterNames", "[", "i", "]", ",", "this", ",", "originalVariable", ".", "rank", ",", "environment", ")", ";", "}", "this", ".", "typeVariables", "=", "substitutedVariables", ";", "substitution", "=", "new", "Substitution", "(", ")", "{", "public", "LookupEnvironment", "environment", "(", ")", "{", "return", "environment", ";", "}", "public", "boolean", "isRawSubstitution", "(", ")", "{", "return", "false", ";", "}", "public", "TypeBinding", "substitute", "(", "TypeVariableBinding", "typeVariable", ")", "{", "if", "(", "typeVariable", ".", "rank", "<", "length", "&&", "originalVariables", "[", "typeVariable", ".", "rank", "]", "==", "typeVariable", ")", "{", "return", "substitutedVariables", "[", "typeVariable", ".", "rank", "]", ";", "}", "return", "typeVariable", ";", "}", "}", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeVariableBinding", "originalVariable", "=", "originalVariables", "[", "i", "]", ";", "TypeVariableBinding", "substitutedVariable", "=", "substitutedVariables", "[", "i", "]", ";", "TypeBinding", "substitutedSuperclass", "=", "Scope", ".", "substitute", "(", "substitution", ",", "originalVariable", ".", "superclass", ")", ";", "ReferenceBinding", "[", "]", "substitutedInterfaces", "=", "Scope", ".", "substitute", "(", "substitution", ",", "originalVariable", ".", "superInterfaces", ")", ";", "if", "(", "originalVariable", ".", "firstBound", "!=", "null", ")", "{", "substitutedVariable", ".", "firstBound", "=", "originalVariable", ".", "firstBound", "==", "originalVariable", ".", "superclass", "?", "substitutedSuperclass", ":", "substitutedInterfaces", "[", "0", "]", ";", "}", "switch", "(", "substitutedSuperclass", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "ARRAY_TYPE", ":", "substitutedVariable", ".", "superclass", "=", "environment", ".", "getResolvedType", "(", "TypeConstants", ".", "JAVA_LANG_OBJECT", ",", "null", ")", ";", "substitutedVariable", ".", "superInterfaces", "=", "substitutedInterfaces", ";", "break", ";", "default", ":", "if", "(", "substitutedSuperclass", ".", "isInterface", "(", ")", ")", "{", "substitutedVariable", ".", "superclass", "=", "environment", ".", "getResolvedType", "(", "TypeConstants", ".", "JAVA_LANG_OBJECT", ",", "null", ")", ";", "int", "interfaceCount", "=", "substitutedInterfaces", ".", "length", ";", "System", ".", "arraycopy", "(", "substitutedInterfaces", ",", "0", ",", "substitutedInterfaces", "=", "new", "ReferenceBinding", "[", "interfaceCount", "+", "1", "]", ",", "1", ",", "interfaceCount", ")", ";", "substitutedInterfaces", "[", "0", "]", "=", "(", "ReferenceBinding", ")", "substitutedSuperclass", ";", "substitutedVariable", ".", "superInterfaces", "=", "substitutedInterfaces", ";", "}", "else", "{", "substitutedVariable", ".", "superclass", "=", "(", "ReferenceBinding", ")", "substitutedSuperclass", ";", "substitutedVariable", ".", "superInterfaces", "=", "substitutedInterfaces", ";", "}", "}", "}", "}", "if", "(", "substitution", "!=", "null", ")", "{", "this", ".", "returnType", "=", "Scope", ".", "substitute", "(", "substitution", ",", "this", ".", "returnType", ")", ";", "this", ".", "parameters", "=", "Scope", ".", "substitute", "(", "substitution", ",", "this", ".", "parameters", ")", ";", "this", ".", "thrownExceptions", "=", "Scope", ".", "substitute", "(", "substitution", ",", "this", ".", "thrownExceptions", ")", ";", "if", "(", "this", ".", "thrownExceptions", "==", "null", ")", "this", ".", "thrownExceptions", "=", "Binding", ".", "NO_EXCEPTIONS", ";", "}", "checkMissingType", ":", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "break", "checkMissingType", ";", "if", "(", "(", "this", ".", "returnType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "this", ".", "tagBits", "|=", "TagBits", ".", "HasMissingType", ";", "break", "checkMissingType", ";", "}", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "parameters", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "if", "(", "(", "this", ".", "parameters", "[", "i", "]", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "this", ".", "tagBits", "|=", "TagBits", ".", "HasMissingType", ";", "break", "checkMissingType", ";", "}", "}", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "thrownExceptions", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "if", "(", "(", "this", ".", "thrownExceptions", "[", "i", "]", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "this", ".", "tagBits", "|=", "TagBits", ".", "HasMissingType", ";", "break", "checkMissingType", ";", "}", "}", "}", "}", "public", "ParameterizedMethodBinding", "(", ")", "{", "}", "public", "static", "ParameterizedMethodBinding", "instantiateGetClass", "(", "TypeBinding", "receiverType", ",", "MethodBinding", "originalMethod", ",", "Scope", "scope", ")", "{", "ParameterizedMethodBinding", "method", "=", "new", "ParameterizedMethodBinding", "(", ")", ";", "method", ".", "modifiers", "=", "originalMethod", ".", "modifiers", ";", "method", ".", "selector", "=", "originalMethod", ".", "selector", ";", "method", ".", "declaringClass", "=", "originalMethod", ".", "declaringClass", ";", "method", ".", "typeVariables", "=", "Binding", ".", "NO_TYPE_VARIABLES", ";", "method", ".", "originalMethod", "=", "originalMethod", ";", "method", ".", "parameters", "=", "originalMethod", ".", "parameters", ";", "method", ".", "thrownExceptions", "=", "originalMethod", ".", "thrownExceptions", ";", "method", ".", "tagBits", "=", "originalMethod", ".", "tagBits", ";", "ReferenceBinding", "genericClassType", "=", "scope", ".", "getJavaLangClass", "(", ")", ";", "LookupEnvironment", "environment", "=", "scope", ".", "environment", "(", ")", ";", "TypeBinding", "rawType", "=", "environment", ".", "convertToRawType", "(", "receiverType", ".", "erasure", "(", ")", ",", "false", ")", ";", "method", ".", "returnType", "=", "environment", ".", "createParameterizedType", "(", "genericClassType", ",", "new", "TypeBinding", "[", "]", "{", "environment", ".", "createWildcard", "(", "genericClassType", ",", "0", ",", "rawType", ",", "null", ",", "Wildcard", ".", "EXTENDS", ")", "}", ",", "null", ")", ";", "if", "(", "(", "method", ".", "returnType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "method", ".", "tagBits", "|=", "TagBits", ".", "HasMissingType", ";", "}", "return", "method", ";", "}", "public", "boolean", "hasSubstitutedParameters", "(", ")", "{", "return", "this", ".", "parameters", "!=", "this", ".", "originalMethod", ".", "parameters", ";", "}", "public", "boolean", "hasSubstitutedReturnType", "(", ")", "{", "return", "this", ".", "returnType", "!=", "this", ".", "originalMethod", ".", "returnType", ";", "}", "public", "MethodBinding", "original", "(", ")", "{", "return", "this", ".", "originalMethod", ".", "original", "(", ")", ";", "}", "}", "</s>" ]
5,614
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "public", "final", "class", "BaseTypeBinding", "extends", "TypeBinding", "{", "public", "static", "final", "int", "[", "]", "CONVERSIONS", ";", "public", "static", "final", "int", "IDENTITY", "=", "1", ";", "public", "static", "final", "int", "WIDENING", "=", "2", ";", "public", "static", "final", "int", "NARROWING", "=", "4", ";", "public", "static", "final", "int", "MAX_CONVERSIONS", "=", "16", "*", "16", ";", "static", "{", "CONVERSIONS", "=", "initializeConversions", "(", ")", ";", "}", "public", "static", "final", "int", "[", "]", "initializeConversions", "(", ")", "{", "int", "[", "]", "table", "=", "new", "int", "[", "MAX_CONVERSIONS", "]", ";", "table", "[", "TypeIds", ".", "Boolean2Boolean", "]", "=", "IDENTITY", ";", "table", "[", "TypeIds", ".", "Byte2Byte", "]", "=", "IDENTITY", ";", "table", "[", "TypeIds", ".", "Byte2Short", "]", "=", "WIDENING", ";", "table", "[", "TypeIds", ".", "Byte2Char", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Byte2Int", "]", "=", "WIDENING", ";", "table", "[", "TypeIds", ".", "Byte2Long", "]", "=", "WIDENING", ";", "table", "[", "TypeIds", ".", "Byte2Float", "]", "=", "WIDENING", ";", "table", "[", "TypeIds", ".", "Byte2Double", "]", "=", "WIDENING", ";", "table", "[", "TypeIds", ".", "Short2Byte", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Short2Short", "]", "=", "IDENTITY", ";", "table", "[", "TypeIds", ".", "Short2Char", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Short2Int", "]", "=", "WIDENING", ";", "table", "[", "TypeIds", ".", "Short2Long", "]", "=", "WIDENING", ";", "table", "[", "TypeIds", ".", "Short2Float", "]", "=", "WIDENING", ";", "table", "[", "TypeIds", ".", "Short2Double", "]", "=", "WIDENING", ";", "table", "[", "TypeIds", ".", "Char2Byte", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Char2Short", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Char2Char", "]", "=", "IDENTITY", ";", "table", "[", "TypeIds", ".", "Char2Int", "]", "=", "WIDENING", ";", "table", "[", "TypeIds", ".", "Char2Long", "]", "=", "WIDENING", ";", "table", "[", "TypeIds", ".", "Char2Float", "]", "=", "WIDENING", ";", "table", "[", "TypeIds", ".", "Char2Double", "]", "=", "WIDENING", ";", "table", "[", "TypeIds", ".", "Int2Byte", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Int2Short", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Int2Char", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Int2Int", "]", "=", "IDENTITY", ";", "table", "[", "TypeIds", ".", "Int2Long", "]", "=", "WIDENING", ";", "table", "[", "TypeIds", ".", "Int2Float", "]", "=", "WIDENING", ";", "table", "[", "TypeIds", ".", "Int2Double", "]", "=", "WIDENING", ";", "table", "[", "TypeIds", ".", "Long2Byte", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Long2Short", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Long2Char", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Long2Int", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Long2Long", "]", "=", "IDENTITY", ";", "table", "[", "TypeIds", ".", "Long2Float", "]", "=", "WIDENING", ";", "table", "[", "TypeIds", ".", "Long2Double", "]", "=", "WIDENING", ";", "table", "[", "TypeIds", ".", "Float2Byte", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Float2Short", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Float2Char", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Float2Int", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Float2Long", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Float2Float", "]", "=", "IDENTITY", ";", "table", "[", "TypeIds", ".", "Float2Double", "]", "=", "WIDENING", ";", "table", "[", "TypeIds", ".", "Double2Byte", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Double2Short", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Double2Char", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Double2Int", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Double2Long", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Double2Float", "]", "=", "NARROWING", ";", "table", "[", "TypeIds", ".", "Double2Double", "]", "=", "IDENTITY", ";", "return", "table", ";", "}", "public", "static", "final", "boolean", "isNarrowing", "(", "int", "left", ",", "int", "right", ")", "{", "int", "right2left", "=", "right", "+", "(", "left", "<<", "4", ")", ";", "return", "right2left", ">=", "0", "&&", "right2left", "<", "MAX_CONVERSIONS", "&&", "(", "CONVERSIONS", "[", "right2left", "]", "&", "(", "IDENTITY", "|", "NARROWING", ")", ")", "!=", "0", ";", "}", "public", "static", "final", "boolean", "isWidening", "(", "int", "left", ",", "int", "right", ")", "{", "int", "right2left", "=", "right", "+", "(", "left", "<<", "4", ")", ";", "return", "right2left", ">=", "0", "&&", "right2left", "<", "MAX_CONVERSIONS", "&&", "(", "CONVERSIONS", "[", "right2left", "]", "&", "(", "IDENTITY", "|", "WIDENING", ")", ")", "!=", "0", ";", "}", "public", "char", "[", "]", "simpleName", ";", "private", "char", "[", "]", "constantPoolName", ";", "BaseTypeBinding", "(", "int", "id", ",", "char", "[", "]", "name", ",", "char", "[", "]", "constantPoolName", ")", "{", "this", ".", "tagBits", "|=", "TagBits", ".", "IsBaseType", ";", "this", ".", "id", "=", "id", ";", "this", ".", "simpleName", "=", "name", ";", "this", ".", "constantPoolName", "=", "constantPoolName", ";", "}", "public", "char", "[", "]", "computeUniqueKey", "(", "boolean", "isLeaf", ")", "{", "return", "constantPoolName", "(", ")", ";", "}", "public", "char", "[", "]", "constantPoolName", "(", ")", "{", "return", "this", ".", "constantPoolName", ";", "}", "public", "PackageBinding", "getPackage", "(", ")", "{", "return", "null", ";", "}", "public", "final", "boolean", "isCompatibleWith", "(", "TypeBinding", "left", ")", "{", "if", "(", "this", "==", "left", ")", "return", "true", ";", "int", "right2left", "=", "this", ".", "id", "+", "(", "left", ".", "id", "<<", "4", ")", ";", "if", "(", "right2left", ">=", "0", "&&", "right2left", "<", "MAX_CONVERSIONS", "&&", "(", "CONVERSIONS", "[", "right2left", "]", "&", "(", "IDENTITY", "|", "WIDENING", ")", ")", "!=", "0", ")", "return", "true", ";", "return", "this", "==", "TypeBinding", ".", "NULL", "&&", "!", "left", ".", "isBaseType", "(", ")", ";", "}", "public", "boolean", "isUncheckedException", "(", "boolean", "includeSupertype", ")", "{", "return", "this", "==", "TypeBinding", ".", "NULL", ";", "}", "public", "int", "kind", "(", ")", "{", "return", "Binding", ".", "BASE_TYPE", ";", "}", "public", "char", "[", "]", "qualifiedSourceName", "(", ")", "{", "return", "this", ".", "simpleName", ";", "}", "public", "char", "[", "]", "readableName", "(", ")", "{", "return", "this", ".", "simpleName", ";", "}", "public", "char", "[", "]", "shortReadableName", "(", ")", "{", "return", "this", ".", "simpleName", ";", "}", "public", "char", "[", "]", "sourceName", "(", ")", "{", "return", "this", ".", "simpleName", ";", "}", "public", "String", "toString", "(", ")", "{", "return", "new", "String", "(", "this", ".", "constantPoolName", ")", "+", "\"", "(id=\"", "+", "this", ".", "id", "+", "\")\"", ";", "}", "}", "</s>" ]
5,615
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ".", "ICompilationUnit", ";", "public", "class", "SourceTypeCollisionException", "extends", "RuntimeException", "{", "private", "static", "final", "long", "serialVersionUID", "=", "4798247636899127380L", ";", "public", "ICompilationUnit", "[", "]", "newAnnotationProcessorUnits", ";", "}", "</s>" ]
5,616
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "public", "class", "LazilyResolvedMethodBinding", "extends", "MethodBinding", "{", "private", "boolean", "isGetter", ";", "private", "String", "propertyName", ";", "public", "LazilyResolvedMethodBinding", "(", "boolean", "isGetter", ",", "String", "propertyName", ",", "int", "modifiers", ",", "char", "[", "]", "selector", ",", "ReferenceBinding", "[", "]", "thrownExceptions", ",", "ReferenceBinding", "declaringClass", ")", "{", "super", "(", "modifiers", "|", "ExtraCompilerModifiers", ".", "AccUnresolved", ",", "selector", ",", "null", ",", "null", ",", "thrownExceptions", ",", "declaringClass", ")", ";", "this", ".", "propertyName", "=", "propertyName", ";", "this", ".", "isGetter", "=", "isGetter", ";", "}", "private", "TypeBinding", "getTypeBinding", "(", ")", "{", "FieldBinding", "fBinding", "=", "this", ".", "declaringClass", ".", "getField", "(", "this", ".", "propertyName", ".", "toCharArray", "(", ")", ",", "false", ")", ";", "if", "(", "fBinding", "!=", "null", "&&", "!", "(", "fBinding", ".", "type", "instanceof", "MissingTypeBinding", ")", ")", "{", "return", "fBinding", ".", "type", ";", "}", "return", "null", ";", "}", "public", "TypeBinding", "getParameterTypeBinding", "(", ")", "{", "if", "(", "this", ".", "isGetter", ")", "{", "return", "null", ";", "}", "else", "{", "return", "getTypeBinding", "(", ")", ";", "}", "}", "public", "TypeBinding", "getReturnTypeBinding", "(", ")", "{", "if", "(", "this", ".", "isGetter", ")", "{", "return", "getTypeBinding", "(", ")", ";", "}", "else", "{", "return", "TypeBinding", ".", "VOID", ";", "}", "}", "}", "</s>" ]
5,617
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "java", ".", "util", ".", "List", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ClassFile", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "AbstractMethodDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Argument", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "ConstantPool", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "class", "MethodBinding", "extends", "Binding", "{", "public", "int", "modifiers", ";", "public", "char", "[", "]", "selector", ";", "public", "TypeBinding", "returnType", ";", "public", "TypeBinding", "[", "]", "parameters", ";", "public", "ReferenceBinding", "[", "]", "thrownExceptions", ";", "public", "ReferenceBinding", "declaringClass", ";", "public", "TypeVariableBinding", "[", "]", "typeVariables", "=", "Binding", ".", "NO_TYPE_VARIABLES", ";", "char", "[", "]", "signature", ";", "public", "long", "tagBits", ";", "protected", "MethodBinding", "(", ")", "{", "}", "public", "MethodBinding", "(", "int", "modifiers", ",", "char", "[", "]", "selector", ",", "TypeBinding", "returnType", ",", "TypeBinding", "[", "]", "parameters", ",", "ReferenceBinding", "[", "]", "thrownExceptions", ",", "ReferenceBinding", "declaringClass", ")", "{", "this", ".", "modifiers", "=", "modifiers", ";", "this", ".", "selector", "=", "selector", ";", "this", ".", "returnType", "=", "returnType", ";", "this", ".", "parameters", "=", "(", "parameters", "==", "null", "||", "parameters", ".", "length", "==", "0", ")", "?", "Binding", ".", "NO_PARAMETERS", ":", "parameters", ";", "this", ".", "thrownExceptions", "=", "(", "thrownExceptions", "==", "null", "||", "thrownExceptions", ".", "length", "==", "0", ")", "?", "Binding", ".", "NO_EXCEPTIONS", ":", "thrownExceptions", ";", "this", ".", "declaringClass", "=", "declaringClass", ";", "if", "(", "this", ".", "declaringClass", "!=", "null", ")", "{", "if", "(", "this", ".", "declaringClass", ".", "isStrictfp", "(", ")", ")", "if", "(", "!", "(", "isNative", "(", ")", "||", "isAbstract", "(", ")", ")", ")", "this", ".", "modifiers", "|=", "ClassFileConstants", ".", "AccStrictfp", ";", "}", "}", "public", "MethodBinding", "(", "int", "modifiers", ",", "TypeBinding", "[", "]", "parameters", ",", "ReferenceBinding", "[", "]", "thrownExceptions", ",", "ReferenceBinding", "declaringClass", ")", "{", "this", "(", "modifiers", ",", "TypeConstants", ".", "INIT", ",", "TypeBinding", ".", "VOID", ",", "parameters", ",", "thrownExceptions", ",", "declaringClass", ")", ";", "}", "public", "MethodBinding", "(", "MethodBinding", "initialMethodBinding", ",", "ReferenceBinding", "declaringClass", ")", "{", "this", ".", "modifiers", "=", "initialMethodBinding", ".", "modifiers", ";", "this", ".", "selector", "=", "initialMethodBinding", ".", "selector", ";", "this", ".", "returnType", "=", "initialMethodBinding", ".", "returnType", ";", "this", ".", "parameters", "=", "initialMethodBinding", ".", "parameters", ";", "this", ".", "thrownExceptions", "=", "initialMethodBinding", ".", "thrownExceptions", ";", "this", ".", "declaringClass", "=", "declaringClass", ";", "declaringClass", ".", "storeAnnotationHolder", "(", "this", ",", "initialMethodBinding", ".", "declaringClass", ".", "retrieveAnnotationHolder", "(", "initialMethodBinding", ",", "true", ")", ")", ";", "}", "public", "final", "boolean", "areParameterErasuresEqual", "(", "MethodBinding", "method", ")", "{", "TypeBinding", "[", "]", "args", "=", "method", ".", "parameters", ";", "if", "(", "this", ".", "parameters", "==", "args", ")", "return", "true", ";", "int", "length", "=", "this", ".", "parameters", ".", "length", ";", "if", "(", "length", "!=", "args", ".", "length", ")", "return", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "if", "(", "this", ".", "parameters", "[", "i", "]", "!=", "args", "[", "i", "]", "&&", "this", ".", "parameters", "[", "i", "]", ".", "erasure", "(", ")", "!=", "args", "[", "i", "]", ".", "erasure", "(", ")", ")", "return", "false", ";", "return", "true", ";", "}", "public", "final", "boolean", "areParametersCompatibleWith", "(", "TypeBinding", "[", "]", "arguments", ")", "{", "int", "paramLength", "=", "this", ".", "parameters", ".", "length", ";", "int", "argLength", "=", "arguments", ".", "length", ";", "int", "lastIndex", "=", "argLength", ";", "if", "(", "isVarargs", "(", ")", ")", "{", "lastIndex", "=", "paramLength", "-", "1", ";", "if", "(", "paramLength", "==", "argLength", ")", "{", "TypeBinding", "varArgType", "=", "this", ".", "parameters", "[", "lastIndex", "]", ";", "TypeBinding", "lastArgument", "=", "arguments", "[", "lastIndex", "]", ";", "if", "(", "varArgType", "!=", "lastArgument", "&&", "!", "lastArgument", ".", "isCompatibleWith", "(", "varArgType", ")", ")", "return", "false", ";", "}", "else", "if", "(", "paramLength", "<", "argLength", ")", "{", "TypeBinding", "varArgType", "=", "(", "(", "ArrayBinding", ")", "this", ".", "parameters", "[", "lastIndex", "]", ")", ".", "elementsType", "(", ")", ";", "for", "(", "int", "i", "=", "lastIndex", ";", "i", "<", "argLength", ";", "i", "++", ")", "if", "(", "varArgType", "!=", "arguments", "[", "i", "]", "&&", "!", "arguments", "[", "i", "]", ".", "isCompatibleWith", "(", "varArgType", ")", ")", "return", "false", ";", "}", "else", "if", "(", "lastIndex", "!=", "argLength", ")", "{", "return", "false", ";", "}", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "lastIndex", ";", "i", "++", ")", "if", "(", "this", ".", "parameters", "[", "i", "]", "!=", "arguments", "[", "i", "]", "&&", "!", "arguments", "[", "i", "]", ".", "isCompatibleWith", "(", "this", ".", "parameters", "[", "i", "]", ")", ")", "return", "false", ";", "return", "true", ";", "}", "public", "final", "boolean", "areParametersEqual", "(", "MethodBinding", "method", ")", "{", "TypeBinding", "[", "]", "args", "=", "method", ".", "parameters", ";", "if", "(", "this", ".", "parameters", "==", "args", ")", "return", "true", ";", "int", "length", "=", "this", ".", "parameters", ".", "length", ";", "if", "(", "length", "!=", "args", ".", "length", ")", "return", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "if", "(", "this", ".", "parameters", "[", "i", "]", "!=", "args", "[", "i", "]", ")", "return", "false", ";", "return", "true", ";", "}", "public", "final", "boolean", "areTypeVariableErasuresEqual", "(", "MethodBinding", "method", ")", "{", "TypeVariableBinding", "[", "]", "vars", "=", "method", ".", "typeVariables", ";", "if", "(", "this", ".", "typeVariables", "==", "vars", ")", "return", "true", ";", "int", "length", "=", "this", ".", "typeVariables", ".", "length", ";", "if", "(", "length", "!=", "vars", ".", "length", ")", "return", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "if", "(", "this", ".", "typeVariables", "[", "i", "]", "!=", "vars", "[", "i", "]", "&&", "this", ".", "typeVariables", "[", "i", "]", ".", "erasure", "(", ")", "!=", "vars", "[", "i", "]", ".", "erasure", "(", ")", ")", "return", "false", ";", "return", "true", ";", "}", "MethodBinding", "asRawMethod", "(", "LookupEnvironment", "env", ")", "{", "if", "(", "this", ".", "typeVariables", "==", "Binding", ".", "NO_TYPE_VARIABLES", ")", "return", "this", ";", "int", "length", "=", "this", ".", "typeVariables", ".", "length", ";", "TypeBinding", "[", "]", "arguments", "=", "new", "TypeBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeVariableBinding", "var", "=", "this", ".", "typeVariables", "[", "i", "]", ";", "if", "(", "var", ".", "boundsCount", "(", ")", "<=", "1", ")", "{", "arguments", "[", "i", "]", "=", "env", ".", "convertToRawType", "(", "var", ".", "upperBound", "(", ")", ",", "false", ")", ";", "}", "else", "{", "TypeBinding", "[", "]", "itsSuperinterfaces", "=", "var", ".", "superInterfaces", "(", ")", ";", "int", "superLength", "=", "itsSuperinterfaces", ".", "length", ";", "TypeBinding", "rawFirstBound", "=", "null", ";", "TypeBinding", "[", "]", "rawOtherBounds", "=", "null", ";", "if", "(", "var", ".", "boundsCount", "(", ")", "==", "superLength", ")", "{", "rawFirstBound", "=", "env", ".", "convertToRawType", "(", "itsSuperinterfaces", "[", "0", "]", ",", "false", ")", ";", "rawOtherBounds", "=", "new", "TypeBinding", "[", "superLength", "-", "1", "]", ";", "for", "(", "int", "s", "=", "1", ";", "s", "<", "superLength", ";", "s", "++", ")", "rawOtherBounds", "[", "s", "-", "1", "]", "=", "env", ".", "convertToRawType", "(", "itsSuperinterfaces", "[", "s", "]", ",", "false", ")", ";", "}", "else", "{", "rawFirstBound", "=", "env", ".", "convertToRawType", "(", "var", ".", "superclass", "(", ")", ",", "false", ")", ";", "rawOtherBounds", "=", "new", "TypeBinding", "[", "superLength", "]", ";", "for", "(", "int", "s", "=", "0", ";", "s", "<", "superLength", ";", "s", "++", ")", "rawOtherBounds", "[", "s", "]", "=", "env", ".", "convertToRawType", "(", "itsSuperinterfaces", "[", "s", "]", ",", "false", ")", ";", "}", "arguments", "[", "i", "]", "=", "env", ".", "createWildcard", "(", "null", ",", "0", ",", "rawFirstBound", ",", "rawOtherBounds", ",", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Wildcard", ".", "EXTENDS", ")", ";", "}", "}", "return", "env", ".", "createParameterizedGenericMethod", "(", "this", ",", "arguments", ")", ";", "}", "public", "final", "boolean", "canBeSeenBy", "(", "InvocationSite", "invocationSite", ",", "Scope", "scope", ")", "{", "if", "(", "isPublic", "(", ")", ")", "return", "true", ";", "SourceTypeBinding", "invocationType", "=", "scope", ".", "enclosingSourceType", "(", ")", ";", "if", "(", "invocationType", "==", "this", ".", "declaringClass", ")", "return", "true", ";", "if", "(", "isProtected", "(", ")", ")", "{", "if", "(", "invocationType", ".", "fPackage", "==", "this", ".", "declaringClass", ".", "fPackage", ")", "return", "true", ";", "return", "invocationSite", ".", "isSuperAccess", "(", ")", ";", "}", "if", "(", "isPrivate", "(", ")", ")", "{", "ReferenceBinding", "outerInvocationType", "=", "invocationType", ";", "ReferenceBinding", "temp", "=", "outerInvocationType", ".", "enclosingType", "(", ")", ";", "while", "(", "temp", "!=", "null", ")", "{", "outerInvocationType", "=", "temp", ";", "temp", "=", "temp", ".", "enclosingType", "(", ")", ";", "}", "ReferenceBinding", "outerDeclaringClass", "=", "(", "ReferenceBinding", ")", "this", ".", "declaringClass", ".", "erasure", "(", ")", ";", "temp", "=", "outerDeclaringClass", ".", "enclosingType", "(", ")", ";", "while", "(", "temp", "!=", "null", ")", "{", "outerDeclaringClass", "=", "temp", ";", "temp", "=", "temp", ".", "enclosingType", "(", ")", ";", "}", "return", "outerInvocationType", "==", "outerDeclaringClass", ";", "}", "return", "invocationType", ".", "fPackage", "==", "this", ".", "declaringClass", ".", "fPackage", ";", "}", "public", "final", "boolean", "canBeSeenBy", "(", "PackageBinding", "invocationPackage", ")", "{", "if", "(", "isPublic", "(", ")", ")", "return", "true", ";", "if", "(", "isPrivate", "(", ")", ")", "return", "false", ";", "return", "invocationPackage", "==", "this", ".", "declaringClass", ".", "getPackage", "(", ")", ";", "}", "public", "final", "boolean", "canBeSeenBy", "(", "TypeBinding", "receiverType", ",", "InvocationSite", "invocationSite", ",", "Scope", "scope", ")", "{", "if", "(", "isPublic", "(", ")", ")", "return", "true", ";", "SourceTypeBinding", "invocationType", "=", "scope", ".", "enclosingSourceType", "(", ")", ";", "if", "(", "invocationType", "==", "this", ".", "declaringClass", "&&", "invocationType", "==", "receiverType", ")", "return", "true", ";", "if", "(", "invocationType", "==", "null", ")", "return", "!", "isPrivate", "(", ")", "&&", "scope", ".", "getCurrentPackage", "(", ")", "==", "this", ".", "declaringClass", ".", "fPackage", ";", "if", "(", "isProtected", "(", ")", ")", "{", "if", "(", "invocationType", "==", "this", ".", "declaringClass", ")", "return", "true", ";", "if", "(", "invocationType", ".", "fPackage", "==", "this", ".", "declaringClass", ".", "fPackage", ")", "return", "true", ";", "ReferenceBinding", "currentType", "=", "invocationType", ";", "TypeBinding", "receiverErasure", "=", "receiverType", ".", "erasure", "(", ")", ";", "ReferenceBinding", "declaringErasure", "=", "(", "ReferenceBinding", ")", "this", ".", "declaringClass", ".", "erasure", "(", ")", ";", "int", "depth", "=", "0", ";", "do", "{", "if", "(", "currentType", ".", "findSuperTypeOriginatingFrom", "(", "declaringErasure", ")", "!=", "null", ")", "{", "if", "(", "invocationSite", ".", "isSuperAccess", "(", ")", ")", "return", "true", ";", "if", "(", "receiverType", "instanceof", "ArrayBinding", ")", "return", "false", ";", "if", "(", "isStatic", "(", ")", ")", "{", "if", "(", "depth", ">", "0", ")", "invocationSite", ".", "setDepth", "(", "depth", ")", ";", "return", "true", ";", "}", "if", "(", "currentType", "==", "receiverErasure", "||", "receiverErasure", ".", "findSuperTypeOriginatingFrom", "(", "currentType", ")", "!=", "null", ")", "{", "if", "(", "depth", ">", "0", ")", "invocationSite", ".", "setDepth", "(", "depth", ")", ";", "return", "true", ";", "}", "}", "depth", "++", ";", "currentType", "=", "currentType", ".", "enclosingType", "(", ")", ";", "}", "while", "(", "currentType", "!=", "null", ")", ";", "return", "false", ";", "}", "if", "(", "isPrivate", "(", ")", ")", "{", "receiverCheck", ":", "{", "if", "(", "receiverType", "!=", "this", ".", "declaringClass", ")", "{", "if", "(", "receiverType", ".", "isTypeVariable", "(", ")", "&&", "(", "(", "TypeVariableBinding", ")", "receiverType", ")", ".", "isErasureBoundTo", "(", "this", ".", "declaringClass", ".", "erasure", "(", ")", ")", ")", "break", "receiverCheck", ";", "return", "false", ";", "}", "}", "if", "(", "invocationType", "!=", "this", ".", "declaringClass", ")", "{", "ReferenceBinding", "outerInvocationType", "=", "invocationType", ";", "ReferenceBinding", "temp", "=", "outerInvocationType", ".", "enclosingType", "(", ")", ";", "while", "(", "temp", "!=", "null", ")", "{", "outerInvocationType", "=", "temp", ";", "temp", "=", "temp", ".", "enclosingType", "(", ")", ";", "}", "ReferenceBinding", "outerDeclaringClass", "=", "(", "ReferenceBinding", ")", "this", ".", "declaringClass", ".", "erasure", "(", ")", ";", "temp", "=", "outerDeclaringClass", ".", "enclosingType", "(", ")", ";", "while", "(", "temp", "!=", "null", ")", "{", "outerDeclaringClass", "=", "temp", ";", "temp", "=", "temp", ".", "enclosingType", "(", ")", ";", "}", "if", "(", "outerInvocationType", "!=", "outerDeclaringClass", ")", "return", "false", ";", "}", "return", "true", ";", "}", "PackageBinding", "declaringPackage", "=", "this", ".", "declaringClass", ".", "fPackage", ";", "if", "(", "invocationType", ".", "fPackage", "!=", "declaringPackage", ")", "return", "false", ";", "if", "(", "receiverType", "instanceof", "ArrayBinding", ")", "return", "false", ";", "TypeBinding", "originalDeclaringClass", "=", "this", ".", "declaringClass", ".", "original", "(", ")", ";", "ReferenceBinding", "currentType", "=", "(", "ReferenceBinding", ")", "(", "receiverType", ")", ";", "do", "{", "if", "(", "currentType", ".", "isCapture", "(", ")", ")", "{", "if", "(", "originalDeclaringClass", "==", "currentType", ".", "erasure", "(", ")", ".", "original", "(", ")", ")", "return", "true", ";", "}", "else", "{", "if", "(", "originalDeclaringClass", "==", "currentType", ".", "original", "(", ")", ")", "return", "true", ";", "}", "PackageBinding", "currentPackage", "=", "currentType", ".", "fPackage", ";", "if", "(", "currentPackage", "!=", "null", "&&", "currentPackage", "!=", "declaringPackage", ")", "return", "false", ";", "}", "while", "(", "(", "currentType", "=", "currentType", ".", "superclass", "(", ")", ")", "!=", "null", ")", ";", "return", "false", ";", "}", "public", "List", "collectMissingTypes", "(", "List", "missingTypes", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "missingTypes", "=", "this", ".", "returnType", ".", "collectMissingTypes", "(", "missingTypes", ")", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "parameters", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "missingTypes", "=", "this", ".", "parameters", "[", "i", "]", ".", "collectMissingTypes", "(", "missingTypes", ")", ";", "}", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "thrownExceptions", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "missingTypes", "=", "this", ".", "thrownExceptions", "[", "i", "]", ".", "collectMissingTypes", "(", "missingTypes", ")", ";", "}", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "typeVariables", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "TypeVariableBinding", "variable", "=", "this", ".", "typeVariables", "[", "i", "]", ";", "missingTypes", "=", "variable", ".", "superclass", "(", ")", ".", "collectMissingTypes", "(", "missingTypes", ")", ";", "ReferenceBinding", "[", "]", "interfaces", "=", "variable", ".", "superInterfaces", "(", ")", ";", "for", "(", "int", "j", "=", "0", ",", "length", "=", "interfaces", ".", "length", ";", "j", "<", "length", ";", "j", "++", ")", "{", "missingTypes", "=", "interfaces", "[", "j", "]", ".", "collectMissingTypes", "(", "missingTypes", ")", ";", "}", "}", "}", "return", "missingTypes", ";", "}", "MethodBinding", "computeSubstitutedMethod", "(", "MethodBinding", "method", ",", "LookupEnvironment", "env", ")", "{", "int", "length", "=", "this", ".", "typeVariables", ".", "length", ";", "TypeVariableBinding", "[", "]", "vars", "=", "method", ".", "typeVariables", ";", "if", "(", "length", "!=", "vars", ".", "length", ")", "return", "null", ";", "ParameterizedGenericMethodBinding", "substitute", "=", "env", ".", "createParameterizedGenericMethod", "(", "method", ",", "this", ".", "typeVariables", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "if", "(", "!", "this", ".", "typeVariables", "[", "i", "]", ".", "isInterchangeableWith", "(", "vars", "[", "i", "]", ",", "substitute", ")", ")", "return", "null", ";", "return", "substitute", ";", "}", "public", "char", "[", "]", "computeUniqueKey", "(", "boolean", "isLeaf", ")", "{", "char", "[", "]", "declaringKey", "=", "this", ".", "declaringClass", ".", "computeUniqueKey", "(", "false", ")", ";", "int", "declaringLength", "=", "declaringKey", ".", "length", ";", "int", "selectorLength", "=", "this", ".", "selector", "==", "TypeConstants", ".", "INIT", "?", "0", ":", "this", ".", "selector", ".", "length", ";", "char", "[", "]", "sig", "=", "genericSignature", "(", ")", ";", "boolean", "isGeneric", "=", "sig", "!=", "null", ";", "if", "(", "!", "isGeneric", ")", "sig", "=", "signature", "(", ")", ";", "int", "signatureLength", "=", "sig", ".", "length", ";", "int", "thrownExceptionsLength", "=", "this", ".", "thrownExceptions", ".", "length", ";", "int", "thrownExceptionsSignatureLength", "=", "0", ";", "char", "[", "]", "[", "]", "thrownExceptionsSignatures", "=", "null", ";", "boolean", "addThrownExceptions", "=", "thrownExceptionsLength", ">", "0", "&&", "(", "!", "isGeneric", "||", "CharOperation", ".", "lastIndexOf", "(", "'^'", ",", "sig", ")", "<", "0", ")", ";", "if", "(", "addThrownExceptions", ")", "{", "thrownExceptionsSignatures", "=", "new", "char", "[", "thrownExceptionsLength", "]", "[", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "thrownExceptionsLength", ";", "i", "++", ")", "{", "if", "(", "this", ".", "thrownExceptions", "[", "i", "]", "!=", "null", ")", "{", "thrownExceptionsSignatures", "[", "i", "]", "=", "this", ".", "thrownExceptions", "[", "i", "]", ".", "signature", "(", ")", ";", "thrownExceptionsSignatureLength", "+=", "thrownExceptionsSignatures", "[", "i", "]", ".", "length", "+", "1", ";", "}", "}", "}", "char", "[", "]", "uniqueKey", "=", "new", "char", "[", "declaringLength", "+", "1", "+", "selectorLength", "+", "signatureLength", "+", "thrownExceptionsSignatureLength", "]", ";", "int", "index", "=", "0", ";", "System", ".", "arraycopy", "(", "declaringKey", ",", "0", ",", "uniqueKey", ",", "index", ",", "declaringLength", ")", ";", "index", "=", "declaringLength", ";", "uniqueKey", "[", "index", "++", "]", "=", "'.'", ";", "System", ".", "arraycopy", "(", "this", ".", "selector", ",", "0", ",", "uniqueKey", ",", "index", ",", "selectorLength", ")", ";", "index", "+=", "selectorLength", ";", "System", ".", "arraycopy", "(", "sig", ",", "0", ",", "uniqueKey", ",", "index", ",", "signatureLength", ")", ";", "if", "(", "thrownExceptionsSignatureLength", ">", "0", ")", "{", "index", "+=", "signatureLength", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "thrownExceptionsLength", ";", "i", "++", ")", "{", "char", "[", "]", "thrownExceptionSignature", "=", "thrownExceptionsSignatures", "[", "i", "]", ";", "if", "(", "thrownExceptionSignature", "!=", "null", ")", "{", "uniqueKey", "[", "index", "++", "]", "=", "'|'", ";", "int", "length", "=", "thrownExceptionSignature", ".", "length", ";", "System", ".", "arraycopy", "(", "thrownExceptionSignature", ",", "0", ",", "uniqueKey", ",", "index", ",", "length", ")", ";", "index", "+=", "length", ";", "}", "}", "}", "return", "uniqueKey", ";", "}", "public", "final", "char", "[", "]", "constantPoolName", "(", ")", "{", "return", "this", ".", "selector", ";", "}", "public", "MethodBinding", "findOriginalInheritedMethod", "(", "MethodBinding", "inheritedMethod", ")", "{", "MethodBinding", "inheritedOriginal", "=", "inheritedMethod", ".", "original", "(", ")", ";", "TypeBinding", "superType", "=", "this", ".", "declaringClass", ".", "findSuperTypeOriginatingFrom", "(", "inheritedOriginal", ".", "declaringClass", ")", ";", "if", "(", "superType", "==", "null", "||", "!", "(", "superType", "instanceof", "ReferenceBinding", ")", ")", "return", "null", ";", "if", "(", "inheritedOriginal", ".", "declaringClass", "!=", "superType", ")", "{", "MethodBinding", "[", "]", "superMethods", "=", "(", "(", "ReferenceBinding", ")", "superType", ")", ".", "getMethods", "(", "inheritedOriginal", ".", "selector", ",", "inheritedOriginal", ".", "parameters", ".", "length", ")", ";", "for", "(", "int", "m", "=", "0", ",", "l", "=", "superMethods", ".", "length", ";", "m", "<", "l", ";", "m", "++", ")", "if", "(", "superMethods", "[", "m", "]", ".", "original", "(", ")", "==", "inheritedOriginal", ")", "return", "superMethods", "[", "m", "]", ";", "}", "return", "inheritedOriginal", ";", "}", "public", "char", "[", "]", "genericSignature", "(", ")", "{", "if", "(", "(", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccGenericSignature", ")", "==", "0", ")", "return", "null", ";", "StringBuffer", "sig", "=", "new", "StringBuffer", "(", "10", ")", ";", "if", "(", "this", ".", "typeVariables", "!=", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "sig", ".", "append", "(", "'<'", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "typeVariables", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "sig", ".", "append", "(", "this", ".", "typeVariables", "[", "i", "]", ".", "genericSignature", "(", ")", ")", ";", "}", "sig", ".", "append", "(", "'>'", ")", ";", "}", "sig", ".", "append", "(", "'('", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "parameters", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "sig", ".", "append", "(", "this", ".", "parameters", "[", "i", "]", ".", "genericTypeSignature", "(", ")", ")", ";", "}", "sig", ".", "append", "(", "')'", ")", ";", "if", "(", "this", ".", "returnType", "!=", "null", ")", "sig", ".", "append", "(", "this", ".", "returnType", ".", "genericTypeSignature", "(", ")", ")", ";", "boolean", "needExceptionSignatures", "=", "false", ";", "int", "length", "=", "this", ".", "thrownExceptions", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "(", "this", ".", "thrownExceptions", "[", "i", "]", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccGenericSignature", ")", "!=", "0", ")", "{", "needExceptionSignatures", "=", "true", ";", "break", ";", "}", "}", "if", "(", "needExceptionSignatures", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "sig", ".", "append", "(", "'^'", ")", ";", "sig", ".", "append", "(", "this", ".", "thrownExceptions", "[", "i", "]", ".", "genericTypeSignature", "(", ")", ")", ";", "}", "}", "int", "sigLength", "=", "sig", ".", "length", "(", ")", ";", "char", "[", "]", "genericSignature", "=", "new", "char", "[", "sigLength", "]", ";", "sig", ".", "getChars", "(", "0", ",", "sigLength", ",", "genericSignature", ",", "0", ")", ";", "return", "genericSignature", ";", "}", "public", "final", "int", "getAccessFlags", "(", ")", "{", "return", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccJustFlag", ";", "}", "public", "AnnotationBinding", "[", "]", "getAnnotations", "(", ")", "{", "MethodBinding", "originalMethod", "=", "original", "(", ")", ";", "return", "originalMethod", ".", "declaringClass", ".", "retrieveAnnotations", "(", "originalMethod", ")", ";", "}", "public", "long", "getAnnotationTagBits", "(", ")", "{", "MethodBinding", "originalMethod", "=", "original", "(", ")", ";", "if", "(", "(", "originalMethod", ".", "tagBits", "&", "TagBits", ".", "AnnotationResolved", ")", "==", "0", "&&", "originalMethod", ".", "declaringClass", "instanceof", "SourceTypeBinding", ")", "{", "ClassScope", "scope", "=", "(", "(", "SourceTypeBinding", ")", "originalMethod", ".", "declaringClass", ")", ".", "scope", ";", "if", "(", "scope", "!=", "null", ")", "{", "TypeDeclaration", "typeDecl", "=", "scope", ".", "referenceContext", ";", "AbstractMethodDeclaration", "methodDecl", "=", "typeDecl", ".", "declarationOf", "(", "originalMethod", ")", ";", "if", "(", "methodDecl", "!=", "null", ")", "ASTNode", ".", "resolveAnnotations", "(", "methodDecl", ".", "scope", ",", "methodDecl", ".", "annotations", ",", "originalMethod", ")", ";", "}", "}", "return", "originalMethod", ".", "tagBits", ";", "}", "public", "Object", "getDefaultValue", "(", ")", "{", "MethodBinding", "originalMethod", "=", "original", "(", ")", ";", "if", "(", "(", "originalMethod", ".", "tagBits", "&", "TagBits", ".", "DefaultValueResolved", ")", "==", "0", ")", "{", "if", "(", "originalMethod", ".", "declaringClass", "instanceof", "SourceTypeBinding", ")", "{", "SourceTypeBinding", "sourceType", "=", "(", "SourceTypeBinding", ")", "originalMethod", ".", "declaringClass", ";", "if", "(", "sourceType", ".", "scope", "!=", "null", ")", "{", "AbstractMethodDeclaration", "methodDeclaration", "=", "originalMethod", ".", "sourceMethod", "(", ")", ";", "if", "(", "methodDeclaration", "!=", "null", "&&", "methodDeclaration", ".", "isAnnotationMethod", "(", ")", ")", "{", "methodDeclaration", ".", "resolve", "(", "sourceType", ".", "scope", ")", ";", "}", "}", "}", "originalMethod", ".", "tagBits", "|=", "TagBits", ".", "DefaultValueResolved", ";", "}", "AnnotationHolder", "holder", "=", "originalMethod", ".", "declaringClass", ".", "retrieveAnnotationHolder", "(", "originalMethod", ",", "true", ")", ";", "return", "holder", "==", "null", "?", "null", ":", "holder", ".", "getDefaultValue", "(", ")", ";", "}", "public", "AnnotationBinding", "[", "]", "[", "]", "getParameterAnnotations", "(", ")", "{", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "parameters", ".", "length", ")", "==", "0", ")", "{", "return", "null", ";", "}", "MethodBinding", "originalMethod", "=", "original", "(", ")", ";", "AnnotationHolder", "holder", "=", "originalMethod", ".", "declaringClass", ".", "retrieveAnnotationHolder", "(", "originalMethod", ",", "true", ")", ";", "AnnotationBinding", "[", "]", "[", "]", "allParameterAnnotations", "=", "holder", "==", "null", "?", "null", ":", "holder", ".", "getParameterAnnotations", "(", ")", ";", "if", "(", "allParameterAnnotations", "==", "null", "&&", "(", "this", ".", "tagBits", "&", "TagBits", ".", "HasParameterAnnotations", ")", "!=", "0", ")", "{", "allParameterAnnotations", "=", "new", "AnnotationBinding", "[", "length", "]", "[", "]", ";", "if", "(", "this", ".", "declaringClass", "instanceof", "SourceTypeBinding", ")", "{", "SourceTypeBinding", "sourceType", "=", "(", "SourceTypeBinding", ")", "this", ".", "declaringClass", ";", "if", "(", "sourceType", ".", "scope", "!=", "null", ")", "{", "AbstractMethodDeclaration", "methodDecl", "=", "sourceType", ".", "scope", ".", "referenceType", "(", ")", ".", "declarationOf", "(", "this", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "Argument", "argument", "=", "methodDecl", ".", "arguments", "[", "i", "]", ";", "if", "(", "argument", ".", "annotations", "!=", "null", ")", "{", "ASTNode", ".", "resolveAnnotations", "(", "methodDecl", ".", "scope", ",", "argument", ".", "annotations", ",", "argument", ".", "binding", ")", ";", "allParameterAnnotations", "[", "i", "]", "=", "argument", ".", "binding", ".", "getAnnotations", "(", ")", ";", "}", "else", "{", "allParameterAnnotations", "[", "i", "]", "=", "Binding", ".", "NO_ANNOTATIONS", ";", "}", "}", "}", "else", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "allParameterAnnotations", "[", "i", "]", "=", "Binding", ".", "NO_ANNOTATIONS", ";", "}", "}", "}", "else", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "allParameterAnnotations", "[", "i", "]", "=", "Binding", ".", "NO_ANNOTATIONS", ";", "}", "}", "setParameterAnnotations", "(", "allParameterAnnotations", ")", ";", "}", "return", "allParameterAnnotations", ";", "}", "public", "TypeVariableBinding", "getTypeVariable", "(", "char", "[", "]", "variableName", ")", "{", "for", "(", "int", "i", "=", "this", ".", "typeVariables", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "CharOperation", ".", "equals", "(", "this", ".", "typeVariables", "[", "i", "]", ".", "sourceName", ",", "variableName", ")", ")", "return", "this", ".", "typeVariables", "[", "i", "]", ";", "return", "null", ";", "}", "public", "boolean", "hasSubstitutedParameters", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "hasSubstitutedReturnType", "(", ")", "{", "return", "false", ";", "}", "public", "final", "boolean", "isAbstract", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccAbstract", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isBridge", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccBridge", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isConstructor", "(", ")", "{", "return", "this", ".", "selector", "==", "TypeConstants", ".", "INIT", ";", "}", "public", "final", "boolean", "isDefault", "(", ")", "{", "return", "!", "isPublic", "(", ")", "&&", "!", "isProtected", "(", ")", "&&", "!", "isPrivate", "(", ")", ";", "}", "public", "final", "boolean", "isDefaultAbstract", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccDefaultAbstract", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isDeprecated", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccDeprecated", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isFinal", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccFinal", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isImplementing", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccImplementing", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isMain", "(", ")", "{", "if", "(", "this", ".", "selector", ".", "length", "==", "4", "&&", "CharOperation", ".", "equals", "(", "this", ".", "selector", ",", "TypeConstants", ".", "MAIN", ")", "&&", "(", "(", "this", ".", "modifiers", "&", "(", "ClassFileConstants", ".", "AccPublic", "|", "ClassFileConstants", ".", "AccStatic", ")", ")", "!=", "0", ")", "&&", "TypeBinding", ".", "VOID", "==", "this", ".", "returnType", "&&", "this", ".", "parameters", ".", "length", "==", "1", ")", "{", "TypeBinding", "paramType", "=", "this", ".", "parameters", "[", "0", "]", ";", "if", "(", "paramType", ".", "dimensions", "(", ")", "==", "1", "&&", "paramType", ".", "leafComponentType", "(", ")", ".", "id", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";", "}", "public", "final", "boolean", "isNative", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccNative", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isOverriding", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccOverriding", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isPrivate", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccPrivate", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isOrEnclosedByPrivateType", "(", ")", "{", "if", "(", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccPrivate", ")", "!=", "0", ")", "return", "true", ";", "return", "this", ".", "declaringClass", "!=", "null", "&&", "this", ".", "declaringClass", ".", "isOrEnclosedByPrivateType", "(", ")", ";", "}", "public", "final", "boolean", "isProtected", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccProtected", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isPublic", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccPublic", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isStatic", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccStatic", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isStrictfp", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccStrictfp", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isSynchronized", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccSynchronized", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isSynthetic", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccSynthetic", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isUsed", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccLocallyUsed", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isVarargs", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccVarargs", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isViewedAsDeprecated", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "(", "ClassFileConstants", ".", "AccDeprecated", "|", "ExtraCompilerModifiers", ".", "AccDeprecatedImplicitly", ")", ")", "!=", "0", ";", "}", "public", "final", "int", "kind", "(", ")", "{", "return", "Binding", ".", "METHOD", ";", "}", "public", "MethodBinding", "original", "(", ")", "{", "return", "this", ";", "}", "public", "char", "[", "]", "readableName", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "this", ".", "parameters", ".", "length", "+", "1", "*", "20", ")", ";", "if", "(", "isConstructor", "(", ")", ")", "buffer", ".", "append", "(", "this", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ";", "else", "buffer", ".", "append", "(", "this", ".", "selector", ")", ";", "buffer", ".", "append", "(", "'('", ")", ";", "if", "(", "this", ".", "parameters", "!=", "Binding", ".", "NO_PARAMETERS", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "parameters", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "buffer", ".", "append", "(", "\",", "\"", ")", ";", "buffer", ".", "append", "(", "this", ".", "parameters", "[", "i", "]", ".", "sourceName", "(", ")", ")", ";", "}", "}", "buffer", ".", "append", "(", "')'", ")", ";", "return", "buffer", ".", "toString", "(", ")", ".", "toCharArray", "(", ")", ";", "}", "public", "void", "setAnnotations", "(", "AnnotationBinding", "[", "]", "annotations", ")", "{", "this", ".", "declaringClass", ".", "storeAnnotations", "(", "this", ",", "annotations", ")", ";", "}", "public", "void", "setAnnotations", "(", "AnnotationBinding", "[", "]", "annotations", ",", "AnnotationBinding", "[", "]", "[", "]", "parameterAnnotations", ",", "Object", "defaultValue", ",", "LookupEnvironment", "optionalEnv", ")", "{", "this", ".", "declaringClass", ".", "storeAnnotationHolder", "(", "this", ",", "AnnotationHolder", ".", "storeAnnotations", "(", "annotations", ",", "parameterAnnotations", ",", "defaultValue", ",", "optionalEnv", ")", ")", ";", "}", "public", "void", "setDefaultValue", "(", "Object", "defaultValue", ")", "{", "MethodBinding", "originalMethod", "=", "original", "(", ")", ";", "originalMethod", ".", "tagBits", "|=", "TagBits", ".", "DefaultValueResolved", ";", "AnnotationHolder", "holder", "=", "this", ".", "declaringClass", ".", "retrieveAnnotationHolder", "(", "this", ",", "false", ")", ";", "if", "(", "holder", "==", "null", ")", "setAnnotations", "(", "null", ",", "null", ",", "defaultValue", ",", "null", ")", ";", "else", "setAnnotations", "(", "holder", ".", "getAnnotations", "(", ")", ",", "holder", ".", "getParameterAnnotations", "(", ")", ",", "defaultValue", ",", "null", ")", ";", "}", "public", "void", "setParameterAnnotations", "(", "AnnotationBinding", "[", "]", "[", "]", "parameterAnnotations", ")", "{", "AnnotationHolder", "holder", "=", "this", ".", "declaringClass", ".", "retrieveAnnotationHolder", "(", "this", ",", "false", ")", ";", "if", "(", "holder", "==", "null", ")", "setAnnotations", "(", "null", ",", "parameterAnnotations", ",", "null", ",", "null", ")", ";", "else", "setAnnotations", "(", "holder", ".", "getAnnotations", "(", ")", ",", "parameterAnnotations", ",", "holder", ".", "getDefaultValue", "(", ")", ",", "null", ")", ";", "}", "protected", "final", "void", "setSelector", "(", "char", "[", "]", "selector", ")", "{", "this", ".", "selector", "=", "selector", ";", "this", ".", "signature", "=", "null", ";", "}", "public", "char", "[", "]", "shortReadableName", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "this", ".", "parameters", ".", "length", "+", "1", "*", "20", ")", ";", "if", "(", "isConstructor", "(", ")", ")", "buffer", ".", "append", "(", "this", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ";", "else", "buffer", ".", "append", "(", "this", ".", "selector", ")", ";", "buffer", ".", "append", "(", "'('", ")", ";", "if", "(", "this", ".", "parameters", "!=", "Binding", ".", "NO_PARAMETERS", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "parameters", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "buffer", ".", "append", "(", "\",", "\"", ")", ";", "buffer", ".", "append", "(", "this", ".", "parameters", "[", "i", "]", ".", "shortReadableName", "(", ")", ")", ";", "}", "}", "buffer", ".", "append", "(", "')'", ")", ";", "int", "nameLength", "=", "buffer", ".", "length", "(", ")", ";", "char", "[", "]", "shortReadableName", "=", "new", "char", "[", "nameLength", "]", ";", "buffer", ".", "getChars", "(", "0", ",", "nameLength", ",", "shortReadableName", ",", "0", ")", ";", "return", "shortReadableName", ";", "}", "public", "final", "char", "[", "]", "signature", "(", ")", "{", "if", "(", "this", ".", "signature", "!=", "null", ")", "return", "this", ".", "signature", ";", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "this", ".", "parameters", ".", "length", "+", "1", "*", "20", ")", ";", "buffer", ".", "append", "(", "'('", ")", ";", "TypeBinding", "[", "]", "targetParameters", "=", "this", ".", "parameters", ";", "boolean", "isConstructor", "=", "isConstructor", "(", ")", ";", "if", "(", "isConstructor", "&&", "this", ".", "declaringClass", ".", "isEnum", "(", ")", ")", "{", "buffer", ".", "append", "(", "ConstantPool", ".", "JavaLangStringSignature", ")", ";", "buffer", ".", "append", "(", "TypeBinding", ".", "INT", ".", "signature", "(", ")", ")", ";", "}", "boolean", "needSynthetics", "=", "isConstructor", "&&", "this", ".", "declaringClass", ".", "isNestedType", "(", ")", ";", "if", "(", "needSynthetics", ")", "{", "ReferenceBinding", "[", "]", "syntheticArgumentTypes", "=", "this", ".", "declaringClass", ".", "syntheticEnclosingInstanceTypes", "(", ")", ";", "if", "(", "syntheticArgumentTypes", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "syntheticArgumentTypes", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "buffer", ".", "append", "(", "syntheticArgumentTypes", "[", "i", "]", ".", "signature", "(", ")", ")", ";", "}", "}", "if", "(", "this", "instanceof", "SyntheticMethodBinding", ")", "{", "targetParameters", "=", "(", "(", "SyntheticMethodBinding", ")", "this", ")", ".", "targetMethod", ".", "parameters", ";", "}", "}", "if", "(", "targetParameters", "!=", "Binding", ".", "NO_PARAMETERS", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "targetParameters", ".", "length", ";", "i", "++", ")", "{", "buffer", ".", "append", "(", "targetParameters", "[", "i", "]", ".", "signature", "(", ")", ")", ";", "}", "}", "if", "(", "needSynthetics", ")", "{", "SyntheticArgumentBinding", "[", "]", "syntheticOuterArguments", "=", "this", ".", "declaringClass", ".", "syntheticOuterLocalVariables", "(", ")", ";", "int", "count", "=", "syntheticOuterArguments", "==", "null", "?", "0", ":", "syntheticOuterArguments", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "count", ";", "i", "++", ")", "{", "buffer", ".", "append", "(", "syntheticOuterArguments", "[", "i", "]", ".", "type", ".", "signature", "(", ")", ")", ";", "}", "for", "(", "int", "i", "=", "targetParameters", ".", "length", ",", "extraLength", "=", "this", ".", "parameters", ".", "length", ";", "i", "<", "extraLength", ";", "i", "++", ")", "{", "buffer", ".", "append", "(", "this", ".", "parameters", "[", "i", "]", ".", "signature", "(", ")", ")", ";", "}", "}", "buffer", ".", "append", "(", "')'", ")", ";", "if", "(", "this", ".", "returnType", "!=", "null", ")", "buffer", ".", "append", "(", "this", ".", "returnType", ".", "signature", "(", ")", ")", ";", "int", "nameLength", "=", "buffer", ".", "length", "(", ")", ";", "this", ".", "signature", "=", "new", "char", "[", "nameLength", "]", ";", "buffer", ".", "getChars", "(", "0", ",", "nameLength", ",", "this", ".", "signature", ",", "0", ")", ";", "return", "this", ".", "signature", ";", "}", "public", "final", "char", "[", "]", "signature", "(", "ClassFile", "classFile", ")", "{", "if", "(", "this", ".", "signature", "!=", "null", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ")", "!=", "0", ")", "{", "boolean", "isConstructor", "=", "isConstructor", "(", ")", ";", "TypeBinding", "[", "]", "targetParameters", "=", "this", ".", "parameters", ";", "boolean", "needSynthetics", "=", "isConstructor", "&&", "this", ".", "declaringClass", ".", "isNestedType", "(", ")", ";", "if", "(", "needSynthetics", ")", "{", "ReferenceBinding", "[", "]", "syntheticArgumentTypes", "=", "this", ".", "declaringClass", ".", "syntheticEnclosingInstanceTypes", "(", ")", ";", "if", "(", "syntheticArgumentTypes", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "syntheticArgumentTypes", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "ReferenceBinding", "syntheticArgumentType", "=", "syntheticArgumentTypes", "[", "i", "]", ";", "if", "(", "(", "syntheticArgumentType", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ")", "!=", "0", ")", "{", "Util", ".", "recordNestedType", "(", "classFile", ",", "syntheticArgumentType", ")", ";", "}", "}", "}", "if", "(", "this", "instanceof", "SyntheticMethodBinding", ")", "{", "targetParameters", "=", "(", "(", "SyntheticMethodBinding", ")", "this", ")", ".", "targetMethod", ".", "parameters", ";", "}", "}", "if", "(", "targetParameters", "!=", "Binding", ".", "NO_PARAMETERS", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "targetParameters", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "TypeBinding", "targetParameter", "=", "targetParameters", "[", "i", "]", ";", "TypeBinding", "leafTargetParameterType", "=", "targetParameter", ".", "leafComponentType", "(", ")", ";", "if", "(", "(", "leafTargetParameterType", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ")", "!=", "0", ")", "{", "Util", ".", "recordNestedType", "(", "classFile", ",", "leafTargetParameterType", ")", ";", "}", "}", "}", "if", "(", "needSynthetics", ")", "{", "for", "(", "int", "i", "=", "targetParameters", ".", "length", ",", "extraLength", "=", "this", ".", "parameters", ".", "length", ";", "i", "<", "extraLength", ";", "i", "++", ")", "{", "TypeBinding", "parameter", "=", "this", ".", "parameters", "[", "i", "]", ";", "TypeBinding", "leafParameterType", "=", "parameter", ".", "leafComponentType", "(", ")", ";", "if", "(", "(", "leafParameterType", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ")", "!=", "0", ")", "{", "Util", ".", "recordNestedType", "(", "classFile", ",", "leafParameterType", ")", ";", "}", "}", "}", "if", "(", "this", ".", "returnType", "!=", "null", ")", "{", "TypeBinding", "ret", "=", "this", ".", "returnType", ".", "leafComponentType", "(", ")", ";", "if", "(", "(", "ret", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ")", "!=", "0", ")", "{", "Util", ".", "recordNestedType", "(", "classFile", ",", "ret", ")", ";", "}", "}", "}", "return", "this", ".", "signature", ";", "}", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "this", ".", "parameters", ".", "length", "+", "1", "*", "20", ")", ";", "buffer", ".", "append", "(", "'('", ")", ";", "TypeBinding", "[", "]", "targetParameters", "=", "this", ".", "parameters", ";", "boolean", "isConstructor", "=", "isConstructor", "(", ")", ";", "if", "(", "isConstructor", "&&", "this", ".", "declaringClass", ".", "isEnum", "(", ")", ")", "{", "buffer", ".", "append", "(", "ConstantPool", ".", "JavaLangStringSignature", ")", ";", "buffer", ".", "append", "(", "TypeBinding", ".", "INT", ".", "signature", "(", ")", ")", ";", "}", "boolean", "needSynthetics", "=", "isConstructor", "&&", "this", ".", "declaringClass", ".", "isNestedType", "(", ")", ";", "if", "(", "needSynthetics", ")", "{", "ReferenceBinding", "[", "]", "syntheticArgumentTypes", "=", "this", ".", "declaringClass", ".", "syntheticEnclosingInstanceTypes", "(", ")", ";", "if", "(", "syntheticArgumentTypes", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "syntheticArgumentTypes", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "ReferenceBinding", "syntheticArgumentType", "=", "syntheticArgumentTypes", "[", "i", "]", ";", "if", "(", "(", "syntheticArgumentType", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ")", "!=", "0", ")", "{", "this", ".", "tagBits", "|=", "TagBits", ".", "ContainsNestedTypeReferences", ";", "Util", ".", "recordNestedType", "(", "classFile", ",", "syntheticArgumentType", ")", ";", "}", "buffer", ".", "append", "(", "syntheticArgumentType", ".", "signature", "(", ")", ")", ";", "}", "}", "if", "(", "this", "instanceof", "SyntheticMethodBinding", ")", "{", "targetParameters", "=", "(", "(", "SyntheticMethodBinding", ")", "this", ")", ".", "targetMethod", ".", "parameters", ";", "}", "}", "if", "(", "targetParameters", "!=", "Binding", ".", "NO_PARAMETERS", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "targetParameters", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "TypeBinding", "targetParameter", "=", "targetParameters", "[", "i", "]", ";", "TypeBinding", "leafTargetParameterType", "=", "targetParameter", ".", "leafComponentType", "(", ")", ";", "if", "(", "(", "leafTargetParameterType", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ")", "!=", "0", ")", "{", "this", ".", "tagBits", "|=", "TagBits", ".", "ContainsNestedTypeReferences", ";", "Util", ".", "recordNestedType", "(", "classFile", ",", "leafTargetParameterType", ")", ";", "}", "buffer", ".", "append", "(", "targetParameter", ".", "signature", "(", ")", ")", ";", "}", "}", "if", "(", "needSynthetics", ")", "{", "SyntheticArgumentBinding", "[", "]", "syntheticOuterArguments", "=", "this", ".", "declaringClass", ".", "syntheticOuterLocalVariables", "(", ")", ";", "int", "count", "=", "syntheticOuterArguments", "==", "null", "?", "0", ":", "syntheticOuterArguments", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "count", ";", "i", "++", ")", "{", "buffer", ".", "append", "(", "syntheticOuterArguments", "[", "i", "]", ".", "type", ".", "signature", "(", ")", ")", ";", "}", "for", "(", "int", "i", "=", "targetParameters", ".", "length", ",", "extraLength", "=", "this", ".", "parameters", ".", "length", ";", "i", "<", "extraLength", ";", "i", "++", ")", "{", "TypeBinding", "parameter", "=", "this", ".", "parameters", "[", "i", "]", ";", "TypeBinding", "leafParameterType", "=", "parameter", ".", "leafComponentType", "(", ")", ";", "if", "(", "(", "leafParameterType", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ")", "!=", "0", ")", "{", "this", ".", "tagBits", "|=", "TagBits", ".", "ContainsNestedTypeReferences", ";", "Util", ".", "recordNestedType", "(", "classFile", ",", "leafParameterType", ")", ";", "}", "buffer", ".", "append", "(", "parameter", ".", "signature", "(", ")", ")", ";", "}", "}", "buffer", ".", "append", "(", "')'", ")", ";", "if", "(", "this", ".", "returnType", "!=", "null", ")", "{", "TypeBinding", "ret", "=", "this", ".", "returnType", ".", "leafComponentType", "(", ")", ";", "if", "(", "(", "ret", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ")", "!=", "0", ")", "{", "this", ".", "tagBits", "|=", "TagBits", ".", "ContainsNestedTypeReferences", ";", "Util", ".", "recordNestedType", "(", "classFile", ",", "ret", ")", ";", "}", "buffer", ".", "append", "(", "this", ".", "returnType", ".", "signature", "(", ")", ")", ";", "}", "int", "nameLength", "=", "buffer", ".", "length", "(", ")", ";", "this", ".", "signature", "=", "new", "char", "[", "nameLength", "]", ";", "buffer", ".", "getChars", "(", "0", ",", "nameLength", ",", "this", ".", "signature", ",", "0", ")", ";", "return", "this", ".", "signature", ";", "}", "public", "final", "int", "sourceEnd", "(", ")", "{", "AbstractMethodDeclaration", "method", "=", "sourceMethod", "(", ")", ";", "if", "(", "method", "==", "null", ")", "{", "if", "(", "this", ".", "declaringClass", "instanceof", "SourceTypeBinding", ")", "return", "(", "(", "SourceTypeBinding", ")", "this", ".", "declaringClass", ")", ".", "sourceEnd", "(", ")", ";", "return", "0", ";", "}", "return", "method", ".", "sourceEnd", ";", "}", "public", "AbstractMethodDeclaration", "sourceMethod", "(", ")", "{", "if", "(", "isSynthetic", "(", ")", ")", "{", "return", "null", ";", "}", "SourceTypeBinding", "sourceType", ";", "try", "{", "sourceType", "=", "(", "SourceTypeBinding", ")", "this", ".", "declaringClass", ";", "}", "catch", "(", "ClassCastException", "e", ")", "{", "return", "null", ";", "}", "AbstractMethodDeclaration", "[", "]", "methods", "=", "sourceType", ".", "scope", ".", "referenceContext", ".", "methods", ";", "if", "(", "methods", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "methods", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "this", "==", "methods", "[", "i", "]", ".", "binding", ")", "return", "methods", "[", "i", "]", ";", "}", "return", "null", ";", "}", "public", "final", "int", "sourceStart", "(", ")", "{", "AbstractMethodDeclaration", "method", "=", "sourceMethod", "(", ")", ";", "if", "(", "method", "==", "null", ")", "{", "if", "(", "this", ".", "declaringClass", "instanceof", "SourceTypeBinding", ")", "return", "(", "(", "SourceTypeBinding", ")", "this", ".", "declaringClass", ")", ".", "sourceStart", "(", ")", ";", "return", "0", ";", "}", "return", "method", ".", "sourceStart", ";", "}", "public", "MethodBinding", "tiebreakMethod", "(", ")", "{", "return", "this", ";", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "output", "=", "new", "StringBuffer", "(", "10", ")", ";", "if", "(", "(", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccUnresolved", ")", "!=", "0", ")", "{", "output", ".", "append", "(", "\"\"", ")", ";", "}", "ASTNode", ".", "printModifiers", "(", "this", ".", "modifiers", ",", "output", ")", ";", "output", ".", "append", "(", "this", ".", "returnType", "!=", "null", "?", "this", ".", "returnType", ".", "debugName", "(", ")", ":", "\"<no", "type>\"", ")", ";", "output", ".", "append", "(", "\"", "\"", ")", ";", "output", ".", "append", "(", "this", ".", "selector", "!=", "null", "?", "new", "String", "(", "this", ".", "selector", ")", ":", "\"\"", ")", ";", "output", ".", "append", "(", "\"(\"", ")", ";", "if", "(", "this", ".", "parameters", "!=", "null", ")", "{", "if", "(", "this", ".", "parameters", "!=", "Binding", ".", "NO_PARAMETERS", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "parameters", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "output", ".", "append", "(", "\",", "\"", ")", ";", "output", ".", "append", "(", "this", ".", "parameters", "[", "i", "]", "!=", "null", "?", "this", ".", "parameters", "[", "i", "]", ".", "debugName", "(", ")", ":", "\"\"", ")", ";", "}", "}", "}", "else", "{", "output", ".", "append", "(", "\"\"", ")", ";", "}", "output", ".", "append", "(", "\")", "\"", ")", ";", "if", "(", "this", ".", "thrownExceptions", "!=", "null", ")", "{", "if", "(", "this", ".", "thrownExceptions", "!=", "Binding", ".", "NO_EXCEPTIONS", ")", "{", "output", ".", "append", "(", "\"throws", "\"", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "thrownExceptions", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "output", ".", "append", "(", "\",", "\"", ")", ";", "output", ".", "append", "(", "(", "this", ".", "thrownExceptions", "[", "i", "]", "!=", "null", ")", "?", "this", ".", "thrownExceptions", "[", "i", "]", ".", "debugName", "(", ")", ":", "\"\"", ")", ";", "}", "}", "}", "else", "{", "output", ".", "append", "(", "\"\"", ")", ";", "}", "return", "output", ".", "toString", "(", ")", ";", "}", "public", "TypeVariableBinding", "[", "]", "typeVariables", "(", ")", "{", "return", "this", ".", "typeVariables", ";", "}", "}", "</s>" ]
5,618
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeParameter", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "HashtableOfObject", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "SimpleSet", ";", "class", "MethodVerifier15", "extends", "MethodVerifier", "{", "MethodVerifier15", "(", "LookupEnvironment", "environment", ")", "{", "super", "(", "environment", ")", ";", "}", "boolean", "areMethodsCompatible", "(", "MethodBinding", "one", ",", "MethodBinding", "two", ")", "{", "one", "=", "one", ".", "original", "(", ")", ";", "two", "=", "one", ".", "findOriginalInheritedMethod", "(", "two", ")", ";", "if", "(", "two", "==", "null", ")", "return", "false", ";", "return", "isParameterSubsignature", "(", "one", ",", "two", ")", ";", "}", "boolean", "areParametersEqual", "(", "MethodBinding", "one", ",", "MethodBinding", "two", ")", "{", "TypeBinding", "[", "]", "oneArgs", "=", "one", ".", "parameters", ";", "TypeBinding", "[", "]", "twoArgs", "=", "two", ".", "parameters", ";", "if", "(", "oneArgs", "==", "twoArgs", ")", "return", "true", ";", "int", "length", "=", "oneArgs", ".", "length", ";", "if", "(", "length", "!=", "twoArgs", ".", "length", ")", "return", "false", ";", "if", "(", "one", ".", "declaringClass", ".", "isInterface", "(", ")", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "if", "(", "!", "areTypesEqual", "(", "oneArgs", "[", "i", "]", ",", "twoArgs", "[", "i", "]", ")", ")", "return", "false", ";", "}", "else", "{", "int", "i", ";", "foundRAW", ":", "for", "(", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "!", "areTypesEqual", "(", "oneArgs", "[", "i", "]", ",", "twoArgs", "[", "i", "]", ")", ")", "{", "if", "(", "oneArgs", "[", "i", "]", ".", "leafComponentType", "(", ")", ".", "isRawType", "(", ")", ")", "{", "if", "(", "oneArgs", "[", "i", "]", ".", "dimensions", "(", ")", "==", "twoArgs", "[", "i", "]", ".", "dimensions", "(", ")", "&&", "oneArgs", "[", "i", "]", ".", "leafComponentType", "(", ")", ".", "isEquivalentTo", "(", "twoArgs", "[", "i", "]", ".", "leafComponentType", "(", ")", ")", ")", "{", "if", "(", "one", ".", "typeVariables", "!=", "Binding", ".", "NO_TYPE_VARIABLES", ")", "return", "false", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "i", ";", "j", "++", ")", "if", "(", "oneArgs", "[", "j", "]", ".", "leafComponentType", "(", ")", ".", "isParameterizedTypeWithActualArguments", "(", ")", ")", "return", "false", ";", "break", "foundRAW", ";", "}", "}", "return", "false", ";", "}", "}", "for", "(", "i", "++", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "!", "areTypesEqual", "(", "oneArgs", "[", "i", "]", ",", "twoArgs", "[", "i", "]", ")", ")", "{", "if", "(", "oneArgs", "[", "i", "]", ".", "leafComponentType", "(", ")", ".", "isRawType", "(", ")", ")", "if", "(", "oneArgs", "[", "i", "]", ".", "dimensions", "(", ")", "==", "twoArgs", "[", "i", "]", ".", "dimensions", "(", ")", "&&", "oneArgs", "[", "i", "]", ".", "leafComponentType", "(", ")", ".", "isEquivalentTo", "(", "twoArgs", "[", "i", "]", ".", "leafComponentType", "(", ")", ")", ")", "continue", ";", "return", "false", ";", "}", "else", "if", "(", "oneArgs", "[", "i", "]", ".", "leafComponentType", "(", ")", ".", "isParameterizedTypeWithActualArguments", "(", ")", ")", "{", "return", "false", ";", "}", "}", "}", "return", "true", ";", "}", "boolean", "areReturnTypesCompatible", "(", "MethodBinding", "one", ",", "MethodBinding", "two", ")", "{", "if", "(", "one", ".", "returnType", "==", "two", ".", "returnType", ")", "return", "true", ";", "return", "areReturnTypesCompatible0", "(", "one", ",", "two", ")", ";", "}", "boolean", "areTypesEqual", "(", "TypeBinding", "one", ",", "TypeBinding", "two", ")", "{", "if", "(", "one", "==", "two", ")", "return", "true", ";", "if", "(", "one", ".", "isParameterizedType", "(", ")", "&&", "two", ".", "isParameterizedType", "(", ")", ")", "return", "one", ".", "isEquivalentTo", "(", "two", ")", "&&", "two", ".", "isEquivalentTo", "(", "one", ")", ";", "return", "false", ";", "}", "protected", "boolean", "canOverridingMethodDifferInErasure", "(", "MethodBinding", "overridingMethod", ",", "MethodBinding", "inheritedMethod", ")", "{", "if", "(", "overridingMethod", ".", "areParameterErasuresEqual", "(", "inheritedMethod", ")", ")", "return", "false", ";", "if", "(", "overridingMethod", ".", "declaringClass", ".", "isRawType", "(", ")", ")", "return", "false", ";", "return", "true", ";", "}", "boolean", "canSkipInheritedMethods", "(", ")", "{", "if", "(", "this", ".", "type", ".", "superclass", "(", ")", "!=", "null", ")", "if", "(", "this", ".", "type", ".", "superclass", "(", ")", ".", "isAbstract", "(", ")", "||", "this", ".", "type", ".", "superclass", "(", ")", ".", "isParameterizedType", "(", ")", ")", "return", "false", ";", "return", "this", ".", "type", ".", "superInterfaces", "(", ")", "==", "Binding", ".", "NO_SUPERINTERFACES", ";", "}", "boolean", "canSkipInheritedMethods", "(", "MethodBinding", "one", ",", "MethodBinding", "two", ")", "{", "return", "two", "==", "null", "||", "(", "one", ".", "declaringClass", "==", "two", ".", "declaringClass", "&&", "!", "one", ".", "declaringClass", ".", "isParameterizedType", "(", ")", ")", ";", "}", "void", "checkConcreteInheritedMethod", "(", "MethodBinding", "concreteMethod", ",", "MethodBinding", "[", "]", "abstractMethods", ")", "{", "super", ".", "checkConcreteInheritedMethod", "(", "concreteMethod", ",", "abstractMethods", ")", ";", "for", "(", "int", "i", "=", "0", ",", "l", "=", "abstractMethods", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "{", "MethodBinding", "abstractMethod", "=", "abstractMethods", "[", "i", "]", ";", "if", "(", "concreteMethod", ".", "isVarargs", "(", ")", "!=", "abstractMethod", ".", "isVarargs", "(", ")", ")", "problemReporter", "(", ")", ".", "varargsConflict", "(", "concreteMethod", ",", "abstractMethod", ",", "this", ".", "type", ")", ";", "MethodBinding", "originalInherited", "=", "abstractMethod", ".", "original", "(", ")", ";", "if", "(", "originalInherited", ".", "returnType", "!=", "concreteMethod", ".", "returnType", ")", "if", "(", "!", "isAcceptableReturnTypeOverride", "(", "concreteMethod", ",", "abstractMethod", ")", ")", "problemReporter", "(", ")", ".", "unsafeReturnTypeOverride", "(", "concreteMethod", ",", "originalInherited", ",", "this", ".", "type", ")", ";", "if", "(", "originalInherited", ".", "declaringClass", ".", "isInterface", "(", ")", ")", "{", "if", "(", "(", "concreteMethod", ".", "declaringClass", "==", "this", ".", "type", ".", "superclass", "&&", "this", ".", "type", ".", "superclass", ".", "isParameterizedType", "(", ")", "&&", "!", "areMethodsCompatible", "(", "concreteMethod", ",", "originalInherited", ")", ")", "||", "this", ".", "type", ".", "superclass", ".", "erasure", "(", ")", ".", "findSuperTypeOriginatingFrom", "(", "originalInherited", ".", "declaringClass", ")", "==", "null", ")", "this", ".", "type", ".", "addSyntheticBridgeMethod", "(", "originalInherited", ",", "concreteMethod", ".", "original", "(", ")", ")", ";", "}", "}", "}", "void", "checkForBridgeMethod", "(", "MethodBinding", "currentMethod", ",", "MethodBinding", "inheritedMethod", ",", "MethodBinding", "[", "]", "allInheritedMethods", ")", "{", "if", "(", "currentMethod", ".", "isVarargs", "(", ")", "!=", "inheritedMethod", ".", "isVarargs", "(", ")", ")", "problemReporter", "(", "currentMethod", ")", ".", "varargsConflict", "(", "currentMethod", ",", "inheritedMethod", ",", "this", ".", "type", ")", ";", "MethodBinding", "originalInherited", "=", "inheritedMethod", ".", "original", "(", ")", ";", "if", "(", "originalInherited", ".", "returnType", "!=", "currentMethod", ".", "returnType", ")", "if", "(", "!", "isAcceptableReturnTypeOverride", "(", "currentMethod", ",", "inheritedMethod", ")", ")", "problemReporter", "(", "currentMethod", ")", ".", "unsafeReturnTypeOverride", "(", "currentMethod", ",", "originalInherited", ",", "this", ".", "type", ")", ";", "MethodBinding", "bridge", "=", "this", ".", "type", ".", "addSyntheticBridgeMethod", "(", "originalInherited", ",", "currentMethod", ".", "original", "(", ")", ")", ";", "if", "(", "bridge", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "l", "=", "allInheritedMethods", "==", "null", "?", "0", ":", "allInheritedMethods", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "{", "if", "(", "allInheritedMethods", "[", "i", "]", "!=", "null", "&&", "detectInheritedNameClash", "(", "originalInherited", ",", "allInheritedMethods", "[", "i", "]", ".", "original", "(", ")", ")", ")", "return", ";", "}", "MethodBinding", "[", "]", "current", "=", "(", "MethodBinding", "[", "]", ")", "this", ".", "currentMethods", ".", "get", "(", "bridge", ".", "selector", ")", ";", "for", "(", "int", "i", "=", "current", ".", "length", "-", "1", ";", "i", ">=", "0", ";", "--", "i", ")", "{", "final", "MethodBinding", "thisMethod", "=", "current", "[", "i", "]", ";", "if", "(", "thisMethod", ".", "areParameterErasuresEqual", "(", "bridge", ")", "&&", "thisMethod", ".", "returnType", ".", "erasure", "(", ")", "==", "bridge", ".", "returnType", ".", "erasure", "(", ")", ")", "{", "problemReporter", "(", "thisMethod", ")", ".", "methodNameClash", "(", "thisMethod", ",", "inheritedMethod", ".", "declaringClass", ".", "isRawType", "(", ")", "?", "inheritedMethod", ":", "inheritedMethod", ".", "original", "(", ")", ")", ";", "return", ";", "}", "}", "}", "}", "void", "checkForNameClash", "(", "MethodBinding", "currentMethod", ",", "MethodBinding", "inheritedMethod", ")", "{", "if", "(", "currentMethod", ".", "declaringClass", ".", "isInterface", "(", ")", "||", "inheritedMethod", ".", "isStatic", "(", ")", ")", "return", ";", "if", "(", "!", "detectNameClash", "(", "currentMethod", ",", "inheritedMethod", ",", "false", ")", ")", "{", "TypeBinding", "[", "]", "currentParams", "=", "currentMethod", ".", "parameters", ";", "TypeBinding", "[", "]", "inheritedParams", "=", "inheritedMethod", ".", "parameters", ";", "int", "length", "=", "currentParams", ".", "length", ";", "if", "(", "length", "!=", "inheritedParams", ".", "length", ")", "return", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "if", "(", "currentParams", "[", "i", "]", "!=", "inheritedParams", "[", "i", "]", ")", "if", "(", "currentParams", "[", "i", "]", ".", "isBaseType", "(", ")", "!=", "inheritedParams", "[", "i", "]", ".", "isBaseType", "(", ")", "||", "!", "inheritedParams", "[", "i", "]", ".", "isCompatibleWith", "(", "currentParams", "[", "i", "]", ")", ")", "return", ";", "ReferenceBinding", "[", "]", "interfacesToVisit", "=", "null", ";", "int", "nextPosition", "=", "0", ";", "ReferenceBinding", "superType", "=", "inheritedMethod", ".", "declaringClass", ";", "ReferenceBinding", "[", "]", "itsInterfaces", "=", "superType", ".", "superInterfaces", "(", ")", ";", "if", "(", "itsInterfaces", "!=", "Binding", ".", "NO_SUPERINTERFACES", ")", "{", "nextPosition", "=", "itsInterfaces", ".", "length", ";", "interfacesToVisit", "=", "itsInterfaces", ";", "}", "superType", "=", "superType", ".", "superclass", "(", ")", ";", "while", "(", "superType", "!=", "null", "&&", "superType", ".", "isValidBinding", "(", ")", ")", "{", "MethodBinding", "[", "]", "methods", "=", "superType", ".", "getMethods", "(", "currentMethod", ".", "selector", ")", ";", "for", "(", "int", "m", "=", "0", ",", "n", "=", "methods", ".", "length", ";", "m", "<", "n", ";", "m", "++", ")", "{", "MethodBinding", "substitute", "=", "computeSubstituteMethod", "(", "methods", "[", "m", "]", ",", "currentMethod", ")", ";", "if", "(", "substitute", "!=", "null", "&&", "!", "isSubstituteParameterSubsignature", "(", "currentMethod", ",", "substitute", ")", "&&", "detectNameClash", "(", "currentMethod", ",", "substitute", ",", "true", ")", ")", "return", ";", "}", "if", "(", "(", "itsInterfaces", "=", "superType", ".", "superInterfaces", "(", ")", ")", "!=", "Binding", ".", "NO_SUPERINTERFACES", ")", "{", "if", "(", "interfacesToVisit", "==", "null", ")", "{", "interfacesToVisit", "=", "itsInterfaces", ";", "nextPosition", "=", "interfacesToVisit", ".", "length", ";", "}", "else", "{", "int", "itsLength", "=", "itsInterfaces", ".", "length", ";", "if", "(", "nextPosition", "+", "itsLength", ">=", "interfacesToVisit", ".", "length", ")", "System", ".", "arraycopy", "(", "interfacesToVisit", ",", "0", ",", "interfacesToVisit", "=", "new", "ReferenceBinding", "[", "nextPosition", "+", "itsLength", "+", "5", "]", ",", "0", ",", "nextPosition", ")", ";", "nextInterface", ":", "for", "(", "int", "a", "=", "0", ";", "a", "<", "itsLength", ";", "a", "++", ")", "{", "ReferenceBinding", "next", "=", "itsInterfaces", "[", "a", "]", ";", "for", "(", "int", "b", "=", "0", ";", "b", "<", "nextPosition", ";", "b", "++", ")", "if", "(", "next", "==", "interfacesToVisit", "[", "b", "]", ")", "continue", "nextInterface", ";", "interfacesToVisit", "[", "nextPosition", "++", "]", "=", "next", ";", "}", "}", "}", "superType", "=", "superType", ".", "superclass", "(", ")", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "nextPosition", ";", "i", "++", ")", "{", "superType", "=", "interfacesToVisit", "[", "i", "]", ";", "if", "(", "superType", ".", "isValidBinding", "(", ")", ")", "{", "MethodBinding", "[", "]", "methods", "=", "superType", ".", "getMethods", "(", "currentMethod", ".", "selector", ")", ";", "for", "(", "int", "m", "=", "0", ",", "n", "=", "methods", ".", "length", ";", "m", "<", "n", ";", "m", "++", ")", "{", "MethodBinding", "substitute", "=", "computeSubstituteMethod", "(", "methods", "[", "m", "]", ",", "currentMethod", ")", ";", "if", "(", "substitute", "!=", "null", "&&", "!", "isSubstituteParameterSubsignature", "(", "currentMethod", ",", "substitute", ")", "&&", "detectNameClash", "(", "currentMethod", ",", "substitute", ",", "true", ")", ")", "return", ";", "}", "if", "(", "(", "itsInterfaces", "=", "superType", ".", "superInterfaces", "(", ")", ")", "!=", "Binding", ".", "NO_SUPERINTERFACES", ")", "{", "int", "itsLength", "=", "itsInterfaces", ".", "length", ";", "if", "(", "nextPosition", "+", "itsLength", ">=", "interfacesToVisit", ".", "length", ")", "System", ".", "arraycopy", "(", "interfacesToVisit", ",", "0", ",", "interfacesToVisit", "=", "new", "ReferenceBinding", "[", "nextPosition", "+", "itsLength", "+", "5", "]", ",", "0", ",", "nextPosition", ")", ";", "nextInterface", ":", "for", "(", "int", "a", "=", "0", ";", "a", "<", "itsLength", ";", "a", "++", ")", "{", "ReferenceBinding", "next", "=", "itsInterfaces", "[", "a", "]", ";", "for", "(", "int", "b", "=", "0", ";", "b", "<", "nextPosition", ";", "b", "++", ")", "if", "(", "next", "==", "interfacesToVisit", "[", "b", "]", ")", "continue", "nextInterface", ";", "interfacesToVisit", "[", "nextPosition", "++", "]", "=", "next", ";", "}", "}", "}", "}", "}", "}", "void", "checkInheritedMethods", "(", "MethodBinding", "inheritedMethod", ",", "MethodBinding", "otherInheritedMethod", ")", "{", "if", "(", "inheritedMethod", ".", "declaringClass", ".", "erasure", "(", ")", "==", "otherInheritedMethod", ".", "declaringClass", ".", "erasure", "(", ")", ")", "{", "boolean", "areDuplicates", "=", "inheritedMethod", ".", "hasSubstitutedParameters", "(", ")", "&&", "otherInheritedMethod", ".", "hasSubstitutedParameters", "(", ")", "?", "inheritedMethod", ".", "areParametersEqual", "(", "otherInheritedMethod", ")", ":", "inheritedMethod", ".", "areParameterErasuresEqual", "(", "otherInheritedMethod", ")", ";", "if", "(", "areDuplicates", ")", "{", "boolean", "reportProblem", "=", "true", ";", "if", "(", "this", ".", "environment", "!=", "null", "&&", "this", ".", "environment", ".", "globalOptions", ".", "buildGroovyFiles", "==", "2", ")", "{", "reportProblem", "=", "!", "(", "inheritedMethod", ".", "isBridge", "(", ")", "||", "otherInheritedMethod", ".", "isBridge", "(", ")", ")", ";", "}", "if", "(", "reportProblem", ")", "{", "problemReporter", "(", ")", ".", "duplicateInheritedMethods", "(", "this", ".", "type", ",", "inheritedMethod", ",", "otherInheritedMethod", ")", ";", "return", ";", "}", "}", "}", "if", "(", "inheritedMethod", ".", "declaringClass", ".", "isInterface", "(", ")", "||", "inheritedMethod", ".", "isStatic", "(", ")", ")", "return", ";", "detectInheritedNameClash", "(", "inheritedMethod", ".", "original", "(", ")", ",", "otherInheritedMethod", ".", "original", "(", ")", ")", ";", "}", "void", "checkInheritedMethods", "(", "MethodBinding", "[", "]", "methods", ",", "int", "length", ")", "{", "int", "count", "=", "length", ";", "int", "[", "]", "skip", "=", "new", "int", "[", "count", "]", ";", "nextMethod", ":", "for", "(", "int", "i", "=", "0", ",", "l", "=", "length", "-", "1", ";", "i", "<", "l", ";", "i", "++", ")", "{", "if", "(", "skip", "[", "i", "]", "==", "-", "1", ")", "continue", "nextMethod", ";", "MethodBinding", "method", "=", "methods", "[", "i", "]", ";", "MethodBinding", "[", "]", "duplicates", "=", "null", ";", "for", "(", "int", "j", "=", "i", "+", "1", ";", "j", "<=", "l", ";", "j", "++", ")", "{", "MethodBinding", "method2", "=", "methods", "[", "j", "]", ";", "if", "(", "method", ".", "declaringClass", "==", "method2", ".", "declaringClass", "&&", "areMethodsCompatible", "(", "method", ",", "method2", ")", ")", "{", "skip", "[", "j", "]", "=", "-", "1", ";", "if", "(", "duplicates", "==", "null", ")", "duplicates", "=", "new", "MethodBinding", "[", "length", "]", ";", "duplicates", "[", "j", "]", "=", "method2", ";", "}", "}", "if", "(", "duplicates", "!=", "null", ")", "{", "int", "concreteCount", "=", "method", ".", "isAbstract", "(", ")", "?", "0", ":", "1", ";", "MethodBinding", "methodToKeep", "=", "method", ";", "for", "(", "int", "m", "=", "0", ",", "s", "=", "duplicates", ".", "length", ";", "m", "<", "s", ";", "m", "++", ")", "{", "if", "(", "duplicates", "[", "m", "]", "!=", "null", ")", "{", "if", "(", "!", "duplicates", "[", "m", "]", ".", "isAbstract", "(", ")", ")", "{", "methodToKeep", "=", "duplicates", "[", "m", "]", ";", "concreteCount", "++", ";", "}", "}", "}", "if", "(", "concreteCount", "!=", "1", ")", "{", "for", "(", "int", "m", "=", "0", ",", "s", "=", "duplicates", ".", "length", ";", "m", "<", "s", ";", "m", "++", ")", "{", "if", "(", "duplicates", "[", "m", "]", "!=", "null", ")", "{", "problemReporter", "(", ")", ".", "duplicateInheritedMethods", "(", "this", ".", "type", ",", "method", ",", "duplicates", "[", "m", "]", ")", ";", "count", "--", ";", "if", "(", "methodToKeep", "==", "duplicates", "[", "m", "]", ")", "methods", "[", "i", "]", "=", "null", ";", "else", "methods", "[", "m", "]", "=", "null", ";", "}", "}", "}", "}", "}", "if", "(", "count", "<", "length", ")", "{", "if", "(", "count", "==", "1", ")", "return", ";", "MethodBinding", "[", "]", "newMethods", "=", "new", "MethodBinding", "[", "count", "]", ";", "for", "(", "int", "i", "=", "length", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "methods", "[", "i", "]", "!=", "null", ")", "newMethods", "[", "--", "count", "]", "=", "methods", "[", "i", "]", ";", "methods", "=", "newMethods", ";", "length", "=", "newMethods", ".", "length", ";", "}", "super", ".", "checkInheritedMethods", "(", "methods", ",", "length", ")", ";", "}", "boolean", "checkInheritedReturnTypes", "(", "MethodBinding", "method", ",", "MethodBinding", "otherMethod", ")", "{", "if", "(", "areReturnTypesCompatible", "(", "method", ",", "otherMethod", ")", ")", "return", "true", ";", "if", "(", "!", "this", ".", "type", ".", "isInterface", "(", ")", ")", "if", "(", "method", ".", "declaringClass", ".", "isClass", "(", ")", "||", "!", "this", ".", "type", ".", "implementsInterface", "(", "method", ".", "declaringClass", ",", "false", ")", ")", "if", "(", "otherMethod", ".", "declaringClass", ".", "isClass", "(", ")", "||", "!", "this", ".", "type", ".", "implementsInterface", "(", "otherMethod", ".", "declaringClass", ",", "false", ")", ")", "return", "true", ";", "if", "(", "isUnsafeReturnTypeOverride", "(", "method", ",", "otherMethod", ")", ")", "{", "if", "(", "!", "method", ".", "declaringClass", ".", "implementsInterface", "(", "otherMethod", ".", "declaringClass", ",", "false", ")", ")", "problemReporter", "(", "method", ")", ".", "unsafeReturnTypeOverride", "(", "method", ",", "otherMethod", ",", "this", ".", "type", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", "void", "checkMethods", "(", ")", "{", "boolean", "mustImplementAbstractMethods", "=", "mustImplementAbstractMethods", "(", ")", ";", "boolean", "skipInheritedMethods", "=", "mustImplementAbstractMethods", "&&", "canSkipInheritedMethods", "(", ")", ";", "boolean", "isOrEnclosedByPrivateType", "=", "this", ".", "type", ".", "isOrEnclosedByPrivateType", "(", ")", ";", "char", "[", "]", "[", "]", "methodSelectors", "=", "this", ".", "inheritedMethods", ".", "keyTable", ";", "nextSelector", ":", "for", "(", "int", "s", "=", "methodSelectors", ".", "length", ";", "--", "s", ">=", "0", ";", ")", "{", "if", "(", "methodSelectors", "[", "s", "]", "==", "null", ")", "continue", "nextSelector", ";", "MethodBinding", "[", "]", "current", "=", "(", "MethodBinding", "[", "]", ")", "this", ".", "currentMethods", ".", "get", "(", "methodSelectors", "[", "s", "]", ")", ";", "MethodBinding", "[", "]", "inherited", "=", "(", "MethodBinding", "[", "]", ")", "this", ".", "inheritedMethods", ".", "valueTable", "[", "s", "]", ";", "if", "(", "current", "==", "null", "&&", "!", "isOrEnclosedByPrivateType", ")", "{", "int", "length", "=", "inherited", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "inherited", "[", "i", "]", ".", "original", "(", ")", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccLocallyUsed", ";", "}", "}", "if", "(", "current", "==", "null", "&&", "this", ".", "type", ".", "isPublic", "(", ")", ")", "{", "int", "length", "=", "inherited", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "MethodBinding", "inheritedMethod", "=", "inherited", "[", "i", "]", ";", "if", "(", "inheritedMethod", ".", "isPublic", "(", ")", "&&", "!", "inheritedMethod", ".", "declaringClass", ".", "isPublic", "(", ")", ")", "this", ".", "type", ".", "addSyntheticBridgeMethod", "(", "inheritedMethod", ".", "original", "(", ")", ")", ";", "}", "}", "if", "(", "current", "==", "null", "&&", "skipInheritedMethods", ")", "continue", "nextSelector", ";", "if", "(", "inherited", ".", "length", "==", "1", "&&", "current", "==", "null", ")", "{", "if", "(", "mustImplementAbstractMethods", "&&", "inherited", "[", "0", "]", ".", "isAbstract", "(", ")", ")", "checkAbstractMethod", "(", "inherited", "[", "0", "]", ")", ";", "continue", "nextSelector", ";", "}", "int", "index", "=", "-", "1", ";", "int", "inheritedLength", "=", "inherited", ".", "length", ";", "MethodBinding", "[", "]", "matchingInherited", "=", "new", "MethodBinding", "[", "inherited", ".", "length", "]", ";", "MethodBinding", "[", "]", "foundMatch", "=", "new", "MethodBinding", "[", "inherited", ".", "length", "]", ";", "if", "(", "current", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length1", "=", "current", ".", "length", ";", "i", "<", "length1", ";", "i", "++", ")", "{", "MethodBinding", "currentMethod", "=", "current", "[", "i", "]", ";", "MethodBinding", "[", "]", "nonMatchingInherited", "=", "null", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "inheritedLength", ";", "j", "++", ")", "{", "MethodBinding", "inheritedMethod", "=", "computeSubstituteMethod", "(", "inherited", "[", "j", "]", ",", "currentMethod", ")", ";", "if", "(", "inheritedMethod", "!=", "null", ")", "{", "if", "(", "foundMatch", "[", "j", "]", "==", "null", "&&", "isSubstituteParameterSubsignature", "(", "currentMethod", ",", "inheritedMethod", ")", ")", "{", "matchingInherited", "[", "++", "index", "]", "=", "inheritedMethod", ";", "foundMatch", "[", "j", "]", "=", "currentMethod", ";", "}", "else", "{", "checkForNameClash", "(", "currentMethod", ",", "inheritedMethod", ")", ";", "if", "(", "inheritedLength", ">", "1", ")", "{", "if", "(", "nonMatchingInherited", "==", "null", ")", "nonMatchingInherited", "=", "new", "MethodBinding", "[", "inheritedLength", "]", ";", "nonMatchingInherited", "[", "j", "]", "=", "inheritedMethod", ";", "}", "}", "}", "}", "if", "(", "index", ">=", "0", ")", "{", "checkAgainstInheritedMethods", "(", "currentMethod", ",", "matchingInherited", ",", "index", "+", "1", ",", "nonMatchingInherited", ")", ";", "while", "(", "index", ">=", "0", ")", "matchingInherited", "[", "index", "--", "]", "=", "null", ";", "}", "}", "}", "boolean", "[", "]", "skip", "=", "new", "boolean", "[", "inheritedLength", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "inheritedLength", ";", "i", "++", ")", "{", "MethodBinding", "matchMethod", "=", "foundMatch", "[", "i", "]", ";", "if", "(", "matchMethod", "==", "null", "&&", "current", "!=", "null", "&&", "this", ".", "type", ".", "isPublic", "(", ")", ")", "{", "MethodBinding", "inheritedMethod", "=", "inherited", "[", "i", "]", ";", "if", "(", "inheritedMethod", ".", "isPublic", "(", ")", "&&", "!", "inheritedMethod", ".", "declaringClass", ".", "isPublic", "(", ")", ")", "{", "this", ".", "type", ".", "addSyntheticBridgeMethod", "(", "inheritedMethod", ".", "original", "(", ")", ")", ";", "}", "}", "if", "(", "!", "isOrEnclosedByPrivateType", "&&", "matchMethod", "==", "null", "&&", "current", "!=", "null", ")", "{", "inherited", "[", "i", "]", ".", "original", "(", ")", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccLocallyUsed", ";", "}", "if", "(", "skip", "[", "i", "]", ")", "continue", ";", "MethodBinding", "inheritedMethod", "=", "inherited", "[", "i", "]", ";", "if", "(", "matchMethod", "==", "null", ")", "matchingInherited", "[", "++", "index", "]", "=", "inheritedMethod", ";", "for", "(", "int", "j", "=", "i", "+", "1", ";", "j", "<", "inheritedLength", ";", "j", "++", ")", "{", "MethodBinding", "otherInheritedMethod", "=", "inherited", "[", "j", "]", ";", "if", "(", "matchMethod", "==", "foundMatch", "[", "j", "]", "&&", "matchMethod", "!=", "null", ")", "continue", ";", "if", "(", "canSkipInheritedMethods", "(", "inheritedMethod", ",", "otherInheritedMethod", ")", ")", "continue", ";", "if", "(", "inheritedMethod", ".", "declaringClass", "!=", "otherInheritedMethod", ".", "declaringClass", ")", "{", "if", "(", "otherInheritedMethod", ".", "declaringClass", ".", "isInterface", "(", ")", ")", "{", "if", "(", "isInterfaceMethodImplemented", "(", "otherInheritedMethod", ",", "inheritedMethod", ",", "otherInheritedMethod", ".", "declaringClass", ")", ")", "{", "skip", "[", "j", "]", "=", "true", ";", "continue", ";", "}", "}", "else", "if", "(", "areMethodsCompatible", "(", "inheritedMethod", ",", "otherInheritedMethod", ")", ")", "{", "skip", "[", "j", "]", "=", "true", ";", "continue", ";", "}", "}", "otherInheritedMethod", "=", "computeSubstituteMethod", "(", "otherInheritedMethod", ",", "inheritedMethod", ")", ";", "if", "(", "otherInheritedMethod", "!=", "null", ")", "{", "if", "(", "inheritedMethod", ".", "declaringClass", "!=", "otherInheritedMethod", ".", "declaringClass", "&&", "isSubstituteParameterSubsignature", "(", "inheritedMethod", ",", "otherInheritedMethod", ")", ")", "{", "if", "(", "index", "==", "-", "1", ")", "matchingInherited", "[", "++", "index", "]", "=", "inheritedMethod", ";", "if", "(", "foundMatch", "[", "j", "]", "==", "null", ")", "matchingInherited", "[", "++", "index", "]", "=", "otherInheritedMethod", ";", "skip", "[", "j", "]", "=", "true", ";", "}", "else", "if", "(", "matchMethod", "==", "null", "&&", "foundMatch", "[", "j", "]", "==", "null", ")", "{", "checkInheritedMethods", "(", "inheritedMethod", ",", "otherInheritedMethod", ")", ";", "}", "}", "}", "if", "(", "index", "==", "-", "1", ")", "continue", ";", "if", "(", "index", ">", "0", ")", "checkInheritedMethods", "(", "matchingInherited", ",", "index", "+", "1", ")", ";", "else", "if", "(", "mustImplementAbstractMethods", "&&", "matchingInherited", "[", "0", "]", ".", "isAbstract", "(", ")", "&&", "matchMethod", "==", "null", ")", "checkAbstractMethod", "(", "matchingInherited", "[", "0", "]", ")", ";", "while", "(", "index", ">=", "0", ")", "matchingInherited", "[", "index", "--", "]", "=", "null", ";", "}", "}", "}", "void", "checkTypeVariableMethods", "(", "TypeParameter", "typeParameter", ")", "{", "char", "[", "]", "[", "]", "methodSelectors", "=", "this", ".", "inheritedMethods", ".", "keyTable", ";", "nextSelector", ":", "for", "(", "int", "s", "=", "methodSelectors", ".", "length", ";", "--", "s", ">=", "0", ";", ")", "{", "if", "(", "methodSelectors", "[", "s", "]", "==", "null", ")", "continue", "nextSelector", ";", "MethodBinding", "[", "]", "inherited", "=", "(", "MethodBinding", "[", "]", ")", "this", ".", "inheritedMethods", ".", "valueTable", "[", "s", "]", ";", "if", "(", "inherited", ".", "length", "==", "1", ")", "continue", "nextSelector", ";", "int", "index", "=", "-", "1", ";", "MethodBinding", "[", "]", "matchingInherited", "=", "new", "MethodBinding", "[", "inherited", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "inherited", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "while", "(", "index", ">=", "0", ")", "matchingInherited", "[", "index", "--", "]", "=", "null", ";", "MethodBinding", "inheritedMethod", "=", "inherited", "[", "i", "]", ";", "if", "(", "inheritedMethod", "!=", "null", ")", "{", "matchingInherited", "[", "++", "index", "]", "=", "inheritedMethod", ";", "for", "(", "int", "j", "=", "i", "+", "1", ";", "j", "<", "length", ";", "j", "++", ")", "{", "MethodBinding", "otherInheritedMethod", "=", "inherited", "[", "j", "]", ";", "if", "(", "canSkipInheritedMethods", "(", "inheritedMethod", ",", "otherInheritedMethod", ")", ")", "continue", ";", "otherInheritedMethod", "=", "computeSubstituteMethod", "(", "otherInheritedMethod", ",", "inheritedMethod", ")", ";", "if", "(", "otherInheritedMethod", "!=", "null", "&&", "isSubstituteParameterSubsignature", "(", "inheritedMethod", ",", "otherInheritedMethod", ")", ")", "{", "matchingInherited", "[", "++", "index", "]", "=", "otherInheritedMethod", ";", "inherited", "[", "j", "]", "=", "null", ";", "}", "}", "}", "if", "(", "index", ">", "0", ")", "{", "MethodBinding", "first", "=", "matchingInherited", "[", "0", "]", ";", "int", "count", "=", "index", "+", "1", ";", "while", "(", "--", "count", ">", "0", ")", "{", "MethodBinding", "match", "=", "matchingInherited", "[", "count", "]", ";", "if", "(", "areReturnTypesCompatible", "(", "first", ",", "match", ")", ")", "continue", ";", "if", "(", "first", ".", "declaringClass", ".", "isInterface", "(", ")", "&&", "match", ".", "declaringClass", ".", "isInterface", "(", ")", "&&", "areReturnTypesCompatible", "(", "match", ",", "first", ")", ")", "continue", ";", "break", ";", "}", "if", "(", "count", ">", "0", ")", "{", "problemReporter", "(", ")", ".", "inheritedMethodsHaveIncompatibleReturnTypes", "(", "typeParameter", ",", "matchingInherited", ",", "index", "+", "1", ")", ";", "continue", "nextSelector", ";", "}", "}", "}", "}", "}", "MethodBinding", "computeSubstituteMethod", "(", "MethodBinding", "inheritedMethod", ",", "MethodBinding", "currentMethod", ")", "{", "if", "(", "inheritedMethod", "==", "null", ")", "return", "null", ";", "if", "(", "currentMethod", ".", "parameters", ".", "length", "!=", "inheritedMethod", ".", "parameters", ".", "length", ")", "return", "null", ";", "if", "(", "currentMethod", ".", "declaringClass", "instanceof", "BinaryTypeBinding", ")", "(", "(", "BinaryTypeBinding", ")", "currentMethod", ".", "declaringClass", ")", ".", "resolveTypesFor", "(", "currentMethod", ")", ";", "if", "(", "inheritedMethod", ".", "declaringClass", "instanceof", "BinaryTypeBinding", ")", "(", "(", "BinaryTypeBinding", ")", "inheritedMethod", ".", "declaringClass", ")", ".", "resolveTypesFor", "(", "inheritedMethod", ")", ";", "TypeVariableBinding", "[", "]", "inheritedTypeVariables", "=", "inheritedMethod", ".", "typeVariables", ";", "int", "inheritedLength", "=", "inheritedTypeVariables", ".", "length", ";", "if", "(", "inheritedLength", "==", "0", ")", "return", "inheritedMethod", ";", "TypeVariableBinding", "[", "]", "typeVariables", "=", "currentMethod", ".", "typeVariables", ";", "int", "length", "=", "typeVariables", ".", "length", ";", "if", "(", "length", "==", "0", ")", "return", "inheritedMethod", ".", "asRawMethod", "(", "this", ".", "environment", ")", ";", "if", "(", "length", "!=", "inheritedLength", ")", "return", "inheritedMethod", ";", "TypeBinding", "[", "]", "arguments", "=", "new", "TypeBinding", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "typeVariables", ",", "0", ",", "arguments", ",", "0", ",", "length", ")", ";", "ParameterizedGenericMethodBinding", "substitute", "=", "this", ".", "environment", ".", "createParameterizedGenericMethod", "(", "inheritedMethod", ",", "arguments", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "inheritedLength", ";", "i", "++", ")", "{", "TypeVariableBinding", "inheritedTypeVariable", "=", "inheritedTypeVariables", "[", "i", "]", ";", "TypeBinding", "argument", "=", "arguments", "[", "i", "]", ";", "if", "(", "argument", "instanceof", "TypeVariableBinding", ")", "{", "TypeVariableBinding", "typeVariable", "=", "(", "TypeVariableBinding", ")", "argument", ";", "if", "(", "typeVariable", ".", "firstBound", "==", "inheritedTypeVariable", ".", "firstBound", ")", "{", "if", "(", "typeVariable", ".", "firstBound", "==", "null", ")", "continue", ";", "}", "else", "if", "(", "typeVariable", ".", "firstBound", "!=", "null", "&&", "inheritedTypeVariable", ".", "firstBound", "!=", "null", ")", "{", "if", "(", "typeVariable", ".", "firstBound", ".", "isClass", "(", ")", "!=", "inheritedTypeVariable", ".", "firstBound", ".", "isClass", "(", ")", ")", "return", "inheritedMethod", ";", "}", "if", "(", "Scope", ".", "substitute", "(", "substitute", ",", "inheritedTypeVariable", ".", "superclass", ")", "!=", "typeVariable", ".", "superclass", ")", "return", "inheritedMethod", ";", "int", "interfaceLength", "=", "inheritedTypeVariable", ".", "superInterfaces", ".", "length", ";", "ReferenceBinding", "[", "]", "interfaces", "=", "typeVariable", ".", "superInterfaces", ";", "if", "(", "interfaceLength", "!=", "interfaces", ".", "length", ")", "return", "inheritedMethod", ";", "next", ":", "for", "(", "int", "j", "=", "0", ";", "j", "<", "interfaceLength", ";", "j", "++", ")", "{", "TypeBinding", "superType", "=", "Scope", ".", "substitute", "(", "substitute", ",", "inheritedTypeVariable", ".", "superInterfaces", "[", "j", "]", ")", ";", "for", "(", "int", "k", "=", "0", ";", "k", "<", "interfaceLength", ";", "k", "++", ")", "if", "(", "superType", "==", "interfaces", "[", "k", "]", ")", "continue", "next", ";", "return", "inheritedMethod", ";", "}", "}", "else", "if", "(", "inheritedTypeVariable", ".", "boundCheck", "(", "substitute", ",", "argument", ")", "!=", "TypeConstants", ".", "OK", ")", "{", "return", "inheritedMethod", ";", "}", "}", "return", "substitute", ";", "}", "boolean", "detectInheritedNameClash", "(", "MethodBinding", "inherited", ",", "MethodBinding", "otherInherited", ")", "{", "if", "(", "!", "inherited", ".", "areParameterErasuresEqual", "(", "otherInherited", ")", ")", "return", "false", ";", "if", "(", "inherited", ".", "returnType", ".", "erasure", "(", ")", "!=", "otherInherited", ".", "returnType", ".", "erasure", "(", ")", ")", "return", "false", ";", "if", "(", "inherited", ".", "declaringClass", ".", "erasure", "(", ")", "!=", "otherInherited", ".", "declaringClass", ".", "erasure", "(", ")", ")", "{", "if", "(", "inherited", ".", "declaringClass", ".", "findSuperTypeOriginatingFrom", "(", "otherInherited", ".", "declaringClass", ")", "!=", "null", ")", "return", "false", ";", "if", "(", "otherInherited", ".", "declaringClass", ".", "findSuperTypeOriginatingFrom", "(", "inherited", ".", "declaringClass", ")", "!=", "null", ")", "return", "false", ";", "}", "problemReporter", "(", ")", ".", "inheritedMethodsHaveNameClash", "(", "this", ".", "type", ",", "inherited", ",", "otherInherited", ")", ";", "return", "true", ";", "}", "boolean", "detectNameClash", "(", "MethodBinding", "current", ",", "MethodBinding", "inherited", ",", "boolean", "treatAsSynthetic", ")", "{", "MethodBinding", "methodToCheck", "=", "inherited", ";", "MethodBinding", "original", "=", "methodToCheck", ".", "original", "(", ")", ";", "if", "(", "!", "current", ".", "areParameterErasuresEqual", "(", "original", ")", ")", "return", "false", ";", "if", "(", "!", "treatAsSynthetic", ")", "{", "MethodBinding", "[", "]", "currentNamesakes", "=", "(", "MethodBinding", "[", "]", ")", "this", ".", "currentMethods", ".", "get", "(", "inherited", ".", "selector", ")", ";", "if", "(", "currentNamesakes", ".", "length", ">", "1", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "currentNamesakes", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "MethodBinding", "currentMethod", "=", "currentNamesakes", "[", "i", "]", ";", "if", "(", "currentMethod", "!=", "current", "&&", "doesMethodOverride", "(", "currentMethod", ",", "inherited", ")", ")", "{", "methodToCheck", "=", "currentMethod", ";", "break", ";", "}", "}", "}", "}", "original", "=", "methodToCheck", ".", "original", "(", ")", ";", "if", "(", "!", "current", ".", "areParameterErasuresEqual", "(", "original", ")", ")", "return", "false", ";", "original", "=", "inherited", ".", "original", "(", ")", ";", "problemReporter", "(", "current", ")", ".", "methodNameClash", "(", "current", ",", "inherited", ".", "declaringClass", ".", "isRawType", "(", ")", "?", "inherited", ":", "original", ")", ";", "return", "true", ";", "}", "public", "boolean", "doesMethodOverride", "(", "MethodBinding", "method", ",", "MethodBinding", "inheritedMethod", ")", "{", "return", "couldMethodOverride", "(", "method", ",", "inheritedMethod", ")", "&&", "areMethodsCompatible", "(", "method", ",", "inheritedMethod", ")", ";", "}", "boolean", "doTypeVariablesClash", "(", "MethodBinding", "one", ",", "MethodBinding", "substituteTwo", ")", "{", "return", "one", ".", "typeVariables", "!=", "Binding", ".", "NO_TYPE_VARIABLES", "&&", "!", "(", "substituteTwo", "instanceof", "ParameterizedGenericMethodBinding", ")", ";", "}", "SimpleSet", "findSuperinterfaceCollisions", "(", "ReferenceBinding", "superclass", ",", "ReferenceBinding", "[", "]", "superInterfaces", ")", "{", "ReferenceBinding", "[", "]", "interfacesToVisit", "=", "null", ";", "int", "nextPosition", "=", "0", ";", "ReferenceBinding", "[", "]", "itsInterfaces", "=", "superInterfaces", ";", "if", "(", "itsInterfaces", "!=", "Binding", ".", "NO_SUPERINTERFACES", ")", "{", "nextPosition", "=", "itsInterfaces", ".", "length", ";", "interfacesToVisit", "=", "itsInterfaces", ";", "}", "boolean", "isInconsistent", "=", "this", ".", "type", ".", "isHierarchyInconsistent", "(", ")", ";", "ReferenceBinding", "superType", "=", "superclass", ";", "while", "(", "superType", "!=", "null", "&&", "superType", ".", "isValidBinding", "(", ")", ")", "{", "isInconsistent", "|=", "superType", ".", "isHierarchyInconsistent", "(", ")", ";", "if", "(", "(", "itsInterfaces", "=", "superType", ".", "superInterfaces", "(", ")", ")", "!=", "Binding", ".", "NO_SUPERINTERFACES", ")", "{", "if", "(", "interfacesToVisit", "==", "null", ")", "{", "interfacesToVisit", "=", "itsInterfaces", ";", "nextPosition", "=", "interfacesToVisit", ".", "length", ";", "}", "else", "{", "int", "itsLength", "=", "itsInterfaces", ".", "length", ";", "if", "(", "nextPosition", "+", "itsLength", ">=", "interfacesToVisit", ".", "length", ")", "System", ".", "arraycopy", "(", "interfacesToVisit", ",", "0", ",", "interfacesToVisit", "=", "new", "ReferenceBinding", "[", "nextPosition", "+", "itsLength", "+", "5", "]", ",", "0", ",", "nextPosition", ")", ";", "nextInterface", ":", "for", "(", "int", "a", "=", "0", ";", "a", "<", "itsLength", ";", "a", "++", ")", "{", "ReferenceBinding", "next", "=", "itsInterfaces", "[", "a", "]", ";", "for", "(", "int", "b", "=", "0", ";", "b", "<", "nextPosition", ";", "b", "++", ")", "if", "(", "next", "==", "interfacesToVisit", "[", "b", "]", ")", "continue", "nextInterface", ";", "interfacesToVisit", "[", "nextPosition", "++", "]", "=", "next", ";", "}", "}", "}", "superType", "=", "superType", ".", "superclass", "(", ")", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "nextPosition", ";", "i", "++", ")", "{", "superType", "=", "interfacesToVisit", "[", "i", "]", ";", "if", "(", "superType", ".", "isValidBinding", "(", ")", ")", "{", "isInconsistent", "|=", "superType", ".", "isHierarchyInconsistent", "(", ")", ";", "if", "(", "(", "itsInterfaces", "=", "superType", ".", "superInterfaces", "(", ")", ")", "!=", "Binding", ".", "NO_SUPERINTERFACES", ")", "{", "int", "itsLength", "=", "itsInterfaces", ".", "length", ";", "if", "(", "nextPosition", "+", "itsLength", ">=", "interfacesToVisit", ".", "length", ")", "System", ".", "arraycopy", "(", "interfacesToVisit", ",", "0", ",", "interfacesToVisit", "=", "new", "ReferenceBinding", "[", "nextPosition", "+", "itsLength", "+", "5", "]", ",", "0", ",", "nextPosition", ")", ";", "nextInterface", ":", "for", "(", "int", "a", "=", "0", ";", "a", "<", "itsLength", ";", "a", "++", ")", "{", "ReferenceBinding", "next", "=", "itsInterfaces", "[", "a", "]", ";", "for", "(", "int", "b", "=", "0", ";", "b", "<", "nextPosition", ";", "b", "++", ")", "if", "(", "next", "==", "interfacesToVisit", "[", "b", "]", ")", "continue", "nextInterface", ";", "interfacesToVisit", "[", "nextPosition", "++", "]", "=", "next", ";", "}", "}", "}", "}", "if", "(", "!", "isInconsistent", ")", "return", "null", ";", "SimpleSet", "copy", "=", "null", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "nextPosition", ";", "i", "++", ")", "{", "ReferenceBinding", "current", "=", "interfacesToVisit", "[", "i", "]", ";", "if", "(", "current", ".", "isValidBinding", "(", ")", ")", "{", "TypeBinding", "erasure", "=", "current", ".", "erasure", "(", ")", ";", "for", "(", "int", "j", "=", "i", "+", "1", ";", "j", "<", "nextPosition", ";", "j", "++", ")", "{", "ReferenceBinding", "next", "=", "interfacesToVisit", "[", "j", "]", ";", "if", "(", "next", ".", "isValidBinding", "(", ")", "&&", "next", ".", "erasure", "(", ")", "==", "erasure", ")", "{", "if", "(", "copy", "==", "null", ")", "copy", "=", "new", "SimpleSet", "(", "nextPosition", ")", ";", "copy", ".", "add", "(", "interfacesToVisit", "[", "i", "]", ")", ";", "copy", ".", "add", "(", "interfacesToVisit", "[", "j", "]", ")", ";", "}", "}", "}", "}", "return", "copy", ";", "}", "boolean", "hasGenericParameter", "(", "MethodBinding", "method", ")", "{", "if", "(", "method", ".", "genericSignature", "(", ")", "==", "null", ")", "return", "false", ";", "TypeBinding", "[", "]", "params", "=", "method", ".", "parameters", ";", "for", "(", "int", "i", "=", "0", ",", "l", "=", "params", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "{", "TypeBinding", "param", "=", "params", "[", "i", "]", ".", "leafComponentType", "(", ")", ";", "if", "(", "param", "instanceof", "ReferenceBinding", ")", "{", "int", "modifiers", "=", "(", "(", "ReferenceBinding", ")", "param", ")", ".", "modifiers", ";", "if", "(", "(", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccGenericSignature", ")", "!=", "0", ")", "return", "true", ";", "}", "}", "return", "false", ";", "}", "boolean", "isAcceptableReturnTypeOverride", "(", "MethodBinding", "currentMethod", ",", "MethodBinding", "inheritedMethod", ")", "{", "if", "(", "inheritedMethod", ".", "declaringClass", ".", "isRawType", "(", ")", ")", "return", "true", ";", "MethodBinding", "originalInherited", "=", "inheritedMethod", ".", "original", "(", ")", ";", "TypeBinding", "originalInheritedReturnType", "=", "originalInherited", ".", "returnType", ".", "leafComponentType", "(", ")", ";", "if", "(", "originalInheritedReturnType", ".", "isParameterizedTypeWithActualArguments", "(", ")", ")", "return", "!", "currentMethod", ".", "returnType", ".", "leafComponentType", "(", ")", ".", "isRawType", "(", ")", ";", "TypeBinding", "currentReturnType", "=", "currentMethod", ".", "returnType", ".", "leafComponentType", "(", ")", ";", "switch", "(", "currentReturnType", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "TYPE_PARAMETER", ":", "if", "(", "currentReturnType", "==", "inheritedMethod", ".", "returnType", ".", "leafComponentType", "(", ")", ")", "return", "true", ";", "default", ":", "if", "(", "originalInheritedReturnType", ".", "isTypeVariable", "(", ")", ")", "if", "(", "(", "(", "TypeVariableBinding", ")", "originalInheritedReturnType", ")", ".", "declaringElement", "==", "originalInherited", ")", "return", "false", ";", "return", "true", ";", "}", "}", "boolean", "isInterfaceMethodImplemented", "(", "MethodBinding", "inheritedMethod", ",", "MethodBinding", "existingMethod", ",", "ReferenceBinding", "superType", ")", "{", "if", "(", "inheritedMethod", ".", "original", "(", ")", "!=", "inheritedMethod", "&&", "existingMethod", ".", "declaringClass", ".", "isInterface", "(", ")", ")", "return", "false", ";", "inheritedMethod", "=", "computeSubstituteMethod", "(", "inheritedMethod", ",", "existingMethod", ")", ";", "return", "inheritedMethod", "!=", "null", "&&", "inheritedMethod", ".", "returnType", "==", "existingMethod", ".", "returnType", "&&", "doesMethodOverride", "(", "existingMethod", ",", "inheritedMethod", ")", ";", "}", "public", "boolean", "isMethodSubsignature", "(", "MethodBinding", "method", ",", "MethodBinding", "inheritedMethod", ")", "{", "if", "(", "!", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ".", "equals", "(", "method", ".", "selector", ",", "inheritedMethod", ".", "selector", ")", ")", "return", "false", ";", "if", "(", "method", ".", "declaringClass", ".", "isParameterizedType", "(", ")", ")", "method", "=", "method", ".", "original", "(", ")", ";", "MethodBinding", "inheritedOriginal", "=", "method", ".", "findOriginalInheritedMethod", "(", "inheritedMethod", ")", ";", "return", "isParameterSubsignature", "(", "method", ",", "inheritedOriginal", "==", "null", "?", "inheritedMethod", ":", "inheritedOriginal", ")", ";", "}", "boolean", "isParameterSubsignature", "(", "MethodBinding", "method", ",", "MethodBinding", "inheritedMethod", ")", "{", "MethodBinding", "substitute", "=", "computeSubstituteMethod", "(", "inheritedMethod", ",", "method", ")", ";", "return", "substitute", "!=", "null", "&&", "isSubstituteParameterSubsignature", "(", "method", ",", "substitute", ")", ";", "}", "boolean", "isSubstituteParameterSubsignature", "(", "MethodBinding", "method", ",", "MethodBinding", "substituteMethod", ")", "{", "if", "(", "!", "areParametersEqual", "(", "method", ",", "substituteMethod", ")", ")", "{", "if", "(", "substituteMethod", ".", "hasSubstitutedParameters", "(", ")", "&&", "method", ".", "areParameterErasuresEqual", "(", "substituteMethod", ")", ")", "return", "method", ".", "typeVariables", "==", "Binding", ".", "NO_TYPE_VARIABLES", "&&", "!", "hasGenericParameter", "(", "method", ")", ";", "if", "(", "method", ".", "declaringClass", ".", "isRawType", "(", ")", "&&", "substituteMethod", ".", "declaringClass", ".", "isRawType", "(", ")", ")", "if", "(", "method", ".", "hasSubstitutedParameters", "(", ")", "&&", "substituteMethod", ".", "hasSubstitutedParameters", "(", ")", ")", "return", "areMethodsCompatible", "(", "method", ",", "substituteMethod", ")", ";", "return", "false", ";", "}", "if", "(", "substituteMethod", "instanceof", "ParameterizedGenericMethodBinding", ")", "{", "if", "(", "method", ".", "typeVariables", "!=", "Binding", ".", "NO_TYPE_VARIABLES", ")", "return", "!", "(", "(", "ParameterizedGenericMethodBinding", ")", "substituteMethod", ")", ".", "isRaw", ";", "return", "!", "hasGenericParameter", "(", "method", ")", ";", "}", "return", "method", ".", "typeVariables", "==", "Binding", ".", "NO_TYPE_VARIABLES", ";", "}", "boolean", "isUnsafeReturnTypeOverride", "(", "MethodBinding", "currentMethod", ",", "MethodBinding", "inheritedMethod", ")", "{", "if", "(", "currentMethod", ".", "returnType", "==", "inheritedMethod", ".", "returnType", ".", "erasure", "(", ")", ")", "{", "TypeBinding", "[", "]", "currentParams", "=", "currentMethod", ".", "parameters", ";", "TypeBinding", "[", "]", "inheritedParams", "=", "inheritedMethod", ".", "parameters", ";", "for", "(", "int", "i", "=", "0", ",", "l", "=", "currentParams", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "if", "(", "!", "areTypesEqual", "(", "currentParams", "[", "i", "]", ",", "inheritedParams", "[", "i", "]", ")", ")", "return", "true", ";", "}", "if", "(", "currentMethod", ".", "typeVariables", "==", "Binding", ".", "NO_TYPE_VARIABLES", "&&", "inheritedMethod", ".", "original", "(", ")", ".", "typeVariables", "!=", "Binding", ".", "NO_TYPE_VARIABLES", "&&", "currentMethod", ".", "returnType", ".", "erasure", "(", ")", ".", "findSuperTypeOriginatingFrom", "(", "inheritedMethod", ".", "returnType", ".", "erasure", "(", ")", ")", "!=", "null", ")", "{", "return", "true", ";", "}", "return", "false", ";", "}", "boolean", "reportIncompatibleReturnTypeError", "(", "MethodBinding", "currentMethod", ",", "MethodBinding", "inheritedMethod", ")", "{", "if", "(", "isUnsafeReturnTypeOverride", "(", "currentMethod", ",", "inheritedMethod", ")", ")", "{", "problemReporter", "(", "currentMethod", ")", ".", "unsafeReturnTypeOverride", "(", "currentMethod", ",", "inheritedMethod", ",", "this", ".", "type", ")", ";", "return", "false", ";", "}", "return", "super", ".", "reportIncompatibleReturnTypeError", "(", "currentMethod", ",", "inheritedMethod", ")", ";", "}", "void", "verify", "(", ")", "{", "if", "(", "this", ".", "type", ".", "isAnnotationType", "(", ")", ")", "this", ".", "type", ".", "detectAnnotationCycle", "(", ")", ";", "super", ".", "verify", "(", ")", ";", "for", "(", "int", "i", "=", "this", ".", "type", ".", "typeVariables", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "{", "TypeVariableBinding", "var", "=", "this", ".", "type", ".", "typeVariables", "[", "i", "]", ";", "if", "(", "var", ".", "superInterfaces", "==", "Binding", ".", "NO_SUPERINTERFACES", ")", "continue", ";", "if", "(", "var", ".", "superInterfaces", ".", "length", "==", "1", "&&", "var", ".", "superclass", ".", "id", "==", "TypeIds", ".", "T_JavaLangObject", ")", "continue", ";", "this", ".", "currentMethods", "=", "new", "HashtableOfObject", "(", "0", ")", ";", "ReferenceBinding", "superclass", "=", "var", ".", "superclass", "(", ")", ";", "if", "(", "superclass", ".", "kind", "(", ")", "==", "Binding", ".", "TYPE_PARAMETER", ")", "superclass", "=", "(", "ReferenceBinding", ")", "superclass", ".", "erasure", "(", ")", ";", "ReferenceBinding", "[", "]", "itsInterfaces", "=", "var", ".", "superInterfaces", "(", ")", ";", "ReferenceBinding", "[", "]", "superInterfaces", "=", "new", "ReferenceBinding", "[", "itsInterfaces", ".", "length", "]", ";", "for", "(", "int", "j", "=", "itsInterfaces", ".", "length", ";", "--", "j", ">=", "0", ";", ")", "{", "superInterfaces", "[", "j", "]", "=", "itsInterfaces", "[", "j", "]", ".", "kind", "(", ")", "==", "Binding", ".", "TYPE_PARAMETER", "?", "(", "ReferenceBinding", ")", "itsInterfaces", "[", "j", "]", ".", "erasure", "(", ")", ":", "itsInterfaces", "[", "j", "]", ";", "}", "computeInheritedMethods", "(", "superclass", ",", "superInterfaces", ")", ";", "checkTypeVariableMethods", "(", "this", ".", "type", ".", "scope", ".", "referenceContext", ".", "typeParameters", "[", "i", "]", ")", ";", "}", "}", "}", "</s>" ]
5,619
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "public", "class", "SyntheticFieldBinding", "extends", "FieldBinding", "{", "public", "int", "index", ";", "public", "SyntheticFieldBinding", "(", "char", "[", "]", "name", ",", "TypeBinding", "type", ",", "int", "modifiers", ",", "ReferenceBinding", "declaringClass", ",", "Constant", "constant", ",", "int", "index", ")", "{", "super", "(", "name", ",", "type", ",", "modifiers", ",", "declaringClass", ",", "constant", ")", ";", "this", ".", "index", "=", "index", ";", "this", ".", "tagBits", "|=", "(", "TagBits", ".", "AnnotationResolved", "|", "TagBits", ".", "DeprecatedAnnotationResolved", ")", ";", "}", "}", "</s>" ]
5,620
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Wildcard", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "public", "class", "CaptureBinding", "extends", "TypeVariableBinding", "{", "public", "TypeBinding", "lowerBound", ";", "public", "WildcardBinding", "wildcard", ";", "public", "int", "captureID", ";", "public", "ReferenceBinding", "sourceType", ";", "public", "int", "position", ";", "public", "CaptureBinding", "(", "WildcardBinding", "wildcard", ",", "ReferenceBinding", "sourceType", ",", "int", "position", ",", "int", "captureID", ")", "{", "super", "(", "TypeConstants", ".", "WILDCARD_CAPTURE_NAME_PREFIX", ",", "null", ",", "0", ",", "wildcard", ".", "environment", ")", ";", "this", ".", "wildcard", "=", "wildcard", ";", "this", ".", "modifiers", "=", "ClassFileConstants", ".", "AccPublic", "|", "ExtraCompilerModifiers", ".", "AccGenericSignature", ";", "this", ".", "fPackage", "=", "wildcard", ".", "fPackage", ";", "this", ".", "sourceType", "=", "sourceType", ";", "this", ".", "position", "=", "position", ";", "this", ".", "captureID", "=", "captureID", ";", "}", "public", "char", "[", "]", "computeUniqueKey", "(", "boolean", "isLeaf", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "if", "(", "isLeaf", ")", "{", "buffer", ".", "append", "(", "this", ".", "sourceType", ".", "computeUniqueKey", "(", "false", ")", ")", ";", "buffer", ".", "append", "(", "'&'", ")", ";", "}", "buffer", ".", "append", "(", "TypeConstants", ".", "WILDCARD_CAPTURE", ")", ";", "buffer", ".", "append", "(", "this", ".", "wildcard", ".", "computeUniqueKey", "(", "false", ")", ")", ";", "buffer", ".", "append", "(", "this", ".", "position", ")", ";", "buffer", ".", "append", "(", "';'", ")", ";", "int", "length", "=", "buffer", ".", "length", "(", ")", ";", "char", "[", "]", "uniqueKey", "=", "new", "char", "[", "length", "]", ";", "buffer", ".", "getChars", "(", "0", ",", "length", ",", "uniqueKey", ",", "0", ")", ";", "return", "uniqueKey", ";", "}", "public", "String", "debugName", "(", ")", "{", "if", "(", "this", ".", "wildcard", "!=", "null", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "10", ")", ";", "buffer", ".", "append", "(", "TypeConstants", ".", "WILDCARD_CAPTURE_NAME_PREFIX", ")", ".", "append", "(", "this", ".", "captureID", ")", ".", "append", "(", "TypeConstants", ".", "WILDCARD_CAPTURE_NAME_SUFFIX", ")", ".", "append", "(", "this", ".", "wildcard", ".", "debugName", "(", ")", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}", "return", "super", ".", "debugName", "(", ")", ";", "}", "public", "char", "[", "]", "genericTypeSignature", "(", ")", "{", "if", "(", "this", ".", "genericTypeSignature", "==", "null", ")", "{", "this", ".", "genericTypeSignature", "=", "CharOperation", ".", "concat", "(", "TypeConstants", ".", "WILDCARD_CAPTURE", ",", "this", ".", "wildcard", ".", "genericTypeSignature", "(", ")", ")", ";", "}", "return", "this", ".", "genericTypeSignature", ";", "}", "public", "void", "initializeBounds", "(", "Scope", "scope", ",", "ParameterizedTypeBinding", "capturedParameterizedType", ")", "{", "TypeVariableBinding", "wildcardVariable", "=", "this", ".", "wildcard", ".", "typeVariable", "(", ")", ";", "if", "(", "wildcardVariable", "==", "null", ")", "{", "TypeBinding", "originalWildcardBound", "=", "this", ".", "wildcard", ".", "bound", ";", "switch", "(", "this", ".", "wildcard", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "EXTENDS", ":", "TypeBinding", "capturedWildcardBound", "=", "originalWildcardBound", ".", "capture", "(", "scope", ",", "this", ".", "position", ")", ";", "if", "(", "originalWildcardBound", ".", "isInterface", "(", ")", ")", "{", "this", ".", "superclass", "=", "scope", ".", "getJavaLangObject", "(", ")", ";", "this", ".", "superInterfaces", "=", "new", "ReferenceBinding", "[", "]", "{", "(", "ReferenceBinding", ")", "capturedWildcardBound", "}", ";", "}", "else", "{", "if", "(", "capturedWildcardBound", ".", "isArrayType", "(", ")", "||", "capturedWildcardBound", "==", "this", ")", "{", "this", ".", "superclass", "=", "scope", ".", "getJavaLangObject", "(", ")", ";", "}", "else", "{", "this", ".", "superclass", "=", "(", "ReferenceBinding", ")", "capturedWildcardBound", ";", "}", "this", ".", "superInterfaces", "=", "Binding", ".", "NO_SUPERINTERFACES", ";", "}", "this", ".", "firstBound", "=", "capturedWildcardBound", ";", "if", "(", "(", "capturedWildcardBound", ".", "tagBits", "&", "TagBits", ".", "HasTypeVariable", ")", "==", "0", ")", "this", ".", "tagBits", "&=", "~", "TagBits", ".", "HasTypeVariable", ";", "break", ";", "case", "Wildcard", ".", "UNBOUND", ":", "this", ".", "superclass", "=", "scope", ".", "getJavaLangObject", "(", ")", ";", "this", ".", "superInterfaces", "=", "Binding", ".", "NO_SUPERINTERFACES", ";", "this", ".", "tagBits", "&=", "~", "TagBits", ".", "HasTypeVariable", ";", "break", ";", "case", "Wildcard", ".", "SUPER", ":", "this", ".", "superclass", "=", "scope", ".", "getJavaLangObject", "(", ")", ";", "this", ".", "superInterfaces", "=", "Binding", ".", "NO_SUPERINTERFACES", ";", "this", ".", "lowerBound", "=", "this", ".", "wildcard", ".", "bound", ";", "if", "(", "(", "originalWildcardBound", ".", "tagBits", "&", "TagBits", ".", "HasTypeVariable", ")", "==", "0", ")", "this", ".", "tagBits", "&=", "~", "TagBits", ".", "HasTypeVariable", ";", "break", ";", "}", "return", ";", "}", "ReferenceBinding", "originalVariableSuperclass", "=", "wildcardVariable", ".", "superclass", ";", "ReferenceBinding", "substitutedVariableSuperclass", "=", "(", "ReferenceBinding", ")", "Scope", ".", "substitute", "(", "capturedParameterizedType", ",", "originalVariableSuperclass", ")", ";", "if", "(", "substitutedVariableSuperclass", "==", "this", ")", "substitutedVariableSuperclass", "=", "originalVariableSuperclass", ";", "ReferenceBinding", "[", "]", "originalVariableInterfaces", "=", "wildcardVariable", ".", "superInterfaces", "(", ")", ";", "ReferenceBinding", "[", "]", "substitutedVariableInterfaces", "=", "Scope", ".", "substitute", "(", "capturedParameterizedType", ",", "originalVariableInterfaces", ")", ";", "if", "(", "substitutedVariableInterfaces", "!=", "originalVariableInterfaces", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "substitutedVariableInterfaces", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "substitutedVariableInterfaces", "[", "i", "]", "==", "this", ")", "substitutedVariableInterfaces", "[", "i", "]", "=", "originalVariableInterfaces", "[", "i", "]", ";", "}", "}", "TypeBinding", "originalWildcardBound", "=", "this", ".", "wildcard", ".", "bound", ";", "switch", "(", "this", ".", "wildcard", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "EXTENDS", ":", "TypeBinding", "capturedWildcardBound", "=", "originalWildcardBound", ".", "capture", "(", "scope", ",", "this", ".", "position", ")", ";", "if", "(", "originalWildcardBound", ".", "isInterface", "(", ")", ")", "{", "this", ".", "superclass", "=", "substitutedVariableSuperclass", ";", "if", "(", "substitutedVariableInterfaces", "==", "Binding", ".", "NO_SUPERINTERFACES", ")", "{", "this", ".", "superInterfaces", "=", "new", "ReferenceBinding", "[", "]", "{", "(", "ReferenceBinding", ")", "capturedWildcardBound", "}", ";", "}", "else", "{", "int", "length", "=", "substitutedVariableInterfaces", ".", "length", ";", "System", ".", "arraycopy", "(", "substitutedVariableInterfaces", ",", "0", ",", "substitutedVariableInterfaces", "=", "new", "ReferenceBinding", "[", "length", "+", "1", "]", ",", "1", ",", "length", ")", ";", "substitutedVariableInterfaces", "[", "0", "]", "=", "(", "ReferenceBinding", ")", "capturedWildcardBound", ";", "this", ".", "superInterfaces", "=", "Scope", ".", "greaterLowerBound", "(", "substitutedVariableInterfaces", ")", ";", "}", "}", "else", "{", "if", "(", "capturedWildcardBound", ".", "isArrayType", "(", ")", "||", "capturedWildcardBound", "==", "this", ")", "{", "this", ".", "superclass", "=", "substitutedVariableSuperclass", ";", "}", "else", "{", "this", ".", "superclass", "=", "(", "ReferenceBinding", ")", "capturedWildcardBound", ";", "if", "(", "this", ".", "superclass", ".", "isSuperclassOf", "(", "substitutedVariableSuperclass", ")", ")", "{", "this", ".", "superclass", "=", "substitutedVariableSuperclass", ";", "}", "}", "this", ".", "superInterfaces", "=", "substitutedVariableInterfaces", ";", "}", "this", ".", "firstBound", "=", "capturedWildcardBound", ";", "if", "(", "(", "capturedWildcardBound", ".", "tagBits", "&", "TagBits", ".", "HasTypeVariable", ")", "==", "0", ")", "this", ".", "tagBits", "&=", "~", "TagBits", ".", "HasTypeVariable", ";", "break", ";", "case", "Wildcard", ".", "UNBOUND", ":", "this", ".", "superclass", "=", "substitutedVariableSuperclass", ";", "this", ".", "superInterfaces", "=", "substitutedVariableInterfaces", ";", "this", ".", "tagBits", "&=", "~", "TagBits", ".", "HasTypeVariable", ";", "break", ";", "case", "Wildcard", ".", "SUPER", ":", "this", ".", "superclass", "=", "substitutedVariableSuperclass", ";", "if", "(", "wildcardVariable", ".", "firstBound", "==", "substitutedVariableSuperclass", "||", "originalWildcardBound", "==", "substitutedVariableSuperclass", ")", "{", "this", ".", "firstBound", "=", "substitutedVariableSuperclass", ";", "}", "this", ".", "superInterfaces", "=", "substitutedVariableInterfaces", ";", "this", ".", "lowerBound", "=", "originalWildcardBound", ";", "if", "(", "(", "originalWildcardBound", ".", "tagBits", "&", "TagBits", ".", "HasTypeVariable", ")", "==", "0", ")", "this", ".", "tagBits", "&=", "~", "TagBits", ".", "HasTypeVariable", ";", "break", ";", "}", "}", "public", "boolean", "isCapture", "(", ")", "{", "return", "true", ";", "}", "public", "boolean", "isEquivalentTo", "(", "TypeBinding", "otherType", ")", "{", "if", "(", "this", "==", "otherType", ")", "return", "true", ";", "if", "(", "otherType", "==", "null", ")", "return", "false", ";", "if", "(", "this", ".", "firstBound", "!=", "null", "&&", "this", ".", "firstBound", ".", "isArrayType", "(", ")", ")", "{", "if", "(", "this", ".", "firstBound", ".", "isCompatibleWith", "(", "otherType", ")", ")", "return", "true", ";", "}", "switch", "(", "otherType", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "WILDCARD_TYPE", ":", "case", "Binding", ".", "INTERSECTION_TYPE", ":", "return", "(", "(", "WildcardBinding", ")", "otherType", ")", ".", "boundCheck", "(", "this", ")", ";", "}", "return", "false", ";", "}", "public", "char", "[", "]", "readableName", "(", ")", "{", "if", "(", "this", ".", "wildcard", "!=", "null", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "10", ")", ";", "buffer", ".", "append", "(", "TypeConstants", ".", "WILDCARD_CAPTURE_NAME_PREFIX", ")", ".", "append", "(", "this", ".", "captureID", ")", ".", "append", "(", "TypeConstants", ".", "WILDCARD_CAPTURE_NAME_SUFFIX", ")", ".", "append", "(", "this", ".", "wildcard", ".", "readableName", "(", ")", ")", ";", "int", "length", "=", "buffer", ".", "length", "(", ")", ";", "char", "[", "]", "name", "=", "new", "char", "[", "length", "]", ";", "buffer", ".", "getChars", "(", "0", ",", "length", ",", "name", ",", "0", ")", ";", "return", "name", ";", "}", "return", "super", ".", "readableName", "(", ")", ";", "}", "public", "char", "[", "]", "shortReadableName", "(", ")", "{", "if", "(", "this", ".", "wildcard", "!=", "null", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "10", ")", ";", "buffer", ".", "append", "(", "TypeConstants", ".", "WILDCARD_CAPTURE_NAME_PREFIX", ")", ".", "append", "(", "this", ".", "captureID", ")", ".", "append", "(", "TypeConstants", ".", "WILDCARD_CAPTURE_NAME_SUFFIX", ")", ".", "append", "(", "this", ".", "wildcard", ".", "shortReadableName", "(", ")", ")", ";", "int", "length", "=", "buffer", ".", "length", "(", ")", ";", "char", "[", "]", "name", "=", "new", "char", "[", "length", "]", ";", "buffer", ".", "getChars", "(", "0", ",", "length", ",", "name", ",", "0", ")", ";", "return", "name", ";", "}", "return", "super", ".", "shortReadableName", "(", ")", ";", "}", "public", "String", "toString", "(", ")", "{", "if", "(", "this", ".", "wildcard", "!=", "null", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "10", ")", ";", "buffer", ".", "append", "(", "TypeConstants", ".", "WILDCARD_CAPTURE_NAME_PREFIX", ")", ".", "append", "(", "this", ".", "captureID", ")", ".", "append", "(", "TypeConstants", ".", "WILDCARD_CAPTURE_NAME_SUFFIX", ")", ".", "append", "(", "this", ".", "wildcard", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}", "return", "super", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
5,621
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "public", "final", "class", "MemberTypeBinding", "extends", "NestedTypeBinding", "{", "public", "MemberTypeBinding", "(", "char", "[", "]", "[", "]", "compoundName", ",", "ClassScope", "scope", ",", "SourceTypeBinding", "enclosingType", ")", "{", "super", "(", "compoundName", ",", "scope", ",", "enclosingType", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "MemberTypeMask", ";", "}", "void", "checkSyntheticArgsAndFields", "(", ")", "{", "if", "(", "isStatic", "(", ")", ")", "return", ";", "if", "(", "isInterface", "(", ")", ")", "return", ";", "this", ".", "addSyntheticArgumentAndField", "(", "this", ".", "enclosingType", ")", ";", "}", "public", "char", "[", "]", "constantPoolName", "(", ")", "{", "if", "(", "this", ".", "constantPoolName", "!=", "null", ")", "return", "this", ".", "constantPoolName", ";", "return", "this", ".", "constantPoolName", "=", "CharOperation", ".", "concat", "(", "enclosingType", "(", ")", ".", "constantPoolName", "(", ")", ",", "this", ".", "sourceName", ",", "'$'", ")", ";", "}", "public", "void", "initializeDeprecatedAnnotationTagBits", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "DeprecatedAnnotationResolved", ")", "==", "0", ")", "{", "super", ".", "initializeDeprecatedAnnotationTagBits", "(", ")", ";", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AnnotationDeprecated", ")", "==", "0", ")", "{", "ReferenceBinding", "enclosing", ";", "if", "(", "(", "(", "enclosing", "=", "enclosingType", "(", ")", ")", ".", "tagBits", "&", "TagBits", ".", "DeprecatedAnnotationResolved", ")", "==", "0", ")", "{", "enclosing", ".", "initializeDeprecatedAnnotationTagBits", "(", ")", ";", "}", "if", "(", "enclosing", ".", "isViewedAsDeprecated", "(", ")", ")", "{", "this", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccDeprecatedImplicitly", ";", "}", "}", "}", "}", "public", "String", "toString", "(", ")", "{", "return", "\"\"", "+", "new", "String", "(", "sourceName", "(", ")", ")", "+", "\"", "\"", "+", "super", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
5,622
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Wildcard", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "public", "class", "TypeVariableBinding", "extends", "ReferenceBinding", "{", "public", "Binding", "declaringElement", ";", "public", "int", "rank", ";", "public", "TypeBinding", "firstBound", ";", "public", "ReferenceBinding", "superclass", ";", "public", "ReferenceBinding", "[", "]", "superInterfaces", ";", "public", "char", "[", "]", "genericTypeSignature", ";", "LookupEnvironment", "environment", ";", "public", "TypeVariableBinding", "(", "char", "[", "]", "sourceName", ",", "Binding", "declaringElement", ",", "int", "rank", ",", "LookupEnvironment", "environment", ")", "{", "this", ".", "sourceName", "=", "sourceName", ";", "this", ".", "declaringElement", "=", "declaringElement", ";", "this", ".", "rank", "=", "rank", ";", "this", ".", "modifiers", "=", "ClassFileConstants", ".", "AccPublic", "|", "ExtraCompilerModifiers", ".", "AccGenericSignature", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "HasTypeVariable", ";", "this", ".", "environment", "=", "environment", ";", "}", "public", "int", "boundCheck", "(", "Substitution", "substitution", ",", "TypeBinding", "argumentType", ")", "{", "if", "(", "argumentType", "==", "TypeBinding", ".", "NULL", "||", "argumentType", "==", "this", ")", "{", "return", "TypeConstants", ".", "OK", ";", "}", "boolean", "hasSubstitution", "=", "substitution", "!=", "null", ";", "if", "(", "!", "(", "argumentType", "instanceof", "ReferenceBinding", "||", "argumentType", ".", "isArrayType", "(", ")", ")", ")", "return", "TypeConstants", ".", "MISMATCH", ";", "if", "(", "this", ".", "superclass", "==", "null", ")", "return", "TypeConstants", ".", "OK", ";", "if", "(", "argumentType", ".", "kind", "(", ")", "==", "Binding", ".", "WILDCARD_TYPE", ")", "{", "WildcardBinding", "wildcard", "=", "(", "WildcardBinding", ")", "argumentType", ";", "switch", "(", "wildcard", ".", "boundKind", ")", "{", "case", "Wildcard", ".", "EXTENDS", ":", "TypeBinding", "wildcardBound", "=", "wildcard", ".", "bound", ";", "if", "(", "wildcardBound", "==", "this", ")", "return", "TypeConstants", ".", "OK", ";", "boolean", "isArrayBound", "=", "wildcardBound", ".", "isArrayType", "(", ")", ";", "if", "(", "!", "wildcardBound", ".", "isInterface", "(", ")", ")", "{", "TypeBinding", "substitutedSuperType", "=", "hasSubstitution", "?", "Scope", ".", "substitute", "(", "substitution", ",", "this", ".", "superclass", ")", ":", "this", ".", "superclass", ";", "if", "(", "substitutedSuperType", ".", "id", "!=", "TypeIds", ".", "T_JavaLangObject", ")", "{", "if", "(", "isArrayBound", ")", "{", "if", "(", "!", "wildcardBound", ".", "isCompatibleWith", "(", "substitutedSuperType", ")", ")", "return", "TypeConstants", ".", "MISMATCH", ";", "}", "else", "{", "TypeBinding", "match", "=", "wildcardBound", ".", "findSuperTypeOriginatingFrom", "(", "substitutedSuperType", ")", ";", "if", "(", "match", "!=", "null", ")", "{", "if", "(", "substitutedSuperType", ".", "isProvablyDistinct", "(", "match", ")", ")", "{", "return", "TypeConstants", ".", "MISMATCH", ";", "}", "}", "else", "{", "match", "=", "substitutedSuperType", ".", "findSuperTypeOriginatingFrom", "(", "wildcardBound", ")", ";", "if", "(", "match", "!=", "null", ")", "{", "if", "(", "match", ".", "isProvablyDistinct", "(", "wildcardBound", ")", ")", "{", "return", "TypeConstants", ".", "MISMATCH", ";", "}", "}", "else", "{", "if", "(", "!", "wildcardBound", ".", "isTypeVariable", "(", ")", "&&", "!", "substitutedSuperType", ".", "isTypeVariable", "(", ")", ")", "{", "return", "TypeConstants", ".", "MISMATCH", ";", "}", "}", "}", "}", "}", "}", "boolean", "mustImplement", "=", "isArrayBound", "||", "(", "(", "ReferenceBinding", ")", "wildcardBound", ")", ".", "isFinal", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "superInterfaces", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeBinding", "substitutedSuperType", "=", "hasSubstitution", "?", "Scope", ".", "substitute", "(", "substitution", ",", "this", ".", "superInterfaces", "[", "i", "]", ")", ":", "this", ".", "superInterfaces", "[", "i", "]", ";", "if", "(", "isArrayBound", ")", "{", "if", "(", "!", "wildcardBound", ".", "isCompatibleWith", "(", "substitutedSuperType", ")", ")", "return", "TypeConstants", ".", "MISMATCH", ";", "}", "else", "{", "TypeBinding", "match", "=", "wildcardBound", ".", "findSuperTypeOriginatingFrom", "(", "substitutedSuperType", ")", ";", "if", "(", "match", "!=", "null", ")", "{", "if", "(", "substitutedSuperType", ".", "isProvablyDistinct", "(", "match", ")", ")", "{", "return", "TypeConstants", ".", "MISMATCH", ";", "}", "}", "else", "if", "(", "mustImplement", ")", "{", "return", "TypeConstants", ".", "MISMATCH", ";", "}", "}", "}", "break", ";", "case", "Wildcard", ".", "SUPER", ":", "return", "boundCheck", "(", "substitution", ",", "wildcard", ".", "bound", ")", ";", "case", "Wildcard", ".", "UNBOUND", ":", "break", ";", "}", "return", "TypeConstants", ".", "OK", ";", "}", "boolean", "unchecked", "=", "false", ";", "if", "(", "this", ".", "superclass", ".", "id", "!=", "TypeIds", ".", "T_JavaLangObject", ")", "{", "TypeBinding", "substitutedSuperType", "=", "hasSubstitution", "?", "Scope", ".", "substitute", "(", "substitution", ",", "this", ".", "superclass", ")", ":", "this", ".", "superclass", ";", "if", "(", "substitutedSuperType", "!=", "argumentType", ")", "{", "if", "(", "!", "argumentType", ".", "isCompatibleWith", "(", "substitutedSuperType", ")", ")", "{", "return", "TypeConstants", ".", "MISMATCH", ";", "}", "TypeBinding", "match", "=", "argumentType", ".", "findSuperTypeOriginatingFrom", "(", "substitutedSuperType", ")", ";", "if", "(", "match", "!=", "null", ")", "{", "if", "(", "match", ".", "isRawType", "(", ")", "&&", "substitutedSuperType", ".", "isBoundParameterizedType", "(", ")", ")", "unchecked", "=", "true", ";", "}", "}", "}", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "superInterfaces", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeBinding", "substitutedSuperType", "=", "hasSubstitution", "?", "Scope", ".", "substitute", "(", "substitution", ",", "this", ".", "superInterfaces", "[", "i", "]", ")", ":", "this", ".", "superInterfaces", "[", "i", "]", ";", "if", "(", "substitutedSuperType", "!=", "argumentType", ")", "{", "if", "(", "!", "argumentType", ".", "isCompatibleWith", "(", "substitutedSuperType", ")", ")", "{", "return", "TypeConstants", ".", "MISMATCH", ";", "}", "TypeBinding", "match", "=", "argumentType", ".", "findSuperTypeOriginatingFrom", "(", "substitutedSuperType", ")", ";", "if", "(", "match", "!=", "null", ")", "{", "if", "(", "match", ".", "isRawType", "(", ")", "&&", "substitutedSuperType", ".", "isBoundParameterizedType", "(", ")", ")", "unchecked", "=", "true", ";", "}", "}", "}", "return", "unchecked", "?", "TypeConstants", ".", "UNCHECKED", ":", "TypeConstants", ".", "OK", ";", "}", "public", "int", "boundsCount", "(", ")", "{", "if", "(", "this", ".", "firstBound", "==", "null", ")", "{", "return", "0", ";", "}", "else", "if", "(", "this", ".", "firstBound", "==", "this", ".", "superclass", ")", "{", "return", "this", ".", "superInterfaces", ".", "length", "+", "1", ";", "}", "else", "{", "return", "this", ".", "superInterfaces", ".", "length", ";", "}", "}", "public", "boolean", "canBeInstantiated", "(", ")", "{", "return", "false", ";", "}", "public", "void", "collectSubstitutes", "(", "Scope", "scope", ",", "TypeBinding", "actualType", ",", "InferenceContext", "inferenceContext", ",", "int", "constraint", ")", "{", "if", "(", "this", ".", "declaringElement", "!=", "inferenceContext", ".", "genericMethod", ")", "return", ";", "switch", "(", "actualType", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "BASE_TYPE", ":", "if", "(", "actualType", "==", "TypeBinding", ".", "NULL", ")", "return", ";", "TypeBinding", "boxedType", "=", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "actualType", ")", ";", "if", "(", "boxedType", "==", "actualType", ")", "return", ";", "actualType", "=", "boxedType", ";", "break", ";", "case", "Binding", ".", "WILDCARD_TYPE", ":", "return", ";", "}", "int", "variableConstraint", ";", "switch", "(", "constraint", ")", "{", "case", "TypeConstants", ".", "CONSTRAINT_EQUAL", ":", "variableConstraint", "=", "TypeConstants", ".", "CONSTRAINT_EQUAL", ";", "break", ";", "case", "TypeConstants", ".", "CONSTRAINT_EXTENDS", ":", "variableConstraint", "=", "TypeConstants", ".", "CONSTRAINT_SUPER", ";", "break", ";", "default", ":", "variableConstraint", "=", "TypeConstants", ".", "CONSTRAINT_EXTENDS", ";", "break", ";", "}", "inferenceContext", ".", "recordSubstitute", "(", "this", ",", "actualType", ",", "variableConstraint", ")", ";", "}", "public", "char", "[", "]", "computeUniqueKey", "(", "boolean", "isLeaf", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "Binding", "declaring", "=", "this", ".", "declaringElement", ";", "if", "(", "!", "isLeaf", "&&", "declaring", ".", "kind", "(", ")", "==", "Binding", ".", "METHOD", ")", "{", "MethodBinding", "methodBinding", "=", "(", "MethodBinding", ")", "declaring", ";", "ReferenceBinding", "declaringClass", "=", "methodBinding", ".", "declaringClass", ";", "buffer", ".", "append", "(", "declaringClass", ".", "computeUniqueKey", "(", "false", ")", ")", ";", "buffer", ".", "append", "(", "':'", ")", ";", "MethodBinding", "[", "]", "methods", "=", "declaringClass", ".", "methods", "(", ")", ";", "if", "(", "methods", "!=", "null", ")", "for", "(", "int", "i", "=", "0", ",", "length", "=", "methods", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "MethodBinding", "binding", "=", "methods", "[", "i", "]", ";", "if", "(", "binding", "==", "methodBinding", ")", "{", "buffer", ".", "append", "(", "i", ")", ";", "break", ";", "}", "}", "}", "else", "{", "buffer", ".", "append", "(", "declaring", ".", "computeUniqueKey", "(", "false", ")", ")", ";", "buffer", ".", "append", "(", "':'", ")", ";", "}", "buffer", ".", "append", "(", "genericTypeSignature", "(", ")", ")", ";", "int", "length", "=", "buffer", ".", "length", "(", ")", ";", "char", "[", "]", "uniqueKey", "=", "new", "char", "[", "length", "]", ";", "buffer", ".", "getChars", "(", "0", ",", "length", ",", "uniqueKey", ",", "0", ")", ";", "return", "uniqueKey", ";", "}", "public", "char", "[", "]", "constantPoolName", "(", ")", "{", "if", "(", "this", ".", "firstBound", "!=", "null", ")", "{", "return", "this", ".", "firstBound", ".", "constantPoolName", "(", ")", ";", "}", "return", "this", ".", "superclass", ".", "constantPoolName", "(", ")", ";", "}", "public", "String", "debugName", "(", ")", "{", "return", "new", "String", "(", "this", ".", "sourceName", ")", ";", "}", "public", "TypeBinding", "erasure", "(", ")", "{", "if", "(", "this", ".", "firstBound", "!=", "null", ")", "{", "return", "this", ".", "firstBound", ".", "erasure", "(", ")", ";", "}", "return", "this", ".", "superclass", ";", "}", "public", "char", "[", "]", "genericSignature", "(", ")", "{", "StringBuffer", "sig", "=", "new", "StringBuffer", "(", "10", ")", ";", "sig", ".", "append", "(", "this", ".", "sourceName", ")", ".", "append", "(", "':'", ")", ";", "int", "interfaceLength", "=", "this", ".", "superInterfaces", "==", "null", "?", "0", ":", "this", ".", "superInterfaces", ".", "length", ";", "if", "(", "interfaceLength", "==", "0", "||", "this", ".", "firstBound", "==", "this", ".", "superclass", ")", "{", "if", "(", "this", ".", "superclass", "!=", "null", ")", "sig", ".", "append", "(", "this", ".", "superclass", ".", "genericTypeSignature", "(", ")", ")", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "interfaceLength", ";", "i", "++", ")", "{", "sig", ".", "append", "(", "':'", ")", ".", "append", "(", "this", ".", "superInterfaces", "[", "i", "]", ".", "genericTypeSignature", "(", ")", ")", ";", "}", "int", "sigLength", "=", "sig", ".", "length", "(", ")", ";", "char", "[", "]", "genericSignature", "=", "new", "char", "[", "sigLength", "]", ";", "sig", ".", "getChars", "(", "0", ",", "sigLength", ",", "genericSignature", ",", "0", ")", ";", "return", "genericSignature", ";", "}", "public", "char", "[", "]", "genericTypeSignature", "(", ")", "{", "if", "(", "this", ".", "genericTypeSignature", "!=", "null", ")", "return", "this", ".", "genericTypeSignature", ";", "return", "this", ".", "genericTypeSignature", "=", "CharOperation", ".", "concat", "(", "'T'", ",", "this", ".", "sourceName", ",", "';'", ")", ";", "}", "boolean", "hasOnlyRawBounds", "(", ")", "{", "if", "(", "this", ".", "superclass", "!=", "null", "&&", "this", ".", "firstBound", "==", "this", ".", "superclass", ")", "if", "(", "!", "this", ".", "superclass", ".", "isRawType", "(", ")", ")", "return", "false", ";", "if", "(", "this", ".", "superInterfaces", "!=", "null", ")", "for", "(", "int", "i", "=", "0", ",", "l", "=", "this", ".", "superInterfaces", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "if", "(", "!", "this", ".", "superInterfaces", "[", "i", "]", ".", "isRawType", "(", ")", ")", "return", "false", ";", "return", "true", ";", "}", "public", "boolean", "isErasureBoundTo", "(", "TypeBinding", "type", ")", "{", "if", "(", "this", ".", "superclass", ".", "erasure", "(", ")", "==", "type", ")", "return", "true", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "superInterfaces", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "this", ".", "superInterfaces", "[", "i", "]", ".", "erasure", "(", ")", "==", "type", ")", "return", "true", ";", "}", "return", "false", ";", "}", "public", "boolean", "isHierarchyConnected", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccUnresolved", ")", "==", "0", ";", "}", "public", "boolean", "isInterchangeableWith", "(", "TypeVariableBinding", "otherVariable", ",", "Substitution", "substitute", ")", "{", "if", "(", "this", "==", "otherVariable", ")", "return", "true", ";", "int", "length", "=", "this", ".", "superInterfaces", ".", "length", ";", "if", "(", "length", "!=", "otherVariable", ".", "superInterfaces", ".", "length", ")", "return", "false", ";", "if", "(", "this", ".", "superclass", "!=", "Scope", ".", "substitute", "(", "substitute", ",", "otherVariable", ".", "superclass", ")", ")", "return", "false", ";", "next", ":", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeBinding", "superType", "=", "Scope", ".", "substitute", "(", "substitute", ",", "otherVariable", ".", "superInterfaces", "[", "i", "]", ")", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "length", ";", "j", "++", ")", "if", "(", "superType", "==", "this", ".", "superInterfaces", "[", "j", "]", ")", "continue", "next", ";", "return", "false", ";", "}", "return", "true", ";", "}", "public", "boolean", "isTypeVariable", "(", ")", "{", "return", "true", ";", "}", "public", "int", "kind", "(", ")", "{", "return", "Binding", ".", "TYPE_PARAMETER", ";", "}", "public", "TypeBinding", "[", "]", "otherUpperBounds", "(", ")", "{", "if", "(", "this", ".", "firstBound", "==", "null", ")", "return", "Binding", ".", "NO_TYPES", ";", "if", "(", "this", ".", "firstBound", "==", "this", ".", "superclass", ")", "return", "this", ".", "superInterfaces", ";", "int", "otherLength", "=", "this", ".", "superInterfaces", ".", "length", "-", "1", ";", "if", "(", "otherLength", ">", "0", ")", "{", "TypeBinding", "[", "]", "otherBounds", ";", "System", ".", "arraycopy", "(", "this", ".", "superInterfaces", ",", "1", ",", "otherBounds", "=", "new", "TypeBinding", "[", "otherLength", "]", ",", "0", ",", "otherLength", ")", ";", "return", "otherBounds", ";", "}", "return", "Binding", ".", "NO_TYPES", ";", "}", "public", "char", "[", "]", "readableName", "(", ")", "{", "return", "this", ".", "sourceName", ";", "}", "ReferenceBinding", "resolve", "(", ")", "{", "if", "(", "(", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccUnresolved", ")", "==", "0", ")", "return", "this", ";", "TypeBinding", "oldSuperclass", "=", "this", ".", "superclass", ",", "oldFirstInterface", "=", "null", ";", "if", "(", "this", ".", "superclass", "!=", "null", ")", "{", "ReferenceBinding", "resolveType", "=", "(", "ReferenceBinding", ")", "BinaryTypeBinding", ".", "resolveType", "(", "this", ".", "superclass", ",", "this", ".", "environment", ",", "true", ")", ";", "this", ".", "tagBits", "|=", "resolveType", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ";", "this", ".", "superclass", "=", "resolveType", ";", "}", "ReferenceBinding", "[", "]", "interfaces", "=", "this", ".", "superInterfaces", ";", "int", "length", ";", "if", "(", "(", "length", "=", "interfaces", ".", "length", ")", "!=", "0", ")", "{", "oldFirstInterface", "=", "interfaces", "[", "0", "]", ";", "for", "(", "int", "i", "=", "length", ";", "--", "i", ">=", "0", ";", ")", "{", "ReferenceBinding", "resolveType", "=", "(", "ReferenceBinding", ")", "BinaryTypeBinding", ".", "resolveType", "(", "interfaces", "[", "i", "]", ",", "this", ".", "environment", ",", "true", ")", ";", "this", ".", "tagBits", "|=", "resolveType", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ";", "interfaces", "[", "i", "]", "=", "resolveType", ";", "}", "}", "if", "(", "this", ".", "firstBound", "!=", "null", ")", "{", "if", "(", "this", ".", "firstBound", "==", "oldSuperclass", ")", "{", "this", ".", "firstBound", "=", "this", ".", "superclass", ";", "}", "else", "if", "(", "this", ".", "firstBound", "==", "oldFirstInterface", ")", "{", "this", ".", "firstBound", "=", "interfaces", "[", "0", "]", ";", "}", "}", "this", ".", "modifiers", "&=", "~", "ExtraCompilerModifiers", ".", "AccUnresolved", ";", "return", "this", ";", "}", "public", "char", "[", "]", "shortReadableName", "(", ")", "{", "return", "readableName", "(", ")", ";", "}", "public", "ReferenceBinding", "superclass", "(", ")", "{", "return", "this", ".", "superclass", ";", "}", "public", "ReferenceBinding", "[", "]", "superInterfaces", "(", ")", "{", "return", "this", ".", "superInterfaces", ";", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "10", ")", ";", "buffer", ".", "append", "(", "'<'", ")", ".", "append", "(", "this", ".", "sourceName", ")", ";", "if", "(", "this", ".", "superclass", "!=", "null", "&&", "this", ".", "firstBound", "==", "this", ".", "superclass", ")", "{", "buffer", ".", "append", "(", "\"", "extends", "\"", ")", ".", "append", "(", "this", ".", "superclass", ".", "debugName", "(", ")", ")", ";", "}", "if", "(", "this", ".", "superInterfaces", "!=", "null", "&&", "this", ".", "superInterfaces", "!=", "Binding", ".", "NO_SUPERINTERFACES", ")", "{", "if", "(", "this", ".", "firstBound", "!=", "this", ".", "superclass", ")", "{", "buffer", ".", "append", "(", "\"", "extends", "\"", ")", ";", "}", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "superInterfaces", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", "||", "this", ".", "firstBound", "==", "this", ".", "superclass", ")", "{", "buffer", ".", "append", "(", "\"", "&", "\"", ")", ";", "}", "buffer", ".", "append", "(", "this", ".", "superInterfaces", "[", "i", "]", ".", "debugName", "(", ")", ")", ";", "}", "}", "buffer", ".", "append", "(", "'>'", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}", "public", "TypeBinding", "upperBound", "(", ")", "{", "if", "(", "this", ".", "firstBound", "!=", "null", ")", "{", "return", "this", ".", "firstBound", ";", "}", "return", "this", ".", "superclass", ";", "}", "}", "</s>" ]
5,623
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "java", ".", "util", ".", "ArrayList", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "AbortCompilation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "SimpleLookupTable", ";", "public", "class", "BinaryTypeBinding", "extends", "ReferenceBinding", "{", "protected", "ReferenceBinding", "superclass", ";", "protected", "ReferenceBinding", "enclosingType", ";", "protected", "ReferenceBinding", "[", "]", "superInterfaces", ";", "protected", "FieldBinding", "[", "]", "fields", ";", "protected", "MethodBinding", "[", "]", "methods", ";", "private", "boolean", "infraMethodsComplete", "=", "false", ";", "protected", "MethodBinding", "[", "]", "infraMethods", "=", "Binding", ".", "NO_METHODS", ";", "protected", "ReferenceBinding", "[", "]", "memberTypes", ";", "protected", "TypeVariableBinding", "[", "]", "typeVariables", ";", "protected", "LookupEnvironment", "environment", ";", "protected", "SimpleLookupTable", "storedAnnotations", "=", "null", ";", "static", "Object", "convertMemberValue", "(", "Object", "binaryValue", ",", "LookupEnvironment", "env", ",", "char", "[", "]", "[", "]", "[", "]", "missingTypeNames", ")", "{", "if", "(", "binaryValue", "==", "null", ")", "return", "null", ";", "if", "(", "binaryValue", "instanceof", "Constant", ")", "return", "binaryValue", ";", "if", "(", "binaryValue", "instanceof", "ClassSignature", ")", "return", "env", ".", "getTypeFromSignature", "(", "(", "(", "ClassSignature", ")", "binaryValue", ")", ".", "getTypeName", "(", ")", ",", "0", ",", "-", "1", ",", "false", ",", "null", ",", "missingTypeNames", ")", ";", "if", "(", "binaryValue", "instanceof", "IBinaryAnnotation", ")", "return", "createAnnotation", "(", "(", "IBinaryAnnotation", ")", "binaryValue", ",", "env", ",", "missingTypeNames", ")", ";", "if", "(", "binaryValue", "instanceof", "EnumConstantSignature", ")", "{", "EnumConstantSignature", "ref", "=", "(", "EnumConstantSignature", ")", "binaryValue", ";", "ReferenceBinding", "enumType", "=", "(", "ReferenceBinding", ")", "env", ".", "getTypeFromSignature", "(", "ref", ".", "getTypeName", "(", ")", ",", "0", ",", "-", "1", ",", "false", ",", "null", ",", "missingTypeNames", ")", ";", "enumType", "=", "(", "ReferenceBinding", ")", "resolveType", "(", "enumType", ",", "env", ",", "false", ")", ";", "return", "enumType", ".", "getField", "(", "ref", ".", "getEnumConstantName", "(", ")", ",", "false", ")", ";", "}", "if", "(", "binaryValue", "instanceof", "Object", "[", "]", ")", "{", "Object", "[", "]", "objects", "=", "(", "Object", "[", "]", ")", "binaryValue", ";", "int", "length", "=", "objects", ".", "length", ";", "if", "(", "length", "==", "0", ")", "return", "objects", ";", "Object", "[", "]", "values", "=", "new", "Object", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "values", "[", "i", "]", "=", "convertMemberValue", "(", "objects", "[", "i", "]", ",", "env", ",", "missingTypeNames", ")", ";", "return", "values", ";", "}", "throw", "new", "IllegalStateException", "(", ")", ";", "}", "static", "AnnotationBinding", "createAnnotation", "(", "IBinaryAnnotation", "annotationInfo", ",", "LookupEnvironment", "env", ",", "char", "[", "]", "[", "]", "[", "]", "missingTypeNames", ")", "{", "IBinaryElementValuePair", "[", "]", "binaryPairs", "=", "annotationInfo", ".", "getElementValuePairs", "(", ")", ";", "int", "length", "=", "binaryPairs", "==", "null", "?", "0", ":", "binaryPairs", ".", "length", ";", "ElementValuePair", "[", "]", "pairs", "=", "length", "==", "0", "?", "Binding", ".", "NO_ELEMENT_VALUE_PAIRS", ":", "new", "ElementValuePair", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "pairs", "[", "i", "]", "=", "new", "ElementValuePair", "(", "binaryPairs", "[", "i", "]", ".", "getName", "(", ")", ",", "convertMemberValue", "(", "binaryPairs", "[", "i", "]", ".", "getValue", "(", ")", ",", "env", ",", "missingTypeNames", ")", ",", "null", ")", ";", "char", "[", "]", "typeName", "=", "annotationInfo", ".", "getTypeName", "(", ")", ";", "ReferenceBinding", "annotationType", "=", "env", ".", "getTypeFromConstantPoolName", "(", "typeName", ",", "1", ",", "typeName", ".", "length", "-", "1", ",", "false", ",", "missingTypeNames", ")", ";", "return", "new", "UnresolvedAnnotationBinding", "(", "annotationType", ",", "pairs", ",", "env", ")", ";", "}", "public", "static", "AnnotationBinding", "[", "]", "createAnnotations", "(", "IBinaryAnnotation", "[", "]", "annotationInfos", ",", "LookupEnvironment", "env", ",", "char", "[", "]", "[", "]", "[", "]", "missingTypeNames", ")", "{", "int", "length", "=", "annotationInfos", "==", "null", "?", "0", ":", "annotationInfos", ".", "length", ";", "AnnotationBinding", "[", "]", "result", "=", "length", "==", "0", "?", "Binding", ".", "NO_ANNOTATIONS", ":", "new", "AnnotationBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "result", "[", "i", "]", "=", "createAnnotation", "(", "annotationInfos", "[", "i", "]", ",", "env", ",", "missingTypeNames", ")", ";", "return", "result", ";", "}", "public", "static", "TypeBinding", "resolveType", "(", "TypeBinding", "type", ",", "LookupEnvironment", "environment", ",", "boolean", "convertGenericToRawType", ")", "{", "switch", "(", "type", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "PARAMETERIZED_TYPE", ":", "(", "(", "ParameterizedTypeBinding", ")", "type", ")", ".", "resolve", "(", ")", ";", "break", ";", "case", "Binding", ".", "WILDCARD_TYPE", ":", "case", "Binding", ".", "INTERSECTION_TYPE", ":", "return", "(", "(", "WildcardBinding", ")", "type", ")", ".", "resolve", "(", ")", ";", "case", "Binding", ".", "ARRAY_TYPE", ":", "resolveType", "(", "(", "(", "ArrayBinding", ")", "type", ")", ".", "leafComponentType", ",", "environment", ",", "convertGenericToRawType", ")", ";", "break", ";", "case", "Binding", ".", "TYPE_PARAMETER", ":", "(", "(", "TypeVariableBinding", ")", "type", ")", ".", "resolve", "(", ")", ";", "break", ";", "case", "Binding", ".", "GENERIC_TYPE", ":", "if", "(", "convertGenericToRawType", ")", "return", "environment", ".", "convertUnresolvedBinaryToRawType", "(", "type", ")", ";", "break", ";", "default", ":", "if", "(", "type", "instanceof", "UnresolvedReferenceBinding", ")", "return", "(", "(", "UnresolvedReferenceBinding", ")", "type", ")", ".", "resolve", "(", "environment", ",", "convertGenericToRawType", ")", ";", "if", "(", "convertGenericToRawType", ")", "return", "environment", ".", "convertUnresolvedBinaryToRawType", "(", "type", ")", ";", "break", ";", "}", "return", "type", ";", "}", "protected", "BinaryTypeBinding", "(", ")", "{", "}", "public", "BinaryTypeBinding", "(", "PackageBinding", "packageBinding", ",", "IBinaryType", "binaryType", ",", "LookupEnvironment", "environment", ")", "{", "this", ".", "compoundName", "=", "CharOperation", ".", "splitOn", "(", "'/'", ",", "binaryType", ".", "getName", "(", ")", ")", ";", "computeId", "(", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "IsBinaryBinding", ";", "this", ".", "environment", "=", "environment", ";", "this", ".", "fPackage", "=", "packageBinding", ";", "this", ".", "fileName", "=", "binaryType", ".", "getFileName", "(", ")", ";", "char", "[", "]", "typeSignature", "=", "environment", ".", "globalOptions", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", "?", "binaryType", ".", "getGenericSignature", "(", ")", ":", "null", ";", "this", ".", "typeVariables", "=", "typeSignature", "!=", "null", "&&", "typeSignature", ".", "length", ">", "0", "&&", "typeSignature", "[", "0", "]", "==", "'<'", "?", "null", ":", "Binding", ".", "NO_TYPE_VARIABLES", ";", "this", ".", "sourceName", "=", "binaryType", ".", "getSourceName", "(", ")", ";", "this", ".", "modifiers", "=", "binaryType", ".", "getModifiers", "(", ")", ";", "if", "(", "(", "binaryType", ".", "getTagBits", "(", ")", "&", "TagBits", ".", "HierarchyHasProblems", ")", "!=", "0", ")", "this", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "if", "(", "binaryType", ".", "isAnonymous", "(", ")", ")", "{", "this", ".", "tagBits", "|=", "TagBits", ".", "AnonymousTypeMask", ";", "}", "else", "if", "(", "binaryType", ".", "isLocal", "(", ")", ")", "{", "this", ".", "tagBits", "|=", "TagBits", ".", "LocalTypeMask", ";", "}", "else", "if", "(", "binaryType", ".", "isMember", "(", ")", ")", "{", "this", ".", "tagBits", "|=", "TagBits", ".", "MemberTypeMask", ";", "}", "char", "[", "]", "enclosingTypeName", "=", "binaryType", ".", "getEnclosingTypeName", "(", ")", ";", "if", "(", "enclosingTypeName", "!=", "null", ")", "{", "this", ".", "enclosingType", "=", "environment", ".", "getTypeFromConstantPoolName", "(", "enclosingTypeName", ",", "0", ",", "-", "1", ",", "true", ",", "null", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "MemberTypeMask", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "HasUnresolvedEnclosingType", ";", "if", "(", "enclosingType", "(", ")", ".", "isStrictfp", "(", ")", ")", "this", ".", "modifiers", "|=", "ClassFileConstants", ".", "AccStrictfp", ";", "if", "(", "enclosingType", "(", ")", ".", "isDeprecated", "(", ")", ")", "this", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccDeprecatedImplicitly", ";", "}", "}", "public", "FieldBinding", "[", "]", "availableFields", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreFieldsComplete", ")", "!=", "0", ")", "return", "this", ".", "fields", ";", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreFieldsSorted", ")", "==", "0", ")", "{", "int", "length", "=", "this", ".", "fields", ".", "length", ";", "if", "(", "length", ">", "1", ")", "ReferenceBinding", ".", "sortFields", "(", "this", ".", "fields", ",", "0", ",", "length", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "AreFieldsSorted", ";", "}", "FieldBinding", "[", "]", "availableFields", "=", "new", "FieldBinding", "[", "this", ".", "fields", ".", "length", "]", ";", "int", "count", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "fields", ".", "length", ";", "i", "++", ")", "{", "try", "{", "availableFields", "[", "count", "]", "=", "resolveTypeFor", "(", "this", ".", "fields", "[", "i", "]", ")", ";", "count", "++", ";", "}", "catch", "(", "AbortCompilation", "a", ")", "{", "}", "}", "if", "(", "count", "<", "availableFields", ".", "length", ")", "System", ".", "arraycopy", "(", "availableFields", ",", "0", ",", "availableFields", "=", "new", "FieldBinding", "[", "count", "]", ",", "0", ",", "count", ")", ";", "return", "availableFields", ";", "}", "public", "MethodBinding", "[", "]", "availableMethods", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsComplete", ")", "!=", "0", ")", "return", "this", ".", "methods", ";", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsSorted", ")", "==", "0", ")", "{", "int", "length", "=", "this", ".", "methods", ".", "length", ";", "if", "(", "length", ">", "1", ")", "ReferenceBinding", ".", "sortMethods", "(", "this", ".", "methods", ",", "0", ",", "length", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "AreMethodsSorted", ";", "}", "MethodBinding", "[", "]", "availableMethods", "=", "new", "MethodBinding", "[", "this", ".", "methods", ".", "length", "]", ";", "int", "count", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "methods", ".", "length", ";", "i", "++", ")", "{", "try", "{", "availableMethods", "[", "count", "]", "=", "resolveTypesFor", "(", "this", ".", "methods", "[", "i", "]", ")", ";", "count", "++", ";", "}", "catch", "(", "AbortCompilation", "a", ")", "{", "}", "}", "if", "(", "count", "<", "availableMethods", ".", "length", ")", "System", ".", "arraycopy", "(", "availableMethods", ",", "0", ",", "availableMethods", "=", "new", "MethodBinding", "[", "count", "]", ",", "0", ",", "count", ")", ";", "return", "availableMethods", ";", "}", "void", "cachePartsFrom", "(", "IBinaryType", "binaryType", ",", "boolean", "needFieldsAndMethods", ")", "{", "try", "{", "this", ".", "typeVariables", "=", "Binding", ".", "NO_TYPE_VARIABLES", ";", "this", ".", "superInterfaces", "=", "Binding", ".", "NO_SUPERINTERFACES", ";", "this", ".", "memberTypes", "=", "Binding", ".", "NO_MEMBER_TYPES", ";", "IBinaryNestedType", "[", "]", "memberTypeStructures", "=", "binaryType", ".", "getMemberTypes", "(", ")", ";", "if", "(", "memberTypeStructures", "!=", "null", ")", "{", "int", "size", "=", "memberTypeStructures", ".", "length", ";", "if", "(", "size", ">", "0", ")", "{", "this", ".", "memberTypes", "=", "new", "ReferenceBinding", "[", "size", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "++", ")", "this", ".", "memberTypes", "[", "i", "]", "=", "this", ".", "environment", ".", "getTypeFromConstantPoolName", "(", "memberTypeStructures", "[", "i", "]", ".", "getName", "(", ")", ",", "0", ",", "-", "1", ",", "false", ",", "null", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "HasUnresolvedMemberTypes", ";", "}", "}", "long", "sourceLevel", "=", "this", ".", "environment", ".", "globalOptions", ".", "sourceLevel", ";", "char", "[", "]", "typeSignature", "=", "null", ";", "if", "(", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "typeSignature", "=", "binaryType", ".", "getGenericSignature", "(", ")", ";", "this", ".", "tagBits", "|=", "binaryType", ".", "getTagBits", "(", ")", ";", "}", "char", "[", "]", "[", "]", "[", "]", "missingTypeNames", "=", "binaryType", ".", "getMissingTypeNames", "(", ")", ";", "if", "(", "typeSignature", "==", "null", ")", "{", "char", "[", "]", "superclassName", "=", "binaryType", ".", "getSuperclassName", "(", ")", ";", "if", "(", "superclassName", "!=", "null", ")", "{", "this", ".", "superclass", "=", "this", ".", "environment", ".", "getTypeFromConstantPoolName", "(", "superclassName", ",", "0", ",", "-", "1", ",", "false", ",", "missingTypeNames", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "HasUnresolvedSuperclass", ";", "}", "this", ".", "superInterfaces", "=", "Binding", ".", "NO_SUPERINTERFACES", ";", "char", "[", "]", "[", "]", "interfaceNames", "=", "binaryType", ".", "getInterfaceNames", "(", ")", ";", "if", "(", "interfaceNames", "!=", "null", ")", "{", "int", "size", "=", "interfaceNames", ".", "length", ";", "if", "(", "size", ">", "0", ")", "{", "this", ".", "superInterfaces", "=", "new", "ReferenceBinding", "[", "size", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "++", ")", "this", ".", "superInterfaces", "[", "i", "]", "=", "this", ".", "environment", ".", "getTypeFromConstantPoolName", "(", "interfaceNames", "[", "i", "]", ",", "0", ",", "-", "1", ",", "false", ",", "missingTypeNames", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "HasUnresolvedSuperinterfaces", ";", "}", "}", "}", "else", "{", "SignatureWrapper", "wrapper", "=", "new", "SignatureWrapper", "(", "typeSignature", ")", ";", "if", "(", "wrapper", ".", "signature", "[", "wrapper", ".", "start", "]", "==", "'<'", ")", "{", "wrapper", ".", "start", "++", ";", "this", ".", "typeVariables", "=", "createTypeVariables", "(", "wrapper", ",", "true", ",", "missingTypeNames", ")", ";", "wrapper", ".", "start", "++", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "HasUnresolvedTypeVariables", ";", "this", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccGenericSignature", ";", "}", "TypeVariableBinding", "[", "]", "typeVars", "=", "Binding", ".", "NO_TYPE_VARIABLES", ";", "char", "[", "]", "methodDescriptor", "=", "binaryType", ".", "getEnclosingMethod", "(", ")", ";", "if", "(", "methodDescriptor", "!=", "null", ")", "{", "MethodBinding", "enclosingMethod", "=", "findMethod", "(", "methodDescriptor", ",", "missingTypeNames", ")", ";", "if", "(", "enclosingMethod", "!=", "null", ")", "{", "typeVars", "=", "enclosingMethod", ".", "typeVariables", ";", "}", "}", "this", ".", "superclass", "=", "(", "ReferenceBinding", ")", "this", ".", "environment", ".", "getTypeFromTypeSignature", "(", "wrapper", ",", "typeVars", ",", "this", ",", "missingTypeNames", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "HasUnresolvedSuperclass", ";", "this", ".", "superInterfaces", "=", "Binding", ".", "NO_SUPERINTERFACES", ";", "if", "(", "!", "wrapper", ".", "atEnd", "(", ")", ")", "{", "java", ".", "util", ".", "ArrayList", "types", "=", "new", "java", ".", "util", ".", "ArrayList", "(", "2", ")", ";", "do", "{", "types", ".", "add", "(", "this", ".", "environment", ".", "getTypeFromTypeSignature", "(", "wrapper", ",", "typeVars", ",", "this", ",", "missingTypeNames", ")", ")", ";", "}", "while", "(", "!", "wrapper", ".", "atEnd", "(", ")", ")", ";", "this", ".", "superInterfaces", "=", "new", "ReferenceBinding", "[", "types", ".", "size", "(", ")", "]", ";", "types", ".", "toArray", "(", "this", ".", "superInterfaces", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "HasUnresolvedSuperinterfaces", ";", "}", "}", "if", "(", "needFieldsAndMethods", ")", "{", "createFields", "(", "binaryType", ".", "getFields", "(", ")", ",", "sourceLevel", ",", "missingTypeNames", ")", ";", "createMethods", "(", "binaryType", ".", "getMethods", "(", ")", ",", "sourceLevel", ",", "missingTypeNames", ")", ";", "boolean", "isViewedAsDeprecated", "=", "isViewedAsDeprecated", "(", ")", ";", "if", "(", "isViewedAsDeprecated", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "fields", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "FieldBinding", "field", "=", "this", ".", "fields", "[", "i", "]", ";", "if", "(", "!", "field", ".", "isDeprecated", "(", ")", ")", "{", "field", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccDeprecatedImplicitly", ";", "}", "}", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "methods", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "MethodBinding", "method", "=", "this", ".", "methods", "[", "i", "]", ";", "if", "(", "!", "method", ".", "isDeprecated", "(", ")", ")", "{", "method", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccDeprecatedImplicitly", ";", "}", "}", "}", "}", "if", "(", "this", ".", "environment", ".", "globalOptions", ".", "storeAnnotations", ")", "setAnnotations", "(", "createAnnotations", "(", "binaryType", ".", "getAnnotations", "(", ")", ",", "this", ".", "environment", ",", "missingTypeNames", ")", ")", ";", "}", "finally", "{", "if", "(", "this", ".", "fields", "==", "null", ")", "this", ".", "fields", "=", "Binding", ".", "NO_FIELDS", ";", "if", "(", "this", ".", "methods", "==", "null", ")", "this", ".", "methods", "=", "Binding", ".", "NO_METHODS", ";", "}", "}", "private", "void", "createFields", "(", "IBinaryField", "[", "]", "iFields", ",", "long", "sourceLevel", ",", "char", "[", "]", "[", "]", "[", "]", "missingTypeNames", ")", "{", "this", ".", "fields", "=", "Binding", ".", "NO_FIELDS", ";", "if", "(", "iFields", "!=", "null", ")", "{", "int", "size", "=", "iFields", ".", "length", ";", "if", "(", "size", ">", "0", ")", "{", "this", ".", "fields", "=", "new", "FieldBinding", "[", "size", "]", ";", "boolean", "use15specifics", "=", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "boolean", "hasRestrictedAccess", "=", "hasRestrictedAccess", "(", ")", ";", "int", "firstAnnotatedFieldIndex", "=", "-", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "++", ")", "{", "IBinaryField", "binaryField", "=", "iFields", "[", "i", "]", ";", "char", "[", "]", "fieldSignature", "=", "use15specifics", "?", "binaryField", ".", "getGenericSignature", "(", ")", ":", "null", ";", "TypeBinding", "type", "=", "fieldSignature", "==", "null", "?", "this", ".", "environment", ".", "getTypeFromSignature", "(", "binaryField", ".", "getTypeName", "(", ")", ",", "0", ",", "-", "1", ",", "false", ",", "this", ",", "missingTypeNames", ")", ":", "this", ".", "environment", ".", "getTypeFromTypeSignature", "(", "new", "SignatureWrapper", "(", "fieldSignature", ")", ",", "Binding", ".", "NO_TYPE_VARIABLES", ",", "this", ",", "missingTypeNames", ")", ";", "FieldBinding", "field", "=", "new", "FieldBinding", "(", "binaryField", ".", "getName", "(", ")", ",", "type", ",", "binaryField", ".", "getModifiers", "(", ")", "|", "ExtraCompilerModifiers", ".", "AccUnresolved", ",", "this", ",", "binaryField", ".", "getConstant", "(", ")", ")", ";", "if", "(", "firstAnnotatedFieldIndex", "<", "0", "&&", "this", ".", "environment", ".", "globalOptions", ".", "storeAnnotations", "&&", "binaryField", ".", "getAnnotations", "(", ")", "!=", "null", ")", "{", "firstAnnotatedFieldIndex", "=", "i", ";", "}", "field", ".", "id", "=", "i", ";", "if", "(", "use15specifics", ")", "field", ".", "tagBits", "|=", "binaryField", ".", "getTagBits", "(", ")", ";", "if", "(", "hasRestrictedAccess", ")", "field", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccRestrictedAccess", ";", "if", "(", "fieldSignature", "!=", "null", ")", "field", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccGenericSignature", ";", "this", ".", "fields", "[", "i", "]", "=", "field", ";", "}", "if", "(", "firstAnnotatedFieldIndex", ">=", "0", ")", "{", "for", "(", "int", "i", "=", "firstAnnotatedFieldIndex", ";", "i", "<", "size", ";", "i", "++", ")", "{", "IBinaryField", "binaryField", "=", "iFields", "[", "i", "]", ";", "this", ".", "fields", "[", "i", "]", ".", "setAnnotations", "(", "createAnnotations", "(", "binaryField", ".", "getAnnotations", "(", ")", ",", "this", ".", "environment", ",", "missingTypeNames", ")", ")", ";", "}", "}", "}", "}", "}", "private", "MethodBinding", "createMethod", "(", "IBinaryMethod", "method", ",", "long", "sourceLevel", ",", "char", "[", "]", "[", "]", "[", "]", "missingTypeNames", ")", "{", "int", "methodModifiers", "=", "method", ".", "getModifiers", "(", ")", "|", "ExtraCompilerModifiers", ".", "AccUnresolved", ";", "if", "(", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "methodModifiers", "&=", "~", "ClassFileConstants", ".", "AccVarargs", ";", "ReferenceBinding", "[", "]", "exceptions", "=", "Binding", ".", "NO_EXCEPTIONS", ";", "TypeBinding", "[", "]", "parameters", "=", "Binding", ".", "NO_PARAMETERS", ";", "TypeVariableBinding", "[", "]", "typeVars", "=", "Binding", ".", "NO_TYPE_VARIABLES", ";", "AnnotationBinding", "[", "]", "[", "]", "paramAnnotations", "=", "null", ";", "TypeBinding", "returnType", "=", "null", ";", "final", "boolean", "use15specifics", "=", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "char", "[", "]", "methodSignature", "=", "use15specifics", "?", "method", ".", "getGenericSignature", "(", ")", ":", "null", ";", "if", "(", "methodSignature", "==", "null", ")", "{", "char", "[", "]", "methodDescriptor", "=", "method", ".", "getMethodDescriptor", "(", ")", ";", "int", "numOfParams", "=", "0", ";", "char", "nextChar", ";", "int", "index", "=", "0", ";", "while", "(", "(", "nextChar", "=", "methodDescriptor", "[", "++", "index", "]", ")", "!=", "')'", ")", "{", "if", "(", "nextChar", "!=", "'['", ")", "{", "numOfParams", "++", ";", "if", "(", "nextChar", "==", "'L'", ")", "while", "(", "(", "nextChar", "=", "methodDescriptor", "[", "++", "index", "]", ")", "!=", "';'", ")", "{", "}", "}", "}", "int", "startIndex", "=", "0", ";", "if", "(", "method", ".", "isConstructor", "(", ")", ")", "{", "if", "(", "isMemberType", "(", ")", "&&", "!", "isStatic", "(", ")", ")", "{", "startIndex", "++", ";", "}", "if", "(", "isEnum", "(", ")", ")", "{", "startIndex", "+=", "2", ";", "}", "}", "int", "size", "=", "numOfParams", "-", "startIndex", ";", "if", "(", "size", ">", "0", ")", "{", "parameters", "=", "new", "TypeBinding", "[", "size", "]", ";", "if", "(", "this", ".", "environment", ".", "globalOptions", ".", "storeAnnotations", ")", "paramAnnotations", "=", "new", "AnnotationBinding", "[", "size", "]", "[", "]", ";", "index", "=", "1", ";", "int", "end", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "numOfParams", ";", "i", "++", ")", "{", "while", "(", "(", "nextChar", "=", "methodDescriptor", "[", "++", "end", "]", ")", "==", "'['", ")", "{", "}", "if", "(", "nextChar", "==", "'L'", ")", "while", "(", "(", "nextChar", "=", "methodDescriptor", "[", "++", "end", "]", ")", "!=", "';'", ")", "{", "}", "if", "(", "i", ">=", "startIndex", ")", "{", "parameters", "[", "i", "-", "startIndex", "]", "=", "this", ".", "environment", ".", "getTypeFromSignature", "(", "methodDescriptor", ",", "index", ",", "end", ",", "false", ",", "this", ",", "missingTypeNames", ")", ";", "if", "(", "paramAnnotations", "!=", "null", ")", "paramAnnotations", "[", "i", "-", "startIndex", "]", "=", "createAnnotations", "(", "method", ".", "getParameterAnnotations", "(", "i", "-", "startIndex", ")", ",", "this", ".", "environment", ",", "missingTypeNames", ")", ";", "}", "index", "=", "end", "+", "1", ";", "}", "}", "char", "[", "]", "[", "]", "exceptionTypes", "=", "method", ".", "getExceptionTypeNames", "(", ")", ";", "if", "(", "exceptionTypes", "!=", "null", ")", "{", "size", "=", "exceptionTypes", ".", "length", ";", "if", "(", "size", ">", "0", ")", "{", "exceptions", "=", "new", "ReferenceBinding", "[", "size", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "++", ")", "exceptions", "[", "i", "]", "=", "this", ".", "environment", ".", "getTypeFromConstantPoolName", "(", "exceptionTypes", "[", "i", "]", ",", "0", ",", "-", "1", ",", "false", ",", "missingTypeNames", ")", ";", "}", "}", "if", "(", "!", "method", ".", "isConstructor", "(", ")", ")", "returnType", "=", "this", ".", "environment", ".", "getTypeFromSignature", "(", "methodDescriptor", ",", "index", "+", "1", ",", "-", "1", ",", "false", ",", "this", ",", "missingTypeNames", ")", ";", "}", "else", "{", "methodModifiers", "|=", "ExtraCompilerModifiers", ".", "AccGenericSignature", ";", "SignatureWrapper", "wrapper", "=", "new", "SignatureWrapper", "(", "methodSignature", ")", ";", "if", "(", "wrapper", ".", "signature", "[", "wrapper", ".", "start", "]", "==", "'<'", ")", "{", "wrapper", ".", "start", "++", ";", "typeVars", "=", "createTypeVariables", "(", "wrapper", ",", "false", ",", "missingTypeNames", ")", ";", "wrapper", ".", "start", "++", ";", "}", "if", "(", "wrapper", ".", "signature", "[", "wrapper", ".", "start", "]", "==", "'('", ")", "{", "wrapper", ".", "start", "++", ";", "if", "(", "wrapper", ".", "signature", "[", "wrapper", ".", "start", "]", "==", "')'", ")", "{", "wrapper", ".", "start", "++", ";", "}", "else", "{", "java", ".", "util", ".", "ArrayList", "types", "=", "new", "java", ".", "util", ".", "ArrayList", "(", "2", ")", ";", "while", "(", "wrapper", ".", "signature", "[", "wrapper", ".", "start", "]", "!=", "')'", ")", "types", ".", "add", "(", "this", ".", "environment", ".", "getTypeFromTypeSignature", "(", "wrapper", ",", "typeVars", ",", "this", ",", "missingTypeNames", ")", ")", ";", "wrapper", ".", "start", "++", ";", "int", "numParam", "=", "types", ".", "size", "(", ")", ";", "parameters", "=", "new", "TypeBinding", "[", "numParam", "]", ";", "types", ".", "toArray", "(", "parameters", ")", ";", "if", "(", "this", ".", "environment", ".", "globalOptions", ".", "storeAnnotations", ")", "{", "paramAnnotations", "=", "new", "AnnotationBinding", "[", "numParam", "]", "[", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "numParam", ";", "i", "++", ")", "paramAnnotations", "[", "i", "]", "=", "createAnnotations", "(", "method", ".", "getParameterAnnotations", "(", "i", ")", ",", "this", ".", "environment", ",", "missingTypeNames", ")", ";", "}", "}", "}", "returnType", "=", "this", ".", "environment", ".", "getTypeFromTypeSignature", "(", "wrapper", ",", "typeVars", ",", "this", ",", "missingTypeNames", ")", ";", "if", "(", "!", "wrapper", ".", "atEnd", "(", ")", "&&", "wrapper", ".", "signature", "[", "wrapper", ".", "start", "]", "==", "'^'", ")", "{", "java", ".", "util", ".", "ArrayList", "types", "=", "new", "java", ".", "util", ".", "ArrayList", "(", "2", ")", ";", "do", "{", "wrapper", ".", "start", "++", ";", "types", ".", "add", "(", "this", ".", "environment", ".", "getTypeFromTypeSignature", "(", "wrapper", ",", "typeVars", ",", "this", ",", "missingTypeNames", ")", ")", ";", "}", "while", "(", "!", "wrapper", ".", "atEnd", "(", ")", "&&", "wrapper", ".", "signature", "[", "wrapper", ".", "start", "]", "==", "'^'", ")", ";", "exceptions", "=", "new", "ReferenceBinding", "[", "types", ".", "size", "(", ")", "]", ";", "types", ".", "toArray", "(", "exceptions", ")", ";", "}", "else", "{", "char", "[", "]", "[", "]", "exceptionTypes", "=", "method", ".", "getExceptionTypeNames", "(", ")", ";", "if", "(", "exceptionTypes", "!=", "null", ")", "{", "int", "size", "=", "exceptionTypes", ".", "length", ";", "if", "(", "size", ">", "0", ")", "{", "exceptions", "=", "new", "ReferenceBinding", "[", "size", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "++", ")", "exceptions", "[", "i", "]", "=", "this", ".", "environment", ".", "getTypeFromConstantPoolName", "(", "exceptionTypes", "[", "i", "]", ",", "0", ",", "-", "1", ",", "false", ",", "missingTypeNames", ")", ";", "}", "}", "}", "}", "MethodBinding", "result", "=", "method", ".", "isConstructor", "(", ")", "?", "new", "MethodBinding", "(", "methodModifiers", ",", "parameters", ",", "exceptions", ",", "this", ")", ":", "new", "MethodBinding", "(", "methodModifiers", ",", "method", ".", "getSelector", "(", ")", ",", "returnType", ",", "parameters", ",", "exceptions", ",", "this", ")", ";", "if", "(", "this", ".", "environment", ".", "globalOptions", ".", "storeAnnotations", ")", "result", ".", "setAnnotations", "(", "createAnnotations", "(", "method", ".", "getAnnotations", "(", ")", ",", "this", ".", "environment", ",", "missingTypeNames", ")", ",", "paramAnnotations", ",", "isAnnotationType", "(", ")", "?", "convertMemberValue", "(", "method", ".", "getDefaultValue", "(", ")", ",", "this", ".", "environment", ",", "missingTypeNames", ")", ":", "null", ",", "this", ".", "environment", ")", ";", "if", "(", "use15specifics", ")", "result", ".", "tagBits", "|=", "method", ".", "getTagBits", "(", ")", ";", "result", ".", "typeVariables", "=", "typeVars", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "typeVars", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "typeVars", "[", "i", "]", ".", "declaringElement", "=", "result", ";", "return", "result", ";", "}", "private", "void", "createMethods", "(", "IBinaryMethod", "[", "]", "iMethods", ",", "long", "sourceLevel", ",", "char", "[", "]", "[", "]", "[", "]", "missingTypeNames", ")", "{", "int", "total", "=", "0", ",", "initialTotal", "=", "0", ",", "iClinit", "=", "-", "1", ";", "int", "[", "]", "toSkip", "=", "null", ";", "if", "(", "iMethods", "!=", "null", ")", "{", "total", "=", "initialTotal", "=", "iMethods", ".", "length", ";", "boolean", "keepBridgeMethods", "=", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", "&&", "this", ".", "environment", ".", "globalOptions", ".", "complianceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "for", "(", "int", "i", "=", "total", ";", "--", "i", ">=", "0", ";", ")", "{", "IBinaryMethod", "method", "=", "iMethods", "[", "i", "]", ";", "if", "(", "(", "method", ".", "getModifiers", "(", ")", "&", "ClassFileConstants", ".", "AccSynthetic", ")", "!=", "0", ")", "{", "if", "(", "keepBridgeMethods", "&&", "(", "method", ".", "getModifiers", "(", ")", "&", "ClassFileConstants", ".", "AccBridge", ")", "!=", "0", ")", "continue", ";", "if", "(", "toSkip", "==", "null", ")", "toSkip", "=", "new", "int", "[", "iMethods", ".", "length", "]", ";", "toSkip", "[", "i", "]", "=", "-", "1", ";", "total", "--", ";", "}", "else", "if", "(", "iClinit", "==", "-", "1", ")", "{", "char", "[", "]", "methodName", "=", "method", ".", "getSelector", "(", ")", ";", "if", "(", "methodName", ".", "length", "==", "8", "&&", "methodName", "[", "0", "]", "==", "'<'", ")", "{", "iClinit", "=", "i", ";", "total", "--", ";", "}", "}", "}", "}", "if", "(", "total", "==", "0", ")", "{", "this", ".", "methods", "=", "Binding", ".", "NO_METHODS", ";", "return", ";", "}", "boolean", "hasRestrictedAccess", "=", "hasRestrictedAccess", "(", ")", ";", "this", ".", "methods", "=", "new", "MethodBinding", "[", "total", "]", ";", "if", "(", "total", "==", "initialTotal", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "initialTotal", ";", "i", "++", ")", "{", "MethodBinding", "method", "=", "createMethod", "(", "iMethods", "[", "i", "]", ",", "sourceLevel", ",", "missingTypeNames", ")", ";", "if", "(", "hasRestrictedAccess", ")", "method", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccRestrictedAccess", ";", "this", ".", "methods", "[", "i", "]", "=", "method", ";", "}", "}", "else", "{", "for", "(", "int", "i", "=", "0", ",", "index", "=", "0", ";", "i", "<", "initialTotal", ";", "i", "++", ")", "{", "if", "(", "iClinit", "!=", "i", "&&", "(", "toSkip", "==", "null", "||", "toSkip", "[", "i", "]", "!=", "-", "1", ")", ")", "{", "MethodBinding", "method", "=", "createMethod", "(", "iMethods", "[", "i", "]", ",", "sourceLevel", ",", "missingTypeNames", ")", ";", "if", "(", "hasRestrictedAccess", ")", "method", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccRestrictedAccess", ";", "this", ".", "methods", "[", "index", "++", "]", "=", "method", ";", "}", "}", "if", "(", "this", ".", "environment", ".", "globalOptions", ".", "buildGroovyFiles", "==", "2", ")", "{", "int", "skipped", "=", "initialTotal", "-", "this", ".", "methods", ".", "length", "-", "(", "iClinit", "==", "-", "1", "?", "0", ":", "1", ")", ";", "if", "(", "skipped", "==", "0", ")", "{", "this", ".", "infraMethods", "=", "Binding", ".", "NO_METHODS", ";", "}", "else", "{", "this", ".", "infraMethods", "=", "new", "MethodBinding", "[", "skipped", "]", ";", "for", "(", "int", "i", "=", "0", ",", "index", "=", "0", ";", "i", "<", "initialTotal", ";", "i", "++", ")", "{", "if", "(", "iClinit", "!=", "i", "&&", "(", "toSkip", "!=", "null", "&&", "toSkip", "[", "i", "]", "==", "-", "1", ")", ")", "{", "MethodBinding", "method", "=", "createMethod", "(", "iMethods", "[", "i", "]", ",", "sourceLevel", ",", "missingTypeNames", ")", ";", "this", ".", "infraMethods", "[", "index", "++", "]", "=", "method", ";", "}", "}", "}", "}", "}", "}", "private", "TypeVariableBinding", "[", "]", "createTypeVariables", "(", "SignatureWrapper", "wrapper", ",", "boolean", "assignVariables", ",", "char", "[", "]", "[", "]", "[", "]", "missingTypeNames", ")", "{", "char", "[", "]", "typeSignature", "=", "wrapper", ".", "signature", ";", "int", "depth", "=", "0", ",", "length", "=", "typeSignature", ".", "length", ";", "int", "rank", "=", "0", ";", "ArrayList", "variables", "=", "new", "ArrayList", "(", "1", ")", ";", "depth", "=", "0", ";", "boolean", "pendingVariable", "=", "true", ";", "createVariables", ":", "{", "for", "(", "int", "i", "=", "1", ";", "i", "<", "length", ";", "i", "++", ")", "{", "switch", "(", "typeSignature", "[", "i", "]", ")", "{", "case", "'<'", ":", "depth", "++", ";", "break", ";", "case", "'>'", ":", "if", "(", "--", "depth", "<", "0", ")", "break", "createVariables", ";", "break", ";", "case", "';'", ":", "if", "(", "(", "depth", "==", "0", ")", "&&", "(", "i", "+", "1", "<", "length", ")", "&&", "(", "typeSignature", "[", "i", "+", "1", "]", "!=", "':'", ")", ")", "pendingVariable", "=", "true", ";", "break", ";", "default", ":", "if", "(", "pendingVariable", ")", "{", "pendingVariable", "=", "false", ";", "int", "colon", "=", "CharOperation", ".", "indexOf", "(", "':'", ",", "typeSignature", ",", "i", ")", ";", "char", "[", "]", "variableName", "=", "CharOperation", ".", "subarray", "(", "typeSignature", ",", "i", ",", "colon", ")", ";", "variables", ".", "add", "(", "new", "TypeVariableBinding", "(", "variableName", ",", "this", ",", "rank", "++", ",", "this", ".", "environment", ")", ")", ";", "}", "}", "}", "}", "TypeVariableBinding", "[", "]", "result", ";", "variables", ".", "toArray", "(", "result", "=", "new", "TypeVariableBinding", "[", "rank", "]", ")", ";", "if", "(", "assignVariables", ")", "this", ".", "typeVariables", "=", "result", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "rank", ";", "i", "++", ")", "{", "initializeTypeVariable", "(", "result", "[", "i", "]", ",", "result", ",", "wrapper", ",", "missingTypeNames", ")", ";", "}", "return", "result", ";", "}", "public", "ReferenceBinding", "enclosingType", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "HasUnresolvedEnclosingType", ")", "==", "0", ")", "return", "this", ".", "enclosingType", ";", "this", ".", "enclosingType", "=", "(", "ReferenceBinding", ")", "resolveType", "(", "this", ".", "enclosingType", ",", "this", ".", "environment", ",", "false", ")", ";", "this", ".", "tagBits", "&=", "~", "TagBits", ".", "HasUnresolvedEnclosingType", ";", "return", "this", ".", "enclosingType", ";", "}", "public", "FieldBinding", "[", "]", "fields", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreFieldsComplete", ")", "!=", "0", ")", "return", "this", ".", "fields", ";", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreFieldsSorted", ")", "==", "0", ")", "{", "int", "length", "=", "this", ".", "fields", ".", "length", ";", "if", "(", "length", ">", "1", ")", "ReferenceBinding", ".", "sortFields", "(", "this", ".", "fields", ",", "0", ",", "length", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "AreFieldsSorted", ";", "}", "for", "(", "int", "i", "=", "this", ".", "fields", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "resolveTypeFor", "(", "this", ".", "fields", "[", "i", "]", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "AreFieldsComplete", ";", "return", "this", ".", "fields", ";", "}", "private", "MethodBinding", "findMethod", "(", "char", "[", "]", "methodDescriptor", ",", "char", "[", "]", "[", "]", "[", "]", "missingTypeNames", ")", "{", "int", "index", "=", "-", "1", ";", "while", "(", "methodDescriptor", "[", "++", "index", "]", "!=", "'('", ")", "{", "}", "char", "[", "]", "selector", "=", "new", "char", "[", "index", "]", ";", "System", ".", "arraycopy", "(", "methodDescriptor", ",", "0", ",", "selector", ",", "0", ",", "index", ")", ";", "TypeBinding", "[", "]", "parameters", "=", "Binding", ".", "NO_PARAMETERS", ";", "int", "numOfParams", "=", "0", ";", "char", "nextChar", ";", "int", "paramStart", "=", "index", ";", "while", "(", "(", "nextChar", "=", "methodDescriptor", "[", "++", "index", "]", ")", "!=", "')'", ")", "{", "if", "(", "nextChar", "!=", "'['", ")", "{", "numOfParams", "++", ";", "if", "(", "nextChar", "==", "'L'", ")", "while", "(", "(", "nextChar", "=", "methodDescriptor", "[", "++", "index", "]", ")", "!=", "';'", ")", "{", "}", "}", "}", "if", "(", "numOfParams", ">", "0", ")", "{", "parameters", "=", "new", "TypeBinding", "[", "numOfParams", "]", ";", "index", "=", "paramStart", "+", "1", ";", "int", "end", "=", "paramStart", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "numOfParams", ";", "i", "++", ")", "{", "while", "(", "(", "nextChar", "=", "methodDescriptor", "[", "++", "end", "]", ")", "==", "'['", ")", "{", "}", "if", "(", "nextChar", "==", "'L'", ")", "while", "(", "(", "nextChar", "=", "methodDescriptor", "[", "++", "end", "]", ")", "!=", "';'", ")", "{", "}", "TypeBinding", "param", "=", "this", ".", "environment", ".", "getTypeFromSignature", "(", "methodDescriptor", ",", "index", ",", "end", ",", "false", ",", "this", ",", "missingTypeNames", ")", ";", "if", "(", "param", "instanceof", "UnresolvedReferenceBinding", ")", "{", "param", "=", "resolveType", "(", "param", ",", "this", ".", "environment", ",", "true", ")", ";", "}", "parameters", "[", "i", "]", "=", "param", ";", "index", "=", "end", "+", "1", ";", "}", "}", "int", "parameterLength", "=", "parameters", ".", "length", ";", "MethodBinding", "[", "]", "methods2", "=", "this", ".", "enclosingType", ".", "getMethods", "(", "selector", ",", "parameterLength", ")", ";", "loop", ":", "for", "(", "int", "i", "=", "0", ",", "max", "=", "methods2", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "MethodBinding", "currentMethod", "=", "methods2", "[", "i", "]", ";", "TypeBinding", "[", "]", "parameters2", "=", "currentMethod", ".", "parameters", ";", "int", "currentMethodParameterLength", "=", "parameters2", ".", "length", ";", "if", "(", "parameterLength", "==", "currentMethodParameterLength", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "currentMethodParameterLength", ";", "j", "++", ")", "{", "if", "(", "parameters", "[", "j", "]", "!=", "parameters2", "[", "j", "]", "&&", "parameters", "[", "j", "]", ".", "erasure", "(", ")", "!=", "parameters2", "[", "j", "]", ".", "erasure", "(", ")", ")", "{", "continue", "loop", ";", "}", "}", "return", "currentMethod", ";", "}", "}", "return", "null", ";", "}", "public", "char", "[", "]", "genericTypeSignature", "(", ")", "{", "return", "computeGenericTypeSignature", "(", "this", ".", "typeVariables", ")", ";", "}", "public", "MethodBinding", "getExactConstructor", "(", "TypeBinding", "[", "]", "argumentTypes", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsSorted", ")", "==", "0", ")", "{", "int", "length", "=", "this", ".", "methods", ".", "length", ";", "if", "(", "length", ">", "1", ")", "ReferenceBinding", ".", "sortMethods", "(", "this", ".", "methods", ",", "0", ",", "length", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "AreMethodsSorted", ";", "}", "int", "argCount", "=", "argumentTypes", ".", "length", ";", "long", "range", ";", "if", "(", "(", "range", "=", "ReferenceBinding", ".", "binarySearch", "(", "TypeConstants", ".", "INIT", ",", "this", ".", "methods", ")", ")", ">=", "0", ")", "{", "nextMethod", ":", "for", "(", "int", "imethod", "=", "(", "int", ")", "range", ",", "end", "=", "(", "int", ")", "(", "range", ">>", "32", ")", ";", "imethod", "<=", "end", ";", "imethod", "++", ")", "{", "MethodBinding", "method", "=", "this", ".", "methods", "[", "imethod", "]", ";", "if", "(", "method", ".", "parameters", ".", "length", "==", "argCount", ")", "{", "resolveTypesFor", "(", "method", ")", ";", "TypeBinding", "[", "]", "toMatch", "=", "method", ".", "parameters", ";", "for", "(", "int", "iarg", "=", "0", ";", "iarg", "<", "argCount", ";", "iarg", "++", ")", "if", "(", "toMatch", "[", "iarg", "]", "!=", "argumentTypes", "[", "iarg", "]", ")", "continue", "nextMethod", ";", "return", "method", ";", "}", "}", "}", "return", "null", ";", "}", "public", "MethodBinding", "getExactMethod", "(", "char", "[", "]", "selector", ",", "TypeBinding", "[", "]", "argumentTypes", ",", "CompilationUnitScope", "refScope", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsSorted", ")", "==", "0", ")", "{", "int", "length", "=", "this", ".", "methods", ".", "length", ";", "if", "(", "length", ">", "1", ")", "ReferenceBinding", ".", "sortMethods", "(", "this", ".", "methods", ",", "0", ",", "length", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "AreMethodsSorted", ";", "}", "int", "argCount", "=", "argumentTypes", ".", "length", ";", "boolean", "foundNothing", "=", "true", ";", "long", "range", ";", "if", "(", "(", "range", "=", "ReferenceBinding", ".", "binarySearch", "(", "selector", ",", "this", ".", "methods", ")", ")", ">=", "0", ")", "{", "nextMethod", ":", "for", "(", "int", "imethod", "=", "(", "int", ")", "range", ",", "end", "=", "(", "int", ")", "(", "range", ">>", "32", ")", ";", "imethod", "<=", "end", ";", "imethod", "++", ")", "{", "MethodBinding", "method", "=", "this", ".", "methods", "[", "imethod", "]", ";", "foundNothing", "=", "false", ";", "if", "(", "method", ".", "parameters", ".", "length", "==", "argCount", ")", "{", "resolveTypesFor", "(", "method", ")", ";", "TypeBinding", "[", "]", "toMatch", "=", "method", ".", "parameters", ";", "for", "(", "int", "iarg", "=", "0", ";", "iarg", "<", "argCount", ";", "iarg", "++", ")", "if", "(", "toMatch", "[", "iarg", "]", "!=", "argumentTypes", "[", "iarg", "]", ")", "continue", "nextMethod", ";", "return", "method", ";", "}", "}", "}", "if", "(", "foundNothing", ")", "{", "if", "(", "isInterface", "(", ")", ")", "{", "if", "(", "superInterfaces", "(", ")", ".", "length", "==", "1", ")", "{", "if", "(", "refScope", "!=", "null", ")", "refScope", ".", "recordTypeReference", "(", "this", ".", "superInterfaces", "[", "0", "]", ")", ";", "return", "this", ".", "superInterfaces", "[", "0", "]", ".", "getExactMethod", "(", "selector", ",", "argumentTypes", ",", "refScope", ")", ";", "}", "}", "else", "if", "(", "superclass", "(", ")", "!=", "null", ")", "{", "if", "(", "refScope", "!=", "null", ")", "refScope", ".", "recordTypeReference", "(", "this", ".", "superclass", ")", ";", "return", "this", ".", "superclass", ".", "getExactMethod", "(", "selector", ",", "argumentTypes", ",", "refScope", ")", ";", "}", "}", "return", "null", ";", "}", "public", "FieldBinding", "getField", "(", "char", "[", "]", "fieldName", ",", "boolean", "needResolve", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreFieldsSorted", ")", "==", "0", ")", "{", "int", "length", "=", "this", ".", "fields", ".", "length", ";", "if", "(", "length", ">", "1", ")", "ReferenceBinding", ".", "sortFields", "(", "this", ".", "fields", ",", "0", ",", "length", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "AreFieldsSorted", ";", "}", "FieldBinding", "field", "=", "ReferenceBinding", ".", "binarySearch", "(", "fieldName", ",", "this", ".", "fields", ")", ";", "return", "needResolve", "&&", "field", "!=", "null", "?", "resolveTypeFor", "(", "field", ")", ":", "field", ";", "}", "public", "ReferenceBinding", "getMemberType", "(", "char", "[", "]", "typeName", ")", "{", "for", "(", "int", "i", "=", "this", ".", "memberTypes", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "{", "ReferenceBinding", "memberType", "=", "this", ".", "memberTypes", "[", "i", "]", ";", "if", "(", "memberType", "instanceof", "UnresolvedReferenceBinding", ")", "{", "char", "[", "]", "name", "=", "memberType", ".", "sourceName", ";", "int", "prefixLength", "=", "this", ".", "compoundName", "[", "this", ".", "compoundName", ".", "length", "-", "1", "]", ".", "length", "+", "1", ";", "if", "(", "name", ".", "length", "==", "(", "prefixLength", "+", "typeName", ".", "length", ")", ")", "if", "(", "CharOperation", ".", "fragmentEquals", "(", "typeName", ",", "name", ",", "prefixLength", ",", "true", ")", ")", "return", "this", ".", "memberTypes", "[", "i", "]", "=", "(", "ReferenceBinding", ")", "resolveType", "(", "memberType", ",", "this", ".", "environment", ",", "false", ")", ";", "}", "else", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "memberType", ".", "sourceName", ")", ")", "{", "return", "memberType", ";", "}", "}", "return", "null", ";", "}", "public", "MethodBinding", "[", "]", "getMethods", "(", "char", "[", "]", "selector", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsComplete", ")", "!=", "0", ")", "{", "long", "range", ";", "if", "(", "(", "range", "=", "ReferenceBinding", ".", "binarySearch", "(", "selector", ",", "this", ".", "methods", ")", ")", ">=", "0", ")", "{", "int", "start", "=", "(", "int", ")", "range", ",", "end", "=", "(", "int", ")", "(", "range", ">>", "32", ")", ";", "int", "length", "=", "end", "-", "start", "+", "1", ";", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsComplete", ")", "!=", "0", ")", "{", "MethodBinding", "[", "]", "result", ";", "System", ".", "arraycopy", "(", "this", ".", "methods", ",", "start", ",", "result", "=", "new", "MethodBinding", "[", "length", "]", ",", "0", ",", "length", ")", ";", "return", "result", ";", "}", "}", "return", "Binding", ".", "NO_METHODS", ";", "}", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsSorted", ")", "==", "0", ")", "{", "int", "length", "=", "this", ".", "methods", ".", "length", ";", "if", "(", "length", ">", "1", ")", "ReferenceBinding", ".", "sortMethods", "(", "this", ".", "methods", ",", "0", ",", "length", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "AreMethodsSorted", ";", "}", "long", "range", ";", "if", "(", "(", "range", "=", "ReferenceBinding", ".", "binarySearch", "(", "selector", ",", "this", ".", "methods", ")", ")", ">=", "0", ")", "{", "int", "start", "=", "(", "int", ")", "range", ",", "end", "=", "(", "int", ")", "(", "range", ">>", "32", ")", ";", "int", "length", "=", "end", "-", "start", "+", "1", ";", "MethodBinding", "[", "]", "result", "=", "new", "MethodBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "start", ",", "index", "=", "0", ";", "i", "<=", "end", ";", "i", "++", ",", "index", "++", ")", "result", "[", "index", "]", "=", "resolveTypesFor", "(", "this", ".", "methods", "[", "i", "]", ")", ";", "return", "result", ";", "}", "return", "Binding", ".", "NO_METHODS", ";", "}", "public", "MethodBinding", "[", "]", "getMethods", "(", "char", "[", "]", "selector", ",", "int", "suggestedParameterLength", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsComplete", ")", "!=", "0", ")", "return", "getMethods", "(", "selector", ")", ";", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsSorted", ")", "==", "0", ")", "{", "int", "length", "=", "this", ".", "methods", ".", "length", ";", "if", "(", "length", ">", "1", ")", "ReferenceBinding", ".", "sortMethods", "(", "this", ".", "methods", ",", "0", ",", "length", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "AreMethodsSorted", ";", "}", "long", "range", ";", "if", "(", "(", "range", "=", "ReferenceBinding", ".", "binarySearch", "(", "selector", ",", "this", ".", "methods", ")", ")", ">=", "0", ")", "{", "int", "start", "=", "(", "int", ")", "range", ",", "end", "=", "(", "int", ")", "(", "range", ">>", "32", ")", ";", "int", "length", "=", "end", "-", "start", "+", "1", ";", "int", "count", "=", "0", ";", "for", "(", "int", "i", "=", "start", ";", "i", "<=", "end", ";", "i", "++", ")", "{", "int", "len", "=", "this", ".", "methods", "[", "i", "]", ".", "parameters", ".", "length", ";", "if", "(", "len", "<=", "suggestedParameterLength", "||", "(", "this", ".", "methods", "[", "i", "]", ".", "isVarargs", "(", ")", "&&", "len", "==", "suggestedParameterLength", "+", "1", ")", ")", "count", "++", ";", "}", "if", "(", "count", "==", "0", ")", "{", "MethodBinding", "[", "]", "result", "=", "new", "MethodBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "start", ",", "index", "=", "0", ";", "i", "<=", "end", ";", "i", "++", ")", "result", "[", "index", "++", "]", "=", "resolveTypesFor", "(", "this", ".", "methods", "[", "i", "]", ")", ";", "return", "result", ";", "}", "else", "{", "MethodBinding", "[", "]", "result", "=", "new", "MethodBinding", "[", "count", "]", ";", "for", "(", "int", "i", "=", "start", ",", "index", "=", "0", ";", "i", "<=", "end", ";", "i", "++", ")", "{", "int", "len", "=", "this", ".", "methods", "[", "i", "]", ".", "parameters", ".", "length", ";", "if", "(", "len", "<=", "suggestedParameterLength", "||", "(", "this", ".", "methods", "[", "i", "]", ".", "isVarargs", "(", ")", "&&", "len", "==", "suggestedParameterLength", "+", "1", ")", ")", "result", "[", "index", "++", "]", "=", "resolveTypesFor", "(", "this", ".", "methods", "[", "i", "]", ")", ";", "}", "return", "result", ";", "}", "}", "return", "Binding", ".", "NO_METHODS", ";", "}", "public", "boolean", "hasMemberTypes", "(", ")", "{", "return", "this", ".", "memberTypes", ".", "length", ">", "0", ";", "}", "public", "TypeVariableBinding", "getTypeVariable", "(", "char", "[", "]", "variableName", ")", "{", "TypeVariableBinding", "variable", "=", "super", ".", "getTypeVariable", "(", "variableName", ")", ";", "variable", ".", "resolve", "(", ")", ";", "return", "variable", ";", "}", "private", "void", "initializeTypeVariable", "(", "TypeVariableBinding", "variable", ",", "TypeVariableBinding", "[", "]", "existingVariables", ",", "SignatureWrapper", "wrapper", ",", "char", "[", "]", "[", "]", "[", "]", "missingTypeNames", ")", "{", "int", "colon", "=", "CharOperation", ".", "indexOf", "(", "':'", ",", "wrapper", ".", "signature", ",", "wrapper", ".", "start", ")", ";", "wrapper", ".", "start", "=", "colon", "+", "1", ";", "ReferenceBinding", "type", ",", "firstBound", "=", "null", ";", "if", "(", "wrapper", ".", "signature", "[", "wrapper", ".", "start", "]", "==", "':'", ")", "{", "type", "=", "this", ".", "environment", ".", "getResolvedType", "(", "TypeConstants", ".", "JAVA_LANG_OBJECT", ",", "null", ")", ";", "}", "else", "{", "type", "=", "(", "ReferenceBinding", ")", "this", ".", "environment", ".", "getTypeFromTypeSignature", "(", "wrapper", ",", "existingVariables", ",", "this", ",", "missingTypeNames", ")", ";", "firstBound", "=", "type", ";", "}", "variable", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccUnresolved", ";", "variable", ".", "superclass", "=", "type", ";", "ReferenceBinding", "[", "]", "bounds", "=", "null", ";", "if", "(", "wrapper", ".", "signature", "[", "wrapper", ".", "start", "]", "==", "':'", ")", "{", "java", ".", "util", ".", "ArrayList", "types", "=", "new", "java", ".", "util", ".", "ArrayList", "(", "2", ")", ";", "do", "{", "wrapper", ".", "start", "++", ";", "types", ".", "add", "(", "this", ".", "environment", ".", "getTypeFromTypeSignature", "(", "wrapper", ",", "existingVariables", ",", "this", ",", "missingTypeNames", ")", ")", ";", "}", "while", "(", "wrapper", ".", "signature", "[", "wrapper", ".", "start", "]", "==", "':'", ")", ";", "bounds", "=", "new", "ReferenceBinding", "[", "types", ".", "size", "(", ")", "]", ";", "types", ".", "toArray", "(", "bounds", ")", ";", "}", "variable", ".", "superInterfaces", "=", "bounds", "==", "null", "?", "Binding", ".", "NO_SUPERINTERFACES", ":", "bounds", ";", "if", "(", "firstBound", "==", "null", ")", "{", "firstBound", "=", "variable", ".", "superInterfaces", ".", "length", "==", "0", "?", "null", ":", "variable", ".", "superInterfaces", "[", "0", "]", ";", "}", "variable", ".", "firstBound", "=", "firstBound", ";", "}", "public", "boolean", "isEquivalentTo", "(", "TypeBinding", "otherType", ")", "{", "if", "(", "this", "==", "otherType", ")", "return", "true", ";", "if", "(", "otherType", "==", "null", ")", "return", "false", ";", "switch", "(", "otherType", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "WILDCARD_TYPE", ":", "case", "Binding", ".", "INTERSECTION_TYPE", ":", "return", "(", "(", "WildcardBinding", ")", "otherType", ")", ".", "boundCheck", "(", "this", ")", ";", "case", "Binding", ".", "RAW_TYPE", ":", "return", "otherType", ".", "erasure", "(", ")", "==", "this", ";", "}", "return", "false", ";", "}", "public", "boolean", "isGenericType", "(", ")", "{", "return", "this", ".", "typeVariables", "!=", "Binding", ".", "NO_TYPE_VARIABLES", ";", "}", "public", "boolean", "isHierarchyConnected", "(", ")", "{", "return", "(", "this", ".", "tagBits", "&", "(", "TagBits", ".", "HasUnresolvedSuperclass", "|", "TagBits", ".", "HasUnresolvedSuperinterfaces", ")", ")", "==", "0", ";", "}", "public", "int", "kind", "(", ")", "{", "if", "(", "this", ".", "typeVariables", "!=", "Binding", ".", "NO_TYPE_VARIABLES", ")", "return", "Binding", ".", "GENERIC_TYPE", ";", "return", "Binding", ".", "TYPE", ";", "}", "public", "ReferenceBinding", "[", "]", "memberTypes", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "HasUnresolvedMemberTypes", ")", "==", "0", ")", "return", "this", ".", "memberTypes", ";", "for", "(", "int", "i", "=", "this", ".", "memberTypes", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "this", ".", "memberTypes", "[", "i", "]", "=", "(", "ReferenceBinding", ")", "resolveType", "(", "this", ".", "memberTypes", "[", "i", "]", ",", "this", ".", "environment", ",", "false", ")", ";", "this", ".", "tagBits", "&=", "~", "TagBits", ".", "HasUnresolvedMemberTypes", ";", "return", "this", ".", "memberTypes", ";", "}", "public", "MethodBinding", "[", "]", "infraMethods", "(", ")", "{", "if", "(", "!", "infraMethodsComplete", ")", "{", "for", "(", "int", "i", "=", "this", ".", "infraMethods", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "{", "resolveTypesFor", "(", "this", ".", "infraMethods", "[", "i", "]", ")", ";", "}", "infraMethodsComplete", "=", "true", ";", "}", "return", "infraMethods", ";", "}", "public", "MethodBinding", "[", "]", "methods", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsComplete", ")", "!=", "0", ")", "return", "this", ".", "methods", ";", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AreMethodsSorted", ")", "==", "0", ")", "{", "int", "length", "=", "this", ".", "methods", ".", "length", ";", "if", "(", "length", ">", "1", ")", "ReferenceBinding", ".", "sortMethods", "(", "this", ".", "methods", ",", "0", ",", "length", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "AreMethodsSorted", ";", "}", "for", "(", "int", "i", "=", "this", ".", "methods", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "resolveTypesFor", "(", "this", ".", "methods", "[", "i", "]", ")", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "AreMethodsComplete", ";", "return", "this", ".", "methods", ";", "}", "private", "FieldBinding", "resolveTypeFor", "(", "FieldBinding", "field", ")", "{", "if", "(", "(", "field", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccUnresolved", ")", "==", "0", ")", "return", "field", ";", "TypeBinding", "resolvedType", "=", "resolveType", "(", "field", ".", "type", ",", "this", ".", "environment", ",", "true", ")", ";", "field", ".", "type", "=", "resolvedType", ";", "if", "(", "(", "resolvedType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "field", ".", "tagBits", "|=", "TagBits", ".", "HasMissingType", ";", "}", "field", ".", "modifiers", "&=", "~", "ExtraCompilerModifiers", ".", "AccUnresolved", ";", "return", "field", ";", "}", "MethodBinding", "resolveTypesFor", "(", "MethodBinding", "method", ")", "{", "if", "(", "(", "method", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccUnresolved", ")", "==", "0", ")", "return", "method", ";", "if", "(", "!", "method", ".", "isConstructor", "(", ")", ")", "{", "TypeBinding", "resolvedType", "=", "resolveType", "(", "method", ".", "returnType", ",", "this", ".", "environment", ",", "true", ")", ";", "method", ".", "returnType", "=", "resolvedType", ";", "if", "(", "(", "resolvedType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "method", ".", "tagBits", "|=", "TagBits", ".", "HasMissingType", ";", "}", "}", "for", "(", "int", "i", "=", "method", ".", "parameters", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "{", "TypeBinding", "resolvedType", "=", "resolveType", "(", "method", ".", "parameters", "[", "i", "]", ",", "this", ".", "environment", ",", "true", ")", ";", "method", ".", "parameters", "[", "i", "]", "=", "resolvedType", ";", "if", "(", "(", "resolvedType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "method", ".", "tagBits", "|=", "TagBits", ".", "HasMissingType", ";", "}", "}", "for", "(", "int", "i", "=", "method", ".", "thrownExceptions", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "{", "ReferenceBinding", "resolvedType", "=", "(", "ReferenceBinding", ")", "resolveType", "(", "method", ".", "thrownExceptions", "[", "i", "]", ",", "this", ".", "environment", ",", "true", ")", ";", "method", ".", "thrownExceptions", "[", "i", "]", "=", "resolvedType", ";", "if", "(", "(", "resolvedType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "method", ".", "tagBits", "|=", "TagBits", ".", "HasMissingType", ";", "}", "}", "for", "(", "int", "i", "=", "method", ".", "typeVariables", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "{", "method", ".", "typeVariables", "[", "i", "]", ".", "resolve", "(", ")", ";", "}", "method", ".", "modifiers", "&=", "~", "ExtraCompilerModifiers", ".", "AccUnresolved", ";", "return", "method", ";", "}", "AnnotationBinding", "[", "]", "retrieveAnnotations", "(", "Binding", "binding", ")", "{", "return", "AnnotationBinding", ".", "addStandardAnnotations", "(", "super", ".", "retrieveAnnotations", "(", "binding", ")", ",", "binding", ".", "getAnnotationTagBits", "(", ")", ",", "this", ".", "environment", ")", ";", "}", "SimpleLookupTable", "storedAnnotations", "(", "boolean", "forceInitialize", ")", "{", "if", "(", "forceInitialize", "&&", "this", ".", "storedAnnotations", "==", "null", ")", "{", "if", "(", "!", "this", ".", "environment", ".", "globalOptions", ".", "storeAnnotations", ")", "return", "null", ";", "this", ".", "storedAnnotations", "=", "new", "SimpleLookupTable", "(", "3", ")", ";", "}", "return", "this", ".", "storedAnnotations", ";", "}", "public", "ReferenceBinding", "superclass", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "HasUnresolvedSuperclass", ")", "==", "0", ")", "return", "this", ".", "superclass", ";", "this", ".", "superclass", "=", "(", "ReferenceBinding", ")", "resolveType", "(", "this", ".", "superclass", ",", "this", ".", "environment", ",", "true", ")", ";", "this", ".", "tagBits", "&=", "~", "TagBits", ".", "HasUnresolvedSuperclass", ";", "if", "(", "this", ".", "superclass", ".", "problemId", "(", ")", "==", "ProblemReasons", ".", "NotFound", ")", "this", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "return", "this", ".", "superclass", ";", "}", "public", "ReferenceBinding", "[", "]", "superInterfaces", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "HasUnresolvedSuperinterfaces", ")", "==", "0", ")", "return", "this", ".", "superInterfaces", ";", "for", "(", "int", "i", "=", "this", ".", "superInterfaces", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "{", "this", ".", "superInterfaces", "[", "i", "]", "=", "(", "ReferenceBinding", ")", "resolveType", "(", "this", ".", "superInterfaces", "[", "i", "]", ",", "this", ".", "environment", ",", "true", ")", ";", "if", "(", "this", ".", "superInterfaces", "[", "i", "]", ".", "problemId", "(", ")", "==", "ProblemReasons", ".", "NotFound", ")", "this", ".", "tagBits", "|=", "TagBits", ".", "HierarchyHasProblems", ";", "}", "this", ".", "tagBits", "&=", "~", "TagBits", ".", "HasUnresolvedSuperinterfaces", ";", "return", "this", ".", "superInterfaces", ";", "}", "public", "TypeVariableBinding", "[", "]", "typeVariables", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "HasUnresolvedTypeVariables", ")", "==", "0", ")", "return", "this", ".", "typeVariables", ";", "for", "(", "int", "i", "=", "this", ".", "typeVariables", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "this", ".", "typeVariables", "[", "i", "]", ".", "resolve", "(", ")", ";", "this", ".", "tagBits", "&=", "~", "TagBits", ".", "HasUnresolvedTypeVariables", ";", "return", "this", ".", "typeVariables", ";", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "if", "(", "isDeprecated", "(", ")", ")", "buffer", ".", "append", "(", "\"deprecated", "\"", ")", ";", "if", "(", "isPublic", "(", ")", ")", "buffer", ".", "append", "(", "\"public", "\"", ")", ";", "if", "(", "isProtected", "(", ")", ")", "buffer", ".", "append", "(", "\"protected", "\"", ")", ";", "if", "(", "isPrivate", "(", ")", ")", "buffer", ".", "append", "(", "\"private", "\"", ")", ";", "if", "(", "isAbstract", "(", ")", "&&", "isClass", "(", ")", ")", "buffer", ".", "append", "(", "\"abstract", "\"", ")", ";", "if", "(", "isStatic", "(", ")", "&&", "isNestedType", "(", ")", ")", "buffer", ".", "append", "(", "\"static", "\"", ")", ";", "if", "(", "isFinal", "(", ")", ")", "buffer", ".", "append", "(", "\"final", "\"", ")", ";", "if", "(", "isEnum", "(", ")", ")", "buffer", ".", "append", "(", "\"enum", "\"", ")", ";", "else", "if", "(", "isAnnotationType", "(", ")", ")", "buffer", ".", "append", "(", "\"@interface", "\"", ")", ";", "else", "if", "(", "isClass", "(", ")", ")", "buffer", ".", "append", "(", "\"class", "\"", ")", ";", "else", "buffer", ".", "append", "(", "\"interface", "\"", ")", ";", "buffer", ".", "append", "(", "(", "this", ".", "compoundName", "!=", "null", ")", "?", "CharOperation", ".", "toString", "(", "this", ".", "compoundName", ")", ":", "\"UNNAMED", "TYPE\"", ")", ";", "if", "(", "this", ".", "typeVariables", "==", "null", ")", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "}", "else", "if", "(", "this", ".", "typeVariables", "!=", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "buffer", ".", "append", "(", "\"<\"", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "typeVariables", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "buffer", ".", "append", "(", "\",", "\"", ")", ";", "if", "(", "this", ".", "typeVariables", "[", "i", "]", "==", "null", ")", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "continue", ";", "}", "char", "[", "]", "varChars", "=", "this", ".", "typeVariables", "[", "i", "]", ".", "toString", "(", ")", ".", "toCharArray", "(", ")", ";", "buffer", ".", "append", "(", "varChars", ",", "1", ",", "varChars", ".", "length", "-", "2", ")", ";", "}", "buffer", ".", "append", "(", "\">\"", ")", ";", "}", "buffer", ".", "append", "(", "\"ntextends", "\"", ")", ";", "buffer", ".", "append", "(", "(", "this", ".", "superclass", "!=", "null", ")", "?", "this", ".", "superclass", ".", "debugName", "(", ")", ":", "\"NULL", "TYPE\"", ")", ";", "if", "(", "this", ".", "superInterfaces", "!=", "null", ")", "{", "if", "(", "this", ".", "superInterfaces", "!=", "Binding", ".", "NO_SUPERINTERFACES", ")", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "superInterfaces", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "buffer", ".", "append", "(", "\",", "\"", ")", ";", "buffer", ".", "append", "(", "(", "this", ".", "superInterfaces", "[", "i", "]", "!=", "null", ")", "?", "this", ".", "superInterfaces", "[", "i", "]", ".", "debugName", "(", ")", ":", "\"NULL", "TYPE\"", ")", ";", "}", "}", "}", "else", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "}", "if", "(", "this", ".", "enclosingType", "!=", "null", ")", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "buffer", ".", "append", "(", "this", ".", "enclosingType", ".", "debugName", "(", ")", ")", ";", "}", "if", "(", "this", ".", "fields", "!=", "null", ")", "{", "if", "(", "this", ".", "fields", "!=", "Binding", ".", "NO_FIELDS", ")", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "fields", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "buffer", ".", "append", "(", "(", "this", ".", "fields", "[", "i", "]", "!=", "null", ")", "?", "\"n\"", "+", "this", ".", "fields", "[", "i", "]", ".", "toString", "(", ")", ":", "\"nNULL", "FIELD\"", ")", ";", "}", "}", "else", "{", "buffer", ".", "append", "(", "\"NULL", "FIELDS\"", ")", ";", "}", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "if", "(", "this", ".", "methods", "!=", "Binding", ".", "NO_METHODS", ")", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "methods", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "buffer", ".", "append", "(", "(", "this", ".", "methods", "[", "i", "]", "!=", "null", ")", "?", "\"n\"", "+", "this", ".", "methods", "[", "i", "]", ".", "toString", "(", ")", ":", "\"nNULL", "METHOD\"", ")", ";", "}", "}", "else", "{", "buffer", ".", "append", "(", "\"NULL", "METHODS\"", ")", ";", "}", "if", "(", "this", ".", "memberTypes", "!=", "null", ")", "{", "if", "(", "this", ".", "memberTypes", "!=", "Binding", ".", "NO_MEMBER_TYPES", ")", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "memberTypes", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "buffer", ".", "append", "(", "(", "this", ".", "memberTypes", "[", "i", "]", "!=", "null", ")", "?", "\"n\"", "+", "this", ".", "memberTypes", "[", "i", "]", ".", "toString", "(", ")", ":", "\"nNULL", "TYPE\"", ")", ";", "}", "}", "else", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "}", "buffer", ".", "append", "(", "\"nnn\"", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}", "MethodBinding", "[", "]", "unResolvedMethods", "(", ")", "{", "return", "this", ".", "methods", ";", "}", "}", "</s>" ]
5,624
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "AbstractMethodDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Annotation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "LocalDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "ReferenceContext", ";", "public", "class", "LocalVariableBinding", "extends", "VariableBinding", "{", "public", "int", "resolvedPosition", ";", "public", "static", "final", "int", "UNUSED", "=", "0", ";", "public", "static", "final", "int", "USED", "=", "1", ";", "public", "static", "final", "int", "FAKE_USED", "=", "2", ";", "public", "int", "useFlag", ";", "public", "BlockScope", "declaringScope", ";", "public", "LocalDeclaration", "declaration", ";", "public", "int", "[", "]", "initializationPCs", ";", "public", "int", "initializationCount", "=", "0", ";", "public", "LocalVariableBinding", "(", "char", "[", "]", "name", ",", "TypeBinding", "type", ",", "int", "modifiers", ",", "boolean", "isArgument", ")", "{", "super", "(", "name", ",", "type", ",", "modifiers", ",", "isArgument", "?", "Constant", ".", "NotAConstant", ":", "null", ")", ";", "if", "(", "isArgument", ")", "this", ".", "tagBits", "|=", "TagBits", ".", "IsArgument", ";", "}", "public", "LocalVariableBinding", "(", "LocalDeclaration", "declaration", ",", "TypeBinding", "type", ",", "int", "modifiers", ",", "boolean", "isArgument", ")", "{", "this", "(", "declaration", ".", "name", ",", "type", ",", "modifiers", ",", "isArgument", ")", ";", "this", ".", "declaration", "=", "declaration", ";", "}", "public", "final", "int", "kind", "(", ")", "{", "return", "LOCAL", ";", "}", "public", "char", "[", "]", "computeUniqueKey", "(", "boolean", "isLeaf", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "BlockScope", "scope", "=", "this", ".", "declaringScope", ";", "int", "occurenceCount", "=", "0", ";", "if", "(", "scope", "!=", "null", ")", "{", "MethodScope", "methodScope", "=", "scope", "instanceof", "MethodScope", "?", "(", "MethodScope", ")", "scope", ":", "scope", ".", "enclosingMethodScope", "(", ")", ";", "ReferenceContext", "referenceContext", "=", "methodScope", ".", "referenceContext", ";", "if", "(", "referenceContext", "instanceof", "AbstractMethodDeclaration", ")", "{", "MethodBinding", "methodBinding", "=", "(", "(", "AbstractMethodDeclaration", ")", "referenceContext", ")", ".", "binding", ";", "if", "(", "methodBinding", "!=", "null", ")", "{", "buffer", ".", "append", "(", "methodBinding", ".", "computeUniqueKey", "(", "false", ")", ")", ";", "}", "}", "else", "if", "(", "referenceContext", "instanceof", "TypeDeclaration", ")", "{", "TypeBinding", "typeBinding", "=", "(", "(", "TypeDeclaration", ")", "referenceContext", ")", ".", "binding", ";", "if", "(", "typeBinding", "!=", "null", ")", "{", "buffer", ".", "append", "(", "typeBinding", ".", "computeUniqueKey", "(", "false", ")", ")", ";", "}", "}", "getScopeKey", "(", "scope", ",", "buffer", ")", ";", "LocalVariableBinding", "[", "]", "locals", "=", "scope", ".", "locals", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "scope", ".", "localIndex", ";", "i", "++", ")", "{", "LocalVariableBinding", "local", "=", "locals", "[", "i", "]", ";", "if", "(", "CharOperation", ".", "equals", "(", "this", ".", "name", ",", "local", ".", "name", ")", ")", "{", "if", "(", "this", "==", "local", ")", "break", ";", "occurenceCount", "++", ";", "}", "}", "}", "buffer", ".", "append", "(", "'#'", ")", ";", "buffer", ".", "append", "(", "this", ".", "name", ")", ";", "if", "(", "occurenceCount", ">", "0", ")", "{", "buffer", ".", "append", "(", "'#'", ")", ";", "buffer", ".", "append", "(", "occurenceCount", ")", ";", "}", "int", "length", "=", "buffer", ".", "length", "(", ")", ";", "char", "[", "]", "uniqueKey", "=", "new", "char", "[", "length", "]", ";", "buffer", ".", "getChars", "(", "0", ",", "length", ",", "uniqueKey", ",", "0", ")", ";", "return", "uniqueKey", ";", "}", "public", "AnnotationBinding", "[", "]", "getAnnotations", "(", ")", "{", "if", "(", "this", ".", "declaringScope", "==", "null", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AnnotationResolved", ")", "!=", "0", ")", "{", "if", "(", "this", ".", "declaration", "==", "null", ")", "{", "return", "Binding", ".", "NO_ANNOTATIONS", ";", "}", "Annotation", "[", "]", "annotations", "=", "this", ".", "declaration", ".", "annotations", ";", "if", "(", "annotations", "!=", "null", ")", "{", "int", "length", "=", "annotations", ".", "length", ";", "AnnotationBinding", "[", "]", "annotationBindings", "=", "new", "AnnotationBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "AnnotationBinding", "compilerAnnotation", "=", "annotations", "[", "i", "]", ".", "getCompilerAnnotation", "(", ")", ";", "if", "(", "compilerAnnotation", "==", "null", ")", "{", "return", "Binding", ".", "NO_ANNOTATIONS", ";", "}", "annotationBindings", "[", "i", "]", "=", "compilerAnnotation", ";", "}", "return", "annotationBindings", ";", "}", "}", "return", "Binding", ".", "NO_ANNOTATIONS", ";", "}", "SourceTypeBinding", "sourceType", "=", "this", ".", "declaringScope", ".", "enclosingSourceType", "(", ")", ";", "if", "(", "sourceType", "==", "null", ")", "return", "Binding", ".", "NO_ANNOTATIONS", ";", "AnnotationBinding", "[", "]", "annotations", "=", "sourceType", ".", "retrieveAnnotations", "(", "this", ")", ";", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AnnotationResolved", ")", "==", "0", ")", "{", "if", "(", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "IsArgument", ")", "!=", "0", ")", "&&", "this", ".", "declaration", "!=", "null", ")", "{", "Annotation", "[", "]", "annotationNodes", "=", "this", ".", "declaration", ".", "annotations", ";", "if", "(", "annotationNodes", "!=", "null", ")", "{", "int", "length", "=", "annotationNodes", ".", "length", ";", "ASTNode", ".", "resolveAnnotations", "(", "this", ".", "declaringScope", ",", "annotationNodes", ",", "this", ")", ";", "annotations", "=", "new", "AnnotationBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "annotations", "[", "i", "]", "=", "new", "AnnotationBinding", "(", "annotationNodes", "[", "i", "]", ")", ";", "setAnnotations", "(", "annotations", ")", ";", "}", "}", "}", "return", "annotations", ";", "}", "private", "void", "getScopeKey", "(", "BlockScope", "scope", ",", "StringBuffer", "buffer", ")", "{", "int", "scopeIndex", "=", "scope", ".", "scopeIndex", "(", ")", ";", "if", "(", "scopeIndex", "!=", "-", "1", ")", "{", "getScopeKey", "(", "(", "BlockScope", ")", "scope", ".", "parent", ",", "buffer", ")", ";", "buffer", ".", "append", "(", "'#'", ")", ";", "buffer", ".", "append", "(", "scopeIndex", ")", ";", "}", "}", "public", "boolean", "isSecret", "(", ")", "{", "return", "this", ".", "declaration", "==", "null", "&&", "(", "this", ".", "tagBits", "&", "TagBits", ".", "IsArgument", ")", "==", "0", ";", "}", "public", "void", "recordInitializationEndPC", "(", "int", "pc", ")", "{", "if", "(", "this", ".", "initializationPCs", "[", "(", "(", "this", ".", "initializationCount", "-", "1", ")", "<<", "1", ")", "+", "1", "]", "==", "-", "1", ")", "this", ".", "initializationPCs", "[", "(", "(", "this", ".", "initializationCount", "-", "1", ")", "<<", "1", ")", "+", "1", "]", "=", "pc", ";", "}", "public", "void", "recordInitializationStartPC", "(", "int", "pc", ")", "{", "if", "(", "this", ".", "initializationPCs", "==", "null", ")", "{", "return", ";", "}", "if", "(", "this", ".", "initializationCount", ">", "0", ")", "{", "int", "previousEndPC", "=", "this", ".", "initializationPCs", "[", "(", "(", "this", ".", "initializationCount", "-", "1", ")", "<<", "1", ")", "+", "1", "]", ";", "if", "(", "previousEndPC", "==", "-", "1", ")", "{", "return", ";", "}", "if", "(", "previousEndPC", "==", "pc", ")", "{", "this", ".", "initializationPCs", "[", "(", "(", "this", ".", "initializationCount", "-", "1", ")", "<<", "1", ")", "+", "1", "]", "=", "-", "1", ";", "return", ";", "}", "}", "int", "index", "=", "this", ".", "initializationCount", "<<", "1", ";", "if", "(", "index", "==", "this", ".", "initializationPCs", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "initializationPCs", ",", "0", ",", "(", "this", ".", "initializationPCs", "=", "new", "int", "[", "this", ".", "initializationCount", "<<", "2", "]", ")", ",", "0", ",", "index", ")", ";", "}", "this", ".", "initializationPCs", "[", "index", "]", "=", "pc", ";", "this", ".", "initializationPCs", "[", "index", "+", "1", "]", "=", "-", "1", ";", "this", ".", "initializationCount", "++", ";", "}", "public", "void", "setAnnotations", "(", "AnnotationBinding", "[", "]", "annotations", ")", "{", "if", "(", "this", ".", "declaringScope", "==", "null", ")", "return", ";", "SourceTypeBinding", "sourceType", "=", "this", ".", "declaringScope", ".", "enclosingSourceType", "(", ")", ";", "if", "(", "sourceType", "!=", "null", ")", "sourceType", ".", "storeAnnotations", "(", "this", ",", "annotations", ")", ";", "}", "public", "void", "resetInitializations", "(", ")", "{", "this", ".", "initializationCount", "=", "0", ";", "this", ".", "initializationPCs", "=", "null", ";", "}", "public", "String", "toString", "(", ")", "{", "String", "s", "=", "super", ".", "toString", "(", ")", ";", "switch", "(", "this", ".", "useFlag", ")", "{", "case", "USED", ":", "s", "+=", "\"[pos:", "\"", "+", "String", ".", "valueOf", "(", "this", ".", "resolvedPosition", ")", "+", "\"]\"", ";", "break", ";", "case", "UNUSED", ":", "s", "+=", "\"\"", ";", "break", ";", "case", "FAKE_USED", ":", "s", "+=", "\"\"", ";", "break", ";", "}", "s", "+=", "\"[id:\"", "+", "String", ".", "valueOf", "(", "this", ".", "id", ")", "+", "\"]\"", ";", "if", "(", "this", ".", "initializationCount", ">", "0", ")", "{", "s", "+=", "\"[pc:", "\"", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "initializationCount", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "s", "+=", "\",", "\"", ";", "s", "+=", "String", ".", "valueOf", "(", "this", ".", "initializationPCs", "[", "i", "<<", "1", "]", ")", "+", "\"-\"", "+", "(", "(", "this", ".", "initializationPCs", "[", "(", "i", "<<", "1", ")", "+", "1", "]", "==", "-", "1", ")", "?", "\"?\"", ":", "String", ".", "valueOf", "(", "this", ".", "initializationPCs", "[", "(", "i", "<<", "1", ")", "+", "1", "]", ")", ")", ";", "}", "s", "+=", "\"]\"", ";", "}", "return", "s", ";", "}", "}", "</s>" ]
5,625
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "HashtableOfPackage", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "HashtableOfType", ";", "public", "class", "PackageBinding", "extends", "Binding", "implements", "TypeConstants", "{", "public", "long", "tagBits", "=", "0", ";", "public", "char", "[", "]", "[", "]", "compoundName", ";", "PackageBinding", "parent", ";", "public", "LookupEnvironment", "environment", ";", "HashtableOfType", "knownTypes", ";", "HashtableOfPackage", "knownPackages", ";", "protected", "PackageBinding", "(", ")", "{", "}", "public", "PackageBinding", "(", "char", "[", "]", "topLevelPackageName", ",", "LookupEnvironment", "environment", ")", "{", "this", "(", "new", "char", "[", "]", "[", "]", "{", "topLevelPackageName", "}", ",", "null", ",", "environment", ")", ";", "}", "public", "PackageBinding", "(", "char", "[", "]", "[", "]", "compoundName", ",", "PackageBinding", "parent", ",", "LookupEnvironment", "environment", ")", "{", "this", ".", "compoundName", "=", "compoundName", ";", "this", ".", "parent", "=", "parent", ";", "this", ".", "environment", "=", "environment", ";", "this", ".", "knownTypes", "=", "null", ";", "this", ".", "knownPackages", "=", "new", "HashtableOfPackage", "(", "3", ")", ";", "}", "public", "PackageBinding", "(", "LookupEnvironment", "environment", ")", "{", "this", "(", "CharOperation", ".", "NO_CHAR_CHAR", ",", "null", ",", "environment", ")", ";", "}", "private", "void", "addNotFoundPackage", "(", "char", "[", "]", "simpleName", ")", "{", "this", ".", "knownPackages", ".", "put", "(", "simpleName", ",", "LookupEnvironment", ".", "TheNotFoundPackage", ")", ";", "}", "private", "void", "addNotFoundType", "(", "char", "[", "]", "simpleName", ")", "{", "if", "(", "this", ".", "knownTypes", "==", "null", ")", "this", ".", "knownTypes", "=", "new", "HashtableOfType", "(", "25", ")", ";", "this", ".", "knownTypes", ".", "put", "(", "simpleName", ",", "LookupEnvironment", ".", "TheNotFoundType", ")", ";", "}", "void", "addPackage", "(", "PackageBinding", "element", ")", "{", "if", "(", "(", "element", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "==", "0", ")", "clearMissingTagBit", "(", ")", ";", "this", ".", "knownPackages", ".", "put", "(", "element", ".", "compoundName", "[", "element", ".", "compoundName", ".", "length", "-", "1", "]", ",", "element", ")", ";", "}", "void", "addType", "(", "ReferenceBinding", "element", ")", "{", "if", "(", "(", "element", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "==", "0", ")", "clearMissingTagBit", "(", ")", ";", "if", "(", "this", ".", "knownTypes", "==", "null", ")", "this", ".", "knownTypes", "=", "new", "HashtableOfType", "(", "25", ")", ";", "this", ".", "knownTypes", ".", "put", "(", "element", ".", "compoundName", "[", "element", ".", "compoundName", ".", "length", "-", "1", "]", ",", "element", ")", ";", "}", "void", "clearMissingTagBit", "(", ")", "{", "PackageBinding", "current", "=", "this", ";", "do", "{", "current", ".", "tagBits", "&=", "~", "TagBits", ".", "HasMissingType", ";", "}", "while", "(", "(", "current", "=", "current", ".", "parent", ")", "!=", "null", ")", ";", "}", "public", "char", "[", "]", "computeUniqueKey", "(", "boolean", "isLeaf", ")", "{", "return", "CharOperation", ".", "concatWith", "(", "this", ".", "compoundName", ",", "'/'", ")", ";", "}", "private", "PackageBinding", "findPackage", "(", "char", "[", "]", "name", ")", "{", "if", "(", "!", "this", ".", "environment", ".", "isPackage", "(", "this", ".", "compoundName", ",", "name", ")", ")", "return", "null", ";", "char", "[", "]", "[", "]", "subPkgCompoundName", "=", "CharOperation", ".", "arrayConcat", "(", "this", ".", "compoundName", ",", "name", ")", ";", "PackageBinding", "subPackageBinding", "=", "new", "PackageBinding", "(", "subPkgCompoundName", ",", "this", ",", "this", ".", "environment", ")", ";", "addPackage", "(", "subPackageBinding", ")", ";", "return", "subPackageBinding", ";", "}", "PackageBinding", "getPackage", "(", "char", "[", "]", "name", ")", "{", "PackageBinding", "binding", "=", "getPackage0", "(", "name", ")", ";", "if", "(", "binding", "!=", "null", ")", "{", "if", "(", "binding", "==", "LookupEnvironment", ".", "TheNotFoundPackage", ")", "return", "null", ";", "else", "return", "binding", ";", "}", "if", "(", "(", "binding", "=", "findPackage", "(", "name", ")", ")", "!=", "null", ")", "return", "binding", ";", "addNotFoundPackage", "(", "name", ")", ";", "return", "null", ";", "}", "PackageBinding", "getPackage0", "(", "char", "[", "]", "name", ")", "{", "return", "this", ".", "knownPackages", ".", "get", "(", "name", ")", ";", "}", "ReferenceBinding", "getType", "(", "char", "[", "]", "name", ")", "{", "ReferenceBinding", "referenceBinding", "=", "getType0", "(", "name", ")", ";", "if", "(", "referenceBinding", "==", "null", ")", "{", "if", "(", "(", "referenceBinding", "=", "this", ".", "environment", ".", "askForType", "(", "this", ",", "name", ")", ")", "==", "null", ")", "{", "addNotFoundType", "(", "name", ")", ";", "return", "null", ";", "}", "}", "if", "(", "referenceBinding", "==", "LookupEnvironment", ".", "TheNotFoundType", ")", "return", "null", ";", "referenceBinding", "=", "(", "ReferenceBinding", ")", "BinaryTypeBinding", ".", "resolveType", "(", "referenceBinding", ",", "this", ".", "environment", ",", "false", ")", ";", "if", "(", "referenceBinding", ".", "isNestedType", "(", ")", ")", "return", "new", "ProblemReferenceBinding", "(", "new", "char", "[", "]", "[", "]", "{", "name", "}", ",", "referenceBinding", ",", "ProblemReasons", ".", "InternalNameProvided", ")", ";", "return", "referenceBinding", ";", "}", "ReferenceBinding", "getType0", "(", "char", "[", "]", "name", ")", "{", "if", "(", "this", ".", "knownTypes", "==", "null", ")", "return", "null", ";", "return", "this", ".", "knownTypes", ".", "get", "(", "name", ")", ";", "}", "public", "Binding", "getTypeOrPackage", "(", "char", "[", "]", "name", ")", "{", "ReferenceBinding", "referenceBinding", "=", "getType0", "(", "name", ")", ";", "if", "(", "referenceBinding", "!=", "null", "&&", "referenceBinding", "!=", "LookupEnvironment", ".", "TheNotFoundType", ")", "{", "referenceBinding", "=", "(", "ReferenceBinding", ")", "BinaryTypeBinding", ".", "resolveType", "(", "referenceBinding", ",", "this", ".", "environment", ",", "false", ")", ";", "if", "(", "referenceBinding", ".", "isNestedType", "(", ")", ")", "{", "return", "new", "ProblemReferenceBinding", "(", "new", "char", "[", "]", "[", "]", "{", "name", "}", ",", "referenceBinding", ",", "ProblemReasons", ".", "InternalNameProvided", ")", ";", "}", "if", "(", "(", "referenceBinding", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "==", "0", ")", "{", "return", "referenceBinding", ";", "}", "}", "PackageBinding", "packageBinding", "=", "getPackage0", "(", "name", ")", ";", "if", "(", "packageBinding", "!=", "null", "&&", "packageBinding", "!=", "LookupEnvironment", ".", "TheNotFoundPackage", ")", "{", "return", "packageBinding", ";", "}", "if", "(", "referenceBinding", "==", "null", ")", "{", "if", "(", "(", "referenceBinding", "=", "this", ".", "environment", ".", "askForType", "(", "this", ",", "name", ")", ")", "!=", "null", ")", "{", "if", "(", "referenceBinding", ".", "isNestedType", "(", ")", ")", "{", "return", "new", "ProblemReferenceBinding", "(", "new", "char", "[", "]", "[", "]", "{", "name", "}", ",", "referenceBinding", ",", "ProblemReasons", ".", "InternalNameProvided", ")", ";", "}", "return", "referenceBinding", ";", "}", "addNotFoundType", "(", "name", ")", ";", "}", "if", "(", "packageBinding", "==", "null", ")", "{", "if", "(", "(", "packageBinding", "=", "findPackage", "(", "name", ")", ")", "!=", "null", ")", "{", "return", "packageBinding", ";", "}", "if", "(", "referenceBinding", "!=", "null", "&&", "referenceBinding", "!=", "LookupEnvironment", ".", "TheNotFoundType", ")", "{", "return", "referenceBinding", ";", "}", "addNotFoundPackage", "(", "name", ")", ";", "}", "return", "null", ";", "}", "public", "final", "boolean", "isViewedAsDeprecated", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "DeprecatedAnnotationResolved", ")", "==", "0", ")", "{", "this", ".", "tagBits", "|=", "TagBits", ".", "DeprecatedAnnotationResolved", ";", "if", "(", "this", ".", "compoundName", "!=", "CharOperation", ".", "NO_CHAR_CHAR", ")", "{", "ReferenceBinding", "packageInfo", "=", "this", ".", "getType", "(", "TypeConstants", ".", "PACKAGE_INFO_NAME", ")", ";", "if", "(", "packageInfo", "!=", "null", ")", "{", "packageInfo", ".", "initializeDeprecatedAnnotationTagBits", "(", ")", ";", "this", ".", "tagBits", "|=", "packageInfo", ".", "tagBits", "&", "TagBits", ".", "AllStandardAnnotationsMask", ";", "}", "}", "}", "return", "(", "this", ".", "tagBits", "&", "TagBits", ".", "AnnotationDeprecated", ")", "!=", "0", ";", "}", "public", "final", "int", "kind", "(", ")", "{", "return", "Binding", ".", "PACKAGE", ";", "}", "public", "int", "problemId", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "return", "ProblemReasons", ".", "NotFound", ";", "return", "ProblemReasons", ".", "NoError", ";", "}", "public", "char", "[", "]", "readableName", "(", ")", "{", "return", "CharOperation", ".", "concatWith", "(", "this", ".", "compoundName", ",", "'.'", ")", ";", "}", "public", "String", "toString", "(", ")", "{", "String", "str", ";", "if", "(", "this", ".", "compoundName", "==", "CharOperation", ".", "NO_CHAR_CHAR", ")", "{", "str", "=", "\"\"", ";", "}", "else", "{", "str", "=", "\"package", "\"", "+", "(", "(", "this", ".", "compoundName", "!=", "null", ")", "?", "CharOperation", ".", "toString", "(", "this", ".", "compoundName", ")", ":", "\"UNNAMED\"", ")", ";", "}", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "str", "+=", "\"[MISSING]\"", ";", "}", "return", "str", ";", "}", "}", "</s>" ]
5,626
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "UnconditionalFlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "ReferenceContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "ProblemReporter", ";", "public", "class", "MethodScope", "extends", "BlockScope", "{", "public", "ReferenceContext", "referenceContext", ";", "public", "boolean", "isStatic", ";", "public", "boolean", "isConstructorCall", "=", "false", ";", "public", "FieldBinding", "initializedField", ";", "public", "int", "lastVisibleFieldID", "=", "-", "1", ";", "public", "int", "analysisIndex", ";", "public", "boolean", "isPropagatingInnerClassEmulation", ";", "public", "int", "lastIndex", "=", "0", ";", "public", "long", "[", "]", "definiteInits", "=", "new", "long", "[", "4", "]", ";", "public", "long", "[", "]", "[", "]", "extraDefiniteInits", "=", "new", "long", "[", "4", "]", "[", "]", ";", "public", "boolean", "insideTypeAnnotation", "=", "false", ";", "public", "SyntheticArgumentBinding", "[", "]", "extraSyntheticArguments", ";", "public", "MethodScope", "(", "ClassScope", "parent", ",", "ReferenceContext", "context", ",", "boolean", "isStatic", ")", "{", "super", "(", "METHOD_SCOPE", ",", "parent", ")", ";", "this", ".", "locals", "=", "new", "LocalVariableBinding", "[", "5", "]", ";", "this", ".", "referenceContext", "=", "context", ";", "this", ".", "isStatic", "=", "isStatic", ";", "this", ".", "startIndex", "=", "0", ";", "}", "String", "basicToString", "(", "int", "tab", ")", "{", "String", "newLine", "=", "\"n\"", ";", "for", "(", "int", "i", "=", "tab", ";", "--", "i", ">=", "0", ";", ")", "newLine", "+=", "\"t\"", ";", "String", "s", "=", "newLine", "+", "\"\"", ";", "newLine", "+=", "\"t\"", ";", "s", "+=", "newLine", "+", "\"locals:\"", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "localIndex", ";", "i", "++", ")", "s", "+=", "newLine", "+", "\"t\"", "+", "this", ".", "locals", "[", "i", "]", ".", "toString", "(", ")", ";", "s", "+=", "newLine", "+", "\"\"", "+", "this", ".", "startIndex", ";", "s", "+=", "newLine", "+", "\"\"", "+", "this", ".", "isConstructorCall", ";", "s", "+=", "newLine", "+", "\"\"", "+", "this", ".", "initializedField", ";", "s", "+=", "newLine", "+", "\"\"", "+", "this", ".", "lastVisibleFieldID", ";", "s", "+=", "newLine", "+", "\"\"", "+", "this", ".", "referenceContext", ";", "return", "s", ";", "}", "private", "void", "checkAndSetModifiersForConstructor", "(", "MethodBinding", "methodBinding", ")", "{", "int", "modifiers", "=", "methodBinding", ".", "modifiers", ";", "final", "ReferenceBinding", "declaringClass", "=", "methodBinding", ".", "declaringClass", ";", "if", "(", "(", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccAlternateModifierProblem", ")", "!=", "0", ")", "problemReporter", "(", ")", ".", "duplicateModifierForMethod", "(", "declaringClass", ",", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ")", ";", "if", "(", "(", "(", "(", "ConstructorDeclaration", ")", "this", ".", "referenceContext", ")", ".", "bits", "&", "ASTNode", ".", "IsDefaultConstructor", ")", "!=", "0", ")", "{", "final", "int", "DECLARING_FLAGS", "=", "ClassFileConstants", ".", "AccEnum", "|", "ClassFileConstants", ".", "AccPublic", "|", "ClassFileConstants", ".", "AccProtected", ";", "final", "int", "VISIBILITY_FLAGS", "=", "ClassFileConstants", ".", "AccPrivate", "|", "ClassFileConstants", ".", "AccPublic", "|", "ClassFileConstants", ".", "AccProtected", ";", "int", "flags", ";", "if", "(", "(", "flags", "=", "declaringClass", ".", "modifiers", "&", "DECLARING_FLAGS", ")", "!=", "0", ")", "{", "if", "(", "(", "flags", "&", "ClassFileConstants", ".", "AccEnum", ")", "!=", "0", ")", "{", "modifiers", "&=", "~", "VISIBILITY_FLAGS", ";", "modifiers", "|=", "ClassFileConstants", ".", "AccPrivate", ";", "}", "else", "{", "modifiers", "&=", "~", "VISIBILITY_FLAGS", ";", "modifiers", "|=", "flags", ";", "}", "}", "}", "int", "realModifiers", "=", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccJustFlag", ";", "final", "int", "UNEXPECTED_MODIFIERS", "=", "~", "(", "ClassFileConstants", ".", "AccPublic", "|", "ClassFileConstants", ".", "AccPrivate", "|", "ClassFileConstants", ".", "AccProtected", "|", "ClassFileConstants", ".", "AccStrictfp", ")", ";", "if", "(", "declaringClass", ".", "isEnum", "(", ")", "&&", "(", "(", "(", "ConstructorDeclaration", ")", "this", ".", "referenceContext", ")", ".", "bits", "&", "ASTNode", ".", "IsDefaultConstructor", ")", "==", "0", ")", "{", "final", "int", "UNEXPECTED_ENUM_CONSTR_MODIFIERS", "=", "~", "(", "ClassFileConstants", ".", "AccPrivate", "|", "ClassFileConstants", ".", "AccStrictfp", ")", ";", "if", "(", "(", "realModifiers", "&", "UNEXPECTED_ENUM_CONSTR_MODIFIERS", ")", "!=", "0", ")", "{", "problemReporter", "(", ")", ".", "illegalModifierForEnumConstructor", "(", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ")", ";", "modifiers", "&=", "~", "ExtraCompilerModifiers", ".", "AccJustFlag", "|", "~", "UNEXPECTED_ENUM_CONSTR_MODIFIERS", ";", "}", "else", "if", "(", "(", "(", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ")", ".", "modifiers", "&", "ClassFileConstants", ".", "AccStrictfp", ")", "!=", "0", ")", "{", "problemReporter", "(", ")", ".", "illegalModifierForMethod", "(", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ")", ";", "}", "modifiers", "|=", "ClassFileConstants", ".", "AccPrivate", ";", "}", "else", "if", "(", "(", "realModifiers", "&", "UNEXPECTED_MODIFIERS", ")", "!=", "0", ")", "{", "problemReporter", "(", ")", ".", "illegalModifierForMethod", "(", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ")", ";", "modifiers", "&=", "~", "ExtraCompilerModifiers", ".", "AccJustFlag", "|", "~", "UNEXPECTED_MODIFIERS", ";", "}", "else", "if", "(", "(", "(", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ")", ".", "modifiers", "&", "ClassFileConstants", ".", "AccStrictfp", ")", "!=", "0", ")", "{", "problemReporter", "(", ")", ".", "illegalModifierForMethod", "(", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ")", ";", "}", "int", "accessorBits", "=", "realModifiers", "&", "(", "ClassFileConstants", ".", "AccPublic", "|", "ClassFileConstants", ".", "AccProtected", "|", "ClassFileConstants", ".", "AccPrivate", ")", ";", "if", "(", "(", "accessorBits", "&", "(", "accessorBits", "-", "1", ")", ")", "!=", "0", ")", "{", "problemReporter", "(", ")", ".", "illegalVisibilityModifierCombinationForMethod", "(", "declaringClass", ",", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ")", ";", "if", "(", "(", "accessorBits", "&", "ClassFileConstants", ".", "AccPublic", ")", "!=", "0", ")", "{", "if", "(", "(", "accessorBits", "&", "ClassFileConstants", ".", "AccProtected", ")", "!=", "0", ")", "modifiers", "&=", "~", "ClassFileConstants", ".", "AccProtected", ";", "if", "(", "(", "accessorBits", "&", "ClassFileConstants", ".", "AccPrivate", ")", "!=", "0", ")", "modifiers", "&=", "~", "ClassFileConstants", ".", "AccPrivate", ";", "}", "else", "if", "(", "(", "accessorBits", "&", "ClassFileConstants", ".", "AccProtected", ")", "!=", "0", "&&", "(", "accessorBits", "&", "ClassFileConstants", ".", "AccPrivate", ")", "!=", "0", ")", "{", "modifiers", "&=", "~", "ClassFileConstants", ".", "AccPrivate", ";", "}", "}", "methodBinding", ".", "modifiers", "=", "modifiers", ";", "}", "private", "void", "checkAndSetModifiersForMethod", "(", "MethodBinding", "methodBinding", ")", "{", "int", "modifiers", "=", "methodBinding", ".", "modifiers", ";", "final", "ReferenceBinding", "declaringClass", "=", "methodBinding", ".", "declaringClass", ";", "if", "(", "(", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccAlternateModifierProblem", ")", "!=", "0", ")", "problemReporter", "(", ")", ".", "duplicateModifierForMethod", "(", "declaringClass", ",", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ")", ";", "int", "realModifiers", "=", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccJustFlag", ";", "if", "(", "declaringClass", ".", "isInterface", "(", ")", ")", "{", "if", "(", "(", "realModifiers", "&", "~", "(", "ClassFileConstants", ".", "AccPublic", "|", "ClassFileConstants", ".", "AccAbstract", ")", ")", "!=", "0", ")", "{", "if", "(", "(", "declaringClass", ".", "modifiers", "&", "ClassFileConstants", ".", "AccAnnotation", ")", "!=", "0", ")", "problemReporter", "(", ")", ".", "illegalModifierForAnnotationMember", "(", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ")", ";", "else", "problemReporter", "(", ")", ".", "illegalModifierForInterfaceMethod", "(", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ")", ";", "}", "return", ";", "}", "final", "int", "UNEXPECTED_MODIFIERS", "=", "~", "(", "ClassFileConstants", ".", "AccPublic", "|", "ClassFileConstants", ".", "AccPrivate", "|", "ClassFileConstants", ".", "AccProtected", "|", "ClassFileConstants", ".", "AccAbstract", "|", "ClassFileConstants", ".", "AccStatic", "|", "ClassFileConstants", ".", "AccFinal", "|", "ClassFileConstants", ".", "AccSynchronized", "|", "ClassFileConstants", ".", "AccNative", "|", "ClassFileConstants", ".", "AccStrictfp", ")", ";", "if", "(", "(", "realModifiers", "&", "UNEXPECTED_MODIFIERS", ")", "!=", "0", ")", "{", "problemReporter", "(", ")", ".", "illegalModifierForMethod", "(", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ")", ";", "modifiers", "&=", "~", "ExtraCompilerModifiers", ".", "AccJustFlag", "|", "~", "UNEXPECTED_MODIFIERS", ";", "}", "int", "accessorBits", "=", "realModifiers", "&", "(", "ClassFileConstants", ".", "AccPublic", "|", "ClassFileConstants", ".", "AccProtected", "|", "ClassFileConstants", ".", "AccPrivate", ")", ";", "if", "(", "(", "accessorBits", "&", "(", "accessorBits", "-", "1", ")", ")", "!=", "0", ")", "{", "problemReporter", "(", ")", ".", "illegalVisibilityModifierCombinationForMethod", "(", "declaringClass", ",", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ")", ";", "if", "(", "(", "accessorBits", "&", "ClassFileConstants", ".", "AccPublic", ")", "!=", "0", ")", "{", "if", "(", "(", "accessorBits", "&", "ClassFileConstants", ".", "AccProtected", ")", "!=", "0", ")", "modifiers", "&=", "~", "ClassFileConstants", ".", "AccProtected", ";", "if", "(", "(", "accessorBits", "&", "ClassFileConstants", ".", "AccPrivate", ")", "!=", "0", ")", "modifiers", "&=", "~", "ClassFileConstants", ".", "AccPrivate", ";", "}", "else", "if", "(", "(", "accessorBits", "&", "ClassFileConstants", ".", "AccProtected", ")", "!=", "0", "&&", "(", "accessorBits", "&", "ClassFileConstants", ".", "AccPrivate", ")", "!=", "0", ")", "{", "modifiers", "&=", "~", "ClassFileConstants", ".", "AccPrivate", ";", "}", "}", "if", "(", "(", "modifiers", "&", "ClassFileConstants", ".", "AccAbstract", ")", "!=", "0", ")", "{", "int", "incompatibleWithAbstract", "=", "ClassFileConstants", ".", "AccPrivate", "|", "ClassFileConstants", ".", "AccStatic", "|", "ClassFileConstants", ".", "AccFinal", "|", "ClassFileConstants", ".", "AccSynchronized", "|", "ClassFileConstants", ".", "AccNative", "|", "ClassFileConstants", ".", "AccStrictfp", ";", "if", "(", "(", "modifiers", "&", "incompatibleWithAbstract", ")", "!=", "0", ")", "problemReporter", "(", ")", ".", "illegalAbstractModifierCombinationForMethod", "(", "declaringClass", ",", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ")", ";", "if", "(", "!", "methodBinding", ".", "declaringClass", ".", "isAbstract", "(", ")", ")", "problemReporter", "(", ")", ".", "abstractMethodInAbstractClass", "(", "(", "SourceTypeBinding", ")", "declaringClass", ",", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ")", ";", "}", "if", "(", "(", "modifiers", "&", "ClassFileConstants", ".", "AccNative", ")", "!=", "0", "&&", "(", "modifiers", "&", "ClassFileConstants", ".", "AccStrictfp", ")", "!=", "0", ")", "problemReporter", "(", ")", ".", "nativeMethodsCannotBeStrictfp", "(", "declaringClass", ",", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ")", ";", "if", "(", "(", "(", "realModifiers", "&", "ClassFileConstants", ".", "AccStatic", ")", "!=", "0", ")", "&&", "declaringClass", ".", "isNestedType", "(", ")", "&&", "!", "declaringClass", ".", "isStatic", "(", ")", ")", "problemReporter", "(", ")", ".", "unexpectedStaticModifierForMethod", "(", "declaringClass", ",", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ")", ";", "methodBinding", ".", "modifiers", "=", "modifiers", ";", "}", "public", "void", "checkUnusedParameters", "(", "MethodBinding", "method", ")", "{", "if", "(", "method", ".", "isAbstract", "(", ")", "||", "(", "method", ".", "isImplementing", "(", ")", "&&", "!", "compilerOptions", "(", ")", ".", "reportUnusedParameterWhenImplementingAbstract", ")", "||", "(", "method", ".", "isOverriding", "(", ")", "&&", "!", "method", ".", "isImplementing", "(", ")", "&&", "!", "compilerOptions", "(", ")", ".", "reportUnusedParameterWhenOverridingConcrete", ")", "||", "method", ".", "isMain", "(", ")", ")", "{", "return", ";", "}", "for", "(", "int", "i", "=", "0", ",", "maxLocals", "=", "this", ".", "localIndex", ";", "i", "<", "maxLocals", ";", "i", "++", ")", "{", "LocalVariableBinding", "local", "=", "this", ".", "locals", "[", "i", "]", ";", "if", "(", "local", "==", "null", "||", "(", "(", "local", ".", "tagBits", "&", "TagBits", ".", "IsArgument", ")", "==", "0", ")", ")", "{", "break", ";", "}", "if", "(", "local", ".", "useFlag", "==", "LocalVariableBinding", ".", "UNUSED", "&&", "(", "(", "local", ".", "declaration", ".", "bits", "&", "ASTNode", ".", "IsLocalDeclarationReachable", ")", "!=", "0", ")", ")", "{", "problemReporter", "(", ")", ".", "unusedArgument", "(", "local", ".", "declaration", ")", ";", "}", "}", "}", "public", "void", "computeLocalVariablePositions", "(", "int", "initOffset", ",", "CodeStream", "codeStream", ")", "{", "this", ".", "offset", "=", "initOffset", ";", "this", ".", "maxOffset", "=", "initOffset", ";", "int", "ilocal", "=", "0", ",", "maxLocals", "=", "this", ".", "localIndex", ";", "while", "(", "ilocal", "<", "maxLocals", ")", "{", "LocalVariableBinding", "local", "=", "this", ".", "locals", "[", "ilocal", "]", ";", "if", "(", "local", "==", "null", "||", "(", "(", "local", ".", "tagBits", "&", "TagBits", ".", "IsArgument", ")", "==", "0", ")", ")", "break", ";", "codeStream", ".", "record", "(", "local", ")", ";", "local", ".", "resolvedPosition", "=", "this", ".", "offset", ";", "if", "(", "(", "local", ".", "type", "==", "TypeBinding", ".", "LONG", ")", "||", "(", "local", ".", "type", "==", "TypeBinding", ".", "DOUBLE", ")", ")", "{", "this", ".", "offset", "+=", "2", ";", "}", "else", "{", "this", ".", "offset", "++", ";", "}", "if", "(", "this", ".", "offset", ">", "0xFF", ")", "{", "problemReporter", "(", ")", ".", "noMoreAvailableSpaceForArgument", "(", "local", ",", "local", ".", "declaration", ")", ";", "}", "ilocal", "++", ";", "}", "if", "(", "this", ".", "extraSyntheticArguments", "!=", "null", ")", "{", "for", "(", "int", "iarg", "=", "0", ",", "maxArguments", "=", "this", ".", "extraSyntheticArguments", ".", "length", ";", "iarg", "<", "maxArguments", ";", "iarg", "++", ")", "{", "SyntheticArgumentBinding", "argument", "=", "this", ".", "extraSyntheticArguments", "[", "iarg", "]", ";", "argument", ".", "resolvedPosition", "=", "this", ".", "offset", ";", "if", "(", "(", "argument", ".", "type", "==", "TypeBinding", ".", "LONG", ")", "||", "(", "argument", ".", "type", "==", "TypeBinding", ".", "DOUBLE", ")", ")", "{", "this", ".", "offset", "+=", "2", ";", "}", "else", "{", "this", ".", "offset", "++", ";", "}", "if", "(", "this", ".", "offset", ">", "0xFF", ")", "{", "problemReporter", "(", ")", ".", "noMoreAvailableSpaceForArgument", "(", "argument", ",", "(", "ASTNode", ")", "this", ".", "referenceContext", ")", ";", "}", "}", "}", "this", ".", "computeLocalVariablePositions", "(", "ilocal", ",", "this", ".", "offset", ",", "codeStream", ")", ";", "}", "MethodBinding", "createMethod", "(", "AbstractMethodDeclaration", "method", ")", "{", "this", ".", "referenceContext", "=", "method", ";", "method", ".", "scope", "=", "this", ";", "SourceTypeBinding", "declaringClass", "=", "referenceType", "(", ")", ".", "binding", ";", "int", "modifiers", "=", "method", ".", "modifiers", "|", "ExtraCompilerModifiers", ".", "AccUnresolved", ";", "if", "(", "method", ".", "isConstructor", "(", ")", ")", "{", "if", "(", "method", ".", "isDefaultConstructor", "(", ")", ")", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccIsDefaultConstructor", ";", "method", ".", "binding", "=", "new", "MethodBinding", "(", "modifiers", ",", "null", ",", "null", ",", "declaringClass", ")", ";", "checkAndSetModifiersForConstructor", "(", "method", ".", "binding", ")", ";", "}", "else", "{", "if", "(", "declaringClass", ".", "isInterface", "(", ")", ")", "modifiers", "|=", "ClassFileConstants", ".", "AccPublic", "|", "ClassFileConstants", ".", "AccAbstract", ";", "method", ".", "binding", "=", "new", "MethodBinding", "(", "modifiers", ",", "method", ".", "selector", ",", "null", ",", "null", ",", "null", ",", "declaringClass", ")", ";", "checkAndSetModifiersForMethod", "(", "method", ".", "binding", ")", ";", "}", "this", ".", "isStatic", "=", "method", ".", "binding", ".", "isStatic", "(", ")", ";", "Argument", "[", "]", "argTypes", "=", "method", ".", "arguments", ";", "int", "argLength", "=", "argTypes", "==", "null", "?", "0", ":", "argTypes", ".", "length", ";", "if", "(", "argLength", ">", "0", "&&", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "if", "(", "argTypes", "[", "--", "argLength", "]", ".", "isVarArgs", "(", ")", ")", "method", ".", "binding", ".", "modifiers", "|=", "ClassFileConstants", ".", "AccVarargs", ";", "while", "(", "--", "argLength", ">=", "0", ")", "{", "if", "(", "argTypes", "[", "argLength", "]", ".", "isVarArgs", "(", ")", ")", "problemReporter", "(", ")", ".", "illegalVararg", "(", "argTypes", "[", "argLength", "]", ",", "method", ")", ";", "}", "}", "TypeParameter", "[", "]", "typeParameters", "=", "method", ".", "typeParameters", "(", ")", ";", "if", "(", "typeParameters", "==", "null", "||", "compilerOptions", "(", ")", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "method", ".", "binding", ".", "typeVariables", "=", "Binding", ".", "NO_TYPE_VARIABLES", ";", "}", "else", "{", "method", ".", "binding", ".", "typeVariables", "=", "createTypeVariables", "(", "typeParameters", ",", "method", ".", "binding", ")", ";", "method", ".", "binding", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccGenericSignature", ";", "}", "return", "method", ".", "binding", ";", "}", "public", "FieldBinding", "findField", "(", "TypeBinding", "receiverType", ",", "char", "[", "]", "fieldName", ",", "InvocationSite", "invocationSite", ",", "boolean", "needResolve", ")", "{", "FieldBinding", "field", "=", "super", ".", "findField", "(", "receiverType", ",", "fieldName", ",", "invocationSite", ",", "needResolve", ")", ";", "if", "(", "field", "==", "null", ")", "return", "null", ";", "if", "(", "!", "field", ".", "isValidBinding", "(", ")", ")", "return", "field", ";", "if", "(", "field", ".", "isStatic", "(", ")", ")", "return", "field", ";", "if", "(", "!", "this", ".", "isConstructorCall", "||", "receiverType", "!=", "enclosingSourceType", "(", ")", ")", "return", "field", ";", "if", "(", "invocationSite", "instanceof", "SingleNameReference", ")", "return", "new", "ProblemFieldBinding", "(", "field", ",", "field", ".", "declaringClass", ",", "fieldName", ",", "ProblemReasons", ".", "NonStaticReferenceInConstructorInvocation", ")", ";", "if", "(", "invocationSite", "instanceof", "QualifiedNameReference", ")", "{", "QualifiedNameReference", "name", "=", "(", "QualifiedNameReference", ")", "invocationSite", ";", "if", "(", "name", ".", "binding", "==", "null", ")", "return", "new", "ProblemFieldBinding", "(", "field", ",", "field", ".", "declaringClass", ",", "fieldName", ",", "ProblemReasons", ".", "NonStaticReferenceInConstructorInvocation", ")", ";", "}", "return", "field", ";", "}", "public", "boolean", "isInsideConstructor", "(", ")", "{", "return", "(", "this", ".", "referenceContext", "instanceof", "ConstructorDeclaration", ")", ";", "}", "public", "boolean", "isInsideInitializer", "(", ")", "{", "return", "(", "this", ".", "referenceContext", "instanceof", "TypeDeclaration", ")", ";", "}", "public", "boolean", "isInsideInitializerOrConstructor", "(", ")", "{", "return", "(", "this", ".", "referenceContext", "instanceof", "TypeDeclaration", ")", "||", "(", "this", ".", "referenceContext", "instanceof", "ConstructorDeclaration", ")", ";", "}", "public", "ProblemReporter", "problemReporter", "(", ")", "{", "MethodScope", "outerMethodScope", ";", "if", "(", "(", "outerMethodScope", "=", "outerMostMethodScope", "(", ")", ")", "==", "this", ")", "{", "ProblemReporter", "problemReporter", "=", "referenceCompilationUnit", "(", ")", ".", "problemReporter", ";", "problemReporter", ".", "referenceContext", "=", "this", ".", "referenceContext", ";", "return", "problemReporter", ";", "}", "return", "outerMethodScope", ".", "problemReporter", "(", ")", ";", "}", "public", "final", "int", "recordInitializationStates", "(", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", ")", "return", "-", "1", ";", "UnconditionalFlowInfo", "unconditionalFlowInfo", "=", "flowInfo", ".", "unconditionalInitsWithoutSideEffect", "(", ")", ";", "long", "[", "]", "extraInits", "=", "unconditionalFlowInfo", ".", "extra", "==", "null", "?", "null", ":", "unconditionalFlowInfo", ".", "extra", "[", "0", "]", ";", "long", "inits", "=", "unconditionalFlowInfo", ".", "definiteInits", ";", "checkNextEntry", ":", "for", "(", "int", "i", "=", "this", ".", "lastIndex", ";", "--", "i", ">=", "0", ";", ")", "{", "if", "(", "this", ".", "definiteInits", "[", "i", "]", "==", "inits", ")", "{", "long", "[", "]", "otherInits", "=", "this", ".", "extraDefiniteInits", "[", "i", "]", ";", "if", "(", "(", "extraInits", "!=", "null", ")", "&&", "(", "otherInits", "!=", "null", ")", ")", "{", "if", "(", "extraInits", ".", "length", "==", "otherInits", ".", "length", ")", "{", "int", "j", ",", "max", ";", "for", "(", "j", "=", "0", ",", "max", "=", "extraInits", ".", "length", ";", "j", "<", "max", ";", "j", "++", ")", "{", "if", "(", "extraInits", "[", "j", "]", "!=", "otherInits", "[", "j", "]", ")", "{", "continue", "checkNextEntry", ";", "}", "}", "return", "i", ";", "}", "}", "else", "{", "if", "(", "(", "extraInits", "==", "null", ")", "&&", "(", "otherInits", "==", "null", ")", ")", "{", "return", "i", ";", "}", "}", "}", "}", "if", "(", "this", ".", "definiteInits", ".", "length", "==", "this", ".", "lastIndex", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "definiteInits", ",", "0", ",", "(", "this", ".", "definiteInits", "=", "new", "long", "[", "this", ".", "lastIndex", "+", "20", "]", ")", ",", "0", ",", "this", ".", "lastIndex", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "extraDefiniteInits", ",", "0", ",", "(", "this", ".", "extraDefiniteInits", "=", "new", "long", "[", "this", ".", "lastIndex", "+", "20", "]", "[", "]", ")", ",", "0", ",", "this", ".", "lastIndex", ")", ";", "}", "this", ".", "definiteInits", "[", "this", ".", "lastIndex", "]", "=", "inits", ";", "if", "(", "extraInits", "!=", "null", ")", "{", "this", ".", "extraDefiniteInits", "[", "this", ".", "lastIndex", "]", "=", "new", "long", "[", "extraInits", ".", "length", "]", ";", "System", ".", "arraycopy", "(", "extraInits", ",", "0", ",", "this", ".", "extraDefiniteInits", "[", "this", ".", "lastIndex", "]", ",", "0", ",", "extraInits", ".", "length", ")", ";", "}", "return", "this", ".", "lastIndex", "++", ";", "}", "public", "AbstractMethodDeclaration", "referenceMethod", "(", ")", "{", "if", "(", "this", ".", "referenceContext", "instanceof", "AbstractMethodDeclaration", ")", "return", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ";", "return", "null", ";", "}", "public", "TypeDeclaration", "referenceType", "(", ")", "{", "return", "(", "(", "ClassScope", ")", "this", ".", "parent", ")", ".", "referenceContext", ";", "}", "}", "</s>" ]
5,627
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ";", "import", "java", ".", "util", ".", "Arrays", ";", "import", "java", ".", "util", ".", "Comparator", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "MethodDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "SimpleLookupTable", ";", "abstract", "public", "class", "ReferenceBinding", "extends", "TypeBinding", "{", "public", "char", "[", "]", "[", "]", "compoundName", ";", "public", "char", "[", "]", "sourceName", ";", "public", "int", "modifiers", ";", "public", "PackageBinding", "fPackage", ";", "char", "[", "]", "fileName", ";", "char", "[", "]", "constantPoolName", ";", "char", "[", "]", "signature", ";", "private", "SimpleLookupTable", "compatibleCache", ";", "public", "static", "final", "ReferenceBinding", "LUB_GENERIC", "=", "new", "ReferenceBinding", "(", ")", "{", "}", ";", "private", "static", "final", "Comparator", "FIELD_COMPARATOR", "=", "new", "Comparator", "(", ")", "{", "public", "int", "compare", "(", "Object", "o1", ",", "Object", "o2", ")", "{", "char", "[", "]", "n1", "=", "(", "(", "FieldBinding", ")", "o1", ")", ".", "name", ";", "char", "[", "]", "n2", "=", "(", "(", "FieldBinding", ")", "o2", ")", ".", "name", ";", "return", "ReferenceBinding", ".", "compare", "(", "n1", ",", "n2", ",", "n1", ".", "length", ",", "n2", ".", "length", ")", ";", "}", "}", ";", "private", "static", "final", "Comparator", "METHOD_COMPARATOR", "=", "new", "Comparator", "(", ")", "{", "public", "int", "compare", "(", "Object", "o1", ",", "Object", "o2", ")", "{", "MethodBinding", "m1", "=", "(", "MethodBinding", ")", "o1", ";", "MethodBinding", "m2", "=", "(", "MethodBinding", ")", "o2", ";", "char", "[", "]", "s1", "=", "m1", ".", "selector", ";", "char", "[", "]", "s2", "=", "m2", ".", "selector", ";", "int", "c", "=", "ReferenceBinding", ".", "compare", "(", "s1", ",", "s2", ",", "s1", ".", "length", ",", "s2", ".", "length", ")", ";", "return", "c", "==", "0", "?", "m1", ".", "parameters", ".", "length", "-", "m2", ".", "parameters", ".", "length", ":", "c", ";", "}", "}", ";", "public", "static", "FieldBinding", "binarySearch", "(", "char", "[", "]", "name", ",", "FieldBinding", "[", "]", "sortedFields", ")", "{", "if", "(", "sortedFields", "==", "null", ")", "return", "null", ";", "int", "max", "=", "sortedFields", ".", "length", ";", "if", "(", "max", "==", "0", ")", "return", "null", ";", "int", "left", "=", "0", ",", "right", "=", "max", "-", "1", ",", "nameLength", "=", "name", ".", "length", ";", "int", "mid", "=", "0", ";", "char", "[", "]", "midName", ";", "while", "(", "left", "<=", "right", ")", "{", "mid", "=", "left", "+", "(", "right", "-", "left", ")", "/", "2", ";", "int", "compare", "=", "compare", "(", "name", ",", "midName", "=", "sortedFields", "[", "mid", "]", ".", "name", ",", "nameLength", ",", "midName", ".", "length", ")", ";", "if", "(", "compare", "<", "0", ")", "{", "right", "=", "mid", "-", "1", ";", "}", "else", "if", "(", "compare", ">", "0", ")", "{", "left", "=", "mid", "+", "1", ";", "}", "else", "{", "return", "sortedFields", "[", "mid", "]", ";", "}", "}", "return", "null", ";", "}", "public", "static", "long", "binarySearch", "(", "char", "[", "]", "selector", ",", "MethodBinding", "[", "]", "sortedMethods", ")", "{", "if", "(", "sortedMethods", "==", "null", ")", "return", "-", "1", ";", "int", "max", "=", "sortedMethods", ".", "length", ";", "if", "(", "max", "==", "0", ")", "return", "-", "1", ";", "int", "left", "=", "0", ",", "right", "=", "max", "-", "1", ",", "selectorLength", "=", "selector", ".", "length", ";", "int", "mid", "=", "0", ";", "char", "[", "]", "midSelector", ";", "while", "(", "left", "<=", "right", ")", "{", "mid", "=", "left", "+", "(", "right", "-", "left", ")", "/", "2", ";", "int", "compare", "=", "compare", "(", "selector", ",", "midSelector", "=", "sortedMethods", "[", "mid", "]", ".", "selector", ",", "selectorLength", ",", "midSelector", ".", "length", ")", ";", "if", "(", "compare", "<", "0", ")", "{", "right", "=", "mid", "-", "1", ";", "}", "else", "if", "(", "compare", ">", "0", ")", "{", "left", "=", "mid", "+", "1", ";", "}", "else", "{", "int", "start", "=", "mid", ",", "end", "=", "mid", ";", "while", "(", "start", ">", "left", "&&", "CharOperation", ".", "equals", "(", "sortedMethods", "[", "start", "-", "1", "]", ".", "selector", ",", "selector", ")", ")", "{", "start", "--", ";", "}", "while", "(", "end", "<", "right", "&&", "CharOperation", ".", "equals", "(", "sortedMethods", "[", "end", "+", "1", "]", ".", "selector", ",", "selector", ")", ")", "{", "end", "++", ";", "}", "return", "start", "+", "(", "(", "long", ")", "end", "<<", "32", ")", ";", "}", "}", "return", "-", "1", ";", "}", "static", "int", "compare", "(", "char", "[", "]", "str1", ",", "char", "[", "]", "str2", ",", "int", "len1", ",", "int", "len2", ")", "{", "int", "n", "=", "Math", ".", "min", "(", "len1", ",", "len2", ")", ";", "int", "i", "=", "0", ";", "while", "(", "n", "--", "!=", "0", ")", "{", "char", "c1", "=", "str1", "[", "i", "]", ";", "char", "c2", "=", "str2", "[", "i", "++", "]", ";", "if", "(", "c1", "!=", "c2", ")", "{", "return", "c1", "-", "c2", ";", "}", "}", "return", "len1", "-", "len2", ";", "}", "public", "static", "void", "sortFields", "(", "FieldBinding", "[", "]", "sortedFields", ",", "int", "left", ",", "int", "right", ")", "{", "Arrays", ".", "sort", "(", "sortedFields", ",", "left", ",", "right", ",", "FIELD_COMPARATOR", ")", ";", "}", "public", "static", "void", "sortMethods", "(", "MethodBinding", "[", "]", "sortedMethods", ",", "int", "left", ",", "int", "right", ")", "{", "Arrays", ".", "sort", "(", "sortedMethods", ",", "left", ",", "right", ",", "METHOD_COMPARATOR", ")", ";", "}", "public", "FieldBinding", "[", "]", "availableFields", "(", ")", "{", "return", "fields", "(", ")", ";", "}", "public", "MethodBinding", "[", "]", "availableMethods", "(", ")", "{", "return", "methods", "(", ")", ";", "}", "public", "boolean", "canBeInstantiated", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "(", "ClassFileConstants", ".", "AccAbstract", "|", "ClassFileConstants", ".", "AccInterface", "|", "ClassFileConstants", ".", "AccEnum", "|", "ClassFileConstants", ".", "AccAnnotation", ")", ")", "==", "0", ";", "}", "public", "final", "boolean", "canBeSeenBy", "(", "PackageBinding", "invocationPackage", ")", "{", "if", "(", "isPublic", "(", ")", ")", "return", "true", ";", "if", "(", "isPrivate", "(", ")", ")", "return", "false", ";", "return", "invocationPackage", "==", "this", ".", "fPackage", ";", "}", "public", "final", "boolean", "canBeSeenBy", "(", "ReferenceBinding", "receiverType", ",", "ReferenceBinding", "invocationType", ")", "{", "if", "(", "isPublic", "(", ")", ")", "return", "true", ";", "if", "(", "invocationType", "==", "this", "&&", "invocationType", "==", "receiverType", ")", "return", "true", ";", "if", "(", "isProtected", "(", ")", ")", "{", "if", "(", "invocationType", "==", "this", ")", "return", "true", ";", "if", "(", "invocationType", ".", "fPackage", "==", "this", ".", "fPackage", ")", "return", "true", ";", "TypeBinding", "currentType", "=", "invocationType", ".", "erasure", "(", ")", ";", "TypeBinding", "declaringClass", "=", "enclosingType", "(", ")", ".", "erasure", "(", ")", ";", "if", "(", "declaringClass", "==", "invocationType", ")", "return", "true", ";", "if", "(", "declaringClass", "==", "null", ")", "return", "false", ";", "do", "{", "if", "(", "currentType", ".", "findSuperTypeOriginatingFrom", "(", "declaringClass", ")", "!=", "null", ")", "return", "true", ";", "currentType", "=", "currentType", ".", "enclosingType", "(", ")", ";", "}", "while", "(", "currentType", "!=", "null", ")", ";", "return", "false", ";", "}", "if", "(", "isPrivate", "(", ")", ")", "{", "receiverCheck", ":", "{", "if", "(", "!", "(", "receiverType", "==", "this", "||", "receiverType", "==", "enclosingType", "(", ")", ")", ")", "{", "if", "(", "receiverType", ".", "isTypeVariable", "(", ")", ")", "{", "TypeVariableBinding", "typeVariable", "=", "(", "TypeVariableBinding", ")", "receiverType", ";", "if", "(", "typeVariable", ".", "isErasureBoundTo", "(", "erasure", "(", ")", ")", "||", "typeVariable", ".", "isErasureBoundTo", "(", "enclosingType", "(", ")", ".", "erasure", "(", ")", ")", ")", "break", "receiverCheck", ";", "}", "return", "false", ";", "}", "}", "if", "(", "invocationType", "!=", "this", ")", "{", "ReferenceBinding", "outerInvocationType", "=", "invocationType", ";", "ReferenceBinding", "temp", "=", "outerInvocationType", ".", "enclosingType", "(", ")", ";", "while", "(", "temp", "!=", "null", ")", "{", "outerInvocationType", "=", "temp", ";", "temp", "=", "temp", ".", "enclosingType", "(", ")", ";", "}", "ReferenceBinding", "outerDeclaringClass", "=", "(", "ReferenceBinding", ")", "erasure", "(", ")", ";", "temp", "=", "outerDeclaringClass", ".", "enclosingType", "(", ")", ";", "while", "(", "temp", "!=", "null", ")", "{", "outerDeclaringClass", "=", "temp", ";", "temp", "=", "temp", ".", "enclosingType", "(", ")", ";", "}", "if", "(", "outerInvocationType", "!=", "outerDeclaringClass", ")", "return", "false", ";", "}", "return", "true", ";", "}", "if", "(", "invocationType", ".", "fPackage", "!=", "this", ".", "fPackage", ")", "return", "false", ";", "ReferenceBinding", "currentType", "=", "receiverType", ";", "TypeBinding", "originalDeclaringClass", "=", "(", "enclosingType", "(", ")", "==", "null", "?", "this", ":", "enclosingType", "(", ")", ")", ".", "original", "(", ")", ";", "do", "{", "if", "(", "currentType", ".", "isCapture", "(", ")", ")", "{", "if", "(", "originalDeclaringClass", "==", "currentType", ".", "erasure", "(", ")", ".", "original", "(", ")", ")", "return", "true", ";", "}", "else", "{", "if", "(", "originalDeclaringClass", "==", "currentType", ".", "original", "(", ")", ")", "return", "true", ";", "}", "PackageBinding", "currentPackage", "=", "currentType", ".", "fPackage", ";", "if", "(", "currentPackage", "!=", "null", "&&", "currentPackage", "!=", "this", ".", "fPackage", ")", "return", "false", ";", "}", "while", "(", "(", "currentType", "=", "currentType", ".", "superclass", "(", ")", ")", "!=", "null", ")", ";", "return", "false", ";", "}", "public", "final", "boolean", "canBeSeenBy", "(", "Scope", "scope", ")", "{", "if", "(", "scope", ".", "compilationUnitScope", "(", ")", "!=", "null", "&&", "scope", ".", "compilationUnitScope", "(", ")", ".", "canSeeEverything", "(", ")", ")", "{", "return", "true", ";", "}", "if", "(", "isPublic", "(", ")", ")", "return", "true", ";", "SourceTypeBinding", "invocationType", "=", "scope", ".", "enclosingSourceType", "(", ")", ";", "if", "(", "invocationType", "==", "this", ")", "return", "true", ";", "if", "(", "invocationType", "==", "null", ")", "return", "!", "isPrivate", "(", ")", "&&", "scope", ".", "getCurrentPackage", "(", ")", "==", "this", ".", "fPackage", ";", "if", "(", "isProtected", "(", ")", ")", "{", "if", "(", "invocationType", ".", "fPackage", "==", "this", ".", "fPackage", ")", "return", "true", ";", "TypeBinding", "declaringClass", "=", "enclosingType", "(", ")", ";", "if", "(", "declaringClass", "==", "null", ")", "return", "false", ";", "declaringClass", "=", "declaringClass", ".", "erasure", "(", ")", ";", "TypeBinding", "currentType", "=", "invocationType", ".", "erasure", "(", ")", ";", "do", "{", "if", "(", "declaringClass", "==", "invocationType", ")", "return", "true", ";", "if", "(", "currentType", ".", "findSuperTypeOriginatingFrom", "(", "declaringClass", ")", "!=", "null", ")", "return", "true", ";", "currentType", "=", "currentType", ".", "enclosingType", "(", ")", ";", "}", "while", "(", "currentType", "!=", "null", ")", ";", "return", "false", ";", "}", "if", "(", "isPrivate", "(", ")", ")", "{", "ReferenceBinding", "outerInvocationType", "=", "invocationType", ";", "ReferenceBinding", "temp", "=", "outerInvocationType", ".", "enclosingType", "(", ")", ";", "while", "(", "temp", "!=", "null", ")", "{", "outerInvocationType", "=", "temp", ";", "temp", "=", "temp", ".", "enclosingType", "(", ")", ";", "}", "ReferenceBinding", "outerDeclaringClass", "=", "(", "ReferenceBinding", ")", "erasure", "(", ")", ";", "temp", "=", "outerDeclaringClass", ".", "enclosingType", "(", ")", ";", "while", "(", "temp", "!=", "null", ")", "{", "outerDeclaringClass", "=", "temp", ";", "temp", "=", "temp", ".", "enclosingType", "(", ")", ";", "}", "return", "outerInvocationType", "==", "outerDeclaringClass", ";", "}", "return", "invocationType", ".", "fPackage", "==", "this", ".", "fPackage", ";", "}", "public", "char", "[", "]", "computeGenericTypeSignature", "(", "TypeVariableBinding", "[", "]", "typeVariables", ")", "{", "boolean", "isMemberOfGeneric", "=", "isMemberType", "(", ")", "&&", "(", "enclosingType", "(", ")", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccGenericSignature", ")", "!=", "0", ";", "if", "(", "typeVariables", "==", "Binding", ".", "NO_TYPE_VARIABLES", "&&", "!", "isMemberOfGeneric", ")", "{", "return", "signature", "(", ")", ";", "}", "StringBuffer", "sig", "=", "new", "StringBuffer", "(", "10", ")", ";", "if", "(", "isMemberOfGeneric", ")", "{", "char", "[", "]", "typeSig", "=", "enclosingType", "(", ")", ".", "genericTypeSignature", "(", ")", ";", "sig", ".", "append", "(", "typeSig", ",", "0", ",", "typeSig", ".", "length", "-", "1", ")", ";", "sig", ".", "append", "(", "'.'", ")", ";", "sig", ".", "append", "(", "this", ".", "sourceName", ")", ";", "}", "else", "{", "char", "[", "]", "typeSig", "=", "signature", "(", ")", ";", "sig", ".", "append", "(", "typeSig", ",", "0", ",", "typeSig", ".", "length", "-", "1", ")", ";", "}", "if", "(", "typeVariables", "==", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "sig", ".", "append", "(", "';'", ")", ";", "}", "else", "{", "sig", ".", "append", "(", "'<'", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "typeVariables", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "sig", ".", "append", "(", "typeVariables", "[", "i", "]", ".", "genericTypeSignature", "(", ")", ")", ";", "}", "sig", ".", "append", "(", "\">;\"", ")", ";", "}", "int", "sigLength", "=", "sig", ".", "length", "(", ")", ";", "char", "[", "]", "result", "=", "new", "char", "[", "sigLength", "]", ";", "sig", ".", "getChars", "(", "0", ",", "sigLength", ",", "result", ",", "0", ")", ";", "return", "result", ";", "}", "public", "void", "computeId", "(", ")", "{", "switch", "(", "this", ".", "compoundName", ".", "length", ")", "{", "case", "3", ":", "if", "(", "!", "CharOperation", ".", "equals", "(", "TypeConstants", ".", "JAVA", ",", "this", ".", "compoundName", "[", "0", "]", ")", ")", "return", ";", "char", "[", "]", "packageName", "=", "this", ".", "compoundName", "[", "1", "]", ";", "if", "(", "packageName", ".", "length", "==", "0", ")", "return", ";", "char", "[", "]", "typeName", "=", "this", ".", "compoundName", "[", "2", "]", ";", "if", "(", "typeName", ".", "length", "==", "0", ")", "return", ";", "if", "(", "!", "CharOperation", ".", "equals", "(", "TypeConstants", ".", "LANG", ",", "this", ".", "compoundName", "[", "1", "]", ")", ")", "{", "switch", "(", "packageName", "[", "0", "]", ")", "{", "case", "'i'", ":", "if", "(", "CharOperation", ".", "equals", "(", "packageName", ",", "TypeConstants", ".", "IO", ")", ")", "{", "switch", "(", "typeName", "[", "0", "]", ")", "{", "case", "'E'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_IO_EXTERNALIZABLE", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaIoExternalizable", ";", "return", ";", "case", "'I'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_IO_IOEXCEPTION", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaIoException", ";", "return", ";", "case", "'O'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_IO_OBJECTSTREAMEXCEPTION", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaIoObjectStreamException", ";", "return", ";", "case", "'P'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_IO_PRINTSTREAM", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaIoPrintStream", ";", "return", ";", "case", "'S'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_IO_SERIALIZABLE", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaIoSerializable", ";", "return", ";", "}", "}", "return", ";", "case", "'u'", ":", "if", "(", "CharOperation", ".", "equals", "(", "packageName", ",", "TypeConstants", ".", "UTIL", ")", ")", "{", "switch", "(", "typeName", "[", "0", "]", ")", "{", "case", "'C'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_UTIL_COLLECTION", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaUtilCollection", ";", "return", ";", "case", "'I'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_UTIL_ITERATOR", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaUtilIterator", ";", "return", ";", "}", "}", "return", ";", "}", "return", ";", "}", "switch", "(", "typeName", "[", "0", "]", ")", "{", "case", "'A'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_ASSERTIONERROR", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangAssertionError", ";", "return", ";", "case", "'B'", ":", "switch", "(", "typeName", ".", "length", ")", "{", "case", "4", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_BYTE", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangByte", ";", "return", ";", "case", "7", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_BOOLEAN", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangBoolean", ";", "return", ";", "}", "return", ";", "case", "'C'", ":", "switch", "(", "typeName", ".", "length", ")", "{", "case", "5", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_CLASS", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangClass", ";", "return", ";", "case", "9", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_CHARACTER", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangCharacter", ";", "else", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_CLONEABLE", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangCloneable", ";", "return", ";", "case", "22", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_CLASSNOTFOUNDEXCEPTION", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangClassNotFoundException", ";", "return", ";", "}", "return", ";", "case", "'D'", ":", "switch", "(", "typeName", ".", "length", ")", "{", "case", "6", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_DOUBLE", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangDouble", ";", "return", ";", "case", "10", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_DEPRECATED", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangDeprecated", ";", "return", ";", "}", "return", ";", "case", "'E'", ":", "switch", "(", "typeName", ".", "length", ")", "{", "case", "4", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_ENUM", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangEnum", ";", "return", ";", "case", "5", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_ERROR", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangError", ";", "return", ";", "case", "9", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_EXCEPTION", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangException", ";", "return", ";", "}", "return", ";", "case", "'F'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_FLOAT", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangFloat", ";", "return", ";", "case", "'I'", ":", "switch", "(", "typeName", ".", "length", ")", "{", "case", "7", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_INTEGER", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangInteger", ";", "return", ";", "case", "8", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_ITERABLE", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangIterable", ";", "return", ";", "case", "24", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_ILLEGALARGUMENTEXCEPTION", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangIllegalArgumentException", ";", "return", ";", "}", "return", ";", "case", "'L'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_LONG", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangLong", ";", "return", ";", "case", "'N'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_NOCLASSDEFERROR", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangNoClassDefError", ";", "return", ";", "case", "'O'", ":", "switch", "(", "typeName", ".", "length", ")", "{", "case", "6", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_OBJECT", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangObject", ";", "return", ";", "case", "8", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_OVERRIDE", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangOverride", ";", "return", ";", "}", "return", ";", "case", "'R'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_RUNTIMEEXCEPTION", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangRuntimeException", ";", "break", ";", "case", "'S'", ":", "switch", "(", "typeName", ".", "length", ")", "{", "case", "5", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_SHORT", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangShort", ";", "return", ";", "case", "6", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_STRING", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangString", ";", "else", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_SYSTEM", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangSystem", ";", "return", ";", "case", "12", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_STRINGBUFFER", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangStringBuffer", ";", "return", ";", "case", "13", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_STRINGBUILDER", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangStringBuilder", ";", "return", ";", "case", "16", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_SUPPRESSWARNINGS", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangSuppressWarnings", ";", "return", ";", "}", "return", ";", "case", "'T'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_THROWABLE", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangThrowable", ";", "return", ";", "case", "'V'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_VOID", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangVoid", ";", "return", ";", "}", "break", ";", "case", "4", ":", "if", "(", "!", "CharOperation", ".", "equals", "(", "TypeConstants", ".", "JAVA", ",", "this", ".", "compoundName", "[", "0", "]", ")", ")", "return", ";", "if", "(", "!", "CharOperation", ".", "equals", "(", "TypeConstants", ".", "LANG", ",", "this", ".", "compoundName", "[", "1", "]", ")", ")", "return", ";", "packageName", "=", "this", ".", "compoundName", "[", "2", "]", ";", "if", "(", "packageName", ".", "length", "==", "0", ")", "return", ";", "typeName", "=", "this", ".", "compoundName", "[", "3", "]", ";", "if", "(", "typeName", ".", "length", "==", "0", ")", "return", ";", "switch", "(", "packageName", "[", "0", "]", ")", "{", "case", "'a'", ":", "if", "(", "CharOperation", ".", "equals", "(", "packageName", ",", "TypeConstants", ".", "ANNOTATION", ")", ")", "{", "switch", "(", "typeName", "[", "0", "]", ")", "{", "case", "'A'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_ANNOTATION_ANNOTATION", "[", "3", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangAnnotationAnnotation", ";", "return", ";", "case", "'D'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_ANNOTATION_DOCUMENTED", "[", "3", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangAnnotationDocumented", ";", "return", ";", "case", "'E'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_ANNOTATION_ELEMENTTYPE", "[", "3", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangAnnotationElementType", ";", "return", ";", "case", "'I'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_ANNOTATION_INHERITED", "[", "3", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangAnnotationInherited", ";", "return", ";", "case", "'R'", ":", "switch", "(", "typeName", ".", "length", ")", "{", "case", "9", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_ANNOTATION_RETENTION", "[", "3", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangAnnotationRetention", ";", "return", ";", "case", "15", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_ANNOTATION_RETENTIONPOLICY", "[", "3", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangAnnotationRetentionPolicy", ";", "return", ";", "}", "return", ";", "case", "'T'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_ANNOTATION_TARGET", "[", "3", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangAnnotationTarget", ";", "return", ";", "}", "}", "return", ";", "case", "'r'", ":", "if", "(", "CharOperation", ".", "equals", "(", "packageName", ",", "TypeConstants", ".", "REFLECT", ")", ")", "{", "switch", "(", "typeName", "[", "0", "]", ")", "{", "case", "'C'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_REFLECT_CONSTRUCTOR", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangReflectConstructor", ";", "return", ";", "case", "'F'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_REFLECT_FIELD", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangReflectField", ";", "return", ";", "case", "'M'", ":", "if", "(", "CharOperation", ".", "equals", "(", "typeName", ",", "TypeConstants", ".", "JAVA_LANG_REFLECT_METHOD", "[", "2", "]", ")", ")", "this", ".", "id", "=", "TypeIds", ".", "T_JavaLangReflectMethod", ";", "return", ";", "}", "}", "return", ";", "}", "break", ";", "}", "}", "public", "char", "[", "]", "computeUniqueKey", "(", "boolean", "isLeaf", ")", "{", "if", "(", "!", "isLeaf", ")", "return", "signature", "(", ")", ";", "return", "genericTypeSignature", "(", ")", ";", "}", "public", "char", "[", "]", "constantPoolName", "(", ")", "{", "if", "(", "this", ".", "constantPoolName", "!=", "null", ")", "return", "this", ".", "constantPoolName", ";", "return", "this", ".", "constantPoolName", "=", "CharOperation", ".", "concatWith", "(", "this", ".", "compoundName", ",", "'/'", ")", ";", "}", "public", "String", "debugName", "(", ")", "{", "return", "(", "this", ".", "compoundName", "!=", "null", ")", "?", "new", "String", "(", "readableName", "(", ")", ")", ":", "\"UNNAMED", "TYPE\"", ";", "}", "public", "final", "int", "depth", "(", ")", "{", "int", "depth", "=", "0", ";", "ReferenceBinding", "current", "=", "this", ";", "while", "(", "(", "current", "=", "current", ".", "enclosingType", "(", ")", ")", "!=", "null", ")", "depth", "++", ";", "return", "depth", ";", "}", "public", "boolean", "detectAnnotationCycle", "(", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "EndAnnotationCheck", ")", "!=", "0", ")", "return", "false", ";", "if", "(", "(", "this", ".", "tagBits", "&", "TagBits", ".", "BeginAnnotationCheck", ")", "!=", "0", ")", "return", "true", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "BeginAnnotationCheck", ";", "MethodBinding", "[", "]", "currentMethods", "=", "methods", "(", ")", ";", "boolean", "inCycle", "=", "false", ";", "for", "(", "int", "i", "=", "0", ",", "l", "=", "currentMethods", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "{", "TypeBinding", "returnType", "=", "currentMethods", "[", "i", "]", ".", "returnType", ".", "leafComponentType", "(", ")", ".", "erasure", "(", ")", ";", "if", "(", "this", "==", "returnType", ")", "{", "if", "(", "this", "instanceof", "SourceTypeBinding", ")", "{", "MethodDeclaration", "decl", "=", "(", "MethodDeclaration", ")", "currentMethods", "[", "i", "]", ".", "sourceMethod", "(", ")", ";", "(", "(", "SourceTypeBinding", ")", "this", ")", ".", "scope", ".", "problemReporter", "(", ")", ".", "annotationCircularity", "(", "this", ",", "this", ",", "decl", "!=", "null", "?", "decl", ".", "returnType", ":", "null", ")", ";", "}", "}", "else", "if", "(", "returnType", ".", "isAnnotationType", "(", ")", "&&", "(", "(", "ReferenceBinding", ")", "returnType", ")", ".", "detectAnnotationCycle", "(", ")", ")", "{", "if", "(", "this", "instanceof", "SourceTypeBinding", ")", "{", "MethodDeclaration", "decl", "=", "(", "MethodDeclaration", ")", "currentMethods", "[", "i", "]", ".", "sourceMethod", "(", ")", ";", "(", "(", "SourceTypeBinding", ")", "this", ")", ".", "scope", ".", "problemReporter", "(", ")", ".", "annotationCircularity", "(", "this", ",", "returnType", ",", "decl", "!=", "null", "?", "decl", ".", "returnType", ":", "null", ")", ";", "}", "inCycle", "=", "true", ";", "}", "}", "if", "(", "inCycle", ")", "return", "true", ";", "this", ".", "tagBits", "|=", "TagBits", ".", "EndAnnotationCheck", ";", "return", "false", ";", "}", "public", "final", "ReferenceBinding", "enclosingTypeAt", "(", "int", "relativeDepth", ")", "{", "ReferenceBinding", "current", "=", "this", ";", "while", "(", "relativeDepth", "--", ">", "0", "&&", "current", "!=", "null", ")", "current", "=", "current", ".", "enclosingType", "(", ")", ";", "return", "current", ";", "}", "public", "int", "enumConstantCount", "(", ")", "{", "int", "count", "=", "0", ";", "FieldBinding", "[", "]", "fields", "=", "fields", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "fields", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "(", "fields", "[", "i", "]", ".", "modifiers", "&", "ClassFileConstants", ".", "AccEnum", ")", "!=", "0", ")", "count", "++", ";", "}", "return", "count", ";", "}", "public", "int", "fieldCount", "(", ")", "{", "return", "fields", "(", ")", ".", "length", ";", "}", "public", "FieldBinding", "[", "]", "fields", "(", ")", "{", "return", "Binding", ".", "NO_FIELDS", ";", "}", "public", "final", "int", "getAccessFlags", "(", ")", "{", "return", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccJustFlag", ";", "}", "public", "AnnotationBinding", "[", "]", "getAnnotations", "(", ")", "{", "return", "retrieveAnnotations", "(", "this", ")", ";", "}", "public", "long", "getAnnotationTagBits", "(", ")", "{", "return", "this", ".", "tagBits", ";", "}", "public", "int", "getEnclosingInstancesSlotSize", "(", ")", "{", "if", "(", "isStatic", "(", ")", ")", "return", "0", ";", "return", "enclosingType", "(", ")", "==", "null", "?", "0", ":", "1", ";", "}", "public", "MethodBinding", "getExactConstructor", "(", "TypeBinding", "[", "]", "argumentTypes", ")", "{", "return", "null", ";", "}", "public", "MethodBinding", "getExactMethod", "(", "char", "[", "]", "selector", ",", "TypeBinding", "[", "]", "argumentTypes", ",", "CompilationUnitScope", "refScope", ")", "{", "return", "null", ";", "}", "public", "FieldBinding", "getField", "(", "char", "[", "]", "fieldName", ",", "boolean", "needResolve", ")", "{", "return", "null", ";", "}", "public", "char", "[", "]", "getFileName", "(", ")", "{", "return", "this", ".", "fileName", ";", "}", "public", "ReferenceBinding", "getMemberType", "(", "char", "[", "]", "typeName", ")", "{", "ReferenceBinding", "[", "]", "memberTypes", "=", "memberTypes", "(", ")", ";", "for", "(", "int", "i", "=", "memberTypes", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "CharOperation", ".", "equals", "(", "memberTypes", "[", "i", "]", ".", "sourceName", ",", "typeName", ")", ")", "return", "memberTypes", "[", "i", "]", ";", "return", "null", ";", "}", "public", "MethodBinding", "[", "]", "getMethods", "(", "char", "[", "]", "selector", ")", "{", "return", "Binding", ".", "NO_METHODS", ";", "}", "public", "MethodBinding", "[", "]", "getMethods", "(", "char", "[", "]", "selector", ",", "int", "suggestedParameterLength", ")", "{", "return", "getMethods", "(", "selector", ")", ";", "}", "public", "int", "getOuterLocalVariablesSlotSize", "(", ")", "{", "return", "0", ";", "}", "public", "PackageBinding", "getPackage", "(", ")", "{", "return", "this", ".", "fPackage", ";", "}", "public", "TypeVariableBinding", "getTypeVariable", "(", "char", "[", "]", "variableName", ")", "{", "TypeVariableBinding", "[", "]", "typeVariables", "=", "typeVariables", "(", ")", ";", "for", "(", "int", "i", "=", "typeVariables", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "CharOperation", ".", "equals", "(", "typeVariables", "[", "i", "]", ".", "sourceName", ",", "variableName", ")", ")", "return", "typeVariables", "[", "i", "]", ";", "return", "null", ";", "}", "public", "int", "hashCode", "(", ")", "{", "return", "(", "this", ".", "compoundName", "==", "null", "||", "this", ".", "compoundName", ".", "length", "==", "0", ")", "?", "super", ".", "hashCode", "(", ")", ":", "CharOperation", ".", "hashCode", "(", "this", ".", "compoundName", "[", "this", ".", "compoundName", ".", "length", "-", "1", "]", ")", ";", "}", "public", "boolean", "hasIncompatibleSuperType", "(", "ReferenceBinding", "otherType", ")", "{", "if", "(", "this", "==", "otherType", ")", "return", "false", ";", "ReferenceBinding", "[", "]", "interfacesToVisit", "=", "null", ";", "int", "nextPosition", "=", "0", ";", "ReferenceBinding", "currentType", "=", "this", ";", "TypeBinding", "match", ";", "do", "{", "match", "=", "otherType", ".", "findSuperTypeOriginatingFrom", "(", "currentType", ")", ";", "if", "(", "match", "!=", "null", "&&", "match", ".", "isProvablyDistinct", "(", "currentType", ")", ")", "return", "true", ";", "ReferenceBinding", "[", "]", "itsInterfaces", "=", "currentType", ".", "superInterfaces", "(", ")", ";", "if", "(", "itsInterfaces", "!=", "null", "&&", "itsInterfaces", "!=", "Binding", ".", "NO_SUPERINTERFACES", ")", "{", "if", "(", "interfacesToVisit", "==", "null", ")", "{", "interfacesToVisit", "=", "itsInterfaces", ";", "nextPosition", "=", "interfacesToVisit", ".", "length", ";", "}", "else", "{", "int", "itsLength", "=", "itsInterfaces", ".", "length", ";", "if", "(", "nextPosition", "+", "itsLength", ">=", "interfacesToVisit", ".", "length", ")", "System", ".", "arraycopy", "(", "interfacesToVisit", ",", "0", ",", "interfacesToVisit", "=", "new", "ReferenceBinding", "[", "nextPosition", "+", "itsLength", "+", "5", "]", ",", "0", ",", "nextPosition", ")", ";", "nextInterface", ":", "for", "(", "int", "a", "=", "0", ";", "a", "<", "itsLength", ";", "a", "++", ")", "{", "ReferenceBinding", "next", "=", "itsInterfaces", "[", "a", "]", ";", "for", "(", "int", "b", "=", "0", ";", "b", "<", "nextPosition", ";", "b", "++", ")", "if", "(", "next", "==", "interfacesToVisit", "[", "b", "]", ")", "continue", "nextInterface", ";", "interfacesToVisit", "[", "nextPosition", "++", "]", "=", "next", ";", "}", "}", "}", "}", "while", "(", "(", "currentType", "=", "currentType", ".", "superclass", "(", ")", ")", "!=", "null", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "nextPosition", ";", "i", "++", ")", "{", "currentType", "=", "interfacesToVisit", "[", "i", "]", ";", "if", "(", "currentType", "==", "otherType", ")", "return", "false", ";", "match", "=", "otherType", ".", "findSuperTypeOriginatingFrom", "(", "currentType", ")", ";", "if", "(", "match", "!=", "null", "&&", "match", ".", "isProvablyDistinct", "(", "currentType", ")", ")", "return", "true", ";", "ReferenceBinding", "[", "]", "itsInterfaces", "=", "currentType", ".", "superInterfaces", "(", ")", ";", "if", "(", "itsInterfaces", "!=", "null", "&&", "itsInterfaces", "!=", "Binding", ".", "NO_SUPERINTERFACES", ")", "{", "int", "itsLength", "=", "itsInterfaces", ".", "length", ";", "if", "(", "nextPosition", "+", "itsLength", ">=", "interfacesToVisit", ".", "length", ")", "System", ".", "arraycopy", "(", "interfacesToVisit", ",", "0", ",", "interfacesToVisit", "=", "new", "ReferenceBinding", "[", "nextPosition", "+", "itsLength", "+", "5", "]", ",", "0", ",", "nextPosition", ")", ";", "nextInterface", ":", "for", "(", "int", "a", "=", "0", ";", "a", "<", "itsLength", ";", "a", "++", ")", "{", "ReferenceBinding", "next", "=", "itsInterfaces", "[", "a", "]", ";", "for", "(", "int", "b", "=", "0", ";", "b", "<", "nextPosition", ";", "b", "++", ")", "if", "(", "next", "==", "interfacesToVisit", "[", "b", "]", ")", "continue", "nextInterface", ";", "interfacesToVisit", "[", "nextPosition", "++", "]", "=", "next", ";", "}", "}", "}", "return", "false", ";", "}", "public", "boolean", "hasMemberTypes", "(", ")", "{", "return", "false", ";", "}", "public", "final", "boolean", "hasRestrictedAccess", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccRestrictedAccess", ")", "!=", "0", ";", "}", "public", "boolean", "implementsInterface", "(", "ReferenceBinding", "anInterface", ",", "boolean", "searchHierarchy", ")", "{", "if", "(", "this", "==", "anInterface", ")", "return", "true", ";", "ReferenceBinding", "[", "]", "interfacesToVisit", "=", "null", ";", "int", "nextPosition", "=", "0", ";", "ReferenceBinding", "currentType", "=", "this", ";", "do", "{", "ReferenceBinding", "[", "]", "itsInterfaces", "=", "currentType", ".", "superInterfaces", "(", ")", ";", "if", "(", "itsInterfaces", "!=", "null", "&&", "itsInterfaces", "!=", "Binding", ".", "NO_SUPERINTERFACES", ")", "{", "if", "(", "interfacesToVisit", "==", "null", ")", "{", "interfacesToVisit", "=", "itsInterfaces", ";", "nextPosition", "=", "interfacesToVisit", ".", "length", ";", "}", "else", "{", "int", "itsLength", "=", "itsInterfaces", ".", "length", ";", "if", "(", "nextPosition", "+", "itsLength", ">=", "interfacesToVisit", ".", "length", ")", "System", ".", "arraycopy", "(", "interfacesToVisit", ",", "0", ",", "interfacesToVisit", "=", "new", "ReferenceBinding", "[", "nextPosition", "+", "itsLength", "+", "5", "]", ",", "0", ",", "nextPosition", ")", ";", "nextInterface", ":", "for", "(", "int", "a", "=", "0", ";", "a", "<", "itsLength", ";", "a", "++", ")", "{", "ReferenceBinding", "next", "=", "itsInterfaces", "[", "a", "]", ";", "for", "(", "int", "b", "=", "0", ";", "b", "<", "nextPosition", ";", "b", "++", ")", "if", "(", "next", "==", "interfacesToVisit", "[", "b", "]", ")", "continue", "nextInterface", ";", "interfacesToVisit", "[", "nextPosition", "++", "]", "=", "next", ";", "}", "}", "}", "}", "while", "(", "searchHierarchy", "&&", "(", "currentType", "=", "currentType", ".", "superclass", "(", ")", ")", "!=", "null", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "nextPosition", ";", "i", "++", ")", "{", "currentType", "=", "interfacesToVisit", "[", "i", "]", ";", "if", "(", "currentType", ".", "isEquivalentTo", "(", "anInterface", ")", ")", "return", "true", ";", "ReferenceBinding", "[", "]", "itsInterfaces", "=", "currentType", ".", "superInterfaces", "(", ")", ";", "if", "(", "itsInterfaces", "!=", "null", "&&", "itsInterfaces", "!=", "Binding", ".", "NO_SUPERINTERFACES", ")", "{", "int", "itsLength", "=", "itsInterfaces", ".", "length", ";", "if", "(", "nextPosition", "+", "itsLength", ">=", "interfacesToVisit", ".", "length", ")", "System", ".", "arraycopy", "(", "interfacesToVisit", ",", "0", ",", "interfacesToVisit", "=", "new", "ReferenceBinding", "[", "nextPosition", "+", "itsLength", "+", "5", "]", ",", "0", ",", "nextPosition", ")", ";", "nextInterface", ":", "for", "(", "int", "a", "=", "0", ";", "a", "<", "itsLength", ";", "a", "++", ")", "{", "ReferenceBinding", "next", "=", "itsInterfaces", "[", "a", "]", ";", "for", "(", "int", "b", "=", "0", ";", "b", "<", "nextPosition", ";", "b", "++", ")", "if", "(", "next", "==", "interfacesToVisit", "[", "b", "]", ")", "continue", "nextInterface", ";", "interfacesToVisit", "[", "nextPosition", "++", "]", "=", "next", ";", "}", "}", "}", "return", "false", ";", "}", "boolean", "implementsMethod", "(", "MethodBinding", "method", ")", "{", "char", "[", "]", "selector", "=", "method", ".", "selector", ";", "ReferenceBinding", "type", "=", "this", ";", "while", "(", "type", "!=", "null", ")", "{", "MethodBinding", "[", "]", "methods", "=", "type", ".", "methods", "(", ")", ";", "long", "range", ";", "if", "(", "(", "range", "=", "ReferenceBinding", ".", "binarySearch", "(", "selector", ",", "methods", ")", ")", ">=", "0", ")", "{", "int", "start", "=", "(", "int", ")", "range", ",", "end", "=", "(", "int", ")", "(", "range", ">>", "32", ")", ";", "for", "(", "int", "i", "=", "start", ";", "i", "<=", "end", ";", "i", "++", ")", "{", "if", "(", "methods", "[", "i", "]", ".", "areParametersEqual", "(", "method", ")", ")", "return", "true", ";", "}", "}", "type", "=", "type", ".", "superclass", "(", ")", ";", "}", "return", "false", ";", "}", "public", "final", "boolean", "isAbstract", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccAbstract", ")", "!=", "0", ";", "}", "public", "boolean", "isAnnotationType", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccAnnotation", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isBinaryBinding", "(", ")", "{", "return", "(", "this", ".", "tagBits", "&", "TagBits", ".", "IsBinaryBinding", ")", "!=", "0", ";", "}", "public", "boolean", "isClass", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "(", "ClassFileConstants", ".", "AccInterface", "|", "ClassFileConstants", ".", "AccAnnotation", "|", "ClassFileConstants", ".", "AccEnum", ")", ")", "==", "0", ";", "}", "public", "boolean", "isCompatibleWith", "(", "TypeBinding", "otherType", ")", "{", "if", "(", "otherType", "==", "this", ")", "return", "true", ";", "if", "(", "otherType", ".", "id", "==", "TypeIds", ".", "T_JavaLangObject", ")", "return", "true", ";", "Object", "result", ";", "if", "(", "this", ".", "compatibleCache", "==", "null", ")", "{", "this", ".", "compatibleCache", "=", "new", "SimpleLookupTable", "(", "3", ")", ";", "result", "=", "null", ";", "}", "else", "{", "result", "=", "this", ".", "compatibleCache", ".", "get", "(", "otherType", ")", ";", "if", "(", "result", "!=", "null", ")", "{", "return", "result", "==", "Boolean", ".", "TRUE", ";", "}", "}", "this", ".", "compatibleCache", ".", "put", "(", "otherType", ",", "Boolean", ".", "FALSE", ")", ";", "if", "(", "isCompatibleWith0", "(", "otherType", ")", ")", "{", "this", ".", "compatibleCache", ".", "put", "(", "otherType", ",", "Boolean", ".", "TRUE", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", "private", "boolean", "isCompatibleWith0", "(", "TypeBinding", "otherType", ")", "{", "if", "(", "otherType", "==", "this", ")", "return", "true", ";", "if", "(", "otherType", ".", "id", "==", "TypeIds", ".", "T_JavaLangObject", ")", "return", "true", ";", "if", "(", "isEquivalentTo", "(", "otherType", ")", ")", "return", "true", ";", "switch", "(", "otherType", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "WILDCARD_TYPE", ":", "case", "Binding", ".", "INTERSECTION_TYPE", ":", "return", "false", ";", "case", "Binding", ".", "TYPE_PARAMETER", ":", "if", "(", "otherType", ".", "isCapture", "(", ")", ")", "{", "CaptureBinding", "otherCapture", "=", "(", "CaptureBinding", ")", "otherType", ";", "TypeBinding", "otherLowerBound", ";", "if", "(", "(", "otherLowerBound", "=", "otherCapture", ".", "lowerBound", ")", "!=", "null", ")", "{", "if", "(", "otherLowerBound", ".", "isArrayType", "(", ")", ")", "return", "false", ";", "return", "isCompatibleWith", "(", "otherLowerBound", ")", ";", "}", "}", "case", "Binding", ".", "GENERIC_TYPE", ":", "case", "Binding", ".", "TYPE", ":", "case", "Binding", ".", "PARAMETERIZED_TYPE", ":", "case", "Binding", ".", "RAW_TYPE", ":", "switch", "(", "kind", "(", ")", ")", "{", "case", "Binding", ".", "GENERIC_TYPE", ":", "case", "Binding", ".", "PARAMETERIZED_TYPE", ":", "case", "Binding", ".", "RAW_TYPE", ":", "if", "(", "erasure", "(", ")", "==", "otherType", ".", "erasure", "(", ")", ")", "return", "false", ";", "}", "ReferenceBinding", "otherReferenceType", "=", "(", "ReferenceBinding", ")", "otherType", ";", "if", "(", "otherReferenceType", ".", "isInterface", "(", ")", ")", "return", "implementsInterface", "(", "otherReferenceType", ",", "true", ")", ";", "if", "(", "isInterface", "(", ")", ")", "return", "false", ";", "return", "otherReferenceType", ".", "isSuperclassOf", "(", "this", ")", ";", "default", ":", "return", "false", ";", "}", "}", "public", "final", "boolean", "isDefault", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "(", "ClassFileConstants", ".", "AccPublic", "|", "ClassFileConstants", ".", "AccProtected", "|", "ClassFileConstants", ".", "AccPrivate", ")", ")", "==", "0", ";", "}", "public", "final", "boolean", "isDeprecated", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccDeprecated", ")", "!=", "0", ";", "}", "public", "boolean", "isEnum", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccEnum", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isFinal", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccFinal", ")", "!=", "0", ";", "}", "public", "boolean", "isHierarchyBeingConnected", "(", ")", "{", "return", "(", "this", ".", "tagBits", "&", "TagBits", ".", "EndHierarchyCheck", ")", "==", "0", "&&", "(", "this", ".", "tagBits", "&", "TagBits", ".", "BeginHierarchyCheck", ")", "!=", "0", ";", "}", "public", "boolean", "isHierarchyBeingActivelyConnected", "(", ")", "{", "return", "(", "this", ".", "tagBits", "&", "TagBits", ".", "EndHierarchyCheck", ")", "==", "0", "&&", "(", "this", ".", "tagBits", "&", "TagBits", ".", "BeginHierarchyCheck", ")", "!=", "0", "&&", "(", "this", ".", "tagBits", "&", "TagBits", ".", "PauseHierarchyCheck", ")", "==", "0", ";", "}", "public", "boolean", "isHierarchyConnected", "(", ")", "{", "return", "true", ";", "}", "public", "boolean", "isInterface", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccInterface", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isPrivate", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccPrivate", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isOrEnclosedByPrivateType", "(", ")", "{", "if", "(", "isLocalType", "(", ")", ")", "return", "true", ";", "ReferenceBinding", "type", "=", "this", ";", "while", "(", "type", "!=", "null", ")", "{", "if", "(", "(", "type", ".", "modifiers", "&", "ClassFileConstants", ".", "AccPrivate", ")", "!=", "0", ")", "return", "true", ";", "type", "=", "type", ".", "enclosingType", "(", ")", ";", "}", "return", "false", ";", "}", "public", "final", "boolean", "isProtected", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccProtected", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isPublic", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccPublic", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isStatic", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "(", "ClassFileConstants", ".", "AccStatic", "|", "ClassFileConstants", ".", "AccInterface", ")", ")", "!=", "0", "||", "(", "this", ".", "tagBits", "&", "TagBits", ".", "IsNestedType", ")", "==", "0", ";", "}", "public", "final", "boolean", "isStrictfp", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccStrictfp", ")", "!=", "0", ";", "}", "public", "boolean", "isSuperclassOf", "(", "ReferenceBinding", "otherType", ")", "{", "while", "(", "(", "otherType", "=", "otherType", ".", "superclass", "(", ")", ")", "!=", "null", ")", "{", "if", "(", "otherType", ".", "isEquivalentTo", "(", "this", ")", ")", "return", "true", ";", "}", "return", "false", ";", "}", "public", "boolean", "isThrowable", "(", ")", "{", "ReferenceBinding", "current", "=", "this", ";", "do", "{", "switch", "(", "current", ".", "id", ")", "{", "case", "TypeIds", ".", "T_JavaLangThrowable", ":", "case", "TypeIds", ".", "T_JavaLangError", ":", "case", "TypeIds", ".", "T_JavaLangRuntimeException", ":", "case", "TypeIds", ".", "T_JavaLangException", ":", "return", "true", ";", "}", "}", "while", "(", "(", "current", "=", "current", ".", "superclass", "(", ")", ")", "!=", "null", ")", ";", "return", "false", ";", "}", "public", "boolean", "isUncheckedException", "(", "boolean", "includeSupertype", ")", "{", "switch", "(", "this", ".", "id", ")", "{", "case", "TypeIds", ".", "T_JavaLangError", ":", "case", "TypeIds", ".", "T_JavaLangRuntimeException", ":", "return", "true", ";", "case", "TypeIds", ".", "T_JavaLangThrowable", ":", "case", "TypeIds", ".", "T_JavaLangException", ":", "return", "includeSupertype", ";", "}", "ReferenceBinding", "current", "=", "this", ";", "while", "(", "(", "current", "=", "current", ".", "superclass", "(", ")", ")", "!=", "null", ")", "{", "switch", "(", "current", ".", "id", ")", "{", "case", "TypeIds", ".", "T_JavaLangError", ":", "case", "TypeIds", ".", "T_JavaLangRuntimeException", ":", "return", "true", ";", "case", "TypeIds", ".", "T_JavaLangThrowable", ":", "case", "TypeIds", ".", "T_JavaLangException", ":", "return", "false", ";", "}", "}", "return", "false", ";", "}", "public", "final", "boolean", "isUsed", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccLocallyUsed", ")", "!=", "0", ";", "}", "public", "final", "boolean", "isViewedAsDeprecated", "(", ")", "{", "return", "(", "this", ".", "modifiers", "&", "(", "ClassFileConstants", ".", "AccDeprecated", "|", "ExtraCompilerModifiers", ".", "AccDeprecatedImplicitly", ")", ")", "!=", "0", "||", "getPackage", "(", ")", ".", "isViewedAsDeprecated", "(", ")", ";", "}", "public", "ReferenceBinding", "[", "]", "memberTypes", "(", ")", "{", "return", "Binding", ".", "NO_MEMBER_TYPES", ";", "}", "public", "MethodBinding", "[", "]", "methods", "(", ")", "{", "return", "Binding", ".", "NO_METHODS", ";", "}", "public", "final", "ReferenceBinding", "outermostEnclosingType", "(", ")", "{", "ReferenceBinding", "current", "=", "this", ";", "while", "(", "true", ")", "{", "ReferenceBinding", "last", "=", "current", ";", "if", "(", "(", "current", "=", "current", ".", "enclosingType", "(", ")", ")", "==", "null", ")", "return", "last", ";", "}", "}", "public", "char", "[", "]", "qualifiedSourceName", "(", ")", "{", "if", "(", "isMemberType", "(", ")", ")", "return", "CharOperation", ".", "concat", "(", "enclosingType", "(", ")", ".", "qualifiedSourceName", "(", ")", ",", "sourceName", "(", ")", ",", "'.'", ")", ";", "return", "sourceName", "(", ")", ";", "}", "public", "char", "[", "]", "readableName", "(", ")", "{", "char", "[", "]", "readableName", ";", "if", "(", "isMemberType", "(", ")", ")", "{", "readableName", "=", "CharOperation", ".", "concat", "(", "enclosingType", "(", ")", ".", "readableName", "(", ")", ",", "this", ".", "sourceName", ",", "'.'", ")", ";", "}", "else", "{", "readableName", "=", "CharOperation", ".", "concatWith", "(", "this", ".", "compoundName", ",", "'.'", ")", ";", "}", "TypeVariableBinding", "[", "]", "typeVars", ";", "if", "(", "(", "typeVars", "=", "typeVariables", "(", ")", ")", "!=", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "StringBuffer", "nameBuffer", "=", "new", "StringBuffer", "(", "10", ")", ";", "nameBuffer", ".", "append", "(", "readableName", ")", ".", "append", "(", "'<'", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "typeVars", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "nameBuffer", ".", "append", "(", "','", ")", ";", "nameBuffer", ".", "append", "(", "typeVars", "[", "i", "]", ".", "readableName", "(", ")", ")", ";", "}", "nameBuffer", ".", "append", "(", "'>'", ")", ";", "int", "nameLength", "=", "nameBuffer", ".", "length", "(", ")", ";", "readableName", "=", "new", "char", "[", "nameLength", "]", ";", "nameBuffer", ".", "getChars", "(", "0", ",", "nameLength", ",", "readableName", ",", "0", ")", ";", "}", "return", "readableName", ";", "}", "public", "AnnotationHolder", "retrieveAnnotationHolder", "(", "Binding", "binding", ",", "boolean", "forceInitialization", ")", "{", "SimpleLookupTable", "store", "=", "storedAnnotations", "(", "false", ")", ";", "return", "store", "==", "null", "?", "null", ":", "(", "AnnotationHolder", ")", "store", ".", "get", "(", "binding", ")", ";", "}", "AnnotationBinding", "[", "]", "retrieveAnnotations", "(", "Binding", "binding", ")", "{", "AnnotationHolder", "holder", "=", "retrieveAnnotationHolder", "(", "binding", ",", "true", ")", ";", "return", "holder", "==", "null", "?", "Binding", ".", "NO_ANNOTATIONS", ":", "holder", ".", "getAnnotations", "(", ")", ";", "}", "public", "void", "setAnnotations", "(", "AnnotationBinding", "[", "]", "annotations", ")", "{", "storeAnnotations", "(", "this", ",", "annotations", ")", ";", "}", "public", "char", "[", "]", "shortReadableName", "(", ")", "{", "char", "[", "]", "shortReadableName", ";", "if", "(", "isMemberType", "(", ")", ")", "{", "shortReadableName", "=", "CharOperation", ".", "concat", "(", "enclosingType", "(", ")", ".", "shortReadableName", "(", ")", ",", "this", ".", "sourceName", ",", "'.'", ")", ";", "}", "else", "{", "shortReadableName", "=", "this", ".", "sourceName", ";", "}", "TypeVariableBinding", "[", "]", "typeVars", ";", "if", "(", "(", "typeVars", "=", "typeVariables", "(", ")", ")", "!=", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "StringBuffer", "nameBuffer", "=", "new", "StringBuffer", "(", "10", ")", ";", "nameBuffer", ".", "append", "(", "shortReadableName", ")", ".", "append", "(", "'<'", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "typeVars", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "nameBuffer", ".", "append", "(", "','", ")", ";", "nameBuffer", ".", "append", "(", "typeVars", "[", "i", "]", ".", "shortReadableName", "(", ")", ")", ";", "}", "nameBuffer", ".", "append", "(", "'>'", ")", ";", "int", "nameLength", "=", "nameBuffer", ".", "length", "(", ")", ";", "shortReadableName", "=", "new", "char", "[", "nameLength", "]", ";", "nameBuffer", ".", "getChars", "(", "0", ",", "nameLength", ",", "shortReadableName", ",", "0", ")", ";", "}", "return", "shortReadableName", ";", "}", "public", "char", "[", "]", "signature", "(", ")", "{", "if", "(", "this", ".", "signature", "!=", "null", ")", "return", "this", ".", "signature", ";", "return", "this", ".", "signature", "=", "CharOperation", ".", "concat", "(", "'L'", ",", "constantPoolName", "(", ")", ",", "';'", ")", ";", "}", "public", "char", "[", "]", "sourceName", "(", ")", "{", "return", "this", ".", "sourceName", ";", "}", "void", "storeAnnotationHolder", "(", "Binding", "binding", ",", "AnnotationHolder", "holder", ")", "{", "if", "(", "holder", "==", "null", ")", "{", "SimpleLookupTable", "store", "=", "storedAnnotations", "(", "false", ")", ";", "if", "(", "store", "!=", "null", ")", "store", ".", "removeKey", "(", "binding", ")", ";", "}", "else", "{", "SimpleLookupTable", "store", "=", "storedAnnotations", "(", "true", ")", ";", "if", "(", "store", "!=", "null", ")", "store", ".", "put", "(", "binding", ",", "holder", ")", ";", "}", "}", "void", "storeAnnotations", "(", "Binding", "binding", ",", "AnnotationBinding", "[", "]", "annotations", ")", "{", "AnnotationHolder", "holder", "=", "null", ";", "if", "(", "annotations", "==", "null", "||", "annotations", ".", "length", "==", "0", ")", "{", "SimpleLookupTable", "store", "=", "storedAnnotations", "(", "false", ")", ";", "if", "(", "store", "!=", "null", ")", "holder", "=", "(", "AnnotationHolder", ")", "store", ".", "get", "(", "binding", ")", ";", "if", "(", "holder", "==", "null", ")", "return", ";", "}", "else", "{", "SimpleLookupTable", "store", "=", "storedAnnotations", "(", "true", ")", ";", "if", "(", "store", "==", "null", ")", "return", ";", "holder", "=", "(", "AnnotationHolder", ")", "store", ".", "get", "(", "binding", ")", ";", "if", "(", "holder", "==", "null", ")", "holder", "=", "new", "AnnotationHolder", "(", ")", ";", "}", "storeAnnotationHolder", "(", "binding", ",", "holder", ".", "setAnnotations", "(", "annotations", ")", ")", ";", "}", "SimpleLookupTable", "storedAnnotations", "(", "boolean", "forceInitialize", ")", "{", "return", "null", ";", "}", "public", "ReferenceBinding", "superclass", "(", ")", "{", "return", "null", ";", "}", "public", "ReferenceBinding", "[", "]", "superInterfaces", "(", ")", "{", "return", "Binding", ".", "NO_SUPERINTERFACES", ";", "}", "public", "ReferenceBinding", "[", "]", "syntheticEnclosingInstanceTypes", "(", ")", "{", "if", "(", "isStatic", "(", ")", ")", "return", "null", ";", "ReferenceBinding", "enclosingType", "=", "enclosingType", "(", ")", ";", "if", "(", "enclosingType", "==", "null", ")", "return", "null", ";", "return", "new", "ReferenceBinding", "[", "]", "{", "enclosingType", "}", ";", "}", "public", "SyntheticArgumentBinding", "[", "]", "syntheticOuterLocalVariables", "(", ")", "{", "return", "null", ";", "}", "MethodBinding", "[", "]", "unResolvedMethods", "(", ")", "{", "return", "methods", "(", ")", ";", "}", "public", "MethodBinding", "[", "]", "getAnyExtraMethods", "(", "char", "[", "]", "selector", ")", "{", "return", "null", ";", "}", "}", "</s>" ]
5,628
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ";", "public", "interface", "IErrorHandlingPolicy", "{", "boolean", "proceedOnErrors", "(", ")", ";", "boolean", "stopOnFirstError", "(", ")", ";", "}", "</s>" ]
5,629
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "IProblem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ClassScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "CompilationUnitScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MethodScope", ";", "public", "abstract", "class", "ASTVisitor", "{", "public", "void", "acceptProblem", "(", "IProblem", "problem", ")", "{", "}", "public", "void", "endVisit", "(", "AllocationExpression", "allocationExpression", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "AND_AND_Expression", "and_and_Expression", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "AnnotationMethodDeclaration", "annotationTypeDeclaration", ",", "ClassScope", "classScope", ")", "{", "}", "public", "void", "endVisit", "(", "Argument", "argument", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "Argument", "argument", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ArrayAllocationExpression", "arrayAllocationExpression", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ArrayInitializer", "arrayInitializer", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ArrayQualifiedTypeReference", "arrayQualifiedTypeReference", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ArrayQualifiedTypeReference", "arrayQualifiedTypeReference", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ArrayReference", "arrayReference", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ArrayTypeReference", "arrayTypeReference", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ArrayTypeReference", "arrayTypeReference", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "AssertStatement", "assertStatement", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "Assignment", "assignment", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "BinaryExpression", "binaryExpression", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "Block", "block", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "BreakStatement", "breakStatement", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "CaseStatement", "caseStatement", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "CastExpression", "castExpression", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "CharLiteral", "charLiteral", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ClassLiteralAccess", "classLiteral", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "Clinit", "clinit", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "CompilationUnitDeclaration", "compilationUnitDeclaration", ",", "CompilationUnitScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "CompoundAssignment", "compoundAssignment", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ConditionalExpression", "conditionalExpression", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ConstructorDeclaration", "constructorDeclaration", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ContinueStatement", "continueStatement", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "DoStatement", "doStatement", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "DoubleLiteral", "doubleLiteral", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "EmptyStatement", "emptyStatement", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "EqualExpression", "equalExpression", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ExplicitConstructorCall", "explicitConstructor", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ExtendedStringLiteral", "extendedStringLiteral", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "FalseLiteral", "falseLiteral", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "FieldDeclaration", "fieldDeclaration", ",", "MethodScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "FieldReference", "fieldReference", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "FieldReference", "fieldReference", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "FloatLiteral", "floatLiteral", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ForeachStatement", "forStatement", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ForStatement", "forStatement", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "IfStatement", "ifStatement", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ImportReference", "importRef", ",", "CompilationUnitScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "Initializer", "initializer", ",", "MethodScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "InstanceOfExpression", "instanceOfExpression", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "IntLiteral", "intLiteral", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "Javadoc", "javadoc", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "Javadoc", "javadoc", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocAllocationExpression", "expression", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocAllocationExpression", "expression", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocArgumentExpression", "expression", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocArgumentExpression", "expression", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocArrayQualifiedTypeReference", "typeRef", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocArrayQualifiedTypeReference", "typeRef", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocArraySingleTypeReference", "typeRef", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocArraySingleTypeReference", "typeRef", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocFieldReference", "fieldRef", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocFieldReference", "fieldRef", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocImplicitTypeReference", "implicitTypeReference", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocImplicitTypeReference", "implicitTypeReference", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocMessageSend", "messageSend", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocMessageSend", "messageSend", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocQualifiedTypeReference", "typeRef", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocQualifiedTypeReference", "typeRef", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocReturnStatement", "statement", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocReturnStatement", "statement", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocSingleNameReference", "argument", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocSingleNameReference", "argument", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocSingleTypeReference", "typeRef", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "JavadocSingleTypeReference", "typeRef", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "LabeledStatement", "labeledStatement", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "LocalDeclaration", "localDeclaration", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "LongLiteral", "longLiteral", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "MarkerAnnotation", "annotation", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "MemberValuePair", "pair", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "MessageSend", "messageSend", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "MethodDeclaration", "methodDeclaration", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "StringLiteralConcatenation", "literal", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "NormalAnnotation", "annotation", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "NullLiteral", "nullLiteral", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "OR_OR_Expression", "or_or_Expression", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ParameterizedQualifiedTypeReference", "parameterizedQualifiedTypeReference", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ParameterizedQualifiedTypeReference", "parameterizedQualifiedTypeReference", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ParameterizedSingleTypeReference", "parameterizedSingleTypeReference", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ParameterizedSingleTypeReference", "parameterizedSingleTypeReference", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "PostfixExpression", "postfixExpression", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "PrefixExpression", "prefixExpression", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "QualifiedAllocationExpression", "qualifiedAllocationExpression", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "QualifiedNameReference", "qualifiedNameReference", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "QualifiedNameReference", "qualifiedNameReference", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "QualifiedSuperReference", "qualifiedSuperReference", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "QualifiedSuperReference", "qualifiedSuperReference", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "QualifiedThisReference", "qualifiedThisReference", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "QualifiedThisReference", "qualifiedThisReference", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "QualifiedTypeReference", "qualifiedTypeReference", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "QualifiedTypeReference", "qualifiedTypeReference", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ReturnStatement", "returnStatement", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "SingleMemberAnnotation", "annotation", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "SingleNameReference", "singleNameReference", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "SingleNameReference", "singleNameReference", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "SingleTypeReference", "singleTypeReference", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "SingleTypeReference", "singleTypeReference", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "StringLiteral", "stringLiteral", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "SuperReference", "superReference", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "SwitchStatement", "switchStatement", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "SynchronizedStatement", "synchronizedStatement", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ThisReference", "thisReference", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ThisReference", "thisReference", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "ThrowStatement", "throwStatement", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "TrueLiteral", "trueLiteral", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "TryStatement", "tryStatement", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "TypeDeclaration", "localTypeDeclaration", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "TypeDeclaration", "memberTypeDeclaration", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "TypeDeclaration", "typeDeclaration", ",", "CompilationUnitScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "TypeParameter", "typeParameter", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "TypeParameter", "typeParameter", ",", "ClassScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "UnaryExpression", "unaryExpression", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "WhileStatement", "whileStatement", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "Wildcard", "wildcard", ",", "BlockScope", "scope", ")", "{", "}", "public", "void", "endVisit", "(", "Wildcard", "wildcard", ",", "ClassScope", "scope", ")", "{", "}", "public", "boolean", "visit", "(", "AllocationExpression", "allocationExpression", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "AND_AND_Expression", "and_and_Expression", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "AnnotationMethodDeclaration", "annotationTypeDeclaration", ",", "ClassScope", "classScope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "Argument", "argument", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "Argument", "argument", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ArrayAllocationExpression", "arrayAllocationExpression", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ArrayInitializer", "arrayInitializer", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ArrayQualifiedTypeReference", "arrayQualifiedTypeReference", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ArrayQualifiedTypeReference", "arrayQualifiedTypeReference", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ArrayReference", "arrayReference", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ArrayTypeReference", "arrayTypeReference", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ArrayTypeReference", "arrayTypeReference", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "AssertStatement", "assertStatement", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "Assignment", "assignment", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "BinaryExpression", "binaryExpression", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "Block", "block", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "BreakStatement", "breakStatement", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "CaseStatement", "caseStatement", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "CastExpression", "castExpression", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "CharLiteral", "charLiteral", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ClassLiteralAccess", "classLiteral", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "Clinit", "clinit", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "CompilationUnitDeclaration", "compilationUnitDeclaration", ",", "CompilationUnitScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "CompoundAssignment", "compoundAssignment", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ConditionalExpression", "conditionalExpression", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ConstructorDeclaration", "constructorDeclaration", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ContinueStatement", "continueStatement", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "DoStatement", "doStatement", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "DoubleLiteral", "doubleLiteral", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "EmptyStatement", "emptyStatement", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "EqualExpression", "equalExpression", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ExplicitConstructorCall", "explicitConstructor", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ExtendedStringLiteral", "extendedStringLiteral", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "FalseLiteral", "falseLiteral", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "FieldDeclaration", "fieldDeclaration", ",", "MethodScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "FieldReference", "fieldReference", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "FieldReference", "fieldReference", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "FloatLiteral", "floatLiteral", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ForeachStatement", "forStatement", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ForStatement", "forStatement", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "IfStatement", "ifStatement", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ImportReference", "importRef", ",", "CompilationUnitScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "Initializer", "initializer", ",", "MethodScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "InstanceOfExpression", "instanceOfExpression", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "IntLiteral", "intLiteral", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "Javadoc", "javadoc", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "Javadoc", "javadoc", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocAllocationExpression", "expression", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocAllocationExpression", "expression", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocArgumentExpression", "expression", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocArgumentExpression", "expression", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocArrayQualifiedTypeReference", "typeRef", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocArrayQualifiedTypeReference", "typeRef", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocArraySingleTypeReference", "typeRef", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocArraySingleTypeReference", "typeRef", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocFieldReference", "fieldRef", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocFieldReference", "fieldRef", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocImplicitTypeReference", "implicitTypeReference", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocImplicitTypeReference", "implicitTypeReference", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocMessageSend", "messageSend", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocMessageSend", "messageSend", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocQualifiedTypeReference", "typeRef", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocQualifiedTypeReference", "typeRef", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocReturnStatement", "statement", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocReturnStatement", "statement", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocSingleNameReference", "argument", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocSingleNameReference", "argument", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocSingleTypeReference", "typeRef", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "JavadocSingleTypeReference", "typeRef", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "LabeledStatement", "labeledStatement", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "LocalDeclaration", "localDeclaration", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "LongLiteral", "longLiteral", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "MarkerAnnotation", "annotation", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "MemberValuePair", "pair", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "MessageSend", "messageSend", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "MethodDeclaration", "methodDeclaration", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "StringLiteralConcatenation", "literal", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "NormalAnnotation", "annotation", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "NullLiteral", "nullLiteral", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "OR_OR_Expression", "or_or_Expression", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ParameterizedQualifiedTypeReference", "parameterizedQualifiedTypeReference", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ParameterizedQualifiedTypeReference", "parameterizedQualifiedTypeReference", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ParameterizedSingleTypeReference", "parameterizedSingleTypeReference", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ParameterizedSingleTypeReference", "parameterizedSingleTypeReference", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "PostfixExpression", "postfixExpression", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "PrefixExpression", "prefixExpression", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "QualifiedAllocationExpression", "qualifiedAllocationExpression", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "QualifiedNameReference", "qualifiedNameReference", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "QualifiedNameReference", "qualifiedNameReference", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "QualifiedSuperReference", "qualifiedSuperReference", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "QualifiedSuperReference", "qualifiedSuperReference", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "QualifiedThisReference", "qualifiedThisReference", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "QualifiedThisReference", "qualifiedThisReference", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "QualifiedTypeReference", "qualifiedTypeReference", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "QualifiedTypeReference", "qualifiedTypeReference", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ReturnStatement", "returnStatement", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "SingleMemberAnnotation", "annotation", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "SingleNameReference", "singleNameReference", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "SingleNameReference", "singleNameReference", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "SingleTypeReference", "singleTypeReference", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "SingleTypeReference", "singleTypeReference", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "StringLiteral", "stringLiteral", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "SuperReference", "superReference", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "SwitchStatement", "switchStatement", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "SynchronizedStatement", "synchronizedStatement", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ThisReference", "thisReference", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ThisReference", "thisReference", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "ThrowStatement", "throwStatement", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "TrueLiteral", "trueLiteral", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "TryStatement", "tryStatement", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "TypeDeclaration", "localTypeDeclaration", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "TypeDeclaration", "memberTypeDeclaration", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "TypeDeclaration", "typeDeclaration", ",", "CompilationUnitScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "TypeParameter", "typeParameter", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "TypeParameter", "typeParameter", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "UnaryExpression", "unaryExpression", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "WhileStatement", "whileStatement", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "Wildcard", "wildcard", ",", "BlockScope", "scope", ")", "{", "return", "true", ";", "}", "public", "boolean", "visit", "(", "Wildcard", "wildcard", ",", "ClassScope", "scope", ")", "{", "return", "true", ";", "}", "}", "</s>" ]
5,630
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "BranchLabel", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "BooleanConstant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "public", "class", "TrueLiteral", "extends", "MagicLiteral", "{", "static", "final", "char", "[", "]", "source", "=", "{", "'t'", ",", "'r'", ",", "'u'", ",", "'e'", "}", ";", "public", "TrueLiteral", "(", "int", "s", ",", "int", "e", ")", "{", "super", "(", "s", ",", "e", ")", ";", "}", "public", "void", "computeConstant", "(", ")", "{", "this", ".", "constant", "=", "BooleanConstant", ".", "fromValue", "(", "true", ")", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "void", "generateOptimizedBoolean", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "goto_", "(", "trueLabel", ")", ";", "}", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "TypeBinding", "literalType", "(", "BlockScope", "scope", ")", "{", "return", "TypeBinding", ".", "BOOLEAN", ";", "}", "public", "char", "[", "]", "source", "(", ")", "{", "return", "source", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,631
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "CompilerOptions", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ArrayBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ClassScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "CompilationUnitScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemReasons", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Scope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TagBits", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "ProblemSeverities", ";", "public", "abstract", "class", "TypeReference", "extends", "Expression", "{", "public", "static", "final", "TypeReference", "baseTypeReference", "(", "int", "baseType", ",", "int", "dim", ")", "{", "if", "(", "dim", "==", "0", ")", "{", "switch", "(", "baseType", ")", "{", "case", "(", "TypeIds", ".", "T_void", ")", ":", "return", "new", "SingleTypeReference", "(", "TypeBinding", ".", "VOID", ".", "simpleName", ",", "0", ")", ";", "case", "(", "TypeIds", ".", "T_boolean", ")", ":", "return", "new", "SingleTypeReference", "(", "TypeBinding", ".", "BOOLEAN", ".", "simpleName", ",", "0", ")", ";", "case", "(", "TypeIds", ".", "T_char", ")", ":", "return", "new", "SingleTypeReference", "(", "TypeBinding", ".", "CHAR", ".", "simpleName", ",", "0", ")", ";", "case", "(", "TypeIds", ".", "T_float", ")", ":", "return", "new", "SingleTypeReference", "(", "TypeBinding", ".", "FLOAT", ".", "simpleName", ",", "0", ")", ";", "case", "(", "TypeIds", ".", "T_double", ")", ":", "return", "new", "SingleTypeReference", "(", "TypeBinding", ".", "DOUBLE", ".", "simpleName", ",", "0", ")", ";", "case", "(", "TypeIds", ".", "T_byte", ")", ":", "return", "new", "SingleTypeReference", "(", "TypeBinding", ".", "BYTE", ".", "simpleName", ",", "0", ")", ";", "case", "(", "TypeIds", ".", "T_short", ")", ":", "return", "new", "SingleTypeReference", "(", "TypeBinding", ".", "SHORT", ".", "simpleName", ",", "0", ")", ";", "case", "(", "TypeIds", ".", "T_int", ")", ":", "return", "new", "SingleTypeReference", "(", "TypeBinding", ".", "INT", ".", "simpleName", ",", "0", ")", ";", "default", ":", "return", "new", "SingleTypeReference", "(", "TypeBinding", ".", "LONG", ".", "simpleName", ",", "0", ")", ";", "}", "}", "switch", "(", "baseType", ")", "{", "case", "(", "TypeIds", ".", "T_void", ")", ":", "return", "new", "ArrayTypeReference", "(", "TypeBinding", ".", "VOID", ".", "simpleName", ",", "dim", ",", "0", ")", ";", "case", "(", "TypeIds", ".", "T_boolean", ")", ":", "return", "new", "ArrayTypeReference", "(", "TypeBinding", ".", "BOOLEAN", ".", "simpleName", ",", "dim", ",", "0", ")", ";", "case", "(", "TypeIds", ".", "T_char", ")", ":", "return", "new", "ArrayTypeReference", "(", "TypeBinding", ".", "CHAR", ".", "simpleName", ",", "dim", ",", "0", ")", ";", "case", "(", "TypeIds", ".", "T_float", ")", ":", "return", "new", "ArrayTypeReference", "(", "TypeBinding", ".", "FLOAT", ".", "simpleName", ",", "dim", ",", "0", ")", ";", "case", "(", "TypeIds", ".", "T_double", ")", ":", "return", "new", "ArrayTypeReference", "(", "TypeBinding", ".", "DOUBLE", ".", "simpleName", ",", "dim", ",", "0", ")", ";", "case", "(", "TypeIds", ".", "T_byte", ")", ":", "return", "new", "ArrayTypeReference", "(", "TypeBinding", ".", "BYTE", ".", "simpleName", ",", "dim", ",", "0", ")", ";", "case", "(", "TypeIds", ".", "T_short", ")", ":", "return", "new", "ArrayTypeReference", "(", "TypeBinding", ".", "SHORT", ".", "simpleName", ",", "dim", ",", "0", ")", ";", "case", "(", "TypeIds", ".", "T_int", ")", ":", "return", "new", "ArrayTypeReference", "(", "TypeBinding", ".", "INT", ".", "simpleName", ",", "dim", ",", "0", ")", ";", "default", ":", "return", "new", "ArrayTypeReference", "(", "TypeBinding", ".", "LONG", ".", "simpleName", ",", "dim", ",", "0", ")", ";", "}", "}", "public", "void", "aboutToResolve", "(", "Scope", "scope", ")", "{", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "return", "flowInfo", ";", "}", "public", "void", "checkBounds", "(", "Scope", "scope", ")", "{", "}", "public", "abstract", "TypeReference", "copyDims", "(", "int", "dim", ")", ";", "public", "int", "dimensions", "(", ")", "{", "return", "0", ";", "}", "public", "abstract", "char", "[", "]", "getLastToken", "(", ")", ";", "public", "char", "[", "]", "[", "]", "getParameterizedTypeName", "(", ")", "{", "return", "getTypeName", "(", ")", ";", "}", "protected", "abstract", "TypeBinding", "getTypeBinding", "(", "Scope", "scope", ")", ";", "public", "abstract", "char", "[", "]", "[", "]", "getTypeName", "(", ")", ";", "protected", "TypeBinding", "internalResolveType", "(", "Scope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "this", ".", "resolvedType", "!=", "null", ")", "{", "if", "(", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "return", "this", ".", "resolvedType", ";", "}", "else", "{", "switch", "(", "this", ".", "resolvedType", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "case", "ProblemReasons", ".", "NotVisible", ":", "case", "ProblemReasons", ".", "InheritedNameHidesEnclosingName", ":", "TypeBinding", "type", "=", "this", ".", "resolvedType", ".", "closestMatch", "(", ")", ";", "if", "(", "type", "==", "null", ")", "return", "null", ";", "return", "scope", ".", "environment", "(", ")", ".", "convertToRawType", "(", "type", ",", "false", ")", ";", "default", ":", "return", "null", ";", "}", "}", "}", "boolean", "hasError", ";", "TypeBinding", "type", "=", "this", ".", "resolvedType", "=", "getTypeBinding", "(", "scope", ")", ";", "if", "(", "type", "==", "null", ")", "{", "return", "null", ";", "}", "else", "if", "(", "(", "hasError", "=", "!", "type", ".", "isValidBinding", "(", ")", ")", "==", "true", ")", "{", "reportInvalidType", "(", "scope", ")", ";", "switch", "(", "type", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "case", "ProblemReasons", ".", "NotVisible", ":", "case", "ProblemReasons", ".", "InheritedNameHidesEnclosingName", ":", "type", "=", "type", ".", "closestMatch", "(", ")", ";", "if", "(", "type", "==", "null", ")", "return", "null", ";", "break", ";", "default", ":", "return", "null", ";", "}", "}", "if", "(", "type", ".", "isArrayType", "(", ")", "&&", "(", "(", "ArrayBinding", ")", "type", ")", ".", "leafComponentType", "==", "TypeBinding", ".", "VOID", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotAllocateVoidArray", "(", "this", ")", ";", "return", "null", ";", "}", "if", "(", "!", "(", "this", "instanceof", "QualifiedTypeReference", ")", "&&", "isTypeUseDeprecated", "(", "type", ",", "scope", ")", ")", "{", "reportDeprecatedType", "(", "type", ",", "scope", ")", ";", "}", "type", "=", "scope", ".", "environment", "(", ")", ".", "convertToRawType", "(", "type", ",", "false", ")", ";", "if", "(", "type", ".", "leafComponentType", "(", ")", ".", "isRawType", "(", ")", "&&", "(", "this", ".", "bits", "&", "ASTNode", ".", "IgnoreRawTypeCheck", ")", "==", "0", "&&", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "RawTypeReference", ")", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "rawTypeReference", "(", "this", ",", "type", ")", ";", "}", "if", "(", "hasError", ")", "{", "return", "type", ";", "}", "return", "this", ".", "resolvedType", "=", "type", ";", "}", "public", "boolean", "isTypeReference", "(", ")", "{", "return", "true", ";", "}", "protected", "void", "reportDeprecatedType", "(", "TypeBinding", "type", ",", "Scope", "scope", ",", "int", "index", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "deprecatedType", "(", "type", ",", "this", ",", "index", ")", ";", "}", "protected", "void", "reportDeprecatedType", "(", "TypeBinding", "type", ",", "Scope", "scope", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "deprecatedType", "(", "type", ",", "this", ",", "Integer", ".", "MAX_VALUE", ")", ";", "}", "protected", "void", "reportInvalidType", "(", "Scope", "scope", ")", "{", "if", "(", "scope", "!=", "null", ")", "{", "CompilationUnitScope", "cuScope", "=", "scope", ".", "compilationUnitScope", "(", ")", ";", "if", "(", "!", "cuScope", ".", "reportInvalidType", "(", "this", ",", "this", ".", "resolvedType", ")", ")", "{", "return", ";", "}", "}", "scope", ".", "problemReporter", "(", ")", ".", "invalidType", "(", "this", ",", "this", ".", "resolvedType", ")", ";", "}", "public", "TypeBinding", "resolveSuperType", "(", "ClassScope", "scope", ")", "{", "TypeBinding", "superType", "=", "resolveType", "(", "scope", ")", ";", "if", "(", "superType", "==", "null", ")", "return", "null", ";", "if", "(", "superType", ".", "isTypeVariable", "(", ")", ")", "{", "if", "(", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "this", ".", "resolvedType", "=", "new", "ProblemReferenceBinding", "(", "getTypeName", "(", ")", ",", "(", "ReferenceBinding", ")", "this", ".", "resolvedType", ",", "ProblemReasons", ".", "IllegalSuperTypeVariable", ")", ";", "reportInvalidType", "(", "scope", ")", ";", "}", "return", "null", ";", "}", "return", "superType", ";", "}", "public", "final", "TypeBinding", "resolveType", "(", "BlockScope", "blockScope", ")", "{", "return", "resolveType", "(", "blockScope", ",", "true", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ",", "boolean", "checkBounds", ")", "{", "return", "internalResolveType", "(", "scope", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "ClassScope", "scope", ")", "{", "return", "internalResolveType", "(", "scope", ")", ";", "}", "public", "TypeBinding", "resolveTypeArgument", "(", "BlockScope", "blockScope", ",", "ReferenceBinding", "genericType", ",", "int", "rank", ")", "{", "return", "resolveType", "(", "blockScope", ",", "true", ")", ";", "}", "public", "TypeBinding", "resolveTypeArgument", "(", "ClassScope", "classScope", ",", "ReferenceBinding", "genericType", ",", "int", "rank", ")", "{", "ReferenceBinding", "ref", "=", "classScope", ".", "referenceContext", ".", "binding", ";", "boolean", "pauseHierarchyCheck", "=", "false", ";", "try", "{", "if", "(", "ref", ".", "isHierarchyBeingConnected", "(", ")", ")", "{", "ref", ".", "tagBits", "|=", "TagBits", ".", "PauseHierarchyCheck", ";", "pauseHierarchyCheck", "=", "true", ";", "}", "return", "resolveType", "(", "classScope", ")", ";", "}", "finally", "{", "if", "(", "pauseHierarchyCheck", ")", "{", "ref", ".", "tagBits", "&=", "~", "TagBits", ".", "PauseHierarchyCheck", ";", "}", "}", "}", "public", "abstract", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", ";", "public", "abstract", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", ";", "}", "</s>" ]
5,632
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "public", "abstract", "class", "NumberLiteral", "extends", "Literal", "{", "char", "[", "]", "source", ";", "public", "NumberLiteral", "(", "char", "[", "]", "token", ",", "int", "s", ",", "int", "e", ")", "{", "this", "(", "s", ",", "e", ")", ";", "this", ".", "source", "=", "token", ";", "}", "public", "NumberLiteral", "(", "int", "s", ",", "int", "e", ")", "{", "super", "(", "s", ",", "e", ")", ";", "}", "public", "boolean", "isValidJavaStatement", "(", ")", "{", "return", "false", ";", "}", "public", "char", "[", "]", "source", "(", ")", "{", "return", "this", ".", "source", ";", "}", "}", "</s>" ]
5,633
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "DoStatement", "extends", "Statement", "{", "public", "Expression", "condition", ";", "public", "Statement", "action", ";", "private", "BranchLabel", "breakLabel", ",", "continueLabel", ";", "int", "mergedInitStateIndex", "=", "-", "1", ";", "int", "preConditionInitStateIndex", "=", "-", "1", ";", "public", "DoStatement", "(", "Expression", "condition", ",", "Statement", "action", ",", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "sourceStart", "=", "sourceStart", ";", "this", ".", "sourceEnd", "=", "sourceEnd", ";", "this", ".", "condition", "=", "condition", ";", "this", ".", "action", "=", "action", ";", "if", "(", "action", "instanceof", "EmptyStatement", ")", "action", ".", "bits", "|=", "ASTNode", ".", "IsUsefulEmptyStatement", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "this", ".", "breakLabel", "=", "new", "BranchLabel", "(", ")", ";", "this", ".", "continueLabel", "=", "new", "BranchLabel", "(", ")", ";", "LoopingFlowContext", "loopingContext", "=", "new", "LoopingFlowContext", "(", "flowContext", ",", "flowInfo", ",", "this", ",", "this", ".", "breakLabel", ",", "this", ".", "continueLabel", ",", "currentScope", ")", ";", "Constant", "cst", "=", "this", ".", "condition", ".", "constant", ";", "boolean", "isConditionTrue", "=", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "true", ";", "cst", "=", "this", ".", "condition", ".", "optimizedBooleanConstant", "(", ")", ";", "boolean", "isConditionOptimizedTrue", "=", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "true", ";", "boolean", "isConditionOptimizedFalse", "=", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "false", ";", "int", "previousMode", "=", "flowInfo", ".", "reachMode", "(", ")", ";", "UnconditionalFlowInfo", "actionInfo", "=", "flowInfo", ".", "nullInfoLessUnconditionalCopy", "(", ")", ";", "if", "(", "(", "this", ".", "action", "!=", "null", ")", "&&", "!", "this", ".", "action", ".", "isEmptyBlock", "(", ")", ")", "{", "actionInfo", "=", "this", ".", "action", ".", "analyseCode", "(", "currentScope", ",", "loopingContext", ",", "actionInfo", ")", ".", "unconditionalInits", "(", ")", ";", "if", "(", "(", "actionInfo", ".", "tagBits", "&", "loopingContext", ".", "initsOnContinue", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", ")", "{", "this", ".", "continueLabel", "=", "null", ";", "}", "}", "actionInfo", ".", "setReachMode", "(", "previousMode", ")", ";", "LoopingFlowContext", "condLoopContext", ";", "FlowInfo", "condInfo", "=", "this", ".", "condition", ".", "analyseCode", "(", "currentScope", ",", "(", "condLoopContext", "=", "new", "LoopingFlowContext", "(", "flowContext", ",", "flowInfo", ",", "this", ",", "null", ",", "null", ",", "currentScope", ")", ")", ",", "(", "this", ".", "action", "==", "null", "?", "actionInfo", ":", "(", "actionInfo", ".", "mergedWith", "(", "loopingContext", ".", "initsOnContinue", ")", ")", ")", ".", "copy", "(", ")", ")", ";", "this", ".", "preConditionInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "actionInfo", ")", ";", "if", "(", "!", "isConditionOptimizedFalse", "&&", "this", ".", "continueLabel", "!=", "null", ")", "{", "loopingContext", ".", "complainOnDeferredFinalChecks", "(", "currentScope", ",", "condInfo", ")", ";", "condLoopContext", ".", "complainOnDeferredFinalChecks", "(", "currentScope", ",", "condInfo", ")", ";", "loopingContext", ".", "complainOnDeferredNullChecks", "(", "currentScope", ",", "flowInfo", ".", "unconditionalCopy", "(", ")", ".", "addPotentialNullInfoFrom", "(", "condInfo", ".", "initsWhenTrue", "(", ")", ".", "unconditionalInits", "(", ")", ")", ")", ";", "condLoopContext", ".", "complainOnDeferredNullChecks", "(", "currentScope", ",", "actionInfo", ".", "addPotentialNullInfoFrom", "(", "condInfo", ".", "initsWhenTrue", "(", ")", ".", "unconditionalInits", "(", ")", ")", ")", ";", "}", "if", "(", "loopingContext", ".", "hasEscapingExceptions", "(", ")", ")", "{", "FlowInfo", "loopbackFlowInfo", "=", "flowInfo", ".", "copy", "(", ")", ";", "loopbackFlowInfo", ".", "mergedWith", "(", "condInfo", ".", "initsWhenTrue", "(", ")", ".", "unconditionalCopy", "(", ")", ")", ";", "loopingContext", ".", "simulateThrowAfterLoopBack", "(", "loopbackFlowInfo", ")", ";", "}", "FlowInfo", "mergedInfo", "=", "FlowInfo", ".", "mergedOptimizedBranches", "(", "(", "loopingContext", ".", "initsOnBreak", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", "?", "loopingContext", ".", "initsOnBreak", ":", "flowInfo", ".", "unconditionalCopy", "(", ")", ".", "addInitializationsFrom", "(", "loopingContext", ".", "initsOnBreak", ")", ",", "isConditionOptimizedTrue", ",", "(", "condInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", "?", "flowInfo", ".", "addInitializationsFrom", "(", "condInfo", ".", "initsWhenFalse", "(", ")", ")", ":", "condInfo", ",", "false", ",", "!", "isConditionTrue", ")", ";", "this", ".", "mergedInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "mergedInfo", ")", ";", "return", "mergedInfo", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsReachable", ")", "==", "0", ")", "{", "return", ";", "}", "int", "pc", "=", "codeStream", ".", "position", ";", "BranchLabel", "actionLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "if", "(", "this", ".", "action", "!=", "null", ")", "actionLabel", ".", "tagBits", "|=", "BranchLabel", ".", "USED", ";", "actionLabel", ".", "place", "(", ")", ";", "this", ".", "breakLabel", ".", "initialize", "(", "codeStream", ")", ";", "boolean", "hasContinueLabel", "=", "this", ".", "continueLabel", "!=", "null", ";", "if", "(", "hasContinueLabel", ")", "{", "this", ".", "continueLabel", ".", "initialize", "(", "codeStream", ")", ";", "}", "if", "(", "this", ".", "action", "!=", "null", ")", "{", "this", ".", "action", ".", "generateCode", "(", "currentScope", ",", "codeStream", ")", ";", "}", "if", "(", "hasContinueLabel", ")", "{", "this", ".", "continueLabel", ".", "place", "(", ")", ";", "if", "(", "this", ".", "preConditionInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "preConditionInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "preConditionInitStateIndex", ")", ";", "}", "Constant", "cst", "=", "this", ".", "condition", ".", "optimizedBooleanConstant", "(", ")", ";", "boolean", "isConditionOptimizedFalse", "=", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "false", ";", "if", "(", "isConditionOptimizedFalse", ")", "{", "this", ".", "condition", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "}", "else", "{", "this", ".", "condition", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "actionLabel", ",", "null", ",", "true", ")", ";", "}", "}", "if", "(", "this", ".", "mergedInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "}", "if", "(", "this", ".", "breakLabel", ".", "forwardReferenceCount", "(", ")", ">", "0", ")", "{", "this", ".", "breakLabel", ".", "place", "(", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "StringBuffer", "printStatement", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "indent", ",", "output", ")", ".", "append", "(", "\"do\"", ")", ";", "if", "(", "this", ".", "action", "==", "null", ")", "output", ".", "append", "(", "\"", ";n\"", ")", ";", "else", "{", "output", ".", "append", "(", "'\\n'", ")", ";", "this", ".", "action", ".", "printStatement", "(", "indent", "+", "1", ",", "output", ")", ".", "append", "(", "'\\n'", ")", ";", "}", "output", ".", "append", "(", "\"while", "(\"", ")", ";", "return", "this", ".", "condition", ".", "printExpression", "(", "0", ",", "output", ")", ".", "append", "(", "\");\"", ")", ";", "}", "public", "void", "resolve", "(", "BlockScope", "scope", ")", "{", "TypeBinding", "type", "=", "this", ".", "condition", ".", "resolveTypeExpecting", "(", "scope", ",", "TypeBinding", ".", "BOOLEAN", ")", ";", "this", ".", "condition", ".", "computeConversion", "(", "scope", ",", "type", ",", "type", ")", ";", "if", "(", "this", ".", "action", "!=", "null", ")", "this", ".", "action", ".", "resolve", "(", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "action", "!=", "null", ")", "{", "this", ".", "action", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "this", ".", "condition", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,634
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "Opcodes", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Binding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ExtraCompilerModifiers", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "LocalTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MethodBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemMethodBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemReasons", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "RawTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TagBits", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "public", "class", "QualifiedAllocationExpression", "extends", "AllocationExpression", "{", "public", "Expression", "enclosingInstance", ";", "public", "TypeDeclaration", "anonymousType", ";", "public", "QualifiedAllocationExpression", "(", ")", "{", "}", "public", "QualifiedAllocationExpression", "(", "TypeDeclaration", "anonymousType", ")", "{", "this", ".", "anonymousType", "=", "anonymousType", ";", "anonymousType", ".", "allocation", "=", "this", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "enclosingInstance", "!=", "null", ")", "{", "flowInfo", "=", "this", ".", "enclosingInstance", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "checkCapturedLocalInitializationIfNecessary", "(", "(", "ReferenceBinding", ")", "(", "this", ".", "anonymousType", "==", "null", "?", "this", ".", "binding", ".", "declaringClass", ".", "erasure", "(", ")", ":", "this", ".", "binding", ".", "declaringClass", ".", "superclass", "(", ")", ".", "erasure", "(", ")", ")", ",", "currentScope", ",", "flowInfo", ")", ";", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "arguments", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "flowInfo", "=", "this", ".", "arguments", "[", "i", "]", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "}", "if", "(", "this", ".", "anonymousType", "!=", "null", ")", "{", "flowInfo", "=", "this", ".", "anonymousType", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "ReferenceBinding", "[", "]", "thrownExceptions", ";", "if", "(", "(", "(", "thrownExceptions", "=", "this", ".", "binding", ".", "thrownExceptions", ")", ".", "length", ")", "!=", "0", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "Unchecked", ")", "!=", "0", "&&", "this", ".", "genericTypeArguments", "==", "null", ")", "{", "thrownExceptions", "=", "currentScope", ".", "environment", "(", ")", ".", "convertToRawTypes", "(", "this", ".", "binding", ".", "thrownExceptions", ",", "true", ",", "true", ")", ";", "}", "flowContext", ".", "checkExceptionHandlers", "(", "thrownExceptions", ",", "this", ",", "flowInfo", ".", "unconditionalCopy", "(", ")", ",", "currentScope", ")", ";", "}", "manageEnclosingInstanceAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ")", ";", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ")", ";", "return", "flowInfo", ";", "}", "public", "Expression", "enclosingInstance", "(", ")", "{", "return", "this", ".", "enclosingInstance", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "if", "(", "!", "valueRequired", ")", "currentScope", ".", "problemReporter", "(", ")", ".", "unusedObjectAllocation", "(", "this", ")", ";", "int", "pc", "=", "codeStream", ".", "position", ";", "MethodBinding", "codegenBinding", "=", "this", ".", "binding", ".", "original", "(", ")", ";", "ReferenceBinding", "allocatedType", "=", "codegenBinding", ".", "declaringClass", ";", "codeStream", ".", "new_", "(", "allocatedType", ")", ";", "boolean", "isUnboxing", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ";", "if", "(", "valueRequired", "||", "isUnboxing", ")", "{", "codeStream", ".", "dup", "(", ")", ";", "}", "if", "(", "this", ".", "type", "!=", "null", ")", "{", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "type", ".", "sourceStart", ")", ";", "}", "else", "{", "codeStream", ".", "ldc", "(", "String", ".", "valueOf", "(", "this", ".", "enumConstant", ".", "name", ")", ")", ";", "codeStream", ".", "generateInlinedValue", "(", "this", ".", "enumConstant", ".", "binding", ".", "id", ")", ";", "}", "if", "(", "allocatedType", ".", "isNestedType", "(", ")", ")", "{", "codeStream", ".", "generateSyntheticEnclosingInstanceValues", "(", "currentScope", ",", "allocatedType", ",", "enclosingInstance", "(", ")", ",", "this", ")", ";", "}", "generateArguments", "(", "this", ".", "binding", ",", "this", ".", "arguments", ",", "currentScope", ",", "codeStream", ")", ";", "if", "(", "allocatedType", ".", "isNestedType", "(", ")", ")", "{", "codeStream", ".", "generateSyntheticOuterArgumentValues", "(", "currentScope", ",", "allocatedType", ",", "this", ")", ";", "}", "if", "(", "this", ".", "syntheticAccessor", "==", "null", ")", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokespecial", ",", "codegenBinding", ",", "null", ")", ";", "}", "else", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "syntheticAccessor", ".", "parameters", ".", "length", "-", "codegenBinding", ".", "parameters", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "codeStream", ".", "aconst_null", "(", ")", ";", "}", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokespecial", ",", "this", ".", "syntheticAccessor", ",", "null", ")", ";", "}", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "else", "if", "(", "isUnboxing", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "switch", "(", "postConversionType", "(", "currentScope", ")", ".", "id", ")", "{", "case", "T_long", ":", "case", "T_double", ":", "codeStream", ".", "pop2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "pop", "(", ")", ";", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "if", "(", "this", ".", "anonymousType", "!=", "null", ")", "{", "this", ".", "anonymousType", ".", "generateCode", "(", "currentScope", ",", "codeStream", ")", ";", "}", "}", "public", "boolean", "isSuperAccess", "(", ")", "{", "return", "this", ".", "anonymousType", "!=", "null", ";", "}", "public", "void", "manageEnclosingInstanceAccessIfNecessary", "(", "BlockScope", "currentScope", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ")", "{", "ReferenceBinding", "allocatedTypeErasure", "=", "(", "ReferenceBinding", ")", "this", ".", "binding", ".", "declaringClass", ".", "erasure", "(", ")", ";", "if", "(", "allocatedTypeErasure", ".", "isNestedType", "(", ")", "&&", "currentScope", ".", "enclosingSourceType", "(", ")", ".", "isLocalType", "(", ")", ")", "{", "if", "(", "allocatedTypeErasure", ".", "isLocalType", "(", ")", ")", "{", "(", "(", "LocalTypeBinding", ")", "allocatedTypeErasure", ")", ".", "addInnerEmulationDependent", "(", "currentScope", ",", "this", ".", "enclosingInstance", "!=", "null", ")", ";", "}", "else", "{", "currentScope", ".", "propagateInnerEmulation", "(", "allocatedTypeErasure", ",", "this", ".", "enclosingInstance", "!=", "null", ")", ";", "}", "}", "}", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "if", "(", "this", ".", "enclosingInstance", "!=", "null", ")", "this", ".", "enclosingInstance", ".", "printExpression", "(", "0", ",", "output", ")", ".", "append", "(", "'.'", ")", ";", "super", ".", "printExpression", "(", "0", ",", "output", ")", ";", "if", "(", "this", ".", "anonymousType", "!=", "null", ")", "{", "this", ".", "anonymousType", ".", "print", "(", "indent", ",", "output", ")", ";", "}", "return", "output", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "if", "(", "this", ".", "anonymousType", "==", "null", "&&", "this", ".", "enclosingInstance", "==", "null", ")", "{", "return", "super", ".", "resolveType", "(", "scope", ")", ";", "}", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "TypeBinding", "enclosingInstanceType", "=", "null", ";", "TypeBinding", "receiverType", "=", "null", ";", "boolean", "hasError", "=", "false", ";", "boolean", "enclosingInstanceContainsCast", "=", "false", ";", "boolean", "argsContainCast", "=", "false", ";", "if", "(", "this", ".", "enclosingInstance", "!=", "null", ")", "{", "if", "(", "this", ".", "enclosingInstance", "instanceof", "CastExpression", ")", "{", "this", ".", "enclosingInstance", ".", "bits", "|=", "ASTNode", ".", "DisableUnnecessaryCastCheck", ";", "enclosingInstanceContainsCast", "=", "true", ";", "}", "if", "(", "(", "enclosingInstanceType", "=", "this", ".", "enclosingInstance", ".", "resolveType", "(", "scope", ")", ")", "==", "null", ")", "{", "hasError", "=", "true", ";", "}", "else", "if", "(", "enclosingInstanceType", ".", "isBaseType", "(", ")", "||", "enclosingInstanceType", ".", "isArrayType", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "illegalPrimitiveOrArrayTypeForEnclosingInstance", "(", "enclosingInstanceType", ",", "this", ".", "enclosingInstance", ")", ";", "hasError", "=", "true", ";", "}", "else", "if", "(", "this", ".", "type", "instanceof", "QualifiedTypeReference", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "illegalUsageOfQualifiedTypeReference", "(", "(", "QualifiedTypeReference", ")", "this", ".", "type", ")", ";", "hasError", "=", "true", ";", "}", "else", "{", "receiverType", "=", "(", "(", "SingleTypeReference", ")", "this", ".", "type", ")", ".", "resolveTypeEnclosing", "(", "scope", ",", "(", "ReferenceBinding", ")", "enclosingInstanceType", ")", ";", "if", "(", "receiverType", "!=", "null", "&&", "enclosingInstanceContainsCast", ")", "{", "CastExpression", ".", "checkNeedForEnclosingInstanceCast", "(", "scope", ",", "this", ".", "enclosingInstance", ",", "enclosingInstanceType", ",", "receiverType", ")", ";", "}", "}", "}", "else", "{", "if", "(", "this", ".", "type", "==", "null", ")", "{", "receiverType", "=", "scope", ".", "enclosingSourceType", "(", ")", ";", "}", "else", "{", "receiverType", "=", "this", ".", "type", ".", "resolveType", "(", "scope", ",", "true", ")", ";", "checkParameterizedAllocation", ":", "{", "if", "(", "receiverType", "==", "null", "||", "!", "receiverType", ".", "isValidBinding", "(", ")", ")", "break", "checkParameterizedAllocation", ";", "if", "(", "this", ".", "type", "instanceof", "ParameterizedQualifiedTypeReference", ")", "{", "ReferenceBinding", "currentType", "=", "(", "ReferenceBinding", ")", "receiverType", ";", "do", "{", "if", "(", "(", "currentType", ".", "modifiers", "&", "ClassFileConstants", ".", "AccStatic", ")", "!=", "0", ")", "break", "checkParameterizedAllocation", ";", "if", "(", "currentType", ".", "isRawType", "(", ")", ")", "break", "checkParameterizedAllocation", ";", "}", "while", "(", "(", "currentType", "=", "currentType", ".", "enclosingType", "(", ")", ")", "!=", "null", ")", ";", "ParameterizedQualifiedTypeReference", "qRef", "=", "(", "ParameterizedQualifiedTypeReference", ")", "this", ".", "type", ";", "for", "(", "int", "i", "=", "qRef", ".", "typeArguments", ".", "length", "-", "2", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "if", "(", "qRef", ".", "typeArguments", "[", "i", "]", "!=", "null", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "illegalQualifiedParameterizedTypeAllocation", "(", "this", ".", "type", ",", "receiverType", ")", ";", "break", ";", "}", "}", "}", "}", "}", "}", "if", "(", "receiverType", "==", "null", "||", "!", "receiverType", ".", "isValidBinding", "(", ")", ")", "{", "hasError", "=", "true", ";", "}", "if", "(", "this", ".", "typeArguments", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "typeArguments", ".", "length", ";", "boolean", "argHasError", "=", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ";", "this", ".", "genericTypeArguments", "=", "new", "TypeBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeReference", "typeReference", "=", "this", ".", "typeArguments", "[", "i", "]", ";", "if", "(", "(", "this", ".", "genericTypeArguments", "[", "i", "]", "=", "typeReference", ".", "resolveType", "(", "scope", ",", "true", ")", ")", "==", "null", ")", "{", "argHasError", "=", "true", ";", "}", "if", "(", "argHasError", "&&", "typeReference", "instanceof", "Wildcard", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "illegalUsageOfWildcard", "(", "typeReference", ")", ";", "}", "}", "if", "(", "argHasError", ")", "{", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "arguments", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "this", ".", "arguments", "[", "i", "]", ".", "resolveType", "(", "scope", ")", ";", "}", "}", "return", "null", ";", "}", "}", "TypeBinding", "[", "]", "argumentTypes", "=", "Binding", ".", "NO_PARAMETERS", ";", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "arguments", ".", "length", ";", "argumentTypes", "=", "new", "TypeBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "Expression", "argument", "=", "this", ".", "arguments", "[", "i", "]", ";", "if", "(", "argument", "instanceof", "CastExpression", ")", "{", "argument", ".", "bits", "|=", "ASTNode", ".", "DisableUnnecessaryCastCheck", ";", "argsContainCast", "=", "true", ";", "}", "if", "(", "(", "argumentTypes", "[", "i", "]", "=", "argument", ".", "resolveType", "(", "scope", ")", ")", "==", "null", ")", "{", "hasError", "=", "true", ";", "}", "}", "}", "if", "(", "hasError", ")", "{", "if", "(", "receiverType", "instanceof", "ReferenceBinding", ")", "{", "ReferenceBinding", "referenceReceiver", "=", "(", "ReferenceBinding", ")", "receiverType", ";", "if", "(", "receiverType", ".", "isValidBinding", "(", ")", ")", "{", "int", "length", "=", "this", ".", "arguments", "==", "null", "?", "0", ":", "this", ".", "arguments", ".", "length", ";", "TypeBinding", "[", "]", "pseudoArgs", "=", "new", "TypeBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "length", ";", "--", "i", ">=", "0", ";", ")", "{", "pseudoArgs", "[", "i", "]", "=", "argumentTypes", "[", "i", "]", "==", "null", "?", "TypeBinding", ".", "NULL", ":", "argumentTypes", "[", "i", "]", ";", "}", "this", ".", "binding", "=", "scope", ".", "findMethod", "(", "referenceReceiver", ",", "TypeConstants", ".", "INIT", ",", "pseudoArgs", ",", "this", ")", ";", "if", "(", "this", ".", "binding", "!=", "null", "&&", "!", "this", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "MethodBinding", "closestMatch", "=", "(", "(", "ProblemMethodBinding", ")", "this", ".", "binding", ")", ".", "closestMatch", ";", "if", "(", "closestMatch", "!=", "null", ")", "{", "if", "(", "closestMatch", ".", "original", "(", ")", ".", "typeVariables", "!=", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "closestMatch", "=", "scope", ".", "environment", "(", ")", ".", "createParameterizedGenericMethod", "(", "closestMatch", ".", "original", "(", ")", ",", "(", "RawTypeBinding", ")", "null", ")", ";", "}", "this", ".", "binding", "=", "closestMatch", ";", "MethodBinding", "closestMatchOriginal", "=", "closestMatch", ".", "original", "(", ")", ";", "if", "(", "closestMatchOriginal", ".", "isOrEnclosedByPrivateType", "(", ")", "&&", "!", "scope", ".", "isDefinedInMethod", "(", "closestMatchOriginal", ")", ")", "{", "closestMatchOriginal", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccLocallyUsed", ";", "}", "}", "}", "}", "if", "(", "this", ".", "anonymousType", "!=", "null", ")", "{", "scope", ".", "addAnonymousType", "(", "this", ".", "anonymousType", ",", "referenceReceiver", ")", ";", "this", ".", "anonymousType", ".", "resolve", "(", "scope", ")", ";", "return", "this", ".", "resolvedType", "=", "this", ".", "anonymousType", ".", "binding", ";", "}", "}", "return", "this", ".", "resolvedType", "=", "receiverType", ";", "}", "if", "(", "this", ".", "anonymousType", "==", "null", ")", "{", "if", "(", "!", "receiverType", ".", "canBeInstantiated", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotInstantiate", "(", "this", ".", "type", ",", "receiverType", ")", ";", "return", "this", ".", "resolvedType", "=", "receiverType", ";", "}", "ReferenceBinding", "allocationType", "=", "(", "ReferenceBinding", ")", "receiverType", ";", "if", "(", "(", "this", ".", "binding", "=", "scope", ".", "getConstructor", "(", "allocationType", ",", "argumentTypes", ",", "this", ")", ")", ".", "isValidBinding", "(", ")", ")", "{", "if", "(", "isMethodUseDeprecated", "(", "this", ".", "binding", ",", "scope", ",", "true", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "deprecatedMethod", "(", "this", ".", "binding", ",", "this", ")", ";", "}", "if", "(", "checkInvocationArguments", "(", "scope", ",", "null", ",", "allocationType", ",", "this", ".", "binding", ",", "this", ".", "arguments", ",", "argumentTypes", ",", "argsContainCast", ",", "this", ")", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "Unchecked", ";", "}", "if", "(", "this", ".", "typeArguments", "!=", "null", "&&", "this", ".", "binding", ".", "original", "(", ")", ".", "typeVariables", "==", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryTypeArgumentsForMethodInvocation", "(", "this", ".", "binding", ",", "this", ".", "genericTypeArguments", ",", "this", ".", "typeArguments", ")", ";", "}", "}", "else", "{", "if", "(", "this", ".", "binding", ".", "declaringClass", "==", "null", ")", "{", "this", ".", "binding", ".", "declaringClass", "=", "allocationType", ";", "}", "if", "(", "this", ".", "type", "!=", "null", "&&", "!", "this", ".", "type", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "return", "null", ";", "}", "scope", ".", "problemReporter", "(", ")", ".", "invalidConstructor", "(", "this", ",", "this", ".", "binding", ")", ";", "return", "this", ".", "resolvedType", "=", "receiverType", ";", "}", "if", "(", "(", "this", ".", "binding", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "missingTypeInConstructor", "(", "this", ",", "this", ".", "binding", ")", ";", "}", "ReferenceBinding", "expectedType", "=", "this", ".", "binding", ".", "declaringClass", ".", "enclosingType", "(", ")", ";", "if", "(", "expectedType", "!=", "enclosingInstanceType", ")", "scope", ".", "compilationUnitScope", "(", ")", ".", "recordTypeConversion", "(", "expectedType", ",", "enclosingInstanceType", ")", ";", "if", "(", "enclosingInstanceType", ".", "isCompatibleWith", "(", "expectedType", ")", "||", "scope", ".", "isBoxingCompatibleWith", "(", "enclosingInstanceType", ",", "expectedType", ")", ")", "{", "this", ".", "enclosingInstance", ".", "computeConversion", "(", "scope", ",", "expectedType", ",", "enclosingInstanceType", ")", ";", "return", "this", ".", "resolvedType", "=", "receiverType", ";", "}", "scope", ".", "problemReporter", "(", ")", ".", "typeMismatchError", "(", "enclosingInstanceType", ",", "expectedType", ",", "this", ".", "enclosingInstance", ",", "null", ")", ";", "return", "this", ".", "resolvedType", "=", "receiverType", ";", "}", "ReferenceBinding", "superType", "=", "(", "ReferenceBinding", ")", "receiverType", ";", "if", "(", "superType", ".", "isTypeVariable", "(", ")", ")", "{", "superType", "=", "new", "ProblemReferenceBinding", "(", "new", "char", "[", "]", "[", "]", "{", "superType", ".", "sourceName", "(", ")", "}", ",", "superType", ",", "ProblemReasons", ".", "IllegalSuperTypeVariable", ")", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidType", "(", "this", ",", "superType", ")", ";", "return", "null", ";", "}", "else", "if", "(", "this", ".", "type", "!=", "null", "&&", "superType", ".", "isEnum", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotInstantiate", "(", "this", ".", "type", ",", "superType", ")", ";", "return", "this", ".", "resolvedType", "=", "superType", ";", "}", "ReferenceBinding", "anonymousSuperclass", "=", "superType", ".", "isInterface", "(", ")", "?", "scope", ".", "getJavaLangObject", "(", ")", ":", "superType", ";", "scope", ".", "addAnonymousType", "(", "this", ".", "anonymousType", ",", "superType", ")", ";", "this", ".", "anonymousType", ".", "resolve", "(", "scope", ")", ";", "this", ".", "resolvedType", "=", "this", ".", "anonymousType", ".", "binding", ";", "if", "(", "(", "this", ".", "resolvedType", ".", "tagBits", "&", "TagBits", ".", "HierarchyHasProblems", ")", "!=", "0", ")", "{", "return", "null", ";", "}", "MethodBinding", "inheritedBinding", "=", "scope", ".", "getConstructor", "(", "anonymousSuperclass", ",", "argumentTypes", ",", "this", ")", ";", "if", "(", "!", "inheritedBinding", ".", "isValidBinding", "(", ")", ")", "{", "if", "(", "inheritedBinding", ".", "declaringClass", "==", "null", ")", "{", "inheritedBinding", ".", "declaringClass", "=", "anonymousSuperclass", ";", "}", "if", "(", "this", ".", "type", "!=", "null", "&&", "!", "this", ".", "type", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "return", "null", ";", "}", "scope", ".", "problemReporter", "(", ")", ".", "invalidConstructor", "(", "this", ",", "inheritedBinding", ")", ";", "return", "this", ".", "resolvedType", ";", "}", "if", "(", "(", "inheritedBinding", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "missingTypeInConstructor", "(", "this", ",", "inheritedBinding", ")", ";", "}", "if", "(", "this", ".", "enclosingInstance", "!=", "null", ")", "{", "ReferenceBinding", "targetEnclosing", "=", "inheritedBinding", ".", "declaringClass", ".", "enclosingType", "(", ")", ";", "if", "(", "targetEnclosing", "==", "null", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryEnclosingInstanceSpecification", "(", "this", ".", "enclosingInstance", ",", "superType", ")", ";", "return", "this", ".", "resolvedType", ";", "}", "else", "if", "(", "!", "enclosingInstanceType", ".", "isCompatibleWith", "(", "targetEnclosing", ")", "&&", "!", "scope", ".", "isBoxingCompatibleWith", "(", "enclosingInstanceType", ",", "targetEnclosing", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "typeMismatchError", "(", "enclosingInstanceType", ",", "targetEnclosing", ",", "this", ".", "enclosingInstance", ",", "null", ")", ";", "return", "this", ".", "resolvedType", ";", "}", "this", ".", "enclosingInstance", ".", "computeConversion", "(", "scope", ",", "targetEnclosing", ",", "enclosingInstanceType", ")", ";", "}", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "if", "(", "checkInvocationArguments", "(", "scope", ",", "null", ",", "anonymousSuperclass", ",", "inheritedBinding", ",", "this", ".", "arguments", ",", "argumentTypes", ",", "argsContainCast", ",", "this", ")", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "Unchecked", ";", "}", "}", "if", "(", "this", ".", "typeArguments", "!=", "null", "&&", "inheritedBinding", ".", "original", "(", ")", ".", "typeVariables", "==", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryTypeArgumentsForMethodInvocation", "(", "inheritedBinding", ",", "this", ".", "genericTypeArguments", ",", "this", ".", "typeArguments", ")", ";", "}", "this", ".", "binding", "=", "this", ".", "anonymousType", ".", "createDefaultConstructorWithBinding", "(", "inheritedBinding", ",", "(", "this", ".", "bits", "&", "ASTNode", ".", "Unchecked", ")", "!=", "0", "&&", "this", ".", "genericTypeArguments", "==", "null", ")", ";", "return", "this", ".", "resolvedType", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "enclosingInstance", "!=", "null", ")", "this", ".", "enclosingInstance", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "if", "(", "this", ".", "typeArguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "typeArgumentsLength", "=", "this", ".", "typeArguments", ".", "length", ";", "i", "<", "typeArgumentsLength", ";", "i", "++", ")", "{", "this", ".", "typeArguments", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "type", "!=", "null", ")", "this", ".", "type", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "int", "argumentsLength", "=", "this", ".", "arguments", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "argumentsLength", ";", "i", "++", ")", "this", ".", "arguments", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "if", "(", "this", ".", "anonymousType", "!=", "null", ")", "this", ".", "anonymousType", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,635
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "StringConstant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "public", "class", "StringLiteral", "extends", "Literal", "{", "char", "[", "]", "source", ";", "int", "lineNumber", ";", "public", "StringLiteral", "(", "char", "[", "]", "token", ",", "int", "start", ",", "int", "end", ",", "int", "lineNumber", ")", "{", "this", "(", "start", ",", "end", ")", ";", "this", ".", "source", "=", "token", ";", "this", ".", "lineNumber", "=", "lineNumber", "-", "1", ";", "}", "public", "StringLiteral", "(", "int", "s", ",", "int", "e", ")", "{", "super", "(", "s", ",", "e", ")", ";", "}", "public", "void", "computeConstant", "(", ")", "{", "this", ".", "constant", "=", "StringConstant", ".", "fromValue", "(", "String", ".", "valueOf", "(", "this", ".", "source", ")", ")", ";", "}", "public", "ExtendedStringLiteral", "extendWith", "(", "CharLiteral", "lit", ")", "{", "return", "new", "ExtendedStringLiteral", "(", "this", ",", "lit", ")", ";", "}", "public", "ExtendedStringLiteral", "extendWith", "(", "StringLiteral", "lit", ")", "{", "return", "new", "ExtendedStringLiteral", "(", "this", ",", "lit", ")", ";", "}", "public", "StringLiteralConcatenation", "extendsWith", "(", "StringLiteral", "lit", ")", "{", "return", "new", "StringLiteralConcatenation", "(", "this", ",", "lit", ")", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "ldc", "(", "this", ".", "constant", ".", "stringValue", "(", ")", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "TypeBinding", "literalType", "(", "BlockScope", "scope", ")", "{", "return", "scope", ".", "getJavaLangString", "(", ")", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "output", ".", "append", "(", "'\\\"'", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "source", ".", "length", ";", "i", "++", ")", "{", "switch", "(", "this", ".", "source", "[", "i", "]", ")", "{", "case", "'\\b'", ":", "output", ".", "append", "(", "\"\\\\b\"", ")", ";", "break", ";", "case", "'\\t'", ":", "output", ".", "append", "(", "\"\\\\t\"", ")", ";", "break", ";", "case", "'\\n'", ":", "output", ".", "append", "(", "\"\\\\n\"", ")", ";", "break", ";", "case", "'\\f'", ":", "output", ".", "append", "(", "\"\\\\f\"", ")", ";", "break", ";", "case", "'\\r'", ":", "output", ".", "append", "(", "\"\\\\r\"", ")", ";", "break", ";", "case", "'\\\"'", ":", "output", ".", "append", "(", "\"\\\\\\\"\"", ")", ";", "break", ";", "case", "'\\''", ":", "output", ".", "append", "(", "\"\\\\'\"", ")", ";", "break", ";", "case", "'\\\\'", ":", "output", ".", "append", "(", "\"\\\\\\\\\"", ")", ";", "break", ";", "default", ":", "output", ".", "append", "(", "this", ".", "source", "[", "i", "]", ")", ";", "}", "}", "output", ".", "append", "(", "'\\\"'", ")", ";", "return", "output", ";", "}", "public", "char", "[", "]", "source", "(", ")", "{", "return", "this", ".", "source", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,636
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ClassFile", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "CompilationResult", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "BranchLabel", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "ConstantPool", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "Opcodes", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "ExceptionHandlingFlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "InitializationFlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Binding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ClassScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "FieldBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MethodScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "SourceTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "Parser", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "AbortMethod", ";", "public", "class", "Clinit", "extends", "AbstractMethodDeclaration", "{", "private", "FieldBinding", "assertionSyntheticFieldBinding", "=", "null", ";", "private", "FieldBinding", "classLiteralSyntheticField", "=", "null", ";", "public", "Clinit", "(", "CompilationResult", "compilationResult", ")", "{", "super", "(", "compilationResult", ")", ";", "this", ".", "modifiers", "=", "0", ";", "this", ".", "selector", "=", "TypeConstants", ".", "CLINIT", ";", "}", "public", "void", "analyseCode", "(", "ClassScope", "classScope", ",", "InitializationFlowContext", "staticInitializerFlowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "return", ";", "try", "{", "ExceptionHandlingFlowContext", "clinitContext", "=", "new", "ExceptionHandlingFlowContext", "(", "staticInitializerFlowContext", ".", "parent", ",", "this", ",", "Binding", ".", "NO_EXCEPTIONS", ",", "staticInitializerFlowContext", ",", "this", ".", "scope", ",", "FlowInfo", ".", "DEAD_END", ")", ";", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "NeedFreeReturn", ";", "}", "flowInfo", "=", "flowInfo", ".", "mergedWith", "(", "staticInitializerFlowContext", ".", "initsOnReturn", ")", ";", "FieldBinding", "[", "]", "fields", "=", "this", ".", "scope", ".", "enclosingSourceType", "(", ")", ".", "fields", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "count", "=", "fields", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "FieldBinding", "field", ";", "if", "(", "(", "field", "=", "fields", "[", "i", "]", ")", ".", "isStatic", "(", ")", "&&", "field", ".", "isFinal", "(", ")", "&&", "(", "!", "flowInfo", ".", "isDefinitelyAssigned", "(", "fields", "[", "i", "]", ")", ")", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "uninitializedBlankFinalField", "(", "field", ",", "this", ".", "scope", ".", "referenceType", "(", ")", ".", "declarationOf", "(", "field", ".", "original", "(", ")", ")", ")", ";", "}", "}", "staticInitializerFlowContext", ".", "checkInitializerExceptions", "(", "this", ".", "scope", ",", "clinitContext", ",", "flowInfo", ")", ";", "}", "catch", "(", "AbortMethod", "e", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "}", "}", "public", "void", "generateCode", "(", "ClassScope", "classScope", ",", "ClassFile", "classFile", ")", "{", "int", "clinitOffset", "=", "0", ";", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "{", "return", ";", "}", "try", "{", "clinitOffset", "=", "classFile", ".", "contentsOffset", ";", "this", ".", "generateCode", "(", "classScope", ",", "classFile", ",", "clinitOffset", ")", ";", "}", "catch", "(", "AbortMethod", "e", ")", "{", "if", "(", "e", ".", "compilationResult", "==", "CodeStream", ".", "RESTART_IN_WIDE_MODE", ")", "{", "try", "{", "classFile", ".", "contentsOffset", "=", "clinitOffset", ";", "classFile", ".", "methodCount", "--", ";", "classFile", ".", "codeStream", ".", "resetInWideMode", "(", ")", ";", "this", ".", "generateCode", "(", "classScope", ",", "classFile", ",", "clinitOffset", ")", ";", "}", "catch", "(", "AbortMethod", "e2", ")", "{", "classFile", ".", "contentsOffset", "=", "clinitOffset", ";", "classFile", ".", "methodCount", "--", ";", "}", "}", "else", "{", "classFile", ".", "contentsOffset", "=", "clinitOffset", ";", "classFile", ".", "methodCount", "--", ";", "}", "}", "}", "private", "void", "generateCode", "(", "ClassScope", "classScope", ",", "ClassFile", "classFile", ",", "int", "clinitOffset", ")", "{", "ConstantPool", "constantPool", "=", "classFile", ".", "constantPool", ";", "int", "constantPoolOffset", "=", "constantPool", ".", "currentOffset", ";", "int", "constantPoolIndex", "=", "constantPool", ".", "currentIndex", ";", "classFile", ".", "generateMethodInfoHeaderForClinit", "(", ")", ";", "int", "codeAttributeOffset", "=", "classFile", ".", "contentsOffset", ";", "classFile", ".", "generateCodeAttributeHeader", "(", ")", ";", "CodeStream", "codeStream", "=", "classFile", ".", "codeStream", ";", "resolve", "(", "classScope", ")", ";", "codeStream", ".", "reset", "(", "this", ",", "classFile", ")", ";", "TypeDeclaration", "declaringType", "=", "classScope", ".", "referenceContext", ";", "MethodScope", "staticInitializerScope", "=", "declaringType", ".", "staticInitializerScope", ";", "staticInitializerScope", ".", "computeLocalVariablePositions", "(", "0", ",", "codeStream", ")", ";", "if", "(", "this", ".", "assertionSyntheticFieldBinding", "!=", "null", ")", "{", "codeStream", ".", "generateClassLiteralAccessForType", "(", "classScope", ".", "outerMostClassScope", "(", ")", ".", "enclosingSourceType", "(", ")", ",", "this", ".", "classLiteralSyntheticField", ")", ";", "codeStream", ".", "invokeJavaLangClassDesiredAssertionStatus", "(", ")", ";", "BranchLabel", "falseLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "codeStream", ".", "ifne", "(", "falseLabel", ")", ";", "codeStream", ".", "iconst_1", "(", ")", ";", "BranchLabel", "jumpLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "codeStream", ".", "decrStackSize", "(", "1", ")", ";", "codeStream", ".", "goto_", "(", "jumpLabel", ")", ";", "falseLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_0", "(", ")", ";", "jumpLabel", ".", "place", "(", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_putstatic", ",", "this", ".", "assertionSyntheticFieldBinding", ",", "null", ")", ";", "}", "final", "FieldDeclaration", "[", "]", "fieldDeclarations", "=", "declaringType", ".", "fields", ";", "BlockScope", "lastInitializerScope", "=", "null", ";", "if", "(", "TypeDeclaration", ".", "kind", "(", "declaringType", ".", "modifiers", ")", "==", "TypeDeclaration", ".", "ENUM_DECL", ")", "{", "int", "enumCount", "=", "0", ";", "int", "remainingFieldCount", "=", "0", ";", "if", "(", "fieldDeclarations", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "fieldDeclarations", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "FieldDeclaration", "fieldDecl", "=", "fieldDeclarations", "[", "i", "]", ";", "if", "(", "fieldDecl", ".", "isStatic", "(", ")", ")", "{", "if", "(", "fieldDecl", ".", "getKind", "(", ")", "==", "AbstractVariableDeclaration", ".", "ENUM_CONSTANT", ")", "{", "fieldDecl", ".", "generateCode", "(", "staticInitializerScope", ",", "codeStream", ")", ";", "enumCount", "++", ";", "}", "else", "{", "remainingFieldCount", "++", ";", "}", "}", "}", "}", "codeStream", ".", "generateInlinedValue", "(", "enumCount", ")", ";", "codeStream", ".", "anewarray", "(", "declaringType", ".", "binding", ")", ";", "if", "(", "enumCount", ">", "0", ")", "{", "if", "(", "fieldDeclarations", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "fieldDeclarations", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "FieldDeclaration", "fieldDecl", "=", "fieldDeclarations", "[", "i", "]", ";", "if", "(", "fieldDecl", ".", "getKind", "(", ")", "==", "AbstractVariableDeclaration", ".", "ENUM_CONSTANT", ")", "{", "codeStream", ".", "dup", "(", ")", ";", "codeStream", ".", "generateInlinedValue", "(", "fieldDecl", ".", "binding", ".", "id", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "fieldDecl", ".", "binding", ",", "null", ")", ";", "codeStream", ".", "aastore", "(", ")", ";", "}", "}", "}", "}", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_putstatic", ",", "declaringType", ".", "enumValuesSyntheticfield", ",", "null", ")", ";", "if", "(", "remainingFieldCount", "!=", "0", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "fieldDeclarations", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "FieldDeclaration", "fieldDecl", "=", "fieldDeclarations", "[", "i", "]", ";", "switch", "(", "fieldDecl", ".", "getKind", "(", ")", ")", "{", "case", "AbstractVariableDeclaration", ".", "ENUM_CONSTANT", ":", "break", ";", "case", "AbstractVariableDeclaration", ".", "INITIALIZER", ":", "if", "(", "!", "fieldDecl", ".", "isStatic", "(", ")", ")", "break", ";", "lastInitializerScope", "=", "(", "(", "Initializer", ")", "fieldDecl", ")", ".", "block", ".", "scope", ";", "fieldDecl", ".", "generateCode", "(", "staticInitializerScope", ",", "codeStream", ")", ";", "break", ";", "case", "AbstractVariableDeclaration", ".", "FIELD", ":", "if", "(", "!", "fieldDecl", ".", "binding", ".", "isStatic", "(", ")", ")", "break", ";", "lastInitializerScope", "=", "null", ";", "fieldDecl", ".", "generateCode", "(", "staticInitializerScope", ",", "codeStream", ")", ";", "break", ";", "}", "}", "}", "}", "else", "{", "if", "(", "fieldDeclarations", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "fieldDeclarations", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "FieldDeclaration", "fieldDecl", "=", "fieldDeclarations", "[", "i", "]", ";", "switch", "(", "fieldDecl", ".", "getKind", "(", ")", ")", "{", "case", "AbstractVariableDeclaration", ".", "INITIALIZER", ":", "if", "(", "!", "fieldDecl", ".", "isStatic", "(", ")", ")", "break", ";", "lastInitializerScope", "=", "(", "(", "Initializer", ")", "fieldDecl", ")", ".", "block", ".", "scope", ";", "fieldDecl", ".", "generateCode", "(", "staticInitializerScope", ",", "codeStream", ")", ";", "break", ";", "case", "AbstractVariableDeclaration", ".", "FIELD", ":", "if", "(", "!", "fieldDecl", ".", "binding", ".", "isStatic", "(", ")", ")", "break", ";", "lastInitializerScope", "=", "null", ";", "fieldDecl", ".", "generateCode", "(", "staticInitializerScope", ",", "codeStream", ")", ";", "break", ";", "}", "}", "}", "}", "if", "(", "codeStream", ".", "position", "==", "0", ")", "{", "classFile", ".", "contentsOffset", "=", "clinitOffset", ";", "classFile", ".", "methodCount", "--", ";", "constantPool", ".", "resetForClinit", "(", "constantPoolIndex", ",", "constantPoolOffset", ")", ";", "}", "else", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "NeedFreeReturn", ")", "!=", "0", ")", "{", "int", "before", "=", "codeStream", ".", "position", ";", "codeStream", ".", "return_", "(", ")", ";", "if", "(", "lastInitializerScope", "!=", "null", ")", "{", "codeStream", ".", "updateLastRecordedEndPC", "(", "lastInitializerScope", ",", "before", ")", ";", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "0", ",", "declaringType", ".", "sourceStart", ")", ";", "try", "{", "classFile", ".", "completeCodeAttributeForClinit", "(", "codeAttributeOffset", ")", ";", "}", "catch", "(", "NegativeArraySizeException", "e", ")", "{", "throw", "new", "AbortMethod", "(", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ",", "null", ")", ";", "}", "}", "}", "public", "boolean", "isClinit", "(", ")", "{", "return", "true", ";", "}", "public", "boolean", "isInitializationMethod", "(", ")", "{", "return", "true", ";", "}", "public", "boolean", "isStatic", "(", ")", "{", "return", "true", ";", "}", "public", "void", "parseStatements", "(", "Parser", "parser", ",", "CompilationUnitDeclaration", "unit", ")", "{", "}", "public", "StringBuffer", "print", "(", "int", "tab", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "tab", ",", "output", ")", ".", "append", "(", "\"<clinit>()\"", ")", ";", "printBody", "(", "tab", "+", "1", ",", "output", ")", ";", "return", "output", ";", "}", "public", "void", "resolve", "(", "ClassScope", "classScope", ")", "{", "this", ".", "scope", "=", "new", "MethodScope", "(", "classScope", ",", "classScope", ".", "referenceContext", ",", "true", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "classScope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "classScope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "classScope", ")", ";", "}", "public", "void", "setAssertionSupport", "(", "FieldBinding", "assertionSyntheticFieldBinding", ",", "boolean", "needClassLiteralField", ")", "{", "this", ".", "assertionSyntheticFieldBinding", "=", "assertionSyntheticFieldBinding", ";", "if", "(", "needClassLiteralField", ")", "{", "SourceTypeBinding", "sourceType", "=", "this", ".", "scope", ".", "outerMostClassScope", "(", ")", ".", "enclosingSourceType", "(", ")", ";", "if", "(", "!", "sourceType", ".", "isInterface", "(", ")", "&&", "!", "sourceType", ".", "isBaseType", "(", ")", ")", "{", "this", ".", "classLiteralSyntheticField", "=", "sourceType", ".", "addSyntheticFieldForClassLiteral", "(", "sourceType", ",", "this", ".", "scope", ")", ";", "}", "}", "}", "}", "</s>" ]
5,637
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "java", ".", "util", ".", "ArrayList", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "class", "ConstructorDeclaration", "extends", "AbstractMethodDeclaration", "{", "public", "ExplicitConstructorCall", "constructorCall", ";", "public", "TypeParameter", "[", "]", "typeParameters", ";", "public", "ConstructorDeclaration", "(", "CompilationResult", "compilationResult", ")", "{", "super", "(", "compilationResult", ")", ";", "}", "public", "void", "analyseCode", "(", "ClassScope", "classScope", ",", "InitializationFlowContext", "initializerFlowContext", ",", "FlowInfo", "flowInfo", ")", "{", "analyseCode", "(", "classScope", ",", "initializerFlowContext", ",", "flowInfo", ",", "FlowInfo", ".", "REACHABLE", ")", ";", "}", "public", "void", "analyseCode", "(", "ClassScope", "classScope", ",", "InitializationFlowContext", "initializerFlowContext", ",", "FlowInfo", "flowInfo", ",", "int", "initialReachMode", ")", "{", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "return", ";", "int", "nonStaticFieldInfoReachMode", "=", "flowInfo", ".", "reachMode", "(", ")", ";", "flowInfo", ".", "setReachMode", "(", "initialReachMode", ")", ";", "checkUnused", ":", "{", "MethodBinding", "constructorBinding", ";", "if", "(", "(", "constructorBinding", "=", "this", ".", "binding", ")", "==", "null", ")", "break", "checkUnused", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsDefaultConstructor", ")", "!=", "0", ")", "break", "checkUnused", ";", "if", "(", "constructorBinding", ".", "isUsed", "(", ")", ")", "break", "checkUnused", ";", "if", "(", "constructorBinding", ".", "isPrivate", "(", ")", ")", "{", "if", "(", "(", "this", ".", "binding", ".", "declaringClass", ".", "tagBits", "&", "TagBits", ".", "HasNonPrivateConstructor", ")", "==", "0", ")", "break", "checkUnused", ";", "}", "else", "if", "(", "!", "constructorBinding", ".", "isOrEnclosedByPrivateType", "(", ")", ")", "{", "break", "checkUnused", ";", "}", "if", "(", "this", ".", "constructorCall", "==", "null", ")", "break", "checkUnused", ";", "if", "(", "this", ".", "constructorCall", ".", "accessMode", "!=", "ExplicitConstructorCall", ".", "This", ")", "{", "ReferenceBinding", "superClass", "=", "constructorBinding", ".", "declaringClass", ".", "superclass", "(", ")", ";", "if", "(", "superClass", "==", "null", ")", "break", "checkUnused", ";", "MethodBinding", "methodBinding", "=", "superClass", ".", "getExactConstructor", "(", "Binding", ".", "NO_PARAMETERS", ")", ";", "if", "(", "methodBinding", "==", "null", ")", "break", "checkUnused", ";", "if", "(", "!", "methodBinding", ".", "canBeSeenBy", "(", "SuperReference", ".", "implicitSuperConstructorCall", "(", ")", ",", "this", ".", "scope", ")", ")", "break", "checkUnused", ";", "}", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "unusedPrivateConstructor", "(", "this", ")", ";", "}", "if", "(", "isRecursive", "(", "null", ")", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "recursiveConstructorInvocation", "(", "this", ".", "constructorCall", ")", ";", "}", "try", "{", "ExceptionHandlingFlowContext", "constructorContext", "=", "new", "ExceptionHandlingFlowContext", "(", "initializerFlowContext", ".", "parent", ",", "this", ",", "this", ".", "binding", ".", "thrownExceptions", ",", "initializerFlowContext", ",", "this", ".", "scope", ",", "FlowInfo", ".", "DEAD_END", ")", ";", "initializerFlowContext", ".", "checkInitializerExceptions", "(", "this", ".", "scope", ",", "constructorContext", ",", "flowInfo", ")", ";", "if", "(", "this", ".", "binding", ".", "declaringClass", ".", "isAnonymousType", "(", ")", ")", "{", "ArrayList", "computedExceptions", "=", "constructorContext", ".", "extendedExceptions", ";", "if", "(", "computedExceptions", "!=", "null", ")", "{", "int", "size", ";", "if", "(", "(", "size", "=", "computedExceptions", ".", "size", "(", ")", ")", ">", "0", ")", "{", "ReferenceBinding", "[", "]", "actuallyThrownExceptions", ";", "computedExceptions", ".", "toArray", "(", "actuallyThrownExceptions", "=", "new", "ReferenceBinding", "[", "size", "]", ")", ";", "this", ".", "binding", ".", "thrownExceptions", "=", "actuallyThrownExceptions", ";", "}", "}", "}", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "arguments", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "flowInfo", ".", "markAsDefinitelyAssigned", "(", "this", ".", "arguments", "[", "i", "]", ".", "binding", ")", ";", "}", "}", "if", "(", "this", ".", "constructorCall", "!=", "null", ")", "{", "if", "(", "this", ".", "constructorCall", ".", "accessMode", "==", "ExplicitConstructorCall", ".", "This", ")", "{", "FieldBinding", "[", "]", "fields", "=", "this", ".", "binding", ".", "declaringClass", ".", "fields", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "count", "=", "fields", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "FieldBinding", "field", ";", "if", "(", "!", "(", "field", "=", "fields", "[", "i", "]", ")", ".", "isStatic", "(", ")", ")", "{", "flowInfo", ".", "markAsDefinitelyAssigned", "(", "field", ")", ";", "}", "}", "}", "flowInfo", "=", "this", ".", "constructorCall", ".", "analyseCode", "(", "this", ".", "scope", ",", "constructorContext", ",", "flowInfo", ")", ";", "}", "flowInfo", ".", "setReachMode", "(", "nonStaticFieldInfoReachMode", ")", ";", "if", "(", "this", ".", "statements", "!=", "null", ")", "{", "int", "complaintLevel", "=", "(", "nonStaticFieldInfoReachMode", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", "?", "Statement", ".", "NOT_COMPLAINED", ":", "Statement", ".", "COMPLAINED_FAKE_REACHABLE", ";", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "statements", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "Statement", "stat", "=", "this", ".", "statements", "[", "i", "]", ";", "if", "(", "(", "complaintLevel", "=", "stat", ".", "complainIfUnreachable", "(", "flowInfo", ",", "this", ".", "scope", ",", "complaintLevel", ")", ")", "<", "Statement", ".", "COMPLAINED_UNREACHABLE", ")", "{", "flowInfo", "=", "stat", ".", "analyseCode", "(", "this", ".", "scope", ",", "constructorContext", ",", "flowInfo", ")", ";", "}", "}", "}", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "NeedFreeReturn", ";", "}", "if", "(", "(", "this", ".", "constructorCall", "!=", "null", ")", "&&", "(", "this", ".", "constructorCall", ".", "accessMode", "!=", "ExplicitConstructorCall", ".", "This", ")", ")", "{", "flowInfo", "=", "flowInfo", ".", "mergedWith", "(", "constructorContext", ".", "initsOnReturn", ")", ";", "FieldBinding", "[", "]", "fields", "=", "this", ".", "binding", ".", "declaringClass", ".", "fields", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "count", "=", "fields", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "FieldBinding", "field", ";", "if", "(", "(", "!", "(", "field", "=", "fields", "[", "i", "]", ")", ".", "isStatic", "(", ")", ")", "&&", "field", ".", "isFinal", "(", ")", "&&", "(", "!", "flowInfo", ".", "isDefinitelyAssigned", "(", "fields", "[", "i", "]", ")", ")", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "uninitializedBlankFinalField", "(", "field", ",", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsDefaultConstructor", ")", "!=", "0", ")", "?", "(", "ASTNode", ")", "this", ".", "scope", ".", "referenceType", "(", ")", ":", "this", ")", ";", "}", "}", "}", "constructorContext", ".", "complainIfUnusedExceptionHandlers", "(", "this", ")", ";", "this", ".", "scope", ".", "checkUnusedParameters", "(", "this", ".", "binding", ")", ";", "}", "catch", "(", "AbortMethod", "e", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "}", "}", "public", "void", "generateCode", "(", "ClassScope", "classScope", ",", "ClassFile", "classFile", ")", "{", "int", "problemResetPC", "=", "0", ";", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "{", "if", "(", "this", ".", "binding", "==", "null", ")", "return", ";", "int", "problemsLength", ";", "CategorizedProblem", "[", "]", "problems", "=", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ".", "getProblems", "(", ")", ";", "CategorizedProblem", "[", "]", "problemsCopy", "=", "new", "CategorizedProblem", "[", "problemsLength", "=", "problems", ".", "length", "]", ";", "System", ".", "arraycopy", "(", "problems", ",", "0", ",", "problemsCopy", ",", "0", ",", "problemsLength", ")", ";", "classFile", ".", "addProblemConstructor", "(", "this", ",", "this", ".", "binding", ",", "problemsCopy", ")", ";", "return", ";", "}", "try", "{", "problemResetPC", "=", "classFile", ".", "contentsOffset", ";", "internalGenerateCode", "(", "classScope", ",", "classFile", ")", ";", "}", "catch", "(", "AbortMethod", "e", ")", "{", "if", "(", "e", ".", "compilationResult", "==", "CodeStream", ".", "RESTART_IN_WIDE_MODE", ")", "{", "try", "{", "classFile", ".", "contentsOffset", "=", "problemResetPC", ";", "classFile", ".", "methodCount", "--", ";", "classFile", ".", "codeStream", ".", "resetInWideMode", "(", ")", ";", "internalGenerateCode", "(", "classScope", ",", "classFile", ")", ";", "}", "catch", "(", "AbortMethod", "e2", ")", "{", "int", "problemsLength", ";", "CategorizedProblem", "[", "]", "problems", "=", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ".", "getAllProblems", "(", ")", ";", "CategorizedProblem", "[", "]", "problemsCopy", "=", "new", "CategorizedProblem", "[", "problemsLength", "=", "problems", ".", "length", "]", ";", "System", ".", "arraycopy", "(", "problems", ",", "0", ",", "problemsCopy", ",", "0", ",", "problemsLength", ")", ";", "classFile", ".", "addProblemConstructor", "(", "this", ",", "this", ".", "binding", ",", "problemsCopy", ",", "problemResetPC", ")", ";", "}", "}", "else", "{", "int", "problemsLength", ";", "CategorizedProblem", "[", "]", "problems", "=", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ".", "getAllProblems", "(", ")", ";", "CategorizedProblem", "[", "]", "problemsCopy", "=", "new", "CategorizedProblem", "[", "problemsLength", "=", "problems", ".", "length", "]", ";", "System", ".", "arraycopy", "(", "problems", ",", "0", ",", "problemsCopy", ",", "0", ",", "problemsLength", ")", ";", "classFile", ".", "addProblemConstructor", "(", "this", ",", "this", ".", "binding", ",", "problemsCopy", ",", "problemResetPC", ")", ";", "}", "}", "}", "public", "void", "generateSyntheticFieldInitializationsIfNecessary", "(", "MethodScope", "methodScope", ",", "CodeStream", "codeStream", ",", "ReferenceBinding", "declaringClass", ")", "{", "if", "(", "!", "declaringClass", ".", "isNestedType", "(", ")", ")", "return", ";", "NestedTypeBinding", "nestedType", "=", "(", "NestedTypeBinding", ")", "declaringClass", ";", "SyntheticArgumentBinding", "[", "]", "syntheticArgs", "=", "nestedType", ".", "syntheticEnclosingInstances", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "syntheticArgs", "==", "null", "?", "0", ":", "syntheticArgs", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "SyntheticArgumentBinding", "syntheticArg", ";", "if", "(", "(", "syntheticArg", "=", "syntheticArgs", "[", "i", "]", ")", ".", "matchingField", "!=", "null", ")", "{", "codeStream", ".", "aload_0", "(", ")", ";", "codeStream", ".", "load", "(", "syntheticArg", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_putfield", ",", "syntheticArg", ".", "matchingField", ",", "null", ")", ";", "}", "}", "syntheticArgs", "=", "nestedType", ".", "syntheticOuterLocalVariables", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "syntheticArgs", "==", "null", "?", "0", ":", "syntheticArgs", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "SyntheticArgumentBinding", "syntheticArg", ";", "if", "(", "(", "syntheticArg", "=", "syntheticArgs", "[", "i", "]", ")", ".", "matchingField", "!=", "null", ")", "{", "codeStream", ".", "aload_0", "(", ")", ";", "codeStream", ".", "load", "(", "syntheticArg", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_putfield", ",", "syntheticArg", ".", "matchingField", ",", "null", ")", ";", "}", "}", "}", "private", "void", "internalGenerateCode", "(", "ClassScope", "classScope", ",", "ClassFile", "classFile", ")", "{", "classFile", ".", "generateMethodInfoHeader", "(", "this", ".", "binding", ")", ";", "int", "methodAttributeOffset", "=", "classFile", ".", "contentsOffset", ";", "int", "attributeNumber", "=", "classFile", ".", "generateMethodInfoAttribute", "(", "this", ".", "binding", ")", ";", "if", "(", "(", "!", "this", ".", "binding", ".", "isNative", "(", ")", ")", "&&", "(", "!", "this", ".", "binding", ".", "isAbstract", "(", ")", ")", ")", "{", "TypeDeclaration", "declaringType", "=", "classScope", ".", "referenceContext", ";", "int", "codeAttributeOffset", "=", "classFile", ".", "contentsOffset", ";", "classFile", ".", "generateCodeAttributeHeader", "(", ")", ";", "CodeStream", "codeStream", "=", "classFile", ".", "codeStream", ";", "codeStream", ".", "reset", "(", "this", ",", "classFile", ")", ";", "ReferenceBinding", "declaringClass", "=", "this", ".", "binding", ".", "declaringClass", ";", "int", "enumOffset", "=", "declaringClass", ".", "isEnum", "(", ")", "?", "2", ":", "0", ";", "int", "argSlotSize", "=", "1", "+", "enumOffset", ";", "if", "(", "declaringClass", ".", "isNestedType", "(", ")", ")", "{", "this", ".", "scope", ".", "extraSyntheticArguments", "=", "declaringClass", ".", "syntheticOuterLocalVariables", "(", ")", ";", "this", ".", "scope", ".", "computeLocalVariablePositions", "(", "declaringClass", ".", "getEnclosingInstancesSlotSize", "(", ")", "+", "1", "+", "enumOffset", ",", "codeStream", ")", ";", "argSlotSize", "+=", "declaringClass", ".", "getEnclosingInstancesSlotSize", "(", ")", ";", "argSlotSize", "+=", "declaringClass", ".", "getOuterLocalVariablesSlotSize", "(", ")", ";", "}", "else", "{", "this", ".", "scope", ".", "computeLocalVariablePositions", "(", "1", "+", "enumOffset", ",", "codeStream", ")", ";", "}", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "arguments", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "LocalVariableBinding", "argBinding", ";", "codeStream", ".", "addVisibleLocalVariable", "(", "argBinding", "=", "this", ".", "arguments", "[", "i", "]", ".", "binding", ")", ";", "argBinding", ".", "recordInitializationStartPC", "(", "0", ")", ";", "switch", "(", "argBinding", ".", "type", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "argSlotSize", "+=", "2", ";", "break", ";", "default", ":", "argSlotSize", "++", ";", "break", ";", "}", "}", "}", "MethodScope", "initializerScope", "=", "declaringType", ".", "initializerScope", ";", "initializerScope", ".", "computeLocalVariablePositions", "(", "argSlotSize", ",", "codeStream", ")", ";", "boolean", "needFieldInitializations", "=", "this", ".", "constructorCall", "==", "null", "||", "this", ".", "constructorCall", ".", "accessMode", "!=", "ExplicitConstructorCall", ".", "This", ";", "boolean", "preInitSyntheticFields", "=", "this", ".", "scope", ".", "compilerOptions", "(", ")", ".", "targetJDK", ">=", "ClassFileConstants", ".", "JDK1_4", ";", "if", "(", "needFieldInitializations", "&&", "preInitSyntheticFields", ")", "{", "generateSyntheticFieldInitializationsIfNecessary", "(", "this", ".", "scope", ",", "codeStream", ",", "declaringClass", ")", ";", "}", "if", "(", "this", ".", "constructorCall", "!=", "null", ")", "{", "this", ".", "constructorCall", ".", "generateCode", "(", "this", ".", "scope", ",", "codeStream", ")", ";", "}", "if", "(", "needFieldInitializations", ")", "{", "if", "(", "!", "preInitSyntheticFields", ")", "{", "generateSyntheticFieldInitializationsIfNecessary", "(", "this", ".", "scope", ",", "codeStream", ",", "declaringClass", ")", ";", "}", "if", "(", "declaringType", ".", "fields", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "declaringType", ".", "fields", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "FieldDeclaration", "fieldDecl", ";", "if", "(", "!", "(", "fieldDecl", "=", "declaringType", ".", "fields", "[", "i", "]", ")", ".", "isStatic", "(", ")", ")", "{", "fieldDecl", ".", "generateCode", "(", "initializerScope", ",", "codeStream", ")", ";", "}", "}", "}", "}", "if", "(", "this", ".", "statements", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "statements", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "this", ".", "statements", "[", "i", "]", ".", "generateCode", "(", "this", ".", "scope", ",", "codeStream", ")", ";", "}", "}", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "{", "throw", "new", "AbortMethod", "(", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ",", "null", ")", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "NeedFreeReturn", ")", "!=", "0", ")", "{", "codeStream", ".", "return_", "(", ")", ";", "}", "codeStream", ".", "exitUserScope", "(", "this", ".", "scope", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "0", ",", "this", ".", "bodyEnd", ")", ";", "try", "{", "classFile", ".", "completeCodeAttribute", "(", "codeAttributeOffset", ")", ";", "}", "catch", "(", "NegativeArraySizeException", "e", ")", "{", "throw", "new", "AbortMethod", "(", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ",", "null", ")", ";", "}", "attributeNumber", "++", ";", "if", "(", "(", "codeStream", "instanceof", "StackMapFrameCodeStream", ")", "&&", "needFieldInitializations", "&&", "declaringType", ".", "fields", "!=", "null", ")", "{", "(", "(", "StackMapFrameCodeStream", ")", "codeStream", ")", ".", "resetSecretLocals", "(", ")", ";", "}", "}", "classFile", ".", "completeMethodInfo", "(", "methodAttributeOffset", ",", "attributeNumber", ")", ";", "}", "public", "boolean", "isConstructor", "(", ")", "{", "return", "true", ";", "}", "public", "boolean", "isDefaultConstructor", "(", ")", "{", "return", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsDefaultConstructor", ")", "!=", "0", ";", "}", "public", "boolean", "isInitializationMethod", "(", ")", "{", "return", "true", ";", "}", "public", "boolean", "isRecursive", "(", "ArrayList", "visited", ")", "{", "if", "(", "this", ".", "binding", "==", "null", "||", "this", ".", "constructorCall", "==", "null", "||", "this", ".", "constructorCall", ".", "binding", "==", "null", "||", "this", ".", "constructorCall", ".", "isSuperAccess", "(", ")", "||", "!", "this", ".", "constructorCall", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "return", "false", ";", "}", "ConstructorDeclaration", "targetConstructor", "=", "(", "(", "ConstructorDeclaration", ")", "this", ".", "scope", ".", "referenceType", "(", ")", ".", "declarationOf", "(", "this", ".", "constructorCall", ".", "binding", ".", "original", "(", ")", ")", ")", ";", "if", "(", "this", "==", "targetConstructor", ")", "return", "true", ";", "if", "(", "visited", "==", "null", ")", "{", "visited", "=", "new", "ArrayList", "(", "1", ")", ";", "}", "else", "{", "int", "index", "=", "visited", ".", "indexOf", "(", "this", ")", ";", "if", "(", "index", ">=", "0", ")", "return", "index", "==", "0", ";", "}", "visited", ".", "add", "(", "this", ")", ";", "return", "targetConstructor", ".", "isRecursive", "(", "visited", ")", ";", "}", "public", "void", "parseStatements", "(", "Parser", "parser", ",", "CompilationUnitDeclaration", "unit", ")", "{", "if", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsDefaultConstructor", ")", "!=", "0", ")", "&&", "this", ".", "constructorCall", "==", "null", ")", "{", "this", ".", "constructorCall", "=", "SuperReference", ".", "implicitSuperConstructorCall", "(", ")", ";", "this", ".", "constructorCall", ".", "sourceStart", "=", "this", ".", "sourceStart", ";", "this", ".", "constructorCall", ".", "sourceEnd", "=", "this", ".", "sourceEnd", ";", "return", ";", "}", "parser", ".", "parse", "(", "this", ",", "unit", ",", "false", ")", ";", "}", "public", "StringBuffer", "printBody", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "output", ".", "append", "(", "\"", "{\"", ")", ";", "if", "(", "this", ".", "constructorCall", "!=", "null", ")", "{", "output", ".", "append", "(", "'\\n'", ")", ";", "this", ".", "constructorCall", ".", "printStatement", "(", "indent", ",", "output", ")", ";", "}", "if", "(", "this", ".", "statements", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "statements", ".", "length", ";", "i", "++", ")", "{", "output", ".", "append", "(", "'\\n'", ")", ";", "this", ".", "statements", "[", "i", "]", ".", "printStatement", "(", "indent", ",", "output", ")", ";", "}", "}", "output", ".", "append", "(", "'\\n'", ")", ";", "printIndent", "(", "indent", "==", "0", "?", "0", ":", "indent", "-", "1", ",", "output", ")", ".", "append", "(", "'}'", ")", ";", "return", "output", ";", "}", "public", "void", "resolveJavadoc", "(", ")", "{", "if", "(", "this", ".", "binding", "==", "null", "||", "this", ".", "javadoc", "!=", "null", ")", "{", "super", ".", "resolveJavadoc", "(", ")", ";", "}", "else", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsDefaultConstructor", ")", "==", "0", ")", "{", "if", "(", "this", ".", "binding", ".", "declaringClass", "!=", "null", "&&", "!", "this", ".", "binding", ".", "declaringClass", ".", "isLocalType", "(", ")", ")", "{", "int", "javadocVisibility", "=", "this", ".", "binding", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccVisibilityMASK", ";", "ClassScope", "classScope", "=", "this", ".", "scope", ".", "classScope", "(", ")", ";", "ProblemReporter", "reporter", "=", "this", ".", "scope", ".", "problemReporter", "(", ")", ";", "int", "severity", "=", "reporter", ".", "computeSeverity", "(", "IProblem", ".", "JavadocMissing", ")", ";", "if", "(", "severity", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "if", "(", "classScope", "!=", "null", ")", "{", "javadocVisibility", "=", "Util", ".", "computeOuterMostVisibility", "(", "classScope", ".", "referenceType", "(", ")", ",", "javadocVisibility", ")", ";", "}", "int", "javadocModifiers", "=", "(", "this", ".", "binding", ".", "modifiers", "&", "~", "ExtraCompilerModifiers", ".", "AccVisibilityMASK", ")", "|", "javadocVisibility", ";", "reporter", ".", "javadocMissing", "(", "this", ".", "sourceStart", ",", "this", ".", "sourceEnd", ",", "severity", ",", "javadocModifiers", ")", ";", "}", "}", "}", "}", "public", "void", "resolveStatements", "(", ")", "{", "SourceTypeBinding", "sourceType", "=", "this", ".", "scope", ".", "enclosingSourceType", "(", ")", ";", "if", "(", "!", "CharOperation", ".", "equals", "(", "sourceType", ".", "sourceName", ",", "this", ".", "selector", ")", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "missingReturnType", "(", "this", ")", ";", "}", "if", "(", "this", ".", "typeParameters", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "typeParameters", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "typeParameters", "[", "i", "]", ".", "resolve", "(", "this", ".", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "binding", "!=", "null", "&&", "!", "this", ".", "binding", ".", "isPrivate", "(", ")", ")", "{", "sourceType", ".", "tagBits", "|=", "TagBits", ".", "HasNonPrivateConstructor", ";", "}", "if", "(", "this", ".", "constructorCall", "!=", "null", ")", "{", "if", "(", "sourceType", ".", "id", "==", "TypeIds", ".", "T_JavaLangObject", "&&", "this", ".", "constructorCall", ".", "accessMode", "!=", "ExplicitConstructorCall", ".", "This", ")", "{", "if", "(", "this", ".", "constructorCall", ".", "accessMode", "==", "ExplicitConstructorCall", ".", "Super", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "cannotUseSuperInJavaLangObject", "(", "this", ".", "constructorCall", ")", ";", "}", "this", ".", "constructorCall", "=", "null", ";", "}", "else", "{", "this", ".", "constructorCall", ".", "resolve", "(", "this", ".", "scope", ")", ";", "}", "}", "if", "(", "(", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccSemicolonBody", ")", "!=", "0", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "methodNeedBody", "(", "this", ")", ";", "}", "super", ".", "resolveStatements", "(", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "classScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "classScope", ")", ")", "{", "if", "(", "this", ".", "javadoc", "!=", "null", ")", "{", "this", ".", "javadoc", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "annotations", "!=", "null", ")", "{", "int", "annotationsLength", "=", "this", ".", "annotations", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotationsLength", ";", "i", "++", ")", "this", ".", "annotations", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "typeParameters", "!=", "null", ")", "{", "int", "typeParametersLength", "=", "this", ".", "typeParameters", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "typeParametersLength", ";", "i", "++", ")", "{", "this", ".", "typeParameters", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "int", "argumentLength", "=", "this", ".", "arguments", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "argumentLength", ";", "i", "++", ")", "this", ".", "arguments", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "thrownExceptions", "!=", "null", ")", "{", "int", "thrownExceptionsLength", "=", "this", ".", "thrownExceptions", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "thrownExceptionsLength", ";", "i", "++", ")", "this", ".", "thrownExceptions", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "constructorCall", "!=", "null", ")", "this", ".", "constructorCall", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "if", "(", "this", ".", "statements", "!=", "null", ")", "{", "int", "statementsLength", "=", "this", ".", "statements", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "statementsLength", ";", "i", "++", ")", "this", ".", "statements", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "classScope", ")", ";", "}", "public", "TypeParameter", "[", "]", "typeParameters", "(", ")", "{", "return", "this", ".", "typeParameters", ";", "}", "}", "</s>" ]
5,638
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "LocalDeclaration", "extends", "AbstractVariableDeclaration", "{", "public", "LocalVariableBinding", "binding", ";", "public", "LocalDeclaration", "(", "char", "[", "]", "name", ",", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "name", "=", "name", ";", "this", ".", "sourceStart", "=", "sourceStart", ";", "this", ".", "sourceEnd", "=", "sourceEnd", ";", "this", ".", "declarationEnd", "=", "sourceEnd", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "IsLocalDeclarationReachable", ";", "}", "if", "(", "this", ".", "initialization", "==", "null", ")", "{", "return", "flowInfo", ";", "}", "flowInfo", "=", "this", ".", "initialization", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "int", "nullStatus", "=", "this", ".", "initialization", ".", "nullStatus", "(", "flowInfo", ")", ";", "if", "(", "!", "flowInfo", ".", "isDefinitelyAssigned", "(", "this", ".", "binding", ")", ")", "{", "this", ".", "bits", "|=", "FirstAssignmentToLocal", ";", "}", "else", "{", "this", ".", "bits", "&=", "~", "FirstAssignmentToLocal", ";", "}", "flowInfo", ".", "markAsDefinitelyAssigned", "(", "this", ".", "binding", ")", ";", "if", "(", "(", "this", ".", "binding", ".", "type", ".", "tagBits", "&", "TagBits", ".", "IsBaseType", ")", "==", "0", ")", "{", "switch", "(", "nullStatus", ")", "{", "case", "FlowInfo", ".", "NULL", ":", "flowInfo", ".", "markAsDefinitelyNull", "(", "this", ".", "binding", ")", ";", "break", ";", "case", "FlowInfo", ".", "NON_NULL", ":", "flowInfo", ".", "markAsDefinitelyNonNull", "(", "this", ".", "binding", ")", ";", "break", ";", "default", ":", "flowInfo", ".", "markAsDefinitelyUnknown", "(", "this", ".", "binding", ")", ";", "}", "}", "return", "flowInfo", ";", "}", "public", "void", "checkModifiers", "(", ")", "{", "if", "(", "(", "(", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccJustFlag", ")", "&", "~", "ClassFileConstants", ".", "AccFinal", ")", "!=", "0", ")", "this", ".", "modifiers", "=", "(", "this", ".", "modifiers", "&", "~", "ExtraCompilerModifiers", ".", "AccAlternateModifierProblem", ")", "|", "ExtraCompilerModifiers", ".", "AccModifierProblem", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ")", "{", "if", "(", "this", ".", "binding", ".", "resolvedPosition", "!=", "-", "1", ")", "{", "codeStream", ".", "addVisibleLocalVariable", "(", "this", ".", "binding", ")", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "IsReachable", ")", "==", "0", ")", "{", "return", ";", "}", "int", "pc", "=", "codeStream", ".", "position", ";", "generateInit", ":", "{", "if", "(", "this", ".", "initialization", "==", "null", ")", "break", "generateInit", ";", "if", "(", "this", ".", "binding", ".", "resolvedPosition", "<", "0", ")", "{", "if", "(", "this", ".", "initialization", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "break", "generateInit", ";", "this", ".", "initialization", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "break", "generateInit", ";", "}", "this", ".", "initialization", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "if", "(", "this", ".", "binding", ".", "type", ".", "isArrayType", "(", ")", "&&", "(", "this", ".", "initialization", ".", "resolvedType", "==", "TypeBinding", ".", "NULL", "||", "(", "(", "this", ".", "initialization", "instanceof", "CastExpression", ")", "&&", "(", "(", "(", "CastExpression", ")", "this", ".", "initialization", ")", ".", "innermostCastedExpression", "(", ")", ".", "resolvedType", "==", "TypeBinding", ".", "NULL", ")", ")", ")", ")", "{", "codeStream", ".", "checkcast", "(", "this", ".", "binding", ".", "type", ")", ";", "}", "codeStream", ".", "store", "(", "this", ".", "binding", ",", "false", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "FirstAssignmentToLocal", ")", "!=", "0", ")", "{", "this", ".", "binding", ".", "recordInitializationStartPC", "(", "codeStream", ".", "position", ")", ";", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "int", "getKind", "(", ")", "{", "return", "LOCAL_VARIABLE", ";", "}", "public", "void", "resolve", "(", "BlockScope", "scope", ")", "{", "TypeBinding", "variableType", "=", "this", ".", "type", ".", "resolveType", "(", "scope", ",", "true", ")", ";", "checkModifiers", "(", ")", ";", "if", "(", "variableType", "!=", "null", ")", "{", "if", "(", "variableType", "==", "TypeBinding", ".", "VOID", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "variableTypeCannotBeVoid", "(", "this", ")", ";", "return", ";", "}", "if", "(", "variableType", ".", "isArrayType", "(", ")", "&&", "(", "(", "ArrayBinding", ")", "variableType", ")", ".", "leafComponentType", "==", "TypeBinding", ".", "VOID", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "variableTypeCannotBeVoidArray", "(", "this", ")", ";", "return", ";", "}", "}", "Binding", "existingVariable", "=", "scope", ".", "getBinding", "(", "this", ".", "name", ",", "Binding", ".", "VARIABLE", ",", "this", ",", "false", ")", ";", "if", "(", "existingVariable", "!=", "null", "&&", "existingVariable", ".", "isValidBinding", "(", ")", ")", "{", "if", "(", "existingVariable", "instanceof", "LocalVariableBinding", "&&", "this", ".", "hiddenVariableDepth", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "redefineLocal", "(", "this", ")", ";", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableHiding", "(", "this", ",", "existingVariable", ",", "false", ")", ";", "}", "}", "if", "(", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccFinal", ")", "!=", "0", "&&", "this", ".", "initialization", "==", "null", ")", "{", "this", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccBlankFinal", ";", "}", "this", ".", "binding", "=", "new", "LocalVariableBinding", "(", "this", ",", "variableType", ",", "this", ".", "modifiers", ",", "false", ")", ";", "scope", ".", "addLocalVariable", "(", "this", ".", "binding", ")", ";", "this", ".", "binding", ".", "setConstant", "(", "Constant", ".", "NotAConstant", ")", ";", "if", "(", "variableType", "==", "null", ")", "{", "if", "(", "this", ".", "initialization", "!=", "null", ")", "this", ".", "initialization", ".", "resolveType", "(", "scope", ")", ";", "return", ";", "}", "if", "(", "this", ".", "initialization", "!=", "null", ")", "{", "if", "(", "this", ".", "initialization", "instanceof", "ArrayInitializer", ")", "{", "TypeBinding", "initializationType", "=", "this", ".", "initialization", ".", "resolveTypeExpecting", "(", "scope", ",", "variableType", ")", ";", "if", "(", "initializationType", "!=", "null", ")", "{", "(", "(", "ArrayInitializer", ")", "this", ".", "initialization", ")", ".", "binding", "=", "(", "ArrayBinding", ")", "initializationType", ";", "this", ".", "initialization", ".", "computeConversion", "(", "scope", ",", "variableType", ",", "initializationType", ")", ";", "}", "}", "else", "{", "this", ".", "initialization", ".", "setExpectedType", "(", "variableType", ")", ";", "TypeBinding", "initializationType", "=", "this", ".", "initialization", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "initializationType", "!=", "null", ")", "{", "if", "(", "variableType", "!=", "initializationType", ")", "scope", ".", "compilationUnitScope", "(", ")", ".", "recordTypeConversion", "(", "variableType", ",", "initializationType", ")", ";", "if", "(", "this", ".", "initialization", ".", "isConstantValueOfTypeAssignableToType", "(", "initializationType", ",", "variableType", ")", "||", "initializationType", ".", "isCompatibleWith", "(", "variableType", ")", ")", "{", "this", ".", "initialization", ".", "computeConversion", "(", "scope", ",", "variableType", ",", "initializationType", ")", ";", "if", "(", "initializationType", ".", "needsUncheckedConversion", "(", "variableType", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unsafeTypeConversion", "(", "this", ".", "initialization", ",", "initializationType", ",", "variableType", ")", ";", "}", "if", "(", "this", ".", "initialization", "instanceof", "CastExpression", "&&", "(", "this", ".", "initialization", ".", "bits", "&", "ASTNode", ".", "UnnecessaryCast", ")", "==", "0", ")", "{", "CastExpression", ".", "checkNeedForAssignedCast", "(", "scope", ",", "variableType", ",", "(", "CastExpression", ")", "this", ".", "initialization", ")", ";", "}", "}", "else", "if", "(", "isBoxingCompatible", "(", "initializationType", ",", "variableType", ",", "this", ".", "initialization", ",", "scope", ")", ")", "{", "this", ".", "initialization", ".", "computeConversion", "(", "scope", ",", "variableType", ",", "initializationType", ")", ";", "if", "(", "this", ".", "initialization", "instanceof", "CastExpression", "&&", "(", "this", ".", "initialization", ".", "bits", "&", "ASTNode", ".", "UnnecessaryCast", ")", "==", "0", ")", "{", "CastExpression", ".", "checkNeedForAssignedCast", "(", "scope", ",", "variableType", ",", "(", "CastExpression", ")", "this", ".", "initialization", ")", ";", "}", "}", "else", "{", "if", "(", "(", "variableType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "typeMismatchError", "(", "initializationType", ",", "variableType", ",", "this", ".", "initialization", ",", "null", ")", ";", "}", "}", "}", "}", "if", "(", "this", ".", "binding", "==", "Expression", ".", "getDirectBinding", "(", "this", ".", "initialization", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "assignmentHasNoEffect", "(", "this", ",", "this", ".", "name", ")", ";", "}", "this", ".", "binding", ".", "setConstant", "(", "this", ".", "binding", ".", "isFinal", "(", ")", "?", "this", ".", "initialization", ".", "constant", ".", "castTo", "(", "(", "variableType", ".", "id", "<<", "4", ")", "+", "this", ".", "initialization", ".", "constant", ".", "typeID", "(", ")", ")", ":", "Constant", ".", "NotAConstant", ")", ";", "}", "resolveAnnotations", "(", "scope", ",", "this", ".", "annotations", ",", "this", ".", "binding", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "annotations", "!=", "null", ")", "{", "int", "annotationsLength", "=", "this", ".", "annotations", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotationsLength", ";", "i", "++", ")", "this", ".", "annotations", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "this", ".", "type", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "if", "(", "this", ".", "initialization", "!=", "null", ")", "this", ".", "initialization", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,639
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "InitializationFlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "abstract", "class", "AbstractMethodDeclaration", "extends", "ASTNode", "implements", "ProblemSeverities", ",", "ReferenceContext", "{", "public", "MethodScope", "scope", ";", "public", "char", "[", "]", "selector", ";", "public", "int", "declarationSourceStart", ";", "public", "int", "declarationSourceEnd", ";", "public", "int", "modifiers", ";", "public", "int", "modifiersSourceStart", ";", "public", "Annotation", "[", "]", "annotations", ";", "public", "Argument", "[", "]", "arguments", ";", "public", "TypeReference", "[", "]", "thrownExceptions", ";", "public", "Statement", "[", "]", "statements", ";", "public", "int", "explicitDeclarations", ";", "public", "MethodBinding", "binding", ";", "public", "boolean", "ignoreFurtherInvestigation", "=", "false", ";", "public", "Javadoc", "javadoc", ";", "public", "int", "bodyStart", ";", "public", "int", "bodyEnd", "=", "-", "1", ";", "public", "CompilationResult", "compilationResult", ";", "AbstractMethodDeclaration", "(", "CompilationResult", "compilationResult", ")", "{", "this", ".", "compilationResult", "=", "compilationResult", ";", "}", "public", "void", "abort", "(", "int", "abortLevel", ",", "CategorizedProblem", "problem", ")", "{", "switch", "(", "abortLevel", ")", "{", "case", "AbortCompilation", ":", "throw", "new", "AbortCompilation", "(", "this", ".", "compilationResult", ",", "problem", ")", ";", "case", "AbortCompilationUnit", ":", "throw", "new", "AbortCompilationUnit", "(", "this", ".", "compilationResult", ",", "problem", ")", ";", "case", "AbortType", ":", "throw", "new", "AbortType", "(", "this", ".", "compilationResult", ",", "problem", ")", ";", "default", ":", "throw", "new", "AbortMethod", "(", "this", ".", "compilationResult", ",", "problem", ")", ";", "}", "}", "public", "abstract", "void", "analyseCode", "(", "ClassScope", "classScope", ",", "InitializationFlowContext", "initializationContext", ",", "FlowInfo", "info", ")", ";", "public", "void", "bindArguments", "(", ")", "{", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "if", "(", "this", ".", "binding", "==", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "arguments", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "arguments", "[", "i", "]", ".", "bind", "(", "this", ".", "scope", ",", "null", ",", "true", ")", ";", "}", "return", ";", "}", "boolean", "used", "=", "this", ".", "binding", ".", "isAbstract", "(", ")", "||", "this", ".", "binding", ".", "isNative", "(", ")", ";", "AnnotationBinding", "[", "]", "[", "]", "paramAnnotations", "=", "null", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "arguments", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "Argument", "argument", "=", "this", ".", "arguments", "[", "i", "]", ";", "argument", ".", "bind", "(", "this", ".", "scope", ",", "this", ".", "binding", ".", "parameters", "[", "i", "]", ",", "used", ")", ";", "if", "(", "argument", ".", "annotations", "!=", "null", ")", "{", "if", "(", "paramAnnotations", "==", "null", ")", "{", "paramAnnotations", "=", "new", "AnnotationBinding", "[", "length", "]", "[", "]", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "i", ";", "j", "++", ")", "{", "paramAnnotations", "[", "j", "]", "=", "Binding", ".", "NO_ANNOTATIONS", ";", "}", "}", "paramAnnotations", "[", "i", "]", "=", "argument", ".", "binding", ".", "getAnnotations", "(", ")", ";", "}", "else", "if", "(", "paramAnnotations", "!=", "null", ")", "{", "paramAnnotations", "[", "i", "]", "=", "Binding", ".", "NO_ANNOTATIONS", ";", "}", "}", "if", "(", "paramAnnotations", "!=", "null", ")", "this", ".", "binding", ".", "setParameterAnnotations", "(", "paramAnnotations", ")", ";", "}", "}", "public", "void", "bindThrownExceptions", "(", ")", "{", "if", "(", "this", ".", "thrownExceptions", "!=", "null", "&&", "this", ".", "binding", "!=", "null", "&&", "this", ".", "binding", ".", "thrownExceptions", "!=", "null", ")", "{", "int", "thrownExceptionLength", "=", "this", ".", "thrownExceptions", ".", "length", ";", "int", "length", "=", "this", ".", "binding", ".", "thrownExceptions", ".", "length", ";", "if", "(", "length", "==", "thrownExceptionLength", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "thrownExceptions", "[", "i", "]", ".", "resolvedType", "=", "this", ".", "binding", ".", "thrownExceptions", "[", "i", "]", ";", "}", "}", "else", "{", "int", "bindingIndex", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "thrownExceptionLength", "&&", "bindingIndex", "<", "length", ";", "i", "++", ")", "{", "TypeReference", "thrownException", "=", "this", ".", "thrownExceptions", "[", "i", "]", ";", "ReferenceBinding", "thrownExceptionBinding", "=", "this", ".", "binding", ".", "thrownExceptions", "[", "bindingIndex", "]", ";", "char", "[", "]", "[", "]", "bindingCompoundName", "=", "thrownExceptionBinding", ".", "compoundName", ";", "if", "(", "bindingCompoundName", "==", "null", ")", "continue", ";", "if", "(", "thrownException", "instanceof", "SingleTypeReference", ")", "{", "int", "lengthName", "=", "bindingCompoundName", ".", "length", ";", "char", "[", "]", "thrownExceptionTypeName", "=", "thrownException", ".", "getTypeName", "(", ")", "[", "0", "]", ";", "if", "(", "CharOperation", ".", "equals", "(", "thrownExceptionTypeName", ",", "bindingCompoundName", "[", "lengthName", "-", "1", "]", ")", ")", "{", "thrownException", ".", "resolvedType", "=", "thrownExceptionBinding", ";", "bindingIndex", "++", ";", "}", "}", "else", "{", "if", "(", "CharOperation", ".", "equals", "(", "thrownException", ".", "getTypeName", "(", ")", ",", "bindingCompoundName", ")", ")", "{", "thrownException", ".", "resolvedType", "=", "thrownExceptionBinding", ";", "bindingIndex", "++", ";", "}", "}", "}", "}", "}", "}", "public", "CompilationResult", "compilationResult", "(", ")", "{", "return", "this", ".", "compilationResult", ";", "}", "public", "void", "generateCode", "(", "ClassScope", "classScope", ",", "ClassFile", "classFile", ")", "{", "int", "problemResetPC", "=", "0", ";", "classFile", ".", "codeStream", ".", "wideMode", "=", "false", ";", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "{", "if", "(", "this", ".", "binding", "==", "null", ")", "return", ";", "int", "problemsLength", ";", "CategorizedProblem", "[", "]", "problems", "=", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ".", "getProblems", "(", ")", ";", "CategorizedProblem", "[", "]", "problemsCopy", "=", "new", "CategorizedProblem", "[", "problemsLength", "=", "problems", ".", "length", "]", ";", "System", ".", "arraycopy", "(", "problems", ",", "0", ",", "problemsCopy", ",", "0", ",", "problemsLength", ")", ";", "classFile", ".", "addProblemMethod", "(", "this", ",", "this", ".", "binding", ",", "problemsCopy", ")", ";", "return", ";", "}", "try", "{", "problemResetPC", "=", "classFile", ".", "contentsOffset", ";", "this", ".", "generateCode", "(", "classFile", ")", ";", "}", "catch", "(", "AbortMethod", "e", ")", "{", "if", "(", "e", ".", "compilationResult", "==", "CodeStream", ".", "RESTART_IN_WIDE_MODE", ")", "{", "try", "{", "classFile", ".", "contentsOffset", "=", "problemResetPC", ";", "classFile", ".", "methodCount", "--", ";", "classFile", ".", "codeStream", ".", "resetInWideMode", "(", ")", ";", "this", ".", "generateCode", "(", "classFile", ")", ";", "}", "catch", "(", "AbortMethod", "e2", ")", "{", "int", "problemsLength", ";", "CategorizedProblem", "[", "]", "problems", "=", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ".", "getAllProblems", "(", ")", ";", "CategorizedProblem", "[", "]", "problemsCopy", "=", "new", "CategorizedProblem", "[", "problemsLength", "=", "problems", ".", "length", "]", ";", "System", ".", "arraycopy", "(", "problems", ",", "0", ",", "problemsCopy", ",", "0", ",", "problemsLength", ")", ";", "classFile", ".", "addProblemMethod", "(", "this", ",", "this", ".", "binding", ",", "problemsCopy", ",", "problemResetPC", ")", ";", "}", "}", "else", "{", "int", "problemsLength", ";", "CategorizedProblem", "[", "]", "problems", "=", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ".", "getAllProblems", "(", ")", ";", "CategorizedProblem", "[", "]", "problemsCopy", "=", "new", "CategorizedProblem", "[", "problemsLength", "=", "problems", ".", "length", "]", ";", "System", ".", "arraycopy", "(", "problems", ",", "0", ",", "problemsCopy", ",", "0", ",", "problemsLength", ")", ";", "classFile", ".", "addProblemMethod", "(", "this", ",", "this", ".", "binding", ",", "problemsCopy", ",", "problemResetPC", ")", ";", "}", "}", "}", "public", "void", "generateCode", "(", "ClassFile", "classFile", ")", "{", "classFile", ".", "generateMethodInfoHeader", "(", "this", ".", "binding", ")", ";", "int", "methodAttributeOffset", "=", "classFile", ".", "contentsOffset", ";", "int", "attributeNumber", "=", "classFile", ".", "generateMethodInfoAttribute", "(", "this", ".", "binding", ")", ";", "if", "(", "(", "!", "this", ".", "binding", ".", "isNative", "(", ")", ")", "&&", "(", "!", "this", ".", "binding", ".", "isAbstract", "(", ")", ")", ")", "{", "int", "codeAttributeOffset", "=", "classFile", ".", "contentsOffset", ";", "classFile", ".", "generateCodeAttributeHeader", "(", ")", ";", "CodeStream", "codeStream", "=", "classFile", ".", "codeStream", ";", "codeStream", ".", "reset", "(", "this", ",", "classFile", ")", ";", "this", ".", "scope", ".", "computeLocalVariablePositions", "(", "this", ".", "binding", ".", "isStatic", "(", ")", "?", "0", ":", "1", ",", "codeStream", ")", ";", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "arguments", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "LocalVariableBinding", "argBinding", ";", "codeStream", ".", "addVisibleLocalVariable", "(", "argBinding", "=", "this", ".", "arguments", "[", "i", "]", ".", "binding", ")", ";", "argBinding", ".", "recordInitializationStartPC", "(", "0", ")", ";", "}", "}", "if", "(", "this", ".", "statements", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "statements", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "this", ".", "statements", "[", "i", "]", ".", "generateCode", "(", "this", ".", "scope", ",", "codeStream", ")", ";", "}", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "{", "throw", "new", "AbortMethod", "(", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ",", "null", ")", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "NeedFreeReturn", ")", "!=", "0", ")", "{", "codeStream", ".", "return_", "(", ")", ";", "}", "codeStream", ".", "exitUserScope", "(", "this", ".", "scope", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "0", ",", "this", ".", "declarationSourceEnd", ")", ";", "try", "{", "classFile", ".", "completeCodeAttribute", "(", "codeAttributeOffset", ")", ";", "}", "catch", "(", "NegativeArraySizeException", "e", ")", "{", "throw", "new", "AbortMethod", "(", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ",", "null", ")", ";", "}", "attributeNumber", "++", ";", "}", "else", "{", "checkArgumentsSize", "(", ")", ";", "}", "classFile", ".", "completeMethodInfo", "(", "methodAttributeOffset", ",", "attributeNumber", ")", ";", "}", "private", "void", "checkArgumentsSize", "(", ")", "{", "TypeBinding", "[", "]", "parameters", "=", "this", ".", "binding", ".", "parameters", ";", "int", "size", "=", "1", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "parameters", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "switch", "(", "parameters", "[", "i", "]", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "size", "+=", "2", ";", "break", ";", "default", ":", "size", "++", ";", "break", ";", "}", "if", "(", "size", ">", "0xFF", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "noMoreAvailableSpaceForArgument", "(", "this", ".", "scope", ".", "locals", "[", "i", "]", ",", "this", ".", "scope", ".", "locals", "[", "i", "]", ".", "declaration", ")", ";", "}", "}", "}", "public", "boolean", "hasErrors", "(", ")", "{", "return", "this", ".", "ignoreFurtherInvestigation", ";", "}", "public", "boolean", "isAbstract", "(", ")", "{", "if", "(", "this", ".", "binding", "!=", "null", ")", "return", "this", ".", "binding", ".", "isAbstract", "(", ")", ";", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccAbstract", ")", "!=", "0", ";", "}", "public", "boolean", "isAnnotationMethod", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isClinit", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isConstructor", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isDefaultConstructor", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isInitializationMethod", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isMethod", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isNative", "(", ")", "{", "if", "(", "this", ".", "binding", "!=", "null", ")", "return", "this", ".", "binding", ".", "isNative", "(", ")", ";", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccNative", ")", "!=", "0", ";", "}", "public", "boolean", "isStatic", "(", ")", "{", "if", "(", "this", ".", "binding", "!=", "null", ")", "return", "this", ".", "binding", ".", "isStatic", "(", ")", ";", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccStatic", ")", "!=", "0", ";", "}", "public", "abstract", "void", "parseStatements", "(", "Parser", "parser", ",", "CompilationUnitDeclaration", "unit", ")", ";", "public", "StringBuffer", "print", "(", "int", "tab", ",", "StringBuffer", "output", ")", "{", "if", "(", "this", ".", "javadoc", "!=", "null", ")", "{", "this", ".", "javadoc", ".", "print", "(", "tab", ",", "output", ")", ";", "}", "printIndent", "(", "tab", ",", "output", ")", ";", "printModifiers", "(", "this", ".", "modifiers", ",", "output", ")", ";", "if", "(", "this", ".", "annotations", "!=", "null", ")", "printAnnotations", "(", "this", ".", "annotations", ",", "output", ")", ";", "TypeParameter", "[", "]", "typeParams", "=", "typeParameters", "(", ")", ";", "if", "(", "typeParams", "!=", "null", ")", "{", "output", ".", "append", "(", "'<'", ")", ";", "int", "max", "=", "typeParams", ".", "length", "-", "1", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "max", ";", "j", "++", ")", "{", "typeParams", "[", "j", "]", ".", "print", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "\",", "\"", ")", ";", "}", "typeParams", "[", "max", "]", ".", "print", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "'>'", ")", ";", "}", "printReturnType", "(", "0", ",", "output", ")", ".", "append", "(", "this", ".", "selector", ")", ".", "append", "(", "'('", ")", ";", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "arguments", ".", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "output", ".", "append", "(", "\",", "\"", ")", ";", "this", ".", "arguments", "[", "i", "]", ".", "print", "(", "0", ",", "output", ")", ";", "}", "}", "output", ".", "append", "(", "')'", ")", ";", "if", "(", "this", ".", "thrownExceptions", "!=", "null", ")", "{", "output", ".", "append", "(", "\"", "throws", "\"", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "thrownExceptions", ".", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "output", ".", "append", "(", "\",", "\"", ")", ";", "this", ".", "thrownExceptions", "[", "i", "]", ".", "print", "(", "0", ",", "output", ")", ";", "}", "}", "printBody", "(", "tab", "+", "1", ",", "output", ")", ";", "return", "output", ";", "}", "public", "StringBuffer", "printBody", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "if", "(", "isAbstract", "(", ")", "||", "(", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccSemicolonBody", ")", "!=", "0", ")", "return", "output", ".", "append", "(", "';'", ")", ";", "output", ".", "append", "(", "\"", "{\"", ")", ";", "if", "(", "this", ".", "statements", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "statements", ".", "length", ";", "i", "++", ")", "{", "output", ".", "append", "(", "'\\n'", ")", ";", "this", ".", "statements", "[", "i", "]", ".", "printStatement", "(", "indent", ",", "output", ")", ";", "}", "}", "output", ".", "append", "(", "'\\n'", ")", ";", "printIndent", "(", "indent", "==", "0", "?", "0", ":", "indent", "-", "1", ",", "output", ")", ".", "append", "(", "'}'", ")", ";", "return", "output", ";", "}", "public", "StringBuffer", "printReturnType", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "output", ";", "}", "public", "void", "resolve", "(", "ClassScope", "upperScope", ")", "{", "if", "(", "this", ".", "binding", "==", "null", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "}", "try", "{", "bindArguments", "(", ")", ";", "bindThrownExceptions", "(", ")", ";", "resolveJavadoc", "(", ")", ";", "resolveAnnotations", "(", "this", ".", "scope", ",", "this", ".", "annotations", ",", "this", ".", "binding", ")", ";", "resolveStatements", "(", ")", ";", "if", "(", "this", ".", "binding", "!=", "null", "&&", "(", "this", ".", "binding", ".", "getAnnotationTagBits", "(", ")", "&", "TagBits", ".", "AnnotationDeprecated", ")", "==", "0", "&&", "(", "this", ".", "binding", ".", "modifiers", "&", "ClassFileConstants", ".", "AccDeprecated", ")", "!=", "0", "&&", "this", ".", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "missingDeprecatedAnnotationForMethod", "(", "this", ")", ";", "}", "}", "catch", "(", "AbortMethod", "e", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "}", "}", "public", "void", "resolveJavadoc", "(", ")", "{", "if", "(", "this", ".", "binding", "==", "null", ")", "return", ";", "if", "(", "this", ".", "javadoc", "!=", "null", ")", "{", "this", ".", "javadoc", ".", "resolve", "(", "this", ".", "scope", ")", ";", "return", ";", "}", "if", "(", "this", ".", "binding", ".", "declaringClass", "!=", "null", "&&", "!", "this", ".", "binding", ".", "declaringClass", ".", "isLocalType", "(", ")", ")", "{", "int", "javadocVisibility", "=", "this", ".", "binding", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccVisibilityMASK", ";", "ClassScope", "classScope", "=", "this", ".", "scope", ".", "classScope", "(", ")", ";", "ProblemReporter", "reporter", "=", "this", ".", "scope", ".", "problemReporter", "(", ")", ";", "int", "severity", "=", "reporter", ".", "computeSeverity", "(", "IProblem", ".", "JavadocMissing", ")", ";", "if", "(", "severity", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "if", "(", "classScope", "!=", "null", ")", "{", "javadocVisibility", "=", "Util", ".", "computeOuterMostVisibility", "(", "classScope", ".", "referenceType", "(", ")", ",", "javadocVisibility", ")", ";", "}", "int", "javadocModifiers", "=", "(", "this", ".", "binding", ".", "modifiers", "&", "~", "ExtraCompilerModifiers", ".", "AccVisibilityMASK", ")", "|", "javadocVisibility", ";", "reporter", ".", "javadocMissing", "(", "this", ".", "sourceStart", ",", "this", ".", "sourceEnd", ",", "severity", ",", "javadocModifiers", ")", ";", "}", "}", "}", "public", "void", "resolveStatements", "(", ")", "{", "if", "(", "this", ".", "statements", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "statements", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "statements", "[", "i", "]", ".", "resolve", "(", "this", ".", "scope", ")", ";", "}", "}", "else", "if", "(", "(", "this", ".", "bits", "&", "UndocumentedEmptyBlock", ")", "!=", "0", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "undocumentedEmptyBlock", "(", "this", ".", "bodyStart", "-", "1", ",", "this", ".", "bodyEnd", "+", "1", ")", ";", "}", "}", "public", "void", "tagAsHavingErrors", "(", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "classScope", ")", "{", "}", "public", "TypeParameter", "[", "]", "typeParameters", "(", ")", "{", "return", "null", ";", "}", "}", "</s>" ]
5,640
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "FloatConstant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "FloatUtil", ";", "public", "class", "FloatLiteral", "extends", "NumberLiteral", "{", "float", "value", ";", "public", "FloatLiteral", "(", "char", "[", "]", "token", ",", "int", "s", ",", "int", "e", ")", "{", "super", "(", "token", ",", "s", ",", "e", ")", ";", "}", "public", "void", "computeConstant", "(", ")", "{", "Float", "computedValue", ";", "try", "{", "computedValue", "=", "Float", ".", "valueOf", "(", "String", ".", "valueOf", "(", "this", ".", "source", ")", ")", ";", "}", "catch", "(", "NumberFormatException", "e", ")", "{", "try", "{", "float", "v", "=", "FloatUtil", ".", "valueOfHexFloatLiteral", "(", "this", ".", "source", ")", ";", "if", "(", "v", "==", "Float", ".", "POSITIVE_INFINITY", ")", "{", "return", ";", "}", "if", "(", "Float", ".", "isNaN", "(", "v", ")", ")", "{", "return", ";", "}", "this", ".", "value", "=", "v", ";", "this", ".", "constant", "=", "FloatConstant", ".", "fromValue", "(", "v", ")", ";", "}", "catch", "(", "NumberFormatException", "e1", ")", "{", "}", "return", ";", "}", "final", "float", "floatValue", "=", "computedValue", ".", "floatValue", "(", ")", ";", "if", "(", "floatValue", ">", "Float", ".", "MAX_VALUE", ")", "{", "return", ";", "}", "if", "(", "floatValue", "<", "Float", ".", "MIN_VALUE", ")", "{", "boolean", "isHexaDecimal", "=", "false", ";", "label", ":", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "source", ".", "length", ";", "i", "++", ")", "{", "switch", "(", "this", ".", "source", "[", "i", "]", ")", "{", "case", "'0'", ":", "case", "'.'", ":", "break", ";", "case", "'x'", ":", "case", "'X'", ":", "isHexaDecimal", "=", "true", ";", "break", ";", "case", "'e'", ":", "case", "'E'", ":", "case", "'f'", ":", "case", "'F'", ":", "case", "'d'", ":", "case", "'D'", ":", "if", "(", "isHexaDecimal", ")", "{", "return", ";", "}", "break", "label", ";", "case", "'p'", ":", "case", "'P'", ":", "break", "label", ";", "default", ":", "return", ";", "}", "}", "}", "this", ".", "value", "=", "floatValue", ";", "this", ".", "constant", "=", "FloatConstant", ".", "fromValue", "(", "this", ".", "value", ")", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "TypeBinding", "literalType", "(", "BlockScope", "scope", ")", "{", "return", "TypeBinding", ".", "FLOAT", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,641
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "class", "TypeDeclaration", "extends", "Statement", "implements", "ProblemSeverities", ",", "ReferenceContext", "{", "public", "static", "final", "int", "CLASS_DECL", "=", "1", ";", "public", "static", "final", "int", "INTERFACE_DECL", "=", "2", ";", "public", "static", "final", "int", "ENUM_DECL", "=", "3", ";", "public", "static", "final", "int", "ANNOTATION_TYPE_DECL", "=", "4", ";", "public", "int", "modifiers", "=", "ClassFileConstants", ".", "AccDefault", ";", "public", "int", "modifiersSourceStart", ";", "public", "Annotation", "[", "]", "annotations", ";", "public", "char", "[", "]", "name", ";", "public", "TypeReference", "superclass", ";", "public", "TypeReference", "[", "]", "superInterfaces", ";", "public", "FieldDeclaration", "[", "]", "fields", ";", "public", "AbstractMethodDeclaration", "[", "]", "methods", ";", "public", "TypeDeclaration", "[", "]", "memberTypes", ";", "public", "SourceTypeBinding", "binding", ";", "public", "ClassScope", "scope", ";", "public", "MethodScope", "initializerScope", ";", "public", "MethodScope", "staticInitializerScope", ";", "public", "boolean", "ignoreFurtherInvestigation", "=", "false", ";", "public", "int", "maxFieldCount", ";", "public", "int", "declarationSourceStart", ";", "public", "int", "declarationSourceEnd", ";", "public", "int", "bodyStart", ";", "public", "int", "bodyEnd", ";", "public", "CompilationResult", "compilationResult", ";", "public", "MethodDeclaration", "[", "]", "missingAbstractMethods", ";", "public", "Javadoc", "javadoc", ";", "public", "QualifiedAllocationExpression", "allocation", ";", "public", "TypeDeclaration", "enclosingType", ";", "public", "FieldBinding", "enumValuesSyntheticfield", ";", "public", "TypeParameter", "[", "]", "typeParameters", ";", "public", "TypeDeclaration", "(", "CompilationResult", "compilationResult", ")", "{", "this", ".", "compilationResult", "=", "compilationResult", ";", "}", "public", "void", "abort", "(", "int", "abortLevel", ",", "CategorizedProblem", "problem", ")", "{", "switch", "(", "abortLevel", ")", "{", "case", "AbortCompilation", ":", "throw", "new", "AbortCompilation", "(", "this", ".", "compilationResult", ",", "problem", ")", ";", "case", "AbortCompilationUnit", ":", "throw", "new", "AbortCompilationUnit", "(", "this", ".", "compilationResult", ",", "problem", ")", ";", "case", "AbortMethod", ":", "throw", "new", "AbortMethod", "(", "this", ".", "compilationResult", ",", "problem", ")", ";", "default", ":", "throw", "new", "AbortType", "(", "this", ".", "compilationResult", ",", "problem", ")", ";", "}", "}", "public", "final", "void", "addClinit", "(", ")", "{", "if", "(", "needClassInitMethod", "(", ")", ")", "{", "int", "length", ";", "AbstractMethodDeclaration", "[", "]", "methodDeclarations", ";", "if", "(", "(", "methodDeclarations", "=", "this", ".", "methods", ")", "==", "null", ")", "{", "length", "=", "0", ";", "methodDeclarations", "=", "new", "AbstractMethodDeclaration", "[", "1", "]", ";", "}", "else", "{", "length", "=", "methodDeclarations", ".", "length", ";", "System", ".", "arraycopy", "(", "methodDeclarations", ",", "0", ",", "(", "methodDeclarations", "=", "new", "AbstractMethodDeclaration", "[", "length", "+", "1", "]", ")", ",", "1", ",", "length", ")", ";", "}", "Clinit", "clinit", "=", "new", "Clinit", "(", "this", ".", "compilationResult", ")", ";", "methodDeclarations", "[", "0", "]", "=", "clinit", ";", "clinit", ".", "declarationSourceStart", "=", "clinit", ".", "sourceStart", "=", "this", ".", "sourceStart", ";", "clinit", ".", "declarationSourceEnd", "=", "clinit", ".", "sourceEnd", "=", "this", ".", "sourceEnd", ";", "clinit", ".", "bodyEnd", "=", "this", ".", "sourceEnd", ";", "this", ".", "methods", "=", "methodDeclarations", ";", "}", "}", "public", "MethodDeclaration", "addMissingAbstractMethodFor", "(", "MethodBinding", "methodBinding", ")", "{", "TypeBinding", "[", "]", "argumentTypes", "=", "methodBinding", ".", "parameters", ";", "int", "argumentsLength", "=", "argumentTypes", ".", "length", ";", "MethodDeclaration", "methodDeclaration", "=", "new", "MethodDeclaration", "(", "this", ".", "compilationResult", ")", ";", "methodDeclaration", ".", "selector", "=", "methodBinding", ".", "selector", ";", "methodDeclaration", ".", "sourceStart", "=", "this", ".", "sourceStart", ";", "methodDeclaration", ".", "sourceEnd", "=", "this", ".", "sourceEnd", ";", "methodDeclaration", ".", "modifiers", "=", "methodBinding", ".", "getAccessFlags", "(", ")", "&", "~", "ClassFileConstants", ".", "AccAbstract", ";", "if", "(", "argumentsLength", ">", "0", ")", "{", "String", "baseName", "=", "\"arg\"", ";", "Argument", "[", "]", "arguments", "=", "(", "methodDeclaration", ".", "arguments", "=", "new", "Argument", "[", "argumentsLength", "]", ")", ";", "for", "(", "int", "i", "=", "argumentsLength", ";", "--", "i", ">=", "0", ";", ")", "{", "arguments", "[", "i", "]", "=", "new", "Argument", "(", "(", "baseName", "+", "i", ")", ".", "toCharArray", "(", ")", ",", "0L", ",", "null", ",", "ClassFileConstants", ".", "AccDefault", ")", ";", "}", "}", "if", "(", "this", ".", "missingAbstractMethods", "==", "null", ")", "{", "this", ".", "missingAbstractMethods", "=", "new", "MethodDeclaration", "[", "]", "{", "methodDeclaration", "}", ";", "}", "else", "{", "MethodDeclaration", "[", "]", "newMethods", ";", "System", ".", "arraycopy", "(", "this", ".", "missingAbstractMethods", ",", "0", ",", "newMethods", "=", "new", "MethodDeclaration", "[", "this", ".", "missingAbstractMethods", ".", "length", "+", "1", "]", ",", "1", ",", "this", ".", "missingAbstractMethods", ".", "length", ")", ";", "newMethods", "[", "0", "]", "=", "methodDeclaration", ";", "this", ".", "missingAbstractMethods", "=", "newMethods", ";", "}", "methodDeclaration", ".", "binding", "=", "new", "MethodBinding", "(", "methodDeclaration", ".", "modifiers", "|", "ClassFileConstants", ".", "AccSynthetic", ",", "methodBinding", ".", "selector", ",", "methodBinding", ".", "returnType", ",", "argumentsLength", "==", "0", "?", "Binding", ".", "NO_PARAMETERS", ":", "argumentTypes", ",", "methodBinding", ".", "thrownExceptions", ",", "this", ".", "binding", ")", ";", "methodDeclaration", ".", "scope", "=", "new", "MethodScope", "(", "this", ".", "scope", ",", "methodDeclaration", ",", "true", ")", ";", "methodDeclaration", ".", "bindArguments", "(", ")", ";", "return", "methodDeclaration", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "return", "flowInfo", ";", "try", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "IsReachable", ";", "LocalTypeBinding", "localType", "=", "(", "LocalTypeBinding", ")", "this", ".", "binding", ";", "localType", ".", "setConstantPoolName", "(", "currentScope", ".", "compilationUnitScope", "(", ")", ".", "computeConstantPoolName", "(", "localType", ")", ")", ";", "}", "manageEnclosingInstanceAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ")", ";", "updateMaxFieldCount", "(", ")", ";", "internalAnalyseCode", "(", "flowContext", ",", "flowInfo", ")", ";", "}", "catch", "(", "AbortType", "e", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "}", "return", "flowInfo", ";", "}", "public", "void", "analyseCode", "(", "ClassScope", "enclosingClassScope", ")", "{", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "return", ";", "try", "{", "updateMaxFieldCount", "(", ")", ";", "internalAnalyseCode", "(", "null", ",", "FlowInfo", ".", "initial", "(", "this", ".", "maxFieldCount", ")", ")", ";", "}", "catch", "(", "AbortType", "e", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "}", "}", "public", "void", "analyseCode", "(", "ClassScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "return", ";", "try", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "IsReachable", ";", "LocalTypeBinding", "localType", "=", "(", "LocalTypeBinding", ")", "this", ".", "binding", ";", "localType", ".", "setConstantPoolName", "(", "currentScope", ".", "compilationUnitScope", "(", ")", ".", "computeConstantPoolName", "(", "localType", ")", ")", ";", "}", "manageEnclosingInstanceAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ")", ";", "updateMaxFieldCount", "(", ")", ";", "internalAnalyseCode", "(", "flowContext", ",", "flowInfo", ")", ";", "}", "catch", "(", "AbortType", "e", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "}", "}", "public", "void", "analyseCode", "(", "CompilationUnitScope", "unitScope", ")", "{", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "return", ";", "try", "{", "internalAnalyseCode", "(", "null", ",", "FlowInfo", ".", "initial", "(", "this", ".", "maxFieldCount", ")", ")", ";", "}", "catch", "(", "AbortType", "e", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "}", "}", "public", "boolean", "checkConstructors", "(", "Parser", "parser", ")", "{", "boolean", "hasConstructor", "=", "false", ";", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "this", ".", "methods", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "{", "AbstractMethodDeclaration", "am", ";", "if", "(", "(", "am", "=", "this", ".", "methods", "[", "i", "]", ")", ".", "isConstructor", "(", ")", ")", "{", "if", "(", "!", "CharOperation", ".", "equals", "(", "am", ".", "selector", ",", "this", ".", "name", ")", ")", "{", "ConstructorDeclaration", "c", "=", "(", "ConstructorDeclaration", ")", "am", ";", "if", "(", "c", ".", "constructorCall", "==", "null", "||", "c", ".", "constructorCall", ".", "isImplicitSuper", "(", ")", ")", "{", "MethodDeclaration", "m", "=", "parser", ".", "convertToMethodDeclaration", "(", "c", ",", "this", ".", "compilationResult", ")", ";", "this", ".", "methods", "[", "i", "]", "=", "m", ";", "}", "}", "else", "{", "switch", "(", "kind", "(", "this", ".", "modifiers", ")", ")", "{", "case", "TypeDeclaration", ".", "INTERFACE_DECL", ":", "parser", ".", "problemReporter", "(", ")", ".", "interfaceCannotHaveConstructors", "(", "(", "ConstructorDeclaration", ")", "am", ")", ";", "break", ";", "case", "TypeDeclaration", ".", "ANNOTATION_TYPE_DECL", ":", "parser", ".", "problemReporter", "(", ")", ".", "annotationTypeDeclarationCannotHaveConstructor", "(", "(", "ConstructorDeclaration", ")", "am", ")", ";", "break", ";", "}", "hasConstructor", "=", "true", ";", "}", "}", "}", "}", "return", "hasConstructor", ";", "}", "public", "CompilationResult", "compilationResult", "(", ")", "{", "return", "this", ".", "compilationResult", ";", "}", "public", "ConstructorDeclaration", "createDefaultConstructor", "(", "boolean", "needExplicitConstructorCall", ",", "boolean", "needToInsert", ")", "{", "ConstructorDeclaration", "constructor", "=", "new", "ConstructorDeclaration", "(", "this", ".", "compilationResult", ")", ";", "constructor", ".", "bits", "|=", "ASTNode", ".", "IsDefaultConstructor", ";", "constructor", ".", "selector", "=", "this", ".", "name", ";", "constructor", ".", "modifiers", "=", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccVisibilityMASK", ";", "constructor", ".", "declarationSourceStart", "=", "constructor", ".", "sourceStart", "=", "this", ".", "sourceStart", ";", "constructor", ".", "declarationSourceEnd", "=", "constructor", ".", "sourceEnd", "=", "constructor", ".", "bodyEnd", "=", "this", ".", "sourceEnd", ";", "if", "(", "needExplicitConstructorCall", ")", "{", "constructor", ".", "constructorCall", "=", "SuperReference", ".", "implicitSuperConstructorCall", "(", ")", ";", "constructor", ".", "constructorCall", ".", "sourceStart", "=", "this", ".", "sourceStart", ";", "constructor", ".", "constructorCall", ".", "sourceEnd", "=", "this", ".", "sourceEnd", ";", "}", "if", "(", "needToInsert", ")", "{", "if", "(", "this", ".", "methods", "==", "null", ")", "{", "this", ".", "methods", "=", "new", "AbstractMethodDeclaration", "[", "]", "{", "constructor", "}", ";", "}", "else", "{", "AbstractMethodDeclaration", "[", "]", "newMethods", ";", "System", ".", "arraycopy", "(", "this", ".", "methods", ",", "0", ",", "newMethods", "=", "new", "AbstractMethodDeclaration", "[", "this", ".", "methods", ".", "length", "+", "1", "]", ",", "1", ",", "this", ".", "methods", ".", "length", ")", ";", "newMethods", "[", "0", "]", "=", "constructor", ";", "this", ".", "methods", "=", "newMethods", ";", "}", "}", "return", "constructor", ";", "}", "public", "MethodBinding", "createDefaultConstructorWithBinding", "(", "MethodBinding", "inheritedConstructorBinding", ",", "boolean", "eraseThrownExceptions", ")", "{", "String", "baseName", "=", "\"$anonymous\"", ";", "TypeBinding", "[", "]", "argumentTypes", "=", "inheritedConstructorBinding", ".", "parameters", ";", "int", "argumentsLength", "=", "argumentTypes", ".", "length", ";", "ConstructorDeclaration", "constructor", "=", "new", "ConstructorDeclaration", "(", "this", ".", "compilationResult", ")", ";", "constructor", ".", "selector", "=", "new", "char", "[", "]", "{", "'x'", "}", ";", "constructor", ".", "sourceStart", "=", "this", ".", "sourceStart", ";", "constructor", ".", "sourceEnd", "=", "this", ".", "sourceEnd", ";", "int", "newModifiers", "=", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccVisibilityMASK", ";", "if", "(", "inheritedConstructorBinding", ".", "isVarargs", "(", ")", ")", "{", "newModifiers", "|=", "ClassFileConstants", ".", "AccVarargs", ";", "}", "constructor", ".", "modifiers", "=", "newModifiers", ";", "constructor", ".", "bits", "|=", "ASTNode", ".", "IsDefaultConstructor", ";", "if", "(", "argumentsLength", ">", "0", ")", "{", "Argument", "[", "]", "arguments", "=", "(", "constructor", ".", "arguments", "=", "new", "Argument", "[", "argumentsLength", "]", ")", ";", "for", "(", "int", "i", "=", "argumentsLength", ";", "--", "i", ">=", "0", ";", ")", "{", "arguments", "[", "i", "]", "=", "new", "Argument", "(", "(", "baseName", "+", "i", ")", ".", "toCharArray", "(", ")", ",", "0L", ",", "null", ",", "ClassFileConstants", ".", "AccDefault", ")", ";", "}", "}", "constructor", ".", "constructorCall", "=", "SuperReference", ".", "implicitSuperConstructorCall", "(", ")", ";", "constructor", ".", "constructorCall", ".", "sourceStart", "=", "this", ".", "sourceStart", ";", "constructor", ".", "constructorCall", ".", "sourceEnd", "=", "this", ".", "sourceEnd", ";", "if", "(", "argumentsLength", ">", "0", ")", "{", "Expression", "[", "]", "args", ";", "args", "=", "constructor", ".", "constructorCall", ".", "arguments", "=", "new", "Expression", "[", "argumentsLength", "]", ";", "for", "(", "int", "i", "=", "argumentsLength", ";", "--", "i", ">=", "0", ";", ")", "{", "args", "[", "i", "]", "=", "new", "SingleNameReference", "(", "(", "baseName", "+", "i", ")", ".", "toCharArray", "(", ")", ",", "0L", ")", ";", "}", "}", "if", "(", "this", ".", "methods", "==", "null", ")", "{", "this", ".", "methods", "=", "new", "AbstractMethodDeclaration", "[", "]", "{", "constructor", "}", ";", "}", "else", "{", "AbstractMethodDeclaration", "[", "]", "newMethods", ";", "System", ".", "arraycopy", "(", "this", ".", "methods", ",", "0", ",", "newMethods", "=", "new", "AbstractMethodDeclaration", "[", "this", ".", "methods", ".", "length", "+", "1", "]", ",", "1", ",", "this", ".", "methods", ".", "length", ")", ";", "newMethods", "[", "0", "]", "=", "constructor", ";", "this", ".", "methods", "=", "newMethods", ";", "}", "ReferenceBinding", "[", "]", "thrownExceptions", "=", "eraseThrownExceptions", "?", "this", ".", "scope", ".", "environment", "(", ")", ".", "convertToRawTypes", "(", "inheritedConstructorBinding", ".", "thrownExceptions", ",", "true", ",", "true", ")", ":", "inheritedConstructorBinding", ".", "thrownExceptions", ";", "SourceTypeBinding", "sourceType", "=", "this", ".", "binding", ";", "constructor", ".", "binding", "=", "new", "MethodBinding", "(", "constructor", ".", "modifiers", ",", "argumentsLength", "==", "0", "?", "Binding", ".", "NO_PARAMETERS", ":", "argumentTypes", ",", "thrownExceptions", ",", "sourceType", ")", ";", "constructor", ".", "binding", ".", "tagBits", "|=", "(", "inheritedConstructorBinding", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", ";", "constructor", ".", "binding", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccIsDefaultConstructor", ";", "constructor", ".", "scope", "=", "new", "MethodScope", "(", "this", ".", "scope", ",", "constructor", ",", "true", ")", ";", "constructor", ".", "bindArguments", "(", ")", ";", "constructor", ".", "constructorCall", ".", "resolve", "(", "constructor", ".", "scope", ")", ";", "MethodBinding", "[", "]", "methodBindings", "=", "sourceType", ".", "methods", "(", ")", ";", "int", "length", ";", "System", ".", "arraycopy", "(", "methodBindings", ",", "0", ",", "methodBindings", "=", "new", "MethodBinding", "[", "(", "length", "=", "methodBindings", ".", "length", ")", "+", "1", "]", ",", "1", ",", "length", ")", ";", "methodBindings", "[", "0", "]", "=", "constructor", ".", "binding", ";", "if", "(", "++", "length", ">", "1", ")", "ReferenceBinding", ".", "sortMethods", "(", "methodBindings", ",", "0", ",", "length", ")", ";", "sourceType", ".", "setMethods", "(", "methodBindings", ")", ";", "return", "constructor", ".", "binding", ";", "}", "public", "FieldDeclaration", "declarationOf", "(", "FieldBinding", "fieldBinding", ")", "{", "if", "(", "fieldBinding", "!=", "null", "&&", "this", ".", "fields", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "fields", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "FieldDeclaration", "fieldDecl", ";", "if", "(", "(", "fieldDecl", "=", "this", ".", "fields", "[", "i", "]", ")", ".", "binding", "==", "fieldBinding", ")", "return", "fieldDecl", ";", "}", "}", "return", "null", ";", "}", "public", "TypeDeclaration", "declarationOf", "(", "MemberTypeBinding", "memberTypeBinding", ")", "{", "if", "(", "memberTypeBinding", "!=", "null", "&&", "this", ".", "memberTypes", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "memberTypes", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "TypeDeclaration", "memberTypeDecl", ";", "if", "(", "(", "memberTypeDecl", "=", "this", ".", "memberTypes", "[", "i", "]", ")", ".", "binding", "==", "memberTypeBinding", ")", "return", "memberTypeDecl", ";", "}", "}", "return", "null", ";", "}", "public", "AbstractMethodDeclaration", "declarationOf", "(", "MethodBinding", "methodBinding", ")", "{", "if", "(", "methodBinding", "!=", "null", "&&", "this", ".", "methods", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "methods", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "AbstractMethodDeclaration", "methodDecl", ";", "if", "(", "(", "methodDecl", "=", "this", ".", "methods", "[", "i", "]", ")", ".", "binding", "==", "methodBinding", ")", "return", "methodDecl", ";", "}", "}", "return", "null", ";", "}", "public", "TypeDeclaration", "declarationOfType", "(", "char", "[", "]", "[", "]", "typeName", ")", "{", "int", "typeNameLength", "=", "typeName", ".", "length", ";", "if", "(", "typeNameLength", "<", "1", "||", "!", "CharOperation", ".", "equals", "(", "typeName", "[", "0", "]", ",", "this", ".", "name", ")", ")", "{", "return", "null", ";", "}", "if", "(", "typeNameLength", "==", "1", ")", "{", "return", "this", ";", "}", "char", "[", "]", "[", "]", "subTypeName", "=", "new", "char", "[", "typeNameLength", "-", "1", "]", "[", "]", ";", "System", ".", "arraycopy", "(", "typeName", ",", "1", ",", "subTypeName", ",", "0", ",", "typeNameLength", "-", "1", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "memberTypes", ".", "length", ";", "i", "++", ")", "{", "TypeDeclaration", "typeDecl", "=", "this", ".", "memberTypes", "[", "i", "]", ".", "declarationOfType", "(", "subTypeName", ")", ";", "if", "(", "typeDecl", "!=", "null", ")", "{", "return", "typeDecl", ";", "}", "}", "return", "null", ";", "}", "public", "void", "generateCode", "(", "ClassFile", "enclosingClassFile", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "HasBeenGenerated", ")", "!=", "0", ")", "return", ";", "this", ".", "bits", "|=", "ASTNode", ".", "HasBeenGenerated", ";", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "{", "if", "(", "this", ".", "binding", "==", "null", ")", "return", ";", "ClassFile", ".", "createProblemType", "(", "this", ",", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ")", ";", "return", ";", "}", "try", "{", "ClassFile", "classFile", "=", "ClassFile", ".", "getNewInstance", "(", "this", ".", "binding", ")", ";", "classFile", ".", "initialize", "(", "this", ".", "binding", ",", "enclosingClassFile", ",", "false", ")", ";", "if", "(", "this", ".", "binding", ".", "isMemberType", "(", ")", ")", "{", "classFile", ".", "recordInnerClasses", "(", "this", ".", "binding", ")", ";", "}", "else", "if", "(", "this", ".", "binding", ".", "isLocalType", "(", ")", ")", "{", "enclosingClassFile", ".", "recordInnerClasses", "(", "this", ".", "binding", ")", ";", "classFile", ".", "recordInnerClasses", "(", "this", ".", "binding", ")", ";", "}", "TypeVariableBinding", "[", "]", "typeVariables", "=", "this", ".", "binding", ".", "typeVariables", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "typeVariables", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "TypeVariableBinding", "typeVariableBinding", "=", "typeVariables", "[", "i", "]", ";", "if", "(", "(", "typeVariableBinding", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ")", "!=", "0", ")", "{", "Util", ".", "recordNestedType", "(", "classFile", ",", "typeVariableBinding", ")", ";", "}", "}", "classFile", ".", "addFieldInfos", "(", ")", ";", "if", "(", "this", ".", "memberTypes", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "memberTypes", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "TypeDeclaration", "memberType", "=", "this", ".", "memberTypes", "[", "i", "]", ";", "classFile", ".", "recordInnerClasses", "(", "memberType", ".", "binding", ")", ";", "memberType", ".", "generateCode", "(", "this", ".", "scope", ",", "classFile", ")", ";", "}", "}", "classFile", ".", "setForMethodInfos", "(", ")", ";", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "methods", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "this", ".", "methods", "[", "i", "]", ".", "generateCode", "(", "this", ".", "scope", ",", "classFile", ")", ";", "}", "}", "classFile", ".", "addSpecialMethods", "(", ")", ";", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "{", "throw", "new", "AbortType", "(", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ",", "null", ")", ";", "}", "classFile", ".", "addAttributes", "(", ")", ";", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ".", "record", "(", "this", ".", "binding", ".", "constantPoolName", "(", ")", ",", "classFile", ")", ";", "}", "catch", "(", "AbortType", "e", ")", "{", "if", "(", "this", ".", "binding", "==", "null", ")", "return", ";", "ClassFile", ".", "createProblemType", "(", "this", ",", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ")", ";", "}", "}", "public", "void", "generateCode", "(", "BlockScope", "blockScope", ",", "CodeStream", "codeStream", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsReachable", ")", "==", "0", ")", "{", "return", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "HasBeenGenerated", ")", "!=", "0", ")", "return", ";", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "this", ".", "binding", "!=", "null", ")", "{", "SyntheticArgumentBinding", "[", "]", "enclosingInstances", "=", "(", "(", "NestedTypeBinding", ")", "this", ".", "binding", ")", ".", "syntheticEnclosingInstances", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "slotSize", "=", "0", ",", "count", "=", "enclosingInstances", "==", "null", "?", "0", ":", "enclosingInstances", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "SyntheticArgumentBinding", "enclosingInstance", "=", "enclosingInstances", "[", "i", "]", ";", "enclosingInstance", ".", "resolvedPosition", "=", "++", "slotSize", ";", "if", "(", "slotSize", ">", "0xFF", ")", "{", "blockScope", ".", "problemReporter", "(", ")", ".", "noMoreAvailableSpaceForArgument", "(", "enclosingInstance", ",", "blockScope", ".", "referenceType", "(", ")", ")", ";", "}", "}", "}", "generateCode", "(", "codeStream", ".", "classFile", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "void", "generateCode", "(", "ClassScope", "classScope", ",", "ClassFile", "enclosingClassFile", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "HasBeenGenerated", ")", "!=", "0", ")", "return", ";", "if", "(", "this", ".", "binding", "!=", "null", ")", "{", "SyntheticArgumentBinding", "[", "]", "enclosingInstances", "=", "(", "(", "NestedTypeBinding", ")", "this", ".", "binding", ")", ".", "syntheticEnclosingInstances", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "slotSize", "=", "0", ",", "count", "=", "enclosingInstances", "==", "null", "?", "0", ":", "enclosingInstances", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "SyntheticArgumentBinding", "enclosingInstance", "=", "enclosingInstances", "[", "i", "]", ";", "enclosingInstance", ".", "resolvedPosition", "=", "++", "slotSize", ";", "if", "(", "slotSize", ">", "0xFF", ")", "{", "classScope", ".", "problemReporter", "(", ")", ".", "noMoreAvailableSpaceForArgument", "(", "enclosingInstance", ",", "classScope", ".", "referenceType", "(", ")", ")", ";", "}", "}", "}", "generateCode", "(", "enclosingClassFile", ")", ";", "}", "public", "void", "generateCode", "(", "CompilationUnitScope", "unitScope", ")", "{", "generateCode", "(", "(", "ClassFile", ")", "null", ")", ";", "}", "public", "boolean", "hasErrors", "(", ")", "{", "return", "this", ".", "ignoreFurtherInvestigation", ";", "}", "private", "void", "internalAnalyseCode", "(", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "!", "this", ".", "binding", ".", "isUsed", "(", ")", "&&", "this", ".", "binding", ".", "isOrEnclosedByPrivateType", "(", ")", ")", "{", "if", "(", "!", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ".", "hasSyntaxError", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "unusedPrivateType", "(", "this", ")", ";", "}", "}", "InitializationFlowContext", "initializerContext", "=", "new", "InitializationFlowContext", "(", "null", ",", "this", ",", "flowInfo", ",", "flowContext", ",", "this", ".", "initializerScope", ")", ";", "InitializationFlowContext", "staticInitializerContext", "=", "new", "InitializationFlowContext", "(", "null", ",", "this", ",", "flowInfo", ",", "flowContext", ",", "this", ".", "staticInitializerScope", ")", ";", "FlowInfo", "nonStaticFieldInfo", "=", "flowInfo", ".", "unconditionalFieldLessCopy", "(", ")", ";", "FlowInfo", "staticFieldInfo", "=", "flowInfo", ".", "unconditionalFieldLessCopy", "(", ")", ";", "if", "(", "this", ".", "fields", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "fields", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "FieldDeclaration", "field", "=", "this", ".", "fields", "[", "i", "]", ";", "if", "(", "field", ".", "isStatic", "(", ")", ")", "{", "if", "(", "(", "staticFieldInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", ")", "field", ".", "bits", "&=", "~", "ASTNode", ".", "IsReachable", ";", "staticInitializerContext", ".", "handledExceptions", "=", "Binding", ".", "ANY_EXCEPTION", ";", "staticFieldInfo", "=", "field", ".", "analyseCode", "(", "this", ".", "staticInitializerScope", ",", "staticInitializerContext", ",", "staticFieldInfo", ")", ";", "if", "(", "staticFieldInfo", "==", "FlowInfo", ".", "DEAD_END", ")", "{", "this", ".", "staticInitializerScope", ".", "problemReporter", "(", ")", ".", "initializerMustCompleteNormally", "(", "field", ")", ";", "staticFieldInfo", "=", "FlowInfo", ".", "initial", "(", "this", ".", "maxFieldCount", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE", ")", ";", "}", "}", "else", "{", "if", "(", "(", "nonStaticFieldInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", ")", "field", ".", "bits", "&=", "~", "ASTNode", ".", "IsReachable", ";", "initializerContext", ".", "handledExceptions", "=", "Binding", ".", "ANY_EXCEPTION", ";", "nonStaticFieldInfo", "=", "field", ".", "analyseCode", "(", "this", ".", "initializerScope", ",", "initializerContext", ",", "nonStaticFieldInfo", ")", ";", "if", "(", "nonStaticFieldInfo", "==", "FlowInfo", ".", "DEAD_END", ")", "{", "this", ".", "initializerScope", ".", "problemReporter", "(", ")", ".", "initializerMustCompleteNormally", "(", "field", ")", ";", "nonStaticFieldInfo", "=", "FlowInfo", ".", "initial", "(", "this", ".", "maxFieldCount", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE", ")", ";", "}", "}", "}", "}", "if", "(", "this", ".", "memberTypes", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "memberTypes", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "if", "(", "flowContext", "!=", "null", ")", "{", "this", ".", "memberTypes", "[", "i", "]", ".", "analyseCode", "(", "this", ".", "scope", ",", "flowContext", ",", "nonStaticFieldInfo", ".", "copy", "(", ")", ".", "setReachMode", "(", "flowInfo", ".", "reachMode", "(", ")", ")", ")", ";", "}", "else", "{", "this", ".", "memberTypes", "[", "i", "]", ".", "analyseCode", "(", "this", ".", "scope", ")", ";", "}", "}", "}", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "UnconditionalFlowInfo", "outerInfo", "=", "flowInfo", ".", "unconditionalFieldLessCopy", "(", ")", ";", "FlowInfo", "constructorInfo", "=", "nonStaticFieldInfo", ".", "unconditionalInits", "(", ")", ".", "discardNonFieldInitializations", "(", ")", ".", "addInitializationsFrom", "(", "outerInfo", ")", ";", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "methods", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "AbstractMethodDeclaration", "method", "=", "this", ".", "methods", "[", "i", "]", ";", "if", "(", "method", ".", "ignoreFurtherInvestigation", ")", "continue", ";", "if", "(", "method", ".", "isInitializationMethod", "(", ")", ")", "{", "if", "(", "method", ".", "isStatic", "(", ")", ")", "{", "method", ".", "analyseCode", "(", "this", ".", "scope", ",", "staticInitializerContext", ",", "staticFieldInfo", ".", "unconditionalInits", "(", ")", ".", "discardNonFieldInitializations", "(", ")", ".", "addInitializationsFrom", "(", "outerInfo", ")", ")", ";", "}", "else", "{", "(", "(", "ConstructorDeclaration", ")", "method", ")", ".", "analyseCode", "(", "this", ".", "scope", ",", "initializerContext", ",", "constructorInfo", ".", "copy", "(", ")", ",", "flowInfo", ".", "reachMode", "(", ")", ")", ";", "}", "}", "else", "{", "method", ".", "analyseCode", "(", "this", ".", "scope", ",", "null", ",", "flowInfo", ".", "copy", "(", ")", ")", ";", "}", "}", "}", "if", "(", "this", ".", "binding", ".", "isEnum", "(", ")", "&&", "!", "this", ".", "binding", ".", "isAnonymousType", "(", ")", ")", "{", "this", ".", "enumValuesSyntheticfield", "=", "this", ".", "binding", ".", "addSyntheticFieldForEnumValues", "(", ")", ";", "}", "}", "public", "final", "static", "int", "kind", "(", "int", "flags", ")", "{", "switch", "(", "flags", "&", "(", "ClassFileConstants", ".", "AccInterface", "|", "ClassFileConstants", ".", "AccAnnotation", "|", "ClassFileConstants", ".", "AccEnum", ")", ")", "{", "case", "ClassFileConstants", ".", "AccInterface", ":", "return", "TypeDeclaration", ".", "INTERFACE_DECL", ";", "case", "ClassFileConstants", ".", "AccInterface", "|", "ClassFileConstants", ".", "AccAnnotation", ":", "return", "TypeDeclaration", ".", "ANNOTATION_TYPE_DECL", ";", "case", "ClassFileConstants", ".", "AccEnum", ":", "return", "TypeDeclaration", ".", "ENUM_DECL", ";", "default", ":", "return", "TypeDeclaration", ".", "CLASS_DECL", ";", "}", "}", "public", "void", "manageEnclosingInstanceAccessIfNecessary", "(", "BlockScope", "currentScope", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", ")", "return", ";", "NestedTypeBinding", "nestedType", "=", "(", "NestedTypeBinding", ")", "this", ".", "binding", ";", "MethodScope", "methodScope", "=", "currentScope", ".", "methodScope", "(", ")", ";", "if", "(", "!", "methodScope", ".", "isStatic", "&&", "!", "methodScope", ".", "isConstructorCall", ")", "{", "nestedType", ".", "addSyntheticArgumentAndField", "(", "nestedType", ".", "enclosingType", "(", ")", ")", ";", "}", "if", "(", "nestedType", ".", "isAnonymousType", "(", ")", ")", "{", "ReferenceBinding", "superclassBinding", "=", "(", "ReferenceBinding", ")", "nestedType", ".", "superclass", ".", "erasure", "(", ")", ";", "if", "(", "superclassBinding", ".", "enclosingType", "(", ")", "!=", "null", "&&", "!", "superclassBinding", ".", "isStatic", "(", ")", ")", "{", "if", "(", "!", "superclassBinding", ".", "isLocalType", "(", ")", "||", "(", "(", "NestedTypeBinding", ")", "superclassBinding", ")", ".", "getSyntheticField", "(", "superclassBinding", ".", "enclosingType", "(", ")", ",", "true", ")", "!=", "null", ")", "{", "nestedType", ".", "addSyntheticArgument", "(", "superclassBinding", ".", "enclosingType", "(", ")", ")", ";", "}", "}", "if", "(", "!", "methodScope", ".", "isStatic", "&&", "methodScope", ".", "isConstructorCall", "&&", "currentScope", ".", "compilerOptions", "(", ")", ".", "complianceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "ReferenceBinding", "enclosing", "=", "nestedType", ".", "enclosingType", "(", ")", ";", "if", "(", "enclosing", ".", "isNestedType", "(", ")", ")", "{", "NestedTypeBinding", "nestedEnclosing", "=", "(", "NestedTypeBinding", ")", "enclosing", ";", "SyntheticArgumentBinding", "syntheticEnclosingInstanceArgument", "=", "nestedEnclosing", ".", "getSyntheticArgument", "(", "nestedEnclosing", ".", "enclosingType", "(", ")", ",", "true", ")", ";", "if", "(", "syntheticEnclosingInstanceArgument", "!=", "null", ")", "{", "nestedType", ".", "addSyntheticArgumentAndField", "(", "syntheticEnclosingInstanceArgument", ")", ";", "}", "}", "}", "}", "}", "public", "void", "manageEnclosingInstanceAccessIfNecessary", "(", "ClassScope", "currentScope", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ")", "{", "NestedTypeBinding", "nestedType", "=", "(", "NestedTypeBinding", ")", "this", ".", "binding", ";", "nestedType", ".", "addSyntheticArgumentAndField", "(", "this", ".", "binding", ".", "enclosingType", "(", ")", ")", ";", "}", "}", "public", "final", "boolean", "needClassInitMethod", "(", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "ContainsAssertion", ")", "!=", "0", ")", "return", "true", ";", "switch", "(", "kind", "(", "this", ".", "modifiers", ")", ")", "{", "case", "TypeDeclaration", ".", "INTERFACE_DECL", ":", "case", "TypeDeclaration", ".", "ANNOTATION_TYPE_DECL", ":", "return", "this", ".", "fields", "!=", "null", ";", "case", "TypeDeclaration", ".", "ENUM_DECL", ":", "return", "true", ";", "}", "if", "(", "this", ".", "fields", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "this", ".", "fields", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "{", "FieldDeclaration", "field", "=", "this", ".", "fields", "[", "i", "]", ";", "if", "(", "(", "field", ".", "modifiers", "&", "ClassFileConstants", ".", "AccStatic", ")", "!=", "0", ")", "return", "true", ";", "}", "}", "return", "false", ";", "}", "public", "void", "parseMethods", "(", "Parser", "parser", ",", "CompilationUnitDeclaration", "unit", ")", "{", "if", "(", "unit", ".", "ignoreMethodBodies", ")", "return", ";", "if", "(", "this", ".", "memberTypes", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "memberTypes", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeDeclaration", "typeDeclaration", "=", "this", ".", "memberTypes", "[", "i", "]", ";", "typeDeclaration", ".", "parseMethods", "(", "parser", ",", "unit", ")", ";", "this", ".", "bits", "|=", "(", "typeDeclaration", ".", "bits", "&", "ASTNode", ".", "HasSyntaxErrors", ")", ";", "}", "}", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "methods", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "AbstractMethodDeclaration", "abstractMethodDeclaration", "=", "this", ".", "methods", "[", "i", "]", ";", "abstractMethodDeclaration", ".", "parseStatements", "(", "parser", ",", "unit", ")", ";", "this", ".", "bits", "|=", "(", "abstractMethodDeclaration", ".", "bits", "&", "ASTNode", ".", "HasSyntaxErrors", ")", ";", "}", "}", "if", "(", "this", ".", "fields", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "fields", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "final", "FieldDeclaration", "fieldDeclaration", "=", "this", ".", "fields", "[", "i", "]", ";", "switch", "(", "fieldDeclaration", ".", "getKind", "(", ")", ")", "{", "case", "AbstractVariableDeclaration", ".", "INITIALIZER", ":", "(", "(", "Initializer", ")", "fieldDeclaration", ")", ".", "parseStatements", "(", "parser", ",", "this", ",", "unit", ")", ";", "this", ".", "bits", "|=", "(", "fieldDeclaration", ".", "bits", "&", "ASTNode", ".", "HasSyntaxErrors", ")", ";", "break", ";", "}", "}", "}", "}", "public", "StringBuffer", "print", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "if", "(", "this", ".", "javadoc", "!=", "null", ")", "{", "this", ".", "javadoc", ".", "print", "(", "indent", ",", "output", ")", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsAnonymousType", ")", "==", "0", ")", "{", "printIndent", "(", "indent", ",", "output", ")", ";", "printHeader", "(", "0", ",", "output", ")", ";", "}", "return", "printBody", "(", "indent", ",", "output", ")", ";", "}", "public", "StringBuffer", "printBody", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "output", ".", "append", "(", "\"", "{\"", ")", ";", "if", "(", "this", ".", "memberTypes", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "memberTypes", ".", "length", ";", "i", "++", ")", "{", "if", "(", "this", ".", "memberTypes", "[", "i", "]", "!=", "null", ")", "{", "output", ".", "append", "(", "'\\n'", ")", ";", "this", ".", "memberTypes", "[", "i", "]", ".", "print", "(", "indent", "+", "1", ",", "output", ")", ";", "}", "}", "}", "if", "(", "this", ".", "fields", "!=", "null", ")", "{", "for", "(", "int", "fieldI", "=", "0", ";", "fieldI", "<", "this", ".", "fields", ".", "length", ";", "fieldI", "++", ")", "{", "if", "(", "this", ".", "fields", "[", "fieldI", "]", "!=", "null", ")", "{", "output", ".", "append", "(", "'\\n'", ")", ";", "this", ".", "fields", "[", "fieldI", "]", ".", "print", "(", "indent", "+", "1", ",", "output", ")", ";", "}", "}", "}", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "methods", ".", "length", ";", "i", "++", ")", "{", "if", "(", "this", ".", "methods", "[", "i", "]", "!=", "null", ")", "{", "output", ".", "append", "(", "'\\n'", ")", ";", "this", ".", "methods", "[", "i", "]", ".", "print", "(", "indent", "+", "1", ",", "output", ")", ";", "}", "}", "}", "output", ".", "append", "(", "'\\n'", ")", ";", "return", "printIndent", "(", "indent", ",", "output", ")", ".", "append", "(", "'}'", ")", ";", "}", "public", "StringBuffer", "printHeader", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "printModifiers", "(", "this", ".", "modifiers", ",", "output", ")", ";", "if", "(", "this", ".", "annotations", "!=", "null", ")", "printAnnotations", "(", "this", ".", "annotations", ",", "output", ")", ";", "switch", "(", "kind", "(", "this", ".", "modifiers", ")", ")", "{", "case", "TypeDeclaration", ".", "CLASS_DECL", ":", "output", ".", "append", "(", "\"class", "\"", ")", ";", "break", ";", "case", "TypeDeclaration", ".", "INTERFACE_DECL", ":", "output", ".", "append", "(", "\"interface", "\"", ")", ";", "break", ";", "case", "TypeDeclaration", ".", "ENUM_DECL", ":", "output", ".", "append", "(", "\"enum", "\"", ")", ";", "break", ";", "case", "TypeDeclaration", ".", "ANNOTATION_TYPE_DECL", ":", "output", ".", "append", "(", "\"@interface", "\"", ")", ";", "break", ";", "}", "output", ".", "append", "(", "this", ".", "name", ")", ";", "if", "(", "this", ".", "typeParameters", "!=", "null", ")", "{", "output", ".", "append", "(", "\"<\"", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "typeParameters", ".", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "output", ".", "append", "(", "\",", "\"", ")", ";", "this", ".", "typeParameters", "[", "i", "]", ".", "print", "(", "0", ",", "output", ")", ";", "}", "output", ".", "append", "(", "\">\"", ")", ";", "}", "if", "(", "this", ".", "superclass", "!=", "null", ")", "{", "output", ".", "append", "(", "\"", "extends", "\"", ")", ";", "this", ".", "superclass", ".", "print", "(", "0", ",", "output", ")", ";", "}", "if", "(", "this", ".", "superInterfaces", "!=", "null", "&&", "this", ".", "superInterfaces", ".", "length", ">", "0", ")", "{", "switch", "(", "kind", "(", "this", ".", "modifiers", ")", ")", "{", "case", "TypeDeclaration", ".", "CLASS_DECL", ":", "case", "TypeDeclaration", ".", "ENUM_DECL", ":", "output", ".", "append", "(", "\"", "implements", "\"", ")", ";", "break", ";", "case", "TypeDeclaration", ".", "INTERFACE_DECL", ":", "case", "TypeDeclaration", ".", "ANNOTATION_TYPE_DECL", ":", "output", ".", "append", "(", "\"", "extends", "\"", ")", ";", "break", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "superInterfaces", ".", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "output", ".", "append", "(", "\",", "\"", ")", ";", "this", ".", "superInterfaces", "[", "i", "]", ".", "print", "(", "0", ",", "output", ")", ";", "}", "}", "return", "output", ";", "}", "public", "StringBuffer", "printStatement", "(", "int", "tab", ",", "StringBuffer", "output", ")", "{", "return", "print", "(", "tab", ",", "output", ")", ";", "}", "public", "void", "resolve", "(", ")", "{", "SourceTypeBinding", "sourceType", "=", "this", ".", "binding", ";", "if", "(", "sourceType", "==", "null", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "return", ";", "}", "try", "{", "boolean", "old", "=", "this", ".", "staticInitializerScope", ".", "insideTypeAnnotation", ";", "try", "{", "this", ".", "staticInitializerScope", ".", "insideTypeAnnotation", "=", "true", ";", "resolveAnnotations", "(", "this", ".", "staticInitializerScope", ",", "this", ".", "annotations", ",", "sourceType", ")", ";", "}", "finally", "{", "this", ".", "staticInitializerScope", ".", "insideTypeAnnotation", "=", "old", ";", "}", "if", "(", "(", "sourceType", ".", "getAnnotationTagBits", "(", ")", "&", "TagBits", ".", "AnnotationDeprecated", ")", "==", "0", "&&", "(", "sourceType", ".", "modifiers", "&", "ClassFileConstants", ".", "AccDeprecated", ")", "!=", "0", "&&", "this", ".", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "missingDeprecatedAnnotationForType", "(", "this", ")", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "UndocumentedEmptyBlock", ")", "!=", "0", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "undocumentedEmptyBlock", "(", "this", ".", "bodyStart", "-", "1", ",", "this", ".", "bodyEnd", ")", ";", "}", "boolean", "needSerialVersion", "=", "this", ".", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "MissingSerialVersion", ")", "!=", "ProblemSeverities", ".", "Ignore", "&&", "sourceType", ".", "isClass", "(", ")", "&&", "sourceType", ".", "findSuperTypeOriginatingFrom", "(", "TypeIds", ".", "T_JavaIoExternalizable", ",", "false", ")", "==", "null", "&&", "sourceType", ".", "findSuperTypeOriginatingFrom", "(", "TypeIds", ".", "T_JavaIoSerializable", ",", "false", ")", "!=", "null", ";", "if", "(", "needSerialVersion", ")", "{", "CompilationUnitScope", "compilationUnitScope", "=", "this", ".", "scope", ".", "compilationUnitScope", "(", ")", ";", "MethodBinding", "methodBinding", "=", "sourceType", ".", "getExactMethod", "(", "TypeConstants", ".", "WRITEREPLACE", ",", "new", "TypeBinding", "[", "0", "]", ",", "compilationUnitScope", ")", ";", "ReferenceBinding", "[", "]", "throwsExceptions", ";", "needSerialVersion", "=", "methodBinding", "==", "null", "||", "!", "methodBinding", ".", "isValidBinding", "(", ")", "||", "methodBinding", ".", "returnType", ".", "id", "!=", "TypeIds", ".", "T_JavaLangObject", "||", "(", "throwsExceptions", "=", "methodBinding", ".", "thrownExceptions", ")", ".", "length", "!=", "1", "||", "throwsExceptions", "[", "0", "]", ".", "id", "!=", "TypeIds", ".", "T_JavaIoObjectStreamException", ";", "if", "(", "needSerialVersion", ")", "{", "boolean", "hasWriteObjectMethod", "=", "false", ";", "boolean", "hasReadObjectMethod", "=", "false", ";", "TypeBinding", "argumentTypeBinding", "=", "this", ".", "scope", ".", "getType", "(", "TypeConstants", ".", "JAVA_IO_OBJECTOUTPUTSTREAM", ",", "3", ")", ";", "if", "(", "argumentTypeBinding", ".", "isValidBinding", "(", ")", ")", "{", "methodBinding", "=", "sourceType", ".", "getExactMethod", "(", "TypeConstants", ".", "WRITEOBJECT", ",", "new", "TypeBinding", "[", "]", "{", "argumentTypeBinding", "}", ",", "compilationUnitScope", ")", ";", "hasWriteObjectMethod", "=", "methodBinding", "!=", "null", "&&", "methodBinding", ".", "isValidBinding", "(", ")", "&&", "methodBinding", ".", "modifiers", "==", "ClassFileConstants", ".", "AccPrivate", "&&", "methodBinding", ".", "returnType", "==", "TypeBinding", ".", "VOID", "&&", "(", "throwsExceptions", "=", "methodBinding", ".", "thrownExceptions", ")", ".", "length", "==", "1", "&&", "throwsExceptions", "[", "0", "]", ".", "id", "==", "TypeIds", ".", "T_JavaIoException", ";", "}", "argumentTypeBinding", "=", "this", ".", "scope", ".", "getType", "(", "TypeConstants", ".", "JAVA_IO_OBJECTINPUTSTREAM", ",", "3", ")", ";", "if", "(", "argumentTypeBinding", ".", "isValidBinding", "(", ")", ")", "{", "methodBinding", "=", "sourceType", ".", "getExactMethod", "(", "TypeConstants", ".", "READOBJECT", ",", "new", "TypeBinding", "[", "]", "{", "argumentTypeBinding", "}", ",", "compilationUnitScope", ")", ";", "hasReadObjectMethod", "=", "methodBinding", "!=", "null", "&&", "methodBinding", ".", "isValidBinding", "(", ")", "&&", "methodBinding", ".", "modifiers", "==", "ClassFileConstants", ".", "AccPrivate", "&&", "methodBinding", ".", "returnType", "==", "TypeBinding", ".", "VOID", "&&", "(", "throwsExceptions", "=", "methodBinding", ".", "thrownExceptions", ")", ".", "length", "==", "1", "&&", "throwsExceptions", "[", "0", "]", ".", "id", "==", "TypeIds", ".", "T_JavaIoException", ";", "}", "needSerialVersion", "=", "!", "hasWriteObjectMethod", "||", "!", "hasReadObjectMethod", ";", "}", "}", "if", "(", "sourceType", ".", "findSuperTypeOriginatingFrom", "(", "TypeIds", ".", "T_JavaLangThrowable", ",", "true", ")", "!=", "null", ")", "{", "ReferenceBinding", "current", "=", "sourceType", ";", "checkEnclosedInGeneric", ":", "do", "{", "if", "(", "current", ".", "isGenericType", "(", ")", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "genericTypeCannotExtendThrowable", "(", "this", ")", ";", "break", "checkEnclosedInGeneric", ";", "}", "if", "(", "current", ".", "isStatic", "(", ")", ")", "break", "checkEnclosedInGeneric", ";", "if", "(", "current", ".", "isLocalType", "(", ")", ")", "{", "NestedTypeBinding", "nestedType", "=", "(", "NestedTypeBinding", ")", "current", ".", "erasure", "(", ")", ";", "if", "(", "nestedType", ".", "scope", ".", "methodScope", "(", ")", ".", "isStatic", ")", "break", "checkEnclosedInGeneric", ";", "}", "}", "while", "(", "(", "current", "=", "current", ".", "enclosingType", "(", ")", ")", "!=", "null", ")", ";", "}", "int", "localMaxFieldCount", "=", "0", ";", "int", "lastVisibleFieldID", "=", "-", "1", ";", "boolean", "hasEnumConstants", "=", "false", ";", "FieldDeclaration", "[", "]", "enumConstantsWithoutBody", "=", "null", ";", "if", "(", "this", ".", "typeParameters", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "typeParameters", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "this", ".", "typeParameters", "[", "i", "]", ".", "resolve", "(", "this", ".", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "memberTypes", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "memberTypes", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "this", ".", "memberTypes", "[", "i", "]", ".", "resolve", "(", "this", ".", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "fields", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "fields", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "FieldDeclaration", "field", "=", "this", ".", "fields", "[", "i", "]", ";", "switch", "(", "field", ".", "getKind", "(", ")", ")", "{", "case", "AbstractVariableDeclaration", ".", "ENUM_CONSTANT", ":", "hasEnumConstants", "=", "true", ";", "if", "(", "!", "(", "field", ".", "initialization", "instanceof", "QualifiedAllocationExpression", ")", ")", "{", "if", "(", "enumConstantsWithoutBody", "==", "null", ")", "enumConstantsWithoutBody", "=", "new", "FieldDeclaration", "[", "count", "]", ";", "enumConstantsWithoutBody", "[", "i", "]", "=", "field", ";", "}", "case", "AbstractVariableDeclaration", ".", "FIELD", ":", "FieldBinding", "fieldBinding", "=", "field", ".", "binding", ";", "if", "(", "fieldBinding", "==", "null", ")", "{", "if", "(", "field", ".", "initialization", "!=", "null", ")", "field", ".", "initialization", ".", "resolve", "(", "field", ".", "isStatic", "(", ")", "?", "this", ".", "staticInitializerScope", ":", "this", ".", "initializerScope", ")", ";", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "continue", ";", "}", "if", "(", "needSerialVersion", "&&", "(", "(", "fieldBinding", ".", "modifiers", "&", "(", "ClassFileConstants", ".", "AccStatic", "|", "ClassFileConstants", ".", "AccFinal", ")", ")", "==", "(", "ClassFileConstants", ".", "AccStatic", "|", "ClassFileConstants", ".", "AccFinal", ")", ")", "&&", "CharOperation", ".", "equals", "(", "TypeConstants", ".", "SERIALVERSIONUID", ",", "fieldBinding", ".", "name", ")", "&&", "TypeBinding", ".", "LONG", "==", "fieldBinding", ".", "type", ")", "{", "needSerialVersion", "=", "false", ";", "}", "localMaxFieldCount", "++", ";", "lastVisibleFieldID", "=", "field", ".", "binding", ".", "id", ";", "break", ";", "case", "AbstractVariableDeclaration", ".", "INITIALIZER", ":", "(", "(", "Initializer", ")", "field", ")", ".", "lastVisibleFieldID", "=", "lastVisibleFieldID", "+", "1", ";", "break", ";", "}", "field", ".", "resolve", "(", "field", ".", "isStatic", "(", ")", "?", "this", ".", "staticInitializerScope", ":", "this", ".", "initializerScope", ")", ";", "}", "}", "if", "(", "this", ".", "maxFieldCount", "<", "localMaxFieldCount", ")", "{", "this", ".", "maxFieldCount", "=", "localMaxFieldCount", ";", "}", "if", "(", "needSerialVersion", ")", "{", "TypeBinding", "javaxRmiCorbaStub", "=", "this", ".", "scope", ".", "getType", "(", "TypeConstants", ".", "JAVAX_RMI_CORBA_STUB", ",", "4", ")", ";", "if", "(", "javaxRmiCorbaStub", ".", "isValidBinding", "(", ")", ")", "{", "ReferenceBinding", "superclassBinding", "=", "this", ".", "binding", ".", "superclass", ";", "loop", ":", "while", "(", "superclassBinding", "!=", "null", ")", "{", "if", "(", "superclassBinding", "==", "javaxRmiCorbaStub", ")", "{", "needSerialVersion", "=", "false", ";", "break", "loop", ";", "}", "superclassBinding", "=", "superclassBinding", ".", "superclass", "(", ")", ";", "}", "}", "if", "(", "needSerialVersion", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "missingSerialVersion", "(", "this", ")", ";", "}", "}", "switch", "(", "kind", "(", "this", ".", "modifiers", ")", ")", "{", "case", "TypeDeclaration", ".", "ANNOTATION_TYPE_DECL", ":", "if", "(", "this", ".", "superclass", "!=", "null", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "annotationTypeDeclarationCannotHaveSuperclass", "(", "this", ")", ";", "}", "if", "(", "this", ".", "superInterfaces", "!=", "null", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "annotationTypeDeclarationCannotHaveSuperinterfaces", "(", "this", ")", ";", "}", "break", ";", "case", "TypeDeclaration", ".", "ENUM_DECL", ":", "if", "(", "this", ".", "binding", ".", "isAbstract", "(", ")", ")", "{", "if", "(", "!", "hasEnumConstants", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "methods", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "final", "AbstractMethodDeclaration", "methodDeclaration", "=", "this", ".", "methods", "[", "i", "]", ";", "if", "(", "methodDeclaration", ".", "isAbstract", "(", ")", "&&", "methodDeclaration", ".", "binding", "!=", "null", ")", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "enumAbstractMethodMustBeImplemented", "(", "methodDeclaration", ")", ";", "}", "}", "else", "if", "(", "enumConstantsWithoutBody", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "methods", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "final", "AbstractMethodDeclaration", "methodDeclaration", "=", "this", ".", "methods", "[", "i", "]", ";", "if", "(", "methodDeclaration", ".", "isAbstract", "(", ")", "&&", "methodDeclaration", ".", "binding", "!=", "null", ")", "{", "for", "(", "int", "f", "=", "0", ",", "l", "=", "enumConstantsWithoutBody", ".", "length", ";", "f", "<", "l", ";", "f", "++", ")", "if", "(", "enumConstantsWithoutBody", "[", "f", "]", "!=", "null", ")", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "enumConstantMustImplementAbstractMethod", "(", "methodDeclaration", ",", "enumConstantsWithoutBody", "[", "f", "]", ")", ";", "}", "}", "}", "}", "break", ";", "}", "int", "missingAbstractMethodslength", "=", "this", ".", "missingAbstractMethods", "==", "null", "?", "0", ":", "this", ".", "missingAbstractMethods", ".", "length", ";", "int", "methodsLength", "=", "this", ".", "methods", "==", "null", "?", "0", ":", "this", ".", "methods", ".", "length", ";", "if", "(", "(", "methodsLength", "+", "missingAbstractMethodslength", ")", ">", "0xFFFF", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "tooManyMethods", "(", "this", ")", ";", "}", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "methods", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "this", ".", "methods", "[", "i", "]", ".", "resolve", "(", "this", ".", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "javadoc", "!=", "null", ")", "{", "if", "(", "this", ".", "scope", "!=", "null", "&&", "(", "this", ".", "name", "!=", "TypeConstants", ".", "PACKAGE_INFO_NAME", ")", ")", "{", "this", ".", "javadoc", ".", "resolve", "(", "this", ".", "scope", ")", ";", "}", "}", "else", "if", "(", "!", "sourceType", ".", "isLocalType", "(", ")", ")", "{", "int", "visibility", "=", "sourceType", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccVisibilityMASK", ";", "ProblemReporter", "reporter", "=", "this", ".", "scope", ".", "problemReporter", "(", ")", ";", "int", "severity", "=", "reporter", ".", "computeSeverity", "(", "IProblem", ".", "JavadocMissing", ")", ";", "if", "(", "severity", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "if", "(", "this", ".", "enclosingType", "!=", "null", ")", "{", "visibility", "=", "Util", ".", "computeOuterMostVisibility", "(", "this", ".", "enclosingType", ",", "visibility", ")", ";", "}", "int", "javadocModifiers", "=", "(", "this", ".", "binding", ".", "modifiers", "&", "~", "ExtraCompilerModifiers", ".", "AccVisibilityMASK", ")", "|", "visibility", ";", "reporter", ".", "javadocMissing", "(", "this", ".", "sourceStart", ",", "this", ".", "sourceEnd", ",", "severity", ",", "javadocModifiers", ")", ";", "}", "}", "}", "catch", "(", "AbortType", "e", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "return", ";", "}", "}", "public", "void", "resolve", "(", "BlockScope", "blockScope", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsAnonymousType", ")", "==", "0", ")", "{", "Binding", "existing", "=", "blockScope", ".", "getType", "(", "this", ".", "name", ")", ";", "if", "(", "existing", "instanceof", "ReferenceBinding", "&&", "existing", "!=", "this", ".", "binding", "&&", "existing", ".", "isValidBinding", "(", ")", ")", "{", "ReferenceBinding", "existingType", "=", "(", "ReferenceBinding", ")", "existing", ";", "if", "(", "existingType", "instanceof", "TypeVariableBinding", ")", "{", "blockScope", ".", "problemReporter", "(", ")", ".", "typeHiding", "(", "this", ",", "(", "TypeVariableBinding", ")", "existingType", ")", ";", "}", "else", "if", "(", "existingType", "instanceof", "LocalTypeBinding", "&&", "(", "(", "LocalTypeBinding", ")", "existingType", ")", ".", "scope", ".", "methodScope", "(", ")", "==", "blockScope", ".", "methodScope", "(", ")", ")", "{", "blockScope", ".", "problemReporter", "(", ")", ".", "duplicateNestedType", "(", "this", ")", ";", "}", "else", "if", "(", "blockScope", ".", "isDefinedInType", "(", "existingType", ")", ")", "{", "blockScope", ".", "problemReporter", "(", ")", ".", "typeCollidesWithEnclosingType", "(", "this", ")", ";", "}", "else", "if", "(", "blockScope", ".", "isDefinedInSameUnit", "(", "existingType", ")", ")", "{", "blockScope", ".", "problemReporter", "(", ")", ".", "typeHiding", "(", "this", ",", "existingType", ")", ";", "}", "}", "blockScope", ".", "addLocalType", "(", "this", ")", ";", "}", "if", "(", "this", ".", "binding", "!=", "null", ")", "{", "blockScope", ".", "referenceCompilationUnit", "(", ")", ".", "record", "(", "(", "LocalTypeBinding", ")", "this", ".", "binding", ")", ";", "resolve", "(", ")", ";", "updateMaxFieldCount", "(", ")", ";", "}", "}", "public", "void", "resolve", "(", "ClassScope", "upperScope", ")", "{", "if", "(", "this", ".", "binding", "!=", "null", "&&", "this", ".", "binding", "instanceof", "LocalTypeBinding", ")", "{", "upperScope", ".", "referenceCompilationUnit", "(", ")", ".", "record", "(", "(", "LocalTypeBinding", ")", "this", ".", "binding", ")", ";", "}", "resolve", "(", ")", ";", "updateMaxFieldCount", "(", ")", ";", "}", "public", "void", "resolve", "(", "CompilationUnitScope", "upperScope", ")", "{", "resolve", "(", ")", ";", "updateMaxFieldCount", "(", ")", ";", "}", "public", "void", "tagAsHavingErrors", "(", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "CompilationUnitScope", "unitScope", ")", "{", "try", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "unitScope", ")", ")", "{", "if", "(", "this", ".", "javadoc", "!=", "null", ")", "{", "this", ".", "javadoc", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "annotations", "!=", "null", ")", "{", "int", "annotationsLength", "=", "this", ".", "annotations", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotationsLength", ";", "i", "++", ")", "this", ".", "annotations", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "staticInitializerScope", ")", ";", "}", "if", "(", "this", ".", "superclass", "!=", "null", ")", "this", ".", "superclass", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "if", "(", "this", ".", "superInterfaces", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "superInterfaces", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "this", ".", "superInterfaces", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "typeParameters", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "typeParameters", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "typeParameters", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "memberTypes", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "memberTypes", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "this", ".", "memberTypes", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "fields", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "fields", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "FieldDeclaration", "field", ";", "if", "(", "(", "field", "=", "this", ".", "fields", "[", "i", "]", ")", ".", "isStatic", "(", ")", ")", "{", "field", ".", "traverse", "(", "visitor", ",", "this", ".", "staticInitializerScope", ")", ";", "}", "else", "{", "field", ".", "traverse", "(", "visitor", ",", "this", ".", "initializerScope", ")", ";", "}", "}", "}", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "methods", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "this", ".", "methods", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "unitScope", ")", ";", "}", "catch", "(", "AbortType", "e", ")", "{", "}", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "try", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "if", "(", "this", ".", "javadoc", "!=", "null", ")", "{", "this", ".", "javadoc", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "annotations", "!=", "null", ")", "{", "int", "annotationsLength", "=", "this", ".", "annotations", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotationsLength", ";", "i", "++", ")", "this", ".", "annotations", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "staticInitializerScope", ")", ";", "}", "if", "(", "this", ".", "superclass", "!=", "null", ")", "this", ".", "superclass", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "if", "(", "this", ".", "superInterfaces", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "superInterfaces", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "this", ".", "superInterfaces", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "typeParameters", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "typeParameters", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "typeParameters", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "memberTypes", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "memberTypes", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "this", ".", "memberTypes", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "fields", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "fields", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "FieldDeclaration", "field", ";", "if", "(", "(", "field", "=", "this", ".", "fields", "[", "i", "]", ")", ".", "isStatic", "(", ")", ")", "{", "}", "else", "{", "field", ".", "traverse", "(", "visitor", ",", "this", ".", "initializerScope", ")", ";", "}", "}", "}", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "methods", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "this", ".", "methods", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "catch", "(", "AbortType", "e", ")", "{", "}", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "classScope", ")", "{", "try", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "classScope", ")", ")", "{", "if", "(", "this", ".", "javadoc", "!=", "null", ")", "{", "this", ".", "javadoc", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "annotations", "!=", "null", ")", "{", "int", "annotationsLength", "=", "this", ".", "annotations", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotationsLength", ";", "i", "++", ")", "this", ".", "annotations", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "staticInitializerScope", ")", ";", "}", "if", "(", "this", ".", "superclass", "!=", "null", ")", "this", ".", "superclass", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "if", "(", "this", ".", "superInterfaces", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "superInterfaces", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "this", ".", "superInterfaces", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "typeParameters", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "typeParameters", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "typeParameters", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "memberTypes", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "memberTypes", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "this", ".", "memberTypes", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "fields", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "fields", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "FieldDeclaration", "field", ";", "if", "(", "(", "field", "=", "this", ".", "fields", "[", "i", "]", ")", ".", "isStatic", "(", ")", ")", "{", "field", ".", "traverse", "(", "visitor", ",", "this", ".", "staticInitializerScope", ")", ";", "}", "else", "{", "field", ".", "traverse", "(", "visitor", ",", "this", ".", "initializerScope", ")", ";", "}", "}", "}", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "methods", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "this", ".", "methods", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "classScope", ")", ";", "}", "catch", "(", "AbortType", "e", ")", "{", "}", "}", "void", "updateMaxFieldCount", "(", ")", "{", "if", "(", "this", ".", "binding", "==", "null", ")", "return", ";", "TypeDeclaration", "outerMostType", "=", "this", ".", "scope", ".", "outerMostClassScope", "(", ")", ".", "referenceType", "(", ")", ";", "if", "(", "this", ".", "maxFieldCount", ">", "outerMostType", ".", "maxFieldCount", ")", "{", "outerMostType", ".", "maxFieldCount", "=", "this", ".", "maxFieldCount", ";", "}", "else", "{", "this", ".", "maxFieldCount", "=", "outerMostType", ".", "maxFieldCount", ";", "}", "}", "public", "boolean", "isSecondary", "(", ")", "{", "return", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsSecondaryType", ")", "!=", "0", ";", "}", "public", "boolean", "isScannerUsableOnThisDeclaration", "(", ")", "{", "return", "true", ";", "}", "}", "</s>" ]
5,642
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "Opcodes", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Binding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "FieldBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "InvocationSite", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MethodBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MethodScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MissingTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemFieldBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemReasons", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Scope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "SourceTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TagBits", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "public", "class", "FieldReference", "extends", "Reference", "implements", "InvocationSite", "{", "public", "static", "final", "int", "READ", "=", "0", ";", "public", "static", "final", "int", "WRITE", "=", "1", ";", "public", "Expression", "receiver", ";", "public", "char", "[", "]", "token", ";", "public", "FieldBinding", "binding", ";", "public", "MethodBinding", "[", "]", "syntheticAccessors", ";", "public", "long", "nameSourcePosition", ";", "public", "TypeBinding", "actualReceiverType", ";", "public", "TypeBinding", "genericCast", ";", "public", "FieldReference", "(", "char", "[", "]", "source", ",", "long", "pos", ")", "{", "this", ".", "token", "=", "source", ";", "this", ".", "nameSourcePosition", "=", "pos", ";", "this", ".", "sourceStart", "=", "(", "int", ")", "(", "pos", ">>>", "32", ")", ";", "this", ".", "sourceEnd", "=", "(", "int", ")", "(", "pos", "&", "0x00000000FFFFFFFFL", ")", ";", "this", ".", "bits", "|=", "Binding", ".", "FIELD", ";", "}", "public", "FlowInfo", "analyseAssignment", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ",", "Assignment", "assignment", ",", "boolean", "isCompound", ")", "{", "if", "(", "isCompound", ")", "{", "if", "(", "this", ".", "binding", ".", "isBlankFinal", "(", ")", "&&", "this", ".", "receiver", ".", "isThis", "(", ")", "&&", "currentScope", ".", "needBlankFinalFieldInitializationCheck", "(", "this", ".", "binding", ")", ")", "{", "FlowInfo", "fieldInits", "=", "flowContext", ".", "getInitsForFinalBlankInitializationCheck", "(", "this", ".", "binding", ".", "declaringClass", ".", "original", "(", ")", ",", "flowInfo", ")", ";", "if", "(", "!", "fieldInits", ".", "isDefinitelyAssigned", "(", "this", ".", "binding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "uninitializedBlankFinalField", "(", "this", ".", "binding", ",", "this", ")", ";", "}", "}", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ",", "true", ")", ";", "}", "flowInfo", "=", "this", ".", "receiver", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ",", "!", "this", ".", "binding", ".", "isStatic", "(", ")", ")", ".", "unconditionalInits", "(", ")", ";", "if", "(", "assignment", ".", "expression", "!=", "null", ")", "{", "flowInfo", "=", "assignment", ".", "expression", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "}", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ",", "false", ")", ";", "if", "(", "this", ".", "binding", ".", "isFinal", "(", ")", ")", "{", "if", "(", "this", ".", "binding", ".", "isBlankFinal", "(", ")", "&&", "!", "isCompound", "&&", "this", ".", "receiver", ".", "isThis", "(", ")", "&&", "!", "(", "this", ".", "receiver", "instanceof", "QualifiedThisReference", ")", "&&", "(", "(", "this", ".", "receiver", ".", "bits", "&", "ASTNode", ".", "ParenthesizedMASK", ")", "==", "0", ")", "&&", "currentScope", ".", "allowBlankFinalFieldAssignment", "(", "this", ".", "binding", ")", ")", "{", "if", "(", "flowInfo", ".", "isPotentiallyAssigned", "(", "this", ".", "binding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "duplicateInitializationOfBlankFinalField", "(", "this", ".", "binding", ",", "this", ")", ";", "}", "else", "{", "flowContext", ".", "recordSettingFinal", "(", "this", ".", "binding", ",", "this", ",", "flowInfo", ")", ";", "}", "flowInfo", ".", "markAsDefinitelyAssigned", "(", "this", ".", "binding", ")", ";", "}", "else", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "cannotAssignToFinalField", "(", "this", ".", "binding", ",", "this", ")", ";", "}", "}", "return", "flowInfo", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "return", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ",", "true", ")", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ",", "boolean", "valueRequired", ")", "{", "boolean", "nonStatic", "=", "!", "this", ".", "binding", ".", "isStatic", "(", ")", ";", "this", ".", "receiver", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ",", "nonStatic", ")", ";", "if", "(", "nonStatic", ")", "{", "this", ".", "receiver", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "if", "(", "valueRequired", "||", "currentScope", ".", "compilerOptions", "(", ")", ".", "complianceLevel", ">=", "ClassFileConstants", ".", "JDK1_4", ")", "{", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ",", "true", ")", ";", "}", "return", "flowInfo", ";", "}", "public", "void", "computeConversion", "(", "Scope", "scope", ",", "TypeBinding", "runtimeTimeType", ",", "TypeBinding", "compileTimeType", ")", "{", "if", "(", "runtimeTimeType", "==", "null", "||", "compileTimeType", "==", "null", ")", "return", ";", "if", "(", "this", ".", "binding", "!=", "null", "&&", "this", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "FieldBinding", "originalBinding", "=", "this", ".", "binding", ".", "original", "(", ")", ";", "TypeBinding", "originalType", "=", "originalBinding", ".", "type", ";", "if", "(", "originalType", ".", "leafComponentType", "(", ")", ".", "isTypeVariable", "(", ")", ")", "{", "TypeBinding", "targetType", "=", "(", "!", "compileTimeType", ".", "isBaseType", "(", ")", "&&", "runtimeTimeType", ".", "isBaseType", "(", ")", ")", "?", "compileTimeType", ":", "runtimeTimeType", ";", "this", ".", "genericCast", "=", "originalBinding", ".", "type", ".", "genericCast", "(", "targetType", ")", ";", "if", "(", "this", ".", "genericCast", "instanceof", "ReferenceBinding", ")", "{", "ReferenceBinding", "referenceCast", "=", "(", "ReferenceBinding", ")", "this", ".", "genericCast", ";", "if", "(", "!", "referenceCast", ".", "canBeSeenBy", "(", "scope", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "invalidType", "(", "this", ",", "new", "ProblemReferenceBinding", "(", "CharOperation", ".", "splitOn", "(", "'.'", ",", "referenceCast", ".", "shortReadableName", "(", ")", ")", ",", "referenceCast", ",", "ProblemReasons", ".", "NotVisible", ")", ")", ";", "}", "}", "}", "}", "super", ".", "computeConversion", "(", "scope", ",", "runtimeTimeType", ",", "compileTimeType", ")", ";", "}", "public", "FieldBinding", "fieldBinding", "(", ")", "{", "return", "this", ".", "binding", ";", "}", "public", "void", "generateAssignment", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "Assignment", "assignment", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "FieldBinding", "codegenBinding", "=", "this", ".", "binding", ".", "original", "(", ")", ";", "this", ".", "receiver", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "!", "codegenBinding", ".", "isStatic", "(", ")", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "assignment", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "fieldStore", "(", "currentScope", ",", "codeStream", ",", "codegenBinding", ",", "this", ".", "syntheticAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticAccessors", "[", "FieldReference", ".", "WRITE", "]", ",", "this", ".", "actualReceiverType", ",", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "assignment", ".", "implicitConversion", ")", ";", "}", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "FieldBinding", "codegenBinding", "=", "this", ".", "binding", ".", "original", "(", ")", ";", "boolean", "isStatic", "=", "codegenBinding", ".", "isStatic", "(", ")", ";", "boolean", "isThisReceiver", "=", "this", ".", "receiver", "instanceof", "ThisReference", ";", "Constant", "fieldConstant", "=", "codegenBinding", ".", "constant", "(", ")", ";", "if", "(", "fieldConstant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "!", "isThisReceiver", ")", "{", "this", ".", "receiver", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "!", "isStatic", ")", ";", "if", "(", "!", "isStatic", ")", "{", "codeStream", ".", "invokeObjectGetClass", "(", ")", ";", "codeStream", ".", "pop", "(", ")", ";", "}", "}", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "fieldConstant", ",", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "if", "(", "valueRequired", "||", "(", "!", "isThisReceiver", "&&", "currentScope", ".", "compilerOptions", "(", ")", ".", "complianceLevel", ">=", "ClassFileConstants", ".", "JDK1_4", ")", "||", "(", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "||", "(", "this", ".", "genericCast", "!=", "null", ")", ")", "{", "this", ".", "receiver", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "!", "isStatic", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "NeedReceiverGenericCast", ")", "!=", "0", ")", "{", "codeStream", ".", "checkcast", "(", "this", ".", "actualReceiverType", ")", ";", "}", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "codegenBinding", ".", "declaringClass", "==", "null", ")", "{", "codeStream", ".", "arraylength", "(", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "codeStream", ".", "pop", "(", ")", ";", "}", "}", "else", "{", "if", "(", "this", ".", "syntheticAccessors", "==", "null", "||", "this", ".", "syntheticAccessors", "[", "FieldReference", ".", "READ", "]", "==", "null", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "codegenBinding", ",", "this", ".", "actualReceiverType", ",", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", ")", ";", "if", "(", "isStatic", ")", "{", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "codegenBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getfield", ",", "codegenBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "this", ".", "syntheticAccessors", "[", "FieldReference", ".", "READ", "]", ",", "null", ")", ";", "}", "if", "(", "this", ".", "genericCast", "!=", "null", ")", "codeStream", ".", "checkcast", "(", "this", ".", "genericCast", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "boolean", "isUnboxing", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ";", "if", "(", "isUnboxing", ")", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "switch", "(", "isUnboxing", "?", "postConversionType", "(", "currentScope", ")", ".", "id", ":", "codegenBinding", ".", "type", ".", "id", ")", "{", "case", "T_long", ":", "case", "T_double", ":", "codeStream", ".", "pop2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "pop", "(", ")", ";", "}", "}", "}", "}", "else", "{", "if", "(", "isThisReceiver", ")", "{", "if", "(", "isStatic", ")", "{", "if", "(", "this", ".", "binding", ".", "original", "(", ")", ".", "declaringClass", "!=", "this", ".", "actualReceiverType", ".", "erasure", "(", ")", ")", "{", "MethodBinding", "accessor", "=", "this", ".", "syntheticAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticAccessors", "[", "FieldReference", ".", "READ", "]", ";", "if", "(", "accessor", "==", "null", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "codegenBinding", ",", "this", ".", "actualReceiverType", ",", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "codegenBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "accessor", ",", "null", ")", ";", "}", "switch", "(", "codegenBinding", ".", "type", ".", "id", ")", "{", "case", "T_long", ":", "case", "T_double", ":", "codeStream", ".", "pop2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "pop", "(", ")", ";", "}", "}", "}", "}", "else", "{", "this", ".", "receiver", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "!", "isStatic", ")", ";", "if", "(", "!", "isStatic", ")", "{", "codeStream", ".", "invokeObjectGetClass", "(", ")", ";", "codeStream", ".", "pop", "(", ")", ";", "}", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceEnd", ")", ";", "}", "public", "void", "generateCompoundAssignment", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "Expression", "expression", ",", "int", "operator", ",", "int", "assignmentImplicitConversion", ",", "boolean", "valueRequired", ")", "{", "boolean", "isStatic", ";", "FieldBinding", "codegenBinding", "=", "this", ".", "binding", ".", "original", "(", ")", ";", "this", ".", "receiver", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "!", "(", "isStatic", "=", "codegenBinding", ".", "isStatic", "(", ")", ")", ")", ";", "if", "(", "isStatic", ")", "{", "if", "(", "this", ".", "syntheticAccessors", "==", "null", "||", "this", ".", "syntheticAccessors", "[", "FieldReference", ".", "READ", "]", "==", "null", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "codegenBinding", ",", "this", ".", "actualReceiverType", ",", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "codegenBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "this", ".", "syntheticAccessors", "[", "FieldReference", ".", "READ", "]", ",", "null", ")", ";", "}", "}", "else", "{", "codeStream", ".", "dup", "(", ")", ";", "if", "(", "this", ".", "syntheticAccessors", "==", "null", "||", "this", ".", "syntheticAccessors", "[", "FieldReference", ".", "READ", "]", "==", "null", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "codegenBinding", ",", "this", ".", "actualReceiverType", ",", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getfield", ",", "codegenBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "this", ".", "syntheticAccessors", "[", "FieldReference", ".", "READ", "]", ",", "null", ")", ";", "}", "}", "int", "operationTypeID", ";", "switch", "(", "operationTypeID", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ")", "{", "case", "T_JavaLangString", ":", "case", "T_JavaLangObject", ":", "case", "T_undefined", ":", "codeStream", ".", "generateStringConcatenationAppend", "(", "currentScope", ",", "null", ",", "expression", ")", ";", "break", ";", "default", ":", "if", "(", "this", ".", "genericCast", "!=", "null", ")", "codeStream", ".", "checkcast", "(", "this", ".", "genericCast", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "if", "(", "expression", "==", "IntLiteral", ".", "One", ")", "{", "codeStream", ".", "generateConstant", "(", "expression", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "}", "codeStream", ".", "sendOperator", "(", "operator", ",", "operationTypeID", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "assignmentImplicitConversion", ")", ";", "}", "fieldStore", "(", "currentScope", ",", "codeStream", ",", "codegenBinding", ",", "this", ".", "syntheticAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticAccessors", "[", "FieldReference", ".", "WRITE", "]", ",", "this", ".", "actualReceiverType", ",", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", ",", "valueRequired", ")", ";", "}", "public", "void", "generatePostIncrement", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "CompoundAssignment", "postIncrement", ",", "boolean", "valueRequired", ")", "{", "boolean", "isStatic", ";", "FieldBinding", "codegenBinding", "=", "this", ".", "binding", ".", "original", "(", ")", ";", "this", ".", "receiver", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "!", "(", "isStatic", "=", "codegenBinding", ".", "isStatic", "(", ")", ")", ")", ";", "if", "(", "isStatic", ")", "{", "if", "(", "this", ".", "syntheticAccessors", "==", "null", "||", "this", ".", "syntheticAccessors", "[", "FieldReference", ".", "READ", "]", "==", "null", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "codegenBinding", ",", "this", ".", "actualReceiverType", ",", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "codegenBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "this", ".", "syntheticAccessors", "[", "FieldReference", ".", "READ", "]", ",", "null", ")", ";", "}", "}", "else", "{", "codeStream", ".", "dup", "(", ")", ";", "if", "(", "this", ".", "syntheticAccessors", "==", "null", "||", "this", ".", "syntheticAccessors", "[", "FieldReference", ".", "READ", "]", "==", "null", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "codegenBinding", ",", "this", ".", "actualReceiverType", ",", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getfield", ",", "codegenBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "this", ".", "syntheticAccessors", "[", "FieldReference", ".", "READ", "]", ",", "null", ")", ";", "}", "}", "TypeBinding", "operandType", ";", "if", "(", "this", ".", "genericCast", "!=", "null", ")", "{", "codeStream", ".", "checkcast", "(", "this", ".", "genericCast", ")", ";", "operandType", "=", "this", ".", "genericCast", ";", "}", "else", "{", "operandType", "=", "codegenBinding", ".", "type", ";", "}", "if", "(", "valueRequired", ")", "{", "if", "(", "isStatic", ")", "{", "switch", "(", "operandType", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "codeStream", ".", "dup2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "dup", "(", ")", ";", "break", ";", "}", "}", "else", "{", "switch", "(", "operandType", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "codeStream", ".", "dup2_x1", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "dup_x1", "(", ")", ";", "break", ";", "}", "}", "}", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "generateConstant", "(", "postIncrement", ".", "expression", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "sendOperator", "(", "postIncrement", ".", "operator", ",", "this", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "postIncrement", ".", "preAssignImplicitConversion", ")", ";", "fieldStore", "(", "currentScope", ",", "codeStream", ",", "codegenBinding", ",", "this", ".", "syntheticAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticAccessors", "[", "FieldReference", ".", "WRITE", "]", ",", "this", ".", "actualReceiverType", ",", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", ",", "false", ")", ";", "}", "public", "TypeBinding", "[", "]", "genericTypeArguments", "(", ")", "{", "return", "null", ";", "}", "public", "boolean", "isSuperAccess", "(", ")", "{", "return", "this", ".", "receiver", ".", "isSuper", "(", ")", ";", "}", "public", "boolean", "isTypeAccess", "(", ")", "{", "return", "this", ".", "receiver", "!=", "null", "&&", "this", ".", "receiver", ".", "isTypeReference", "(", ")", ";", "}", "public", "void", "manageSyntheticAccessIfNecessary", "(", "BlockScope", "currentScope", ",", "FlowInfo", "flowInfo", ",", "boolean", "isReadAccess", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", ")", "return", ";", "FieldBinding", "codegenBinding", "=", "this", ".", "binding", ".", "original", "(", ")", ";", "if", "(", "this", ".", "binding", ".", "isPrivate", "(", ")", ")", "{", "if", "(", "(", "currentScope", ".", "enclosingSourceType", "(", ")", "!=", "codegenBinding", ".", "declaringClass", ")", "&&", "this", ".", "binding", ".", "constant", "(", ")", "==", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "this", ".", "syntheticAccessors", "==", "null", ")", "this", ".", "syntheticAccessors", "=", "new", "MethodBinding", "[", "2", "]", ";", "this", ".", "syntheticAccessors", "[", "isReadAccess", "?", "FieldReference", ".", "READ", ":", "FieldReference", ".", "WRITE", "]", "=", "(", "(", "SourceTypeBinding", ")", "codegenBinding", ".", "declaringClass", ")", ".", "addSyntheticMethod", "(", "codegenBinding", ",", "isReadAccess", ",", "false", ")", ";", "currentScope", ".", "problemReporter", "(", ")", ".", "needToEmulateFieldAccess", "(", "codegenBinding", ",", "this", ",", "isReadAccess", ")", ";", "return", ";", "}", "}", "else", "if", "(", "this", ".", "receiver", "instanceof", "QualifiedSuperReference", ")", "{", "SourceTypeBinding", "destinationType", "=", "(", "SourceTypeBinding", ")", "(", "(", "(", "QualifiedSuperReference", ")", "this", ".", "receiver", ")", ".", "currentCompatibleType", ")", ";", "if", "(", "this", ".", "syntheticAccessors", "==", "null", ")", "this", ".", "syntheticAccessors", "=", "new", "MethodBinding", "[", "2", "]", ";", "this", ".", "syntheticAccessors", "[", "isReadAccess", "?", "FieldReference", ".", "READ", ":", "FieldReference", ".", "WRITE", "]", "=", "destinationType", ".", "addSyntheticMethod", "(", "codegenBinding", ",", "isReadAccess", ",", "isSuperAccess", "(", ")", ")", ";", "currentScope", ".", "problemReporter", "(", ")", ".", "needToEmulateFieldAccess", "(", "codegenBinding", ",", "this", ",", "isReadAccess", ")", ";", "return", ";", "}", "else", "if", "(", "this", ".", "binding", ".", "isProtected", "(", ")", ")", "{", "SourceTypeBinding", "enclosingSourceType", ";", "if", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", "&&", "this", ".", "binding", ".", "declaringClass", ".", "getPackage", "(", ")", "!=", "(", "enclosingSourceType", "=", "currentScope", ".", "enclosingSourceType", "(", ")", ")", ".", "getPackage", "(", ")", ")", "{", "SourceTypeBinding", "currentCompatibleType", "=", "(", "SourceTypeBinding", ")", "enclosingSourceType", ".", "enclosingTypeAt", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ")", ";", "if", "(", "this", ".", "syntheticAccessors", "==", "null", ")", "this", ".", "syntheticAccessors", "=", "new", "MethodBinding", "[", "2", "]", ";", "this", ".", "syntheticAccessors", "[", "isReadAccess", "?", "FieldReference", ".", "READ", ":", "FieldReference", ".", "WRITE", "]", "=", "currentCompatibleType", ".", "addSyntheticMethod", "(", "codegenBinding", ",", "isReadAccess", ",", "isSuperAccess", "(", ")", ")", ";", "currentScope", ".", "problemReporter", "(", ")", ".", "needToEmulateFieldAccess", "(", "codegenBinding", ",", "this", ",", "isReadAccess", ")", ";", "return", ";", "}", "}", "}", "public", "int", "nullStatus", "(", "FlowInfo", "flowInfo", ")", "{", "return", "FlowInfo", ".", "UNKNOWN", ";", "}", "public", "Constant", "optimizedBooleanConstant", "(", ")", "{", "switch", "(", "this", ".", "resolvedType", ".", "id", ")", "{", "case", "T_boolean", ":", "case", "T_JavaLangBoolean", ":", "return", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", "?", "this", ".", "constant", ":", "this", ".", "binding", ".", "constant", "(", ")", ";", "default", ":", "return", "Constant", ".", "NotAConstant", ";", "}", "}", "public", "TypeBinding", "postConversionType", "(", "Scope", "scope", ")", "{", "TypeBinding", "convertedType", "=", "this", ".", "resolvedType", ";", "if", "(", "this", ".", "genericCast", "!=", "null", ")", "convertedType", "=", "this", ".", "genericCast", ";", "int", "runtimeType", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ";", "switch", "(", "runtimeType", ")", "{", "case", "T_boolean", ":", "convertedType", "=", "TypeBinding", ".", "BOOLEAN", ";", "break", ";", "case", "T_byte", ":", "convertedType", "=", "TypeBinding", ".", "BYTE", ";", "break", ";", "case", "T_short", ":", "convertedType", "=", "TypeBinding", ".", "SHORT", ";", "break", ";", "case", "T_char", ":", "convertedType", "=", "TypeBinding", ".", "CHAR", ";", "break", ";", "case", "T_int", ":", "convertedType", "=", "TypeBinding", ".", "INT", ";", "break", ";", "case", "T_float", ":", "convertedType", "=", "TypeBinding", ".", "FLOAT", ";", "break", ";", "case", "T_long", ":", "convertedType", "=", "TypeBinding", ".", "LONG", ";", "break", ";", "case", "T_double", ":", "convertedType", "=", "TypeBinding", ".", "DOUBLE", ";", "break", ";", "default", ":", "}", "if", "(", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "BOXING", ")", "!=", "0", ")", "{", "convertedType", "=", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "convertedType", ")", ";", "}", "return", "convertedType", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "this", ".", "receiver", ".", "printExpression", "(", "0", ",", "output", ")", ".", "append", "(", "'.'", ")", ".", "append", "(", "this", ".", "token", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "boolean", "receiverCast", "=", "false", ";", "if", "(", "this", ".", "receiver", "instanceof", "CastExpression", ")", "{", "this", ".", "receiver", ".", "bits", "|=", "ASTNode", ".", "DisableUnnecessaryCastCheck", ";", "receiverCast", "=", "true", ";", "}", "this", ".", "actualReceiverType", "=", "this", ".", "receiver", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "this", ".", "actualReceiverType", "==", "null", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "return", "null", ";", "}", "if", "(", "receiverCast", ")", "{", "if", "(", "(", "(", "CastExpression", ")", "this", ".", "receiver", ")", ".", "expression", ".", "resolvedType", "==", "this", ".", "actualReceiverType", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "(", "CastExpression", ")", "this", ".", "receiver", ")", ";", "}", "}", "FieldBinding", "fieldBinding", "=", "this", ".", "binding", "=", "scope", ".", "getField", "(", "this", ".", "actualReceiverType", ",", "this", ".", "token", ",", "this", ")", ";", "if", "(", "!", "fieldBinding", ".", "isValidBinding", "(", ")", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "this", ".", "receiver", ".", "resolvedType", "instanceof", "ProblemReferenceBinding", ")", "{", "return", "null", ";", "}", "ReferenceBinding", "declaringClass", "=", "fieldBinding", ".", "declaringClass", ";", "boolean", "avoidSecondary", "=", "declaringClass", "!=", "null", "&&", "declaringClass", ".", "isAnonymousType", "(", ")", "&&", "declaringClass", ".", "superclass", "(", ")", "instanceof", "MissingTypeBinding", ";", "if", "(", "!", "avoidSecondary", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "invalidField", "(", "this", ",", "this", ".", "actualReceiverType", ")", ";", "}", "if", "(", "fieldBinding", "instanceof", "ProblemFieldBinding", ")", "{", "ProblemFieldBinding", "problemFieldBinding", "=", "(", "ProblemFieldBinding", ")", "fieldBinding", ";", "FieldBinding", "closestMatch", "=", "problemFieldBinding", ".", "closestMatch", ";", "switch", "(", "problemFieldBinding", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "InheritedNameHidesEnclosingName", ":", "case", "ProblemReasons", ".", "NotVisible", ":", "case", "ProblemReasons", ".", "NonStaticReferenceInConstructorInvocation", ":", "case", "ProblemReasons", ".", "NonStaticReferenceInStaticContext", ":", "if", "(", "closestMatch", "!=", "null", ")", "{", "fieldBinding", "=", "closestMatch", ";", "}", "}", "}", "if", "(", "!", "fieldBinding", ".", "isValidBinding", "(", ")", ")", "{", "return", "null", ";", "}", "}", "TypeBinding", "oldReceiverType", "=", "this", ".", "actualReceiverType", ";", "this", ".", "actualReceiverType", "=", "this", ".", "actualReceiverType", ".", "getErasureCompatibleType", "(", "fieldBinding", ".", "declaringClass", ")", ";", "this", ".", "receiver", ".", "computeConversion", "(", "scope", ",", "this", ".", "actualReceiverType", ",", "this", ".", "actualReceiverType", ")", ";", "if", "(", "this", ".", "actualReceiverType", "!=", "oldReceiverType", "&&", "this", ".", "receiver", ".", "postConversionType", "(", "scope", ")", "!=", "this", ".", "actualReceiverType", ")", "{", "this", ".", "bits", "|=", "NeedReceiverGenericCast", ";", "}", "if", "(", "isFieldUseDeprecated", "(", "fieldBinding", ",", "scope", ",", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsStrictlyAssigned", ")", "!=", "0", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "deprecatedField", "(", "fieldBinding", ",", "this", ")", ";", "}", "boolean", "isImplicitThisRcv", "=", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", ";", "this", ".", "constant", "=", "isImplicitThisRcv", "?", "fieldBinding", ".", "constant", "(", ")", ":", "Constant", ".", "NotAConstant", ";", "if", "(", "fieldBinding", ".", "isStatic", "(", ")", ")", "{", "if", "(", "!", "(", "isImplicitThisRcv", "||", "(", "this", ".", "receiver", "instanceof", "NameReference", "&&", "(", "(", "(", "NameReference", ")", "this", ".", "receiver", ")", ".", "bits", "&", "Binding", ".", "TYPE", ")", "!=", "0", ")", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "nonStaticAccessToStaticField", "(", "this", ",", "fieldBinding", ")", ";", "}", "ReferenceBinding", "declaringClass", "=", "this", ".", "binding", ".", "declaringClass", ";", "if", "(", "!", "isImplicitThisRcv", "&&", "declaringClass", "!=", "this", ".", "actualReceiverType", "&&", "declaringClass", ".", "canBeSeenBy", "(", "scope", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "indirectAccessToStaticField", "(", "this", ",", "fieldBinding", ")", ";", "}", "if", "(", "declaringClass", ".", "isEnum", "(", ")", ")", "{", "MethodScope", "methodScope", "=", "scope", ".", "methodScope", "(", ")", ";", "SourceTypeBinding", "sourceType", "=", "scope", ".", "enclosingSourceType", "(", ")", ";", "if", "(", "this", ".", "constant", "==", "Constant", ".", "NotAConstant", "&&", "!", "methodScope", ".", "isStatic", "&&", "(", "sourceType", "==", "declaringClass", "||", "sourceType", ".", "superclass", "==", "declaringClass", ")", "&&", "methodScope", ".", "isInsideInitializerOrConstructor", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "enumStaticFieldUsedDuringInitialization", "(", "this", ".", "binding", ",", "this", ")", ";", "}", "}", "}", "TypeBinding", "fieldType", "=", "fieldBinding", ".", "type", ";", "if", "(", "fieldType", "!=", "null", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsStrictlyAssigned", ")", "==", "0", ")", "{", "fieldType", "=", "fieldType", ".", "capture", "(", "scope", ",", "this", ".", "sourceEnd", ")", ";", "}", "this", ".", "resolvedType", "=", "fieldType", ";", "if", "(", "(", "fieldType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "invalidType", "(", "this", ",", "fieldType", ")", ";", "return", "null", ";", "}", "}", "return", "fieldType", ";", "}", "public", "void", "setActualReceiverType", "(", "ReferenceBinding", "receiverType", ")", "{", "this", ".", "actualReceiverType", "=", "receiverType", ";", "}", "public", "void", "setDepth", "(", "int", "depth", ")", "{", "this", ".", "bits", "&=", "~", "ASTNode", ".", "DepthMASK", ";", "if", "(", "depth", ">", "0", ")", "{", "this", ".", "bits", "|=", "(", "depth", "&", "0xFF", ")", "<<", "ASTNode", ".", "DepthSHIFT", ";", "}", "}", "public", "void", "setFieldIndex", "(", "int", "index", ")", "{", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "this", ".", "receiver", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,643
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "Opcodes", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "FieldBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MethodBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Scope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "public", "abstract", "class", "Reference", "extends", "Expression", "{", "public", "Reference", "(", ")", "{", "super", "(", ")", ";", "}", "public", "abstract", "FlowInfo", "analyseAssignment", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ",", "Assignment", "assignment", ",", "boolean", "isCompound", ")", ";", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "return", "flowInfo", ";", "}", "public", "FieldBinding", "fieldBinding", "(", ")", "{", "return", "null", ";", "}", "public", "void", "fieldStore", "(", "Scope", "currentScope", ",", "CodeStream", "codeStream", ",", "FieldBinding", "fieldBinding", ",", "MethodBinding", "syntheticWriteAccessor", ",", "TypeBinding", "receiverType", ",", "boolean", "isImplicitThisReceiver", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "fieldBinding", ".", "isStatic", "(", ")", ")", "{", "if", "(", "valueRequired", ")", "{", "switch", "(", "fieldBinding", ".", "type", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "codeStream", ".", "dup2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "dup", "(", ")", ";", "break", ";", "}", "}", "if", "(", "syntheticWriteAccessor", "==", "null", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "fieldBinding", ",", "receiverType", ",", "isImplicitThisReceiver", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_putstatic", ",", "fieldBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "syntheticWriteAccessor", ",", "null", ")", ";", "}", "}", "else", "{", "if", "(", "valueRequired", ")", "{", "switch", "(", "fieldBinding", ".", "type", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "codeStream", ".", "dup2_x1", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "dup_x1", "(", ")", ";", "break", ";", "}", "}", "if", "(", "syntheticWriteAccessor", "==", "null", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "fieldBinding", ",", "receiverType", ",", "isImplicitThisReceiver", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_putfield", ",", "fieldBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "syntheticWriteAccessor", ",", "null", ")", ";", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "abstract", "void", "generateAssignment", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "Assignment", "assignment", ",", "boolean", "valueRequired", ")", ";", "public", "abstract", "void", "generateCompoundAssignment", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "Expression", "expression", ",", "int", "operator", ",", "int", "assignmentImplicitConversion", ",", "boolean", "valueRequired", ")", ";", "public", "abstract", "void", "generatePostIncrement", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "CompoundAssignment", "postIncrement", ",", "boolean", "valueRequired", ")", ";", "}", "</s>" ]
5,644
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "NullLiteral", "extends", "MagicLiteral", "{", "static", "final", "char", "[", "]", "source", "=", "{", "'n'", ",", "'u'", ",", "'l'", ",", "'l'", "}", ";", "public", "NullLiteral", "(", "int", "s", ",", "int", "e", ")", "{", "super", "(", "s", ",", "e", ")", ";", "}", "public", "void", "computeConstant", "(", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "aconst_null", "(", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "TypeBinding", "literalType", "(", "BlockScope", "scope", ")", "{", "return", "TypeBinding", ".", "NULL", ";", "}", "public", "int", "nullStatus", "(", "FlowInfo", "flowInfo", ")", "{", "return", "FlowInfo", ".", "NULL", ";", "}", "public", "Object", "reusableJSRTarget", "(", ")", "{", "return", "TypeBinding", ".", "NULL", ";", "}", "public", "char", "[", "]", "source", "(", ")", "{", "return", "source", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,645
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "MarkerAnnotation", "extends", "Annotation", "{", "public", "MarkerAnnotation", "(", "TypeReference", "type", ",", "int", "sourceStart", ")", "{", "this", ".", "type", "=", "type", ";", "this", ".", "sourceStart", "=", "sourceStart", ";", "this", ".", "sourceEnd", "=", "type", ".", "sourceEnd", ";", "}", "public", "MemberValuePair", "[", "]", "memberValuePairs", "(", ")", "{", "return", "NoValuePairs", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "type", "!=", "null", ")", "{", "this", ".", "type", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,646
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "JavadocImplicitTypeReference", "extends", "TypeReference", "{", "public", "char", "[", "]", "token", ";", "public", "JavadocImplicitTypeReference", "(", "char", "[", "]", "name", ",", "int", "pos", ")", "{", "super", "(", ")", ";", "this", ".", "token", "=", "name", ";", "this", ".", "sourceStart", "=", "pos", ";", "this", ".", "sourceEnd", "=", "pos", ";", "}", "public", "TypeReference", "copyDims", "(", "int", "dim", ")", "{", "return", "null", ";", "}", "protected", "TypeBinding", "getTypeBinding", "(", "Scope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "return", "this", ".", "resolvedType", "=", "scope", ".", "enclosingReceiverType", "(", ")", ";", "}", "public", "char", "[", "]", "getLastToken", "(", ")", "{", "return", "this", ".", "token", ";", "}", "public", "char", "[", "]", "[", "]", "getTypeName", "(", ")", "{", "if", "(", "this", ".", "token", "!=", "null", ")", "{", "char", "[", "]", "[", "]", "tokens", "=", "{", "this", ".", "token", "}", ";", "return", "tokens", ";", "}", "return", "null", ";", "}", "public", "boolean", "isThis", "(", ")", "{", "return", "true", ";", "}", "protected", "TypeBinding", "internalResolveType", "(", "Scope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "this", ".", "resolvedType", "!=", "null", ")", "{", "if", "(", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "return", "this", ".", "resolvedType", ";", "}", "else", "{", "switch", "(", "this", ".", "resolvedType", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "case", "ProblemReasons", ".", "NotVisible", ":", "TypeBinding", "type", "=", "this", ".", "resolvedType", ".", "closestMatch", "(", ")", ";", "return", "type", ";", "default", ":", "return", "null", ";", "}", "}", "}", "boolean", "hasError", ";", "TypeBinding", "type", "=", "this", ".", "resolvedType", "=", "getTypeBinding", "(", "scope", ")", ";", "if", "(", "type", "==", "null", ")", "{", "return", "null", ";", "}", "else", "if", "(", "(", "hasError", "=", "!", "type", ".", "isValidBinding", "(", ")", ")", "==", "true", ")", "{", "reportInvalidType", "(", "scope", ")", ";", "switch", "(", "type", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "case", "ProblemReasons", ".", "NotVisible", ":", "type", "=", "type", ".", "closestMatch", "(", ")", ";", "if", "(", "type", "==", "null", ")", "return", "null", ";", "break", ";", "default", ":", "return", "null", ";", "}", "}", "if", "(", "type", ".", "isArrayType", "(", ")", "&&", "(", "(", "ArrayBinding", ")", "type", ")", ".", "leafComponentType", "==", "TypeBinding", ".", "VOID", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotAllocateVoidArray", "(", "this", ")", ";", "return", "null", ";", "}", "if", "(", "isTypeUseDeprecated", "(", "type", ",", "scope", ")", ")", "{", "reportDeprecatedType", "(", "type", ",", "scope", ")", ";", "}", "if", "(", "type", ".", "isGenericType", "(", ")", "||", "type", ".", "isParameterizedType", "(", ")", ")", "{", "type", "=", "scope", ".", "environment", "(", ")", ".", "convertToRawType", "(", "type", ",", "true", ")", ";", "}", "if", "(", "hasError", ")", "{", "return", "type", ";", "}", "return", "this", ".", "resolvedType", "=", "type", ";", "}", "protected", "void", "reportInvalidType", "(", "Scope", "scope", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidType", "(", "this", ",", "this", ".", "resolvedType", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "protected", "void", "reportDeprecatedType", "(", "TypeBinding", "type", ",", "Scope", "scope", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocDeprecatedType", "(", "type", ",", "this", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "new", "StringBuffer", "(", ")", ";", "}", "}", "</s>" ]
5,647
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "public", "class", "ThrowStatement", "extends", "Statement", "{", "public", "Expression", "exception", ";", "public", "TypeBinding", "exceptionType", ";", "public", "ThrowStatement", "(", "Expression", "exception", ",", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "exception", "=", "exception", ";", "this", ".", "sourceStart", "=", "sourceStart", ";", "this", ".", "sourceEnd", "=", "sourceEnd", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "this", ".", "exception", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "this", ".", "exception", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "flowContext", ".", "checkExceptionHandlers", "(", "this", ".", "exceptionType", ",", "this", ",", "flowInfo", ",", "currentScope", ")", ";", "return", "FlowInfo", ".", "DEAD_END", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsReachable", ")", "==", "0", ")", "return", ";", "int", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "exception", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "athrow", "(", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "StringBuffer", "printStatement", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "indent", ",", "output", ")", ".", "append", "(", "\"throw", "\"", ")", ";", "this", ".", "exception", ".", "printExpression", "(", "0", ",", "output", ")", ";", "return", "output", ".", "append", "(", "';'", ")", ";", "}", "public", "void", "resolve", "(", "BlockScope", "scope", ")", "{", "this", ".", "exceptionType", "=", "this", ".", "exception", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "this", ".", "exceptionType", "!=", "null", "&&", "this", ".", "exceptionType", ".", "isValidBinding", "(", ")", ")", "{", "if", "(", "this", ".", "exceptionType", "==", "TypeBinding", ".", "NULL", ")", "{", "if", "(", "scope", ".", "compilerOptions", "(", ")", ".", "complianceLevel", "<=", "ClassFileConstants", ".", "JDK1_3", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotThrowNull", "(", "this", ".", "exception", ")", ";", "}", "}", "else", "if", "(", "this", ".", "exceptionType", ".", "findSuperTypeOriginatingFrom", "(", "TypeIds", ".", "T_JavaLangThrowable", ",", "true", ")", "==", "null", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotThrowType", "(", "this", ".", "exception", ",", "this", ".", "exceptionType", ")", ";", "}", "this", ".", "exception", ".", "computeConversion", "(", "scope", ",", "this", ".", "exceptionType", ",", "this", ".", "exceptionType", ")", ";", "}", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "this", ".", "exception", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
5,648
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "BranchLabel", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "BooleanConstant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "public", "class", "FalseLiteral", "extends", "MagicLiteral", "{", "static", "final", "char", "[", "]", "source", "=", "{", "'f'", ",", "'a'", ",", "'l'", ",", "'s'", ",", "'e'", "}", ";", "public", "FalseLiteral", "(", "int", "s", ",", "int", "e", ")", "{", "super", "(", "s", ",", "e", ")", ";", "}", "public", "void", "computeConstant", "(", ")", "{", "this", ".", "constant", "=", "BooleanConstant", ".", "fromValue", "(", "false", ")", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "void", "generateOptimizedBoolean", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "!=", "null", ")", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "goto_", "(", "falseLabel", ")", ";", "}", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "TypeBinding", "literalType", "(", "BlockScope", "scope", ")", "{", "return", "TypeBinding", ".", "BOOLEAN", ";", "}", "public", "char", "[", "]", "source", "(", ")", "{", "return", "source", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,649
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "LabeledStatement", "extends", "Statement", "{", "public", "Statement", "statement", ";", "public", "char", "[", "]", "label", ";", "public", "BranchLabel", "targetLabel", ";", "public", "int", "labelEnd", ";", "int", "mergedInitStateIndex", "=", "-", "1", ";", "public", "LabeledStatement", "(", "char", "[", "]", "label", ",", "Statement", "statement", ",", "long", "labelPosition", ",", "int", "sourceEnd", ")", "{", "this", ".", "statement", "=", "statement", ";", "if", "(", "statement", "instanceof", "EmptyStatement", ")", "statement", ".", "bits", "|=", "IsUsefulEmptyStatement", ";", "this", ".", "label", "=", "label", ";", "this", ".", "sourceStart", "=", "(", "int", ")", "(", "labelPosition", ">>>", "32", ")", ";", "this", ".", "labelEnd", "=", "(", "int", ")", "labelPosition", ";", "this", ".", "sourceEnd", "=", "sourceEnd", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "statement", "==", "null", ")", "{", "return", "flowInfo", ";", "}", "else", "{", "LabelFlowContext", "labelContext", ";", "FlowInfo", "statementInfo", ",", "mergedInfo", ";", "statementInfo", "=", "this", ".", "statement", ".", "analyseCode", "(", "currentScope", ",", "(", "labelContext", "=", "new", "LabelFlowContext", "(", "flowContext", ",", "this", ",", "this", ".", "label", ",", "(", "this", ".", "targetLabel", "=", "new", "BranchLabel", "(", ")", ")", ",", "currentScope", ")", ")", ",", "flowInfo", ")", ";", "boolean", "reinjectNullInfo", "=", "(", "statementInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", "&&", "(", "labelContext", ".", "initsOnBreak", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ";", "mergedInfo", "=", "statementInfo", ".", "mergedWith", "(", "labelContext", ".", "initsOnBreak", ")", ";", "if", "(", "reinjectNullInfo", ")", "{", "(", "(", "UnconditionalFlowInfo", ")", "mergedInfo", ")", ".", "addInitializationsFrom", "(", "flowInfo", ".", "unconditionalFieldLessCopy", "(", ")", ")", ".", "addInitializationsFrom", "(", "labelContext", ".", "initsOnBreak", ".", "unconditionalFieldLessCopy", "(", ")", ")", ";", "}", "this", ".", "mergedInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "mergedInfo", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "LabelUsed", ")", "==", "0", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "unusedLabel", "(", "this", ")", ";", "}", "return", "mergedInfo", ";", "}", "}", "public", "ASTNode", "concreteStatement", "(", ")", "{", "return", "this", ".", "statement", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "IsReachable", ")", "==", "0", ")", "{", "return", ";", "}", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "this", ".", "targetLabel", "!=", "null", ")", "{", "this", ".", "targetLabel", ".", "initialize", "(", "codeStream", ")", ";", "if", "(", "this", ".", "statement", "!=", "null", ")", "{", "this", ".", "statement", ".", "generateCode", "(", "currentScope", ",", "codeStream", ")", ";", "}", "this", ".", "targetLabel", ".", "place", "(", ")", ";", "}", "if", "(", "this", ".", "mergedInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "StringBuffer", "printStatement", "(", "int", "tab", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "tab", ",", "output", ")", ".", "append", "(", "this", ".", "label", ")", ".", "append", "(", "\":", "\"", ")", ";", "if", "(", "this", ".", "statement", "==", "null", ")", "output", ".", "append", "(", "';'", ")", ";", "else", "this", ".", "statement", ".", "printStatement", "(", "0", ",", "output", ")", ";", "return", "output", ";", "}", "public", "void", "resolve", "(", "BlockScope", "scope", ")", "{", "if", "(", "this", ".", "statement", "!=", "null", ")", "{", "this", ".", "statement", ".", "resolve", "(", "scope", ")", ";", "}", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "if", "(", "this", ".", "statement", "!=", "null", ")", "this", ".", "statement", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
5,650
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "CompilerOptions", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "ProblemSeverities", ";", "public", "class", "SingleTypeReference", "extends", "TypeReference", "{", "public", "char", "[", "]", "token", ";", "public", "SingleTypeReference", "(", "char", "[", "]", "source", ",", "long", "pos", ")", "{", "this", ".", "token", "=", "source", ";", "this", ".", "sourceStart", "=", "(", "int", ")", "(", "pos", ">>>", "32", ")", ";", "this", ".", "sourceEnd", "=", "(", "int", ")", "(", "pos", "&", "0x00000000FFFFFFFFL", ")", ";", "}", "public", "TypeReference", "copyDims", "(", "int", "dim", ")", "{", "return", "new", "ArrayTypeReference", "(", "this", ".", "token", ",", "dim", ",", "(", "(", "(", "long", ")", "this", ".", "sourceStart", ")", "<<", "32", ")", "+", "this", ".", "sourceEnd", ")", ";", "}", "public", "char", "[", "]", "getLastToken", "(", ")", "{", "return", "this", ".", "token", ";", "}", "protected", "TypeBinding", "getTypeBinding", "(", "Scope", "scope", ")", "{", "if", "(", "this", ".", "resolvedType", "!=", "null", ")", "return", "this", ".", "resolvedType", ";", "this", ".", "resolvedType", "=", "scope", ".", "getType", "(", "this", ".", "token", ")", ";", "if", "(", "scope", ".", "kind", "==", "Scope", ".", "CLASS_SCOPE", "&&", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "if", "(", "(", "(", "ClassScope", ")", "scope", ")", ".", "detectHierarchyCycle", "(", "this", ".", "resolvedType", ",", "this", ")", ")", "return", "null", ";", "return", "this", ".", "resolvedType", ";", "}", "public", "char", "[", "]", "[", "]", "getTypeName", "(", ")", "{", "return", "new", "char", "[", "]", "[", "]", "{", "this", ".", "token", "}", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "output", ".", "append", "(", "this", ".", "token", ")", ";", "}", "public", "TypeBinding", "resolveTypeEnclosing", "(", "BlockScope", "scope", ",", "ReferenceBinding", "enclosingType", ")", "{", "TypeBinding", "memberType", "=", "this", ".", "resolvedType", "=", "scope", ".", "getMemberType", "(", "this", ".", "token", ",", "enclosingType", ")", ";", "boolean", "hasError", "=", "false", ";", "if", "(", "!", "memberType", ".", "isValidBinding", "(", ")", ")", "{", "hasError", "=", "true", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidEnclosingType", "(", "this", ",", "memberType", ",", "enclosingType", ")", ";", "memberType", "=", "(", "(", "ReferenceBinding", ")", "memberType", ")", ".", "closestMatch", "(", ")", ";", "if", "(", "memberType", "==", "null", ")", "{", "return", "null", ";", "}", "}", "if", "(", "isTypeUseDeprecated", "(", "memberType", ",", "scope", ")", ")", "reportDeprecatedType", "(", "memberType", ",", "scope", ")", ";", "memberType", "=", "scope", ".", "environment", "(", ")", ".", "convertToRawType", "(", "memberType", ",", "false", ")", ";", "if", "(", "memberType", ".", "isRawType", "(", ")", "&&", "(", "this", ".", "bits", "&", "IgnoreRawTypeCheck", ")", "==", "0", "&&", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "RawTypeReference", ")", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "rawTypeReference", "(", "this", ",", "memberType", ")", ";", "}", "if", "(", "hasError", ")", "{", "return", "memberType", ";", "}", "return", "this", ".", "resolvedType", "=", "memberType", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,651
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "ScannerHelper", ";", "public", "class", "LongLiteral", "extends", "NumberLiteral", "{", "public", "LongLiteral", "(", "char", "[", "]", "token", ",", "int", "s", ",", "int", "e", ")", "{", "super", "(", "token", ",", "s", ",", "e", ")", ";", "}", "public", "void", "computeConstant", "(", ")", "{", "int", "length", "=", "this", ".", "source", ".", "length", "-", "1", ";", "long", "computedValue", ";", "if", "(", "this", ".", "source", "[", "0", "]", "==", "'0'", ")", "{", "if", "(", "length", "==", "1", ")", "{", "this", ".", "constant", "=", "LongConstant", ".", "fromValue", "(", "0L", ")", ";", "return", ";", "}", "final", "int", "shift", ",", "radix", ";", "int", "j", ";", "if", "(", "(", "this", ".", "source", "[", "1", "]", "==", "'x'", ")", "||", "(", "this", ".", "source", "[", "1", "]", "==", "'X'", ")", ")", "{", "shift", "=", "4", ";", "j", "=", "2", ";", "radix", "=", "16", ";", "}", "else", "{", "shift", "=", "3", ";", "j", "=", "1", ";", "radix", "=", "8", ";", "}", "int", "nbDigit", "=", "0", ";", "while", "(", "this", ".", "source", "[", "j", "]", "==", "'0'", ")", "{", "j", "++", ";", "if", "(", "j", "==", "length", ")", "{", "this", ".", "constant", "=", "LongConstant", ".", "fromValue", "(", "0L", ")", ";", "return", ";", "}", "}", "int", "digitValue", ";", "if", "(", "(", "digitValue", "=", "ScannerHelper", ".", "digit", "(", "this", ".", "source", "[", "j", "++", "]", ",", "radix", ")", ")", "<", "0", ")", "{", "return", ";", "}", "if", "(", "digitValue", ">=", "8", ")", "nbDigit", "=", "4", ";", "else", "if", "(", "digitValue", ">=", "4", ")", "nbDigit", "=", "3", ";", "else", "if", "(", "digitValue", ">=", "2", ")", "nbDigit", "=", "2", ";", "else", "nbDigit", "=", "1", ";", "computedValue", "=", "digitValue", ";", "while", "(", "j", "<", "length", ")", "{", "if", "(", "(", "digitValue", "=", "ScannerHelper", ".", "digit", "(", "this", ".", "source", "[", "j", "++", "]", ",", "radix", ")", ")", "<", "0", ")", "{", "return", ";", "}", "if", "(", "(", "nbDigit", "+=", "shift", ")", ">", "64", ")", "return", ";", "computedValue", "=", "(", "computedValue", "<<", "shift", ")", "|", "digitValue", ";", "}", "}", "else", "{", "long", "previous", "=", "0", ";", "computedValue", "=", "0", ";", "final", "long", "limit", "=", "Long", ".", "MAX_VALUE", "/", "10", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "int", "digitValue", ";", "if", "(", "(", "digitValue", "=", "ScannerHelper", ".", "digit", "(", "this", ".", "source", "[", "i", "]", ",", "10", ")", ")", "<", "0", ")", "return", ";", "previous", "=", "computedValue", ";", "if", "(", "computedValue", ">", "limit", ")", "return", ";", "computedValue", "*=", "10", ";", "if", "(", "(", "computedValue", "+", "digitValue", ")", ">", "Long", ".", "MAX_VALUE", ")", "return", ";", "computedValue", "+=", "digitValue", ";", "if", "(", "previous", ">", "computedValue", ")", "return", ";", "}", "}", "this", ".", "constant", "=", "LongConstant", ".", "fromValue", "(", "computedValue", ")", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "TypeBinding", "literalType", "(", "BlockScope", "scope", ")", "{", "return", "TypeBinding", ".", "LONG", ";", "}", "public", "final", "boolean", "mayRepresentMIN_VALUE", "(", ")", "{", "return", "(", "(", "this", ".", "source", ".", "length", "==", "20", ")", "&&", "(", "this", ".", "source", "[", "0", "]", "==", "'9'", ")", "&&", "(", "this", ".", "source", "[", "1", "]", "==", "'2'", ")", "&&", "(", "this", ".", "source", "[", "2", "]", "==", "'2'", ")", "&&", "(", "this", ".", "source", "[", "3", "]", "==", "'3'", ")", "&&", "(", "this", ".", "source", "[", "4", "]", "==", "'3'", ")", "&&", "(", "this", ".", "source", "[", "5", "]", "==", "'7'", ")", "&&", "(", "this", ".", "source", "[", "6", "]", "==", "'2'", ")", "&&", "(", "this", ".", "source", "[", "7", "]", "==", "'0'", ")", "&&", "(", "this", ".", "source", "[", "8", "]", "==", "'3'", ")", "&&", "(", "this", ".", "source", "[", "9", "]", "==", "'6'", ")", "&&", "(", "this", ".", "source", "[", "10", "]", "==", "'8'", ")", "&&", "(", "this", ".", "source", "[", "11", "]", "==", "'5'", ")", "&&", "(", "this", ".", "source", "[", "12", "]", "==", "'4'", ")", "&&", "(", "this", ".", "source", "[", "13", "]", "==", "'7'", ")", "&&", "(", "this", ".", "source", "[", "14", "]", "==", "'7'", ")", "&&", "(", "this", ".", "source", "[", "15", "]", "==", "'5'", ")", "&&", "(", "this", ".", "source", "[", "16", "]", "==", "'8'", ")", "&&", "(", "this", ".", "source", "[", "17", "]", "==", "'0'", ")", "&&", "(", "this", ".", "source", "[", "18", "]", "==", "'8'", ")", "&&", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "ParenthesizedMASK", ")", ">>", "ASTNode", ".", "ParenthesizedSHIFT", ")", "==", "0", ")", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,652
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "public", "class", "IntLiteralMinValue", "extends", "IntLiteral", "{", "final", "static", "char", "[", "]", "CharValue", "=", "new", "char", "[", "]", "{", "'-'", ",", "'2'", ",", "'1'", ",", "'4'", ",", "'7'", ",", "'4'", ",", "'8'", ",", "'3'", ",", "'6'", ",", "'4'", ",", "'8'", "}", ";", "public", "IntLiteralMinValue", "(", ")", "{", "super", "(", "CharValue", ",", "0", ",", "0", ",", "Integer", ".", "MIN_VALUE", ")", ";", "this", ".", "constant", "=", "IntConstant", ".", "fromValue", "(", "Integer", ".", "MIN_VALUE", ")", ";", "}", "public", "void", "computeConstant", "(", ")", "{", "}", "}", "</s>" ]
5,653
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "Argument", "extends", "LocalDeclaration", "{", "private", "final", "static", "char", "[", "]", "SET", "=", "\"set\"", ".", "toCharArray", "(", ")", ";", "public", "Argument", "(", "char", "[", "]", "name", ",", "long", "posNom", ",", "TypeReference", "tr", ",", "int", "modifiers", ")", "{", "super", "(", "name", ",", "(", "int", ")", "(", "posNom", ">>>", "32", ")", ",", "(", "int", ")", "posNom", ")", ";", "this", ".", "declarationSourceEnd", "=", "(", "int", ")", "posNom", ";", "this", ".", "modifiers", "=", "modifiers", ";", "this", ".", "type", "=", "tr", ";", "this", ".", "bits", "|=", "IsLocalDeclarationReachable", ";", "}", "public", "void", "bind", "(", "MethodScope", "scope", ",", "TypeBinding", "typeBinding", ",", "boolean", "used", ")", "{", "Binding", "existingVariable", "=", "scope", ".", "getBinding", "(", "this", ".", "name", ",", "Binding", ".", "VARIABLE", ",", "this", ",", "false", ")", ";", "if", "(", "existingVariable", "!=", "null", "&&", "existingVariable", ".", "isValidBinding", "(", ")", ")", "{", "if", "(", "existingVariable", "instanceof", "LocalVariableBinding", "&&", "this", ".", "hiddenVariableDepth", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "redefineArgument", "(", "this", ")", ";", "}", "else", "{", "boolean", "isSpecialArgument", "=", "false", ";", "if", "(", "existingVariable", "instanceof", "FieldBinding", ")", "{", "if", "(", "scope", ".", "isInsideConstructor", "(", ")", ")", "{", "isSpecialArgument", "=", "true", ";", "}", "else", "{", "AbstractMethodDeclaration", "methodDecl", "=", "scope", ".", "referenceMethod", "(", ")", ";", "if", "(", "methodDecl", "!=", "null", "&&", "CharOperation", ".", "prefixEquals", "(", "SET", ",", "methodDecl", ".", "selector", ")", ")", "{", "isSpecialArgument", "=", "true", ";", "}", "}", "}", "scope", ".", "problemReporter", "(", ")", ".", "localVariableHiding", "(", "this", ",", "existingVariable", ",", "isSpecialArgument", ")", ";", "}", "}", "if", "(", "this", ".", "binding", "==", "null", ")", "{", "this", ".", "binding", "=", "new", "LocalVariableBinding", "(", "this", ",", "typeBinding", ",", "this", ".", "modifiers", ",", "true", ")", ";", "}", "else", "if", "(", "!", "this", ".", "binding", ".", "type", ".", "isValidBinding", "(", ")", ")", "{", "AbstractMethodDeclaration", "methodDecl", "=", "scope", ".", "referenceMethod", "(", ")", ";", "if", "(", "methodDecl", "!=", "null", ")", "{", "MethodBinding", "methodBinding", "=", "methodDecl", ".", "binding", ";", "if", "(", "methodBinding", "!=", "null", ")", "{", "methodBinding", ".", "tagBits", "|=", "TagBits", ".", "HasUnresolvedArguments", ";", "}", "}", "}", "scope", ".", "addLocalVariable", "(", "this", ".", "binding", ")", ";", "resolveAnnotations", "(", "scope", ",", "this", ".", "annotations", ",", "this", ".", "binding", ")", ";", "this", ".", "binding", ".", "declaration", "=", "this", ";", "this", ".", "binding", ".", "useFlag", "=", "used", "?", "LocalVariableBinding", ".", "USED", ":", "LocalVariableBinding", ".", "UNUSED", ";", "}", "public", "int", "getKind", "(", ")", "{", "return", "PARAMETER", ";", "}", "public", "boolean", "isVarArgs", "(", ")", "{", "return", "this", ".", "type", "!=", "null", "&&", "(", "this", ".", "type", ".", "bits", "&", "IsVarArgs", ")", "!=", "0", ";", "}", "public", "StringBuffer", "print", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "indent", ",", "output", ")", ";", "printModifiers", "(", "this", ".", "modifiers", ",", "output", ")", ";", "if", "(", "this", ".", "annotations", "!=", "null", ")", "printAnnotations", "(", "this", ".", "annotations", ",", "output", ")", ";", "if", "(", "this", ".", "type", "==", "null", ")", "{", "output", ".", "append", "(", "\"<no", "type>", "\"", ")", ";", "}", "else", "{", "this", ".", "type", ".", "print", "(", "0", ",", "output", ")", ".", "append", "(", "'", "'", ")", ";", "}", "return", "output", ".", "append", "(", "this", ".", "name", ")", ";", "}", "public", "StringBuffer", "printStatement", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "print", "(", "indent", ",", "output", ")", ".", "append", "(", "';'", ")", ";", "}", "public", "TypeBinding", "resolveForCatch", "(", "BlockScope", "scope", ")", "{", "TypeBinding", "exceptionType", "=", "this", ".", "type", ".", "resolveType", "(", "scope", ",", "true", ")", ";", "boolean", "hasError", ";", "if", "(", "exceptionType", "==", "null", ")", "{", "hasError", "=", "true", ";", "}", "else", "{", "hasError", "=", "false", ";", "switch", "(", "exceptionType", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "PARAMETERIZED_TYPE", ":", "if", "(", "exceptionType", ".", "isBoundParameterizedType", "(", ")", ")", "{", "hasError", "=", "true", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidParameterizedExceptionType", "(", "exceptionType", ",", "this", ")", ";", "}", "break", ";", "case", "Binding", ".", "TYPE_PARAMETER", ":", "scope", ".", "problemReporter", "(", ")", ".", "invalidTypeVariableAsException", "(", "exceptionType", ",", "this", ")", ";", "hasError", "=", "true", ";", "break", ";", "case", "Binding", ".", "ARRAY_TYPE", ":", "if", "(", "(", "(", "ArrayBinding", ")", "exceptionType", ")", ".", "leafComponentType", "==", "TypeBinding", ".", "VOID", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "variableTypeCannotBeVoidArray", "(", "this", ")", ";", "hasError", "=", "true", ";", "}", "break", ";", "}", "if", "(", "exceptionType", ".", "findSuperTypeOriginatingFrom", "(", "TypeIds", ".", "T_JavaLangThrowable", ",", "true", ")", "==", "null", "&&", "exceptionType", ".", "isValidBinding", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotThrowType", "(", "this", ".", "type", ",", "exceptionType", ")", ";", "hasError", "=", "true", ";", "}", "}", "Binding", "existingVariable", "=", "scope", ".", "getBinding", "(", "this", ".", "name", ",", "Binding", ".", "VARIABLE", ",", "this", ",", "false", ")", ";", "if", "(", "existingVariable", "!=", "null", "&&", "existingVariable", ".", "isValidBinding", "(", ")", ")", "{", "if", "(", "existingVariable", "instanceof", "LocalVariableBinding", "&&", "this", ".", "hiddenVariableDepth", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "redefineArgument", "(", "this", ")", ";", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableHiding", "(", "this", ",", "existingVariable", ",", "false", ")", ";", "}", "}", "this", ".", "binding", "=", "new", "LocalVariableBinding", "(", "this", ",", "exceptionType", ",", "this", ".", "modifiers", ",", "false", ")", ";", "resolveAnnotations", "(", "scope", ",", "this", ".", "annotations", ",", "this", ".", "binding", ")", ";", "scope", ".", "addLocalVariable", "(", "this", ".", "binding", ")", ";", "this", ".", "binding", ".", "setConstant", "(", "Constant", ".", "NotAConstant", ")", ";", "if", "(", "hasError", ")", "return", "null", ";", "return", "exceptionType", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "annotations", "!=", "null", ")", "{", "int", "annotationsLength", "=", "this", ".", "annotations", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotationsLength", ";", "i", "++", ")", "this", ".", "annotations", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "if", "(", "this", ".", "type", "!=", "null", ")", "this", ".", "type", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "annotations", "!=", "null", ")", "{", "int", "annotationsLength", "=", "this", ".", "annotations", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotationsLength", ";", "i", "++", ")", "this", ".", "annotations", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "if", "(", "this", ".", "type", "!=", "null", ")", "this", ".", "type", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,654
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "InstanceOfExpression", "extends", "OperatorExpression", "{", "public", "Expression", "expression", ";", "public", "TypeReference", "type", ";", "public", "InstanceOfExpression", "(", "Expression", "expression", ",", "TypeReference", "type", ")", "{", "this", ".", "expression", "=", "expression", ";", "this", ".", "type", "=", "type", ";", "type", ".", "bits", "|=", "IgnoreRawTypeCheck", ";", "this", ".", "bits", "|=", "INSTANCEOF", "<<", "OperatorSHIFT", ";", "this", ".", "sourceStart", "=", "expression", ".", "sourceStart", ";", "this", ".", "sourceEnd", "=", "type", ".", "sourceEnd", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "LocalVariableBinding", "local", "=", "this", ".", "expression", ".", "localVariableBinding", "(", ")", ";", "if", "(", "local", "!=", "null", "&&", "(", "local", ".", "type", ".", "tagBits", "&", "TagBits", ".", "IsBaseType", ")", "==", "0", ")", "{", "flowInfo", "=", "this", ".", "expression", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "FlowInfo", "initsWhenTrue", "=", "flowInfo", ".", "copy", "(", ")", ";", "initsWhenTrue", ".", "markAsComparedEqualToNonNull", "(", "local", ")", ";", "flowContext", ".", "recordUsingNullReference", "(", "currentScope", ",", "local", ",", "this", ".", "expression", ",", "FlowContext", ".", "CAN_ONLY_NULL", "|", "FlowContext", ".", "IN_INSTANCEOF", ",", "flowInfo", ")", ";", "return", "FlowInfo", ".", "conditional", "(", "initsWhenTrue", ",", "flowInfo", ".", "copy", "(", ")", ")", ";", "}", "return", "this", ".", "expression", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "instance_of", "(", "this", ".", "type", ".", "resolvedType", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "codeStream", ".", "pop", "(", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "StringBuffer", "printExpressionNoParenthesis", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "this", ".", "expression", ".", "printExpression", "(", "indent", ",", "output", ")", ".", "append", "(", "\"", "instanceof", "\"", ")", ";", "return", "this", ".", "type", ".", "print", "(", "0", ",", "output", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "TypeBinding", "expressionType", "=", "this", ".", "expression", ".", "resolveType", "(", "scope", ")", ";", "TypeBinding", "checkedType", "=", "this", ".", "type", ".", "resolveType", "(", "scope", ",", "true", ")", ";", "if", "(", "expressionType", "==", "null", "||", "checkedType", "==", "null", ")", "return", "null", ";", "if", "(", "!", "checkedType", ".", "isReifiable", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "illegalInstanceOfGenericType", "(", "checkedType", ",", "this", ")", ";", "}", "else", "if", "(", "(", "expressionType", "!=", "TypeBinding", ".", "NULL", "&&", "expressionType", ".", "isBaseType", "(", ")", ")", "||", "!", "checkCastTypesCompatibility", "(", "scope", ",", "checkedType", ",", "expressionType", ",", "null", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "notCompatibleTypesError", "(", "this", ",", "expressionType", ",", "checkedType", ")", ";", "}", "return", "this", ".", "resolvedType", "=", "TypeBinding", ".", "BOOLEAN", ";", "}", "public", "void", "tagAsUnnecessaryCast", "(", "Scope", "scope", ",", "TypeBinding", "castType", ")", "{", "if", "(", "this", ".", "expression", ".", "resolvedType", "!=", "TypeBinding", ".", "NULL", ")", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryInstanceof", "(", "this", ",", "castType", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "this", ".", "expression", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "this", ".", "type", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,655
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "BreakStatement", "extends", "BranchStatement", "{", "public", "BreakStatement", "(", "char", "[", "]", "label", ",", "int", "sourceStart", ",", "int", "e", ")", "{", "super", "(", "label", ",", "sourceStart", ",", "e", ")", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "FlowContext", "targetContext", "=", "(", "this", ".", "label", "==", "null", ")", "?", "flowContext", ".", "getTargetContextForDefaultBreak", "(", ")", ":", "flowContext", ".", "getTargetContextForBreakLabel", "(", "this", ".", "label", ")", ";", "if", "(", "targetContext", "==", "null", ")", "{", "if", "(", "this", ".", "label", "==", "null", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "invalidBreak", "(", "this", ")", ";", "}", "else", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "undefinedLabel", "(", "this", ")", ";", "}", "return", "flowInfo", ";", "}", "this", ".", "initStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "flowInfo", ")", ";", "this", ".", "targetLabel", "=", "targetContext", ".", "breakLabel", "(", ")", ";", "FlowContext", "traversedContext", "=", "flowContext", ";", "int", "subCount", "=", "0", ";", "this", ".", "subroutines", "=", "new", "SubRoutineStatement", "[", "5", "]", ";", "do", "{", "SubRoutineStatement", "sub", ";", "if", "(", "(", "sub", "=", "traversedContext", ".", "subroutine", "(", ")", ")", "!=", "null", ")", "{", "if", "(", "subCount", "==", "this", ".", "subroutines", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "subroutines", ",", "0", ",", "(", "this", ".", "subroutines", "=", "new", "SubRoutineStatement", "[", "subCount", "*", "2", "]", ")", ",", "0", ",", "subCount", ")", ";", "}", "this", ".", "subroutines", "[", "subCount", "++", "]", "=", "sub", ";", "if", "(", "sub", ".", "isSubRoutineEscaping", "(", ")", ")", "{", "break", ";", "}", "}", "traversedContext", ".", "recordReturnFrom", "(", "flowInfo", ".", "unconditionalInits", "(", ")", ")", ";", "traversedContext", ".", "recordBreakTo", "(", "targetContext", ")", ";", "if", "(", "traversedContext", "instanceof", "InsideSubRoutineFlowContext", ")", "{", "ASTNode", "node", "=", "traversedContext", ".", "associatedNode", ";", "if", "(", "node", "instanceof", "TryStatement", ")", "{", "TryStatement", "tryStatement", "=", "(", "TryStatement", ")", "node", ";", "flowInfo", ".", "addInitializationsFrom", "(", "tryStatement", ".", "subRoutineInits", ")", ";", "}", "}", "else", "if", "(", "traversedContext", "==", "targetContext", ")", "{", "targetContext", ".", "recordBreakFrom", "(", "flowInfo", ")", ";", "break", ";", "}", "}", "while", "(", "(", "traversedContext", "=", "traversedContext", ".", "parent", ")", "!=", "null", ")", ";", "if", "(", "subCount", "!=", "this", ".", "subroutines", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "subroutines", ",", "0", ",", "(", "this", ".", "subroutines", "=", "new", "SubRoutineStatement", "[", "subCount", "]", ")", ",", "0", ",", "subCount", ")", ";", "}", "return", "FlowInfo", ".", "DEAD_END", ";", "}", "public", "StringBuffer", "printStatement", "(", "int", "tab", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "tab", ",", "output", ")", ".", "append", "(", "\"break", "\"", ")", ";", "if", "(", "this", ".", "label", "!=", "null", ")", "output", ".", "append", "(", "this", ".", "label", ")", ";", "return", "output", ".", "append", "(", "';'", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockscope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "blockscope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "blockscope", ")", ";", "}", "}", "</s>" ]
5,656
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "ParameterizedSingleTypeReference", "extends", "ArrayTypeReference", "{", "public", "TypeReference", "[", "]", "typeArguments", ";", "public", "ParameterizedSingleTypeReference", "(", "char", "[", "]", "name", ",", "TypeReference", "[", "]", "typeArguments", ",", "int", "dim", ",", "long", "pos", ")", "{", "super", "(", "name", ",", "dim", ",", "pos", ")", ";", "this", ".", "originalSourceEnd", "=", "this", ".", "sourceEnd", ";", "this", ".", "typeArguments", "=", "typeArguments", ";", "}", "public", "void", "checkBounds", "(", "Scope", "scope", ")", "{", "if", "(", "this", ".", "resolvedType", "==", "null", ")", "return", ";", "if", "(", "this", ".", "resolvedType", ".", "leafComponentType", "(", ")", "instanceof", "ParameterizedTypeBinding", ")", "{", "ParameterizedTypeBinding", "parameterizedType", "=", "(", "ParameterizedTypeBinding", ")", "this", ".", "resolvedType", ".", "leafComponentType", "(", ")", ";", "ReferenceBinding", "currentType", "=", "parameterizedType", ".", "genericType", "(", ")", ";", "TypeVariableBinding", "[", "]", "typeVariables", "=", "currentType", ".", "typeVariables", "(", ")", ";", "TypeBinding", "[", "]", "argTypes", "=", "parameterizedType", ".", "arguments", ";", "if", "(", "argTypes", "!=", "null", "&&", "typeVariables", "!=", "null", ")", "{", "parameterizedType", ".", "boundCheck", "(", "scope", ",", "this", ".", "typeArguments", ")", ";", "}", "}", "}", "public", "TypeReference", "copyDims", "(", "int", "dim", ")", "{", "return", "new", "ParameterizedSingleTypeReference", "(", "this", ".", "token", ",", "this", ".", "typeArguments", ",", "dim", ",", "(", "(", "(", "long", ")", "this", ".", "sourceStart", ")", "<<", "32", ")", "+", "this", ".", "sourceEnd", ")", ";", "}", "public", "char", "[", "]", "[", "]", "getParameterizedTypeName", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "5", ")", ";", "buffer", ".", "append", "(", "this", ".", "token", ")", ".", "append", "(", "'<'", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "typeArguments", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "buffer", ".", "append", "(", "','", ")", ";", "buffer", ".", "append", "(", "CharOperation", ".", "concatWith", "(", "this", ".", "typeArguments", "[", "i", "]", ".", "getParameterizedTypeName", "(", ")", ",", "'.'", ")", ")", ";", "}", "buffer", ".", "append", "(", "'>'", ")", ";", "int", "nameLength", "=", "buffer", ".", "length", "(", ")", ";", "char", "[", "]", "name", "=", "new", "char", "[", "nameLength", "]", ";", "buffer", ".", "getChars", "(", "0", ",", "nameLength", ",", "name", ",", "0", ")", ";", "int", "dim", "=", "this", ".", "dimensions", ";", "if", "(", "dim", ">", "0", ")", "{", "char", "[", "]", "dimChars", "=", "new", "char", "[", "dim", "*", "2", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "dim", ";", "i", "++", ")", "{", "int", "index", "=", "i", "*", "2", ";", "dimChars", "[", "index", "]", "=", "'['", ";", "dimChars", "[", "index", "+", "1", "]", "=", "']'", ";", "}", "name", "=", "CharOperation", ".", "concat", "(", "name", ",", "dimChars", ")", ";", "}", "return", "new", "char", "[", "]", "[", "]", "{", "name", "}", ";", "}", "protected", "TypeBinding", "getTypeBinding", "(", "Scope", "scope", ")", "{", "return", "null", ";", "}", "private", "TypeBinding", "internalResolveType", "(", "Scope", "scope", ",", "ReferenceBinding", "enclosingType", ",", "boolean", "checkBounds", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DidResolve", ")", "!=", "0", ")", "{", "if", "(", "this", ".", "resolvedType", "!=", "null", ")", "{", "if", "(", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "return", "this", ".", "resolvedType", ";", "}", "else", "{", "switch", "(", "this", ".", "resolvedType", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "case", "ProblemReasons", ".", "NotVisible", ":", "case", "ProblemReasons", ".", "InheritedNameHidesEnclosingName", ":", "TypeBinding", "type", "=", "this", ".", "resolvedType", ".", "closestMatch", "(", ")", ";", "return", "type", ";", "default", ":", "return", "null", ";", "}", "}", "}", "}", "boolean", "hasGenericError", "=", "false", ";", "ReferenceBinding", "currentType", ";", "this", ".", "bits", "|=", "ASTNode", ".", "DidResolve", ";", "if", "(", "enclosingType", "==", "null", ")", "{", "this", ".", "resolvedType", "=", "scope", ".", "getType", "(", "this", ".", "token", ")", ";", "if", "(", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "currentType", "=", "(", "ReferenceBinding", ")", "this", ".", "resolvedType", ";", "}", "else", "{", "hasGenericError", "=", "true", ";", "reportInvalidType", "(", "scope", ")", ";", "switch", "(", "this", ".", "resolvedType", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "case", "ProblemReasons", ".", "NotVisible", ":", "case", "ProblemReasons", ".", "InheritedNameHidesEnclosingName", ":", "TypeBinding", "type", "=", "this", ".", "resolvedType", ".", "closestMatch", "(", ")", ";", "if", "(", "type", "instanceof", "ReferenceBinding", ")", "{", "currentType", "=", "(", "ReferenceBinding", ")", "type", ";", "break", ";", "}", "default", ":", "boolean", "isClassScope", "=", "scope", ".", "kind", "==", "Scope", ".", "CLASS_SCOPE", ";", "int", "argLength", "=", "this", ".", "typeArguments", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "argLength", ";", "i", "++", ")", "{", "TypeReference", "typeArgument", "=", "this", ".", "typeArguments", "[", "i", "]", ";", "if", "(", "isClassScope", ")", "{", "typeArgument", ".", "resolveType", "(", "(", "ClassScope", ")", "scope", ")", ";", "}", "else", "{", "typeArgument", ".", "resolveType", "(", "(", "BlockScope", ")", "scope", ",", "checkBounds", ")", ";", "}", "}", "return", "null", ";", "}", "}", "enclosingType", "=", "currentType", ".", "enclosingType", "(", ")", ";", "if", "(", "enclosingType", "!=", "null", ")", "{", "enclosingType", "=", "currentType", ".", "isStatic", "(", ")", "?", "(", "ReferenceBinding", ")", "scope", ".", "environment", "(", ")", ".", "convertToRawType", "(", "enclosingType", ",", "false", ")", ":", "scope", ".", "environment", "(", ")", ".", "convertToParameterizedType", "(", "enclosingType", ")", ";", "currentType", "=", "scope", ".", "environment", "(", ")", ".", "createParameterizedType", "(", "(", "ReferenceBinding", ")", "currentType", ".", "erasure", "(", ")", ",", "null", ",", "enclosingType", ")", ";", "}", "}", "else", "{", "this", ".", "resolvedType", "=", "currentType", "=", "scope", ".", "getMemberType", "(", "this", ".", "token", ",", "enclosingType", ")", ";", "if", "(", "!", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "hasGenericError", "=", "true", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidEnclosingType", "(", "this", ",", "currentType", ",", "enclosingType", ")", ";", "return", "null", ";", "}", "if", "(", "isTypeUseDeprecated", "(", "currentType", ",", "scope", ")", ")", "scope", ".", "problemReporter", "(", ")", ".", "deprecatedType", "(", "currentType", ",", "this", ")", ";", "ReferenceBinding", "currentEnclosing", "=", "currentType", ".", "enclosingType", "(", ")", ";", "if", "(", "currentEnclosing", "!=", "null", "&&", "currentEnclosing", ".", "erasure", "(", ")", "!=", "enclosingType", ".", "erasure", "(", ")", ")", "{", "enclosingType", "=", "currentEnclosing", ";", "}", "}", "boolean", "isClassScope", "=", "scope", ".", "kind", "==", "Scope", ".", "CLASS_SCOPE", ";", "TypeReference", "keep", "=", "null", ";", "if", "(", "isClassScope", ")", "{", "keep", "=", "(", "(", "ClassScope", ")", "scope", ")", ".", "superTypeReference", ";", "(", "(", "ClassScope", ")", "scope", ")", ".", "superTypeReference", "=", "null", ";", "}", "int", "argLength", "=", "this", ".", "typeArguments", ".", "length", ";", "TypeBinding", "[", "]", "argTypes", "=", "new", "TypeBinding", "[", "argLength", "]", ";", "boolean", "argHasError", "=", "false", ";", "ReferenceBinding", "currentOriginal", "=", "(", "ReferenceBinding", ")", "currentType", ".", "original", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "argLength", ";", "i", "++", ")", "{", "TypeReference", "typeArgument", "=", "this", ".", "typeArguments", "[", "i", "]", ";", "TypeBinding", "argType", "=", "isClassScope", "?", "typeArgument", ".", "resolveTypeArgument", "(", "(", "ClassScope", ")", "scope", ",", "currentOriginal", ",", "i", ")", ":", "typeArgument", ".", "resolveTypeArgument", "(", "(", "BlockScope", ")", "scope", ",", "currentOriginal", ",", "i", ")", ";", "if", "(", "argType", "==", "null", ")", "{", "argHasError", "=", "true", ";", "}", "else", "{", "argTypes", "[", "i", "]", "=", "argType", ";", "}", "}", "if", "(", "argHasError", ")", "{", "return", "null", ";", "}", "if", "(", "isClassScope", ")", "{", "(", "(", "ClassScope", ")", "scope", ")", ".", "superTypeReference", "=", "keep", ";", "if", "(", "(", "(", "ClassScope", ")", "scope", ")", ".", "detectHierarchyCycle", "(", "currentOriginal", ",", "this", ")", ")", "return", "null", ";", "}", "TypeVariableBinding", "[", "]", "typeVariables", "=", "currentOriginal", ".", "typeVariables", "(", ")", ";", "if", "(", "typeVariables", "==", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "boolean", "isCompliant15", "=", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "if", "(", "(", "currentOriginal", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "==", "0", ")", "{", "if", "(", "isCompliant15", ")", "{", "this", ".", "resolvedType", "=", "currentType", ";", "scope", ".", "problemReporter", "(", ")", ".", "nonGenericTypeCannotBeParameterized", "(", "0", ",", "this", ",", "currentType", ",", "argTypes", ")", ";", "return", "null", ";", "}", "}", "if", "(", "!", "isCompliant15", ")", "{", "TypeBinding", "type", "=", "currentType", ";", "if", "(", "this", ".", "dimensions", ">", "0", ")", "{", "if", "(", "this", ".", "dimensions", ">", "255", ")", "scope", ".", "problemReporter", "(", ")", ".", "tooManyDimensions", "(", "this", ")", ";", "type", "=", "scope", ".", "createArrayType", "(", "type", ",", "this", ".", "dimensions", ")", ";", "}", "if", "(", "hasGenericError", ")", "return", "type", ";", "return", "this", ".", "resolvedType", "=", "type", ";", "}", "}", "else", "if", "(", "argLength", "!=", "typeVariables", ".", "length", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "incorrectArityForParameterizedType", "(", "this", ",", "currentType", ",", "argTypes", ")", ";", "return", "null", ";", "}", "else", "if", "(", "!", "currentType", ".", "isStatic", "(", ")", ")", "{", "ReferenceBinding", "actualEnclosing", "=", "currentType", ".", "enclosingType", "(", ")", ";", "if", "(", "actualEnclosing", "!=", "null", "&&", "actualEnclosing", ".", "isRawType", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "rawMemberTypeCannotBeParameterized", "(", "this", ",", "scope", ".", "environment", "(", ")", ".", "createRawType", "(", "currentOriginal", ",", "actualEnclosing", ")", ",", "argTypes", ")", ";", "return", "null", ";", "}", "}", "ParameterizedTypeBinding", "parameterizedType", "=", "scope", ".", "environment", "(", ")", ".", "createParameterizedType", "(", "currentOriginal", ",", "argTypes", ",", "enclosingType", ")", ";", "if", "(", "checkBounds", ")", "parameterizedType", ".", "boundCheck", "(", "scope", ",", "this", ".", "typeArguments", ")", ";", "else", "scope", ".", "deferBoundCheck", "(", "this", ")", ";", "if", "(", "isTypeUseDeprecated", "(", "parameterizedType", ",", "scope", ")", ")", "reportDeprecatedType", "(", "parameterizedType", ",", "scope", ")", ";", "TypeBinding", "type", "=", "parameterizedType", ";", "if", "(", "this", ".", "dimensions", ">", "0", ")", "{", "if", "(", "this", ".", "dimensions", ">", "255", ")", "scope", ".", "problemReporter", "(", ")", ".", "tooManyDimensions", "(", "this", ")", ";", "type", "=", "scope", ".", "createArrayType", "(", "type", ",", "this", ".", "dimensions", ")", ";", "}", "if", "(", "hasGenericError", ")", "{", "return", "type", ";", "}", "return", "this", ".", "resolvedType", "=", "type", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "output", ".", "append", "(", "this", ".", "token", ")", ";", "output", ".", "append", "(", "\"<\"", ")", ";", "int", "max", "=", "this", ".", "typeArguments", ".", "length", "-", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "max", ";", "i", "++", ")", "{", "this", ".", "typeArguments", "[", "i", "]", ".", "print", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "\",", "\"", ")", ";", "}", "this", ".", "typeArguments", "[", "max", "]", ".", "print", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "\">\"", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "IsVarArgs", ")", "!=", "0", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "dimensions", "-", "1", ";", "i", "++", ")", "{", "output", ".", "append", "(", "\"[]\"", ")", ";", "}", "output", ".", "append", "(", "\"...\"", ")", ";", "}", "else", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "dimensions", ";", "i", "++", ")", "{", "output", ".", "append", "(", "\"[]\"", ")", ";", "}", "}", "return", "output", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ",", "boolean", "checkBounds", ")", "{", "return", "internalResolveType", "(", "scope", ",", "null", ",", "checkBounds", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "ClassScope", "scope", ")", "{", "return", "internalResolveType", "(", "scope", ",", "null", ",", "false", ")", ";", "}", "public", "TypeBinding", "resolveTypeEnclosing", "(", "BlockScope", "scope", ",", "ReferenceBinding", "enclosingType", ")", "{", "return", "internalResolveType", "(", "scope", ",", "enclosingType", ",", "true", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "typeArguments", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "this", ".", "typeArguments", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "typeArguments", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "this", ".", "typeArguments", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,657
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "public", "class", "ExtendedStringLiteral", "extends", "StringLiteral", "{", "public", "ExtendedStringLiteral", "(", "StringLiteral", "str", ",", "CharLiteral", "character", ")", "{", "super", "(", "str", ".", "source", ",", "str", ".", "sourceStart", ",", "str", ".", "sourceEnd", ",", "str", ".", "lineNumber", ")", ";", "extendWith", "(", "character", ")", ";", "}", "public", "ExtendedStringLiteral", "(", "StringLiteral", "str1", ",", "StringLiteral", "str2", ")", "{", "super", "(", "str1", ".", "source", ",", "str1", ".", "sourceStart", ",", "str1", ".", "sourceEnd", ",", "str1", ".", "lineNumber", ")", ";", "extendWith", "(", "str2", ")", ";", "}", "public", "ExtendedStringLiteral", "extendWith", "(", "CharLiteral", "lit", ")", "{", "int", "length", "=", "this", ".", "source", ".", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "source", ",", "0", ",", "(", "this", ".", "source", "=", "new", "char", "[", "length", "+", "1", "]", ")", ",", "0", ",", "length", ")", ";", "this", ".", "source", "[", "length", "]", "=", "lit", ".", "value", ";", "this", ".", "sourceEnd", "=", "lit", ".", "sourceEnd", ";", "return", "this", ";", "}", "public", "ExtendedStringLiteral", "extendWith", "(", "StringLiteral", "lit", ")", "{", "int", "length", "=", "this", ".", "source", ".", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "source", ",", "0", ",", "this", ".", "source", "=", "new", "char", "[", "length", "+", "lit", ".", "source", ".", "length", "]", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "lit", ".", "source", ",", "0", ",", "this", ".", "source", ",", "length", ",", "lit", ".", "source", ".", "length", ")", ";", "this", ".", "sourceEnd", "=", "lit", ".", "sourceEnd", ";", "return", "this", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "output", ".", "append", "(", "\"\"", ")", ".", "append", "(", "this", ".", "source", ")", ".", "append", "(", "'}'", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,658
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "abstract", "class", "BranchStatement", "extends", "Statement", "{", "public", "char", "[", "]", "label", ";", "public", "BranchLabel", "targetLabel", ";", "public", "SubRoutineStatement", "[", "]", "subroutines", ";", "public", "int", "initStateIndex", "=", "-", "1", ";", "public", "BranchStatement", "(", "char", "[", "]", "label", ",", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "label", "=", "label", ";", "this", ".", "sourceStart", "=", "sourceStart", ";", "this", ".", "sourceEnd", "=", "sourceEnd", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsReachable", ")", "==", "0", ")", "{", "return", ";", "}", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "this", ".", "subroutines", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "subroutines", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "SubRoutineStatement", "sub", "=", "this", ".", "subroutines", "[", "i", "]", ";", "boolean", "didEscape", "=", "sub", ".", "generateSubRoutineInvocation", "(", "currentScope", ",", "codeStream", ",", "this", ".", "targetLabel", ",", "this", ".", "initStateIndex", ",", "null", ")", ";", "if", "(", "didEscape", ")", "{", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "SubRoutineStatement", ".", "reenterAllExceptionHandlers", "(", "this", ".", "subroutines", ",", "i", ",", "codeStream", ")", ";", "if", "(", "this", ".", "initStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "initStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "initStateIndex", ")", ";", "}", "return", ";", "}", "}", "}", "codeStream", ".", "goto_", "(", "this", ".", "targetLabel", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "SubRoutineStatement", ".", "reenterAllExceptionHandlers", "(", "this", ".", "subroutines", ",", "-", "1", ",", "codeStream", ")", ";", "if", "(", "this", ".", "initStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "initStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "initStateIndex", ")", ";", "}", "}", "public", "void", "resolve", "(", "BlockScope", "scope", ")", "{", "}", "}", "</s>" ]
5,659
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "FloatUtil", ";", "public", "class", "DoubleLiteral", "extends", "NumberLiteral", "{", "double", "value", ";", "public", "DoubleLiteral", "(", "char", "[", "]", "token", ",", "int", "s", ",", "int", "e", ")", "{", "super", "(", "token", ",", "s", ",", "e", ")", ";", "}", "public", "void", "computeConstant", "(", ")", "{", "Double", "computedValue", ";", "try", "{", "computedValue", "=", "Double", ".", "valueOf", "(", "String", ".", "valueOf", "(", "this", ".", "source", ")", ")", ";", "}", "catch", "(", "NumberFormatException", "e", ")", "{", "try", "{", "double", "v", "=", "FloatUtil", ".", "valueOfHexDoubleLiteral", "(", "this", ".", "source", ")", ";", "if", "(", "v", "==", "Double", ".", "POSITIVE_INFINITY", ")", "{", "return", ";", "}", "if", "(", "Double", ".", "isNaN", "(", "v", ")", ")", "{", "return", ";", "}", "this", ".", "value", "=", "v", ";", "this", ".", "constant", "=", "DoubleConstant", ".", "fromValue", "(", "v", ")", ";", "}", "catch", "(", "NumberFormatException", "e1", ")", "{", "}", "return", ";", "}", "final", "double", "doubleValue", "=", "computedValue", ".", "doubleValue", "(", ")", ";", "if", "(", "doubleValue", ">", "Double", ".", "MAX_VALUE", ")", "{", "return", ";", "}", "if", "(", "doubleValue", "<", "Double", ".", "MIN_VALUE", ")", "{", "boolean", "isHexaDecimal", "=", "false", ";", "label", ":", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "source", ".", "length", ";", "i", "++", ")", "{", "switch", "(", "this", ".", "source", "[", "i", "]", ")", "{", "case", "'0'", ":", "case", "'.'", ":", "break", ";", "case", "'x'", ":", "case", "'X'", ":", "isHexaDecimal", "=", "true", ";", "break", ";", "case", "'e'", ":", "case", "'E'", ":", "case", "'f'", ":", "case", "'F'", ":", "case", "'d'", ":", "case", "'D'", ":", "if", "(", "isHexaDecimal", ")", "{", "return", ";", "}", "break", "label", ";", "case", "'p'", ":", "case", "'P'", ":", "break", "label", ";", "default", ":", "return", ";", "}", "}", "}", "this", ".", "value", "=", "doubleValue", ";", "this", ".", "constant", "=", "DoubleConstant", ".", "fromValue", "(", "this", ".", "value", ")", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "TypeBinding", "literalType", "(", "BlockScope", "scope", ")", "{", "return", "TypeBinding", ".", "DOUBLE", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,660
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "public", "class", "LongLiteralMinValue", "extends", "LongLiteral", "{", "final", "static", "char", "[", "]", "CharValue", "=", "new", "char", "[", "]", "{", "'-'", ",", "'9'", ",", "'2'", ",", "'2'", ",", "'3'", ",", "'3'", ",", "'7'", ",", "'2'", ",", "'0'", ",", "'3'", ",", "'6'", ",", "'8'", ",", "'5'", ",", "'4'", ",", "'7'", ",", "'7'", ",", "'5'", ",", "'8'", ",", "'0'", ",", "'8'", ",", "'L'", "}", ";", "public", "LongLiteralMinValue", "(", ")", "{", "super", "(", "CharValue", ",", "0", ",", "0", ")", ";", "this", ".", "constant", "=", "LongConstant", ".", "fromValue", "(", "Long", ".", "MIN_VALUE", ")", ";", "}", "public", "void", "computeConstant", "(", ")", "{", "}", "}", "</s>" ]
5,661
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ClassFile", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "CompilationResult", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ClassScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "Parser", ";", "public", "class", "AnnotationMethodDeclaration", "extends", "MethodDeclaration", "{", "public", "Expression", "defaultValue", ";", "public", "int", "extendedDimensions", ";", "public", "AnnotationMethodDeclaration", "(", "CompilationResult", "compilationResult", ")", "{", "super", "(", "compilationResult", ")", ";", "}", "public", "void", "generateCode", "(", "ClassFile", "classFile", ")", "{", "classFile", ".", "generateMethodInfoHeader", "(", "this", ".", "binding", ")", ";", "int", "methodAttributeOffset", "=", "classFile", ".", "contentsOffset", ";", "int", "attributeNumber", "=", "classFile", ".", "generateMethodInfoAttribute", "(", "this", ".", "binding", ",", "this", ")", ";", "classFile", ".", "completeMethodInfo", "(", "methodAttributeOffset", ",", "attributeNumber", ")", ";", "}", "public", "boolean", "isAnnotationMethod", "(", ")", "{", "return", "true", ";", "}", "public", "boolean", "isMethod", "(", ")", "{", "return", "false", ";", "}", "public", "void", "parseStatements", "(", "Parser", "parser", ",", "CompilationUnitDeclaration", "unit", ")", "{", "}", "public", "StringBuffer", "print", "(", "int", "tab", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "tab", ",", "output", ")", ";", "printModifiers", "(", "this", ".", "modifiers", ",", "output", ")", ";", "if", "(", "this", ".", "annotations", "!=", "null", ")", "printAnnotations", "(", "this", ".", "annotations", ",", "output", ")", ";", "TypeParameter", "[", "]", "typeParams", "=", "typeParameters", "(", ")", ";", "if", "(", "typeParams", "!=", "null", ")", "{", "output", ".", "append", "(", "'<'", ")", ";", "int", "max", "=", "typeParams", ".", "length", "-", "1", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "max", ";", "j", "++", ")", "{", "typeParams", "[", "j", "]", ".", "print", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "\",", "\"", ")", ";", "}", "typeParams", "[", "max", "]", ".", "print", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "'>'", ")", ";", "}", "printReturnType", "(", "0", ",", "output", ")", ".", "append", "(", "this", ".", "selector", ")", ".", "append", "(", "'('", ")", ";", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "arguments", ".", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "output", ".", "append", "(", "\",", "\"", ")", ";", "this", ".", "arguments", "[", "i", "]", ".", "print", "(", "0", ",", "output", ")", ";", "}", "}", "output", ".", "append", "(", "')'", ")", ";", "if", "(", "this", ".", "thrownExceptions", "!=", "null", ")", "{", "output", ".", "append", "(", "\"", "throws", "\"", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "thrownExceptions", ".", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "output", ".", "append", "(", "\",", "\"", ")", ";", "this", ".", "thrownExceptions", "[", "i", "]", ".", "print", "(", "0", ",", "output", ")", ";", "}", "}", "if", "(", "this", ".", "defaultValue", "!=", "null", ")", "{", "output", ".", "append", "(", "\"", "default", "\"", ")", ";", "this", ".", "defaultValue", ".", "print", "(", "0", ",", "output", ")", ";", "}", "printBody", "(", "tab", "+", "1", ",", "output", ")", ";", "return", "output", ";", "}", "public", "void", "resolveStatements", "(", ")", "{", "super", ".", "resolveStatements", "(", ")", ";", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "annotationMembersCannotHaveParameters", "(", "this", ")", ";", "}", "if", "(", "this", ".", "typeParameters", "!=", "null", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "annotationMembersCannotHaveTypeParameters", "(", "this", ")", ";", "}", "if", "(", "this", ".", "extendedDimensions", "!=", "0", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "illegalExtendedDimensions", "(", "this", ")", ";", "}", "if", "(", "this", ".", "binding", "==", "null", ")", "return", ";", "TypeBinding", "returnTypeBinding", "=", "this", ".", "binding", ".", "returnType", ";", "if", "(", "returnTypeBinding", "!=", "null", ")", "{", "checkAnnotationMethodType", ":", "{", "TypeBinding", "leafReturnType", "=", "returnTypeBinding", ".", "leafComponentType", "(", ")", ";", "if", "(", "returnTypeBinding", ".", "dimensions", "(", ")", "<=", "1", ")", "{", "switch", "(", "leafReturnType", ".", "erasure", "(", ")", ".", "id", ")", "{", "case", "T_byte", ":", "case", "T_short", ":", "case", "T_char", ":", "case", "T_int", ":", "case", "T_long", ":", "case", "T_float", ":", "case", "T_double", ":", "case", "T_boolean", ":", "case", "T_JavaLangString", ":", "case", "T_JavaLangClass", ":", "break", "checkAnnotationMethodType", ";", "}", "if", "(", "leafReturnType", ".", "isEnum", "(", ")", "||", "leafReturnType", ".", "isAnnotationType", "(", ")", ")", "break", "checkAnnotationMethodType", ";", "}", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "invalidAnnotationMemberType", "(", "this", ")", ";", "}", "if", "(", "this", ".", "defaultValue", "!=", "null", ")", "{", "MemberValuePair", "pair", "=", "new", "MemberValuePair", "(", "this", ".", "selector", ",", "this", ".", "sourceStart", ",", "this", ".", "sourceEnd", ",", "this", ".", "defaultValue", ")", ";", "pair", ".", "binding", "=", "this", ".", "binding", ";", "pair", ".", "resolveTypeExpecting", "(", "this", ".", "scope", ",", "returnTypeBinding", ")", ";", "this", ".", "binding", ".", "setDefaultValue", "(", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ElementValuePair", ".", "getValue", "(", "this", ".", "defaultValue", ")", ")", ";", "}", "else", "{", "this", ".", "binding", ".", "setDefaultValue", "(", "null", ")", ";", "}", "}", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "classScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "classScope", ")", ")", "{", "if", "(", "this", ".", "annotations", "!=", "null", ")", "{", "int", "annotationsLength", "=", "this", ".", "annotations", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotationsLength", ";", "i", "++", ")", "this", ".", "annotations", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "returnType", "!=", "null", ")", "{", "this", ".", "returnType", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "defaultValue", "!=", "null", ")", "{", "this", ".", "defaultValue", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "classScope", ")", ";", "}", "}", "</s>" ]
5,662
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "WhileStatement", "extends", "Statement", "{", "public", "Expression", "condition", ";", "public", "Statement", "action", ";", "private", "BranchLabel", "breakLabel", ",", "continueLabel", ";", "int", "preCondInitStateIndex", "=", "-", "1", ";", "int", "condIfTrueInitStateIndex", "=", "-", "1", ";", "int", "mergedInitStateIndex", "=", "-", "1", ";", "public", "WhileStatement", "(", "Expression", "condition", ",", "Statement", "action", ",", "int", "s", ",", "int", "e", ")", "{", "this", ".", "condition", "=", "condition", ";", "this", ".", "action", "=", "action", ";", "if", "(", "action", "instanceof", "EmptyStatement", ")", "action", ".", "bits", "|=", "IsUsefulEmptyStatement", ";", "this", ".", "sourceStart", "=", "s", ";", "this", ".", "sourceEnd", "=", "e", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "this", ".", "breakLabel", "=", "new", "BranchLabel", "(", ")", ";", "this", ".", "continueLabel", "=", "new", "BranchLabel", "(", ")", ";", "int", "initialComplaintLevel", "=", "(", "flowInfo", ".", "reachMode", "(", ")", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", "?", "Statement", ".", "COMPLAINED_FAKE_REACHABLE", ":", "Statement", ".", "NOT_COMPLAINED", ";", "Constant", "cst", "=", "this", ".", "condition", ".", "constant", ";", "boolean", "isConditionTrue", "=", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "true", ";", "boolean", "isConditionFalse", "=", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "false", ";", "cst", "=", "this", ".", "condition", ".", "optimizedBooleanConstant", "(", ")", ";", "boolean", "isConditionOptimizedTrue", "=", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "true", ";", "boolean", "isConditionOptimizedFalse", "=", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "false", ";", "this", ".", "preCondInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "flowInfo", ")", ";", "LoopingFlowContext", "condLoopContext", ";", "FlowInfo", "condInfo", "=", "flowInfo", ".", "nullInfoLessUnconditionalCopy", "(", ")", ";", "condInfo", "=", "this", ".", "condition", ".", "analyseCode", "(", "currentScope", ",", "(", "condLoopContext", "=", "new", "LoopingFlowContext", "(", "flowContext", ",", "flowInfo", ",", "this", ",", "null", ",", "null", ",", "currentScope", ")", ")", ",", "condInfo", ")", ";", "LoopingFlowContext", "loopingContext", ";", "FlowInfo", "actionInfo", ";", "FlowInfo", "exitBranch", ";", "if", "(", "this", ".", "action", "==", "null", "||", "(", "this", ".", "action", ".", "isEmptyBlock", "(", ")", "&&", "currentScope", ".", "compilerOptions", "(", ")", ".", "complianceLevel", "<=", "ClassFileConstants", ".", "JDK1_3", ")", ")", "{", "condLoopContext", ".", "complainOnDeferredFinalChecks", "(", "currentScope", ",", "condInfo", ")", ";", "condLoopContext", ".", "complainOnDeferredNullChecks", "(", "currentScope", ",", "condInfo", ".", "unconditionalInits", "(", ")", ")", ";", "if", "(", "isConditionTrue", ")", "{", "return", "FlowInfo", ".", "DEAD_END", ";", "}", "else", "{", "FlowInfo", "mergedInfo", "=", "flowInfo", ".", "copy", "(", ")", ".", "addInitializationsFrom", "(", "condInfo", ".", "initsWhenFalse", "(", ")", ")", ";", "if", "(", "isConditionOptimizedTrue", ")", "{", "mergedInfo", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE", ")", ";", "}", "this", ".", "mergedInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "mergedInfo", ")", ";", "return", "mergedInfo", ";", "}", "}", "else", "{", "loopingContext", "=", "new", "LoopingFlowContext", "(", "flowContext", ",", "flowInfo", ",", "this", ",", "this", ".", "breakLabel", ",", "this", ".", "continueLabel", ",", "currentScope", ")", ";", "if", "(", "isConditionFalse", ")", "{", "actionInfo", "=", "FlowInfo", ".", "DEAD_END", ";", "}", "else", "{", "actionInfo", "=", "condInfo", ".", "initsWhenTrue", "(", ")", ".", "copy", "(", ")", ";", "if", "(", "isConditionOptimizedFalse", ")", "{", "actionInfo", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE", ")", ";", "}", "}", "this", ".", "condIfTrueInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "condInfo", ".", "initsWhenTrue", "(", ")", ")", ";", "if", "(", "this", ".", "action", ".", "complainIfUnreachable", "(", "actionInfo", ",", "currentScope", ",", "initialComplaintLevel", ")", "<", "Statement", ".", "COMPLAINED_UNREACHABLE", ")", "{", "actionInfo", "=", "this", ".", "action", ".", "analyseCode", "(", "currentScope", ",", "loopingContext", ",", "actionInfo", ")", ";", "}", "exitBranch", "=", "flowInfo", ".", "copy", "(", ")", ";", "if", "(", "(", "actionInfo", ".", "tagBits", "&", "loopingContext", ".", "initsOnContinue", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", ")", "{", "this", ".", "continueLabel", "=", "null", ";", "exitBranch", ".", "addInitializationsFrom", "(", "condInfo", ".", "initsWhenFalse", "(", ")", ")", ";", "}", "else", "{", "condLoopContext", ".", "complainOnDeferredFinalChecks", "(", "currentScope", ",", "condInfo", ")", ";", "actionInfo", "=", "actionInfo", ".", "mergedWith", "(", "loopingContext", ".", "initsOnContinue", ".", "unconditionalInits", "(", ")", ")", ";", "condLoopContext", ".", "complainOnDeferredNullChecks", "(", "currentScope", ",", "actionInfo", ")", ";", "loopingContext", ".", "complainOnDeferredFinalChecks", "(", "currentScope", ",", "actionInfo", ")", ";", "loopingContext", ".", "complainOnDeferredNullChecks", "(", "currentScope", ",", "actionInfo", ")", ";", "exitBranch", ".", "addPotentialInitializationsFrom", "(", "actionInfo", ".", "unconditionalInits", "(", ")", ")", ".", "addInitializationsFrom", "(", "condInfo", ".", "initsWhenFalse", "(", ")", ")", ";", "}", "if", "(", "loopingContext", ".", "hasEscapingExceptions", "(", ")", ")", "{", "FlowInfo", "loopbackFlowInfo", "=", "flowInfo", ".", "copy", "(", ")", ";", "if", "(", "this", ".", "continueLabel", "!=", "null", ")", "{", "loopbackFlowInfo", ".", "mergedWith", "(", "actionInfo", ".", "unconditionalCopy", "(", ")", ")", ";", "}", "loopingContext", ".", "simulateThrowAfterLoopBack", "(", "loopbackFlowInfo", ")", ";", "}", "}", "FlowInfo", "mergedInfo", "=", "FlowInfo", ".", "mergedOptimizedBranches", "(", "(", "loopingContext", ".", "initsOnBreak", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", "?", "loopingContext", ".", "initsOnBreak", ":", "flowInfo", ".", "addInitializationsFrom", "(", "loopingContext", ".", "initsOnBreak", ")", ",", "isConditionOptimizedTrue", ",", "exitBranch", ",", "isConditionOptimizedFalse", ",", "!", "isConditionTrue", ")", ";", "this", ".", "mergedInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "mergedInfo", ")", ";", "return", "mergedInfo", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "IsReachable", ")", "==", "0", ")", "{", "return", ";", "}", "int", "pc", "=", "codeStream", ".", "position", ";", "Constant", "cst", "=", "this", ".", "condition", ".", "optimizedBooleanConstant", "(", ")", ";", "boolean", "isConditionOptimizedFalse", "=", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "false", ";", "if", "(", "isConditionOptimizedFalse", ")", "{", "this", ".", "condition", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "this", ".", "mergedInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "this", ".", "breakLabel", ".", "initialize", "(", "codeStream", ")", ";", "if", "(", "this", ".", "continueLabel", "==", "null", ")", "{", "if", "(", "this", ".", "condition", ".", "constant", "==", "Constant", ".", "NotAConstant", ")", "{", "this", ".", "condition", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "null", ",", "this", ".", "breakLabel", ",", "true", ")", ";", "}", "}", "else", "{", "this", ".", "continueLabel", ".", "initialize", "(", "codeStream", ")", ";", "if", "(", "!", "(", "(", "(", "this", ".", "condition", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "condition", ".", "constant", ".", "booleanValue", "(", ")", "==", "true", ")", ")", "||", "(", "this", ".", "action", "==", "null", ")", "||", "this", ".", "action", ".", "isEmptyBlock", "(", ")", ")", ")", "{", "int", "jumpPC", "=", "codeStream", ".", "position", ";", "codeStream", ".", "goto_", "(", "this", ".", "continueLabel", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "jumpPC", ",", "this", ".", "condition", ".", "sourceStart", ")", ";", "}", "}", "BranchLabel", "actionLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "if", "(", "this", ".", "action", "!=", "null", ")", "{", "actionLabel", ".", "tagBits", "|=", "BranchLabel", ".", "USED", ";", "if", "(", "this", ".", "condIfTrueInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "condIfTrueInitStateIndex", ")", ";", "}", "actionLabel", ".", "place", "(", ")", ";", "this", ".", "action", ".", "generateCode", "(", "currentScope", ",", "codeStream", ")", ";", "if", "(", "this", ".", "preCondInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "preCondInitStateIndex", ")", ";", "}", "}", "else", "{", "actionLabel", ".", "place", "(", ")", ";", "}", "if", "(", "this", ".", "continueLabel", "!=", "null", ")", "{", "this", ".", "continueLabel", ".", "place", "(", ")", ";", "this", ".", "condition", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "actionLabel", ",", "null", ",", "true", ")", ";", "}", "if", "(", "this", ".", "mergedInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "}", "this", ".", "breakLabel", ".", "place", "(", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "void", "resolve", "(", "BlockScope", "scope", ")", "{", "TypeBinding", "type", "=", "this", ".", "condition", ".", "resolveTypeExpecting", "(", "scope", ",", "TypeBinding", ".", "BOOLEAN", ")", ";", "this", ".", "condition", ".", "computeConversion", "(", "scope", ",", "type", ",", "type", ")", ";", "if", "(", "this", ".", "action", "!=", "null", ")", "this", ".", "action", ".", "resolve", "(", "scope", ")", ";", "}", "public", "StringBuffer", "printStatement", "(", "int", "tab", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "tab", ",", "output", ")", ".", "append", "(", "\"while", "(\"", ")", ";", "this", ".", "condition", ".", "printExpression", "(", "0", ",", "output", ")", ".", "append", "(", "')'", ")", ";", "if", "(", "this", ".", "action", "==", "null", ")", "output", ".", "append", "(", "';'", ")", ";", "else", "this", ".", "action", ".", "printStatement", "(", "tab", "+", "1", ",", "output", ")", ";", "return", "output", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "this", ".", "condition", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "if", "(", "this", ".", "action", "!=", "null", ")", "this", ".", "action", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
5,663
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "Wildcard", "extends", "SingleTypeReference", "{", "public", "static", "final", "int", "UNBOUND", "=", "0", ";", "public", "static", "final", "int", "EXTENDS", "=", "1", ";", "public", "static", "final", "int", "SUPER", "=", "2", ";", "public", "TypeReference", "bound", ";", "public", "int", "kind", ";", "public", "Wildcard", "(", "int", "kind", ")", "{", "super", "(", "WILDCARD_NAME", ",", "0", ")", ";", "this", ".", "kind", "=", "kind", ";", "}", "public", "char", "[", "]", "[", "]", "getParameterizedTypeName", "(", ")", "{", "switch", "(", "this", ".", "kind", ")", "{", "case", "Wildcard", ".", "UNBOUND", ":", "return", "new", "char", "[", "]", "[", "]", "{", "WILDCARD_NAME", "}", ";", "case", "Wildcard", ".", "EXTENDS", ":", "return", "new", "char", "[", "]", "[", "]", "{", "CharOperation", ".", "concat", "(", "WILDCARD_NAME", ",", "WILDCARD_EXTENDS", ",", "CharOperation", ".", "concatWith", "(", "this", ".", "bound", ".", "getParameterizedTypeName", "(", ")", ",", "'.'", ")", ")", "}", ";", "default", ":", "return", "new", "char", "[", "]", "[", "]", "{", "CharOperation", ".", "concat", "(", "WILDCARD_NAME", ",", "WILDCARD_SUPER", ",", "CharOperation", ".", "concatWith", "(", "this", ".", "bound", ".", "getParameterizedTypeName", "(", ")", ",", "'.'", ")", ")", "}", ";", "}", "}", "public", "char", "[", "]", "[", "]", "getTypeName", "(", ")", "{", "switch", "(", "this", ".", "kind", ")", "{", "case", "Wildcard", ".", "UNBOUND", ":", "return", "new", "char", "[", "]", "[", "]", "{", "WILDCARD_NAME", "}", ";", "case", "Wildcard", ".", "EXTENDS", ":", "return", "new", "char", "[", "]", "[", "]", "{", "CharOperation", ".", "concat", "(", "WILDCARD_NAME", ",", "WILDCARD_EXTENDS", ",", "CharOperation", ".", "concatWith", "(", "this", ".", "bound", ".", "getTypeName", "(", ")", ",", "'.'", ")", ")", "}", ";", "default", ":", "return", "new", "char", "[", "]", "[", "]", "{", "CharOperation", ".", "concat", "(", "WILDCARD_NAME", ",", "WILDCARD_SUPER", ",", "CharOperation", ".", "concatWith", "(", "this", ".", "bound", ".", "getTypeName", "(", ")", ",", "'.'", ")", ")", "}", ";", "}", "}", "private", "TypeBinding", "internalResolveType", "(", "Scope", "scope", ",", "ReferenceBinding", "genericType", ",", "int", "rank", ")", "{", "TypeBinding", "boundType", "=", "null", ";", "if", "(", "this", ".", "bound", "!=", "null", ")", "{", "boundType", "=", "scope", ".", "kind", "==", "Scope", ".", "CLASS_SCOPE", "?", "this", ".", "bound", ".", "resolveType", "(", "(", "ClassScope", ")", "scope", ")", ":", "this", ".", "bound", ".", "resolveType", "(", "(", "BlockScope", ")", "scope", ",", "true", ")", ";", "if", "(", "boundType", "==", "null", ")", "{", "return", "null", ";", "}", "}", "WildcardBinding", "wildcard", "=", "scope", ".", "environment", "(", ")", ".", "createWildcard", "(", "genericType", ",", "rank", ",", "boundType", ",", "null", ",", "this", ".", "kind", ")", ";", "return", "this", ".", "resolvedType", "=", "wildcard", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "switch", "(", "this", ".", "kind", ")", "{", "case", "Wildcard", ".", "UNBOUND", ":", "output", ".", "append", "(", "WILDCARD_NAME", ")", ";", "break", ";", "case", "Wildcard", ".", "EXTENDS", ":", "output", ".", "append", "(", "WILDCARD_NAME", ")", ".", "append", "(", "WILDCARD_EXTENDS", ")", ";", "this", ".", "bound", ".", "printExpression", "(", "0", ",", "output", ")", ";", "break", ";", "default", ":", "output", ".", "append", "(", "WILDCARD_NAME", ")", ".", "append", "(", "WILDCARD_SUPER", ")", ";", "this", ".", "bound", ".", "printExpression", "(", "0", ",", "output", ")", ";", "break", ";", "}", "return", "output", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ",", "boolean", "checkBounds", ")", "{", "if", "(", "this", ".", "bound", "!=", "null", ")", "{", "this", ".", "bound", ".", "resolveType", "(", "scope", ",", "checkBounds", ")", ";", "}", "return", "null", ";", "}", "public", "TypeBinding", "resolveType", "(", "ClassScope", "scope", ")", "{", "if", "(", "this", ".", "bound", "!=", "null", ")", "{", "this", ".", "bound", ".", "resolveType", "(", "scope", ")", ";", "}", "return", "null", ";", "}", "public", "TypeBinding", "resolveTypeArgument", "(", "BlockScope", "blockScope", ",", "ReferenceBinding", "genericType", ",", "int", "rank", ")", "{", "return", "internalResolveType", "(", "blockScope", ",", "genericType", ",", "rank", ")", ";", "}", "public", "TypeBinding", "resolveTypeArgument", "(", "ClassScope", "classScope", ",", "ReferenceBinding", "genericType", ",", "int", "rank", ")", "{", "return", "internalResolveType", "(", "classScope", ",", "genericType", ",", "rank", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "bound", "!=", "null", ")", "{", "this", ".", "bound", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "bound", "!=", "null", ")", "{", "this", ".", "bound", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,664
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "QualifiedSuperReference", "extends", "QualifiedThisReference", "{", "public", "QualifiedSuperReference", "(", "TypeReference", "name", ",", "int", "pos", ",", "int", "sourceEnd", ")", "{", "super", "(", "name", ",", "pos", ",", "sourceEnd", ")", ";", "}", "public", "boolean", "isSuper", "(", ")", "{", "return", "true", ";", "}", "public", "boolean", "isThis", "(", ")", "{", "return", "false", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "this", ".", "qualification", ".", "print", "(", "0", ",", "output", ")", ".", "append", "(", "\".super\"", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ParenthesizedMASK", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "invalidParenthesizedExpression", "(", "this", ")", ";", "return", "null", ";", "}", "super", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "this", ".", "currentCompatibleType", "==", "null", ")", "return", "null", ";", "if", "(", "this", ".", "currentCompatibleType", ".", "id", "==", "T_JavaLangObject", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotUseSuperInJavaLangObject", "(", "this", ")", ";", "return", "null", ";", "}", "return", "this", ".", "resolvedType", "=", "this", ".", "currentCompatibleType", ".", "superclass", "(", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "this", ".", "qualification", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "this", ".", "qualification", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
5,665
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ArrayBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "public", "class", "ArrayReference", "extends", "Reference", "{", "public", "Expression", "receiver", ";", "public", "Expression", "position", ";", "public", "ArrayReference", "(", "Expression", "rec", ",", "Expression", "pos", ")", "{", "this", ".", "receiver", "=", "rec", ";", "this", ".", "position", "=", "pos", ";", "this", ".", "sourceStart", "=", "rec", ".", "sourceStart", ";", "}", "public", "FlowInfo", "analyseAssignment", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ",", "Assignment", "assignment", ",", "boolean", "compoundAssignment", ")", "{", "if", "(", "assignment", ".", "expression", "==", "null", ")", "{", "return", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "return", "assignment", ".", "expression", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ")", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "this", ".", "receiver", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "flowInfo", "=", "this", ".", "receiver", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "return", "this", ".", "position", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "public", "void", "generateAssignment", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "Assignment", "assignment", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "receiver", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "if", "(", "this", ".", "receiver", "instanceof", "CastExpression", "&&", "(", "(", "CastExpression", ")", "this", ".", "receiver", ")", ".", "innermostCastedExpression", "(", ")", ".", "resolvedType", "==", "TypeBinding", ".", "NULL", ")", "{", "codeStream", ".", "checkcast", "(", "this", ".", "receiver", ".", "resolvedType", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "this", ".", "position", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "assignment", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "arrayAtPut", "(", "this", ".", "resolvedType", ".", "id", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "assignment", ".", "implicitConversion", ")", ";", "}", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "receiver", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "if", "(", "this", ".", "receiver", "instanceof", "CastExpression", "&&", "(", "(", "CastExpression", ")", "this", ".", "receiver", ")", ".", "innermostCastedExpression", "(", ")", ".", "resolvedType", "==", "TypeBinding", ".", "NULL", ")", "{", "codeStream", ".", "checkcast", "(", "this", ".", "receiver", ".", "resolvedType", ")", ";", "}", "this", ".", "position", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "arrayAt", "(", "this", ".", "resolvedType", ".", "id", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "boolean", "isUnboxing", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ";", "if", "(", "isUnboxing", ")", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "switch", "(", "isUnboxing", "?", "postConversionType", "(", "currentScope", ")", ".", "id", ":", "this", ".", "resolvedType", ".", "id", ")", "{", "case", "T_long", ":", "case", "T_double", ":", "codeStream", ".", "pop2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "pop", "(", ")", ";", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "void", "generateCompoundAssignment", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "Expression", "expression", ",", "int", "operator", ",", "int", "assignmentImplicitConversion", ",", "boolean", "valueRequired", ")", "{", "this", ".", "receiver", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "if", "(", "this", ".", "receiver", "instanceof", "CastExpression", "&&", "(", "(", "CastExpression", ")", "this", ".", "receiver", ")", ".", "innermostCastedExpression", "(", ")", ".", "resolvedType", "==", "TypeBinding", ".", "NULL", ")", "{", "codeStream", ".", "checkcast", "(", "this", ".", "receiver", ".", "resolvedType", ")", ";", "}", "this", ".", "position", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "dup2", "(", ")", ";", "codeStream", ".", "arrayAt", "(", "this", ".", "resolvedType", ".", "id", ")", ";", "int", "operationTypeID", ";", "switch", "(", "operationTypeID", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ")", "{", "case", "T_JavaLangString", ":", "case", "T_JavaLangObject", ":", "case", "T_undefined", ":", "codeStream", ".", "generateStringConcatenationAppend", "(", "currentScope", ",", "null", ",", "expression", ")", ";", "break", ";", "default", ":", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "if", "(", "expression", "==", "IntLiteral", ".", "One", ")", "{", "codeStream", ".", "generateConstant", "(", "expression", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "}", "codeStream", ".", "sendOperator", "(", "operator", ",", "operationTypeID", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "assignmentImplicitConversion", ")", ";", "}", "codeStream", ".", "arrayAtPut", "(", "this", ".", "resolvedType", ".", "id", ",", "valueRequired", ")", ";", "}", "public", "void", "generatePostIncrement", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "CompoundAssignment", "postIncrement", ",", "boolean", "valueRequired", ")", "{", "this", ".", "receiver", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "if", "(", "this", ".", "receiver", "instanceof", "CastExpression", "&&", "(", "(", "CastExpression", ")", "this", ".", "receiver", ")", ".", "innermostCastedExpression", "(", ")", ".", "resolvedType", "==", "TypeBinding", ".", "NULL", ")", "{", "codeStream", ".", "checkcast", "(", "this", ".", "receiver", ".", "resolvedType", ")", ";", "}", "this", ".", "position", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "dup2", "(", ")", ";", "codeStream", ".", "arrayAt", "(", "this", ".", "resolvedType", ".", "id", ")", ";", "if", "(", "valueRequired", ")", "{", "switch", "(", "this", ".", "resolvedType", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "codeStream", ".", "dup2_x2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "dup_x2", "(", ")", ";", "break", ";", "}", "}", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "generateConstant", "(", "postIncrement", ".", "expression", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "sendOperator", "(", "postIncrement", ".", "operator", ",", "this", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "postIncrement", ".", "preAssignImplicitConversion", ")", ";", "codeStream", ".", "arrayAtPut", "(", "this", ".", "resolvedType", ".", "id", ",", "false", ")", ";", "}", "public", "int", "nullStatus", "(", "FlowInfo", "flowInfo", ")", "{", "return", "FlowInfo", ".", "UNKNOWN", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "this", ".", "receiver", ".", "printExpression", "(", "0", ",", "output", ")", ".", "append", "(", "'['", ")", ";", "return", "this", ".", "position", ".", "printExpression", "(", "0", ",", "output", ")", ".", "append", "(", "']'", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "this", ".", "receiver", "instanceof", "CastExpression", "&&", "(", "(", "CastExpression", ")", "this", ".", "receiver", ")", ".", "innermostCastedExpression", "(", ")", "instanceof", "NullLiteral", ")", "{", "this", ".", "receiver", ".", "bits", "|=", "ASTNode", ".", "DisableUnnecessaryCastCheck", ";", "}", "TypeBinding", "arrayType", "=", "this", ".", "receiver", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "arrayType", "!=", "null", ")", "{", "this", ".", "receiver", ".", "computeConversion", "(", "scope", ",", "arrayType", ",", "arrayType", ")", ";", "if", "(", "arrayType", ".", "isArrayType", "(", ")", ")", "{", "TypeBinding", "elementType", "=", "(", "(", "ArrayBinding", ")", "arrayType", ")", ".", "elementsType", "(", ")", ";", "this", ".", "resolvedType", "=", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsStrictlyAssigned", ")", "==", "0", ")", "?", "elementType", ".", "capture", "(", "scope", ",", "this", ".", "sourceEnd", ")", ":", "elementType", ";", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "referenceMustBeArrayTypeAt", "(", "arrayType", ",", "this", ")", ";", "}", "}", "TypeBinding", "positionType", "=", "this", ".", "position", ".", "resolveTypeExpecting", "(", "scope", ",", "TypeBinding", ".", "INT", ")", ";", "if", "(", "positionType", "!=", "null", ")", "{", "this", ".", "position", ".", "computeConversion", "(", "scope", ",", "TypeBinding", ".", "INT", ",", "positionType", ")", ";", "}", "return", "this", ".", "resolvedType", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "this", ".", "receiver", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "this", ".", "position", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,666
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "IProblem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "ProblemReporter", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "ProblemSeverities", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "class", "FieldDeclaration", "extends", "AbstractVariableDeclaration", "{", "public", "FieldBinding", "binding", ";", "public", "Javadoc", "javadoc", ";", "public", "int", "endPart1Position", ";", "public", "int", "endPart2Position", ";", "public", "FieldDeclaration", "(", ")", "{", "}", "public", "FieldDeclaration", "(", "char", "[", "]", "name", ",", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "name", "=", "name", ";", "this", ".", "sourceStart", "=", "sourceStart", ";", "this", ".", "sourceEnd", "=", "sourceEnd", ";", "}", "public", "FlowInfo", "analyseCode", "(", "MethodScope", "initializationScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "binding", "!=", "null", "&&", "!", "this", ".", "binding", ".", "isUsed", "(", ")", "&&", "this", ".", "binding", ".", "isOrEnclosedByPrivateType", "(", ")", ")", "{", "if", "(", "!", "initializationScope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ".", "hasSyntaxError", ")", "{", "initializationScope", ".", "problemReporter", "(", ")", ".", "unusedPrivateField", "(", "this", ")", ";", "}", "}", "if", "(", "this", ".", "binding", "!=", "null", "&&", "this", ".", "binding", ".", "isValidBinding", "(", ")", "&&", "this", ".", "binding", ".", "isStatic", "(", ")", "&&", "this", ".", "binding", ".", "constant", "(", ")", "==", "Constant", ".", "NotAConstant", "&&", "this", ".", "binding", ".", "declaringClass", ".", "isNestedType", "(", ")", "&&", "!", "this", ".", "binding", ".", "declaringClass", ".", "isStatic", "(", ")", ")", "{", "initializationScope", ".", "problemReporter", "(", ")", ".", "unexpectedStaticModifierForField", "(", "(", "SourceTypeBinding", ")", "this", ".", "binding", ".", "declaringClass", ",", "this", ")", ";", "}", "if", "(", "this", ".", "initialization", "!=", "null", ")", "{", "flowInfo", "=", "this", ".", "initialization", ".", "analyseCode", "(", "initializationScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "flowInfo", ".", "markAsDefinitelyAssigned", "(", "this", ".", "binding", ")", ";", "}", "return", "flowInfo", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "IsReachable", ")", "==", "0", ")", "{", "return", ";", "}", "int", "pc", "=", "codeStream", ".", "position", ";", "boolean", "isStatic", ";", "if", "(", "this", ".", "initialization", "!=", "null", "&&", "!", "(", "(", "isStatic", "=", "this", ".", "binding", ".", "isStatic", "(", ")", ")", "&&", "this", ".", "binding", ".", "constant", "(", ")", "!=", "Constant", ".", "NotAConstant", ")", ")", "{", "if", "(", "!", "isStatic", ")", "codeStream", ".", "aload_0", "(", ")", ";", "this", ".", "initialization", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "if", "(", "isStatic", ")", "{", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_putstatic", ",", "this", ".", "binding", ",", "null", ")", ";", "}", "else", "{", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_putfield", ",", "this", ".", "binding", ",", "null", ")", ";", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "int", "getKind", "(", ")", "{", "return", "this", ".", "type", "==", "null", "?", "ENUM_CONSTANT", ":", "FIELD", ";", "}", "public", "boolean", "isStatic", "(", ")", "{", "if", "(", "this", ".", "binding", "!=", "null", ")", "return", "this", ".", "binding", ".", "isStatic", "(", ")", ";", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccStatic", ")", "!=", "0", ";", "}", "public", "StringBuffer", "printStatement", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "if", "(", "this", ".", "javadoc", "!=", "null", ")", "{", "this", ".", "javadoc", ".", "print", "(", "indent", ",", "output", ")", ";", "}", "return", "super", ".", "printStatement", "(", "indent", ",", "output", ")", ";", "}", "public", "void", "resolve", "(", "MethodScope", "initializationScope", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "HasBeenResolved", ")", "!=", "0", ")", "return", ";", "if", "(", "this", ".", "binding", "==", "null", "||", "!", "this", ".", "binding", ".", "isValidBinding", "(", ")", ")", "return", ";", "this", ".", "bits", "|=", "ASTNode", ".", "HasBeenResolved", ";", "ClassScope", "classScope", "=", "initializationScope", ".", "enclosingClassScope", "(", ")", ";", "if", "(", "classScope", "!=", "null", ")", "{", "checkHiding", ":", "{", "SourceTypeBinding", "declaringType", "=", "classScope", ".", "enclosingSourceType", "(", ")", ";", "checkHidingSuperField", ":", "{", "if", "(", "declaringType", ".", "superclass", "==", "null", ")", "break", "checkHidingSuperField", ";", "FieldBinding", "existingVariable", "=", "classScope", ".", "findField", "(", "declaringType", ".", "superclass", ",", "this", ".", "name", ",", "this", ",", "false", ")", ";", "if", "(", "existingVariable", "==", "null", ")", "break", "checkHidingSuperField", ";", "if", "(", "!", "existingVariable", ".", "isValidBinding", "(", ")", ")", "break", "checkHidingSuperField", ";", "if", "(", "existingVariable", ".", "original", "(", ")", "==", "this", ".", "binding", ")", "break", "checkHidingSuperField", ";", "if", "(", "!", "existingVariable", ".", "canBeSeenBy", "(", "declaringType", ",", "this", ",", "initializationScope", ")", ")", "break", "checkHidingSuperField", ";", "initializationScope", ".", "problemReporter", "(", ")", ".", "fieldHiding", "(", "this", ",", "existingVariable", ")", ";", "break", "checkHiding", ";", "}", "Scope", "outerScope", "=", "classScope", ".", "parent", ";", "if", "(", "outerScope", ".", "kind", "==", "Scope", ".", "COMPILATION_UNIT_SCOPE", ")", "break", "checkHiding", ";", "Binding", "existingVariable", "=", "outerScope", ".", "getBinding", "(", "this", ".", "name", ",", "Binding", ".", "VARIABLE", ",", "this", ",", "false", ")", ";", "if", "(", "existingVariable", "==", "null", ")", "break", "checkHiding", ";", "if", "(", "!", "existingVariable", ".", "isValidBinding", "(", ")", ")", "break", "checkHiding", ";", "if", "(", "existingVariable", "==", "this", ".", "binding", ")", "break", "checkHiding", ";", "if", "(", "existingVariable", "instanceof", "FieldBinding", ")", "{", "FieldBinding", "existingField", "=", "(", "FieldBinding", ")", "existingVariable", ";", "if", "(", "existingField", ".", "original", "(", ")", "==", "this", ".", "binding", ")", "break", "checkHiding", ";", "if", "(", "!", "existingField", ".", "isStatic", "(", ")", "&&", "declaringType", ".", "isStatic", "(", ")", ")", "break", "checkHiding", ";", "}", "initializationScope", ".", "problemReporter", "(", ")", ".", "fieldHiding", "(", "this", ",", "existingVariable", ")", ";", "}", "}", "if", "(", "this", ".", "type", "!=", "null", ")", "{", "this", ".", "type", ".", "resolvedType", "=", "this", ".", "binding", ".", "type", ";", "}", "FieldBinding", "previousField", "=", "initializationScope", ".", "initializedField", ";", "int", "previousFieldID", "=", "initializationScope", ".", "lastVisibleFieldID", ";", "try", "{", "initializationScope", ".", "initializedField", "=", "this", ".", "binding", ";", "initializationScope", ".", "lastVisibleFieldID", "=", "this", ".", "binding", ".", "id", ";", "resolveAnnotations", "(", "initializationScope", ",", "this", ".", "annotations", ",", "this", ".", "binding", ")", ";", "if", "(", "(", "this", ".", "binding", ".", "getAnnotationTagBits", "(", ")", "&", "TagBits", ".", "AnnotationDeprecated", ")", "==", "0", "&&", "(", "this", ".", "binding", ".", "modifiers", "&", "ClassFileConstants", ".", "AccDeprecated", ")", "!=", "0", "&&", "initializationScope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "initializationScope", ".", "problemReporter", "(", ")", ".", "missingDeprecatedAnnotationForField", "(", "this", ")", ";", "}", "if", "(", "this", ".", "initialization", "==", "null", ")", "{", "this", ".", "binding", ".", "setConstant", "(", "Constant", ".", "NotAConstant", ")", ";", "}", "else", "{", "this", ".", "binding", ".", "setConstant", "(", "Constant", ".", "NotAConstant", ")", ";", "TypeBinding", "fieldType", "=", "this", ".", "binding", ".", "type", ";", "TypeBinding", "initializationType", ";", "this", ".", "initialization", ".", "setExpectedType", "(", "fieldType", ")", ";", "if", "(", "this", ".", "initialization", "instanceof", "ArrayInitializer", ")", "{", "if", "(", "(", "initializationType", "=", "this", ".", "initialization", ".", "resolveTypeExpecting", "(", "initializationScope", ",", "fieldType", ")", ")", "!=", "null", ")", "{", "(", "(", "ArrayInitializer", ")", "this", ".", "initialization", ")", ".", "binding", "=", "(", "ArrayBinding", ")", "initializationType", ";", "this", ".", "initialization", ".", "computeConversion", "(", "initializationScope", ",", "fieldType", ",", "initializationType", ")", ";", "}", "}", "else", "if", "(", "(", "initializationType", "=", "this", ".", "initialization", ".", "resolveType", "(", "initializationScope", ")", ")", "!=", "null", ")", "{", "if", "(", "fieldType", "!=", "initializationType", ")", "initializationScope", ".", "compilationUnitScope", "(", ")", ".", "recordTypeConversion", "(", "fieldType", ",", "initializationType", ")", ";", "if", "(", "this", ".", "initialization", ".", "isConstantValueOfTypeAssignableToType", "(", "initializationType", ",", "fieldType", ")", "||", "initializationType", ".", "isCompatibleWith", "(", "fieldType", ")", ")", "{", "this", ".", "initialization", ".", "computeConversion", "(", "initializationScope", ",", "fieldType", ",", "initializationType", ")", ";", "if", "(", "initializationType", ".", "needsUncheckedConversion", "(", "fieldType", ")", ")", "{", "initializationScope", ".", "problemReporter", "(", ")", ".", "unsafeTypeConversion", "(", "this", ".", "initialization", ",", "initializationType", ",", "fieldType", ")", ";", "}", "if", "(", "this", ".", "initialization", "instanceof", "CastExpression", "&&", "(", "this", ".", "initialization", ".", "bits", "&", "ASTNode", ".", "UnnecessaryCast", ")", "==", "0", ")", "{", "CastExpression", ".", "checkNeedForAssignedCast", "(", "initializationScope", ",", "fieldType", ",", "(", "CastExpression", ")", "this", ".", "initialization", ")", ";", "}", "}", "else", "if", "(", "isBoxingCompatible", "(", "initializationType", ",", "fieldType", ",", "this", ".", "initialization", ",", "initializationScope", ")", ")", "{", "this", ".", "initialization", ".", "computeConversion", "(", "initializationScope", ",", "fieldType", ",", "initializationType", ")", ";", "if", "(", "this", ".", "initialization", "instanceof", "CastExpression", "&&", "(", "this", ".", "initialization", ".", "bits", "&", "ASTNode", ".", "UnnecessaryCast", ")", "==", "0", ")", "{", "CastExpression", ".", "checkNeedForAssignedCast", "(", "initializationScope", ",", "fieldType", ",", "(", "CastExpression", ")", "this", ".", "initialization", ")", ";", "}", "}", "else", "{", "if", "(", "(", "fieldType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "==", "0", ")", "{", "initializationScope", ".", "problemReporter", "(", ")", ".", "typeMismatchError", "(", "initializationType", ",", "fieldType", ",", "this", ".", "initialization", ",", "null", ")", ";", "}", "}", "if", "(", "this", ".", "binding", ".", "isFinal", "(", ")", ")", "{", "this", ".", "binding", ".", "setConstant", "(", "this", ".", "initialization", ".", "constant", ".", "castTo", "(", "(", "this", ".", "binding", ".", "type", ".", "id", "<<", "4", ")", "+", "this", ".", "initialization", ".", "constant", ".", "typeID", "(", ")", ")", ")", ";", "}", "}", "else", "{", "this", ".", "binding", ".", "setConstant", "(", "Constant", ".", "NotAConstant", ")", ";", "}", "if", "(", "this", ".", "binding", "==", "Expression", ".", "getDirectBinding", "(", "this", ".", "initialization", ")", ")", "{", "initializationScope", ".", "problemReporter", "(", ")", ".", "assignmentHasNoEffect", "(", "this", ",", "this", ".", "name", ")", ";", "}", "}", "if", "(", "this", ".", "javadoc", "!=", "null", ")", "{", "this", ".", "javadoc", ".", "resolve", "(", "initializationScope", ")", ";", "}", "else", "if", "(", "this", ".", "binding", "!=", "null", "&&", "this", ".", "binding", ".", "declaringClass", "!=", "null", "&&", "!", "this", ".", "binding", ".", "declaringClass", ".", "isLocalType", "(", ")", ")", "{", "int", "javadocVisibility", "=", "this", ".", "binding", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccVisibilityMASK", ";", "ProblemReporter", "reporter", "=", "initializationScope", ".", "problemReporter", "(", ")", ";", "int", "severity", "=", "reporter", ".", "computeSeverity", "(", "IProblem", ".", "JavadocMissing", ")", ";", "if", "(", "severity", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "if", "(", "classScope", "!=", "null", ")", "{", "javadocVisibility", "=", "Util", ".", "computeOuterMostVisibility", "(", "classScope", ".", "referenceType", "(", ")", ",", "javadocVisibility", ")", ";", "}", "int", "javadocModifiers", "=", "(", "this", ".", "binding", ".", "modifiers", "&", "~", "ExtraCompilerModifiers", ".", "AccVisibilityMASK", ")", "|", "javadocVisibility", ";", "reporter", ".", "javadocMissing", "(", "this", ".", "sourceStart", ",", "this", ".", "sourceEnd", ",", "severity", ",", "javadocModifiers", ")", ";", "}", "}", "}", "finally", "{", "initializationScope", ".", "initializedField", "=", "previousField", ";", "initializationScope", ".", "lastVisibleFieldID", "=", "previousFieldID", ";", "if", "(", "this", ".", "binding", ".", "constant", "(", ")", "==", "null", ")", "this", ".", "binding", ".", "setConstant", "(", "Constant", ".", "NotAConstant", ")", ";", "}", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "MethodScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "javadoc", "!=", "null", ")", "{", "this", ".", "javadoc", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "if", "(", "this", ".", "annotations", "!=", "null", ")", "{", "int", "annotationsLength", "=", "this", ".", "annotations", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotationsLength", ";", "i", "++", ")", "this", ".", "annotations", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "if", "(", "this", ".", "type", "!=", "null", ")", "{", "this", ".", "type", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "if", "(", "this", ".", "initialization", "!=", "null", ")", "this", ".", "initialization", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,667
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "ClassLiteralAccess", "extends", "Expression", "{", "public", "TypeReference", "type", ";", "public", "TypeBinding", "targetType", ";", "FieldBinding", "syntheticField", ";", "public", "ClassLiteralAccess", "(", "int", "sourceEnd", ",", "TypeReference", "type", ")", "{", "this", ".", "type", "=", "type", ";", "type", ".", "bits", "|=", "IgnoreRawTypeCheck", ";", "this", ".", "sourceStart", "=", "type", ".", "sourceStart", ";", "this", ".", "sourceEnd", "=", "sourceEnd", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "SourceTypeBinding", "sourceType", "=", "currentScope", ".", "outerMostClassScope", "(", ")", ".", "enclosingSourceType", "(", ")", ";", "if", "(", "!", "sourceType", ".", "isInterface", "(", ")", "&&", "!", "this", ".", "targetType", ".", "isBaseType", "(", ")", "&&", "currentScope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "this", ".", "syntheticField", "=", "sourceType", ".", "addSyntheticFieldForClassLiteral", "(", "this", ".", "targetType", ",", "currentScope", ")", ";", "}", "return", "flowInfo", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateClassLiteralAccessForType", "(", "this", ".", "type", ".", "resolvedType", ",", "this", ".", "syntheticField", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "this", ".", "type", ".", "print", "(", "0", ",", "output", ")", ".", "append", "(", "\".class\"", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "(", "this", ".", "targetType", "=", "this", ".", "type", ".", "resolveType", "(", "scope", ",", "true", ")", ")", "==", "null", ")", "return", "null", ";", "if", "(", "this", ".", "targetType", ".", "isArrayType", "(", ")", ")", "{", "ArrayBinding", "arrayBinding", "=", "(", "ArrayBinding", ")", "this", ".", "targetType", ";", "TypeBinding", "leafComponentType", "=", "arrayBinding", ".", "leafComponentType", ";", "if", "(", "leafComponentType", "==", "TypeBinding", ".", "VOID", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotAllocateVoidArray", "(", "this", ")", ";", "return", "null", ";", "}", "else", "if", "(", "leafComponentType", ".", "isTypeVariable", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "illegalClassLiteralForTypeVariable", "(", "(", "TypeVariableBinding", ")", "leafComponentType", ",", "this", ")", ";", "}", "}", "else", "if", "(", "this", ".", "targetType", ".", "isTypeVariable", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "illegalClassLiteralForTypeVariable", "(", "(", "TypeVariableBinding", ")", "this", ".", "targetType", ",", "this", ")", ";", "}", "ReferenceBinding", "classType", "=", "scope", ".", "getJavaLangClass", "(", ")", ";", "if", "(", "classType", ".", "isGenericType", "(", ")", ")", "{", "TypeBinding", "boxedType", "=", "null", ";", "if", "(", "this", ".", "targetType", ".", "id", "==", "T_void", ")", "{", "boxedType", "=", "scope", ".", "environment", "(", ")", ".", "getResolvedType", "(", "JAVA_LANG_VOID", ",", "scope", ")", ";", "}", "else", "{", "boxedType", "=", "scope", ".", "boxing", "(", "this", ".", "targetType", ")", ";", "}", "this", ".", "resolvedType", "=", "scope", ".", "environment", "(", ")", ".", "createParameterizedType", "(", "classType", ",", "new", "TypeBinding", "[", "]", "{", "boxedType", "}", ",", "null", ")", ";", "}", "else", "{", "this", ".", "resolvedType", "=", "classType", ";", "}", "return", "this", ".", "resolvedType", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "this", ".", "type", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
5,668
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "public", "abstract", "class", "MagicLiteral", "extends", "Literal", "{", "public", "MagicLiteral", "(", "int", "start", ",", "int", "end", ")", "{", "super", "(", "start", ",", "end", ")", ";", "}", "public", "boolean", "isValidJavaStatement", "(", ")", "{", "return", "false", ";", "}", "public", "char", "[", "]", "source", "(", ")", "{", "return", "null", ";", "}", "}", "</s>" ]
5,669
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "ReturnStatement", "extends", "Statement", "{", "public", "Expression", "expression", ";", "public", "SubRoutineStatement", "[", "]", "subroutines", ";", "public", "LocalVariableBinding", "saveValueVariable", ";", "public", "int", "initStateIndex", "=", "-", "1", ";", "public", "ReturnStatement", "(", "Expression", "expression", ",", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "sourceStart", "=", "sourceStart", ";", "this", ".", "sourceEnd", "=", "sourceEnd", ";", "this", ".", "expression", "=", "expression", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "expression", "!=", "null", ")", "{", "flowInfo", "=", "this", ".", "expression", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "this", ".", "initStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "flowInfo", ")", ";", "FlowContext", "traversedContext", "=", "flowContext", ";", "int", "subCount", "=", "0", ";", "boolean", "saveValueNeeded", "=", "false", ";", "boolean", "hasValueToSave", "=", "needValueStore", "(", ")", ";", "do", "{", "SubRoutineStatement", "sub", ";", "if", "(", "(", "sub", "=", "traversedContext", ".", "subroutine", "(", ")", ")", "!=", "null", ")", "{", "if", "(", "this", ".", "subroutines", "==", "null", ")", "{", "this", ".", "subroutines", "=", "new", "SubRoutineStatement", "[", "5", "]", ";", "}", "if", "(", "subCount", "==", "this", ".", "subroutines", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "subroutines", ",", "0", ",", "(", "this", ".", "subroutines", "=", "new", "SubRoutineStatement", "[", "subCount", "*", "2", "]", ")", ",", "0", ",", "subCount", ")", ";", "}", "this", ".", "subroutines", "[", "subCount", "++", "]", "=", "sub", ";", "if", "(", "sub", ".", "isSubRoutineEscaping", "(", ")", ")", "{", "saveValueNeeded", "=", "false", ";", "this", ".", "bits", "|=", "ASTNode", ".", "IsAnySubRoutineEscaping", ";", "break", ";", "}", "}", "traversedContext", ".", "recordReturnFrom", "(", "flowInfo", ".", "unconditionalInits", "(", ")", ")", ";", "if", "(", "traversedContext", "instanceof", "InsideSubRoutineFlowContext", ")", "{", "ASTNode", "node", "=", "traversedContext", ".", "associatedNode", ";", "if", "(", "node", "instanceof", "SynchronizedStatement", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "IsSynchronized", ";", "}", "else", "if", "(", "node", "instanceof", "TryStatement", ")", "{", "TryStatement", "tryStatement", "=", "(", "TryStatement", ")", "node", ";", "flowInfo", ".", "addInitializationsFrom", "(", "tryStatement", ".", "subRoutineInits", ")", ";", "if", "(", "hasValueToSave", ")", "{", "if", "(", "this", ".", "saveValueVariable", "==", "null", ")", "{", "prepareSaveValueLocation", "(", "tryStatement", ")", ";", "}", "saveValueNeeded", "=", "true", ";", "this", ".", "initStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "flowInfo", ")", ";", "}", "}", "}", "else", "if", "(", "traversedContext", "instanceof", "InitializationFlowContext", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "cannotReturnInInitializer", "(", "this", ")", ";", "return", "FlowInfo", ".", "DEAD_END", ";", "}", "}", "while", "(", "(", "traversedContext", "=", "traversedContext", ".", "parent", ")", "!=", "null", ")", ";", "if", "(", "(", "this", ".", "subroutines", "!=", "null", ")", "&&", "(", "subCount", "!=", "this", ".", "subroutines", ".", "length", ")", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "subroutines", ",", "0", ",", "(", "this", ".", "subroutines", "=", "new", "SubRoutineStatement", "[", "subCount", "]", ")", ",", "0", ",", "subCount", ")", ";", "}", "if", "(", "saveValueNeeded", ")", "{", "if", "(", "this", ".", "saveValueVariable", "!=", "null", ")", "{", "this", ".", "saveValueVariable", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "}", "}", "else", "{", "this", ".", "saveValueVariable", "=", "null", ";", "if", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsSynchronized", ")", "==", "0", ")", "&&", "this", ".", "expression", "!=", "null", "&&", "this", ".", "expression", ".", "resolvedType", "==", "TypeBinding", ".", "BOOLEAN", ")", "{", "this", ".", "expression", ".", "bits", "|=", "ASTNode", ".", "IsReturnedValue", ";", "}", "}", "return", "FlowInfo", ".", "DEAD_END", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsReachable", ")", "==", "0", ")", "{", "return", ";", "}", "int", "pc", "=", "codeStream", ".", "position", ";", "boolean", "alreadyGeneratedExpression", "=", "false", ";", "if", "(", "needValueStore", "(", ")", ")", "{", "alreadyGeneratedExpression", "=", "true", ";", "this", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "needValue", "(", ")", ")", ";", "generateStoreSaveValueIfNecessary", "(", "codeStream", ")", ";", "}", "if", "(", "this", ".", "subroutines", "!=", "null", ")", "{", "Object", "reusableJSRTarget", "=", "this", ".", "expression", "==", "null", "?", "(", "Object", ")", "TypeBinding", ".", "VOID", ":", "this", ".", "expression", ".", "reusableJSRTarget", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "subroutines", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "SubRoutineStatement", "sub", "=", "this", ".", "subroutines", "[", "i", "]", ";", "boolean", "didEscape", "=", "sub", ".", "generateSubRoutineInvocation", "(", "currentScope", ",", "codeStream", ",", "reusableJSRTarget", ",", "this", ".", "initStateIndex", ",", "this", ".", "saveValueVariable", ")", ";", "if", "(", "didEscape", ")", "{", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "SubRoutineStatement", ".", "reenterAllExceptionHandlers", "(", "this", ".", "subroutines", ",", "i", ",", "codeStream", ")", ";", "return", ";", "}", "}", "}", "if", "(", "this", ".", "saveValueVariable", "!=", "null", ")", "{", "codeStream", ".", "addVariable", "(", "this", ".", "saveValueVariable", ")", ";", "codeStream", ".", "load", "(", "this", ".", "saveValueVariable", ")", ";", "}", "if", "(", "this", ".", "expression", "!=", "null", "&&", "!", "alreadyGeneratedExpression", ")", "{", "this", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "generateStoreSaveValueIfNecessary", "(", "codeStream", ")", ";", "}", "generateReturnBytecode", "(", "codeStream", ")", ";", "if", "(", "this", ".", "saveValueVariable", "!=", "null", ")", "{", "codeStream", ".", "removeVariable", "(", "this", ".", "saveValueVariable", ")", ";", "}", "if", "(", "this", ".", "initStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "initStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "initStateIndex", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "SubRoutineStatement", ".", "reenterAllExceptionHandlers", "(", "this", ".", "subroutines", ",", "-", "1", ",", "codeStream", ")", ";", "}", "public", "void", "generateReturnBytecode", "(", "CodeStream", "codeStream", ")", "{", "codeStream", ".", "generateReturnBytecode", "(", "this", ".", "expression", ")", ";", "}", "public", "void", "generateStoreSaveValueIfNecessary", "(", "CodeStream", "codeStream", ")", "{", "if", "(", "this", ".", "saveValueVariable", "!=", "null", ")", "{", "codeStream", ".", "store", "(", "this", ".", "saveValueVariable", ",", "false", ")", ";", "}", "}", "private", "boolean", "needValueStore", "(", ")", "{", "return", "this", ".", "expression", "!=", "null", "&&", "(", "this", ".", "expression", ".", "constant", "==", "Constant", ".", "NotAConstant", "||", "(", "this", ".", "expression", ".", "implicitConversion", "&", "TypeIds", ".", "BOXING", ")", "!=", "0", ")", "&&", "!", "(", "this", ".", "expression", "instanceof", "NullLiteral", ")", ";", "}", "public", "boolean", "needValue", "(", ")", "{", "return", "this", ".", "saveValueVariable", "!=", "null", "||", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsSynchronized", ")", "!=", "0", "||", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsAnySubRoutineEscaping", ")", "==", "0", ")", ";", "}", "public", "void", "prepareSaveValueLocation", "(", "TryStatement", "targetTryStatement", ")", "{", "this", ".", "saveValueVariable", "=", "targetTryStatement", ".", "secretReturnValue", ";", "}", "public", "StringBuffer", "printStatement", "(", "int", "tab", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "tab", ",", "output", ")", ".", "append", "(", "\"return", "\"", ")", ";", "if", "(", "this", ".", "expression", "!=", "null", ")", "this", ".", "expression", ".", "printExpression", "(", "0", ",", "output", ")", ";", "return", "output", ".", "append", "(", "';'", ")", ";", "}", "public", "void", "resolve", "(", "BlockScope", "scope", ")", "{", "MethodScope", "methodScope", "=", "scope", ".", "methodScope", "(", ")", ";", "MethodBinding", "methodBinding", ";", "TypeBinding", "methodType", "=", "(", "methodScope", ".", "referenceContext", "instanceof", "AbstractMethodDeclaration", ")", "?", "(", "(", "methodBinding", "=", "(", "(", "AbstractMethodDeclaration", ")", "methodScope", ".", "referenceContext", ")", ".", "binding", ")", "==", "null", "?", "null", ":", "methodBinding", ".", "returnType", ")", ":", "TypeBinding", ".", "VOID", ";", "TypeBinding", "expressionType", ";", "if", "(", "methodType", "==", "TypeBinding", ".", "VOID", ")", "{", "if", "(", "this", ".", "expression", "==", "null", ")", "return", ";", "if", "(", "(", "expressionType", "=", "this", ".", "expression", ".", "resolveType", "(", "scope", ")", ")", "!=", "null", ")", "scope", ".", "problemReporter", "(", ")", ".", "attemptToReturnNonVoidExpression", "(", "this", ",", "expressionType", ")", ";", "return", ";", "}", "if", "(", "this", ".", "expression", "==", "null", ")", "{", "if", "(", "methodType", "!=", "null", ")", "scope", ".", "problemReporter", "(", ")", ".", "shouldReturn", "(", "methodType", ",", "this", ")", ";", "return", ";", "}", "this", ".", "expression", ".", "setExpectedType", "(", "methodType", ")", ";", "if", "(", "(", "expressionType", "=", "this", ".", "expression", ".", "resolveType", "(", "scope", ")", ")", "==", "null", ")", "return", ";", "if", "(", "expressionType", "==", "TypeBinding", ".", "VOID", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "attemptToReturnVoidValue", "(", "this", ")", ";", "return", ";", "}", "if", "(", "methodType", "==", "null", ")", "return", ";", "if", "(", "methodType", "!=", "expressionType", ")", "scope", ".", "compilationUnitScope", "(", ")", ".", "recordTypeConversion", "(", "methodType", ",", "expressionType", ")", ";", "if", "(", "this", ".", "expression", ".", "isConstantValueOfTypeAssignableToType", "(", "expressionType", ",", "methodType", ")", "||", "expressionType", ".", "isCompatibleWith", "(", "methodType", ")", ")", "{", "this", ".", "expression", ".", "computeConversion", "(", "scope", ",", "methodType", ",", "expressionType", ")", ";", "if", "(", "expressionType", ".", "needsUncheckedConversion", "(", "methodType", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unsafeTypeConversion", "(", "this", ".", "expression", ",", "expressionType", ",", "methodType", ")", ";", "}", "if", "(", "this", ".", "expression", "instanceof", "CastExpression", "&&", "(", "this", ".", "expression", ".", "bits", "&", "(", "ASTNode", ".", "UnnecessaryCast", "|", "ASTNode", ".", "DisableUnnecessaryCastCheck", ")", ")", "==", "0", ")", "{", "CastExpression", ".", "checkNeedForAssignedCast", "(", "scope", ",", "methodType", ",", "(", "CastExpression", ")", "this", ".", "expression", ")", ";", "}", "return", ";", "}", "else", "if", "(", "isBoxingCompatible", "(", "expressionType", ",", "methodType", ",", "this", ".", "expression", ",", "scope", ")", ")", "{", "this", ".", "expression", ".", "computeConversion", "(", "scope", ",", "methodType", ",", "expressionType", ")", ";", "if", "(", "this", ".", "expression", "instanceof", "CastExpression", "&&", "(", "this", ".", "expression", ".", "bits", "&", "(", "ASTNode", ".", "UnnecessaryCast", "|", "ASTNode", ".", "DisableUnnecessaryCastCheck", ")", ")", "==", "0", ")", "{", "CastExpression", ".", "checkNeedForAssignedCast", "(", "scope", ",", "methodType", ",", "(", "CastExpression", ")", "this", ".", "expression", ")", ";", "}", "return", ";", "}", "if", "(", "(", "methodType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "typeMismatchError", "(", "expressionType", ",", "methodType", ",", "this", ".", "expression", ",", "null", ")", ";", "}", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "expression", "!=", "null", ")", "this", ".", "expression", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,670
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "public", "class", "SuperReference", "extends", "ThisReference", "{", "public", "SuperReference", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "super", "(", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "static", "ExplicitConstructorCall", "implicitSuperConstructorCall", "(", ")", "{", "return", "new", "ExplicitConstructorCall", "(", "ExplicitConstructorCall", ".", "ImplicitSuper", ")", ";", "}", "public", "boolean", "isImplicitThis", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isSuper", "(", ")", "{", "return", "true", ";", "}", "public", "boolean", "isThis", "(", ")", "{", "return", "false", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "output", ".", "append", "(", "\"super\"", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "!", "checkAccess", "(", "scope", ".", "methodScope", "(", ")", ")", ")", "return", "null", ";", "ReferenceBinding", "enclosingReceiverType", "=", "scope", ".", "enclosingReceiverType", "(", ")", ";", "if", "(", "enclosingReceiverType", ".", "id", "==", "T_JavaLangObject", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotUseSuperInJavaLangObject", "(", "this", ")", ";", "return", "null", ";", "}", "return", "this", ".", "resolvedType", "=", "enclosingReceiverType", ".", "superclass", "(", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
5,671
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "CompilerOptions", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "IrritantSet", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "abstract", "class", "Annotation", "extends", "Expression", "{", "final", "static", "MemberValuePair", "[", "]", "NoValuePairs", "=", "new", "MemberValuePair", "[", "0", "]", ";", "public", "int", "declarationSourceEnd", ";", "public", "Binding", "recipient", ";", "public", "TypeReference", "type", ";", "private", "AnnotationBinding", "compilerAnnotation", "=", "null", ";", "public", "static", "long", "getRetentionPolicy", "(", "char", "[", "]", "policyName", ")", "{", "if", "(", "policyName", "==", "null", "||", "policyName", ".", "length", "==", "0", ")", "return", "0", ";", "switch", "(", "policyName", "[", "0", "]", ")", "{", "case", "'C'", ":", "if", "(", "CharOperation", ".", "equals", "(", "policyName", ",", "TypeConstants", ".", "UPPER_CLASS", ")", ")", "return", "TagBits", ".", "AnnotationClassRetention", ";", "break", ";", "case", "'S'", ":", "if", "(", "CharOperation", ".", "equals", "(", "policyName", ",", "TypeConstants", ".", "UPPER_SOURCE", ")", ")", "return", "TagBits", ".", "AnnotationSourceRetention", ";", "break", ";", "case", "'R'", ":", "if", "(", "CharOperation", ".", "equals", "(", "policyName", ",", "TypeConstants", ".", "UPPER_RUNTIME", ")", ")", "return", "TagBits", ".", "AnnotationRuntimeRetention", ";", "break", ";", "}", "return", "0", ";", "}", "public", "static", "long", "getTargetElementType", "(", "char", "[", "]", "elementName", ")", "{", "if", "(", "elementName", "==", "null", "||", "elementName", ".", "length", "==", "0", ")", "return", "0", ";", "switch", "(", "elementName", "[", "0", "]", ")", "{", "case", "'A'", ":", "if", "(", "CharOperation", ".", "equals", "(", "elementName", ",", "TypeConstants", ".", "UPPER_ANNOTATION_TYPE", ")", ")", "return", "TagBits", ".", "AnnotationForAnnotationType", ";", "break", ";", "case", "'C'", ":", "if", "(", "CharOperation", ".", "equals", "(", "elementName", ",", "TypeConstants", ".", "UPPER_CONSTRUCTOR", ")", ")", "return", "TagBits", ".", "AnnotationForConstructor", ";", "break", ";", "case", "'F'", ":", "if", "(", "CharOperation", ".", "equals", "(", "elementName", ",", "TypeConstants", ".", "UPPER_FIELD", ")", ")", "return", "TagBits", ".", "AnnotationForField", ";", "break", ";", "case", "'L'", ":", "if", "(", "CharOperation", ".", "equals", "(", "elementName", ",", "TypeConstants", ".", "UPPER_LOCAL_VARIABLE", ")", ")", "return", "TagBits", ".", "AnnotationForLocalVariable", ";", "break", ";", "case", "'M'", ":", "if", "(", "CharOperation", ".", "equals", "(", "elementName", ",", "TypeConstants", ".", "UPPER_METHOD", ")", ")", "return", "TagBits", ".", "AnnotationForMethod", ";", "break", ";", "case", "'P'", ":", "if", "(", "CharOperation", ".", "equals", "(", "elementName", ",", "TypeConstants", ".", "UPPER_PARAMETER", ")", ")", "return", "TagBits", ".", "AnnotationForParameter", ";", "else", "if", "(", "CharOperation", ".", "equals", "(", "elementName", ",", "TypeConstants", ".", "UPPER_PACKAGE", ")", ")", "return", "TagBits", ".", "AnnotationForPackage", ";", "break", ";", "case", "'T'", ":", "if", "(", "CharOperation", ".", "equals", "(", "elementName", ",", "TypeConstants", ".", "TYPE", ")", ")", "return", "TagBits", ".", "AnnotationForType", ";", "break", ";", "}", "return", "0", ";", "}", "public", "ElementValuePair", "[", "]", "computeElementValuePairs", "(", ")", "{", "return", "Binding", ".", "NO_ELEMENT_VALUE_PAIRS", ";", "}", "private", "long", "detectStandardAnnotation", "(", "Scope", "scope", ",", "ReferenceBinding", "annotationType", ",", "MemberValuePair", "valueAttribute", ")", "{", "long", "tagBits", "=", "0", ";", "switch", "(", "annotationType", ".", "id", ")", "{", "case", "TypeIds", ".", "T_JavaLangAnnotationRetention", ":", "if", "(", "valueAttribute", "!=", "null", ")", "{", "Expression", "expr", "=", "valueAttribute", ".", "value", ";", "if", "(", "(", "expr", ".", "bits", "&", "Binding", ".", "VARIABLE", ")", "==", "Binding", ".", "FIELD", ")", "{", "FieldBinding", "field", "=", "(", "(", "Reference", ")", "expr", ")", ".", "fieldBinding", "(", ")", ";", "if", "(", "field", "!=", "null", "&&", "field", ".", "declaringClass", ".", "id", "==", "T_JavaLangAnnotationRetentionPolicy", ")", "{", "tagBits", "|=", "getRetentionPolicy", "(", "field", ".", "name", ")", ";", "}", "}", "}", "break", ";", "case", "TypeIds", ".", "T_JavaLangAnnotationTarget", ":", "tagBits", "|=", "TagBits", ".", "AnnotationTarget", ";", "if", "(", "valueAttribute", "!=", "null", ")", "{", "Expression", "expr", "=", "valueAttribute", ".", "value", ";", "if", "(", "expr", "instanceof", "ArrayInitializer", ")", "{", "ArrayInitializer", "initializer", "=", "(", "ArrayInitializer", ")", "expr", ";", "final", "Expression", "[", "]", "expressions", "=", "initializer", ".", "expressions", ";", "if", "(", "expressions", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "expressions", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "Expression", "initExpr", "=", "expressions", "[", "i", "]", ";", "if", "(", "(", "initExpr", ".", "bits", "&", "Binding", ".", "VARIABLE", ")", "==", "Binding", ".", "FIELD", ")", "{", "FieldBinding", "field", "=", "(", "(", "Reference", ")", "initExpr", ")", ".", "fieldBinding", "(", ")", ";", "if", "(", "field", "!=", "null", "&&", "field", ".", "declaringClass", ".", "id", "==", "T_JavaLangAnnotationElementType", ")", "{", "long", "element", "=", "getTargetElementType", "(", "field", ".", "name", ")", ";", "if", "(", "(", "tagBits", "&", "element", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "duplicateTargetInTargetAnnotation", "(", "annotationType", ",", "(", "NameReference", ")", "initExpr", ")", ";", "}", "else", "{", "tagBits", "|=", "element", ";", "}", "}", "}", "}", "}", "}", "else", "if", "(", "(", "expr", ".", "bits", "&", "Binding", ".", "VARIABLE", ")", "==", "Binding", ".", "FIELD", ")", "{", "FieldBinding", "field", "=", "(", "(", "Reference", ")", "expr", ")", ".", "fieldBinding", "(", ")", ";", "if", "(", "field", "!=", "null", "&&", "field", ".", "declaringClass", ".", "id", "==", "T_JavaLangAnnotationElementType", ")", "{", "tagBits", "|=", "getTargetElementType", "(", "field", ".", "name", ")", ";", "}", "}", "}", "break", ";", "case", "TypeIds", ".", "T_JavaLangDeprecated", ":", "tagBits", "|=", "TagBits", ".", "AnnotationDeprecated", ";", "break", ";", "case", "TypeIds", ".", "T_JavaLangAnnotationDocumented", ":", "tagBits", "|=", "TagBits", ".", "AnnotationDocumented", ";", "break", ";", "case", "TypeIds", ".", "T_JavaLangAnnotationInherited", ":", "tagBits", "|=", "TagBits", ".", "AnnotationInherited", ";", "break", ";", "case", "TypeIds", ".", "T_JavaLangOverride", ":", "tagBits", "|=", "TagBits", ".", "AnnotationOverride", ";", "break", ";", "case", "TypeIds", ".", "T_JavaLangSuppressWarnings", ":", "tagBits", "|=", "TagBits", ".", "AnnotationSuppressWarnings", ";", "break", ";", "}", "return", "tagBits", ";", "}", "public", "AnnotationBinding", "getCompilerAnnotation", "(", ")", "{", "return", "this", ".", "compilerAnnotation", ";", "}", "public", "abstract", "MemberValuePair", "[", "]", "memberValuePairs", "(", ")", ";", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "output", ".", "append", "(", "'@'", ")", ";", "this", ".", "type", ".", "printExpression", "(", "0", ",", "output", ")", ";", "return", "output", ";", "}", "public", "void", "recordSuppressWarnings", "(", "Scope", "scope", ",", "int", "startSuppresss", ",", "int", "endSuppress", ",", "boolean", "isSuppressingWarnings", ")", "{", "IrritantSet", "suppressWarningIrritants", "=", "null", ";", "MemberValuePair", "[", "]", "pairs", "=", "memberValuePairs", "(", ")", ";", "pairLoop", ":", "for", "(", "int", "i", "=", "0", ",", "length", "=", "pairs", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "MemberValuePair", "pair", "=", "pairs", "[", "i", "]", ";", "if", "(", "CharOperation", ".", "equals", "(", "pair", ".", "name", ",", "TypeConstants", ".", "VALUE", ")", ")", "{", "Expression", "value", "=", "pair", ".", "value", ";", "if", "(", "value", "instanceof", "ArrayInitializer", ")", "{", "ArrayInitializer", "initializer", "=", "(", "ArrayInitializer", ")", "value", ";", "Expression", "[", "]", "inits", "=", "initializer", ".", "expressions", ";", "if", "(", "inits", "!=", "null", ")", "{", "for", "(", "int", "j", "=", "0", ",", "initsLength", "=", "inits", ".", "length", ";", "j", "<", "initsLength", ";", "j", "++", ")", "{", "Constant", "cst", "=", "inits", "[", "j", "]", ".", "constant", ";", "if", "(", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "typeID", "(", ")", "==", "T_JavaLangString", ")", "{", "IrritantSet", "irritants", "=", "CompilerOptions", ".", "warningTokenToIrritants", "(", "cst", ".", "stringValue", "(", ")", ")", ";", "if", "(", "irritants", "!=", "null", ")", "{", "if", "(", "suppressWarningIrritants", "==", "null", ")", "{", "suppressWarningIrritants", "=", "new", "IrritantSet", "(", "irritants", ")", ";", "}", "else", "if", "(", "suppressWarningIrritants", ".", "set", "(", "irritants", ")", "==", "null", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unusedWarningToken", "(", "inits", "[", "j", "]", ")", ";", "}", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "unhandledWarningToken", "(", "inits", "[", "j", "]", ")", ";", "}", "}", "}", "}", "}", "else", "{", "Constant", "cst", "=", "value", ".", "constant", ";", "if", "(", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "typeID", "(", ")", "==", "T_JavaLangString", ")", "{", "IrritantSet", "irritants", "=", "CompilerOptions", ".", "warningTokenToIrritants", "(", "cst", ".", "stringValue", "(", ")", ")", ";", "if", "(", "irritants", "!=", "null", ")", "{", "suppressWarningIrritants", "=", "new", "IrritantSet", "(", "irritants", ")", ";", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "unhandledWarningToken", "(", "value", ")", ";", "}", "}", "}", "break", "pairLoop", ";", "}", "}", "if", "(", "isSuppressingWarnings", "&&", "suppressWarningIrritants", "!=", "null", ")", "{", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "recordSuppressWarnings", "(", "suppressWarningIrritants", ",", "this", ",", "startSuppresss", ",", "endSuppress", ")", ";", "}", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "if", "(", "this", ".", "compilerAnnotation", "!=", "null", ")", "return", "this", ".", "resolvedType", ";", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "TypeBinding", "typeBinding", "=", "this", ".", "type", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "typeBinding", "==", "null", ")", "{", "return", "null", ";", "}", "this", ".", "resolvedType", "=", "typeBinding", ";", "if", "(", "!", "typeBinding", ".", "isAnnotationType", "(", ")", "&&", "typeBinding", ".", "isValidBinding", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "typeMismatchError", "(", "typeBinding", ",", "scope", ".", "getJavaLangAnnotationAnnotation", "(", ")", ",", "this", ".", "type", ",", "null", ")", ";", "return", "null", ";", "}", "ReferenceBinding", "annotationType", "=", "(", "ReferenceBinding", ")", "this", ".", "resolvedType", ";", "MethodBinding", "[", "]", "methods", "=", "annotationType", ".", "methods", "(", ")", ";", "MemberValuePair", "[", "]", "originalValuePairs", "=", "memberValuePairs", "(", ")", ";", "MemberValuePair", "valueAttribute", "=", "null", ";", "MemberValuePair", "[", "]", "pairs", ";", "int", "pairsLength", "=", "originalValuePairs", ".", "length", ";", "if", "(", "pairsLength", ">", "0", ")", "{", "System", ".", "arraycopy", "(", "originalValuePairs", ",", "0", ",", "pairs", "=", "new", "MemberValuePair", "[", "pairsLength", "]", ",", "0", ",", "pairsLength", ")", ";", "}", "else", "{", "pairs", "=", "originalValuePairs", ";", "}", "nextMember", ":", "for", "(", "int", "i", "=", "0", ",", "requiredLength", "=", "methods", ".", "length", ";", "i", "<", "requiredLength", ";", "i", "++", ")", "{", "MethodBinding", "method", "=", "methods", "[", "i", "]", ";", "char", "[", "]", "selector", "=", "method", ".", "selector", ";", "boolean", "foundValue", "=", "false", ";", "nextPair", ":", "for", "(", "int", "j", "=", "0", ";", "j", "<", "pairsLength", ";", "j", "++", ")", "{", "MemberValuePair", "pair", "=", "pairs", "[", "j", "]", ";", "if", "(", "pair", "==", "null", ")", "continue", "nextPair", ";", "char", "[", "]", "name", "=", "pair", ".", "name", ";", "if", "(", "CharOperation", ".", "equals", "(", "name", ",", "selector", ")", ")", "{", "if", "(", "valueAttribute", "==", "null", "&&", "CharOperation", ".", "equals", "(", "name", ",", "TypeConstants", ".", "VALUE", ")", ")", "{", "valueAttribute", "=", "pair", ";", "}", "pair", ".", "binding", "=", "method", ";", "pair", ".", "resolveTypeExpecting", "(", "scope", ",", "method", ".", "returnType", ")", ";", "pairs", "[", "j", "]", "=", "null", ";", "foundValue", "=", "true", ";", "boolean", "foundDuplicate", "=", "false", ";", "for", "(", "int", "k", "=", "j", "+", "1", ";", "k", "<", "pairsLength", ";", "k", "++", ")", "{", "MemberValuePair", "otherPair", "=", "pairs", "[", "k", "]", ";", "if", "(", "otherPair", "==", "null", ")", "continue", ";", "if", "(", "CharOperation", ".", "equals", "(", "otherPair", ".", "name", ",", "selector", ")", ")", "{", "foundDuplicate", "=", "true", ";", "scope", ".", "problemReporter", "(", ")", ".", "duplicateAnnotationValue", "(", "annotationType", ",", "otherPair", ")", ";", "otherPair", ".", "binding", "=", "method", ";", "otherPair", ".", "resolveTypeExpecting", "(", "scope", ",", "method", ".", "returnType", ")", ";", "pairs", "[", "k", "]", "=", "null", ";", "}", "}", "if", "(", "foundDuplicate", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "duplicateAnnotationValue", "(", "annotationType", ",", "pair", ")", ";", "continue", "nextMember", ";", "}", "}", "}", "if", "(", "!", "foundValue", "&&", "(", "method", ".", "modifiers", "&", "ClassFileConstants", ".", "AccAnnotationDefault", ")", "==", "0", "&&", "(", "this", ".", "bits", "&", "IsRecovered", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "missingValueForAnnotationMember", "(", "this", ",", "selector", ")", ";", "}", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "pairsLength", ";", "i", "++", ")", "{", "if", "(", "pairs", "[", "i", "]", "!=", "null", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "undefinedAnnotationValue", "(", "annotationType", ",", "pairs", "[", "i", "]", ")", ";", "pairs", "[", "i", "]", ".", "resolveTypeExpecting", "(", "scope", ",", "null", ")", ";", "}", "}", "this", ".", "compilerAnnotation", "=", "scope", ".", "environment", "(", ")", ".", "createAnnotation", "(", "(", "ReferenceBinding", ")", "this", ".", "resolvedType", ",", "computeElementValuePairs", "(", ")", ")", ";", "long", "tagBits", "=", "detectStandardAnnotation", "(", "scope", ",", "annotationType", ",", "valueAttribute", ")", ";", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "recordSuppressWarnings", "(", "IrritantSet", ".", "NLS", ",", "null", ",", "this", ".", "sourceStart", ",", "this", ".", "declarationSourceEnd", ")", ";", "if", "(", "this", ".", "recipient", "!=", "null", ")", "{", "if", "(", "tagBits", "!=", "0", ")", "{", "switch", "(", "this", ".", "recipient", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "PACKAGE", ":", "(", "(", "PackageBinding", ")", "this", ".", "recipient", ")", ".", "tagBits", "|=", "tagBits", ";", "break", ";", "case", "Binding", ".", "TYPE", ":", "case", "Binding", ".", "GENERIC_TYPE", ":", "SourceTypeBinding", "sourceType", "=", "(", "SourceTypeBinding", ")", "this", ".", "recipient", ";", "sourceType", ".", "tagBits", "|=", "tagBits", ";", "if", "(", "(", "tagBits", "&", "TagBits", ".", "AnnotationSuppressWarnings", ")", "!=", "0", ")", "{", "TypeDeclaration", "typeDeclaration", "=", "sourceType", ".", "scope", ".", "referenceContext", ";", "int", "start", ";", "if", "(", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "types", "[", "0", "]", "==", "typeDeclaration", ")", "{", "start", "=", "0", ";", "}", "else", "{", "start", "=", "typeDeclaration", ".", "declarationSourceStart", ";", "}", "recordSuppressWarnings", "(", "scope", ",", "start", ",", "typeDeclaration", ".", "declarationSourceEnd", ",", "scope", ".", "compilerOptions", "(", ")", ".", "suppressWarnings", ")", ";", "}", "break", ";", "case", "Binding", ".", "METHOD", ":", "MethodBinding", "sourceMethod", "=", "(", "MethodBinding", ")", "this", ".", "recipient", ";", "sourceMethod", ".", "tagBits", "|=", "tagBits", ";", "if", "(", "(", "tagBits", "&", "TagBits", ".", "AnnotationSuppressWarnings", ")", "!=", "0", ")", "{", "sourceType", "=", "(", "SourceTypeBinding", ")", "sourceMethod", ".", "declaringClass", ";", "AbstractMethodDeclaration", "methodDeclaration", "=", "sourceType", ".", "scope", ".", "referenceContext", ".", "declarationOf", "(", "sourceMethod", ")", ";", "recordSuppressWarnings", "(", "scope", ",", "methodDeclaration", ".", "declarationSourceStart", ",", "methodDeclaration", ".", "declarationSourceEnd", ",", "scope", ".", "compilerOptions", "(", ")", ".", "suppressWarnings", ")", ";", "}", "break", ";", "case", "Binding", ".", "FIELD", ":", "FieldBinding", "sourceField", "=", "(", "FieldBinding", ")", "this", ".", "recipient", ";", "sourceField", ".", "tagBits", "|=", "tagBits", ";", "if", "(", "(", "tagBits", "&", "TagBits", ".", "AnnotationSuppressWarnings", ")", "!=", "0", ")", "{", "sourceType", "=", "(", "SourceTypeBinding", ")", "sourceField", ".", "declaringClass", ";", "FieldDeclaration", "fieldDeclaration", "=", "sourceType", ".", "scope", ".", "referenceContext", ".", "declarationOf", "(", "sourceField", ")", ";", "recordSuppressWarnings", "(", "scope", ",", "fieldDeclaration", ".", "declarationSourceStart", ",", "fieldDeclaration", ".", "declarationSourceEnd", ",", "scope", ".", "compilerOptions", "(", ")", ".", "suppressWarnings", ")", ";", "}", "break", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "variable", "=", "(", "LocalVariableBinding", ")", "this", ".", "recipient", ";", "variable", ".", "tagBits", "|=", "tagBits", ";", "if", "(", "(", "tagBits", "&", "TagBits", ".", "AnnotationSuppressWarnings", ")", "!=", "0", ")", "{", "LocalDeclaration", "localDeclaration", "=", "variable", ".", "declaration", ";", "recordSuppressWarnings", "(", "scope", ",", "localDeclaration", ".", "declarationSourceStart", ",", "localDeclaration", ".", "declarationSourceEnd", ",", "scope", ".", "compilerOptions", "(", ")", ".", "suppressWarnings", ")", ";", "}", "break", ";", "}", "}", "if", "(", "scope", ".", "compilationUnitScope", "(", ")", ".", "checkTargetCompatibility", "(", ")", ")", "{", "checkTargetCompatibility", ":", "{", "long", "metaTagBits", "=", "annotationType", ".", "getAnnotationTagBits", "(", ")", ";", "if", "(", "(", "metaTagBits", "&", "TagBits", ".", "AnnotationTargetMASK", ")", "==", "0", ")", "break", "checkTargetCompatibility", ";", "switch", "(", "this", ".", "recipient", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "PACKAGE", ":", "if", "(", "(", "metaTagBits", "&", "TagBits", ".", "AnnotationForPackage", ")", "!=", "0", ")", "break", "checkTargetCompatibility", ";", "break", ";", "case", "Binding", ".", "TYPE", ":", "case", "Binding", ".", "GENERIC_TYPE", ":", "if", "(", "(", "(", "ReferenceBinding", ")", "this", ".", "recipient", ")", ".", "isAnnotationType", "(", ")", ")", "{", "if", "(", "(", "metaTagBits", "&", "(", "TagBits", ".", "AnnotationForAnnotationType", "|", "TagBits", ".", "AnnotationForType", ")", ")", "!=", "0", ")", "break", "checkTargetCompatibility", ";", "}", "else", "if", "(", "(", "metaTagBits", "&", "TagBits", ".", "AnnotationForType", ")", "!=", "0", ")", "{", "break", "checkTargetCompatibility", ";", "}", "else", "if", "(", "(", "metaTagBits", "&", "TagBits", ".", "AnnotationForPackage", ")", "!=", "0", ")", "{", "if", "(", "CharOperation", ".", "equals", "(", "(", "(", "ReferenceBinding", ")", "this", ".", "recipient", ")", ".", "sourceName", ",", "TypeConstants", ".", "PACKAGE_INFO_NAME", ")", ")", "break", "checkTargetCompatibility", ";", "}", "break", ";", "case", "Binding", ".", "METHOD", ":", "if", "(", "(", "(", "MethodBinding", ")", "this", ".", "recipient", ")", ".", "isConstructor", "(", ")", ")", "{", "if", "(", "(", "metaTagBits", "&", "TagBits", ".", "AnnotationForConstructor", ")", "!=", "0", ")", "break", "checkTargetCompatibility", ";", "}", "else", "if", "(", "(", "metaTagBits", "&", "TagBits", ".", "AnnotationForMethod", ")", "!=", "0", ")", "break", "checkTargetCompatibility", ";", "break", ";", "case", "Binding", ".", "FIELD", ":", "if", "(", "(", "metaTagBits", "&", "TagBits", ".", "AnnotationForField", ")", "!=", "0", ")", "break", "checkTargetCompatibility", ";", "break", ";", "case", "Binding", ".", "LOCAL", ":", "if", "(", "(", "(", "(", "LocalVariableBinding", ")", "this", ".", "recipient", ")", ".", "tagBits", "&", "TagBits", ".", "IsArgument", ")", "!=", "0", ")", "{", "if", "(", "(", "metaTagBits", "&", "TagBits", ".", "AnnotationForParameter", ")", "!=", "0", ")", "break", "checkTargetCompatibility", ";", "}", "else", "if", "(", "(", "annotationType", ".", "tagBits", "&", "TagBits", ".", "AnnotationForLocalVariable", ")", "!=", "0", ")", "break", "checkTargetCompatibility", ";", "break", ";", "}", "scope", ".", "problemReporter", "(", ")", ".", "disallowedTargetForAnnotation", "(", "this", ")", ";", "}", "}", "}", "return", "this", ".", "resolvedType", ";", "}", "public", "abstract", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", ";", "}", "</s>" ]
5,672
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "UnaryExpression", "extends", "OperatorExpression", "{", "public", "Expression", "expression", ";", "public", "Constant", "optimizedBooleanConstant", ";", "public", "UnaryExpression", "(", "Expression", "expression", ",", "int", "operator", ")", "{", "this", ".", "expression", "=", "expression", ";", "this", ".", "bits", "|=", "operator", "<<", "OperatorSHIFT", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "this", ".", "expression", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "if", "(", "(", "(", "this", ".", "bits", "&", "OperatorMASK", ")", ">>", "OperatorSHIFT", ")", "==", "NOT", ")", "{", "return", "this", ".", "expression", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "asNegatedCondition", "(", ")", ";", "}", "else", "{", "return", "this", ".", "expression", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "}", "public", "Constant", "optimizedBooleanConstant", "(", ")", "{", "return", "this", ".", "optimizedBooleanConstant", "==", "null", "?", "this", ".", "constant", ":", "this", ".", "optimizedBooleanConstant", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "BranchLabel", "falseLabel", ",", "endifLabel", ";", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "switch", "(", "(", "this", ".", "bits", "&", "OperatorMASK", ")", ">>", "OperatorSHIFT", ")", "{", "case", "NOT", ":", "switch", "(", "(", "this", ".", "expression", ".", "implicitConversion", "&", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ")", "{", "case", "T_boolean", ":", "this", ".", "expression", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "null", ",", "(", "falseLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_0", "(", ")", ";", "if", "(", "falseLabel", ".", "forwardReferenceCount", "(", ")", ">", "0", ")", "{", "codeStream", ".", "goto_", "(", "endifLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ";", "codeStream", ".", "decrStackSize", "(", "1", ")", ";", "falseLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_1", "(", ")", ";", "endifLabel", ".", "place", "(", ")", ";", "}", "}", "else", "{", "falseLabel", ".", "place", "(", ")", ";", "}", "break", ";", "}", "break", ";", "case", "TWIDDLE", ":", "switch", "(", "(", "this", ".", "expression", ".", "implicitConversion", "&", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ")", "{", "case", "T_int", ":", "this", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_m1", "(", ")", ";", "codeStream", ".", "ixor", "(", ")", ";", "}", "break", ";", "case", "T_long", ":", "this", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "ldc2_w", "(", "-", "1L", ")", ";", "codeStream", ".", "lxor", "(", ")", ";", "}", "}", "break", ";", "case", "MINUS", ":", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "valueRequired", ")", "{", "switch", "(", "(", "this", ".", "expression", ".", "implicitConversion", "&", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ")", "{", "case", "T_int", ":", "codeStream", ".", "generateInlinedValue", "(", "this", ".", "constant", ".", "intValue", "(", ")", "*", "-", "1", ")", ";", "break", ";", "case", "T_float", ":", "codeStream", ".", "generateInlinedValue", "(", "this", ".", "constant", ".", "floatValue", "(", ")", "*", "-", "1.0f", ")", ";", "break", ";", "case", "T_long", ":", "codeStream", ".", "generateInlinedValue", "(", "this", ".", "constant", ".", "longValue", "(", ")", "*", "-", "1L", ")", ";", "break", ";", "case", "T_double", ":", "codeStream", ".", "generateInlinedValue", "(", "this", ".", "constant", ".", "doubleValue", "(", ")", "*", "-", "1.0", ")", ";", "}", "}", "}", "else", "{", "this", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "switch", "(", "(", "this", ".", "expression", ".", "implicitConversion", "&", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ")", "{", "case", "T_int", ":", "codeStream", ".", "ineg", "(", ")", ";", "break", ";", "case", "T_float", ":", "codeStream", ".", "fneg", "(", ")", ";", "break", ";", "case", "T_long", ":", "codeStream", ".", "lneg", "(", ")", ";", "break", ";", "case", "T_double", ":", "codeStream", ".", "dneg", "(", ")", ";", "}", "}", "}", "break", ";", "case", "PLUS", ":", "this", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "void", "generateOptimizedBoolean", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "if", "(", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "constant", ".", "typeID", "(", ")", "==", "T_boolean", ")", ")", "{", "super", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "return", ";", "}", "if", "(", "(", "(", "this", ".", "bits", "&", "OperatorMASK", ")", ">>", "OperatorSHIFT", ")", "==", "NOT", ")", "{", "this", ".", "expression", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "falseLabel", ",", "trueLabel", ",", "valueRequired", ")", ";", "}", "else", "{", "super", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "}", "}", "public", "StringBuffer", "printExpressionNoParenthesis", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "output", ".", "append", "(", "operatorToString", "(", ")", ")", ".", "append", "(", "'", "'", ")", ";", "return", "this", ".", "expression", ".", "printExpression", "(", "0", ",", "output", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "boolean", "expressionIsCast", ";", "if", "(", "(", "expressionIsCast", "=", "this", ".", "expression", "instanceof", "CastExpression", ")", "==", "true", ")", "this", ".", "expression", ".", "bits", "|=", "DisableUnnecessaryCastCheck", ";", "TypeBinding", "expressionType", "=", "this", ".", "expression", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "expressionType", "==", "null", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "return", "null", ";", "}", "int", "expressionTypeID", "=", "expressionType", ".", "id", ";", "boolean", "use15specifics", "=", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "if", "(", "use15specifics", ")", "{", "if", "(", "!", "expressionType", ".", "isBaseType", "(", ")", ")", "{", "expressionTypeID", "=", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "expressionType", ")", ".", "id", ";", "}", "}", "if", "(", "expressionTypeID", ">", "15", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidOperator", "(", "this", ",", "expressionType", ")", ";", "return", "null", ";", "}", "int", "tableId", ";", "switch", "(", "(", "this", ".", "bits", "&", "OperatorMASK", ")", ">>", "OperatorSHIFT", ")", "{", "case", "NOT", ":", "tableId", "=", "AND_AND", ";", "break", ";", "case", "TWIDDLE", ":", "tableId", "=", "LEFT_SHIFT", ";", "break", ";", "default", ":", "tableId", "=", "MINUS", ";", "}", "int", "operatorSignature", "=", "OperatorSignatures", "[", "tableId", "]", "[", "(", "expressionTypeID", "<<", "4", ")", "+", "expressionTypeID", "]", ";", "this", ".", "expression", ".", "computeConversion", "(", "scope", ",", "TypeBinding", ".", "wellKnownType", "(", "scope", ",", "(", "operatorSignature", ">>>", "16", ")", "&", "0x0000F", ")", ",", "expressionType", ")", ";", "this", ".", "bits", "|=", "operatorSignature", "&", "0xF", ";", "switch", "(", "operatorSignature", "&", "0xF", ")", "{", "case", "T_boolean", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "BOOLEAN", ";", "break", ";", "case", "T_byte", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "BYTE", ";", "break", ";", "case", "T_char", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "CHAR", ";", "break", ";", "case", "T_double", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "DOUBLE", ";", "break", ";", "case", "T_float", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "FLOAT", ";", "break", ";", "case", "T_int", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "INT", ";", "break", ";", "case", "T_long", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "LONG", ";", "break", ";", "default", ":", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "expressionTypeID", "!=", "T_undefined", ")", "scope", ".", "problemReporter", "(", ")", ".", "invalidOperator", "(", "this", ",", "expressionType", ")", ";", "return", "null", ";", "}", "if", "(", "this", ".", "expression", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "this", ".", "constant", "=", "Constant", ".", "computeConstantOperation", "(", "this", ".", "expression", ".", "constant", ",", "expressionTypeID", ",", "(", "this", ".", "bits", "&", "OperatorMASK", ")", ">>", "OperatorSHIFT", ")", ";", "}", "else", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "(", "(", "this", ".", "bits", "&", "OperatorMASK", ")", ">>", "OperatorSHIFT", ")", "==", "NOT", ")", "{", "Constant", "cst", "=", "this", ".", "expression", ".", "optimizedBooleanConstant", "(", ")", ";", "if", "(", "cst", "!=", "Constant", ".", "NotAConstant", ")", "this", ".", "optimizedBooleanConstant", "=", "BooleanConstant", ".", "fromValue", "(", "!", "cst", ".", "booleanValue", "(", ")", ")", ";", "}", "}", "if", "(", "expressionIsCast", ")", "{", "CastExpression", ".", "checkNeedForArgumentCast", "(", "scope", ",", "tableId", ",", "operatorSignature", ",", "this", ".", "expression", ",", "expressionTypeID", ")", ";", "}", "return", "this", ".", "resolvedType", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "this", ".", "expression", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
5,673
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "abstract", "class", "Literal", "extends", "Expression", "{", "public", "Literal", "(", "int", "s", ",", "int", "e", ")", "{", "this", ".", "sourceStart", "=", "s", ";", "this", ".", "sourceEnd", "=", "e", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "return", "flowInfo", ";", "}", "public", "abstract", "void", "computeConstant", "(", ")", ";", "public", "abstract", "TypeBinding", "literalType", "(", "BlockScope", "scope", ")", ";", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "output", ".", "append", "(", "source", "(", ")", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "this", ".", "resolvedType", "=", "literalType", "(", "scope", ")", ";", "computeConstant", "(", ")", ";", "if", "(", "this", ".", "constant", "==", "null", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "constantOutOfRange", "(", "this", ",", "this", ".", "resolvedType", ")", ";", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "}", "return", "this", ".", "resolvedType", ";", "}", "public", "abstract", "char", "[", "]", "source", "(", ")", ";", "}", "</s>" ]
5,674
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "IfStatement", "extends", "Statement", "{", "public", "Expression", "condition", ";", "public", "Statement", "thenStatement", ";", "public", "Statement", "elseStatement", ";", "int", "thenInitStateIndex", "=", "-", "1", ";", "int", "elseInitStateIndex", "=", "-", "1", ";", "int", "mergedInitStateIndex", "=", "-", "1", ";", "public", "IfStatement", "(", "Expression", "condition", ",", "Statement", "thenStatement", ",", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "condition", "=", "condition", ";", "this", ".", "thenStatement", "=", "thenStatement", ";", "if", "(", "thenStatement", "instanceof", "EmptyStatement", ")", "thenStatement", ".", "bits", "|=", "IsUsefulEmptyStatement", ";", "this", ".", "sourceStart", "=", "sourceStart", ";", "this", ".", "sourceEnd", "=", "sourceEnd", ";", "}", "public", "IfStatement", "(", "Expression", "condition", ",", "Statement", "thenStatement", ",", "Statement", "elseStatement", ",", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "condition", "=", "condition", ";", "this", ".", "thenStatement", "=", "thenStatement", ";", "if", "(", "thenStatement", "instanceof", "EmptyStatement", ")", "thenStatement", ".", "bits", "|=", "IsUsefulEmptyStatement", ";", "this", ".", "elseStatement", "=", "elseStatement", ";", "if", "(", "elseStatement", "instanceof", "IfStatement", ")", "elseStatement", ".", "bits", "|=", "IsElseIfStatement", ";", "if", "(", "elseStatement", "instanceof", "EmptyStatement", ")", "elseStatement", ".", "bits", "|=", "IsUsefulEmptyStatement", ";", "this", ".", "sourceStart", "=", "sourceStart", ";", "this", ".", "sourceEnd", "=", "sourceEnd", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "FlowInfo", "conditionFlowInfo", "=", "this", ".", "condition", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "int", "initialComplaintLevel", "=", "(", "flowInfo", ".", "reachMode", "(", ")", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", "?", "Statement", ".", "COMPLAINED_FAKE_REACHABLE", ":", "Statement", ".", "NOT_COMPLAINED", ";", "Constant", "cst", "=", "this", ".", "condition", ".", "optimizedBooleanConstant", "(", ")", ";", "boolean", "isConditionOptimizedTrue", "=", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "true", ";", "boolean", "isConditionOptimizedFalse", "=", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "false", ";", "FlowInfo", "thenFlowInfo", "=", "conditionFlowInfo", ".", "safeInitsWhenTrue", "(", ")", ";", "if", "(", "isConditionOptimizedFalse", ")", "{", "thenFlowInfo", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE", ")", ";", "}", "FlowInfo", "elseFlowInfo", "=", "conditionFlowInfo", ".", "initsWhenFalse", "(", ")", ".", "copy", "(", ")", ";", "if", "(", "isConditionOptimizedTrue", ")", "{", "elseFlowInfo", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE", ")", ";", "}", "if", "(", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ")", "&&", "(", "(", "thenFlowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", ")", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "IsThenStatementUnreachable", ";", "}", "else", "if", "(", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ")", "&&", "(", "(", "elseFlowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", ")", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "IsElseStatementUnreachable", ";", "}", "if", "(", "this", ".", "thenStatement", "!=", "null", ")", "{", "this", ".", "thenInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "thenFlowInfo", ")", ";", "if", "(", "isConditionOptimizedFalse", "||", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsThenStatementUnreachable", ")", "!=", "0", ")", ")", "{", "if", "(", "!", "isKnowDeadCodePattern", "(", "this", ".", "condition", ")", "||", "currentScope", ".", "compilerOptions", "(", ")", ".", "reportDeadCodeInTrivialIfStatement", ")", "{", "this", ".", "thenStatement", ".", "complainIfUnreachable", "(", "thenFlowInfo", ",", "currentScope", ",", "initialComplaintLevel", ")", ";", "}", "else", "{", "this", ".", "bits", "&=", "~", "ASTNode", ".", "IsThenStatementUnreachable", ";", "}", "}", "thenFlowInfo", "=", "this", ".", "thenStatement", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "thenFlowInfo", ")", ";", "}", "if", "(", "(", "thenFlowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "ThenExit", ";", "}", "if", "(", "this", ".", "elseStatement", "!=", "null", ")", "{", "if", "(", "thenFlowInfo", "==", "FlowInfo", ".", "DEAD_END", "&&", "(", "this", ".", "bits", "&", "IsElseIfStatement", ")", "==", "0", "&&", "!", "(", "this", ".", "elseStatement", "instanceof", "IfStatement", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "unnecessaryElse", "(", "this", ".", "elseStatement", ")", ";", "}", "this", ".", "elseInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "elseFlowInfo", ")", ";", "if", "(", "isConditionOptimizedTrue", "||", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsElseStatementUnreachable", ")", "!=", "0", ")", ")", "{", "if", "(", "!", "isKnowDeadCodePattern", "(", "this", ".", "condition", ")", "||", "currentScope", ".", "compilerOptions", "(", ")", ".", "reportDeadCodeInTrivialIfStatement", ")", "{", "this", ".", "elseStatement", ".", "complainIfUnreachable", "(", "elseFlowInfo", ",", "currentScope", ",", "initialComplaintLevel", ")", ";", "}", "else", "{", "this", ".", "bits", "&=", "~", "ASTNode", ".", "IsElseStatementUnreachable", ";", "}", "}", "elseFlowInfo", "=", "this", ".", "elseStatement", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "elseFlowInfo", ")", ";", "}", "FlowInfo", "mergedInfo", "=", "FlowInfo", ".", "mergedOptimizedBranchesIfElse", "(", "thenFlowInfo", ",", "isConditionOptimizedTrue", ",", "elseFlowInfo", ",", "isConditionOptimizedFalse", ",", "true", ",", "flowInfo", ",", "this", ")", ";", "this", ".", "mergedInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "mergedInfo", ")", ";", "return", "mergedInfo", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "IsReachable", ")", "==", "0", ")", "{", "return", ";", "}", "int", "pc", "=", "codeStream", ".", "position", ";", "BranchLabel", "endifLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "Constant", "cst", ";", "boolean", "hasThenPart", "=", "!", "(", "(", "(", "cst", "=", "this", ".", "condition", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "false", ")", "||", "this", ".", "thenStatement", "==", "null", "||", "this", ".", "thenStatement", ".", "isEmptyBlock", "(", ")", ")", ";", "boolean", "hasElsePart", "=", "!", "(", "(", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "true", ")", "||", "this", ".", "elseStatement", "==", "null", "||", "this", ".", "elseStatement", ".", "isEmptyBlock", "(", ")", ")", ";", "if", "(", "hasThenPart", ")", "{", "BranchLabel", "falseLabel", "=", "null", ";", "if", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsElseStatementUnreachable", ")", "!=", "0", ")", "||", "(", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "true", ")", ")", "{", "this", ".", "condition", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "}", "else", "{", "this", ".", "condition", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "null", ",", "hasElsePart", "?", "(", "falseLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ":", "endifLabel", ",", "true", ")", ";", "}", "if", "(", "this", ".", "thenInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "thenInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "thenInitStateIndex", ")", ";", "}", "this", ".", "thenStatement", ".", "generateCode", "(", "currentScope", ",", "codeStream", ")", ";", "if", "(", "hasElsePart", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "ThenExit", ")", "==", "0", ")", "{", "this", ".", "thenStatement", ".", "branchChainTo", "(", "endifLabel", ")", ";", "int", "position", "=", "codeStream", ".", "position", ";", "codeStream", ".", "goto_", "(", "endifLabel", ")", ";", "codeStream", ".", "updateLastRecordedEndPC", "(", "(", "this", ".", "thenStatement", "instanceof", "Block", ")", "?", "(", "(", "Block", ")", "this", ".", "thenStatement", ")", ".", "scope", ":", "currentScope", ",", "position", ")", ";", "}", "if", "(", "this", ".", "elseInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "elseInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "elseInitStateIndex", ")", ";", "}", "if", "(", "falseLabel", "!=", "null", ")", "falseLabel", ".", "place", "(", ")", ";", "this", ".", "elseStatement", ".", "generateCode", "(", "currentScope", ",", "codeStream", ")", ";", "}", "}", "else", "if", "(", "hasElsePart", ")", "{", "if", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsThenStatementUnreachable", ")", "!=", "0", ")", "||", "(", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "false", ")", ")", "{", "this", ".", "condition", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "}", "else", "{", "this", ".", "condition", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "endifLabel", ",", "null", ",", "true", ")", ";", "}", "if", "(", "this", ".", "elseInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "elseInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "elseInitStateIndex", ")", ";", "}", "this", ".", "elseStatement", ".", "generateCode", "(", "currentScope", ",", "codeStream", ")", ";", "}", "else", "{", "this", ".", "condition", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "if", "(", "this", ".", "mergedInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "}", "endifLabel", ".", "place", "(", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "StringBuffer", "printStatement", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "indent", ",", "output", ")", ".", "append", "(", "\"if", "(\"", ")", ";", "this", ".", "condition", ".", "printExpression", "(", "0", ",", "output", ")", ".", "append", "(", "\")n\"", ")", ";", "this", ".", "thenStatement", ".", "printStatement", "(", "indent", "+", "2", ",", "output", ")", ";", "if", "(", "this", ".", "elseStatement", "!=", "null", ")", "{", "output", ".", "append", "(", "'\\n'", ")", ";", "printIndent", "(", "indent", ",", "output", ")", ";", "output", ".", "append", "(", "\"elsen\"", ")", ";", "this", ".", "elseStatement", ".", "printStatement", "(", "indent", "+", "2", ",", "output", ")", ";", "}", "return", "output", ";", "}", "public", "void", "resolve", "(", "BlockScope", "scope", ")", "{", "TypeBinding", "type", "=", "this", ".", "condition", ".", "resolveTypeExpecting", "(", "scope", ",", "TypeBinding", ".", "BOOLEAN", ")", ";", "this", ".", "condition", ".", "computeConversion", "(", "scope", ",", "type", ",", "type", ")", ";", "if", "(", "this", ".", "thenStatement", "!=", "null", ")", "this", ".", "thenStatement", ".", "resolve", "(", "scope", ")", ";", "if", "(", "this", ".", "elseStatement", "!=", "null", ")", "this", ".", "elseStatement", ".", "resolve", "(", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "this", ".", "condition", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "if", "(", "this", ".", "thenStatement", "!=", "null", ")", "this", ".", "thenStatement", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "if", "(", "this", ".", "elseStatement", "!=", "null", ")", "this", ".", "elseStatement", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
5,675
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "CompilerOptions", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "JavadocTagConstants", ";", "public", "class", "Javadoc", "extends", "ASTNode", "{", "public", "JavadocSingleNameReference", "[", "]", "paramReferences", ";", "public", "JavadocSingleTypeReference", "[", "]", "paramTypeParameters", ";", "public", "TypeReference", "[", "]", "exceptionReferences", ";", "public", "JavadocReturnStatement", "returnStatement", ";", "public", "Expression", "[", "]", "seeReferences", ";", "public", "long", "[", "]", "inheritedPositions", "=", "null", ";", "public", "JavadocSingleNameReference", "[", "]", "invalidParameters", ";", "public", "long", "valuePositions", "=", "-", "1", ";", "public", "Javadoc", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "sourceStart", "=", "sourceStart", ";", "this", ".", "sourceEnd", "=", "sourceEnd", ";", "}", "boolean", "canBeSeen", "(", "int", "visibility", ",", "int", "modifiers", ")", "{", "if", "(", "modifiers", "<", "0", ")", "return", "true", ";", "switch", "(", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccVisibilityMASK", ")", "{", "case", "ClassFileConstants", ".", "AccPublic", ":", "return", "true", ";", "case", "ClassFileConstants", ".", "AccProtected", ":", "return", "(", "visibility", "!=", "ClassFileConstants", ".", "AccPublic", ")", ";", "case", "ClassFileConstants", ".", "AccDefault", ":", "return", "(", "visibility", "==", "ClassFileConstants", ".", "AccDefault", "||", "visibility", "==", "ClassFileConstants", ".", "AccPrivate", ")", ";", "case", "ClassFileConstants", ".", "AccPrivate", ":", "return", "(", "visibility", "==", "ClassFileConstants", ".", "AccPrivate", ")", ";", "}", "return", "true", ";", "}", "public", "ASTNode", "getNodeStartingAt", "(", "int", "start", ")", "{", "int", "length", "=", "0", ";", "if", "(", "this", ".", "paramReferences", "!=", "null", ")", "{", "length", "=", "this", ".", "paramReferences", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "JavadocSingleNameReference", "param", "=", "this", ".", "paramReferences", "[", "i", "]", ";", "if", "(", "param", ".", "sourceStart", "==", "start", ")", "{", "return", "param", ";", "}", "}", "}", "if", "(", "this", ".", "invalidParameters", "!=", "null", ")", "{", "length", "=", "this", ".", "invalidParameters", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "JavadocSingleNameReference", "param", "=", "this", ".", "invalidParameters", "[", "i", "]", ";", "if", "(", "param", ".", "sourceStart", "==", "start", ")", "{", "return", "param", ";", "}", "}", "}", "if", "(", "this", ".", "paramTypeParameters", "!=", "null", ")", "{", "length", "=", "this", ".", "paramTypeParameters", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "JavadocSingleTypeReference", "param", "=", "this", ".", "paramTypeParameters", "[", "i", "]", ";", "if", "(", "param", ".", "sourceStart", "==", "start", ")", "{", "return", "param", ";", "}", "}", "}", "if", "(", "this", ".", "exceptionReferences", "!=", "null", ")", "{", "length", "=", "this", ".", "exceptionReferences", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeReference", "typeRef", "=", "this", ".", "exceptionReferences", "[", "i", "]", ";", "if", "(", "typeRef", ".", "sourceStart", "==", "start", ")", "{", "return", "typeRef", ";", "}", "}", "}", "if", "(", "this", ".", "seeReferences", "!=", "null", ")", "{", "length", "=", "this", ".", "seeReferences", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Expression", "expression", "=", "this", ".", "seeReferences", "[", "i", "]", ";", "if", "(", "expression", ".", "sourceStart", "==", "start", ")", "{", "return", "expression", ";", "}", "else", "if", "(", "expression", "instanceof", "JavadocAllocationExpression", ")", "{", "JavadocAllocationExpression", "allocationExpr", "=", "(", "JavadocAllocationExpression", ")", "this", ".", "seeReferences", "[", "i", "]", ";", "if", "(", "allocationExpr", ".", "binding", "!=", "null", "&&", "allocationExpr", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "if", "(", "allocationExpr", ".", "arguments", "!=", "null", ")", "{", "for", "(", "int", "j", "=", "0", ",", "l", "=", "allocationExpr", ".", "arguments", ".", "length", ";", "j", "<", "l", ";", "j", "++", ")", "{", "if", "(", "allocationExpr", ".", "arguments", "[", "j", "]", ".", "sourceStart", "==", "start", ")", "{", "return", "allocationExpr", ".", "arguments", "[", "j", "]", ";", "}", "}", "}", "}", "}", "else", "if", "(", "expression", "instanceof", "JavadocMessageSend", ")", "{", "JavadocMessageSend", "messageSend", "=", "(", "JavadocMessageSend", ")", "this", ".", "seeReferences", "[", "i", "]", ";", "if", "(", "messageSend", ".", "binding", "!=", "null", "&&", "messageSend", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "if", "(", "messageSend", ".", "arguments", "!=", "null", ")", "{", "for", "(", "int", "j", "=", "0", ",", "l", "=", "messageSend", ".", "arguments", ".", "length", ";", "j", "<", "l", ";", "j", "++", ")", "{", "if", "(", "messageSend", ".", "arguments", "[", "j", "]", ".", "sourceStart", "==", "start", ")", "{", "return", "messageSend", ".", "arguments", "[", "j", "]", ";", "}", "}", "}", "}", "}", "}", "}", "return", "null", ";", "}", "public", "StringBuffer", "print", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "indent", ",", "output", ")", ".", "append", "(", "\"/**n\"", ")", ";", "if", "(", "this", ".", "paramReferences", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "paramReferences", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "printIndent", "(", "indent", "+", "1", ",", "output", ")", ".", "append", "(", "\"", "*", "@param", "\"", ")", ";", "this", ".", "paramReferences", "[", "i", "]", ".", "print", "(", "indent", ",", "output", ")", ".", "append", "(", "'\\n'", ")", ";", "}", "}", "if", "(", "this", ".", "paramTypeParameters", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "paramTypeParameters", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "printIndent", "(", "indent", "+", "1", ",", "output", ")", ".", "append", "(", "\"", "*", "@param", "<\"", ")", ";", "this", ".", "paramTypeParameters", "[", "i", "]", ".", "print", "(", "indent", ",", "output", ")", ".", "append", "(", "\">n\"", ")", ";", "}", "}", "if", "(", "this", ".", "returnStatement", "!=", "null", ")", "{", "printIndent", "(", "indent", "+", "1", ",", "output", ")", ".", "append", "(", "\"", "*", "@\"", ")", ";", "this", ".", "returnStatement", ".", "print", "(", "indent", ",", "output", ")", ".", "append", "(", "'\\n'", ")", ";", "}", "if", "(", "this", ".", "exceptionReferences", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "exceptionReferences", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "printIndent", "(", "indent", "+", "1", ",", "output", ")", ".", "append", "(", "\"", "*", "@throws", "\"", ")", ";", "this", ".", "exceptionReferences", "[", "i", "]", ".", "print", "(", "indent", ",", "output", ")", ".", "append", "(", "'\\n'", ")", ";", "}", "}", "if", "(", "this", ".", "seeReferences", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "seeReferences", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "printIndent", "(", "indent", "+", "1", ",", "output", ")", ".", "append", "(", "\"", "*", "@see", "\"", ")", ";", "this", ".", "seeReferences", "[", "i", "]", ".", "print", "(", "indent", ",", "output", ")", ".", "append", "(", "'\\n'", ")", ";", "}", "}", "printIndent", "(", "indent", ",", "output", ")", ".", "append", "(", "\"", "*/n\"", ")", ";", "return", "output", ";", "}", "public", "void", "resolve", "(", "ClassScope", "scope", ")", "{", "if", "(", "this", ".", "inheritedPositions", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "inheritedPositions", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "++", "i", ")", "{", "int", "start", "=", "(", "int", ")", "(", "this", ".", "inheritedPositions", "[", "i", "]", ">>>", "32", ")", ";", "int", "end", "=", "(", "int", ")", "this", ".", "inheritedPositions", "[", "i", "]", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "start", ",", "end", ")", ";", "}", "}", "int", "paramTagsSize", "=", "this", ".", "paramReferences", "==", "null", "?", "0", ":", "this", ".", "paramReferences", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "paramTagsSize", ";", "i", "++", ")", "{", "JavadocSingleNameReference", "param", "=", "this", ".", "paramReferences", "[", "i", "]", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "param", ".", "tagSourceStart", ",", "param", ".", "tagSourceEnd", ")", ";", "}", "resolveTypeParameterTags", "(", "scope", ",", "true", ")", ";", "if", "(", "this", ".", "returnStatement", "!=", "null", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "this", ".", "returnStatement", ".", "sourceStart", ",", "this", ".", "returnStatement", ".", "sourceEnd", ")", ";", "}", "int", "throwsTagsLength", "=", "this", ".", "exceptionReferences", "==", "null", "?", "0", ":", "this", ".", "exceptionReferences", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "throwsTagsLength", ";", "i", "++", ")", "{", "TypeReference", "typeRef", "=", "this", ".", "exceptionReferences", "[", "i", "]", ";", "int", "start", ",", "end", ";", "if", "(", "typeRef", "instanceof", "JavadocSingleTypeReference", ")", "{", "JavadocSingleTypeReference", "singleRef", "=", "(", "JavadocSingleTypeReference", ")", "typeRef", ";", "start", "=", "singleRef", ".", "tagSourceStart", ";", "end", "=", "singleRef", ".", "tagSourceEnd", ";", "}", "else", "if", "(", "typeRef", "instanceof", "JavadocQualifiedTypeReference", ")", "{", "JavadocQualifiedTypeReference", "qualifiedRef", "=", "(", "JavadocQualifiedTypeReference", ")", "typeRef", ";", "start", "=", "qualifiedRef", ".", "tagSourceStart", ";", "end", "=", "qualifiedRef", ".", "tagSourceEnd", ";", "}", "else", "{", "start", "=", "typeRef", ".", "sourceStart", ";", "end", "=", "typeRef", ".", "sourceEnd", ";", "}", "scope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "start", ",", "end", ")", ";", "}", "int", "seeTagsLength", "=", "this", ".", "seeReferences", "==", "null", "?", "0", ":", "this", ".", "seeReferences", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "seeTagsLength", ";", "i", "++", ")", "{", "resolveReference", "(", "this", ".", "seeReferences", "[", "i", "]", ",", "scope", ")", ";", "}", "boolean", "source15", "=", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "if", "(", "!", "source15", "&&", "this", ".", "valuePositions", "!=", "-", "1", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "(", "int", ")", "(", "this", ".", "valuePositions", ">>>", "32", ")", ",", "(", "int", ")", "this", ".", "valuePositions", ")", ";", "}", "}", "public", "void", "resolve", "(", "CompilationUnitScope", "unitScope", ")", "{", "}", "public", "void", "resolve", "(", "MethodScope", "methScope", ")", "{", "AbstractMethodDeclaration", "methDecl", "=", "methScope", ".", "referenceMethod", "(", ")", ";", "boolean", "overriding", "=", "methDecl", "==", "null", "||", "methDecl", ".", "binding", "==", "null", "?", "false", ":", "!", "methDecl", ".", "binding", ".", "isStatic", "(", ")", "&&", "(", "(", "methDecl", ".", "binding", ".", "modifiers", "&", "(", "ExtraCompilerModifiers", ".", "AccImplementing", "|", "ExtraCompilerModifiers", ".", "AccOverriding", ")", ")", "!=", "0", ")", ";", "int", "seeTagsLength", "=", "this", ".", "seeReferences", "==", "null", "?", "0", ":", "this", ".", "seeReferences", ".", "length", ";", "boolean", "superRef", "=", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "seeTagsLength", ";", "i", "++", ")", "{", "resolveReference", "(", "this", ".", "seeReferences", "[", "i", "]", ",", "methScope", ")", ";", "if", "(", "methDecl", "!=", "null", "&&", "!", "superRef", ")", "{", "if", "(", "!", "methDecl", ".", "isConstructor", "(", ")", ")", "{", "if", "(", "overriding", "&&", "this", ".", "seeReferences", "[", "i", "]", "instanceof", "JavadocMessageSend", ")", "{", "JavadocMessageSend", "messageSend", "=", "(", "JavadocMessageSend", ")", "this", ".", "seeReferences", "[", "i", "]", ";", "if", "(", "messageSend", ".", "binding", "!=", "null", "&&", "messageSend", ".", "binding", ".", "isValidBinding", "(", ")", "&&", "messageSend", ".", "actualReceiverType", "instanceof", "ReferenceBinding", ")", "{", "ReferenceBinding", "methodReceiverType", "=", "(", "ReferenceBinding", ")", "messageSend", ".", "actualReceiverType", ";", "TypeBinding", "superType", "=", "methDecl", ".", "binding", ".", "declaringClass", ".", "findSuperTypeOriginatingFrom", "(", "methodReceiverType", ")", ";", "if", "(", "superType", "!=", "null", "&&", "superType", ".", "original", "(", ")", "!=", "methDecl", ".", "binding", ".", "declaringClass", "&&", "CharOperation", ".", "equals", "(", "messageSend", ".", "selector", ",", "methDecl", ".", "selector", ")", ")", "{", "if", "(", "methScope", ".", "environment", "(", ")", ".", "methodVerifier", "(", ")", ".", "doesMethodOverride", "(", "methDecl", ".", "binding", ",", "messageSend", ".", "binding", ".", "original", "(", ")", ")", ")", "{", "superRef", "=", "true", ";", "}", "}", "}", "}", "}", "else", "if", "(", "this", ".", "seeReferences", "[", "i", "]", "instanceof", "JavadocAllocationExpression", ")", "{", "JavadocAllocationExpression", "allocationExpr", "=", "(", "JavadocAllocationExpression", ")", "this", ".", "seeReferences", "[", "i", "]", ";", "if", "(", "allocationExpr", ".", "binding", "!=", "null", "&&", "allocationExpr", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "ReferenceBinding", "allocType", "=", "(", "ReferenceBinding", ")", "allocationExpr", ".", "resolvedType", ".", "original", "(", ")", ";", "ReferenceBinding", "superType", "=", "(", "ReferenceBinding", ")", "methDecl", ".", "binding", ".", "declaringClass", ".", "findSuperTypeOriginatingFrom", "(", "allocType", ")", ";", "if", "(", "superType", "!=", "null", "&&", "superType", ".", "original", "(", ")", "!=", "methDecl", ".", "binding", ".", "declaringClass", ")", "{", "MethodBinding", "superConstructor", "=", "methScope", ".", "getConstructor", "(", "superType", ",", "methDecl", ".", "binding", ".", "parameters", ",", "allocationExpr", ")", ";", "if", "(", "superConstructor", ".", "isValidBinding", "(", ")", "&&", "superConstructor", ".", "original", "(", ")", "==", "allocationExpr", ".", "binding", ".", "original", "(", ")", ")", "{", "if", "(", "superConstructor", ".", "areParametersEqual", "(", "methDecl", ".", "binding", ")", ")", "{", "superRef", "=", "true", ";", "}", "}", "}", "}", "}", "}", "}", "if", "(", "!", "superRef", "&&", "methDecl", "!=", "null", "&&", "methDecl", ".", "annotations", "!=", "null", ")", "{", "int", "length", "=", "methDecl", ".", "annotations", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", "&&", "!", "superRef", ";", "i", "++", ")", "{", "superRef", "=", "(", "methDecl", ".", "binding", ".", "tagBits", "&", "TagBits", ".", "AnnotationOverride", ")", "!=", "0", ";", "}", "}", "boolean", "reportMissing", "=", "methDecl", "==", "null", "||", "!", "(", "(", "overriding", "&&", "this", ".", "inheritedPositions", "!=", "null", ")", "||", "superRef", "||", "(", "methDecl", ".", "binding", ".", "declaringClass", "!=", "null", "&&", "methDecl", ".", "binding", ".", "declaringClass", ".", "isLocalType", "(", ")", ")", ")", ";", "if", "(", "!", "overriding", "&&", "this", ".", "inheritedPositions", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "inheritedPositions", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "++", "i", ")", "{", "int", "start", "=", "(", "int", ")", "(", "this", ".", "inheritedPositions", "[", "i", "]", ">>>", "32", ")", ";", "int", "end", "=", "(", "int", ")", "this", ".", "inheritedPositions", "[", "i", "]", ";", "methScope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "start", ",", "end", ")", ";", "}", "}", "CompilerOptions", "compilerOptions", "=", "methScope", ".", "compilerOptions", "(", ")", ";", "resolveParamTags", "(", "methScope", ",", "reportMissing", ",", "compilerOptions", ".", "reportUnusedParameterIncludeDocCommentReference", ")", ";", "resolveTypeParameterTags", "(", "methScope", ",", "reportMissing", ")", ";", "if", "(", "this", ".", "returnStatement", "==", "null", ")", "{", "if", "(", "reportMissing", "&&", "methDecl", "!=", "null", ")", "{", "if", "(", "methDecl", ".", "isMethod", "(", ")", ")", "{", "MethodDeclaration", "meth", "=", "(", "MethodDeclaration", ")", "methDecl", ";", "if", "(", "meth", ".", "binding", ".", "returnType", "!=", "TypeBinding", ".", "VOID", ")", "{", "methScope", ".", "problemReporter", "(", ")", ".", "javadocMissingReturnTag", "(", "meth", ".", "returnType", ".", "sourceStart", ",", "meth", ".", "returnType", ".", "sourceEnd", ",", "methDecl", ".", "binding", ".", "modifiers", ")", ";", "}", "}", "}", "}", "else", "{", "this", ".", "returnStatement", ".", "resolve", "(", "methScope", ")", ";", "}", "resolveThrowsTags", "(", "methScope", ",", "reportMissing", ")", ";", "boolean", "source15", "=", "compilerOptions", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "if", "(", "!", "source15", "&&", "methDecl", "!=", "null", "&&", "this", ".", "valuePositions", "!=", "-", "1", ")", "{", "methScope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "(", "int", ")", "(", "this", ".", "valuePositions", ">>>", "32", ")", ",", "(", "int", ")", "this", ".", "valuePositions", ")", ";", "}", "int", "length", "=", "this", ".", "invalidParameters", "==", "null", "?", "0", ":", "this", ".", "invalidParameters", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "invalidParameters", "[", "i", "]", ".", "resolve", "(", "methScope", ",", "false", ",", "false", ")", ";", "}", "}", "private", "void", "resolveReference", "(", "Expression", "reference", ",", "Scope", "scope", ")", "{", "int", "problemCount", "=", "scope", ".", "referenceContext", "(", ")", ".", "compilationResult", "(", ")", ".", "problemCount", ";", "switch", "(", "scope", ".", "kind", ")", "{", "case", "Scope", ".", "METHOD_SCOPE", ":", "reference", ".", "resolveType", "(", "(", "MethodScope", ")", "scope", ")", ";", "break", ";", "case", "Scope", ".", "CLASS_SCOPE", ":", "reference", ".", "resolveType", "(", "(", "ClassScope", ")", "scope", ")", ";", "break", ";", "}", "boolean", "hasProblems", "=", "scope", ".", "referenceContext", "(", ")", ".", "compilationResult", "(", ")", ".", "problemCount", ">", "problemCount", ";", "boolean", "source15", "=", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "int", "scopeModifiers", "=", "-", "1", ";", "if", "(", "reference", "instanceof", "JavadocFieldReference", ")", "{", "JavadocFieldReference", "fieldRef", "=", "(", "JavadocFieldReference", ")", "reference", ";", "if", "(", "fieldRef", ".", "methodBinding", "!=", "null", ")", "{", "if", "(", "fieldRef", ".", "tagValue", "==", "JavadocTagConstants", ".", "TAG_VALUE_VALUE", ")", "{", "if", "(", "scopeModifiers", "==", "-", "1", ")", "scopeModifiers", "=", "scope", ".", "getDeclarationModifiers", "(", ")", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidValueReference", "(", "fieldRef", ".", "sourceStart", ",", "fieldRef", ".", "sourceEnd", ",", "scopeModifiers", ")", ";", "}", "else", "if", "(", "fieldRef", ".", "actualReceiverType", "!=", "null", ")", "{", "if", "(", "scope", ".", "enclosingSourceType", "(", ")", ".", "isCompatibleWith", "(", "fieldRef", ".", "actualReceiverType", ")", ")", "{", "fieldRef", ".", "bits", "|=", "ASTNode", ".", "SuperAccess", ";", "}", "fieldRef", ".", "methodBinding", "=", "scope", ".", "findMethod", "(", "(", "ReferenceBinding", ")", "fieldRef", ".", "actualReceiverType", ",", "fieldRef", ".", "token", ",", "new", "TypeBinding", "[", "0", "]", ",", "fieldRef", ")", ";", "}", "}", "else", "if", "(", "source15", "&&", "fieldRef", ".", "binding", "!=", "null", "&&", "fieldRef", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "if", "(", "fieldRef", ".", "tagValue", "==", "JavadocTagConstants", ".", "TAG_VALUE_VALUE", "&&", "!", "fieldRef", ".", "binding", ".", "isStatic", "(", ")", ")", "{", "if", "(", "scopeModifiers", "==", "-", "1", ")", "scopeModifiers", "=", "scope", ".", "getDeclarationModifiers", "(", ")", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidValueReference", "(", "fieldRef", ".", "sourceStart", ",", "fieldRef", ".", "sourceEnd", ",", "scopeModifiers", ")", ";", "}", "}", "if", "(", "!", "hasProblems", "&&", "fieldRef", ".", "binding", "!=", "null", "&&", "fieldRef", ".", "binding", ".", "isValidBinding", "(", ")", "&&", "fieldRef", ".", "actualReceiverType", "instanceof", "ReferenceBinding", ")", "{", "ReferenceBinding", "resolvedType", "=", "(", "ReferenceBinding", ")", "fieldRef", ".", "actualReceiverType", ";", "verifyTypeReference", "(", "fieldRef", ",", "fieldRef", ".", "receiver", ",", "scope", ",", "source15", ",", "resolvedType", ",", "fieldRef", ".", "binding", ".", "modifiers", ")", ";", "}", "return", ";", "}", "if", "(", "!", "hasProblems", "&&", "(", "reference", "instanceof", "JavadocSingleTypeReference", "||", "reference", "instanceof", "JavadocQualifiedTypeReference", ")", "&&", "reference", ".", "resolvedType", "instanceof", "ReferenceBinding", ")", "{", "ReferenceBinding", "resolvedType", "=", "(", "ReferenceBinding", ")", "reference", ".", "resolvedType", ";", "verifyTypeReference", "(", "reference", ",", "reference", ",", "scope", ",", "source15", ",", "resolvedType", ",", "resolvedType", ".", "modifiers", ")", ";", "}", "if", "(", "reference", "instanceof", "JavadocMessageSend", ")", "{", "JavadocMessageSend", "msgSend", "=", "(", "JavadocMessageSend", ")", "reference", ";", "if", "(", "source15", "&&", "msgSend", ".", "tagValue", "==", "JavadocTagConstants", ".", "TAG_VALUE_VALUE", ")", "{", "if", "(", "scopeModifiers", "==", "-", "1", ")", "scopeModifiers", "=", "scope", ".", "getDeclarationModifiers", "(", ")", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidValueReference", "(", "msgSend", ".", "sourceStart", ",", "msgSend", ".", "sourceEnd", ",", "scopeModifiers", ")", ";", "}", "if", "(", "!", "hasProblems", "&&", "msgSend", ".", "binding", "!=", "null", "&&", "msgSend", ".", "binding", ".", "isValidBinding", "(", ")", "&&", "msgSend", ".", "actualReceiverType", "instanceof", "ReferenceBinding", ")", "{", "ReferenceBinding", "resolvedType", "=", "(", "ReferenceBinding", ")", "msgSend", ".", "actualReceiverType", ";", "verifyTypeReference", "(", "msgSend", ",", "msgSend", ".", "receiver", ",", "scope", ",", "source15", ",", "resolvedType", ",", "msgSend", ".", "binding", ".", "modifiers", ")", ";", "}", "}", "else", "if", "(", "reference", "instanceof", "JavadocAllocationExpression", ")", "{", "JavadocAllocationExpression", "alloc", "=", "(", "JavadocAllocationExpression", ")", "reference", ";", "if", "(", "source15", "&&", "alloc", ".", "tagValue", "==", "JavadocTagConstants", ".", "TAG_VALUE_VALUE", ")", "{", "if", "(", "scopeModifiers", "==", "-", "1", ")", "scopeModifiers", "=", "scope", ".", "getDeclarationModifiers", "(", ")", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidValueReference", "(", "alloc", ".", "sourceStart", ",", "alloc", ".", "sourceEnd", ",", "scopeModifiers", ")", ";", "}", "if", "(", "!", "hasProblems", "&&", "alloc", ".", "binding", "!=", "null", "&&", "alloc", ".", "binding", ".", "isValidBinding", "(", ")", "&&", "alloc", ".", "resolvedType", "instanceof", "ReferenceBinding", ")", "{", "ReferenceBinding", "resolvedType", "=", "(", "ReferenceBinding", ")", "alloc", ".", "resolvedType", ";", "verifyTypeReference", "(", "alloc", ",", "alloc", ".", "type", ",", "scope", ",", "source15", ",", "resolvedType", ",", "alloc", ".", "binding", ".", "modifiers", ")", ";", "}", "}", "if", "(", "reference", ".", "resolvedType", "!=", "null", "&&", "reference", ".", "resolvedType", ".", "isTypeVariable", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidReference", "(", "reference", ".", "sourceStart", ",", "reference", ".", "sourceEnd", ")", ";", "}", "}", "private", "void", "resolveParamTags", "(", "MethodScope", "scope", ",", "boolean", "reportMissing", ",", "boolean", "considerParamRefAsUsage", ")", "{", "AbstractMethodDeclaration", "methodDecl", "=", "scope", ".", "referenceMethod", "(", ")", ";", "int", "paramTagsSize", "=", "this", ".", "paramReferences", "==", "null", "?", "0", ":", "this", ".", "paramReferences", ".", "length", ";", "if", "(", "methodDecl", "==", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "paramTagsSize", ";", "i", "++", ")", "{", "JavadocSingleNameReference", "param", "=", "this", ".", "paramReferences", "[", "i", "]", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "param", ".", "tagSourceStart", ",", "param", ".", "tagSourceEnd", ")", ";", "}", "return", ";", "}", "int", "argumentsSize", "=", "methodDecl", ".", "arguments", "==", "null", "?", "0", ":", "methodDecl", ".", "arguments", ".", "length", ";", "if", "(", "paramTagsSize", "==", "0", ")", "{", "if", "(", "reportMissing", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "argumentsSize", ";", "i", "++", ")", "{", "Argument", "arg", "=", "methodDecl", ".", "arguments", "[", "i", "]", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocMissingParamTag", "(", "arg", ".", "name", ",", "arg", ".", "sourceStart", ",", "arg", ".", "sourceEnd", ",", "methodDecl", ".", "binding", ".", "modifiers", ")", ";", "}", "}", "}", "else", "{", "LocalVariableBinding", "[", "]", "bindings", "=", "new", "LocalVariableBinding", "[", "paramTagsSize", "]", ";", "int", "maxBindings", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "paramTagsSize", ";", "i", "++", ")", "{", "JavadocSingleNameReference", "param", "=", "this", ".", "paramReferences", "[", "i", "]", ";", "param", ".", "resolve", "(", "scope", ",", "true", ",", "considerParamRefAsUsage", ")", ";", "if", "(", "param", ".", "binding", "!=", "null", "&&", "param", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "boolean", "found", "=", "false", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "maxBindings", "&&", "!", "found", ";", "j", "++", ")", "{", "if", "(", "bindings", "[", "j", "]", "==", "param", ".", "binding", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocDuplicatedParamTag", "(", "param", ".", "token", ",", "param", ".", "sourceStart", ",", "param", ".", "sourceEnd", ",", "methodDecl", ".", "binding", ".", "modifiers", ")", ";", "found", "=", "true", ";", "}", "}", "if", "(", "!", "found", ")", "{", "bindings", "[", "maxBindings", "++", "]", "=", "(", "LocalVariableBinding", ")", "param", ".", "binding", ";", "}", "}", "}", "if", "(", "reportMissing", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "argumentsSize", ";", "i", "++", ")", "{", "Argument", "arg", "=", "methodDecl", ".", "arguments", "[", "i", "]", ";", "boolean", "found", "=", "false", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "maxBindings", "&&", "!", "found", ";", "j", "++", ")", "{", "LocalVariableBinding", "binding", "=", "bindings", "[", "j", "]", ";", "if", "(", "arg", ".", "binding", "==", "binding", ")", "{", "found", "=", "true", ";", "}", "}", "if", "(", "!", "found", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocMissingParamTag", "(", "arg", ".", "name", ",", "arg", ".", "sourceStart", ",", "arg", ".", "sourceEnd", ",", "methodDecl", ".", "binding", ".", "modifiers", ")", ";", "}", "}", "}", "}", "}", "private", "void", "resolveTypeParameterTags", "(", "Scope", "scope", ",", "boolean", "reportMissing", ")", "{", "int", "paramTypeParamLength", "=", "this", ".", "paramTypeParameters", "==", "null", "?", "0", ":", "this", ".", "paramTypeParameters", ".", "length", ";", "TypeParameter", "[", "]", "parameters", "=", "null", ";", "TypeVariableBinding", "[", "]", "typeVariables", "=", "null", ";", "int", "modifiers", "=", "-", "1", ";", "switch", "(", "scope", ".", "kind", ")", "{", "case", "Scope", ".", "METHOD_SCOPE", ":", "AbstractMethodDeclaration", "methodDeclaration", "=", "(", "(", "MethodScope", ")", "scope", ")", ".", "referenceMethod", "(", ")", ";", "if", "(", "methodDeclaration", "==", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "paramTypeParamLength", ";", "i", "++", ")", "{", "JavadocSingleTypeReference", "param", "=", "this", ".", "paramTypeParameters", "[", "i", "]", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "param", ".", "tagSourceStart", ",", "param", ".", "tagSourceEnd", ")", ";", "}", "return", ";", "}", "parameters", "=", "methodDeclaration", ".", "typeParameters", "(", ")", ";", "typeVariables", "=", "methodDeclaration", ".", "binding", ".", "typeVariables", ";", "modifiers", "=", "methodDeclaration", ".", "binding", ".", "modifiers", ";", "break", ";", "case", "Scope", ".", "CLASS_SCOPE", ":", "TypeDeclaration", "typeDeclaration", "=", "(", "(", "ClassScope", ")", "scope", ")", ".", "referenceContext", ";", "parameters", "=", "typeDeclaration", ".", "typeParameters", ";", "typeVariables", "=", "typeDeclaration", ".", "binding", ".", "typeVariables", ";", "modifiers", "=", "typeDeclaration", ".", "binding", ".", "modifiers", ";", "break", ";", "}", "if", "(", "typeVariables", "==", "null", "||", "typeVariables", ".", "length", "==", "0", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "paramTypeParamLength", ";", "i", "++", ")", "{", "JavadocSingleTypeReference", "param", "=", "this", ".", "paramTypeParameters", "[", "i", "]", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "param", ".", "tagSourceStart", ",", "param", ".", "tagSourceEnd", ")", ";", "}", "return", ";", "}", "if", "(", "parameters", "!=", "null", ")", "{", "int", "typeParametersLength", "=", "parameters", ".", "length", ";", "if", "(", "paramTypeParamLength", "==", "0", ")", "{", "if", "(", "reportMissing", ")", "{", "for", "(", "int", "i", "=", "0", ",", "l", "=", "typeParametersLength", ";", "i", "<", "l", ";", "i", "++", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocMissingParamTag", "(", "parameters", "[", "i", "]", ".", "name", ",", "parameters", "[", "i", "]", ".", "sourceStart", ",", "parameters", "[", "i", "]", ".", "sourceEnd", ",", "modifiers", ")", ";", "}", "}", "}", "else", "if", "(", "typeVariables", ".", "length", "==", "typeParametersLength", ")", "{", "TypeVariableBinding", "[", "]", "bindings", "=", "new", "TypeVariableBinding", "[", "paramTypeParamLength", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "paramTypeParamLength", ";", "i", "++", ")", "{", "JavadocSingleTypeReference", "param", "=", "this", ".", "paramTypeParameters", "[", "i", "]", ";", "TypeBinding", "paramBindind", "=", "param", ".", "internalResolveType", "(", "scope", ")", ";", "if", "(", "paramBindind", "!=", "null", "&&", "paramBindind", ".", "isValidBinding", "(", ")", ")", "{", "if", "(", "paramBindind", ".", "isTypeVariable", "(", ")", ")", "{", "boolean", "duplicate", "=", "false", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "i", "&&", "!", "duplicate", ";", "j", "++", ")", "{", "if", "(", "bindings", "[", "j", "]", "==", "param", ".", "resolvedType", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocDuplicatedParamTag", "(", "param", ".", "token", ",", "param", ".", "sourceStart", ",", "param", ".", "sourceEnd", ",", "modifiers", ")", ";", "duplicate", "=", "true", ";", "}", "}", "if", "(", "!", "duplicate", ")", "{", "bindings", "[", "i", "]", "=", "(", "TypeVariableBinding", ")", "param", ".", "resolvedType", ";", "}", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocUndeclaredParamTagName", "(", "param", ".", "token", ",", "param", ".", "sourceStart", ",", "param", ".", "sourceEnd", ",", "modifiers", ")", ";", "}", "}", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "typeParametersLength", ";", "i", "++", ")", "{", "TypeParameter", "parameter", "=", "parameters", "[", "i", "]", ";", "boolean", "found", "=", "false", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "paramTypeParamLength", "&&", "!", "found", ";", "j", "++", ")", "{", "if", "(", "parameter", ".", "binding", "==", "bindings", "[", "j", "]", ")", "{", "found", "=", "true", ";", "bindings", "[", "j", "]", "=", "null", ";", "}", "}", "if", "(", "!", "found", "&&", "reportMissing", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocMissingParamTag", "(", "parameter", ".", "name", ",", "parameter", ".", "sourceStart", ",", "parameter", ".", "sourceEnd", ",", "modifiers", ")", ";", "}", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "paramTypeParamLength", ";", "i", "++", ")", "{", "if", "(", "bindings", "[", "i", "]", "!=", "null", ")", "{", "JavadocSingleTypeReference", "param", "=", "this", ".", "paramTypeParameters", "[", "i", "]", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocUndeclaredParamTagName", "(", "param", ".", "token", ",", "param", ".", "sourceStart", ",", "param", ".", "sourceEnd", ",", "modifiers", ")", ";", "}", "}", "}", "}", "}", "private", "void", "resolveThrowsTags", "(", "MethodScope", "methScope", ",", "boolean", "reportMissing", ")", "{", "AbstractMethodDeclaration", "md", "=", "methScope", ".", "referenceMethod", "(", ")", ";", "int", "throwsTagsLength", "=", "this", ".", "exceptionReferences", "==", "null", "?", "0", ":", "this", ".", "exceptionReferences", ".", "length", ";", "if", "(", "md", "==", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "throwsTagsLength", ";", "i", "++", ")", "{", "TypeReference", "typeRef", "=", "this", ".", "exceptionReferences", "[", "i", "]", ";", "int", "start", "=", "typeRef", ".", "sourceStart", ";", "int", "end", "=", "typeRef", ".", "sourceEnd", ";", "if", "(", "typeRef", "instanceof", "JavadocQualifiedTypeReference", ")", "{", "start", "=", "(", "(", "JavadocQualifiedTypeReference", ")", "typeRef", ")", ".", "tagSourceStart", ";", "end", "=", "(", "(", "JavadocQualifiedTypeReference", ")", "typeRef", ")", ".", "tagSourceEnd", ";", "}", "else", "if", "(", "typeRef", "instanceof", "JavadocSingleTypeReference", ")", "{", "start", "=", "(", "(", "JavadocSingleTypeReference", ")", "typeRef", ")", ".", "tagSourceStart", ";", "end", "=", "(", "(", "JavadocSingleTypeReference", ")", "typeRef", ")", ".", "tagSourceEnd", ";", "}", "methScope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "start", ",", "end", ")", ";", "}", "return", ";", "}", "int", "boundExceptionLength", "=", "(", "md", ".", "binding", "==", "null", ")", "?", "0", ":", "md", ".", "binding", ".", "thrownExceptions", ".", "length", ";", "int", "thrownExceptionLength", "=", "md", ".", "thrownExceptions", "==", "null", "?", "0", ":", "md", ".", "thrownExceptions", ".", "length", ";", "if", "(", "throwsTagsLength", "==", "0", ")", "{", "if", "(", "reportMissing", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "boundExceptionLength", ";", "i", "++", ")", "{", "ReferenceBinding", "exceptionBinding", "=", "md", ".", "binding", ".", "thrownExceptions", "[", "i", "]", ";", "if", "(", "exceptionBinding", "!=", "null", "&&", "exceptionBinding", ".", "isValidBinding", "(", ")", ")", "{", "int", "j", "=", "i", ";", "while", "(", "j", "<", "thrownExceptionLength", "&&", "exceptionBinding", "!=", "md", ".", "thrownExceptions", "[", "j", "]", ".", "resolvedType", ")", "j", "++", ";", "if", "(", "j", "<", "thrownExceptionLength", ")", "{", "methScope", ".", "problemReporter", "(", ")", ".", "javadocMissingThrowsTag", "(", "md", ".", "thrownExceptions", "[", "j", "]", ",", "md", ".", "binding", ".", "modifiers", ")", ";", "}", "}", "}", "}", "}", "else", "{", "int", "maxRef", "=", "0", ";", "TypeReference", "[", "]", "typeReferences", "=", "new", "TypeReference", "[", "throwsTagsLength", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "throwsTagsLength", ";", "i", "++", ")", "{", "TypeReference", "typeRef", "=", "this", ".", "exceptionReferences", "[", "i", "]", ";", "typeRef", ".", "resolve", "(", "methScope", ")", ";", "TypeBinding", "typeBinding", "=", "typeRef", ".", "resolvedType", ";", "if", "(", "typeBinding", "!=", "null", "&&", "typeBinding", ".", "isValidBinding", "(", ")", "&&", "typeBinding", ".", "isClass", "(", ")", ")", "{", "typeReferences", "[", "maxRef", "++", "]", "=", "typeRef", ";", "}", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "boundExceptionLength", ";", "i", "++", ")", "{", "ReferenceBinding", "exceptionBinding", "=", "md", ".", "binding", ".", "thrownExceptions", "[", "i", "]", ";", "if", "(", "exceptionBinding", "!=", "null", ")", "exceptionBinding", "=", "(", "ReferenceBinding", ")", "exceptionBinding", ".", "erasure", "(", ")", ";", "boolean", "found", "=", "false", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "maxRef", "&&", "!", "found", ";", "j", "++", ")", "{", "if", "(", "typeReferences", "[", "j", "]", "!=", "null", ")", "{", "TypeBinding", "typeBinding", "=", "typeReferences", "[", "j", "]", ".", "resolvedType", ";", "if", "(", "exceptionBinding", "==", "typeBinding", ")", "{", "found", "=", "true", ";", "typeReferences", "[", "j", "]", "=", "null", ";", "}", "}", "}", "if", "(", "!", "found", "&&", "reportMissing", ")", "{", "if", "(", "exceptionBinding", "!=", "null", "&&", "exceptionBinding", ".", "isValidBinding", "(", ")", ")", "{", "int", "k", "=", "i", ";", "while", "(", "k", "<", "thrownExceptionLength", "&&", "exceptionBinding", "!=", "md", ".", "thrownExceptions", "[", "k", "]", ".", "resolvedType", ")", "k", "++", ";", "if", "(", "k", "<", "thrownExceptionLength", ")", "{", "methScope", ".", "problemReporter", "(", ")", ".", "javadocMissingThrowsTag", "(", "md", ".", "thrownExceptions", "[", "k", "]", ",", "md", ".", "binding", ".", "modifiers", ")", ";", "}", "}", "}", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "maxRef", ";", "i", "++", ")", "{", "TypeReference", "typeRef", "=", "typeReferences", "[", "i", "]", ";", "if", "(", "typeRef", "!=", "null", ")", "{", "boolean", "compatible", "=", "false", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "thrownExceptionLength", "&&", "!", "compatible", ";", "j", "++", ")", "{", "TypeBinding", "exceptionBinding", "=", "md", ".", "thrownExceptions", "[", "j", "]", ".", "resolvedType", ";", "if", "(", "exceptionBinding", "!=", "null", ")", "{", "compatible", "=", "typeRef", ".", "resolvedType", ".", "isCompatibleWith", "(", "exceptionBinding", ")", ";", "}", "}", "if", "(", "!", "compatible", "&&", "!", "typeRef", ".", "resolvedType", ".", "isUncheckedException", "(", "false", ")", ")", "{", "methScope", ".", "problemReporter", "(", ")", ".", "javadocInvalidThrowsClassName", "(", "typeRef", ",", "md", ".", "binding", ".", "modifiers", ")", ";", "}", "}", "}", "}", "}", "private", "void", "verifyTypeReference", "(", "Expression", "reference", ",", "Expression", "typeReference", ",", "Scope", "scope", ",", "boolean", "source15", ",", "ReferenceBinding", "resolvedType", ",", "int", "modifiers", ")", "{", "if", "(", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "int", "scopeModifiers", "=", "-", "1", ";", "if", "(", "!", "canBeSeen", "(", "scope", ".", "problemReporter", "(", ")", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocHiddenReference", "(", "typeReference", ".", "sourceStart", ",", "reference", ".", "sourceEnd", ",", "scope", ",", "modifiers", ")", ";", "return", ";", "}", "if", "(", "reference", "!=", "typeReference", ")", "{", "if", "(", "!", "canBeSeen", "(", "scope", ".", "problemReporter", "(", ")", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "resolvedType", ".", "modifiers", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocHiddenReference", "(", "typeReference", ".", "sourceStart", ",", "typeReference", ".", "sourceEnd", ",", "scope", ",", "resolvedType", ".", "modifiers", ")", ";", "return", ";", "}", "}", "if", "(", "resolvedType", ".", "isMemberType", "(", ")", ")", "{", "ReferenceBinding", "topLevelType", "=", "resolvedType", ";", "int", "packageLength", "=", "topLevelType", ".", "fPackage", ".", "compoundName", ".", "length", ";", "int", "depth", "=", "resolvedType", ".", "depth", "(", ")", ";", "int", "idx", "=", "depth", "+", "packageLength", ";", "char", "[", "]", "[", "]", "computedCompoundName", "=", "new", "char", "[", "idx", "+", "1", "]", "[", "]", ";", "computedCompoundName", "[", "idx", "]", "=", "topLevelType", ".", "sourceName", ";", "while", "(", "topLevelType", ".", "enclosingType", "(", ")", "!=", "null", ")", "{", "topLevelType", "=", "topLevelType", ".", "enclosingType", "(", ")", ";", "computedCompoundName", "[", "--", "idx", "]", "=", "topLevelType", ".", "sourceName", ";", "}", "for", "(", "int", "i", "=", "packageLength", ";", "--", "i", ">=", "0", ";", ")", "{", "computedCompoundName", "[", "--", "idx", "]", "=", "topLevelType", ".", "fPackage", ".", "compoundName", "[", "i", "]", ";", "}", "ClassScope", "topLevelScope", "=", "scope", ".", "classScope", "(", ")", ";", "if", "(", "topLevelScope", ".", "parent", ".", "kind", "!=", "Scope", ".", "COMPILATION_UNIT_SCOPE", "||", "!", "CharOperation", ".", "equals", "(", "topLevelType", ".", "sourceName", ",", "topLevelScope", ".", "referenceContext", ".", "name", ")", ")", "{", "topLevelScope", "=", "topLevelScope", ".", "outerMostClassScope", "(", ")", ";", "if", "(", "typeReference", "instanceof", "JavadocSingleTypeReference", ")", "{", "if", "(", "(", "!", "source15", "&&", "depth", "==", "1", ")", "||", "topLevelType", "!=", "topLevelScope", ".", "referenceContext", ".", "binding", ")", "{", "boolean", "hasValidImport", "=", "false", ";", "if", "(", "source15", ")", "{", "CompilationUnitScope", "unitScope", "=", "topLevelScope", ".", "compilationUnitScope", "(", ")", ";", "ImportBinding", "[", "]", "imports", "=", "unitScope", ".", "imports", ";", "int", "length", "=", "imports", "==", "null", "?", "0", ":", "imports", ".", "length", ";", "mainLoop", ":", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "char", "[", "]", "[", "]", "compoundName", "=", "imports", "[", "i", "]", ".", "compoundName", ";", "int", "compoundNameLength", "=", "compoundName", ".", "length", ";", "if", "(", "(", "imports", "[", "i", "]", ".", "onDemand", "&&", "compoundNameLength", "==", "computedCompoundName", ".", "length", "-", "1", ")", "||", "(", "compoundNameLength", "==", "computedCompoundName", ".", "length", ")", ")", "{", "for", "(", "int", "j", "=", "compoundNameLength", ";", "--", "j", ">=", "0", ";", ")", "{", "if", "(", "CharOperation", ".", "equals", "(", "imports", "[", "i", "]", ".", "compoundName", "[", "j", "]", ",", "computedCompoundName", "[", "j", "]", ")", ")", "{", "if", "(", "j", "==", "0", ")", "{", "hasValidImport", "=", "true", ";", "ImportReference", "importReference", "=", "imports", "[", "i", "]", ".", "reference", ";", "if", "(", "importReference", "!=", "null", ")", "{", "importReference", ".", "bits", "|=", "ASTNode", ".", "Used", ";", "}", "break", "mainLoop", ";", "}", "}", "else", "{", "break", ";", "}", "}", "}", "}", "if", "(", "!", "hasValidImport", ")", "{", "if", "(", "scopeModifiers", "==", "-", "1", ")", "scopeModifiers", "=", "scope", ".", "getDeclarationModifiers", "(", ")", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidMemberTypeQualification", "(", "typeReference", ".", "sourceStart", ",", "typeReference", ".", "sourceEnd", ",", "scopeModifiers", ")", ";", "}", "}", "else", "{", "if", "(", "scopeModifiers", "==", "-", "1", ")", "scopeModifiers", "=", "scope", ".", "getDeclarationModifiers", "(", ")", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidMemberTypeQualification", "(", "typeReference", ".", "sourceStart", ",", "typeReference", ".", "sourceEnd", ",", "scopeModifiers", ")", ";", "return", ";", "}", "}", "}", "}", "}", "if", "(", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "isPackageInfo", "(", ")", "&&", "typeReference", "instanceof", "JavadocSingleTypeReference", ")", "{", "if", "(", "resolvedType", ".", "fPackage", ".", "compoundName", ".", "length", ">", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidReference", "(", "typeReference", ".", "sourceStart", ",", "typeReference", ".", "sourceEnd", ")", ";", "return", ";", "}", "}", "}", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "paramReferences", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "paramReferences", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "paramReferences", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "paramTypeParameters", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "paramTypeParameters", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "paramTypeParameters", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "returnStatement", "!=", "null", ")", "{", "this", ".", "returnStatement", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "if", "(", "this", ".", "exceptionReferences", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "exceptionReferences", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "exceptionReferences", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "seeReferences", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "seeReferences", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "seeReferences", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "paramReferences", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "paramReferences", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "paramReferences", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "paramTypeParameters", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "paramTypeParameters", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "paramTypeParameters", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "returnStatement", "!=", "null", ")", "{", "this", ".", "returnStatement", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "if", "(", "this", ".", "exceptionReferences", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "exceptionReferences", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "exceptionReferences", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "seeReferences", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "seeReferences", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "seeReferences", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,676
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "OR_OR_Expression", "extends", "BinaryExpression", "{", "int", "rightInitStateIndex", "=", "-", "1", ";", "int", "mergedInitStateIndex", "=", "-", "1", ";", "public", "OR_OR_Expression", "(", "Expression", "left", ",", "Expression", "right", ",", "int", "operator", ")", "{", "super", "(", "left", ",", "right", ",", "operator", ")", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "Constant", "cst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ";", "boolean", "isLeftOptimizedTrue", "=", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "true", ";", "boolean", "isLeftOptimizedFalse", "=", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "false", ";", "if", "(", "isLeftOptimizedFalse", ")", "{", "FlowInfo", "mergedInfo", "=", "this", ".", "left", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "mergedInfo", "=", "this", ".", "right", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "mergedInfo", ")", ";", "this", ".", "mergedInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "mergedInfo", ")", ";", "return", "mergedInfo", ";", "}", "FlowInfo", "leftInfo", "=", "this", ".", "left", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "FlowInfo", "rightInfo", "=", "leftInfo", ".", "initsWhenFalse", "(", ")", ".", "unconditionalCopy", "(", ")", ";", "this", ".", "rightInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "rightInfo", ")", ";", "int", "previousMode", "=", "rightInfo", ".", "reachMode", "(", ")", ";", "if", "(", "isLeftOptimizedTrue", ")", "{", "if", "(", "(", "rightInfo", ".", "reachMode", "(", ")", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "fakeReachable", "(", "this", ".", "right", ")", ";", "rightInfo", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE", ")", ";", "}", "}", "rightInfo", "=", "this", ".", "right", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "rightInfo", ")", ";", "FlowInfo", "leftInfoWhenTrueForMerging", "=", "leftInfo", ".", "initsWhenTrue", "(", ")", ".", "unconditionalCopy", "(", ")", ".", "addPotentialInitializationsFrom", "(", "rightInfo", ".", "unconditionalInitsWithoutSideEffect", "(", ")", ")", ";", "FlowInfo", "mergedInfo", "=", "FlowInfo", ".", "conditional", "(", "leftInfoWhenTrueForMerging", ".", "unconditionalInits", "(", ")", ".", "mergedWith", "(", "rightInfo", ".", "safeInitsWhenTrue", "(", ")", ".", "setReachMode", "(", "previousMode", ")", ".", "unconditionalInits", "(", ")", ")", ",", "rightInfo", ".", "initsWhenFalse", "(", ")", ")", ";", "this", ".", "mergedInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "mergedInfo", ")", ";", "return", "mergedInfo", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "valueRequired", ")", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "Constant", "cst", "=", "this", ".", "right", ".", "constant", ";", "if", "(", "cst", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "cst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "iconst_1", "(", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "if", "(", "this", ".", "mergedInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "}", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "BranchLabel", "trueLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ",", "endLabel", ";", "cst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ";", "boolean", "leftIsConst", "=", "cst", "!=", "Constant", ".", "NotAConstant", ";", "boolean", "leftIsTrue", "=", "leftIsConst", "&&", "cst", ".", "booleanValue", "(", ")", "==", "true", ";", "cst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ";", "boolean", "rightIsConst", "=", "cst", "!=", "Constant", ".", "NotAConstant", ";", "boolean", "rightIsTrue", "=", "rightIsConst", "&&", "cst", ".", "booleanValue", "(", ")", "==", "true", ";", "generateOperands", ":", "{", "if", "(", "leftIsConst", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "leftIsTrue", ")", "{", "break", "generateOperands", ";", "}", "}", "else", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "null", ",", "true", ")", ";", "}", "if", "(", "this", ".", "rightInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "rightInitStateIndex", ")", ";", "}", "if", "(", "rightIsConst", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "}", "else", "{", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "null", ",", "valueRequired", ")", ";", "}", "}", "if", "(", "this", ".", "mergedInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "}", "if", "(", "valueRequired", ")", "{", "if", "(", "leftIsConst", "&&", "leftIsTrue", ")", "{", "codeStream", ".", "iconst_1", "(", ")", ";", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "else", "{", "if", "(", "rightIsConst", "&&", "rightIsTrue", ")", "{", "codeStream", ".", "iconst_1", "(", ")", ";", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "else", "{", "codeStream", ".", "iconst_0", "(", ")", ";", "}", "if", "(", "trueLabel", ".", "forwardReferenceCount", "(", ")", ">", "0", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "IsReturnedValue", ")", "!=", "0", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "generateReturnBytecode", "(", "this", ")", ";", "trueLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_1", "(", ")", ";", "}", "else", "{", "codeStream", ".", "goto_", "(", "endLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ";", "codeStream", ".", "decrStackSize", "(", "1", ")", ";", "trueLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_1", "(", ")", ";", "endLabel", ".", "place", "(", ")", ";", "}", "}", "else", "{", "trueLabel", ".", "place", "(", ")", ";", "}", "}", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "else", "{", "trueLabel", ".", "place", "(", ")", ";", "}", "}", "public", "void", "generateOptimizedBoolean", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "super", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "return", ";", "}", "Constant", "cst", "=", "this", ".", "right", ".", "constant", ";", "if", "(", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "false", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "if", "(", "this", ".", "mergedInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "cst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ";", "boolean", "leftIsConst", "=", "cst", "!=", "Constant", ".", "NotAConstant", ";", "boolean", "leftIsTrue", "=", "leftIsConst", "&&", "cst", ".", "booleanValue", "(", ")", "==", "true", ";", "cst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ";", "boolean", "rightIsConst", "=", "cst", "!=", "Constant", ".", "NotAConstant", ";", "boolean", "rightIsTrue", "=", "rightIsConst", "&&", "cst", ".", "booleanValue", "(", ")", "==", "true", ";", "generateOperands", ":", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "null", ",", "!", "leftIsConst", ")", ";", "if", "(", "leftIsTrue", ")", "{", "if", "(", "valueRequired", ")", "codeStream", ".", "goto_", "(", "trueLabel", ")", ";", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "break", "generateOperands", ";", "}", "if", "(", "this", ".", "rightInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "rightInitStateIndex", ")", ";", "}", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "null", ",", "valueRequired", "&&", "!", "rightIsConst", ")", ";", "if", "(", "valueRequired", "&&", "rightIsTrue", ")", "{", "codeStream", ".", "goto_", "(", "trueLabel", ")", ";", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "BranchLabel", "internalTrueLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "internalTrueLabel", ",", "null", ",", "!", "leftIsConst", ")", ";", "if", "(", "leftIsTrue", ")", "{", "internalTrueLabel", ".", "place", "(", ")", ";", "break", "generateOperands", ";", "}", "if", "(", "this", ".", "rightInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "rightInitStateIndex", ")", ";", "}", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "null", ",", "falseLabel", ",", "valueRequired", "&&", "!", "rightIsConst", ")", ";", "if", "(", "valueRequired", "&&", "rightIsConst", "&&", "!", "rightIsTrue", ")", "{", "codeStream", ".", "goto_", "(", "falseLabel", ")", ";", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "internalTrueLabel", ".", "place", "(", ")", ";", "}", "else", "{", "}", "}", "}", "if", "(", "this", ".", "mergedInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "}", "}", "public", "boolean", "isCompactableOperation", "(", ")", "{", "return", "false", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "TypeBinding", "result", "=", "super", ".", "resolveType", "(", "scope", ")", ";", "Binding", "leftDirect", "=", "Expression", ".", "getDirectBinding", "(", "this", ".", "left", ")", ";", "if", "(", "leftDirect", "!=", "null", "&&", "leftDirect", "==", "Expression", ".", "getDirectBinding", "(", "this", ".", "right", ")", ")", "{", "if", "(", "!", "(", "this", ".", "right", "instanceof", "Assignment", ")", ")", "scope", ".", "problemReporter", "(", ")", ".", "comparingIdenticalExpressions", "(", "this", ")", ";", "}", "return", "result", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "this", ".", "left", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "this", ".", "right", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,677
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "public", "class", "CombinedBinaryExpression", "extends", "BinaryExpression", "{", "public", "int", "arity", ";", "public", "int", "arityMax", ";", "public", "static", "final", "int", "ARITY_MAX_MAX", "=", "160", ";", "public", "static", "final", "int", "ARITY_MAX_MIN", "=", "20", ";", "public", "static", "int", "defaultArityMaxStartingValue", "=", "ARITY_MAX_MIN", ";", "public", "BinaryExpression", "referencesTable", "[", "]", ";", "public", "CombinedBinaryExpression", "(", "Expression", "left", ",", "Expression", "right", ",", "int", "operator", ",", "int", "arity", ")", "{", "super", "(", "left", ",", "right", ",", "operator", ")", ";", "initArity", "(", "left", ",", "arity", ")", ";", "}", "public", "CombinedBinaryExpression", "(", "CombinedBinaryExpression", "expression", ")", "{", "super", "(", "expression", ")", ";", "initArity", "(", "expression", ".", "left", ",", "expression", ".", "arity", ")", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "referencesTable", "==", "null", ")", "{", "return", "super", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "BinaryExpression", "cursor", ";", "if", "(", "(", "cursor", "=", "this", ".", "referencesTable", "[", "0", "]", ")", ".", "resolvedType", ".", "id", "!=", "TypeIds", ".", "T_JavaLangString", ")", "{", "cursor", ".", "left", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "flowInfo", "=", "cursor", ".", "left", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "end", "=", "this", ".", "arity", ";", "i", "<", "end", ";", "i", "++", ")", "{", "if", "(", "(", "cursor", "=", "this", ".", "referencesTable", "[", "i", "]", ")", ".", "resolvedType", ".", "id", "!=", "TypeIds", ".", "T_JavaLangString", ")", "{", "cursor", ".", "right", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "flowInfo", "=", "cursor", ".", "right", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "}", "if", "(", "this", ".", "resolvedType", ".", "id", "!=", "TypeIds", ".", "T_JavaLangString", ")", "{", "this", ".", "right", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "return", "this", ".", "right", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "}", "public", "void", "generateOptimizedStringConcatenation", "(", "BlockScope", "blockScope", ",", "CodeStream", "codeStream", ",", "int", "typeID", ")", "{", "if", "(", "this", ".", "referencesTable", "==", "null", ")", "{", "super", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "typeID", ")", ";", "}", "else", "{", "if", "(", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ")", "==", "OperatorIds", ".", "PLUS", ")", "&&", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "==", "TypeIds", ".", "T_JavaLangString", ")", ")", "{", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "invokeStringConcatenationAppendForType", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "}", "else", "{", "BinaryExpression", "cursor", "=", "this", ".", "referencesTable", "[", "0", "]", ";", "int", "restart", "=", "0", ";", "int", "pc", "=", "codeStream", ".", "position", ";", "for", "(", "restart", "=", "this", ".", "arity", "-", "1", ";", "restart", ">=", "0", ";", "restart", "--", ")", "{", "if", "(", "(", "cursor", "=", "this", ".", "referencesTable", "[", "restart", "]", ")", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "codeStream", ".", "generateConstant", "(", "cursor", ".", "constant", ",", "cursor", ".", "implicitConversion", ")", ";", "codeStream", ".", "invokeStringConcatenationAppendForType", "(", "cursor", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "break", ";", "}", "}", "restart", "++", ";", "if", "(", "restart", "==", "0", ")", "{", "cursor", ".", "left", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "cursor", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "}", "int", "pcAux", ";", "for", "(", "int", "i", "=", "restart", ";", "i", "<", "this", ".", "arity", ";", "i", "++", ")", "{", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "(", "cursor", "=", "this", ".", "referencesTable", "[", "i", "]", ")", ".", "left", ".", "sourceStart", ")", ";", "pcAux", "=", "codeStream", ".", "position", ";", "cursor", ".", "right", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "cursor", ".", "right", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pcAux", ",", "cursor", ".", "right", ".", "sourceStart", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "left", ".", "sourceStart", ")", ";", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "right", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "this", ".", "right", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "right", ".", "sourceStart", ")", ";", "}", "}", "else", "{", "super", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "typeID", ")", ";", "}", "}", "}", "public", "void", "generateOptimizedStringConcatenationCreation", "(", "BlockScope", "blockScope", ",", "CodeStream", "codeStream", ",", "int", "typeID", ")", "{", "if", "(", "this", ".", "referencesTable", "==", "null", ")", "{", "super", ".", "generateOptimizedStringConcatenationCreation", "(", "blockScope", ",", "codeStream", ",", "typeID", ")", ";", "}", "else", "{", "if", "(", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ")", "==", "OperatorIds", ".", "PLUS", ")", "&&", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "==", "TypeIds", ".", "T_JavaLangString", ")", "&&", "this", ".", "constant", "==", "Constant", ".", "NotAConstant", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "BinaryExpression", "cursor", "=", "this", ".", "referencesTable", "[", "this", ".", "arity", "-", "1", "]", ";", "int", "restart", "=", "0", ";", "for", "(", "restart", "=", "this", ".", "arity", "-", "1", ";", "restart", ">=", "0", ";", "restart", "--", ")", "{", "if", "(", "(", "(", "(", "(", "cursor", "=", "this", ".", "referencesTable", "[", "restart", "]", ")", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ")", "==", "OperatorIds", ".", "PLUS", ")", "&&", "(", "(", "cursor", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "==", "TypeIds", ".", "T_JavaLangString", ")", ")", "{", "if", "(", "cursor", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "codeStream", ".", "newStringContatenation", "(", ")", ";", "codeStream", ".", "dup", "(", ")", ";", "codeStream", ".", "ldc", "(", "cursor", ".", "constant", ".", "stringValue", "(", ")", ")", ";", "codeStream", ".", "invokeStringConcatenationStringConstructor", "(", ")", ";", "break", ";", "}", "}", "else", "{", "cursor", ".", "generateOptimizedStringConcatenationCreation", "(", "blockScope", ",", "codeStream", ",", "cursor", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "break", ";", "}", "}", "restart", "++", ";", "if", "(", "restart", "==", "0", ")", "{", "cursor", ".", "left", ".", "generateOptimizedStringConcatenationCreation", "(", "blockScope", ",", "codeStream", ",", "cursor", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "}", "int", "pcAux", ";", "for", "(", "int", "i", "=", "restart", ";", "i", "<", "this", ".", "arity", ";", "i", "++", ")", "{", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "(", "cursor", "=", "this", ".", "referencesTable", "[", "i", "]", ")", ".", "left", ".", "sourceStart", ")", ";", "pcAux", "=", "codeStream", ".", "position", ";", "cursor", ".", "right", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "cursor", ".", "right", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pcAux", ",", "cursor", ".", "right", ".", "sourceStart", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "left", ".", "sourceStart", ")", ";", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "right", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "this", ".", "right", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "right", ".", "sourceStart", ")", ";", "}", "else", "{", "super", ".", "generateOptimizedStringConcatenationCreation", "(", "blockScope", ",", "codeStream", ",", "typeID", ")", ";", "}", "}", "}", "private", "void", "initArity", "(", "Expression", "expression", ",", "int", "value", ")", "{", "this", ".", "arity", "=", "value", ";", "if", "(", "value", ">", "1", ")", "{", "this", ".", "referencesTable", "=", "new", "BinaryExpression", "[", "value", "]", ";", "this", ".", "referencesTable", "[", "value", "-", "1", "]", "=", "(", "BinaryExpression", ")", "expression", ";", "for", "(", "int", "i", "=", "value", "-", "1", ";", "i", ">", "0", ";", "i", "--", ")", "{", "this", ".", "referencesTable", "[", "i", "-", "1", "]", "=", "(", "BinaryExpression", ")", "this", ".", "referencesTable", "[", "i", "]", ".", "left", ";", "}", "}", "else", "{", "this", ".", "arityMax", "=", "defaultArityMaxStartingValue", ";", "}", "}", "public", "StringBuffer", "printExpressionNoParenthesis", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "if", "(", "this", ".", "referencesTable", "==", "null", ")", "{", "return", "super", ".", "printExpressionNoParenthesis", "(", "indent", ",", "output", ")", ";", "}", "String", "operatorString", "=", "operatorToString", "(", ")", ";", "for", "(", "int", "i", "=", "this", ".", "arity", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "output", ".", "append", "(", "'('", ")", ";", "}", "output", "=", "this", ".", "referencesTable", "[", "0", "]", ".", "left", ".", "printExpression", "(", "indent", ",", "output", ")", ";", "for", "(", "int", "i", "=", "0", ",", "end", "=", "this", ".", "arity", ";", "i", "<", "end", ";", "i", "++", ")", "{", "output", ".", "append", "(", "'", "'", ")", ".", "append", "(", "operatorString", ")", ".", "append", "(", "'", "'", ")", ";", "output", "=", "this", ".", "referencesTable", "[", "i", "]", ".", "right", ".", "printExpression", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "')'", ")", ";", "}", "output", ".", "append", "(", "'", "'", ")", ".", "append", "(", "operatorString", ")", ".", "append", "(", "'", "'", ")", ";", "return", "this", ".", "right", ".", "printExpression", "(", "0", ",", "output", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "if", "(", "this", ".", "referencesTable", "==", "null", ")", "{", "return", "super", ".", "resolveType", "(", "scope", ")", ";", "}", "BinaryExpression", "cursor", ";", "if", "(", "(", "cursor", "=", "this", ".", "referencesTable", "[", "0", "]", ")", ".", "left", "instanceof", "CastExpression", ")", "{", "cursor", ".", "left", ".", "bits", "|=", "ASTNode", ".", "DisableUnnecessaryCastCheck", ";", "}", "cursor", ".", "left", ".", "resolveType", "(", "scope", ")", ";", "for", "(", "int", "i", "=", "0", ",", "end", "=", "this", ".", "arity", ";", "i", "<", "end", ";", "i", "++", ")", "{", "this", ".", "referencesTable", "[", "i", "]", ".", "nonRecursiveResolveTypeUpwards", "(", "scope", ")", ";", "}", "nonRecursiveResolveTypeUpwards", "(", "scope", ")", ";", "return", "this", ".", "resolvedType", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "this", ".", "referencesTable", "==", "null", ")", "{", "super", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "else", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "int", "restart", ";", "for", "(", "restart", "=", "this", ".", "arity", "-", "1", ";", "restart", ">=", "0", ";", "restart", "--", ")", "{", "if", "(", "!", "visitor", ".", "visit", "(", "this", ".", "referencesTable", "[", "restart", "]", ",", "scope", ")", ")", "{", "visitor", ".", "endVisit", "(", "this", ".", "referencesTable", "[", "restart", "]", ",", "scope", ")", ";", "break", ";", "}", "}", "restart", "++", ";", "if", "(", "restart", "==", "0", ")", "{", "this", ".", "referencesTable", "[", "0", "]", ".", "left", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "for", "(", "int", "i", "=", "restart", ",", "end", "=", "this", ".", "arity", ";", "i", "<", "end", ";", "i", "++", ")", "{", "this", ".", "referencesTable", "[", "i", "]", ".", "right", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ".", "referencesTable", "[", "i", "]", ",", "scope", ")", ";", "}", "this", ".", "right", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "public", "void", "tuneArityMax", "(", ")", "{", "if", "(", "this", ".", "arityMax", "<", "ARITY_MAX_MAX", ")", "{", "this", ".", "arityMax", "*=", "2", ";", "}", "}", "}", "</s>" ]
5,678
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "TryStatement", "extends", "SubRoutineStatement", "{", "private", "final", "static", "char", "[", "]", "SECRET_RETURN_ADDRESS_NAME", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "private", "final", "static", "char", "[", "]", "SECRET_ANY_HANDLER_NAME", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "private", "final", "static", "char", "[", "]", "SECRET_RETURN_VALUE_NAME", "=", "\"", "returnValue\"", ".", "toCharArray", "(", ")", ";", "public", "Block", "tryBlock", ";", "public", "Block", "[", "]", "catchBlocks", ";", "public", "Argument", "[", "]", "catchArguments", ";", "public", "Block", "finallyBlock", ";", "BlockScope", "scope", ";", "public", "UnconditionalFlowInfo", "subRoutineInits", ";", "ReferenceBinding", "[", "]", "caughtExceptionTypes", ";", "boolean", "[", "]", "catchExits", ";", "BranchLabel", "subRoutineStartLabel", ";", "public", "LocalVariableBinding", "anyExceptionVariable", ",", "returnAddressVariable", ",", "secretReturnValue", ";", "ExceptionLabel", "[", "]", "declaredExceptionLabels", ";", "private", "Object", "[", "]", "reusableJSRTargets", ";", "private", "BranchLabel", "[", "]", "reusableJSRSequenceStartLabels", ";", "private", "int", "[", "]", "reusableJSRStateIndexes", ";", "private", "int", "reusableJSRTargetsCount", "=", "0", ";", "private", "final", "static", "int", "NO_FINALLY", "=", "0", ";", "private", "final", "static", "int", "FINALLY_SUBROUTINE", "=", "1", ";", "private", "final", "static", "int", "FINALLY_DOES_NOT_COMPLETE", "=", "2", ";", "private", "final", "static", "int", "FINALLY_INLINE", "=", "3", ";", "int", "mergedInitStateIndex", "=", "-", "1", ";", "int", "preTryInitStateIndex", "=", "-", "1", ";", "int", "naturalExitMergeInitStateIndex", "=", "-", "1", ";", "int", "[", "]", "catchExitInitStateIndexes", ";", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "this", ".", "preTryInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "flowInfo", ")", ";", "if", "(", "this", ".", "anyExceptionVariable", "!=", "null", ")", "{", "this", ".", "anyExceptionVariable", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "}", "if", "(", "this", ".", "returnAddressVariable", "!=", "null", ")", "{", "this", ".", "returnAddressVariable", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "}", "if", "(", "this", ".", "subRoutineStartLabel", "==", "null", ")", "{", "ExceptionHandlingFlowContext", "handlingContext", "=", "new", "ExceptionHandlingFlowContext", "(", "flowContext", ",", "this", ",", "this", ".", "caughtExceptionTypes", ",", "null", ",", "this", ".", "scope", ",", "flowInfo", ".", "unconditionalInits", "(", ")", ")", ";", "handlingContext", ".", "initsOnFinally", "=", "new", "NullInfoRegistry", "(", "flowInfo", ".", "unconditionalInits", "(", ")", ")", ";", "FlowInfo", "tryInfo", ";", "if", "(", "this", ".", "tryBlock", ".", "isEmptyBlock", "(", ")", ")", "{", "tryInfo", "=", "flowInfo", ";", "}", "else", "{", "tryInfo", "=", "this", ".", "tryBlock", ".", "analyseCode", "(", "currentScope", ",", "handlingContext", ",", "flowInfo", ".", "copy", "(", ")", ")", ";", "if", "(", "(", "tryInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", ")", "this", ".", "bits", "|=", "ASTNode", ".", "IsTryBlockExiting", ";", "}", "handlingContext", ".", "complainIfUnusedExceptionHandlers", "(", "this", ".", "scope", ",", "this", ")", ";", "if", "(", "this", ".", "catchArguments", "!=", "null", ")", "{", "int", "catchCount", ";", "this", ".", "catchExits", "=", "new", "boolean", "[", "catchCount", "=", "this", ".", "catchBlocks", ".", "length", "]", ";", "this", ".", "catchExitInitStateIndexes", "=", "new", "int", "[", "catchCount", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "catchCount", ";", "i", "++", ")", "{", "FlowInfo", "catchInfo", ";", "if", "(", "this", ".", "caughtExceptionTypes", "[", "i", "]", ".", "isUncheckedException", "(", "true", ")", ")", "{", "catchInfo", "=", "handlingContext", ".", "initsOnFinally", ".", "mitigateNullInfoOf", "(", "flowInfo", ".", "unconditionalCopy", "(", ")", ".", "addPotentialInitializationsFrom", "(", "handlingContext", ".", "initsOnException", "(", "this", ".", "caughtExceptionTypes", "[", "i", "]", ")", ")", ".", "addPotentialInitializationsFrom", "(", "tryInfo", ")", ".", "addPotentialInitializationsFrom", "(", "handlingContext", ".", "initsOnReturn", ")", ")", ";", "}", "else", "{", "FlowInfo", "initsOnException", "=", "handlingContext", ".", "initsOnException", "(", "this", ".", "caughtExceptionTypes", "[", "i", "]", ")", ";", "catchInfo", "=", "flowInfo", ".", "nullInfoLessUnconditionalCopy", "(", ")", ".", "addPotentialInitializationsFrom", "(", "initsOnException", ")", ".", "addNullInfoFrom", "(", "initsOnException", ")", ".", "addPotentialInitializationsFrom", "(", "tryInfo", ".", "nullInfoLessUnconditionalCopy", "(", ")", ")", ".", "addPotentialInitializationsFrom", "(", "handlingContext", ".", "initsOnReturn", ".", "nullInfoLessUnconditionalCopy", "(", ")", ")", ";", "}", "LocalVariableBinding", "catchArg", "=", "this", ".", "catchArguments", "[", "i", "]", ".", "binding", ";", "catchInfo", ".", "markAsDefinitelyAssigned", "(", "catchArg", ")", ";", "catchInfo", ".", "markAsDefinitelyNonNull", "(", "catchArg", ")", ";", "if", "(", "this", ".", "tryBlock", ".", "statements", "==", "null", ")", "{", "catchInfo", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE", ")", ";", "}", "catchInfo", "=", "this", ".", "catchBlocks", "[", "i", "]", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "catchInfo", ")", ";", "this", ".", "catchExitInitStateIndexes", "[", "i", "]", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "catchInfo", ")", ";", "this", ".", "catchExits", "[", "i", "]", "=", "(", "catchInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", ";", "tryInfo", "=", "tryInfo", ".", "mergedWith", "(", "catchInfo", ".", "unconditionalInits", "(", ")", ")", ";", "}", "}", "this", ".", "mergedInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "tryInfo", ")", ";", "if", "(", "flowContext", ".", "initsOnFinally", "!=", "null", ")", "{", "flowContext", ".", "initsOnFinally", ".", "add", "(", "handlingContext", ".", "initsOnFinally", ")", ";", "}", "return", "tryInfo", ";", "}", "else", "{", "InsideSubRoutineFlowContext", "insideSubContext", ";", "FinallyFlowContext", "finallyContext", ";", "UnconditionalFlowInfo", "subInfo", ";", "insideSubContext", "=", "new", "InsideSubRoutineFlowContext", "(", "flowContext", ",", "this", ")", ";", "subInfo", "=", "this", ".", "finallyBlock", ".", "analyseCode", "(", "currentScope", ",", "finallyContext", "=", "new", "FinallyFlowContext", "(", "flowContext", ",", "this", ".", "finallyBlock", ")", ",", "flowInfo", ".", "nullInfoLessUnconditionalCopy", "(", ")", ")", ".", "unconditionalInits", "(", ")", ";", "if", "(", "subInfo", "==", "FlowInfo", ".", "DEAD_END", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "IsSubRoutineEscaping", ";", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "finallyMustCompleteNormally", "(", "this", ".", "finallyBlock", ")", ";", "}", "this", ".", "subRoutineInits", "=", "subInfo", ";", "ExceptionHandlingFlowContext", "handlingContext", "=", "new", "ExceptionHandlingFlowContext", "(", "insideSubContext", ",", "this", ",", "this", ".", "caughtExceptionTypes", ",", "null", ",", "this", ".", "scope", ",", "flowInfo", ".", "unconditionalInits", "(", ")", ")", ";", "handlingContext", ".", "initsOnFinally", "=", "new", "NullInfoRegistry", "(", "flowInfo", ".", "unconditionalInits", "(", ")", ")", ";", "FlowInfo", "tryInfo", ";", "if", "(", "this", ".", "tryBlock", ".", "isEmptyBlock", "(", ")", ")", "{", "tryInfo", "=", "flowInfo", ";", "}", "else", "{", "tryInfo", "=", "this", ".", "tryBlock", ".", "analyseCode", "(", "currentScope", ",", "handlingContext", ",", "flowInfo", ".", "copy", "(", ")", ")", ";", "if", "(", "(", "tryInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", ")", "this", ".", "bits", "|=", "ASTNode", ".", "IsTryBlockExiting", ";", "}", "handlingContext", ".", "complainIfUnusedExceptionHandlers", "(", "this", ".", "scope", ",", "this", ")", ";", "if", "(", "this", ".", "catchArguments", "!=", "null", ")", "{", "int", "catchCount", ";", "this", ".", "catchExits", "=", "new", "boolean", "[", "catchCount", "=", "this", ".", "catchBlocks", ".", "length", "]", ";", "this", ".", "catchExitInitStateIndexes", "=", "new", "int", "[", "catchCount", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "catchCount", ";", "i", "++", ")", "{", "FlowInfo", "catchInfo", ";", "if", "(", "this", ".", "caughtExceptionTypes", "[", "i", "]", ".", "isUncheckedException", "(", "true", ")", ")", "{", "catchInfo", "=", "handlingContext", ".", "initsOnFinally", ".", "mitigateNullInfoOf", "(", "flowInfo", ".", "unconditionalCopy", "(", ")", ".", "addPotentialInitializationsFrom", "(", "handlingContext", ".", "initsOnException", "(", "this", ".", "caughtExceptionTypes", "[", "i", "]", ")", ")", ".", "addPotentialInitializationsFrom", "(", "tryInfo", ")", ".", "addPotentialInitializationsFrom", "(", "handlingContext", ".", "initsOnReturn", ")", ")", ";", "}", "else", "{", "FlowInfo", "initsOnException", "=", "handlingContext", ".", "initsOnException", "(", "this", ".", "caughtExceptionTypes", "[", "i", "]", ")", ";", "catchInfo", "=", "flowInfo", ".", "nullInfoLessUnconditionalCopy", "(", ")", ".", "addPotentialInitializationsFrom", "(", "initsOnException", ")", ".", "addNullInfoFrom", "(", "initsOnException", ")", ".", "addPotentialInitializationsFrom", "(", "tryInfo", ".", "nullInfoLessUnconditionalCopy", "(", ")", ")", ".", "addPotentialInitializationsFrom", "(", "handlingContext", ".", "initsOnReturn", ".", "nullInfoLessUnconditionalCopy", "(", ")", ")", ";", "}", "LocalVariableBinding", "catchArg", "=", "this", ".", "catchArguments", "[", "i", "]", ".", "binding", ";", "catchInfo", ".", "markAsDefinitelyAssigned", "(", "catchArg", ")", ";", "catchInfo", ".", "markAsDefinitelyNonNull", "(", "catchArg", ")", ";", "if", "(", "this", ".", "tryBlock", ".", "statements", "==", "null", ")", "{", "catchInfo", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE", ")", ";", "}", "catchInfo", "=", "this", ".", "catchBlocks", "[", "i", "]", ".", "analyseCode", "(", "currentScope", ",", "insideSubContext", ",", "catchInfo", ")", ";", "this", ".", "catchExitInitStateIndexes", "[", "i", "]", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "catchInfo", ")", ";", "this", ".", "catchExits", "[", "i", "]", "=", "(", "catchInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", ";", "tryInfo", "=", "tryInfo", ".", "mergedWith", "(", "catchInfo", ".", "unconditionalInits", "(", ")", ")", ";", "}", "}", "finallyContext", ".", "complainOnDeferredChecks", "(", "handlingContext", ".", "initsOnFinally", ".", "mitigateNullInfoOf", "(", "(", "tryInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", "?", "flowInfo", ".", "unconditionalCopy", "(", ")", ".", "addPotentialInitializationsFrom", "(", "tryInfo", ")", ".", "addPotentialInitializationsFrom", "(", "insideSubContext", ".", "initsOnReturn", ")", ":", "insideSubContext", ".", "initsOnReturn", ")", ",", "currentScope", ")", ";", "if", "(", "flowContext", ".", "initsOnFinally", "!=", "null", ")", "{", "flowContext", ".", "initsOnFinally", ".", "add", "(", "handlingContext", ".", "initsOnFinally", ")", ";", "}", "this", ".", "naturalExitMergeInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "tryInfo", ")", ";", "if", "(", "subInfo", "==", "FlowInfo", ".", "DEAD_END", ")", "{", "this", ".", "mergedInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "subInfo", ")", ";", "return", "subInfo", ";", "}", "else", "{", "FlowInfo", "mergedInfo", "=", "tryInfo", ".", "addInitializationsFrom", "(", "subInfo", ")", ";", "this", ".", "mergedInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "mergedInfo", ")", ";", "return", "mergedInfo", ";", "}", "}", "}", "public", "ExceptionLabel", "enterAnyExceptionHandler", "(", "CodeStream", "codeStream", ")", "{", "if", "(", "this", ".", "subRoutineStartLabel", "==", "null", ")", "return", "null", ";", "return", "super", ".", "enterAnyExceptionHandler", "(", "codeStream", ")", ";", "}", "public", "void", "enterDeclaredExceptionHandlers", "(", "CodeStream", "codeStream", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "declaredExceptionLabels", "==", "null", "?", "0", ":", "this", ".", "declaredExceptionLabels", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "declaredExceptionLabels", "[", "i", "]", ".", "placeStart", "(", ")", ";", "}", "}", "public", "void", "exitAnyExceptionHandler", "(", ")", "{", "if", "(", "this", ".", "subRoutineStartLabel", "==", "null", ")", "return", ";", "super", ".", "exitAnyExceptionHandler", "(", ")", ";", "}", "public", "void", "exitDeclaredExceptionHandlers", "(", "CodeStream", "codeStream", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "declaredExceptionLabels", "==", "null", "?", "0", ":", "this", ".", "declaredExceptionLabels", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "declaredExceptionLabels", "[", "i", "]", ".", "placeEnd", "(", ")", ";", "}", "}", "private", "int", "finallyMode", "(", ")", "{", "if", "(", "this", ".", "subRoutineStartLabel", "==", "null", ")", "{", "return", "NO_FINALLY", ";", "}", "else", "if", "(", "isSubRoutineEscaping", "(", ")", ")", "{", "return", "FINALLY_DOES_NOT_COMPLETE", ";", "}", "else", "if", "(", "this", ".", "scope", ".", "compilerOptions", "(", ")", ".", "inlineJsrBytecode", ")", "{", "return", "FINALLY_INLINE", ";", "}", "else", "{", "return", "FINALLY_SUBROUTINE", ";", "}", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsReachable", ")", "==", "0", ")", "{", "return", ";", "}", "boolean", "isStackMapFrameCodeStream", "=", "codeStream", "instanceof", "StackMapFrameCodeStream", ";", "this", ".", "anyExceptionLabel", "=", "null", ";", "this", ".", "reusableJSRTargets", "=", "null", ";", "this", ".", "reusableJSRSequenceStartLabels", "=", "null", ";", "this", ".", "reusableJSRTargetsCount", "=", "0", ";", "int", "pc", "=", "codeStream", ".", "position", ";", "int", "finallyMode", "=", "finallyMode", "(", ")", ";", "boolean", "requiresNaturalExit", "=", "false", ";", "int", "maxCatches", "=", "this", ".", "catchArguments", "==", "null", "?", "0", ":", "this", ".", "catchArguments", ".", "length", ";", "ExceptionLabel", "[", "]", "exceptionLabels", ";", "if", "(", "maxCatches", ">", "0", ")", "{", "exceptionLabels", "=", "new", "ExceptionLabel", "[", "maxCatches", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "maxCatches", ";", "i", "++", ")", "{", "ExceptionLabel", "exceptionLabel", "=", "new", "ExceptionLabel", "(", "codeStream", ",", "this", ".", "catchArguments", "[", "i", "]", ".", "binding", ".", "type", ")", ";", "exceptionLabel", ".", "placeStart", "(", ")", ";", "exceptionLabels", "[", "i", "]", "=", "exceptionLabel", ";", "}", "}", "else", "{", "exceptionLabels", "=", "null", ";", "}", "if", "(", "this", ".", "subRoutineStartLabel", "!=", "null", ")", "{", "this", ".", "subRoutineStartLabel", ".", "initialize", "(", "codeStream", ")", ";", "enterAnyExceptionHandler", "(", "codeStream", ")", ";", "}", "try", "{", "this", ".", "declaredExceptionLabels", "=", "exceptionLabels", ";", "this", ".", "tryBlock", ".", "generateCode", "(", "this", ".", "scope", ",", "codeStream", ")", ";", "}", "finally", "{", "this", ".", "declaredExceptionLabels", "=", "null", ";", "}", "boolean", "tryBlockHasSomeCode", "=", "codeStream", ".", "position", "!=", "pc", ";", "if", "(", "tryBlockHasSomeCode", ")", "{", "BranchLabel", "naturalExitLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "BranchLabel", "postCatchesFinallyLabel", "=", "null", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "maxCatches", ";", "i", "++", ")", "{", "exceptionLabels", "[", "i", "]", ".", "placeEnd", "(", ")", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsTryBlockExiting", ")", "==", "0", ")", "{", "int", "position", "=", "codeStream", ".", "position", ";", "switch", "(", "finallyMode", ")", "{", "case", "FINALLY_SUBROUTINE", ":", "case", "FINALLY_INLINE", ":", "requiresNaturalExit", "=", "true", ";", "if", "(", "this", ".", "naturalExitMergeInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "}", "codeStream", ".", "goto_", "(", "naturalExitLabel", ")", ";", "break", ";", "case", "NO_FINALLY", ":", "if", "(", "this", ".", "naturalExitMergeInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "}", "codeStream", ".", "goto_", "(", "naturalExitLabel", ")", ";", "break", ";", "case", "FINALLY_DOES_NOT_COMPLETE", ":", "codeStream", ".", "goto_", "(", "this", ".", "subRoutineStartLabel", ")", ";", "break", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "this", ".", "tryBlock", ".", "scope", ",", "position", ")", ";", "}", "exitAnyExceptionHandler", "(", ")", ";", "if", "(", "this", ".", "catchArguments", "!=", "null", ")", "{", "postCatchesFinallyLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "maxCatches", ";", "i", "++", ")", "{", "if", "(", "exceptionLabels", "[", "i", "]", ".", "count", "==", "0", ")", "continue", ";", "enterAnyExceptionHandler", "(", "codeStream", ")", ";", "if", "(", "this", ".", "preTryInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "preTryInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "preTryInitStateIndex", ")", ";", "}", "codeStream", ".", "pushExceptionOnStack", "(", "exceptionLabels", "[", "i", "]", ".", "exceptionType", ")", ";", "exceptionLabels", "[", "i", "]", ".", "place", "(", ")", ";", "LocalVariableBinding", "catchVar", ";", "int", "varPC", "=", "codeStream", ".", "position", ";", "if", "(", "(", "catchVar", "=", "this", ".", "catchArguments", "[", "i", "]", ".", "binding", ")", ".", "resolvedPosition", "!=", "-", "1", ")", "{", "codeStream", ".", "store", "(", "catchVar", ",", "false", ")", ";", "catchVar", ".", "recordInitializationStartPC", "(", "codeStream", ".", "position", ")", ";", "codeStream", ".", "addVisibleLocalVariable", "(", "catchVar", ")", ";", "}", "else", "{", "codeStream", ".", "pop", "(", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "varPC", ",", "this", ".", "catchArguments", "[", "i", "]", ".", "sourceStart", ")", ";", "this", ".", "catchBlocks", "[", "i", "]", ".", "generateCode", "(", "this", ".", "scope", ",", "codeStream", ")", ";", "exitAnyExceptionHandler", "(", ")", ";", "if", "(", "!", "this", ".", "catchExits", "[", "i", "]", ")", "{", "switch", "(", "finallyMode", ")", "{", "case", "FINALLY_INLINE", ":", "if", "(", "isStackMapFrameCodeStream", ")", "{", "(", "(", "StackMapFrameCodeStream", ")", "codeStream", ")", ".", "pushStateIndex", "(", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "}", "if", "(", "this", ".", "catchExitInitStateIndexes", "[", "i", "]", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "catchExitInitStateIndexes", "[", "i", "]", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "catchExitInitStateIndexes", "[", "i", "]", ")", ";", "}", "this", ".", "finallyBlock", ".", "generateCode", "(", "this", ".", "scope", ",", "codeStream", ")", ";", "codeStream", ".", "goto_", "(", "postCatchesFinallyLabel", ")", ";", "if", "(", "isStackMapFrameCodeStream", ")", "{", "(", "(", "StackMapFrameCodeStream", ")", "codeStream", ")", ".", "popStateIndex", "(", ")", ";", "}", "break", ";", "case", "FINALLY_SUBROUTINE", ":", "requiresNaturalExit", "=", "true", ";", "case", "NO_FINALLY", ":", "if", "(", "this", ".", "naturalExitMergeInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "}", "codeStream", ".", "goto_", "(", "naturalExitLabel", ")", ";", "break", ";", "case", "FINALLY_DOES_NOT_COMPLETE", ":", "codeStream", ".", "goto_", "(", "this", ".", "subRoutineStartLabel", ")", ";", "break", ";", "}", "}", "}", "}", "ExceptionLabel", "naturalExitExceptionHandler", "=", "requiresNaturalExit", "&&", "(", "finallyMode", "==", "FINALLY_SUBROUTINE", ")", "?", "new", "ExceptionLabel", "(", "codeStream", ",", "null", ")", ":", "null", ";", "int", "finallySequenceStartPC", "=", "codeStream", ".", "position", ";", "if", "(", "this", ".", "subRoutineStartLabel", "!=", "null", "&&", "this", ".", "anyExceptionLabel", ".", "count", "!=", "0", ")", "{", "codeStream", ".", "pushExceptionOnStack", "(", "this", ".", "scope", ".", "getJavaLangThrowable", "(", ")", ")", ";", "if", "(", "this", ".", "preTryInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "preTryInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "preTryInitStateIndex", ")", ";", "}", "placeAllAnyExceptionHandler", "(", ")", ";", "if", "(", "naturalExitExceptionHandler", "!=", "null", ")", "naturalExitExceptionHandler", ".", "place", "(", ")", ";", "switch", "(", "finallyMode", ")", "{", "case", "FINALLY_SUBROUTINE", ":", "codeStream", ".", "store", "(", "this", ".", "anyExceptionVariable", ",", "false", ")", ";", "codeStream", ".", "jsr", "(", "this", ".", "subRoutineStartLabel", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "finallySequenceStartPC", ",", "this", ".", "finallyBlock", ".", "sourceStart", ")", ";", "int", "position", "=", "codeStream", ".", "position", ";", "codeStream", ".", "throwAnyException", "(", "this", ".", "anyExceptionVariable", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "position", ",", "this", ".", "finallyBlock", ".", "sourceEnd", ")", ";", "this", ".", "subRoutineStartLabel", ".", "place", "(", ")", ";", "codeStream", ".", "pushExceptionOnStack", "(", "this", ".", "scope", ".", "getJavaLangThrowable", "(", ")", ")", ";", "position", "=", "codeStream", ".", "position", ";", "codeStream", ".", "store", "(", "this", ".", "returnAddressVariable", ",", "false", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "position", ",", "this", ".", "finallyBlock", ".", "sourceStart", ")", ";", "this", ".", "finallyBlock", ".", "generateCode", "(", "this", ".", "scope", ",", "codeStream", ")", ";", "position", "=", "codeStream", ".", "position", ";", "codeStream", ".", "ret", "(", "this", ".", "returnAddressVariable", ".", "resolvedPosition", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "position", ",", "this", ".", "finallyBlock", ".", "sourceEnd", ")", ";", "break", ";", "case", "FINALLY_INLINE", ":", "codeStream", ".", "store", "(", "this", ".", "anyExceptionVariable", ",", "false", ")", ";", "codeStream", ".", "addVariable", "(", "this", ".", "anyExceptionVariable", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "finallySequenceStartPC", ",", "this", ".", "finallyBlock", ".", "sourceStart", ")", ";", "this", ".", "finallyBlock", ".", "generateCode", "(", "currentScope", ",", "codeStream", ")", ";", "position", "=", "codeStream", ".", "position", ";", "codeStream", ".", "throwAnyException", "(", "this", ".", "anyExceptionVariable", ")", ";", "codeStream", ".", "removeVariable", "(", "this", ".", "anyExceptionVariable", ")", ";", "if", "(", "this", ".", "preTryInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "preTryInitStateIndex", ")", ";", "}", "this", ".", "subRoutineStartLabel", ".", "place", "(", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "position", ",", "this", ".", "finallyBlock", ".", "sourceEnd", ")", ";", "break", ";", "case", "FINALLY_DOES_NOT_COMPLETE", ":", "codeStream", ".", "pop", "(", ")", ";", "this", ".", "subRoutineStartLabel", ".", "place", "(", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "finallySequenceStartPC", ",", "this", ".", "finallyBlock", ".", "sourceStart", ")", ";", "this", ".", "finallyBlock", ".", "generateCode", "(", "this", ".", "scope", ",", "codeStream", ")", ";", "break", ";", "}", "if", "(", "requiresNaturalExit", ")", "{", "switch", "(", "finallyMode", ")", "{", "case", "FINALLY_SUBROUTINE", ":", "naturalExitLabel", ".", "place", "(", ")", ";", "int", "position", "=", "codeStream", ".", "position", ";", "naturalExitExceptionHandler", ".", "placeStart", "(", ")", ";", "codeStream", ".", "jsr", "(", "this", ".", "subRoutineStartLabel", ")", ";", "naturalExitExceptionHandler", ".", "placeEnd", "(", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "position", ",", "this", ".", "finallyBlock", ".", "sourceEnd", ")", ";", "break", ";", "case", "FINALLY_INLINE", ":", "if", "(", "isStackMapFrameCodeStream", ")", "{", "(", "(", "StackMapFrameCodeStream", ")", "codeStream", ")", ".", "pushStateIndex", "(", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "}", "if", "(", "this", ".", "naturalExitMergeInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "}", "naturalExitLabel", ".", "place", "(", ")", ";", "this", ".", "finallyBlock", ".", "generateCode", "(", "this", ".", "scope", ",", "codeStream", ")", ";", "if", "(", "postCatchesFinallyLabel", "!=", "null", ")", "{", "position", "=", "codeStream", ".", "position", ";", "codeStream", ".", "goto_", "(", "postCatchesFinallyLabel", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "position", ",", "this", ".", "finallyBlock", ".", "sourceEnd", ")", ";", "}", "if", "(", "isStackMapFrameCodeStream", ")", "{", "(", "(", "StackMapFrameCodeStream", ")", "codeStream", ")", ".", "popStateIndex", "(", ")", ";", "}", "break", ";", "case", "FINALLY_DOES_NOT_COMPLETE", ":", "break", ";", "default", ":", "naturalExitLabel", ".", "place", "(", ")", ";", "break", ";", "}", "}", "if", "(", "postCatchesFinallyLabel", "!=", "null", ")", "{", "postCatchesFinallyLabel", ".", "place", "(", ")", ";", "}", "}", "else", "{", "naturalExitLabel", ".", "place", "(", ")", ";", "}", "}", "else", "{", "if", "(", "this", ".", "subRoutineStartLabel", "!=", "null", ")", "{", "this", ".", "finallyBlock", ".", "generateCode", "(", "this", ".", "scope", ",", "codeStream", ")", ";", "}", "}", "if", "(", "this", ".", "mergedInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "boolean", "generateSubRoutineInvocation", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "Object", "targetLocation", ",", "int", "stateIndex", ",", "LocalVariableBinding", "secretLocal", ")", "{", "boolean", "isStackMapFrameCodeStream", "=", "codeStream", "instanceof", "StackMapFrameCodeStream", ";", "int", "finallyMode", "=", "finallyMode", "(", ")", ";", "switch", "(", "finallyMode", ")", "{", "case", "FINALLY_DOES_NOT_COMPLETE", ":", "codeStream", ".", "goto_", "(", "this", ".", "subRoutineStartLabel", ")", ";", "return", "true", ";", "case", "NO_FINALLY", ":", "exitDeclaredExceptionHandlers", "(", "codeStream", ")", ";", "return", "false", ";", "}", "if", "(", "targetLocation", "!=", "null", ")", "{", "boolean", "reuseTargetLocation", "=", "true", ";", "if", "(", "this", ".", "reusableJSRTargetsCount", ">", "0", ")", "{", "nextReusableTarget", ":", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "reusableJSRTargetsCount", ";", "i", "<", "count", ";", "i", "++", ")", "{", "Object", "reusableJSRTarget", "=", "this", ".", "reusableJSRTargets", "[", "i", "]", ";", "differentTarget", ":", "{", "if", "(", "targetLocation", "==", "reusableJSRTarget", ")", "break", "differentTarget", ";", "if", "(", "targetLocation", "instanceof", "Constant", "&&", "reusableJSRTarget", "instanceof", "Constant", "&&", "(", "(", "Constant", ")", "targetLocation", ")", ".", "hasSameValue", "(", "(", "Constant", ")", "reusableJSRTarget", ")", ")", "{", "break", "differentTarget", ";", "}", "continue", "nextReusableTarget", ";", "}", "if", "(", "(", "this", ".", "reusableJSRStateIndexes", "[", "i", "]", "!=", "stateIndex", ")", "&&", "finallyMode", "==", "FINALLY_INLINE", ")", "{", "reuseTargetLocation", "=", "false", ";", "break", "nextReusableTarget", ";", "}", "else", "{", "codeStream", ".", "goto_", "(", "this", ".", "reusableJSRSequenceStartLabels", "[", "i", "]", ")", ";", "return", "true", ";", "}", "}", "}", "else", "{", "this", ".", "reusableJSRTargets", "=", "new", "Object", "[", "3", "]", ";", "this", ".", "reusableJSRSequenceStartLabels", "=", "new", "BranchLabel", "[", "3", "]", ";", "this", ".", "reusableJSRStateIndexes", "=", "new", "int", "[", "3", "]", ";", "}", "if", "(", "reuseTargetLocation", ")", "{", "if", "(", "this", ".", "reusableJSRTargetsCount", "==", "this", ".", "reusableJSRTargets", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "reusableJSRTargets", ",", "0", ",", "this", ".", "reusableJSRTargets", "=", "new", "Object", "[", "2", "*", "this", ".", "reusableJSRTargetsCount", "]", ",", "0", ",", "this", ".", "reusableJSRTargetsCount", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "reusableJSRSequenceStartLabels", ",", "0", ",", "this", ".", "reusableJSRSequenceStartLabels", "=", "new", "BranchLabel", "[", "2", "*", "this", ".", "reusableJSRTargetsCount", "]", ",", "0", ",", "this", ".", "reusableJSRTargetsCount", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "reusableJSRStateIndexes", ",", "0", ",", "this", ".", "reusableJSRStateIndexes", "=", "new", "int", "[", "2", "*", "this", ".", "reusableJSRTargetsCount", "]", ",", "0", ",", "this", ".", "reusableJSRTargetsCount", ")", ";", "}", "this", ".", "reusableJSRTargets", "[", "this", ".", "reusableJSRTargetsCount", "]", "=", "targetLocation", ";", "BranchLabel", "reusableJSRSequenceStartLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "reusableJSRSequenceStartLabel", ".", "place", "(", ")", ";", "this", ".", "reusableJSRStateIndexes", "[", "this", ".", "reusableJSRTargetsCount", "]", "=", "stateIndex", ";", "this", ".", "reusableJSRSequenceStartLabels", "[", "this", ".", "reusableJSRTargetsCount", "++", "]", "=", "reusableJSRSequenceStartLabel", ";", "}", "}", "if", "(", "finallyMode", "==", "FINALLY_INLINE", ")", "{", "if", "(", "isStackMapFrameCodeStream", ")", "{", "(", "(", "StackMapFrameCodeStream", ")", "codeStream", ")", ".", "pushStateIndex", "(", "stateIndex", ")", ";", "if", "(", "this", ".", "naturalExitMergeInitStateIndex", "!=", "-", "1", "||", "stateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "}", "}", "else", "{", "if", "(", "this", ".", "naturalExitMergeInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "}", "}", "if", "(", "secretLocal", "!=", "null", ")", "{", "codeStream", ".", "addVariable", "(", "secretLocal", ")", ";", "}", "exitAnyExceptionHandler", "(", ")", ";", "exitDeclaredExceptionHandlers", "(", "codeStream", ")", ";", "this", ".", "finallyBlock", ".", "generateCode", "(", "currentScope", ",", "codeStream", ")", ";", "if", "(", "isStackMapFrameCodeStream", ")", "{", "(", "(", "StackMapFrameCodeStream", ")", "codeStream", ")", ".", "popStateIndex", "(", ")", ";", "}", "}", "else", "{", "codeStream", ".", "jsr", "(", "this", ".", "subRoutineStartLabel", ")", ";", "exitAnyExceptionHandler", "(", ")", ";", "exitDeclaredExceptionHandlers", "(", "codeStream", ")", ";", "}", "return", "false", ";", "}", "public", "boolean", "isSubRoutineEscaping", "(", ")", "{", "return", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsSubRoutineEscaping", ")", "!=", "0", ";", "}", "public", "StringBuffer", "printStatement", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "indent", ",", "output", ")", ".", "append", "(", "\"try", "n\"", ")", ";", "this", ".", "tryBlock", ".", "printStatement", "(", "indent", "+", "1", ",", "output", ")", ";", "if", "(", "this", ".", "catchBlocks", "!=", "null", ")", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "catchBlocks", ".", "length", ";", "i", "++", ")", "{", "output", ".", "append", "(", "'\\n'", ")", ";", "printIndent", "(", "indent", ",", "output", ")", ".", "append", "(", "\"catch", "(\"", ")", ";", "this", ".", "catchArguments", "[", "i", "]", ".", "print", "(", "0", ",", "output", ")", ".", "append", "(", "\")", "\"", ")", ";", "this", ".", "catchBlocks", "[", "i", "]", ".", "printStatement", "(", "indent", "+", "1", ",", "output", ")", ";", "}", "if", "(", "this", ".", "finallyBlock", "!=", "null", ")", "{", "output", ".", "append", "(", "'\\n'", ")", ";", "printIndent", "(", "indent", ",", "output", ")", ".", "append", "(", "\"finallyn\"", ")", ";", "this", ".", "finallyBlock", ".", "printStatement", "(", "indent", "+", "1", ",", "output", ")", ";", "}", "return", "output", ";", "}", "public", "void", "resolve", "(", "BlockScope", "upperScope", ")", "{", "this", ".", "scope", "=", "new", "BlockScope", "(", "upperScope", ")", ";", "BlockScope", "tryScope", "=", "new", "BlockScope", "(", "this", ".", "scope", ")", ";", "BlockScope", "finallyScope", "=", "null", ";", "if", "(", "this", ".", "finallyBlock", "!=", "null", ")", "{", "if", "(", "this", ".", "finallyBlock", ".", "isEmptyBlock", "(", ")", ")", "{", "if", "(", "(", "this", ".", "finallyBlock", ".", "bits", "&", "ASTNode", ".", "UndocumentedEmptyBlock", ")", "!=", "0", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "undocumentedEmptyBlock", "(", "this", ".", "finallyBlock", ".", "sourceStart", ",", "this", ".", "finallyBlock", ".", "sourceEnd", ")", ";", "}", "}", "else", "{", "finallyScope", "=", "new", "BlockScope", "(", "this", ".", "scope", ",", "false", ")", ";", "MethodScope", "methodScope", "=", "this", ".", "scope", ".", "methodScope", "(", ")", ";", "if", "(", "!", "upperScope", ".", "compilerOptions", "(", ")", ".", "inlineJsrBytecode", ")", "{", "this", ".", "returnAddressVariable", "=", "new", "LocalVariableBinding", "(", "TryStatement", ".", "SECRET_RETURN_ADDRESS_NAME", ",", "upperScope", ".", "getJavaLangObject", "(", ")", ",", "ClassFileConstants", ".", "AccDefault", ",", "false", ")", ";", "finallyScope", ".", "addLocalVariable", "(", "this", ".", "returnAddressVariable", ")", ";", "this", ".", "returnAddressVariable", ".", "setConstant", "(", "Constant", ".", "NotAConstant", ")", ";", "}", "this", ".", "subRoutineStartLabel", "=", "new", "BranchLabel", "(", ")", ";", "this", ".", "anyExceptionVariable", "=", "new", "LocalVariableBinding", "(", "TryStatement", ".", "SECRET_ANY_HANDLER_NAME", ",", "this", ".", "scope", ".", "getJavaLangThrowable", "(", ")", ",", "ClassFileConstants", ".", "AccDefault", ",", "false", ")", ";", "finallyScope", ".", "addLocalVariable", "(", "this", ".", "anyExceptionVariable", ")", ";", "this", ".", "anyExceptionVariable", ".", "setConstant", "(", "Constant", ".", "NotAConstant", ")", ";", "if", "(", "!", "methodScope", ".", "isInsideInitializer", "(", ")", ")", "{", "MethodBinding", "methodBinding", "=", "(", "(", "AbstractMethodDeclaration", ")", "methodScope", ".", "referenceContext", ")", ".", "binding", ";", "if", "(", "methodBinding", "!=", "null", ")", "{", "TypeBinding", "methodReturnType", "=", "methodBinding", ".", "returnType", ";", "if", "(", "methodReturnType", ".", "id", "!=", "TypeIds", ".", "T_void", ")", "{", "this", ".", "secretReturnValue", "=", "new", "LocalVariableBinding", "(", "TryStatement", ".", "SECRET_RETURN_VALUE_NAME", ",", "methodReturnType", ",", "ClassFileConstants", ".", "AccDefault", ",", "false", ")", ";", "finallyScope", ".", "addLocalVariable", "(", "this", ".", "secretReturnValue", ")", ";", "this", ".", "secretReturnValue", ".", "setConstant", "(", "Constant", ".", "NotAConstant", ")", ";", "}", "}", "}", "this", ".", "finallyBlock", ".", "resolveUsing", "(", "finallyScope", ")", ";", "finallyScope", ".", "shiftScopes", "=", "new", "BlockScope", "[", "this", ".", "catchArguments", "==", "null", "?", "1", ":", "this", ".", "catchArguments", ".", "length", "+", "1", "]", ";", "finallyScope", ".", "shiftScopes", "[", "0", "]", "=", "tryScope", ";", "}", "}", "this", ".", "tryBlock", ".", "resolveUsing", "(", "tryScope", ")", ";", "if", "(", "this", ".", "catchBlocks", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "catchArguments", ".", "length", ";", "TypeBinding", "[", "]", "argumentTypes", "=", "new", "TypeBinding", "[", "length", "]", ";", "boolean", "catchHasError", "=", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "BlockScope", "catchScope", "=", "new", "BlockScope", "(", "this", ".", "scope", ")", ";", "if", "(", "finallyScope", "!=", "null", ")", "{", "finallyScope", ".", "shiftScopes", "[", "i", "+", "1", "]", "=", "catchScope", ";", "}", "if", "(", "(", "argumentTypes", "[", "i", "]", "=", "this", ".", "catchArguments", "[", "i", "]", ".", "resolveForCatch", "(", "catchScope", ")", ")", "==", "null", ")", "{", "catchHasError", "=", "true", ";", "}", "this", ".", "catchBlocks", "[", "i", "]", ".", "resolveUsing", "(", "catchScope", ")", ";", "}", "if", "(", "catchHasError", ")", "{", "return", ";", "}", "this", ".", "caughtExceptionTypes", "=", "new", "ReferenceBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "caughtExceptionTypes", "[", "i", "]", "=", "(", "ReferenceBinding", ")", "argumentTypes", "[", "i", "]", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "i", ";", "j", "++", ")", "{", "if", "(", "this", ".", "caughtExceptionTypes", "[", "i", "]", ".", "isCompatibleWith", "(", "argumentTypes", "[", "j", "]", ")", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "wrongSequenceOfExceptionTypesError", "(", "this", ",", "this", ".", "caughtExceptionTypes", "[", "i", "]", ",", "i", ",", "argumentTypes", "[", "j", "]", ")", ";", "}", "}", "}", "}", "else", "{", "this", ".", "caughtExceptionTypes", "=", "new", "ReferenceBinding", "[", "0", "]", ";", "}", "if", "(", "finallyScope", "!=", "null", ")", "{", "this", ".", "scope", ".", "addSubscope", "(", "finallyScope", ")", ";", "}", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "this", ".", "tryBlock", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "if", "(", "this", ".", "catchArguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "catchBlocks", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "this", ".", "catchArguments", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "this", ".", "catchBlocks", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "finallyBlock", "!=", "null", ")", "this", ".", "finallyBlock", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
5,679
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "public", "class", "StringLiteralConcatenation", "extends", "StringLiteral", "{", "private", "static", "final", "int", "INITIAL_SIZE", "=", "5", ";", "public", "Expression", "[", "]", "literals", ";", "public", "int", "counter", ";", "public", "StringLiteralConcatenation", "(", "StringLiteral", "str1", ",", "StringLiteral", "str2", ")", "{", "super", "(", "str1", ".", "sourceStart", ",", "str1", ".", "sourceEnd", ")", ";", "this", ".", "source", "=", "str1", ".", "source", ";", "this", ".", "literals", "=", "new", "StringLiteral", "[", "INITIAL_SIZE", "]", ";", "this", ".", "counter", "=", "0", ";", "this", ".", "literals", "[", "this", ".", "counter", "++", "]", "=", "str1", ";", "extendsWith", "(", "str2", ")", ";", "}", "public", "StringLiteralConcatenation", "extendsWith", "(", "StringLiteral", "lit", ")", "{", "this", ".", "sourceEnd", "=", "lit", ".", "sourceEnd", ";", "final", "int", "literalsLength", "=", "this", ".", "literals", ".", "length", ";", "if", "(", "this", ".", "counter", "==", "literalsLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "literals", ",", "0", ",", "this", ".", "literals", "=", "new", "StringLiteral", "[", "literalsLength", "+", "INITIAL_SIZE", "]", ",", "0", ",", "literalsLength", ")", ";", "}", "int", "length", "=", "this", ".", "source", ".", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "source", ",", "0", ",", "this", ".", "source", "=", "new", "char", "[", "length", "+", "lit", ".", "source", ".", "length", "]", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "lit", ".", "source", ",", "0", ",", "this", ".", "source", ",", "length", ",", "lit", ".", "source", ".", "length", ")", ";", "this", ".", "literals", "[", "this", ".", "counter", "++", "]", "=", "lit", ";", "return", "this", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "output", ".", "append", "(", "\"\"", ")", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "counter", ";", "i", "<", "max", ";", "i", "++", ")", "{", "this", ".", "literals", "[", "i", "]", ".", "printExpression", "(", "indent", ",", "output", ")", ";", "output", ".", "append", "(", "\"+n\"", ")", ";", "}", "return", "output", ".", "append", "(", "'}'", ")", ";", "}", "public", "char", "[", "]", "source", "(", ")", "{", "return", "this", ".", "source", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "counter", ";", "i", "<", "max", ";", "i", "++", ")", "{", "this", ".", "literals", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,680
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "abstract", "class", "NameReference", "extends", "Reference", "implements", "InvocationSite", "{", "public", "Binding", "binding", ";", "public", "TypeBinding", "actualReceiverType", ";", "public", "NameReference", "(", ")", "{", "this", ".", "bits", "|=", "Binding", ".", "TYPE", "|", "Binding", ".", "VARIABLE", ";", "}", "public", "FieldBinding", "fieldBinding", "(", ")", "{", "return", "(", "FieldBinding", ")", "this", ".", "binding", ";", "}", "public", "boolean", "isSuperAccess", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isTypeAccess", "(", ")", "{", "return", "this", ".", "binding", "==", "null", "||", "this", ".", "binding", "instanceof", "ReferenceBinding", ";", "}", "public", "boolean", "isTypeReference", "(", ")", "{", "return", "this", ".", "binding", "instanceof", "ReferenceBinding", ";", "}", "public", "void", "setActualReceiverType", "(", "ReferenceBinding", "receiverType", ")", "{", "if", "(", "receiverType", "==", "null", ")", "return", ";", "this", ".", "actualReceiverType", "=", "receiverType", ";", "}", "public", "void", "setDepth", "(", "int", "depth", ")", "{", "this", ".", "bits", "&=", "~", "DepthMASK", ";", "if", "(", "depth", ">", "0", ")", "{", "this", ".", "bits", "|=", "(", "depth", "&", "0xFF", ")", "<<", "DepthSHIFT", ";", "}", "}", "public", "void", "setFieldIndex", "(", "int", "index", ")", "{", "}", "public", "abstract", "String", "unboundReferenceErrorName", "(", ")", ";", "}", "</s>" ]
5,681
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "BinaryExpression", "extends", "OperatorExpression", "{", "public", "Expression", "left", ",", "right", ";", "public", "Constant", "optimizedBooleanConstant", ";", "public", "BinaryExpression", "(", "Expression", "left", ",", "Expression", "right", ",", "int", "operator", ")", "{", "this", ".", "left", "=", "left", ";", "this", ".", "right", "=", "right", ";", "this", ".", "bits", "|=", "operator", "<<", "ASTNode", ".", "OperatorSHIFT", ";", "this", ".", "sourceStart", "=", "left", ".", "sourceStart", ";", "this", ".", "sourceEnd", "=", "right", ".", "sourceEnd", ";", "}", "public", "BinaryExpression", "(", "BinaryExpression", "expression", ")", "{", "this", ".", "left", "=", "expression", ".", "left", ";", "this", ".", "right", "=", "expression", ".", "right", ";", "this", ".", "bits", "=", "expression", ".", "bits", ";", "this", ".", "sourceStart", "=", "expression", ".", "sourceStart", ";", "this", ".", "sourceEnd", "=", "expression", ".", "sourceEnd", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "resolvedType", ".", "id", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "return", "this", ".", "right", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "this", ".", "left", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ")", ".", "unconditionalInits", "(", ")", ";", "}", "else", "{", "this", ".", "left", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "flowInfo", "=", "this", ".", "left", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "this", ".", "right", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "return", "this", ".", "right", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "}", "}", "public", "void", "computeConstant", "(", "BlockScope", "scope", ",", "int", "leftId", ",", "int", "rightId", ")", "{", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", ")", "{", "try", "{", "this", ".", "constant", "=", "Constant", ".", "computeConstantOperation", "(", "this", ".", "left", ".", "constant", ",", "leftId", ",", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ",", "this", ".", "right", ".", "constant", ",", "rightId", ")", ";", "}", "catch", "(", "ArithmeticException", "e", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "}", "}", "else", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "this", ".", "optimizedBooleanConstant", "(", "leftId", ",", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ",", "rightId", ")", ";", "}", "}", "public", "Constant", "optimizedBooleanConstant", "(", ")", "{", "return", "this", ".", "optimizedBooleanConstant", "==", "null", "?", "this", ".", "constant", ":", "this", ".", "optimizedBooleanConstant", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "valueRequired", ")", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "switch", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ")", "{", "case", "PLUS", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_JavaLangString", ":", "codeStream", ".", "generateStringConcatenationAppend", "(", "currentScope", ",", "this", ".", "left", ",", "this", ".", "right", ")", ";", "if", "(", "!", "valueRequired", ")", "codeStream", ".", "pop", "(", ")", ";", "break", ";", "case", "T_int", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "iadd", "(", ")", ";", "break", ";", "case", "T_long", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "ladd", "(", ")", ";", "break", ";", "case", "T_double", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "dadd", "(", ")", ";", "break", ";", "case", "T_float", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "fadd", "(", ")", ";", "break", ";", "}", "break", ";", "case", "MINUS", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_int", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "isub", "(", ")", ";", "break", ";", "case", "T_long", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "lsub", "(", ")", ";", "break", ";", "case", "T_double", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "dsub", "(", ")", ";", "break", ";", "case", "T_float", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "fsub", "(", ")", ";", "break", ";", "}", "break", ";", "case", "MULTIPLY", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_int", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "imul", "(", ")", ";", "break", ";", "case", "T_long", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "lmul", "(", ")", ";", "break", ";", "case", "T_double", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "dmul", "(", ")", ";", "break", ";", "case", "T_float", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "fmul", "(", ")", ";", "break", ";", "}", "break", ";", "case", "DIVIDE", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_int", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "idiv", "(", ")", ";", "if", "(", "!", "valueRequired", ")", "codeStream", ".", "pop", "(", ")", ";", "break", ";", "case", "T_long", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "ldiv", "(", ")", ";", "if", "(", "!", "valueRequired", ")", "codeStream", ".", "pop2", "(", ")", ";", "break", ";", "case", "T_double", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "ddiv", "(", ")", ";", "break", ";", "case", "T_float", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "fdiv", "(", ")", ";", "break", ";", "}", "break", ";", "case", "REMAINDER", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_int", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "irem", "(", ")", ";", "if", "(", "!", "valueRequired", ")", "codeStream", ".", "pop", "(", ")", ";", "break", ";", "case", "T_long", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "lrem", "(", ")", ";", "if", "(", "!", "valueRequired", ")", "codeStream", ".", "pop2", "(", ")", ";", "break", ";", "case", "T_double", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "drem", "(", ")", ";", "break", ";", "case", "T_float", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "frem", "(", ")", ";", "break", ";", "}", "break", ";", "case", "AND", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_int", ":", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_int", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "iconst_0", "(", ")", ";", "}", "else", "{", "if", "(", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_int", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "iconst_0", "(", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "iand", "(", ")", ";", "}", "}", "break", ";", "case", "T_long", ":", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_long", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "longValue", "(", ")", "==", "0L", ")", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "lconst_0", "(", ")", ";", "}", "else", "{", "if", "(", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_long", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "longValue", "(", ")", "==", "0L", ")", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "lconst_0", "(", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "land", "(", ")", ";", "}", "}", "break", ";", "case", "T_boolean", ":", "generateLogicalAnd", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "break", ";", "}", "break", ";", "case", "OR", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_int", ":", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_int", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "else", "{", "if", "(", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_int", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "ior", "(", ")", ";", "}", "}", "break", ";", "case", "T_long", ":", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_long", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "longValue", "(", ")", "==", "0L", ")", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "else", "{", "if", "(", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_long", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "longValue", "(", ")", "==", "0L", ")", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "lor", "(", ")", ";", "}", "}", "break", ";", "case", "T_boolean", ":", "generateLogicalOr", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "break", ";", "}", "break", ";", "case", "XOR", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_int", ":", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_int", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "else", "{", "if", "(", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_int", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "ixor", "(", ")", ";", "}", "}", "break", ";", "case", "T_long", ":", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_long", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "longValue", "(", ")", "==", "0L", ")", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "else", "{", "if", "(", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_long", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "longValue", "(", ")", "==", "0L", ")", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "lxor", "(", ")", ";", "}", "}", "break", ";", "case", "T_boolean", ":", "generateLogicalXor", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "break", ";", "}", "break", ";", "case", "LEFT_SHIFT", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_int", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "ishl", "(", ")", ";", "break", ";", "case", "T_long", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "lshl", "(", ")", ";", "}", "break", ";", "case", "RIGHT_SHIFT", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_int", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "ishr", "(", ")", ";", "break", ";", "case", "T_long", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "lshr", "(", ")", ";", "}", "break", ";", "case", "UNSIGNED_RIGHT_SHIFT", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_int", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "iushr", "(", ")", ";", "break", ";", "case", "T_long", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "lushr", "(", ")", ";", "}", "break", ";", "case", "GREATER", ":", "BranchLabel", "falseLabel", ",", "endLabel", ";", "generateOptimizedGreaterThan", "(", "currentScope", ",", "codeStream", ",", "null", ",", "(", "falseLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_1", "(", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsReturnedValue", ")", "!=", "0", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "generateReturnBytecode", "(", "this", ")", ";", "falseLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_0", "(", ")", ";", "}", "else", "{", "codeStream", ".", "goto_", "(", "endLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ";", "codeStream", ".", "decrStackSize", "(", "1", ")", ";", "falseLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_0", "(", ")", ";", "endLabel", ".", "place", "(", ")", ";", "}", "}", "break", ";", "case", "GREATER_EQUAL", ":", "generateOptimizedGreaterThanOrEqual", "(", "currentScope", ",", "codeStream", ",", "null", ",", "(", "falseLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_1", "(", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsReturnedValue", ")", "!=", "0", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "generateReturnBytecode", "(", "this", ")", ";", "falseLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_0", "(", ")", ";", "}", "else", "{", "codeStream", ".", "goto_", "(", "endLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ";", "codeStream", ".", "decrStackSize", "(", "1", ")", ";", "falseLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_0", "(", ")", ";", "endLabel", ".", "place", "(", ")", ";", "}", "}", "break", ";", "case", "LESS", ":", "generateOptimizedLessThan", "(", "currentScope", ",", "codeStream", ",", "null", ",", "(", "falseLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_1", "(", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsReturnedValue", ")", "!=", "0", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "generateReturnBytecode", "(", "this", ")", ";", "falseLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_0", "(", ")", ";", "}", "else", "{", "codeStream", ".", "goto_", "(", "endLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ";", "codeStream", ".", "decrStackSize", "(", "1", ")", ";", "falseLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_0", "(", ")", ";", "endLabel", ".", "place", "(", ")", ";", "}", "}", "break", ";", "case", "LESS_EQUAL", ":", "generateOptimizedLessThanOrEqual", "(", "currentScope", ",", "codeStream", ",", "null", ",", "(", "falseLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_1", "(", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsReturnedValue", ")", "!=", "0", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "generateReturnBytecode", "(", "this", ")", ";", "falseLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_0", "(", ")", ";", "}", "else", "{", "codeStream", ".", "goto_", "(", "endLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ";", "codeStream", ".", "decrStackSize", "(", "1", ")", ";", "falseLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_0", "(", ")", ";", "endLabel", ".", "place", "(", ")", ";", "}", "}", "}", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "void", "generateOptimizedBoolean", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "if", "(", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_boolean", ")", ")", "{", "super", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "return", ";", "}", "switch", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ")", "{", "case", "LESS", ":", "generateOptimizedLessThan", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "return", ";", "case", "LESS_EQUAL", ":", "generateOptimizedLessThanOrEqual", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "return", ";", "case", "GREATER", ":", "generateOptimizedGreaterThan", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "return", ";", "case", "GREATER_EQUAL", ":", "generateOptimizedGreaterThanOrEqual", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "return", ";", "case", "AND", ":", "generateOptimizedLogicalAnd", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "return", ";", "case", "OR", ":", "generateOptimizedLogicalOr", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "return", ";", "case", "XOR", ":", "generateOptimizedLogicalXor", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "return", ";", "}", "super", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "}", "public", "void", "generateOptimizedGreaterThan", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "int", "promotedTypeID", "=", "(", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ";", "if", "(", "promotedTypeID", "==", "TypeIds", ".", "T_int", ")", "{", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "iflt", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "ifge", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "if", "(", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "ifgt", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "ifle", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "}", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "switch", "(", "promotedTypeID", ")", "{", "case", "T_int", ":", "codeStream", ".", "if_icmpgt", "(", "trueLabel", ")", ";", "break", ";", "case", "T_float", ":", "codeStream", ".", "fcmpl", "(", ")", ";", "codeStream", ".", "ifgt", "(", "trueLabel", ")", ";", "break", ";", "case", "T_long", ":", "codeStream", ".", "lcmp", "(", ")", ";", "codeStream", ".", "ifgt", "(", "trueLabel", ")", ";", "break", ";", "case", "T_double", ":", "codeStream", ".", "dcmpl", "(", ")", ";", "codeStream", ".", "ifgt", "(", "trueLabel", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "switch", "(", "promotedTypeID", ")", "{", "case", "T_int", ":", "codeStream", ".", "if_icmple", "(", "falseLabel", ")", ";", "break", ";", "case", "T_float", ":", "codeStream", ".", "fcmpl", "(", ")", ";", "codeStream", ".", "ifle", "(", "falseLabel", ")", ";", "break", ";", "case", "T_long", ":", "codeStream", ".", "lcmp", "(", ")", ";", "codeStream", ".", "ifle", "(", "falseLabel", ")", ";", "break", ";", "case", "T_double", ":", "codeStream", ".", "dcmpl", "(", ")", ";", "codeStream", ".", "ifle", "(", "falseLabel", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "else", "{", "}", "}", "}", "}", "public", "void", "generateOptimizedGreaterThanOrEqual", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "int", "promotedTypeID", "=", "(", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ";", "if", "(", "promotedTypeID", "==", "TypeIds", ".", "T_int", ")", "{", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "ifle", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "ifgt", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "if", "(", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "ifge", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "iflt", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "}", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "switch", "(", "promotedTypeID", ")", "{", "case", "T_int", ":", "codeStream", ".", "if_icmpge", "(", "trueLabel", ")", ";", "break", ";", "case", "T_float", ":", "codeStream", ".", "fcmpl", "(", ")", ";", "codeStream", ".", "ifge", "(", "trueLabel", ")", ";", "break", ";", "case", "T_long", ":", "codeStream", ".", "lcmp", "(", ")", ";", "codeStream", ".", "ifge", "(", "trueLabel", ")", ";", "break", ";", "case", "T_double", ":", "codeStream", ".", "dcmpl", "(", ")", ";", "codeStream", ".", "ifge", "(", "trueLabel", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "switch", "(", "promotedTypeID", ")", "{", "case", "T_int", ":", "codeStream", ".", "if_icmplt", "(", "falseLabel", ")", ";", "break", ";", "case", "T_float", ":", "codeStream", ".", "fcmpl", "(", ")", ";", "codeStream", ".", "iflt", "(", "falseLabel", ")", ";", "break", ";", "case", "T_long", ":", "codeStream", ".", "lcmp", "(", ")", ";", "codeStream", ".", "iflt", "(", "falseLabel", ")", ";", "break", ";", "case", "T_double", ":", "codeStream", ".", "dcmpl", "(", ")", ";", "codeStream", ".", "iflt", "(", "falseLabel", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "else", "{", "}", "}", "}", "}", "public", "void", "generateOptimizedLessThan", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "int", "promotedTypeID", "=", "(", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ";", "if", "(", "promotedTypeID", "==", "TypeIds", ".", "T_int", ")", "{", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "ifgt", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "ifle", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "if", "(", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "iflt", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "ifge", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "}", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "switch", "(", "promotedTypeID", ")", "{", "case", "T_int", ":", "codeStream", ".", "if_icmplt", "(", "trueLabel", ")", ";", "break", ";", "case", "T_float", ":", "codeStream", ".", "fcmpg", "(", ")", ";", "codeStream", ".", "iflt", "(", "trueLabel", ")", ";", "break", ";", "case", "T_long", ":", "codeStream", ".", "lcmp", "(", ")", ";", "codeStream", ".", "iflt", "(", "trueLabel", ")", ";", "break", ";", "case", "T_double", ":", "codeStream", ".", "dcmpg", "(", ")", ";", "codeStream", ".", "iflt", "(", "trueLabel", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "switch", "(", "promotedTypeID", ")", "{", "case", "T_int", ":", "codeStream", ".", "if_icmpge", "(", "falseLabel", ")", ";", "break", ";", "case", "T_float", ":", "codeStream", ".", "fcmpg", "(", ")", ";", "codeStream", ".", "ifge", "(", "falseLabel", ")", ";", "break", ";", "case", "T_long", ":", "codeStream", ".", "lcmp", "(", ")", ";", "codeStream", ".", "ifge", "(", "falseLabel", ")", ";", "break", ";", "case", "T_double", ":", "codeStream", ".", "dcmpg", "(", ")", ";", "codeStream", ".", "ifge", "(", "falseLabel", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "else", "{", "}", "}", "}", "}", "public", "void", "generateOptimizedLessThanOrEqual", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "int", "promotedTypeID", "=", "(", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ";", "if", "(", "promotedTypeID", "==", "TypeIds", ".", "T_int", ")", "{", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "ifge", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "iflt", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "if", "(", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "ifle", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "ifgt", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "}", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "switch", "(", "promotedTypeID", ")", "{", "case", "T_int", ":", "codeStream", ".", "if_icmple", "(", "trueLabel", ")", ";", "break", ";", "case", "T_float", ":", "codeStream", ".", "fcmpg", "(", ")", ";", "codeStream", ".", "ifle", "(", "trueLabel", ")", ";", "break", ";", "case", "T_long", ":", "codeStream", ".", "lcmp", "(", ")", ";", "codeStream", ".", "ifle", "(", "trueLabel", ")", ";", "break", ";", "case", "T_double", ":", "codeStream", ".", "dcmpg", "(", ")", ";", "codeStream", ".", "ifle", "(", "trueLabel", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "switch", "(", "promotedTypeID", ")", "{", "case", "T_int", ":", "codeStream", ".", "if_icmpgt", "(", "falseLabel", ")", ";", "break", ";", "case", "T_float", ":", "codeStream", ".", "fcmpg", "(", ")", ";", "codeStream", ".", "ifgt", "(", "falseLabel", ")", ";", "break", ";", "case", "T_long", ":", "codeStream", ".", "lcmp", "(", ")", ";", "codeStream", ".", "ifgt", "(", "falseLabel", ")", ";", "break", ";", "case", "T_double", ":", "codeStream", ".", "dcmpg", "(", ")", ";", "codeStream", ".", "ifgt", "(", "falseLabel", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "else", "{", "}", "}", "}", "}", "public", "void", "generateLogicalAnd", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "Constant", "condConst", ";", "if", "(", "(", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", "==", "TypeIds", ".", "T_boolean", ")", "{", "if", "(", "(", "condConst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_0", "(", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "return", ";", "}", "if", "(", "(", "condConst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_0", "(", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "return", ";", "}", "}", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iand", "(", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "public", "void", "generateLogicalOr", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "Constant", "condConst", ";", "if", "(", "(", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", "==", "TypeIds", ".", "T_boolean", ")", "{", "if", "(", "(", "condConst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_1", "(", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "return", ";", "}", "if", "(", "(", "condConst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_1", "(", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "}", "return", ";", "}", "}", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "ior", "(", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "public", "void", "generateLogicalXor", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "Constant", "condConst", ";", "if", "(", "(", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", "==", "TypeIds", ".", "T_boolean", ")", "{", "if", "(", "(", "condConst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_1", "(", ")", ";", "}", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "ixor", "(", ")", ";", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "return", ";", "}", "if", "(", "(", "condConst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_1", "(", ")", ";", "codeStream", ".", "ixor", "(", ")", ";", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "}", "return", ";", "}", "}", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "ixor", "(", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "public", "void", "generateOptimizedLogicalAnd", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "Constant", "condConst", ";", "if", "(", "(", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", "==", "TypeIds", ".", "T_boolean", ")", "{", "if", "(", "(", "condConst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "!=", "null", ")", "{", "codeStream", ".", "goto_", "(", "falseLabel", ")", ";", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "return", ";", "}", "if", "(", "(", "condConst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "}", "else", "{", "BranchLabel", "internalTrueLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "internalTrueLabel", ",", "falseLabel", ",", "false", ")", ";", "internalTrueLabel", ".", "place", "(", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "!=", "null", ")", "{", "codeStream", ".", "goto_", "(", "falseLabel", ")", ";", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "return", ";", "}", "}", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iand", "(", ")", ";", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "ifne", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "ifeq", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "public", "void", "generateOptimizedLogicalOr", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "Constant", "condConst", ";", "if", "(", "(", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", "==", "TypeIds", ".", "T_boolean", ")", "{", "if", "(", "(", "condConst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "BranchLabel", "internalFalseLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "internalFalseLabel", ",", "false", ")", ";", "internalFalseLabel", ".", "place", "(", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "goto_", "(", "trueLabel", ")", ";", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "}", "return", ";", "}", "if", "(", "(", "condConst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "BranchLabel", "internalFalseLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "internalFalseLabel", ",", "false", ")", ";", "internalFalseLabel", ".", "place", "(", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "goto_", "(", "trueLabel", ")", ";", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "}", "return", ";", "}", "}", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "ior", "(", ")", ";", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "ifne", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "ifeq", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "public", "void", "generateOptimizedLogicalXor", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "Constant", "condConst", ";", "if", "(", "(", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", "==", "TypeIds", ".", "T_boolean", ")", "{", "if", "(", "(", "condConst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "falseLabel", ",", "trueLabel", ",", "valueRequired", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "}", "return", ";", "}", "if", "(", "(", "condConst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "falseLabel", ",", "trueLabel", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "}", "return", ";", "}", "}", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "ixor", "(", ")", ";", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "ifne", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "ifeq", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "public", "void", "generateOptimizedStringConcatenation", "(", "BlockScope", "blockScope", ",", "CodeStream", "codeStream", ",", "int", "typeID", ")", "{", "if", "(", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ")", "==", "OperatorIds", ".", "PLUS", ")", "&&", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "==", "TypeIds", ".", "T_JavaLangString", ")", ")", "{", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "invokeStringConcatenationAppendForType", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "}", "else", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "left", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "left", ".", "sourceStart", ")", ";", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "right", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "this", ".", "right", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "right", ".", "sourceStart", ")", ";", "}", "}", "else", "{", "super", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "typeID", ")", ";", "}", "}", "public", "void", "generateOptimizedStringConcatenationCreation", "(", "BlockScope", "blockScope", ",", "CodeStream", "codeStream", ",", "int", "typeID", ")", "{", "if", "(", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ")", "==", "OperatorIds", ".", "PLUS", ")", "&&", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "==", "TypeIds", ".", "T_JavaLangString", ")", ")", "{", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "codeStream", ".", "newStringContatenation", "(", ")", ";", "codeStream", ".", "dup", "(", ")", ";", "codeStream", ".", "ldc", "(", "this", ".", "constant", ".", "stringValue", "(", ")", ")", ";", "codeStream", ".", "invokeStringConcatenationStringConstructor", "(", ")", ";", "}", "else", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "left", ".", "generateOptimizedStringConcatenationCreation", "(", "blockScope", ",", "codeStream", ",", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "left", ".", "sourceStart", ")", ";", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "right", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "this", ".", "right", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "right", ".", "sourceStart", ")", ";", "}", "}", "else", "{", "super", ".", "generateOptimizedStringConcatenationCreation", "(", "blockScope", ",", "codeStream", ",", "typeID", ")", ";", "}", "}", "public", "boolean", "isCompactableOperation", "(", ")", "{", "return", "true", ";", "}", "void", "nonRecursiveResolveTypeUpwards", "(", "BlockScope", "scope", ")", "{", "boolean", "leftIsCast", ",", "rightIsCast", ";", "TypeBinding", "leftType", "=", "this", ".", "left", ".", "resolvedType", ";", "if", "(", "(", "rightIsCast", "=", "this", ".", "right", "instanceof", "CastExpression", ")", "==", "true", ")", "{", "this", ".", "right", ".", "bits", "|=", "ASTNode", ".", "DisableUnnecessaryCastCheck", ";", "}", "TypeBinding", "rightType", "=", "this", ".", "right", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "leftType", "==", "null", "||", "rightType", "==", "null", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "return", ";", "}", "int", "leftTypeID", "=", "leftType", ".", "id", ";", "int", "rightTypeID", "=", "rightType", ".", "id", ";", "boolean", "use15specifics", "=", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "if", "(", "use15specifics", ")", "{", "if", "(", "!", "leftType", ".", "isBaseType", "(", ")", "&&", "rightTypeID", "!=", "TypeIds", ".", "T_JavaLangString", "&&", "rightTypeID", "!=", "TypeIds", ".", "T_null", ")", "{", "leftTypeID", "=", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "leftType", ")", ".", "id", ";", "}", "if", "(", "!", "rightType", ".", "isBaseType", "(", ")", "&&", "leftTypeID", "!=", "TypeIds", ".", "T_JavaLangString", "&&", "leftTypeID", "!=", "TypeIds", ".", "T_null", ")", "{", "rightTypeID", "=", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "rightType", ")", ".", "id", ";", "}", "}", "if", "(", "leftTypeID", ">", "15", "||", "rightTypeID", ">", "15", ")", "{", "if", "(", "leftTypeID", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "rightTypeID", "=", "TypeIds", ".", "T_JavaLangObject", ";", "}", "else", "if", "(", "rightTypeID", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "leftTypeID", "=", "TypeIds", ".", "T_JavaLangObject", ";", "}", "else", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidOperator", "(", "this", ",", "leftType", ",", "rightType", ")", ";", "return", ";", "}", "}", "if", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ")", "==", "OperatorIds", ".", "PLUS", ")", "{", "if", "(", "leftTypeID", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "this", ".", "left", ".", "computeConversion", "(", "scope", ",", "leftType", ",", "leftType", ")", ";", "if", "(", "rightType", ".", "isArrayType", "(", ")", "&&", "(", "(", "ArrayBinding", ")", "rightType", ")", ".", "elementsType", "(", ")", "==", "TypeBinding", ".", "CHAR", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "signalNoImplicitStringConversionForCharArrayExpression", "(", "this", ".", "right", ")", ";", "}", "}", "if", "(", "rightTypeID", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "this", ".", "right", ".", "computeConversion", "(", "scope", ",", "rightType", ",", "rightType", ")", ";", "if", "(", "leftType", ".", "isArrayType", "(", ")", "&&", "(", "(", "ArrayBinding", ")", "leftType", ")", ".", "elementsType", "(", ")", "==", "TypeBinding", ".", "CHAR", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "signalNoImplicitStringConversionForCharArrayExpression", "(", "this", ".", "left", ")", ";", "}", "}", "}", "int", "operator", "=", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ";", "int", "operatorSignature", "=", "OperatorExpression", ".", "OperatorSignatures", "[", "operator", "]", "[", "(", "leftTypeID", "<<", "4", ")", "+", "rightTypeID", "]", ";", "this", ".", "left", ".", "computeConversion", "(", "scope", ",", "TypeBinding", ".", "wellKnownType", "(", "scope", ",", "(", "operatorSignature", ">>>", "16", ")", "&", "0x0000F", ")", ",", "leftType", ")", ";", "this", ".", "right", ".", "computeConversion", "(", "scope", ",", "TypeBinding", ".", "wellKnownType", "(", "scope", ",", "(", "operatorSignature", ">>>", "8", ")", "&", "0x0000F", ")", ",", "rightType", ")", ";", "this", ".", "bits", "|=", "operatorSignature", "&", "0xF", ";", "switch", "(", "operatorSignature", "&", "0xF", ")", "{", "case", "T_boolean", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "BOOLEAN", ";", "break", ";", "case", "T_byte", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "BYTE", ";", "break", ";", "case", "T_char", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "CHAR", ";", "break", ";", "case", "T_double", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "DOUBLE", ";", "break", ";", "case", "T_float", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "FLOAT", ";", "break", ";", "case", "T_int", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "INT", ";", "break", ";", "case", "T_long", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "LONG", ";", "break", ";", "case", "T_JavaLangString", ":", "this", ".", "resolvedType", "=", "scope", ".", "getJavaLangString", "(", ")", ";", "break", ";", "default", ":", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidOperator", "(", "this", ",", "leftType", ",", "rightType", ")", ";", "return", ";", "}", "if", "(", "(", "leftIsCast", "=", "(", "this", ".", "left", "instanceof", "CastExpression", ")", ")", "==", "true", "||", "rightIsCast", ")", "{", "CastExpression", ".", "checkNeedForArgumentCasts", "(", "scope", ",", "operator", ",", "operatorSignature", ",", "this", ".", "left", ",", "leftTypeID", ",", "leftIsCast", ",", "this", ".", "right", ",", "rightTypeID", ",", "rightIsCast", ")", ";", "}", "computeConstant", "(", "scope", ",", "leftTypeID", ",", "rightTypeID", ")", ";", "}", "public", "void", "optimizedBooleanConstant", "(", "int", "leftId", ",", "int", "operator", ",", "int", "rightId", ")", "{", "switch", "(", "operator", ")", "{", "case", "AND", ":", "if", "(", "(", "leftId", "!=", "TypeIds", ".", "T_boolean", ")", "||", "(", "rightId", "!=", "TypeIds", ".", "T_boolean", ")", ")", "return", ";", "case", "AND_AND", ":", "Constant", "cst", ";", "if", "(", "(", "cst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "cst", ".", "booleanValue", "(", ")", "==", "false", ")", "{", "this", ".", "optimizedBooleanConstant", "=", "cst", ";", "return", ";", "}", "else", "{", "if", "(", "(", "cst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "this", ".", "optimizedBooleanConstant", "=", "cst", ";", "}", "return", ";", "}", "}", "if", "(", "(", "cst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "cst", ".", "booleanValue", "(", ")", "==", "false", ")", "{", "this", ".", "optimizedBooleanConstant", "=", "cst", ";", "}", "}", "return", ";", "case", "OR", ":", "if", "(", "(", "leftId", "!=", "TypeIds", ".", "T_boolean", ")", "||", "(", "rightId", "!=", "TypeIds", ".", "T_boolean", ")", ")", "return", ";", "case", "OR_OR", ":", "if", "(", "(", "cst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "cst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "optimizedBooleanConstant", "=", "cst", ";", "return", ";", "}", "else", "{", "if", "(", "(", "cst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "this", ".", "optimizedBooleanConstant", "=", "cst", ";", "}", "return", ";", "}", "}", "if", "(", "(", "cst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "cst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "optimizedBooleanConstant", "=", "cst", ";", "}", "}", "}", "}", "public", "StringBuffer", "printExpressionNoParenthesis", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "this", ".", "left", ".", "printExpression", "(", "indent", ",", "output", ")", ".", "append", "(", "'", "'", ")", ".", "append", "(", "operatorToString", "(", ")", ")", ".", "append", "(", "'", "'", ")", ";", "return", "this", ".", "right", ".", "printExpression", "(", "0", ",", "output", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "boolean", "leftIsCast", ",", "rightIsCast", ";", "if", "(", "(", "leftIsCast", "=", "this", ".", "left", "instanceof", "CastExpression", ")", "==", "true", ")", "this", ".", "left", ".", "bits", "|=", "ASTNode", ".", "DisableUnnecessaryCastCheck", ";", "TypeBinding", "leftType", "=", "this", ".", "left", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "(", "rightIsCast", "=", "this", ".", "right", "instanceof", "CastExpression", ")", "==", "true", ")", "this", ".", "right", ".", "bits", "|=", "ASTNode", ".", "DisableUnnecessaryCastCheck", ";", "TypeBinding", "rightType", "=", "this", ".", "right", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "leftType", "==", "null", "||", "rightType", "==", "null", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "return", "null", ";", "}", "int", "leftTypeID", "=", "leftType", ".", "id", ";", "int", "rightTypeID", "=", "rightType", ".", "id", ";", "boolean", "use15specifics", "=", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "if", "(", "use15specifics", ")", "{", "if", "(", "!", "leftType", ".", "isBaseType", "(", ")", "&&", "rightTypeID", "!=", "TypeIds", ".", "T_JavaLangString", "&&", "rightTypeID", "!=", "TypeIds", ".", "T_null", ")", "{", "leftTypeID", "=", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "leftType", ")", ".", "id", ";", "}", "if", "(", "!", "rightType", ".", "isBaseType", "(", ")", "&&", "leftTypeID", "!=", "TypeIds", ".", "T_JavaLangString", "&&", "leftTypeID", "!=", "TypeIds", ".", "T_null", ")", "{", "rightTypeID", "=", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "rightType", ")", ".", "id", ";", "}", "}", "if", "(", "leftTypeID", ">", "15", "||", "rightTypeID", ">", "15", ")", "{", "if", "(", "leftTypeID", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "rightTypeID", "=", "TypeIds", ".", "T_JavaLangObject", ";", "}", "else", "if", "(", "rightTypeID", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "leftTypeID", "=", "TypeIds", ".", "T_JavaLangObject", ";", "}", "else", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidOperator", "(", "this", ",", "leftType", ",", "rightType", ")", ";", "return", "null", ";", "}", "}", "if", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ")", "==", "OperatorIds", ".", "PLUS", ")", "{", "if", "(", "leftTypeID", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "this", ".", "left", ".", "computeConversion", "(", "scope", ",", "leftType", ",", "leftType", ")", ";", "if", "(", "rightType", ".", "isArrayType", "(", ")", "&&", "(", "(", "ArrayBinding", ")", "rightType", ")", ".", "elementsType", "(", ")", "==", "TypeBinding", ".", "CHAR", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "signalNoImplicitStringConversionForCharArrayExpression", "(", "this", ".", "right", ")", ";", "}", "}", "if", "(", "rightTypeID", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "this", ".", "right", ".", "computeConversion", "(", "scope", ",", "rightType", ",", "rightType", ")", ";", "if", "(", "leftType", ".", "isArrayType", "(", ")", "&&", "(", "(", "ArrayBinding", ")", "leftType", ")", ".", "elementsType", "(", ")", "==", "TypeBinding", ".", "CHAR", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "signalNoImplicitStringConversionForCharArrayExpression", "(", "this", ".", "left", ")", ";", "}", "}", "}", "int", "operator", "=", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ";", "int", "operatorSignature", "=", "OperatorExpression", ".", "OperatorSignatures", "[", "operator", "]", "[", "(", "leftTypeID", "<<", "4", ")", "+", "rightTypeID", "]", ";", "this", ".", "left", ".", "computeConversion", "(", "scope", ",", "TypeBinding", ".", "wellKnownType", "(", "scope", ",", "(", "operatorSignature", ">>>", "16", ")", "&", "0x0000F", ")", ",", "leftType", ")", ";", "this", ".", "right", ".", "computeConversion", "(", "scope", ",", "TypeBinding", ".", "wellKnownType", "(", "scope", ",", "(", "operatorSignature", ">>>", "8", ")", "&", "0x0000F", ")", ",", "rightType", ")", ";", "this", ".", "bits", "|=", "operatorSignature", "&", "0xF", ";", "switch", "(", "operatorSignature", "&", "0xF", ")", "{", "case", "T_boolean", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "BOOLEAN", ";", "break", ";", "case", "T_byte", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "BYTE", ";", "break", ";", "case", "T_char", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "CHAR", ";", "break", ";", "case", "T_double", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "DOUBLE", ";", "break", ";", "case", "T_float", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "FLOAT", ";", "break", ";", "case", "T_int", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "INT", ";", "break", ";", "case", "T_long", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "LONG", ";", "break", ";", "case", "T_JavaLangString", ":", "this", ".", "resolvedType", "=", "scope", ".", "getJavaLangString", "(", ")", ";", "break", ";", "default", ":", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidOperator", "(", "this", ",", "leftType", ",", "rightType", ")", ";", "return", "null", ";", "}", "if", "(", "leftIsCast", "||", "rightIsCast", ")", "{", "CastExpression", ".", "checkNeedForArgumentCasts", "(", "scope", ",", "operator", ",", "operatorSignature", ",", "this", ".", "left", ",", "leftTypeID", ",", "leftIsCast", ",", "this", ".", "right", ",", "rightTypeID", ",", "rightIsCast", ")", ";", "}", "computeConstant", "(", "scope", ",", "leftTypeID", ",", "rightTypeID", ")", ";", "return", "this", ".", "resolvedType", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "this", ".", "left", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "this", ".", "right", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,682
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "abstract", "class", "Statement", "extends", "ASTNode", "{", "protected", "static", "boolean", "isKnowDeadCodePattern", "(", "Expression", "expression", ")", "{", "if", "(", "expression", "instanceof", "UnaryExpression", ")", "{", "expression", "=", "(", "(", "UnaryExpression", ")", "expression", ")", ".", "expression", ";", "}", "if", "(", "expression", "instanceof", "Reference", ")", "return", "true", ";", "return", "false", ";", "}", "public", "abstract", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", ";", "public", "static", "final", "int", "NOT_COMPLAINED", "=", "0", ";", "public", "static", "final", "int", "COMPLAINED_FAKE_REACHABLE", "=", "1", ";", "public", "static", "final", "int", "COMPLAINED_UNREACHABLE", "=", "2", ";", "public", "void", "branchChainTo", "(", "BranchLabel", "label", ")", "{", "}", "public", "int", "complainIfUnreachable", "(", "FlowInfo", "flowInfo", ",", "BlockScope", "scope", ",", "int", "previousComplaintLevel", ")", "{", "if", "(", "(", "flowInfo", ".", "reachMode", "(", ")", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", ")", "{", "this", ".", "bits", "&=", "~", "ASTNode", ".", "IsReachable", ";", "if", "(", "flowInfo", "==", "FlowInfo", ".", "DEAD_END", ")", "{", "if", "(", "previousComplaintLevel", "<", "COMPLAINED_UNREACHABLE", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unreachableCode", "(", "this", ")", ";", "}", "return", "COMPLAINED_UNREACHABLE", ";", "}", "else", "{", "if", "(", "previousComplaintLevel", "<", "COMPLAINED_FAKE_REACHABLE", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "fakeReachable", "(", "this", ")", ";", "}", "return", "COMPLAINED_FAKE_REACHABLE", ";", "}", "}", "return", "previousComplaintLevel", ";", "}", "public", "void", "generateArguments", "(", "MethodBinding", "binding", ",", "Expression", "[", "]", "arguments", ",", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ")", "{", "if", "(", "binding", ".", "isVarargs", "(", ")", ")", "{", "TypeBinding", "[", "]", "params", "=", "binding", ".", "parameters", ";", "int", "paramLength", "=", "params", ".", "length", ";", "int", "varArgIndex", "=", "paramLength", "-", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "varArgIndex", ";", "i", "++", ")", "{", "arguments", "[", "i", "]", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "}", "ArrayBinding", "varArgsType", "=", "(", "ArrayBinding", ")", "params", "[", "varArgIndex", "]", ";", "ArrayBinding", "codeGenVarArgsType", "=", "(", "ArrayBinding", ")", "binding", ".", "parameters", "[", "varArgIndex", "]", ".", "erasure", "(", ")", ";", "int", "elementsTypeID", "=", "varArgsType", ".", "elementsType", "(", ")", ".", "id", ";", "int", "argLength", "=", "arguments", "==", "null", "?", "0", ":", "arguments", ".", "length", ";", "if", "(", "argLength", ">", "paramLength", ")", "{", "codeStream", ".", "generateInlinedValue", "(", "argLength", "-", "varArgIndex", ")", ";", "codeStream", ".", "newArray", "(", "codeGenVarArgsType", ")", ";", "for", "(", "int", "i", "=", "varArgIndex", ";", "i", "<", "argLength", ";", "i", "++", ")", "{", "codeStream", ".", "dup", "(", ")", ";", "codeStream", ".", "generateInlinedValue", "(", "i", "-", "varArgIndex", ")", ";", "arguments", "[", "i", "]", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "arrayAtPut", "(", "elementsTypeID", ",", "false", ")", ";", "}", "}", "else", "if", "(", "argLength", "==", "paramLength", ")", "{", "TypeBinding", "lastType", "=", "arguments", "[", "varArgIndex", "]", ".", "resolvedType", ";", "if", "(", "lastType", "==", "TypeBinding", ".", "NULL", "||", "(", "varArgsType", ".", "dimensions", "(", ")", "==", "lastType", ".", "dimensions", "(", ")", "&&", "lastType", ".", "isCompatibleWith", "(", "varArgsType", ")", ")", ")", "{", "arguments", "[", "varArgIndex", "]", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "}", "else", "{", "codeStream", ".", "generateInlinedValue", "(", "1", ")", ";", "codeStream", ".", "newArray", "(", "codeGenVarArgsType", ")", ";", "codeStream", ".", "dup", "(", ")", ";", "codeStream", ".", "generateInlinedValue", "(", "0", ")", ";", "arguments", "[", "varArgIndex", "]", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "arrayAtPut", "(", "elementsTypeID", ",", "false", ")", ";", "}", "}", "else", "{", "codeStream", ".", "generateInlinedValue", "(", "0", ")", ";", "codeStream", ".", "newArray", "(", "codeGenVarArgsType", ")", ";", "}", "}", "else", "if", "(", "arguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "arguments", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "arguments", "[", "i", "]", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "}", "}", "public", "abstract", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ")", ";", "protected", "boolean", "isBoxingCompatible", "(", "TypeBinding", "expressionType", ",", "TypeBinding", "targetType", ",", "Expression", "expression", ",", "Scope", "scope", ")", "{", "if", "(", "scope", ".", "isBoxingCompatibleWith", "(", "expressionType", ",", "targetType", ")", ")", "return", "true", ";", "return", "expressionType", ".", "isBaseType", "(", ")", "&&", "!", "targetType", ".", "isBaseType", "(", ")", "&&", "!", "targetType", ".", "isTypeVariable", "(", ")", "&&", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ".", "JDK1_5", "&&", "expression", ".", "isConstantValueOfTypeAssignableToType", "(", "expressionType", ",", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "targetType", ")", ")", ";", "}", "public", "boolean", "isEmptyBlock", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isValidJavaStatement", "(", ")", "{", "return", "true", ";", "}", "public", "StringBuffer", "print", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "printStatement", "(", "indent", ",", "output", ")", ";", "}", "public", "abstract", "StringBuffer", "printStatement", "(", "int", "indent", ",", "StringBuffer", "output", ")", ";", "public", "abstract", "void", "resolve", "(", "BlockScope", "scope", ")", ";", "public", "Constant", "resolveCase", "(", "BlockScope", "scope", ",", "TypeBinding", "testType", ",", "SwitchStatement", "switchStatement", ")", "{", "resolve", "(", "scope", ")", ";", "return", "Constant", ".", "NotAConstant", ";", "}", "public", "TypeBinding", "expectedType", "(", ")", "{", "return", "null", ";", "}", "}", "</s>" ]
5,683
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "InvocationSite", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "public", "abstract", "class", "AbstractVariableDeclaration", "extends", "Statement", "implements", "InvocationSite", "{", "public", "int", "declarationEnd", ";", "public", "int", "declarationSourceEnd", ";", "public", "int", "declarationSourceStart", ";", "public", "int", "hiddenVariableDepth", ";", "public", "Expression", "initialization", ";", "public", "int", "modifiers", ";", "public", "int", "modifiersSourceStart", ";", "public", "Annotation", "[", "]", "annotations", ";", "public", "char", "[", "]", "name", ";", "public", "TypeReference", "type", ";", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "return", "flowInfo", ";", "}", "public", "static", "final", "int", "FIELD", "=", "1", ";", "public", "static", "final", "int", "INITIALIZER", "=", "2", ";", "public", "static", "final", "int", "ENUM_CONSTANT", "=", "3", ";", "public", "static", "final", "int", "LOCAL_VARIABLE", "=", "4", ";", "public", "static", "final", "int", "PARAMETER", "=", "5", ";", "public", "static", "final", "int", "TYPE_PARAMETER", "=", "6", ";", "public", "TypeBinding", "[", "]", "genericTypeArguments", "(", ")", "{", "return", "null", ";", "}", "public", "abstract", "int", "getKind", "(", ")", ";", "public", "boolean", "isSuperAccess", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isTypeAccess", "(", ")", "{", "return", "false", ";", "}", "public", "StringBuffer", "printStatement", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "printAsExpression", "(", "indent", ",", "output", ")", ";", "switch", "(", "getKind", "(", ")", ")", "{", "case", "ENUM_CONSTANT", ":", "return", "output", ".", "append", "(", "','", ")", ";", "default", ":", "return", "output", ".", "append", "(", "';'", ")", ";", "}", "}", "public", "StringBuffer", "printAsExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "indent", ",", "output", ")", ";", "printModifiers", "(", "this", ".", "modifiers", ",", "output", ")", ";", "if", "(", "this", ".", "annotations", "!=", "null", ")", "printAnnotations", "(", "this", ".", "annotations", ",", "output", ")", ";", "if", "(", "this", ".", "type", "!=", "null", ")", "{", "this", ".", "type", ".", "print", "(", "0", ",", "output", ")", ".", "append", "(", "'", "'", ")", ";", "}", "output", ".", "append", "(", "this", ".", "name", ")", ";", "switch", "(", "getKind", "(", ")", ")", "{", "case", "ENUM_CONSTANT", ":", "if", "(", "this", ".", "initialization", "!=", "null", ")", "{", "this", ".", "initialization", ".", "printExpression", "(", "indent", ",", "output", ")", ";", "}", "break", ";", "default", ":", "if", "(", "this", ".", "initialization", "!=", "null", ")", "{", "output", ".", "append", "(", "\"", "=", "\"", ")", ";", "this", ".", "initialization", ".", "printExpression", "(", "indent", ",", "output", ")", ";", "}", "}", "return", "output", ";", "}", "public", "void", "resolve", "(", "BlockScope", "scope", ")", "{", "}", "public", "void", "setActualReceiverType", "(", "ReferenceBinding", "receiverType", ")", "{", "}", "public", "void", "setDepth", "(", "int", "depth", ")", "{", "this", ".", "hiddenVariableDepth", "=", "depth", ";", "}", "public", "void", "setFieldIndex", "(", "int", "depth", ")", "{", "}", "}", "</s>" ]
5,684
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "Opcodes", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "CompilerOptions", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Binding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ClassScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "FieldBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "LocalVariableBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MethodBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MethodScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MissingTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemFieldBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemReasons", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Scope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "SourceTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TagBits", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "VariableBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "ProblemSeverities", ";", "public", "class", "SingleNameReference", "extends", "NameReference", "implements", "OperatorIds", "{", "public", "static", "final", "int", "READ", "=", "0", ";", "public", "static", "final", "int", "WRITE", "=", "1", ";", "public", "char", "[", "]", "token", ";", "public", "MethodBinding", "[", "]", "syntheticAccessors", ";", "public", "TypeBinding", "genericCast", ";", "public", "SingleNameReference", "(", "char", "[", "]", "source", ",", "long", "pos", ")", "{", "super", "(", ")", ";", "this", ".", "token", "=", "source", ";", "this", ".", "sourceStart", "=", "(", "int", ")", "(", "pos", ">>>", "32", ")", ";", "this", ".", "sourceEnd", "=", "(", "int", ")", "pos", ";", "}", "public", "FlowInfo", "analyseAssignment", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ",", "Assignment", "assignment", ",", "boolean", "isCompound", ")", "{", "boolean", "isReachable", "=", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ";", "if", "(", "isCompound", ")", "{", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "FieldBinding", "fieldBinding", ";", "if", "(", "(", "fieldBinding", "=", "(", "FieldBinding", ")", "this", ".", "binding", ")", ".", "isBlankFinal", "(", ")", "&&", "currentScope", ".", "needBlankFinalFieldInitializationCheck", "(", "fieldBinding", ")", ")", "{", "FlowInfo", "fieldInits", "=", "flowContext", ".", "getInitsForFinalBlankInitializationCheck", "(", "fieldBinding", ".", "declaringClass", ".", "original", "(", ")", ",", "flowInfo", ")", ";", "if", "(", "!", "fieldInits", ".", "isDefinitelyAssigned", "(", "fieldBinding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "uninitializedBlankFinalField", "(", "fieldBinding", ",", "this", ")", ";", "}", "}", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ",", "true", ")", ";", "break", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "localBinding", ";", "if", "(", "!", "flowInfo", ".", "isDefinitelyAssigned", "(", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "uninitializedLocalVariable", "(", "localBinding", ",", "this", ")", ";", "}", "if", "(", "isReachable", ")", "{", "localBinding", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "}", "else", "if", "(", "localBinding", ".", "useFlag", "==", "LocalVariableBinding", ".", "UNUSED", ")", "{", "localBinding", ".", "useFlag", "=", "LocalVariableBinding", ".", "FAKE_USED", ";", "}", "}", "}", "if", "(", "assignment", ".", "expression", "!=", "null", ")", "{", "flowInfo", "=", "assignment", ".", "expression", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "}", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ",", "false", ")", ";", "FieldBinding", "fieldBinding", "=", "(", "FieldBinding", ")", "this", ".", "binding", ";", "if", "(", "fieldBinding", ".", "isFinal", "(", ")", ")", "{", "if", "(", "!", "isCompound", "&&", "fieldBinding", ".", "isBlankFinal", "(", ")", "&&", "currentScope", ".", "allowBlankFinalFieldAssignment", "(", "fieldBinding", ")", ")", "{", "if", "(", "flowInfo", ".", "isPotentiallyAssigned", "(", "fieldBinding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "duplicateInitializationOfBlankFinalField", "(", "fieldBinding", ",", "this", ")", ";", "}", "else", "{", "flowContext", ".", "recordSettingFinal", "(", "fieldBinding", ",", "this", ",", "flowInfo", ")", ";", "}", "flowInfo", ".", "markAsDefinitelyAssigned", "(", "fieldBinding", ")", ";", "}", "else", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "cannotAssignToFinalField", "(", "fieldBinding", ",", "this", ")", ";", "}", "}", "break", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "if", "(", "!", "flowInfo", ".", "isDefinitelyAssigned", "(", "localBinding", ")", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "FirstAssignmentToLocal", ";", "}", "else", "{", "this", ".", "bits", "&=", "~", "ASTNode", ".", "FirstAssignmentToLocal", ";", "}", "if", "(", "localBinding", ".", "isFinal", "(", ")", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "==", "0", ")", "{", "if", "(", "(", "isReachable", "&&", "isCompound", ")", "||", "!", "localBinding", ".", "isBlankFinal", "(", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "cannotAssignToFinalLocal", "(", "localBinding", ",", "this", ")", ";", "}", "else", "if", "(", "flowInfo", ".", "isPotentiallyAssigned", "(", "localBinding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "duplicateInitializationOfFinalLocal", "(", "localBinding", ",", "this", ")", ";", "}", "else", "{", "flowContext", ".", "recordSettingFinal", "(", "localBinding", ",", "this", ",", "flowInfo", ")", ";", "}", "}", "else", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "cannotAssignToFinalOuterLocal", "(", "localBinding", ",", "this", ")", ";", "}", "}", "else", "if", "(", "(", "localBinding", ".", "tagBits", "&", "TagBits", ".", "IsArgument", ")", "!=", "0", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "parameterAssignment", "(", "localBinding", ",", "this", ")", ";", "}", "flowInfo", ".", "markAsDefinitelyAssigned", "(", "localBinding", ")", ";", "}", "manageEnclosingInstanceAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ")", ";", "return", "flowInfo", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "return", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ",", "true", ")", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ",", "boolean", "valueRequired", ")", "{", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "if", "(", "valueRequired", "||", "currentScope", ".", "compilerOptions", "(", ")", ".", "complianceLevel", ">=", "ClassFileConstants", ".", "JDK1_4", ")", "{", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ",", "true", ")", ";", "}", "FieldBinding", "fieldBinding", "=", "(", "FieldBinding", ")", "this", ".", "binding", ";", "if", "(", "fieldBinding", ".", "isBlankFinal", "(", ")", "&&", "currentScope", ".", "needBlankFinalFieldInitializationCheck", "(", "fieldBinding", ")", ")", "{", "FlowInfo", "fieldInits", "=", "flowContext", ".", "getInitsForFinalBlankInitializationCheck", "(", "fieldBinding", ".", "declaringClass", ".", "original", "(", ")", ",", "flowInfo", ")", ";", "if", "(", "!", "fieldInits", ".", "isDefinitelyAssigned", "(", "fieldBinding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "uninitializedBlankFinalField", "(", "fieldBinding", ",", "this", ")", ";", "}", "}", "break", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "localBinding", ";", "if", "(", "!", "flowInfo", ".", "isDefinitelyAssigned", "(", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "uninitializedLocalVariable", "(", "localBinding", ",", "this", ")", ";", "}", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ")", "{", "localBinding", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "}", "else", "if", "(", "localBinding", ".", "useFlag", "==", "LocalVariableBinding", ".", "UNUSED", ")", "{", "localBinding", ".", "useFlag", "=", "LocalVariableBinding", ".", "FAKE_USED", ";", "}", "}", "if", "(", "valueRequired", ")", "{", "manageEnclosingInstanceAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ")", ";", "}", "return", "flowInfo", ";", "}", "public", "TypeBinding", "checkFieldAccess", "(", "BlockScope", "scope", ")", "{", "FieldBinding", "fieldBinding", "=", "(", "FieldBinding", ")", "this", ".", "binding", ";", "this", ".", "constant", "=", "fieldBinding", ".", "constant", "(", ")", ";", "this", ".", "bits", "&=", "~", "ASTNode", ".", "RestrictiveFlagMASK", ";", "this", ".", "bits", "|=", "Binding", ".", "FIELD", ";", "MethodScope", "methodScope", "=", "scope", ".", "methodScope", "(", ")", ";", "if", "(", "fieldBinding", ".", "isStatic", "(", ")", ")", "{", "ReferenceBinding", "declaringClass", "=", "fieldBinding", ".", "declaringClass", ";", "if", "(", "declaringClass", ".", "isEnum", "(", ")", ")", "{", "SourceTypeBinding", "sourceType", "=", "scope", ".", "enclosingSourceType", "(", ")", ";", "if", "(", "this", ".", "constant", "==", "Constant", ".", "NotAConstant", "&&", "!", "methodScope", ".", "isStatic", "&&", "(", "sourceType", "==", "declaringClass", "||", "sourceType", ".", "superclass", "==", "declaringClass", ")", "&&", "methodScope", ".", "isInsideInitializerOrConstructor", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "enumStaticFieldUsedDuringInitialization", "(", "fieldBinding", ",", "this", ")", ";", "}", "}", "}", "else", "{", "if", "(", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "UnqualifiedFieldAccess", ")", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unqualifiedFieldAccess", "(", "this", ",", "fieldBinding", ")", ";", "}", "if", "(", "methodScope", ".", "isStatic", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "staticFieldAccessToNonStaticVariable", "(", "this", ",", "fieldBinding", ")", ";", "return", "fieldBinding", ".", "type", ";", "}", "}", "if", "(", "isFieldUseDeprecated", "(", "fieldBinding", ",", "scope", ",", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsStrictlyAssigned", ")", "!=", "0", ")", ")", "scope", ".", "problemReporter", "(", ")", ".", "deprecatedField", "(", "fieldBinding", ",", "this", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsStrictlyAssigned", ")", "==", "0", "&&", "methodScope", ".", "enclosingSourceType", "(", ")", "==", "fieldBinding", ".", "original", "(", ")", ".", "declaringClass", "&&", "methodScope", ".", "lastVisibleFieldID", ">=", "0", "&&", "fieldBinding", ".", "id", ">=", "methodScope", ".", "lastVisibleFieldID", "&&", "(", "!", "fieldBinding", ".", "isStatic", "(", ")", "||", "methodScope", ".", "isStatic", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "forwardReference", "(", "this", ",", "0", ",", "fieldBinding", ")", ";", "this", ".", "bits", "|=", "ASTNode", ".", "IgnoreNoEffectAssignCheck", ";", "}", "return", "fieldBinding", ".", "type", ";", "}", "public", "void", "computeConversion", "(", "Scope", "scope", ",", "TypeBinding", "runtimeTimeType", ",", "TypeBinding", "compileTimeType", ")", "{", "if", "(", "runtimeTimeType", "==", "null", "||", "compileTimeType", "==", "null", ")", "return", ";", "if", "(", "(", "this", ".", "bits", "&", "Binding", ".", "FIELD", ")", "!=", "0", "&&", "this", ".", "binding", "!=", "null", "&&", "this", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "FieldBinding", "field", "=", "(", "FieldBinding", ")", "this", ".", "binding", ";", "FieldBinding", "originalBinding", "=", "field", ".", "original", "(", ")", ";", "TypeBinding", "originalType", "=", "originalBinding", ".", "type", ";", "if", "(", "originalType", ".", "leafComponentType", "(", ")", ".", "isTypeVariable", "(", ")", ")", "{", "TypeBinding", "targetType", "=", "(", "!", "compileTimeType", ".", "isBaseType", "(", ")", "&&", "runtimeTimeType", ".", "isBaseType", "(", ")", ")", "?", "compileTimeType", ":", "runtimeTimeType", ";", "this", ".", "genericCast", "=", "originalType", ".", "genericCast", "(", "scope", ".", "boxing", "(", "targetType", ")", ")", ";", "if", "(", "this", ".", "genericCast", "instanceof", "ReferenceBinding", ")", "{", "ReferenceBinding", "referenceCast", "=", "(", "ReferenceBinding", ")", "this", ".", "genericCast", ";", "if", "(", "!", "referenceCast", ".", "canBeSeenBy", "(", "scope", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "invalidType", "(", "this", ",", "new", "ProblemReferenceBinding", "(", "CharOperation", ".", "splitOn", "(", "'.'", ",", "referenceCast", ".", "shortReadableName", "(", ")", ")", ",", "referenceCast", ",", "ProblemReasons", ".", "NotVisible", ")", ")", ";", "}", "}", "}", "}", "super", ".", "computeConversion", "(", "scope", ",", "runtimeTimeType", ",", "compileTimeType", ")", ";", "}", "public", "void", "generateAssignment", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "Assignment", "assignment", ",", "boolean", "valueRequired", ")", "{", "if", "(", "assignment", ".", "expression", ".", "isCompactableOperation", "(", ")", ")", "{", "BinaryExpression", "operation", "=", "(", "BinaryExpression", ")", "assignment", ".", "expression", ";", "int", "operator", "=", "(", "operation", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ";", "SingleNameReference", "variableReference", ";", "if", "(", "(", "operation", ".", "left", "instanceof", "SingleNameReference", ")", "&&", "(", "(", "variableReference", "=", "(", "SingleNameReference", ")", "operation", ".", "left", ")", ".", "binding", "==", "this", ".", "binding", ")", ")", "{", "variableReference", ".", "generateCompoundAssignment", "(", "currentScope", ",", "codeStream", ",", "this", ".", "syntheticAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "WRITE", "]", ",", "operation", ".", "right", ",", "operator", ",", "operation", ".", "implicitConversion", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "assignment", ".", "implicitConversion", ")", ";", "}", "return", ";", "}", "if", "(", "(", "operation", ".", "right", "instanceof", "SingleNameReference", ")", "&&", "(", "(", "operator", "==", "OperatorIds", ".", "PLUS", ")", "||", "(", "operator", "==", "OperatorIds", ".", "MULTIPLY", ")", ")", "&&", "(", "(", "variableReference", "=", "(", "SingleNameReference", ")", "operation", ".", "right", ")", ".", "binding", "==", "this", ".", "binding", ")", "&&", "(", "operation", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "(", "(", "operation", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ")", "!=", "TypeIds", ".", "T_JavaLangString", ")", "&&", "(", "(", "(", "operation", ".", "right", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ")", "!=", "TypeIds", ".", "T_JavaLangString", ")", ")", "{", "variableReference", ".", "generateCompoundAssignment", "(", "currentScope", ",", "codeStream", ",", "this", ".", "syntheticAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "WRITE", "]", ",", "operation", ".", "left", ",", "operator", ",", "operation", ".", "implicitConversion", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "assignment", ".", "implicitConversion", ")", ";", "}", "return", ";", "}", "}", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "int", "pc", "=", "codeStream", ".", "position", ";", "FieldBinding", "codegenBinding", "=", "(", "(", "FieldBinding", ")", "this", ".", "binding", ")", ".", "original", "(", ")", ";", "if", "(", "!", "codegenBinding", ".", "isStatic", "(", ")", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", "{", "ReferenceBinding", "targetType", "=", "currentScope", ".", "enclosingSourceType", "(", ")", ".", "enclosingTypeAt", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ")", ";", "Object", "[", "]", "emulationPath", "=", "currentScope", ".", "getEmulationPath", "(", "targetType", ",", "true", ",", "false", ")", ";", "codeStream", ".", "generateOuterAccess", "(", "emulationPath", ",", "this", ",", "targetType", ",", "currentScope", ")", ";", "}", "else", "{", "generateReceiver", "(", "codeStream", ")", ";", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "assignment", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "fieldStore", "(", "currentScope", ",", "codeStream", ",", "codegenBinding", ",", "this", ".", "syntheticAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "WRITE", "]", ",", "this", ".", "actualReceiverType", ",", "true", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "assignment", ".", "implicitConversion", ")", ";", "}", "return", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "if", "(", "localBinding", ".", "resolvedPosition", "!=", "-", "1", ")", "{", "assignment", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "}", "else", "{", "if", "(", "assignment", ".", "expression", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "assignment", ".", "expression", ".", "constant", ",", "assignment", ".", "implicitConversion", ")", ";", "}", "}", "else", "{", "assignment", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "assignment", ".", "implicitConversion", ")", ";", "}", "else", "{", "switch", "(", "localBinding", ".", "type", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "codeStream", ".", "pop2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "pop", "(", ")", ";", "break", ";", "}", "}", "}", "return", ";", "}", "if", "(", "localBinding", ".", "type", ".", "isArrayType", "(", ")", "&&", "(", "assignment", ".", "expression", ".", "resolvedType", "==", "TypeBinding", ".", "NULL", "||", "(", "(", "assignment", ".", "expression", "instanceof", "CastExpression", ")", "&&", "(", "(", "(", "CastExpression", ")", "assignment", ".", "expression", ")", ".", "innermostCastedExpression", "(", ")", ".", "resolvedType", "==", "TypeBinding", ".", "NULL", ")", ")", ")", ")", "{", "codeStream", ".", "checkcast", "(", "localBinding", ".", "type", ")", ";", "}", "codeStream", ".", "store", "(", "localBinding", ",", "valueRequired", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "FirstAssignmentToLocal", ")", "!=", "0", ")", "{", "localBinding", ".", "recordInitializationStartPC", "(", "codeStream", ".", "position", ")", ";", "}", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "assignment", ".", "implicitConversion", ")", ";", "}", "}", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "else", "{", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "FieldBinding", "codegenField", "=", "(", "(", "FieldBinding", ")", "this", ".", "binding", ")", ".", "original", "(", ")", ";", "Constant", "fieldConstant", "=", "codegenField", ".", "constant", "(", ")", ";", "if", "(", "fieldConstant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "fieldConstant", ",", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "if", "(", "codegenField", ".", "isStatic", "(", ")", ")", "{", "if", "(", "!", "valueRequired", "&&", "(", "(", "FieldBinding", ")", "this", ".", "binding", ")", ".", "original", "(", ")", ".", "declaringClass", "==", "this", ".", "actualReceiverType", ".", "erasure", "(", ")", "&&", "(", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "==", "0", ")", "&&", "this", ".", "genericCast", "==", "null", ")", "{", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "if", "(", "(", "this", ".", "syntheticAccessors", "==", "null", ")", "||", "(", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", "==", "null", ")", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "codegenField", ",", "this", ".", "actualReceiverType", ",", "true", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "codegenField", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", ",", "null", ")", ";", "}", "}", "else", "{", "if", "(", "!", "valueRequired", "&&", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "==", "0", "&&", "this", ".", "genericCast", "==", "null", ")", "{", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", "{", "ReferenceBinding", "targetType", "=", "currentScope", ".", "enclosingSourceType", "(", ")", ".", "enclosingTypeAt", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ")", ";", "Object", "[", "]", "emulationPath", "=", "currentScope", ".", "getEmulationPath", "(", "targetType", ",", "true", ",", "false", ")", ";", "codeStream", ".", "generateOuterAccess", "(", "emulationPath", ",", "this", ",", "targetType", ",", "currentScope", ")", ";", "}", "else", "{", "generateReceiver", "(", "codeStream", ")", ";", "}", "if", "(", "(", "this", ".", "syntheticAccessors", "==", "null", ")", "||", "(", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", "==", "null", ")", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "codegenField", ",", "this", ".", "actualReceiverType", ",", "true", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getfield", ",", "codegenField", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", ",", "null", ")", ";", "}", "}", "break", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "if", "(", "!", "valueRequired", "&&", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "==", "0", ")", "{", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", "{", "VariableBinding", "[", "]", "path", "=", "currentScope", ".", "getEmulationPath", "(", "localBinding", ")", ";", "codeStream", ".", "generateOuterAccess", "(", "path", ",", "this", ",", "localBinding", ",", "currentScope", ")", ";", "}", "else", "{", "codeStream", ".", "load", "(", "localBinding", ")", ";", "}", "break", ";", "default", ":", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "}", "if", "(", "this", ".", "genericCast", "!=", "null", ")", "codeStream", ".", "checkcast", "(", "this", ".", "genericCast", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "boolean", "isUnboxing", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ";", "if", "(", "isUnboxing", ")", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "switch", "(", "isUnboxing", "?", "postConversionType", "(", "currentScope", ")", ".", "id", ":", "this", ".", "resolvedType", ".", "id", ")", "{", "case", "T_long", ":", "case", "T_double", ":", "codeStream", ".", "pop2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "pop", "(", ")", ";", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "void", "generateCompoundAssignment", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "Expression", "expression", ",", "int", "operator", ",", "int", "assignmentImplicitConversion", ",", "boolean", "valueRequired", ")", "{", "this", ".", "generateCompoundAssignment", "(", "currentScope", ",", "codeStream", ",", "this", ".", "syntheticAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "WRITE", "]", ",", "expression", ",", "operator", ",", "assignmentImplicitConversion", ",", "valueRequired", ")", ";", "}", "public", "void", "generateCompoundAssignment", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "MethodBinding", "writeAccessor", ",", "Expression", "expression", ",", "int", "operator", ",", "int", "assignmentImplicitConversion", ",", "boolean", "valueRequired", ")", "{", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "FieldBinding", "codegenField", "=", "(", "(", "FieldBinding", ")", "this", ".", "binding", ")", ".", "original", "(", ")", ";", "if", "(", "codegenField", ".", "isStatic", "(", ")", ")", "{", "if", "(", "(", "this", ".", "syntheticAccessors", "==", "null", ")", "||", "(", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", "==", "null", ")", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "codegenField", ",", "this", ".", "actualReceiverType", ",", "true", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "codegenField", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", ",", "null", ")", ";", "}", "}", "else", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", "{", "ReferenceBinding", "targetType", "=", "currentScope", ".", "enclosingSourceType", "(", ")", ".", "enclosingTypeAt", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ")", ";", "Object", "[", "]", "emulationPath", "=", "currentScope", ".", "getEmulationPath", "(", "targetType", ",", "true", ",", "false", ")", ";", "codeStream", ".", "generateOuterAccess", "(", "emulationPath", ",", "this", ",", "targetType", ",", "currentScope", ")", ";", "}", "else", "{", "codeStream", ".", "aload_0", "(", ")", ";", "}", "codeStream", ".", "dup", "(", ")", ";", "if", "(", "(", "this", ".", "syntheticAccessors", "==", "null", ")", "||", "(", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", "==", "null", ")", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "codegenField", ",", "this", ".", "actualReceiverType", ",", "true", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getfield", ",", "codegenField", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", ",", "null", ")", ";", "}", "}", "break", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "switch", "(", "localBinding", ".", "type", ".", "id", ")", "{", "case", "T_JavaLangString", ":", "codeStream", ".", "generateStringConcatenationAppend", "(", "currentScope", ",", "this", ",", "expression", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "dup", "(", ")", ";", "}", "codeStream", ".", "store", "(", "localBinding", ",", "false", ")", ";", "return", ";", "case", "T_int", ":", "Constant", "assignConstant", ";", "if", "(", "(", "(", "assignConstant", "=", "expression", ".", "constant", ")", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "assignConstant", ".", "typeID", "(", ")", "!=", "TypeIds", ".", "T_float", ")", "&&", "(", "assignConstant", ".", "typeID", "(", ")", "!=", "TypeIds", ".", "T_double", ")", ")", "{", "switch", "(", "operator", ")", "{", "case", "PLUS", ":", "int", "increment", "=", "assignConstant", ".", "intValue", "(", ")", ";", "if", "(", "increment", "!=", "(", "short", ")", "increment", ")", "break", ";", "codeStream", ".", "iinc", "(", "localBinding", ".", "resolvedPosition", ",", "increment", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "load", "(", "localBinding", ")", ";", "}", "return", ";", "case", "MINUS", ":", "increment", "=", "-", "assignConstant", ".", "intValue", "(", ")", ";", "if", "(", "increment", "!=", "(", "short", ")", "increment", ")", "break", ";", "codeStream", ".", "iinc", "(", "localBinding", ".", "resolvedPosition", ",", "increment", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "load", "(", "localBinding", ")", ";", "}", "return", ";", "}", "}", "default", ":", "codeStream", ".", "load", "(", "localBinding", ")", ";", "}", "}", "int", "operationTypeID", ";", "switch", "(", "operationTypeID", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ")", "{", "case", "T_JavaLangString", ":", "case", "T_JavaLangObject", ":", "case", "T_undefined", ":", "codeStream", ".", "generateStringConcatenationAppend", "(", "currentScope", ",", "null", ",", "expression", ")", ";", "break", ";", "default", ":", "if", "(", "this", ".", "genericCast", "!=", "null", ")", "codeStream", ".", "checkcast", "(", "this", ".", "genericCast", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "if", "(", "expression", "==", "IntLiteral", ".", "One", ")", "{", "codeStream", ".", "generateConstant", "(", "expression", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "}", "codeStream", ".", "sendOperator", "(", "operator", ",", "operationTypeID", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "assignmentImplicitConversion", ")", ";", "}", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "FieldBinding", "codegenField", "=", "(", "(", "FieldBinding", ")", "this", ".", "binding", ")", ".", "original", "(", ")", ";", "fieldStore", "(", "currentScope", ",", "codeStream", ",", "codegenField", ",", "writeAccessor", ",", "this", ".", "actualReceiverType", ",", "true", ",", "valueRequired", ")", ";", "return", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "if", "(", "valueRequired", ")", "{", "switch", "(", "localBinding", ".", "type", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "codeStream", ".", "dup2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "dup", "(", ")", ";", "break", ";", "}", "}", "codeStream", ".", "store", "(", "localBinding", ",", "false", ")", ";", "}", "}", "public", "void", "generatePostIncrement", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "CompoundAssignment", "postIncrement", ",", "boolean", "valueRequired", ")", "{", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "FieldBinding", "codegenField", "=", "(", "(", "(", "FieldBinding", ")", "this", ".", "binding", ")", ".", "original", "(", ")", ")", ";", "if", "(", "codegenField", ".", "isStatic", "(", ")", ")", "{", "if", "(", "(", "this", ".", "syntheticAccessors", "==", "null", ")", "||", "(", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", "==", "null", ")", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "codegenField", ",", "this", ".", "actualReceiverType", ",", "true", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "codegenField", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", ",", "null", ")", ";", "}", "}", "else", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", "{", "ReferenceBinding", "targetType", "=", "currentScope", ".", "enclosingSourceType", "(", ")", ".", "enclosingTypeAt", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ")", ";", "Object", "[", "]", "emulationPath", "=", "currentScope", ".", "getEmulationPath", "(", "targetType", ",", "true", ",", "false", ")", ";", "codeStream", ".", "generateOuterAccess", "(", "emulationPath", ",", "this", ",", "targetType", ",", "currentScope", ")", ";", "}", "else", "{", "codeStream", ".", "aload_0", "(", ")", ";", "}", "codeStream", ".", "dup", "(", ")", ";", "if", "(", "(", "this", ".", "syntheticAccessors", "==", "null", ")", "||", "(", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", "==", "null", ")", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "codegenField", ",", "this", ".", "actualReceiverType", ",", "true", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getfield", ",", "codegenField", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", ",", "null", ")", ";", "}", "}", "TypeBinding", "operandType", ";", "if", "(", "this", ".", "genericCast", "!=", "null", ")", "{", "codeStream", ".", "checkcast", "(", "this", ".", "genericCast", ")", ";", "operandType", "=", "this", ".", "genericCast", ";", "}", "else", "{", "operandType", "=", "codegenField", ".", "type", ";", "}", "if", "(", "valueRequired", ")", "{", "if", "(", "codegenField", ".", "isStatic", "(", ")", ")", "{", "switch", "(", "operandType", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "codeStream", ".", "dup2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "dup", "(", ")", ";", "break", ";", "}", "}", "else", "{", "switch", "(", "operandType", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "codeStream", ".", "dup2_x1", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "dup_x1", "(", ")", ";", "break", ";", "}", "}", "}", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "generateConstant", "(", "postIncrement", ".", "expression", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "sendOperator", "(", "postIncrement", ".", "operator", ",", "this", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "postIncrement", ".", "preAssignImplicitConversion", ")", ";", "fieldStore", "(", "currentScope", ",", "codeStream", ",", "codegenField", ",", "this", ".", "syntheticAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "WRITE", "]", ",", "this", ".", "actualReceiverType", ",", "true", ",", "false", ")", ";", "return", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "if", "(", "localBinding", ".", "type", "==", "TypeBinding", ".", "INT", ")", "{", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "load", "(", "localBinding", ")", ";", "}", "if", "(", "postIncrement", ".", "operator", "==", "OperatorIds", ".", "PLUS", ")", "{", "codeStream", ".", "iinc", "(", "localBinding", ".", "resolvedPosition", ",", "1", ")", ";", "}", "else", "{", "codeStream", ".", "iinc", "(", "localBinding", ".", "resolvedPosition", ",", "-", "1", ")", ";", "}", "}", "else", "{", "codeStream", ".", "load", "(", "localBinding", ")", ";", "if", "(", "valueRequired", ")", "{", "switch", "(", "localBinding", ".", "type", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "codeStream", ".", "dup2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "dup", "(", ")", ";", "break", ";", "}", "}", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "generateConstant", "(", "postIncrement", ".", "expression", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "sendOperator", "(", "postIncrement", ".", "operator", ",", "this", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "postIncrement", ".", "preAssignImplicitConversion", ")", ";", "codeStream", ".", "store", "(", "localBinding", ",", "false", ")", ";", "}", "}", "}", "public", "void", "generateReceiver", "(", "CodeStream", "codeStream", ")", "{", "codeStream", ".", "aload_0", "(", ")", ";", "}", "public", "TypeBinding", "[", "]", "genericTypeArguments", "(", ")", "{", "return", "null", ";", "}", "public", "LocalVariableBinding", "localVariableBinding", "(", ")", "{", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "break", ";", "case", "Binding", ".", "LOCAL", ":", "return", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "}", "return", "null", ";", "}", "public", "void", "manageEnclosingInstanceAccessIfNecessary", "(", "BlockScope", "currentScope", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "==", "0", ")", "||", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", ")", "{", "return", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "==", "Binding", ".", "LOCAL", ")", "{", "LocalVariableBinding", "localVariableBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "if", "(", "localVariableBinding", "!=", "null", ")", "{", "switch", "(", "localVariableBinding", ".", "useFlag", ")", "{", "case", "LocalVariableBinding", ".", "FAKE_USED", ":", "case", "LocalVariableBinding", ".", "USED", ":", "currentScope", ".", "emulateOuterAccess", "(", "localVariableBinding", ")", ";", "}", "}", "}", "}", "public", "void", "manageSyntheticAccessIfNecessary", "(", "BlockScope", "currentScope", ",", "FlowInfo", "flowInfo", ",", "boolean", "isReadAccess", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", ")", "return", ";", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "return", ";", "if", "(", "(", "this", ".", "bits", "&", "Binding", ".", "FIELD", ")", "!=", "0", ")", "{", "FieldBinding", "fieldBinding", "=", "(", "FieldBinding", ")", "this", ".", "binding", ";", "FieldBinding", "codegenField", "=", "fieldBinding", ".", "original", "(", ")", ";", "if", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", "&&", "(", "codegenField", ".", "isPrivate", "(", ")", "||", "(", "codegenField", ".", "isProtected", "(", ")", "&&", "codegenField", ".", "declaringClass", ".", "getPackage", "(", ")", "!=", "currentScope", ".", "enclosingSourceType", "(", ")", ".", "getPackage", "(", ")", ")", ")", ")", "{", "if", "(", "this", ".", "syntheticAccessors", "==", "null", ")", "this", ".", "syntheticAccessors", "=", "new", "MethodBinding", "[", "2", "]", ";", "this", ".", "syntheticAccessors", "[", "isReadAccess", "?", "SingleNameReference", ".", "READ", ":", "SingleNameReference", ".", "WRITE", "]", "=", "(", "(", "SourceTypeBinding", ")", "currentScope", ".", "enclosingSourceType", "(", ")", ".", "enclosingTypeAt", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ")", ")", ".", "addSyntheticMethod", "(", "codegenField", ",", "isReadAccess", ",", "false", ")", ";", "currentScope", ".", "problemReporter", "(", ")", ".", "needToEmulateFieldAccess", "(", "codegenField", ",", "this", ",", "isReadAccess", ")", ";", "return", ";", "}", "}", "}", "public", "int", "nullStatus", "(", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "constant", "!=", "null", "&&", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "return", "FlowInfo", ".", "NON_NULL", ";", "}", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "return", "FlowInfo", ".", "UNKNOWN", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "local", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "if", "(", "local", "!=", "null", ")", "{", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "return", "FlowInfo", ".", "NULL", ";", "if", "(", "flowInfo", ".", "isDefinitelyNonNull", "(", "local", ")", ")", "return", "FlowInfo", ".", "NON_NULL", ";", "return", "FlowInfo", ".", "UNKNOWN", ";", "}", "}", "return", "FlowInfo", ".", "NON_NULL", ";", "}", "public", "TypeBinding", "postConversionType", "(", "Scope", "scope", ")", "{", "TypeBinding", "convertedType", "=", "this", ".", "resolvedType", ";", "if", "(", "this", ".", "genericCast", "!=", "null", ")", "convertedType", "=", "this", ".", "genericCast", ";", "int", "runtimeType", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ";", "switch", "(", "runtimeType", ")", "{", "case", "T_boolean", ":", "convertedType", "=", "TypeBinding", ".", "BOOLEAN", ";", "break", ";", "case", "T_byte", ":", "convertedType", "=", "TypeBinding", ".", "BYTE", ";", "break", ";", "case", "T_short", ":", "convertedType", "=", "TypeBinding", ".", "SHORT", ";", "break", ";", "case", "T_char", ":", "convertedType", "=", "TypeBinding", ".", "CHAR", ";", "break", ";", "case", "T_int", ":", "convertedType", "=", "TypeBinding", ".", "INT", ";", "break", ";", "case", "T_float", ":", "convertedType", "=", "TypeBinding", ".", "FLOAT", ";", "break", ";", "case", "T_long", ":", "convertedType", "=", "TypeBinding", ".", "LONG", ";", "break", ";", "case", "T_double", ":", "convertedType", "=", "TypeBinding", ".", "DOUBLE", ";", "break", ";", "default", ":", "}", "if", "(", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "BOXING", ")", "!=", "0", ")", "{", "convertedType", "=", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "convertedType", ")", ";", "}", "return", "convertedType", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "output", ".", "append", "(", "this", ".", "token", ")", ";", "}", "public", "TypeBinding", "reportError", "(", "BlockScope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "this", ".", "binding", "instanceof", "ProblemFieldBinding", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "invalidField", "(", "this", ",", "(", "FieldBinding", ")", "this", ".", "binding", ")", ";", "}", "else", "if", "(", "this", ".", "binding", "instanceof", "ProblemReferenceBinding", "||", "this", ".", "binding", "instanceof", "MissingTypeBinding", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "invalidType", "(", "this", ",", "(", "TypeBinding", ")", "this", ".", "binding", ")", ";", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "unresolvableReference", "(", "this", ",", "this", ".", "binding", ")", ";", "}", "return", "null", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "if", "(", "this", ".", "actualReceiverType", "!=", "null", ")", "{", "this", ".", "binding", "=", "scope", ".", "getField", "(", "this", ".", "actualReceiverType", ",", "this", ".", "token", ",", "this", ")", ";", "}", "else", "{", "this", ".", "actualReceiverType", "=", "scope", ".", "enclosingSourceType", "(", ")", ";", "this", ".", "binding", "=", "scope", ".", "getBinding", "(", "this", ".", "token", ",", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ",", "this", ",", "true", ")", ";", "}", "if", "(", "this", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "VARIABLE", ":", "case", "Binding", ".", "VARIABLE", "|", "Binding", ".", "TYPE", ":", "if", "(", "this", ".", "binding", "instanceof", "VariableBinding", ")", "{", "VariableBinding", "variable", "=", "(", "VariableBinding", ")", "this", ".", "binding", ";", "TypeBinding", "variableType", ";", "if", "(", "this", ".", "binding", "instanceof", "LocalVariableBinding", ")", "{", "this", ".", "bits", "&=", "~", "ASTNode", ".", "RestrictiveFlagMASK", ";", "this", ".", "bits", "|=", "Binding", ".", "LOCAL", ";", "if", "(", "!", "variable", ".", "isFinal", "(", ")", "&&", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotReferToNonFinalOuterLocal", "(", "(", "LocalVariableBinding", ")", "variable", ",", "this", ")", ";", "}", "variableType", "=", "variable", ".", "type", ";", "this", ".", "constant", "=", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsStrictlyAssigned", ")", "==", "0", "?", "variable", ".", "constant", "(", ")", ":", "Constant", ".", "NotAConstant", ";", "}", "else", "{", "variableType", "=", "checkFieldAccess", "(", "scope", ")", ";", "}", "if", "(", "variableType", "!=", "null", ")", "{", "this", ".", "resolvedType", "=", "variableType", "=", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsStrictlyAssigned", ")", "==", "0", ")", "?", "variableType", ".", "capture", "(", "scope", ",", "this", ".", "sourceEnd", ")", ":", "variableType", ")", ";", "if", "(", "(", "variableType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "Binding", ".", "LOCAL", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "invalidType", "(", "this", ",", "variableType", ")", ";", "}", "return", "null", ";", "}", "}", "return", "variableType", ";", "}", "this", ".", "bits", "&=", "~", "ASTNode", ".", "RestrictiveFlagMASK", ";", "this", ".", "bits", "|=", "Binding", ".", "TYPE", ";", "case", "Binding", ".", "TYPE", ":", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "TypeBinding", "type", "=", "(", "TypeBinding", ")", "this", ".", "binding", ";", "if", "(", "isTypeUseDeprecated", "(", "type", ",", "scope", ")", ")", "scope", ".", "problemReporter", "(", ")", ".", "deprecatedType", "(", "type", ",", "this", ")", ";", "type", "=", "scope", ".", "environment", "(", ")", ".", "convertToRawType", "(", "type", ",", "false", ")", ";", "return", "this", ".", "resolvedType", "=", "type", ";", "}", "}", "return", "this", ".", "resolvedType", "=", "reportError", "(", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "String", "unboundReferenceErrorName", "(", ")", "{", "return", "new", "String", "(", "this", ".", "token", ")", ";", "}", "}", "</s>" ]
5,685
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "CompilerOptions", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ArrayBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Binding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "InvocationSite", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "LocalVariableBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "LookupEnvironment", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MethodBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ParameterizedGenericMethodBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ParameterizedTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Scope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TagBits", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "ProblemSeverities", ";", "public", "class", "CastExpression", "extends", "Expression", "{", "public", "Expression", "expression", ";", "public", "Expression", "type", ";", "public", "TypeBinding", "expectedType", ";", "public", "CastExpression", "(", "Expression", "expression", ",", "Expression", "type", ")", "{", "this", ".", "expression", "=", "expression", ";", "this", ".", "type", "=", "type", ";", "type", ".", "bits", "|=", "ASTNode", ".", "IgnoreRawTypeCheck", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "return", "this", ".", "expression", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "}", "public", "static", "void", "checkNeedForAssignedCast", "(", "BlockScope", "scope", ",", "TypeBinding", "expectedType", ",", "CastExpression", "rhs", ")", "{", "if", "(", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "UnnecessaryTypeCheck", ")", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "TypeBinding", "castedExpressionType", "=", "rhs", ".", "expression", ".", "resolvedType", ";", "if", "(", "castedExpressionType", "==", "null", "||", "rhs", ".", "resolvedType", ".", "isBaseType", "(", ")", ")", "return", ";", "if", "(", "castedExpressionType", ".", "isCompatibleWith", "(", "expectedType", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "rhs", ")", ";", "}", "}", "public", "static", "void", "checkNeedForCastCast", "(", "BlockScope", "scope", ",", "CastExpression", "enclosingCast", ")", "{", "if", "(", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "UnnecessaryTypeCheck", ")", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "CastExpression", "nestedCast", "=", "(", "CastExpression", ")", "enclosingCast", ".", "expression", ";", "if", "(", "(", "nestedCast", ".", "bits", "&", "ASTNode", ".", "UnnecessaryCast", ")", "==", "0", ")", "return", ";", "CastExpression", "alternateCast", "=", "new", "CastExpression", "(", "null", ",", "enclosingCast", ".", "type", ")", ";", "alternateCast", ".", "resolvedType", "=", "enclosingCast", ".", "resolvedType", ";", "if", "(", "!", "alternateCast", ".", "checkCastTypesCompatibility", "(", "scope", ",", "enclosingCast", ".", "resolvedType", ",", "nestedCast", ".", "expression", ".", "resolvedType", ",", "null", ")", ")", "return", ";", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "nestedCast", ")", ";", "}", "public", "static", "void", "checkNeedForEnclosingInstanceCast", "(", "BlockScope", "scope", ",", "Expression", "enclosingInstance", ",", "TypeBinding", "enclosingInstanceType", ",", "TypeBinding", "memberType", ")", "{", "if", "(", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "UnnecessaryTypeCheck", ")", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "TypeBinding", "castedExpressionType", "=", "(", "(", "CastExpression", ")", "enclosingInstance", ")", ".", "expression", ".", "resolvedType", ";", "if", "(", "castedExpressionType", "==", "null", ")", "return", ";", "if", "(", "castedExpressionType", "==", "enclosingInstanceType", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "(", "CastExpression", ")", "enclosingInstance", ")", ";", "}", "else", "if", "(", "castedExpressionType", "==", "TypeBinding", ".", "NULL", ")", "{", "return", ";", "}", "else", "{", "TypeBinding", "alternateEnclosingInstanceType", "=", "castedExpressionType", ";", "if", "(", "castedExpressionType", ".", "isBaseType", "(", ")", "||", "castedExpressionType", ".", "isArrayType", "(", ")", ")", "return", ";", "if", "(", "memberType", "==", "scope", ".", "getMemberType", "(", "memberType", ".", "sourceName", "(", ")", ",", "(", "ReferenceBinding", ")", "alternateEnclosingInstanceType", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "(", "CastExpression", ")", "enclosingInstance", ")", ";", "}", "}", "}", "public", "static", "void", "checkNeedForArgumentCast", "(", "BlockScope", "scope", ",", "int", "operator", ",", "int", "operatorSignature", ",", "Expression", "expression", ",", "int", "expressionTypeId", ")", "{", "if", "(", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "UnnecessaryTypeCheck", ")", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "(", "expression", ".", "bits", "&", "ASTNode", ".", "UnnecessaryCast", ")", "==", "0", "&&", "expression", ".", "resolvedType", ".", "isBaseType", "(", ")", ")", "{", "return", ";", "}", "else", "{", "TypeBinding", "alternateLeftType", "=", "(", "(", "CastExpression", ")", "expression", ")", ".", "expression", ".", "resolvedType", ";", "if", "(", "alternateLeftType", "==", "null", ")", "return", ";", "if", "(", "alternateLeftType", ".", "id", "==", "expressionTypeId", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "(", "CastExpression", ")", "expression", ")", ";", "return", ";", "}", "}", "}", "public", "static", "void", "checkNeedForArgumentCasts", "(", "BlockScope", "scope", ",", "Expression", "receiver", ",", "TypeBinding", "receiverType", ",", "MethodBinding", "binding", ",", "Expression", "[", "]", "arguments", ",", "TypeBinding", "[", "]", "argumentTypes", ",", "final", "InvocationSite", "invocationSite", ")", "{", "if", "(", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "UnnecessaryTypeCheck", ")", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "int", "length", "=", "argumentTypes", ".", "length", ";", "TypeBinding", "[", "]", "rawArgumentTypes", "=", "argumentTypes", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "Expression", "argument", "=", "arguments", "[", "i", "]", ";", "if", "(", "argument", "instanceof", "CastExpression", ")", "{", "if", "(", "(", "argument", ".", "bits", "&", "ASTNode", ".", "UnnecessaryCast", ")", "==", "0", "&&", "argument", ".", "resolvedType", ".", "isBaseType", "(", ")", ")", "{", "continue", ";", "}", "TypeBinding", "castedExpressionType", "=", "(", "(", "CastExpression", ")", "argument", ")", ".", "expression", ".", "resolvedType", ";", "if", "(", "castedExpressionType", "==", "null", ")", "return", ";", "if", "(", "castedExpressionType", "==", "argumentTypes", "[", "i", "]", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "(", "CastExpression", ")", "argument", ")", ";", "}", "else", "if", "(", "castedExpressionType", "==", "TypeBinding", ".", "NULL", ")", "{", "continue", ";", "}", "else", "if", "(", "(", "argument", ".", "implicitConversion", "&", "TypeIds", ".", "BOXING", ")", "!=", "0", ")", "{", "continue", ";", "}", "else", "{", "if", "(", "rawArgumentTypes", "==", "argumentTypes", ")", "{", "System", ".", "arraycopy", "(", "rawArgumentTypes", ",", "0", ",", "rawArgumentTypes", "=", "new", "TypeBinding", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "rawArgumentTypes", "[", "i", "]", "=", "castedExpressionType", ";", "}", "}", "}", "if", "(", "rawArgumentTypes", "!=", "argumentTypes", ")", "{", "checkAlternateBinding", "(", "scope", ",", "receiver", ",", "receiverType", ",", "binding", ",", "arguments", ",", "argumentTypes", ",", "rawArgumentTypes", ",", "invocationSite", ")", ";", "}", "}", "public", "static", "void", "checkNeedForArgumentCasts", "(", "BlockScope", "scope", ",", "int", "operator", ",", "int", "operatorSignature", ",", "Expression", "left", ",", "int", "leftTypeId", ",", "boolean", "leftIsCast", ",", "Expression", "right", ",", "int", "rightTypeId", ",", "boolean", "rightIsCast", ")", "{", "if", "(", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "UnnecessaryTypeCheck", ")", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "int", "alternateLeftTypeId", "=", "leftTypeId", ";", "if", "(", "leftIsCast", ")", "{", "if", "(", "(", "left", ".", "bits", "&", "ASTNode", ".", "UnnecessaryCast", ")", "==", "0", "&&", "left", ".", "resolvedType", ".", "isBaseType", "(", ")", ")", "{", "leftIsCast", "=", "false", ";", "}", "else", "{", "TypeBinding", "alternateLeftType", "=", "(", "(", "CastExpression", ")", "left", ")", ".", "expression", ".", "resolvedType", ";", "if", "(", "alternateLeftType", "==", "null", ")", "return", ";", "if", "(", "(", "alternateLeftTypeId", "=", "alternateLeftType", ".", "id", ")", "==", "leftTypeId", "||", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "alternateLeftType", ")", ".", "id", "==", "leftTypeId", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "(", "CastExpression", ")", "left", ")", ";", "leftIsCast", "=", "false", ";", "}", "else", "if", "(", "alternateLeftTypeId", "==", "TypeIds", ".", "T_null", ")", "{", "alternateLeftTypeId", "=", "leftTypeId", ";", "leftIsCast", "=", "false", ";", "}", "}", "}", "int", "alternateRightTypeId", "=", "rightTypeId", ";", "if", "(", "rightIsCast", ")", "{", "if", "(", "(", "right", ".", "bits", "&", "ASTNode", ".", "UnnecessaryCast", ")", "==", "0", "&&", "right", ".", "resolvedType", ".", "isBaseType", "(", ")", ")", "{", "rightIsCast", "=", "false", ";", "}", "else", "{", "TypeBinding", "alternateRightType", "=", "(", "(", "CastExpression", ")", "right", ")", ".", "expression", ".", "resolvedType", ";", "if", "(", "alternateRightType", "==", "null", ")", "return", ";", "if", "(", "(", "alternateRightTypeId", "=", "alternateRightType", ".", "id", ")", "==", "rightTypeId", "||", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "alternateRightType", ")", ".", "id", "==", "rightTypeId", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "(", "CastExpression", ")", "right", ")", ";", "rightIsCast", "=", "false", ";", "}", "else", "if", "(", "alternateRightTypeId", "==", "TypeIds", ".", "T_null", ")", "{", "alternateRightTypeId", "=", "rightTypeId", ";", "rightIsCast", "=", "false", ";", "}", "}", "}", "if", "(", "leftIsCast", "||", "rightIsCast", ")", "{", "if", "(", "alternateLeftTypeId", ">", "15", "||", "alternateRightTypeId", ">", "15", ")", "{", "if", "(", "alternateLeftTypeId", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "alternateRightTypeId", "=", "TypeIds", ".", "T_JavaLangObject", ";", "}", "else", "if", "(", "alternateRightTypeId", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "alternateLeftTypeId", "=", "TypeIds", ".", "T_JavaLangObject", ";", "}", "else", "{", "return", ";", "}", "}", "int", "alternateOperatorSignature", "=", "OperatorExpression", ".", "OperatorSignatures", "[", "operator", "]", "[", "(", "alternateLeftTypeId", "<<", "4", ")", "+", "alternateRightTypeId", "]", ";", "final", "int", "CompareMASK", "=", "(", "0xF", "<<", "16", ")", "+", "(", "0xF", "<<", "8", ")", "+", "0xF", ";", "if", "(", "(", "operatorSignature", "&", "CompareMASK", ")", "==", "(", "alternateOperatorSignature", "&", "CompareMASK", ")", ")", "{", "if", "(", "leftIsCast", ")", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "(", "CastExpression", ")", "left", ")", ";", "if", "(", "rightIsCast", ")", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "(", "CastExpression", ")", "right", ")", ";", "}", "}", "}", "private", "static", "void", "checkAlternateBinding", "(", "BlockScope", "scope", ",", "Expression", "receiver", ",", "TypeBinding", "receiverType", ",", "MethodBinding", "binding", ",", "Expression", "[", "]", "arguments", ",", "TypeBinding", "[", "]", "originalArgumentTypes", ",", "TypeBinding", "[", "]", "alternateArgumentTypes", ",", "final", "InvocationSite", "invocationSite", ")", "{", "InvocationSite", "fakeInvocationSite", "=", "new", "InvocationSite", "(", ")", "{", "public", "TypeBinding", "[", "]", "genericTypeArguments", "(", ")", "{", "return", "null", ";", "}", "public", "boolean", "isSuperAccess", "(", ")", "{", "return", "invocationSite", ".", "isSuperAccess", "(", ")", ";", "}", "public", "boolean", "isTypeAccess", "(", ")", "{", "return", "invocationSite", ".", "isTypeAccess", "(", ")", ";", "}", "public", "void", "setActualReceiverType", "(", "ReferenceBinding", "actualReceiverType", ")", "{", "}", "public", "void", "setDepth", "(", "int", "depth", ")", "{", "}", "public", "void", "setFieldIndex", "(", "int", "depth", ")", "{", "}", "public", "int", "sourceStart", "(", ")", "{", "return", "0", ";", "}", "public", "int", "sourceEnd", "(", ")", "{", "return", "0", ";", "}", "public", "TypeBinding", "expectedType", "(", ")", "{", "return", "invocationSite", ".", "expectedType", "(", ")", ";", "}", "}", ";", "MethodBinding", "bindingIfNoCast", ";", "if", "(", "binding", ".", "isConstructor", "(", ")", ")", "{", "bindingIfNoCast", "=", "scope", ".", "getConstructor", "(", "(", "ReferenceBinding", ")", "receiverType", ",", "alternateArgumentTypes", ",", "fakeInvocationSite", ")", ";", "}", "else", "{", "bindingIfNoCast", "=", "receiver", ".", "isImplicitThis", "(", ")", "?", "scope", ".", "getImplicitMethod", "(", "binding", ".", "selector", ",", "alternateArgumentTypes", ",", "fakeInvocationSite", ")", ":", "scope", ".", "getMethod", "(", "receiverType", ",", "binding", ".", "selector", ",", "alternateArgumentTypes", ",", "fakeInvocationSite", ")", ";", "}", "if", "(", "bindingIfNoCast", "==", "binding", ")", "{", "int", "argumentLength", "=", "originalArgumentTypes", ".", "length", ";", "if", "(", "binding", ".", "isVarargs", "(", ")", ")", "{", "int", "paramLength", "=", "binding", ".", "parameters", ".", "length", ";", "if", "(", "paramLength", "==", "argumentLength", ")", "{", "int", "varargsIndex", "=", "paramLength", "-", "1", ";", "ArrayBinding", "varargsType", "=", "(", "ArrayBinding", ")", "binding", ".", "parameters", "[", "varargsIndex", "]", ";", "TypeBinding", "lastArgType", "=", "alternateArgumentTypes", "[", "varargsIndex", "]", ";", "if", "(", "varargsType", ".", "dimensions", "!=", "lastArgType", ".", "dimensions", "(", ")", ")", "{", "return", ";", "}", "if", "(", "lastArgType", ".", "isCompatibleWith", "(", "varargsType", ".", "elementsType", "(", ")", ")", "&&", "lastArgType", ".", "isCompatibleWith", "(", "varargsType", ")", ")", "{", "return", ";", "}", "}", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "argumentLength", ";", "i", "++", ")", "{", "if", "(", "originalArgumentTypes", "[", "i", "]", "!=", "alternateArgumentTypes", "[", "i", "]", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "(", "CastExpression", ")", "arguments", "[", "i", "]", ")", ";", "}", "}", "}", "}", "public", "boolean", "checkUnsafeCast", "(", "Scope", "scope", ",", "TypeBinding", "castType", ",", "TypeBinding", "expressionType", ",", "TypeBinding", "match", ",", "boolean", "isNarrowing", ")", "{", "if", "(", "match", "==", "castType", ")", "{", "if", "(", "!", "isNarrowing", "&&", "match", "==", "this", ".", "resolvedType", ".", "leafComponentType", "(", ")", ")", "{", "tagAsUnnecessaryCast", "(", "scope", ",", "castType", ")", ";", "}", "return", "true", ";", "}", "if", "(", "match", "!=", "null", ")", "{", "if", "(", "isNarrowing", "?", "match", ".", "isProvablyDistinct", "(", "expressionType", ")", ":", "castType", ".", "isProvablyDistinct", "(", "match", ")", ")", "{", "return", "false", ";", "}", "}", "switch", "(", "castType", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "PARAMETERIZED_TYPE", ":", "if", "(", "!", "castType", ".", "isReifiable", "(", ")", ")", "{", "if", "(", "match", "==", "null", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "UnsafeCast", ";", "return", "true", ";", "}", "switch", "(", "match", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "PARAMETERIZED_TYPE", ":", "if", "(", "isNarrowing", ")", "{", "if", "(", "expressionType", ".", "isRawType", "(", ")", "||", "!", "expressionType", ".", "isEquivalentTo", "(", "match", ")", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "UnsafeCast", ";", "return", "true", ";", "}", "ParameterizedTypeBinding", "paramCastType", "=", "(", "ParameterizedTypeBinding", ")", "castType", ";", "ParameterizedTypeBinding", "paramMatch", "=", "(", "ParameterizedTypeBinding", ")", "match", ";", "TypeBinding", "[", "]", "castArguments", "=", "paramCastType", ".", "arguments", ";", "int", "length", "=", "castArguments", "==", "null", "?", "0", ":", "castArguments", ".", "length", ";", "if", "(", "paramMatch", ".", "arguments", "==", "null", "||", "length", ">", "paramMatch", ".", "arguments", ".", "length", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "UnsafeCast", ";", "}", "else", "if", "(", "(", "paramCastType", ".", "tagBits", "&", "(", "TagBits", ".", "HasDirectWildcard", "|", "TagBits", ".", "HasTypeVariable", ")", ")", "!=", "0", ")", "{", "nextAlternateArgument", ":", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "switch", "(", "castArguments", "[", "i", "]", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "WILDCARD_TYPE", ":", "case", "Binding", ".", "TYPE_PARAMETER", ":", "break", ";", "default", ":", "continue", "nextAlternateArgument", ";", "}", "TypeBinding", "[", "]", "alternateArguments", ";", "System", ".", "arraycopy", "(", "paramCastType", ".", "arguments", ",", "0", ",", "alternateArguments", "=", "new", "TypeBinding", "[", "length", "]", ",", "0", ",", "length", ")", ";", "alternateArguments", "[", "i", "]", "=", "scope", ".", "getJavaLangObject", "(", ")", ";", "LookupEnvironment", "environment", "=", "scope", ".", "environment", "(", ")", ";", "ParameterizedTypeBinding", "alternateCastType", "=", "environment", ".", "createParameterizedType", "(", "(", "ReferenceBinding", ")", "castType", ".", "erasure", "(", ")", ",", "alternateArguments", ",", "castType", ".", "enclosingType", "(", ")", ")", ";", "if", "(", "alternateCastType", ".", "findSuperTypeOriginatingFrom", "(", "expressionType", ")", "==", "match", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "UnsafeCast", ";", "break", ";", "}", "}", "}", "return", "true", ";", "}", "else", "{", "if", "(", "!", "match", ".", "isEquivalentTo", "(", "castType", ")", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "UnsafeCast", ";", "return", "true", ";", "}", "}", "break", ";", "case", "Binding", ".", "RAW_TYPE", ":", "this", ".", "bits", "|=", "ASTNode", ".", "UnsafeCast", ";", "return", "true", ";", "default", ":", "if", "(", "isNarrowing", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "UnsafeCast", ";", "return", "true", ";", "}", "break", ";", "}", "}", "break", ";", "case", "Binding", ".", "ARRAY_TYPE", ":", "TypeBinding", "leafType", "=", "castType", ".", "leafComponentType", "(", ")", ";", "if", "(", "isNarrowing", "&&", "(", "!", "leafType", ".", "isReifiable", "(", ")", "||", "leafType", ".", "isTypeVariable", "(", ")", ")", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "UnsafeCast", ";", "return", "true", ";", "}", "break", ";", "case", "Binding", ".", "TYPE_PARAMETER", ":", "this", ".", "bits", "|=", "ASTNode", ".", "UnsafeCast", ";", "return", "true", ";", "}", "if", "(", "!", "isNarrowing", "&&", "match", "==", "this", ".", "resolvedType", ".", "leafComponentType", "(", ")", ")", "{", "tagAsUnnecessaryCast", "(", "scope", ",", "castType", ")", ";", "}", "return", "true", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "boolean", "needRuntimeCheckcast", "=", "(", "this", ".", "bits", "&", "ASTNode", ".", "GenerateCheckcast", ")", "!=", "0", ";", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "valueRequired", "||", "needRuntimeCheckcast", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "if", "(", "needRuntimeCheckcast", ")", "{", "codeStream", ".", "checkcast", "(", "this", ".", "resolvedType", ")", ";", "}", "if", "(", "!", "valueRequired", ")", "{", "codeStream", ".", "pop", "(", ")", ";", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "this", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", "||", "needRuntimeCheckcast", ")", ";", "if", "(", "needRuntimeCheckcast", "&&", "this", ".", "expression", ".", "postConversionType", "(", "currentScope", ")", "!=", "this", ".", "resolvedType", ".", "erasure", "(", ")", ")", "{", "codeStream", ".", "checkcast", "(", "this", ".", "resolvedType", ")", ";", "}", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "else", "if", "(", "needRuntimeCheckcast", ")", "{", "codeStream", ".", "pop", "(", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "Expression", "innermostCastedExpression", "(", ")", "{", "Expression", "current", "=", "this", ".", "expression", ";", "while", "(", "current", "instanceof", "CastExpression", ")", "{", "current", "=", "(", "(", "CastExpression", ")", "current", ")", ".", "expression", ";", "}", "return", "current", ";", "}", "public", "LocalVariableBinding", "localVariableBinding", "(", ")", "{", "return", "this", ".", "expression", ".", "localVariableBinding", "(", ")", ";", "}", "public", "int", "nullStatus", "(", "FlowInfo", "flowInfo", ")", "{", "return", "this", ".", "expression", ".", "nullStatus", "(", "flowInfo", ")", ";", "}", "public", "Constant", "optimizedBooleanConstant", "(", ")", "{", "switch", "(", "this", ".", "resolvedType", ".", "id", ")", "{", "case", "T_boolean", ":", "case", "T_JavaLangBoolean", ":", "return", "this", ".", "expression", ".", "optimizedBooleanConstant", "(", ")", ";", "}", "return", "Constant", ".", "NotAConstant", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "output", ".", "append", "(", "'('", ")", ";", "this", ".", "type", ".", "print", "(", "0", ",", "output", ")", ".", "append", "(", "\")", "\"", ")", ";", "return", "this", ".", "expression", ".", "printExpression", "(", "0", ",", "output", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "this", ".", "implicitConversion", "=", "TypeIds", ".", "T_undefined", ";", "if", "(", "(", "this", ".", "type", "instanceof", "TypeReference", ")", "||", "(", "this", ".", "type", "instanceof", "NameReference", ")", "&&", "(", "(", "this", ".", "type", ".", "bits", "&", "ASTNode", ".", "ParenthesizedMASK", ")", ">>", "ASTNode", ".", "ParenthesizedSHIFT", ")", "==", "0", ")", "{", "boolean", "exprContainCast", "=", "false", ";", "TypeBinding", "castType", "=", "this", ".", "resolvedType", "=", "this", ".", "type", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "this", ".", "expression", "instanceof", "CastExpression", ")", "{", "this", ".", "expression", ".", "bits", "|=", "ASTNode", ".", "DisableUnnecessaryCastCheck", ";", "exprContainCast", "=", "true", ";", "}", "TypeBinding", "expressionType", "=", "this", ".", "expression", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "castType", "!=", "null", ")", "{", "if", "(", "expressionType", "!=", "null", ")", "{", "boolean", "isLegal", "=", "checkCastTypesCompatibility", "(", "scope", ",", "castType", ",", "expressionType", ",", "this", ".", "expression", ")", ";", "if", "(", "isLegal", ")", "{", "this", ".", "expression", ".", "computeConversion", "(", "scope", ",", "castType", ",", "expressionType", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "UnsafeCast", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unsafeCast", "(", "this", ",", "scope", ")", ";", "}", "else", "{", "if", "(", "castType", ".", "isRawType", "(", ")", "&&", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "RawTypeReference", ")", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "rawTypeReference", "(", "this", ".", "type", ",", "castType", ")", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "(", "ASTNode", ".", "UnnecessaryCast", "|", "ASTNode", ".", "DisableUnnecessaryCastCheck", ")", ")", "==", "ASTNode", ".", "UnnecessaryCast", ")", "{", "if", "(", "!", "isIndirectlyUsed", "(", ")", ")", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "this", ")", ";", "}", "}", "}", "else", "{", "if", "(", "(", "castType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "typeCastError", "(", "this", ",", "castType", ",", "expressionType", ")", ";", "}", "this", ".", "bits", "|=", "ASTNode", ".", "DisableUnnecessaryCastCheck", ";", "}", "}", "this", ".", "resolvedType", "=", "castType", ".", "capture", "(", "scope", ",", "this", ".", "sourceEnd", ")", ";", "if", "(", "exprContainCast", ")", "{", "checkNeedForCastCast", "(", "scope", ",", "this", ")", ";", "}", "}", "return", "this", ".", "resolvedType", ";", "}", "else", "{", "TypeBinding", "expressionType", "=", "this", ".", "expression", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "expressionType", "==", "null", ")", "return", "null", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidTypeReference", "(", "this", ".", "type", ")", ";", "return", "null", ";", "}", "}", "public", "void", "setExpectedType", "(", "TypeBinding", "expectedType", ")", "{", "this", ".", "expectedType", "=", "expectedType", ";", "}", "private", "boolean", "isIndirectlyUsed", "(", ")", "{", "if", "(", "this", ".", "expression", "instanceof", "MessageSend", ")", "{", "MethodBinding", "method", "=", "(", "(", "MessageSend", ")", "this", ".", "expression", ")", ".", "binding", ";", "if", "(", "method", "instanceof", "ParameterizedGenericMethodBinding", "&&", "(", "(", "ParameterizedGenericMethodBinding", ")", "method", ")", ".", "inferredReturnType", ")", "{", "if", "(", "this", ".", "expectedType", "==", "null", ")", "return", "true", ";", "if", "(", "this", ".", "resolvedType", "!=", "this", ".", "expectedType", ")", "return", "true", ";", "}", "}", "if", "(", "this", ".", "expectedType", "!=", "null", "&&", "this", ".", "resolvedType", ".", "isBaseType", "(", ")", "&&", "!", "this", ".", "resolvedType", ".", "isCompatibleWith", "(", "this", ".", "expectedType", ")", ")", "{", "return", "true", ";", "}", "return", "false", ";", "}", "public", "void", "tagAsNeedCheckCast", "(", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "GenerateCheckcast", ";", "}", "public", "void", "tagAsUnnecessaryCast", "(", "Scope", "scope", ",", "TypeBinding", "castType", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "UnnecessaryCast", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "this", ".", "type", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "this", ".", "expression", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
5,686
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "Opcodes", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "CompilerOptions", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "ReferenceContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Binding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ExtraCompilerModifiers", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "InvocationSite", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MethodBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MissingTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemMethodBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemReasons", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "RawTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Scope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "SourceTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TagBits", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "ProblemSeverities", ";", "public", "class", "MessageSend", "extends", "Expression", "implements", "InvocationSite", "{", "public", "Expression", "receiver", ";", "public", "char", "[", "]", "selector", ";", "public", "Expression", "[", "]", "arguments", ";", "public", "MethodBinding", "binding", ";", "public", "MethodBinding", "syntheticAccessor", ";", "public", "TypeBinding", "expectedType", ";", "public", "long", "nameSourcePosition", ";", "public", "TypeBinding", "actualReceiverType", ";", "public", "TypeBinding", "valueCast", ";", "public", "TypeReference", "[", "]", "typeArguments", ";", "public", "TypeBinding", "[", "]", "genericTypeArguments", ";", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "boolean", "nonStatic", "=", "!", "this", ".", "binding", ".", "isStatic", "(", ")", ";", "flowInfo", "=", "this", ".", "receiver", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ",", "nonStatic", ")", ".", "unconditionalInits", "(", ")", ";", "if", "(", "nonStatic", ")", "{", "this", ".", "receiver", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "arguments", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "flowInfo", "=", "this", ".", "arguments", "[", "i", "]", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "}", "}", "ReferenceBinding", "[", "]", "thrownExceptions", ";", "if", "(", "(", "thrownExceptions", "=", "this", ".", "binding", ".", "thrownExceptions", ")", "!=", "Binding", ".", "NO_EXCEPTIONS", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "Unchecked", ")", "!=", "0", "&&", "this", ".", "genericTypeArguments", "==", "null", ")", "{", "thrownExceptions", "=", "currentScope", ".", "environment", "(", ")", ".", "convertToRawTypes", "(", "this", ".", "binding", ".", "thrownExceptions", ",", "true", ",", "true", ")", ";", "}", "flowContext", ".", "checkExceptionHandlers", "(", "thrownExceptions", ",", "this", ",", "flowInfo", ".", "copy", "(", ")", ",", "currentScope", ")", ";", "}", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ")", ";", "return", "flowInfo", ";", "}", "public", "void", "computeConversion", "(", "Scope", "scope", ",", "TypeBinding", "runtimeTimeType", ",", "TypeBinding", "compileTimeType", ")", "{", "if", "(", "runtimeTimeType", "==", "null", "||", "compileTimeType", "==", "null", ")", "return", ";", "if", "(", "this", ".", "binding", "!=", "null", "&&", "this", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "MethodBinding", "originalBinding", "=", "this", ".", "binding", ".", "original", "(", ")", ";", "TypeBinding", "originalType", "=", "originalBinding", ".", "returnType", ";", "if", "(", "originalType", ".", "leafComponentType", "(", ")", ".", "isTypeVariable", "(", ")", ")", "{", "TypeBinding", "targetType", "=", "(", "!", "compileTimeType", ".", "isBaseType", "(", ")", "&&", "runtimeTimeType", ".", "isBaseType", "(", ")", ")", "?", "compileTimeType", ":", "runtimeTimeType", ";", "this", ".", "valueCast", "=", "originalType", ".", "genericCast", "(", "targetType", ")", ";", "}", "else", "if", "(", "this", ".", "binding", "==", "scope", ".", "environment", "(", ")", ".", "arrayClone", "&&", "runtimeTimeType", ".", "id", "!=", "TypeIds", ".", "T_JavaLangObject", "&&", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "this", ".", "valueCast", "=", "runtimeTimeType", ";", "}", "if", "(", "this", ".", "valueCast", "instanceof", "ReferenceBinding", ")", "{", "ReferenceBinding", "referenceCast", "=", "(", "ReferenceBinding", ")", "this", ".", "valueCast", ";", "if", "(", "!", "referenceCast", ".", "canBeSeenBy", "(", "scope", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "invalidType", "(", "this", ",", "new", "ProblemReferenceBinding", "(", "CharOperation", ".", "splitOn", "(", "'.'", ",", "referenceCast", ".", "shortReadableName", "(", ")", ")", ",", "referenceCast", ",", "ProblemReasons", ".", "NotVisible", ")", ")", ";", "}", "}", "}", "super", ".", "computeConversion", "(", "scope", ",", "runtimeTimeType", ",", "compileTimeType", ")", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "MethodBinding", "codegenBinding", "=", "this", ".", "binding", ".", "original", "(", ")", ";", "boolean", "isStatic", "=", "codegenBinding", ".", "isStatic", "(", ")", ";", "if", "(", "isStatic", ")", "{", "this", ".", "receiver", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "}", "else", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", "&&", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", ")", "{", "ReferenceBinding", "targetType", "=", "currentScope", ".", "enclosingSourceType", "(", ")", ".", "enclosingTypeAt", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ")", ";", "Object", "[", "]", "path", "=", "currentScope", ".", "getEmulationPath", "(", "targetType", ",", "true", ",", "false", ")", ";", "codeStream", ".", "generateOuterAccess", "(", "path", ",", "this", ",", "targetType", ",", "currentScope", ")", ";", "}", "else", "{", "this", ".", "receiver", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "NeedReceiverGenericCast", ")", "!=", "0", ")", "{", "codeStream", ".", "checkcast", "(", "this", ".", "actualReceiverType", ")", ";", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "generateArguments", "(", "this", ".", "binding", ",", "this", ".", "arguments", ",", "currentScope", ",", "codeStream", ")", ";", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "this", ".", "syntheticAccessor", "==", "null", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "codegenBinding", ",", "this", ".", "actualReceiverType", ",", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", ")", ";", "if", "(", "isStatic", ")", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "codegenBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "if", "(", "(", "this", ".", "receiver", ".", "isSuper", "(", ")", ")", "||", "codegenBinding", ".", "isPrivate", "(", ")", ")", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokespecial", ",", "codegenBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "if", "(", "constantPoolDeclaringClass", ".", "isInterface", "(", ")", ")", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokeinterface", ",", "codegenBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokevirtual", ",", "codegenBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "this", ".", "syntheticAccessor", ",", "null", ")", ";", "}", "if", "(", "this", ".", "valueCast", "!=", "null", ")", "codeStream", ".", "checkcast", "(", "this", ".", "valueCast", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "boolean", "isUnboxing", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ";", "if", "(", "isUnboxing", ")", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "switch", "(", "isUnboxing", "?", "postConversionType", "(", "currentScope", ")", ".", "id", ":", "codegenBinding", ".", "returnType", ".", "id", ")", "{", "case", "T_long", ":", "case", "T_double", ":", "codeStream", ".", "pop2", "(", ")", ";", "break", ";", "case", "T_void", ":", "break", ";", "default", ":", "codeStream", ".", "pop", "(", ")", ";", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "(", "int", ")", "(", "this", ".", "nameSourcePosition", ">>>", "32", ")", ")", ";", "}", "public", "TypeBinding", "[", "]", "genericTypeArguments", "(", ")", "{", "return", "this", ".", "genericTypeArguments", ";", "}", "public", "boolean", "isSuperAccess", "(", ")", "{", "return", "this", ".", "receiver", ".", "isSuper", "(", ")", ";", "}", "public", "boolean", "isTypeAccess", "(", ")", "{", "return", "this", ".", "receiver", "!=", "null", "&&", "this", ".", "receiver", ".", "isTypeReference", "(", ")", ";", "}", "public", "void", "manageSyntheticAccessIfNecessary", "(", "BlockScope", "currentScope", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", ")", "return", ";", "MethodBinding", "codegenBinding", "=", "this", ".", "binding", ".", "original", "(", ")", ";", "if", "(", "this", ".", "binding", ".", "isPrivate", "(", ")", ")", "{", "if", "(", "currentScope", ".", "enclosingSourceType", "(", ")", "!=", "codegenBinding", ".", "declaringClass", ")", "{", "this", ".", "syntheticAccessor", "=", "(", "(", "SourceTypeBinding", ")", "codegenBinding", ".", "declaringClass", ")", ".", "addSyntheticMethod", "(", "codegenBinding", ",", "false", ")", ";", "currentScope", ".", "problemReporter", "(", ")", ".", "needToEmulateMethodAccess", "(", "codegenBinding", ",", "this", ")", ";", "return", ";", "}", "}", "else", "if", "(", "this", ".", "receiver", "instanceof", "QualifiedSuperReference", ")", "{", "SourceTypeBinding", "destinationType", "=", "(", "SourceTypeBinding", ")", "(", "(", "(", "QualifiedSuperReference", ")", "this", ".", "receiver", ")", ".", "currentCompatibleType", ")", ";", "this", ".", "syntheticAccessor", "=", "destinationType", ".", "addSyntheticMethod", "(", "codegenBinding", ",", "isSuperAccess", "(", ")", ")", ";", "currentScope", ".", "problemReporter", "(", ")", ".", "needToEmulateMethodAccess", "(", "codegenBinding", ",", "this", ")", ";", "return", ";", "}", "else", "if", "(", "this", ".", "binding", ".", "isProtected", "(", ")", ")", "{", "SourceTypeBinding", "enclosingSourceType", ";", "if", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", "&&", "codegenBinding", ".", "declaringClass", ".", "getPackage", "(", ")", "!=", "(", "enclosingSourceType", "=", "currentScope", ".", "enclosingSourceType", "(", ")", ")", ".", "getPackage", "(", ")", ")", "{", "SourceTypeBinding", "currentCompatibleType", "=", "(", "SourceTypeBinding", ")", "enclosingSourceType", ".", "enclosingTypeAt", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ")", ";", "this", ".", "syntheticAccessor", "=", "currentCompatibleType", ".", "addSyntheticMethod", "(", "codegenBinding", ",", "isSuperAccess", "(", ")", ")", ";", "currentScope", ".", "problemReporter", "(", ")", ".", "needToEmulateMethodAccess", "(", "codegenBinding", ",", "this", ")", ";", "return", ";", "}", "}", "}", "public", "int", "nullStatus", "(", "FlowInfo", "flowInfo", ")", "{", "return", "FlowInfo", ".", "UNKNOWN", ";", "}", "public", "TypeBinding", "postConversionType", "(", "Scope", "scope", ")", "{", "TypeBinding", "convertedType", "=", "this", ".", "resolvedType", ";", "if", "(", "this", ".", "valueCast", "!=", "null", ")", "convertedType", "=", "this", ".", "valueCast", ";", "int", "runtimeType", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ";", "switch", "(", "runtimeType", ")", "{", "case", "T_boolean", ":", "convertedType", "=", "TypeBinding", ".", "BOOLEAN", ";", "break", ";", "case", "T_byte", ":", "convertedType", "=", "TypeBinding", ".", "BYTE", ";", "break", ";", "case", "T_short", ":", "convertedType", "=", "TypeBinding", ".", "SHORT", ";", "break", ";", "case", "T_char", ":", "convertedType", "=", "TypeBinding", ".", "CHAR", ";", "break", ";", "case", "T_int", ":", "convertedType", "=", "TypeBinding", ".", "INT", ";", "break", ";", "case", "T_float", ":", "convertedType", "=", "TypeBinding", ".", "FLOAT", ";", "break", ";", "case", "T_long", ":", "convertedType", "=", "TypeBinding", ".", "LONG", ";", "break", ";", "case", "T_double", ":", "convertedType", "=", "TypeBinding", ".", "DOUBLE", ";", "break", ";", "default", ":", "}", "if", "(", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "BOXING", ")", "!=", "0", ")", "{", "convertedType", "=", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "convertedType", ")", ";", "}", "return", "convertedType", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "if", "(", "!", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", ")", "this", ".", "receiver", ".", "printExpression", "(", "0", ",", "output", ")", ".", "append", "(", "'.'", ")", ";", "if", "(", "this", ".", "typeArguments", "!=", "null", ")", "{", "output", ".", "append", "(", "'<'", ")", ";", "int", "max", "=", "this", ".", "typeArguments", ".", "length", "-", "1", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "max", ";", "j", "++", ")", "{", "this", ".", "typeArguments", "[", "j", "]", ".", "print", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "\",", "\"", ")", ";", "}", "this", ".", "typeArguments", "[", "max", "]", ".", "print", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "'>'", ")", ";", "}", "output", ".", "append", "(", "this", ".", "selector", ")", ".", "append", "(", "'('", ")", ";", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "arguments", ".", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "output", ".", "append", "(", "\",", "\"", ")", ";", "this", ".", "arguments", "[", "i", "]", ".", "printExpression", "(", "0", ",", "output", ")", ";", "}", "}", "return", "output", ".", "append", "(", "')'", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "boolean", "receiverCast", "=", "false", ",", "argsContainCast", "=", "false", ";", "if", "(", "this", ".", "receiver", "instanceof", "CastExpression", ")", "{", "this", ".", "receiver", ".", "bits", "|=", "ASTNode", ".", "DisableUnnecessaryCastCheck", ";", "receiverCast", "=", "true", ";", "}", "this", ".", "actualReceiverType", "=", "this", ".", "receiver", ".", "resolveType", "(", "scope", ")", ";", "boolean", "receiverIsType", "=", "this", ".", "receiver", "instanceof", "NameReference", "&&", "(", "(", "(", "NameReference", ")", "this", ".", "receiver", ")", ".", "bits", "&", "Binding", ".", "TYPE", ")", "!=", "0", ";", "if", "(", "receiverCast", "&&", "this", ".", "actualReceiverType", "!=", "null", ")", "{", "if", "(", "(", "(", "CastExpression", ")", "this", ".", "receiver", ")", ".", "expression", ".", "resolvedType", "==", "this", ".", "actualReceiverType", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "(", "CastExpression", ")", "this", ".", "receiver", ")", ";", "}", "}", "if", "(", "this", ".", "typeArguments", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "typeArguments", ".", "length", ";", "boolean", "argHasError", "=", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ";", "this", ".", "genericTypeArguments", "=", "new", "TypeBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeReference", "typeReference", "=", "this", ".", "typeArguments", "[", "i", "]", ";", "if", "(", "(", "this", ".", "genericTypeArguments", "[", "i", "]", "=", "typeReference", ".", "resolveType", "(", "scope", ",", "true", ")", ")", "==", "null", ")", "{", "argHasError", "=", "true", ";", "}", "if", "(", "argHasError", "&&", "typeReference", "instanceof", "Wildcard", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "illegalUsageOfWildcard", "(", "typeReference", ")", ";", "}", "}", "if", "(", "argHasError", ")", "{", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "arguments", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "this", ".", "arguments", "[", "i", "]", ".", "resolveType", "(", "scope", ")", ";", "}", "}", "return", "null", ";", "}", "}", "TypeBinding", "[", "]", "argumentTypes", "=", "Binding", ".", "NO_PARAMETERS", ";", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "boolean", "argHasError", "=", "false", ";", "int", "length", "=", "this", ".", "arguments", ".", "length", ";", "argumentTypes", "=", "new", "TypeBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "Expression", "argument", "=", "this", ".", "arguments", "[", "i", "]", ";", "if", "(", "argument", "instanceof", "CastExpression", ")", "{", "argument", ".", "bits", "|=", "ASTNode", ".", "DisableUnnecessaryCastCheck", ";", "argsContainCast", "=", "true", ";", "}", "if", "(", "(", "argumentTypes", "[", "i", "]", "=", "argument", ".", "resolveType", "(", "scope", ")", ")", "==", "null", ")", "{", "argHasError", "=", "true", ";", "}", "}", "if", "(", "argHasError", ")", "{", "if", "(", "this", ".", "actualReceiverType", "instanceof", "ReferenceBinding", ")", "{", "TypeBinding", "[", "]", "pseudoArgs", "=", "new", "TypeBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "length", ";", "--", "i", ">=", "0", ";", ")", "pseudoArgs", "[", "i", "]", "=", "argumentTypes", "[", "i", "]", "==", "null", "?", "TypeBinding", ".", "NULL", ":", "argumentTypes", "[", "i", "]", ";", "this", ".", "binding", "=", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", "?", "scope", ".", "getImplicitMethod", "(", "this", ".", "selector", ",", "pseudoArgs", ",", "this", ")", ":", "scope", ".", "findMethod", "(", "(", "ReferenceBinding", ")", "this", ".", "actualReceiverType", ",", "this", ".", "selector", ",", "pseudoArgs", ",", "this", ")", ";", "if", "(", "this", ".", "binding", "!=", "null", "&&", "!", "this", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "MethodBinding", "closestMatch", "=", "(", "(", "ProblemMethodBinding", ")", "this", ".", "binding", ")", ".", "closestMatch", ";", "if", "(", "closestMatch", "!=", "null", ")", "{", "if", "(", "closestMatch", ".", "original", "(", ")", ".", "typeVariables", "!=", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "closestMatch", "=", "scope", ".", "environment", "(", ")", ".", "createParameterizedGenericMethod", "(", "closestMatch", ".", "original", "(", ")", ",", "(", "RawTypeBinding", ")", "null", ")", ";", "}", "this", ".", "binding", "=", "closestMatch", ";", "MethodBinding", "closestMatchOriginal", "=", "closestMatch", ".", "original", "(", ")", ";", "if", "(", "closestMatchOriginal", ".", "isOrEnclosedByPrivateType", "(", ")", "&&", "!", "scope", ".", "isDefinedInMethod", "(", "closestMatchOriginal", ")", ")", "{", "closestMatchOriginal", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccLocallyUsed", ";", "}", "}", "}", "}", "return", "null", ";", "}", "}", "if", "(", "this", ".", "actualReceiverType", "==", "null", ")", "{", "return", "null", ";", "}", "if", "(", "this", ".", "actualReceiverType", ".", "isBaseType", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "errorNoMethodFor", "(", "this", ",", "this", ".", "actualReceiverType", ",", "argumentTypes", ")", ";", "return", "null", ";", "}", "this", ".", "binding", "=", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", "?", "scope", ".", "getImplicitMethod", "(", "this", ".", "selector", ",", "argumentTypes", ",", "this", ")", ":", "scope", ".", "getMethod", "(", "this", ".", "actualReceiverType", ",", "this", ".", "selector", ",", "argumentTypes", ",", "this", ")", ";", "if", "(", "!", "this", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "if", "(", "this", ".", "binding", ".", "declaringClass", "==", "null", ")", "{", "if", "(", "this", ".", "actualReceiverType", "instanceof", "ReferenceBinding", ")", "{", "this", ".", "binding", ".", "declaringClass", "=", "(", "ReferenceBinding", ")", "this", ".", "actualReceiverType", ";", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "errorNoMethodFor", "(", "this", ",", "this", ".", "actualReceiverType", ",", "argumentTypes", ")", ";", "return", "null", ";", "}", "}", "ReferenceBinding", "declaringClass", "=", "this", ".", "binding", ".", "declaringClass", ";", "boolean", "avoidSecondary", "=", "declaringClass", "!=", "null", "&&", "declaringClass", ".", "isAnonymousType", "(", ")", "&&", "declaringClass", ".", "superclass", "(", ")", "instanceof", "MissingTypeBinding", ";", "if", "(", "!", "avoidSecondary", ")", "scope", ".", "problemReporter", "(", ")", ".", "invalidMethod", "(", "this", ",", "this", ".", "binding", ")", ";", "MethodBinding", "closestMatch", "=", "(", "(", "ProblemMethodBinding", ")", "this", ".", "binding", ")", ".", "closestMatch", ";", "switch", "(", "this", ".", "binding", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "Ambiguous", ":", "break", ";", "case", "ProblemReasons", ".", "NotVisible", ":", "case", "ProblemReasons", ".", "NonStaticReferenceInConstructorInvocation", ":", "case", "ProblemReasons", ".", "NonStaticReferenceInStaticContext", ":", "case", "ProblemReasons", ".", "ReceiverTypeNotVisible", ":", "case", "ProblemReasons", ".", "ParameterBoundMismatch", ":", "if", "(", "closestMatch", "!=", "null", ")", "this", ".", "resolvedType", "=", "closestMatch", ".", "returnType", ";", "break", ";", "}", "if", "(", "closestMatch", "!=", "null", ")", "{", "this", ".", "binding", "=", "closestMatch", ";", "MethodBinding", "closestMatchOriginal", "=", "closestMatch", ".", "original", "(", ")", ";", "if", "(", "closestMatchOriginal", ".", "isOrEnclosedByPrivateType", "(", ")", "&&", "!", "scope", ".", "isDefinedInMethod", "(", "closestMatchOriginal", ")", ")", "{", "closestMatchOriginal", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccLocallyUsed", ";", "}", "}", "return", "(", "this", ".", "resolvedType", "!=", "null", "&&", "(", "this", ".", "resolvedType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "==", "0", ")", "?", "this", ".", "resolvedType", ":", "null", ";", "}", "if", "(", "(", "this", ".", "binding", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "missingTypeInMethod", "(", "this", ",", "this", ".", "binding", ")", ";", "}", "final", "CompilerOptions", "compilerOptions", "=", "scope", ".", "compilerOptions", "(", ")", ";", "if", "(", "!", "this", ".", "binding", ".", "isStatic", "(", ")", ")", "{", "if", "(", "receiverIsType", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "mustUseAStaticMethod", "(", "this", ",", "this", ".", "binding", ")", ";", "if", "(", "this", ".", "actualReceiverType", ".", "isRawType", "(", ")", "&&", "(", "this", ".", "receiver", ".", "bits", "&", "ASTNode", ".", "IgnoreRawTypeCheck", ")", "==", "0", "&&", "compilerOptions", ".", "getSeverity", "(", "CompilerOptions", ".", "RawTypeReference", ")", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "rawTypeReference", "(", "this", ".", "receiver", ",", "this", ".", "actualReceiverType", ")", ";", "}", "}", "else", "{", "TypeBinding", "oldReceiverType", "=", "this", ".", "actualReceiverType", ";", "this", ".", "actualReceiverType", "=", "this", ".", "actualReceiverType", ".", "getErasureCompatibleType", "(", "this", ".", "binding", ".", "declaringClass", ")", ";", "this", ".", "receiver", ".", "computeConversion", "(", "scope", ",", "this", ".", "actualReceiverType", ",", "this", ".", "actualReceiverType", ")", ";", "if", "(", "this", ".", "actualReceiverType", "!=", "oldReceiverType", "&&", "this", ".", "receiver", ".", "postConversionType", "(", "scope", ")", "!=", "this", ".", "actualReceiverType", ")", "{", "this", ".", "bits", "|=", "NeedReceiverGenericCast", ";", "}", "}", "}", "else", "{", "if", "(", "!", "(", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", "||", "this", ".", "receiver", ".", "isSuper", "(", ")", "||", "receiverIsType", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "nonStaticAccessToStaticMethod", "(", "this", ",", "this", ".", "binding", ")", ";", "}", "if", "(", "!", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", "&&", "this", ".", "binding", ".", "declaringClass", "!=", "this", ".", "actualReceiverType", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "indirectAccessToStaticMethod", "(", "this", ",", "this", ".", "binding", ")", ";", "}", "}", "if", "(", "checkInvocationArguments", "(", "scope", ",", "this", ".", "receiver", ",", "this", ".", "actualReceiverType", ",", "this", ".", "binding", ",", "this", ".", "arguments", ",", "argumentTypes", ",", "argsContainCast", ",", "this", ")", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "Unchecked", ";", "}", "if", "(", "this", ".", "binding", ".", "isAbstract", "(", ")", ")", "{", "if", "(", "this", ".", "receiver", ".", "isSuper", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotDireclyInvokeAbstractMethod", "(", "this", ",", "this", ".", "binding", ")", ";", "}", "}", "if", "(", "isMethodUseDeprecated", "(", "this", ".", "binding", ",", "scope", ",", "true", ")", ")", "scope", ".", "problemReporter", "(", ")", ".", "deprecatedMethod", "(", "this", ".", "binding", ",", "this", ")", ";", "if", "(", "this", ".", "binding", "==", "scope", ".", "environment", "(", ")", ".", "arrayClone", "&&", "compilerOptions", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "this", ".", "resolvedType", "=", "this", ".", "actualReceiverType", ";", "}", "else", "{", "TypeBinding", "returnType", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "Unchecked", ")", "!=", "0", "&&", "this", ".", "genericTypeArguments", "==", "null", ")", "{", "returnType", "=", "this", ".", "binding", ".", "returnType", ";", "if", "(", "returnType", "!=", "null", ")", "{", "returnType", "=", "scope", ".", "environment", "(", ")", ".", "convertToRawType", "(", "returnType", ".", "erasure", "(", ")", ",", "true", ")", ";", "}", "}", "else", "{", "returnType", "=", "this", ".", "binding", ".", "returnType", ";", "if", "(", "returnType", "!=", "null", ")", "{", "returnType", "=", "returnType", ".", "capture", "(", "scope", ",", "this", ".", "sourceEnd", ")", ";", "}", "}", "this", ".", "resolvedType", "=", "returnType", ";", "}", "if", "(", "this", ".", "receiver", ".", "isSuper", "(", ")", "&&", "compilerOptions", ".", "getSeverity", "(", "CompilerOptions", ".", "OverridingMethodWithoutSuperInvocation", ")", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "final", "ReferenceContext", "referenceContext", "=", "scope", ".", "methodScope", "(", ")", ".", "referenceContext", ";", "if", "(", "referenceContext", "instanceof", "AbstractMethodDeclaration", ")", "{", "final", "AbstractMethodDeclaration", "abstractMethodDeclaration", "=", "(", "AbstractMethodDeclaration", ")", "referenceContext", ";", "MethodBinding", "enclosingMethodBinding", "=", "abstractMethodDeclaration", ".", "binding", ";", "if", "(", "enclosingMethodBinding", ".", "isOverriding", "(", ")", "&&", "CharOperation", ".", "equals", "(", "this", ".", "binding", ".", "selector", ",", "enclosingMethodBinding", ".", "selector", ")", "&&", "this", ".", "binding", ".", "areParametersEqual", "(", "enclosingMethodBinding", ")", ")", "{", "abstractMethodDeclaration", ".", "bits", "|=", "ASTNode", ".", "OverridingMethodWithSupercall", ";", "}", "}", "}", "if", "(", "this", ".", "typeArguments", "!=", "null", "&&", "this", ".", "binding", ".", "original", "(", ")", ".", "typeVariables", "==", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryTypeArgumentsForMethodInvocation", "(", "this", ".", "binding", ",", "this", ".", "genericTypeArguments", ",", "this", ".", "typeArguments", ")", ";", "}", "return", "(", "this", ".", "resolvedType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "==", "0", "?", "this", ".", "resolvedType", ":", "null", ";", "}", "public", "void", "setActualReceiverType", "(", "ReferenceBinding", "receiverType", ")", "{", "if", "(", "receiverType", "==", "null", ")", "return", ";", "this", ".", "actualReceiverType", "=", "receiverType", ";", "}", "public", "void", "setDepth", "(", "int", "depth", ")", "{", "this", ".", "bits", "&=", "~", "ASTNode", ".", "DepthMASK", ";", "if", "(", "depth", ">", "0", ")", "{", "this", ".", "bits", "|=", "(", "depth", "&", "0xFF", ")", "<<", "ASTNode", ".", "DepthSHIFT", ";", "}", "}", "public", "void", "setExpectedType", "(", "TypeBinding", "expectedType", ")", "{", "this", ".", "expectedType", "=", "expectedType", ";", "}", "public", "void", "setFieldIndex", "(", "int", "depth", ")", "{", "}", "public", "TypeBinding", "expectedType", "(", ")", "{", "return", "this", ".", "expectedType", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "this", ".", "receiver", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "if", "(", "this", ".", "typeArguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "typeArgumentsLength", "=", "this", ".", "typeArguments", ".", "length", ";", "i", "<", "typeArgumentsLength", ";", "i", "++", ")", "{", "this", ".", "typeArguments", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "}", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "int", "argumentsLength", "=", "this", ".", "arguments", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "argumentsLength", ";", "i", "++", ")", "this", ".", "arguments", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
5,687
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "CompilationResult", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "ExceptionHandlingFlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "InitializationFlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "CompilerOptions", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ClassScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ExtraCompilerModifiers", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TagBits", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "Parser", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "AbortMethod", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "ProblemSeverities", ";", "public", "class", "MethodDeclaration", "extends", "AbstractMethodDeclaration", "{", "public", "TypeReference", "returnType", ";", "public", "TypeParameter", "[", "]", "typeParameters", ";", "public", "MethodDeclaration", "(", "CompilationResult", "compilationResult", ")", "{", "super", "(", "compilationResult", ")", ";", "}", "public", "void", "analyseCode", "(", "ClassScope", "classScope", ",", "InitializationFlowContext", "initializationContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "return", ";", "try", "{", "if", "(", "this", ".", "binding", "==", "null", ")", "return", ";", "if", "(", "!", "this", ".", "binding", ".", "isUsed", "(", ")", "&&", "!", "this", ".", "binding", ".", "isAbstract", "(", ")", ")", "{", "if", "(", "this", ".", "binding", ".", "isPrivate", "(", ")", "||", "(", "(", "(", "this", ".", "binding", ".", "modifiers", "&", "(", "ExtraCompilerModifiers", ".", "AccOverriding", "|", "ExtraCompilerModifiers", ".", "AccImplementing", ")", ")", "==", "0", ")", "&&", "this", ".", "binding", ".", "isOrEnclosedByPrivateType", "(", ")", ")", ")", "{", "if", "(", "!", "classScope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ".", "hasSyntaxError", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "unusedPrivateMethod", "(", "this", ")", ";", "}", "}", "}", "if", "(", "this", ".", "binding", ".", "declaringClass", ".", "isEnum", "(", ")", "&&", "(", "this", ".", "selector", "==", "TypeConstants", ".", "VALUES", "||", "this", ".", "selector", "==", "TypeConstants", ".", "VALUEOF", ")", ")", "return", ";", "if", "(", "this", ".", "binding", ".", "isAbstract", "(", ")", "||", "this", ".", "binding", ".", "isNative", "(", ")", ")", "return", ";", "ExceptionHandlingFlowContext", "methodContext", "=", "new", "ExceptionHandlingFlowContext", "(", "initializationContext", ",", "this", ",", "this", ".", "binding", ".", "thrownExceptions", ",", "null", ",", "this", ".", "scope", ",", "FlowInfo", ".", "DEAD_END", ")", ";", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "arguments", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "flowInfo", ".", "markAsDefinitelyAssigned", "(", "this", ".", "arguments", "[", "i", "]", ".", "binding", ")", ";", "}", "}", "if", "(", "this", ".", "statements", "!=", "null", ")", "{", "int", "complaintLevel", "=", "(", "flowInfo", ".", "reachMode", "(", ")", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", "?", "Statement", ".", "NOT_COMPLAINED", ":", "Statement", ".", "COMPLAINED_FAKE_REACHABLE", ";", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "statements", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "Statement", "stat", "=", "this", ".", "statements", "[", "i", "]", ";", "if", "(", "(", "complaintLevel", "=", "stat", ".", "complainIfUnreachable", "(", "flowInfo", ",", "this", ".", "scope", ",", "complaintLevel", ")", ")", "<", "Statement", ".", "COMPLAINED_UNREACHABLE", ")", "{", "flowInfo", "=", "stat", ".", "analyseCode", "(", "this", ".", "scope", ",", "methodContext", ",", "flowInfo", ")", ";", "}", "}", "}", "TypeBinding", "returnTypeBinding", "=", "this", ".", "binding", ".", "returnType", ";", "if", "(", "(", "returnTypeBinding", "==", "TypeBinding", ".", "VOID", ")", "||", "isAbstract", "(", ")", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "NeedFreeReturn", ";", "}", "}", "else", "{", "if", "(", "flowInfo", "!=", "FlowInfo", ".", "DEAD_END", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "shouldReturn", "(", "returnTypeBinding", ",", "this", ")", ";", "}", "}", "methodContext", ".", "complainIfUnusedExceptionHandlers", "(", "this", ")", ";", "this", ".", "scope", ".", "checkUnusedParameters", "(", "this", ".", "binding", ")", ";", "}", "catch", "(", "AbortMethod", "e", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "}", "}", "public", "boolean", "isMethod", "(", ")", "{", "return", "true", ";", "}", "public", "void", "parseStatements", "(", "Parser", "parser", ",", "CompilationUnitDeclaration", "unit", ")", "{", "parser", ".", "parse", "(", "this", ",", "unit", ")", ";", "}", "public", "StringBuffer", "printReturnType", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "if", "(", "this", ".", "returnType", "==", "null", ")", "return", "output", ";", "return", "this", ".", "returnType", ".", "printExpression", "(", "0", ",", "output", ")", ".", "append", "(", "'", "'", ")", ";", "}", "public", "void", "resolveStatements", "(", ")", "{", "if", "(", "this", ".", "returnType", "!=", "null", "&&", "this", ".", "binding", "!=", "null", ")", "{", "this", ".", "returnType", ".", "resolvedType", "=", "this", ".", "binding", ".", "returnType", ";", "}", "if", "(", "CharOperation", ".", "equals", "(", "this", ".", "scope", ".", "enclosingSourceType", "(", ")", ".", "sourceName", ",", "this", ".", "selector", ")", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "methodWithConstructorName", "(", "this", ")", ";", "}", "if", "(", "this", ".", "typeParameters", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "typeParameters", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "typeParameters", "[", "i", "]", ".", "resolve", "(", "this", ".", "scope", ")", ";", "}", "}", "final", "CompilerOptions", "compilerOptions", "=", "this", ".", "scope", ".", "compilerOptions", "(", ")", ";", "checkOverride", ":", "{", "if", "(", "this", ".", "binding", "==", "null", ")", "break", "checkOverride", ";", "long", "complianceLevel", "=", "compilerOptions", ".", "complianceLevel", ";", "if", "(", "complianceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "break", "checkOverride", ";", "int", "bindingModifiers", "=", "this", ".", "binding", ".", "modifiers", ";", "boolean", "hasOverrideAnnotation", "=", "(", "this", ".", "binding", ".", "tagBits", "&", "TagBits", ".", "AnnotationOverride", ")", "!=", "0", ";", "boolean", "hasUnresolvedArguments", "=", "(", "this", ".", "binding", ".", "tagBits", "&", "TagBits", ".", "HasUnresolvedArguments", ")", "!=", "0", ";", "if", "(", "hasOverrideAnnotation", "&&", "!", "hasUnresolvedArguments", ")", "{", "if", "(", "(", "bindingModifiers", "&", "(", "ClassFileConstants", ".", "AccStatic", "|", "ExtraCompilerModifiers", ".", "AccOverriding", ")", ")", "==", "ExtraCompilerModifiers", ".", "AccOverriding", ")", "break", "checkOverride", ";", "if", "(", "complianceLevel", ">=", "ClassFileConstants", ".", "JDK1_6", "&&", "(", "(", "bindingModifiers", "&", "(", "ClassFileConstants", ".", "AccStatic", "|", "ExtraCompilerModifiers", ".", "AccImplementing", ")", ")", "==", "ExtraCompilerModifiers", ".", "AccImplementing", ")", ")", "break", "checkOverride", ";", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "methodMustOverride", "(", "this", ",", "complianceLevel", ")", ";", "}", "else", "{", "if", "(", "!", "this", ".", "binding", ".", "declaringClass", ".", "isInterface", "(", ")", ")", "{", "if", "(", "(", "bindingModifiers", "&", "(", "ClassFileConstants", ".", "AccStatic", "|", "ExtraCompilerModifiers", ".", "AccOverriding", ")", ")", "==", "ExtraCompilerModifiers", ".", "AccOverriding", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "missingOverrideAnnotation", "(", "this", ")", ";", "}", "else", "{", "if", "(", "complianceLevel", ">=", "ClassFileConstants", ".", "JDK1_6", "&&", "compilerOptions", ".", "reportMissingOverrideAnnotationForInterfaceMethodImplementation", "&&", "this", ".", "binding", ".", "isImplementing", "(", ")", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "missingOverrideAnnotationForInterfaceMethodImplementation", "(", "this", ")", ";", "}", "}", "}", "else", "{", "if", "(", "complianceLevel", ">=", "ClassFileConstants", ".", "JDK1_6", "&&", "compilerOptions", ".", "reportMissingOverrideAnnotationForInterfaceMethodImplementation", "&&", "(", "(", "(", "bindingModifiers", "&", "(", "ClassFileConstants", ".", "AccStatic", "|", "ExtraCompilerModifiers", ".", "AccOverriding", ")", ")", "==", "ExtraCompilerModifiers", ".", "AccOverriding", ")", "||", "this", ".", "binding", ".", "isImplementing", "(", ")", ")", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "missingOverrideAnnotationForInterfaceMethodImplementation", "(", "this", ")", ";", "}", "}", "}", "}", "switch", "(", "TypeDeclaration", ".", "kind", "(", "this", ".", "scope", ".", "referenceType", "(", ")", ".", "modifiers", ")", ")", "{", "case", "TypeDeclaration", ".", "ENUM_DECL", ":", "if", "(", "this", ".", "selector", "==", "TypeConstants", ".", "VALUES", ")", "break", ";", "if", "(", "this", ".", "selector", "==", "TypeConstants", ".", "VALUEOF", ")", "break", ";", "case", "TypeDeclaration", ".", "CLASS_DECL", ":", "if", "(", "(", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccSemicolonBody", ")", "!=", "0", ")", "{", "if", "(", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccNative", ")", "==", "0", ")", "if", "(", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccAbstract", ")", "==", "0", ")", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "methodNeedBody", "(", "this", ")", ";", "}", "else", "{", "if", "(", "(", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccNative", ")", "!=", "0", ")", "||", "(", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccAbstract", ")", "!=", "0", ")", ")", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "methodNeedingNoBody", "(", "this", ")", ";", "}", "}", "super", ".", "resolveStatements", "(", ")", ";", "if", "(", "compilerOptions", ".", "getSeverity", "(", "CompilerOptions", ".", "OverridingMethodWithoutSuperInvocation", ")", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "if", "(", "this", ".", "binding", "!=", "null", ")", "{", "int", "bindingModifiers", "=", "this", ".", "binding", ".", "modifiers", ";", "if", "(", "(", "bindingModifiers", "&", "(", "ExtraCompilerModifiers", ".", "AccOverriding", "|", "ExtraCompilerModifiers", ".", "AccImplementing", ")", ")", "==", "ExtraCompilerModifiers", ".", "AccOverriding", "&&", "(", "this", ".", "bits", "&", "ASTNode", ".", "OverridingMethodWithSupercall", ")", "==", "0", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "overridesMethodWithoutSuperInvocation", "(", "this", ".", "binding", ")", ";", "}", "}", "}", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "classScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "classScope", ")", ")", "{", "if", "(", "this", ".", "javadoc", "!=", "null", ")", "{", "this", ".", "javadoc", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "annotations", "!=", "null", ")", "{", "int", "annotationsLength", "=", "this", ".", "annotations", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotationsLength", ";", "i", "++", ")", "this", ".", "annotations", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "typeParameters", "!=", "null", ")", "{", "int", "typeParametersLength", "=", "this", ".", "typeParameters", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "typeParametersLength", ";", "i", "++", ")", "{", "this", ".", "typeParameters", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "returnType", "!=", "null", ")", "this", ".", "returnType", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "int", "argumentLength", "=", "this", ".", "arguments", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "argumentLength", ";", "i", "++", ")", "this", ".", "arguments", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "thrownExceptions", "!=", "null", ")", "{", "int", "thrownExceptionsLength", "=", "this", ".", "thrownExceptions", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "thrownExceptionsLength", ";", "i", "++", ")", "this", ".", "thrownExceptions", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "statements", "!=", "null", ")", "{", "int", "statementsLength", "=", "this", ".", "statements", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "statementsLength", ";", "i", "++", ")", "this", ".", "statements", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "classScope", ")", ";", "}", "public", "TypeParameter", "[", "]", "typeParameters", "(", ")", "{", "return", "this", ".", "typeParameters", ";", "}", "}", "</s>" ]
5,688
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "JavadocFieldReference", "extends", "FieldReference", "{", "public", "int", "tagSourceStart", ",", "tagSourceEnd", ";", "public", "int", "tagValue", ";", "public", "MethodBinding", "methodBinding", ";", "public", "JavadocFieldReference", "(", "char", "[", "]", "source", ",", "long", "pos", ")", "{", "super", "(", "source", ",", "pos", ")", ";", "this", ".", "bits", "|=", "InsideJavadoc", ";", "}", "protected", "TypeBinding", "internalResolveType", "(", "Scope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "this", ".", "receiver", "==", "null", ")", "{", "this", ".", "actualReceiverType", "=", "scope", ".", "enclosingReceiverType", "(", ")", ";", "}", "else", "if", "(", "scope", ".", "kind", "==", "Scope", ".", "CLASS_SCOPE", ")", "{", "this", ".", "actualReceiverType", "=", "this", ".", "receiver", ".", "resolveType", "(", "(", "ClassScope", ")", "scope", ")", ";", "}", "else", "{", "this", ".", "actualReceiverType", "=", "this", ".", "receiver", ".", "resolveType", "(", "(", "BlockScope", ")", "scope", ")", ";", "}", "if", "(", "this", ".", "actualReceiverType", "==", "null", ")", "{", "return", "null", ";", "}", "Binding", "fieldBinding", "=", "(", "this", ".", "receiver", "!=", "null", "&&", "this", ".", "receiver", ".", "isThis", "(", ")", ")", "?", "scope", ".", "classScope", "(", ")", ".", "getBinding", "(", "this", ".", "token", ",", "this", ".", "bits", "&", "RestrictiveFlagMASK", ",", "this", ",", "true", ")", ":", "scope", ".", "getField", "(", "this", ".", "actualReceiverType", ",", "this", ".", "token", ",", "this", ")", ";", "if", "(", "!", "fieldBinding", ".", "isValidBinding", "(", ")", ")", "{", "switch", "(", "fieldBinding", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NonStaticReferenceInConstructorInvocation", ":", "case", "ProblemReasons", ".", "NonStaticReferenceInStaticContext", ":", "case", "ProblemReasons", ".", "InheritedNameHidesEnclosingName", ":", "FieldBinding", "closestMatch", "=", "(", "(", "ProblemFieldBinding", ")", "fieldBinding", ")", ".", "closestMatch", ";", "if", "(", "closestMatch", "!=", "null", ")", "{", "fieldBinding", "=", "closestMatch", ";", "}", "}", "}", "if", "(", "!", "fieldBinding", ".", "isValidBinding", "(", ")", "||", "!", "(", "fieldBinding", "instanceof", "FieldBinding", ")", ")", "{", "if", "(", "this", ".", "receiver", ".", "resolvedType", "instanceof", "ProblemReferenceBinding", ")", "{", "return", "null", ";", "}", "if", "(", "this", ".", "actualReceiverType", "instanceof", "ReferenceBinding", ")", "{", "ReferenceBinding", "refBinding", "=", "(", "ReferenceBinding", ")", "this", ".", "actualReceiverType", ";", "MethodBinding", "possibleMethod", "=", "this", ".", "receiver", ".", "isThis", "(", ")", "?", "scope", ".", "getImplicitMethod", "(", "this", ".", "token", ",", "Binding", ".", "NO_TYPES", ",", "this", ")", ":", "scope", ".", "getMethod", "(", "refBinding", ",", "this", ".", "token", ",", "Binding", ".", "NO_TYPES", ",", "this", ")", ";", "if", "(", "possibleMethod", ".", "isValidBinding", "(", ")", ")", "{", "this", ".", "methodBinding", "=", "possibleMethod", ";", "}", "else", "{", "ProblemMethodBinding", "problemMethodBinding", "=", "(", "ProblemMethodBinding", ")", "possibleMethod", ";", "if", "(", "problemMethodBinding", ".", "closestMatch", "==", "null", ")", "{", "if", "(", "fieldBinding", ".", "isValidBinding", "(", ")", ")", "{", "fieldBinding", "=", "new", "ProblemFieldBinding", "(", "refBinding", ",", "fieldBinding", ".", "readableName", "(", ")", ",", "ProblemReasons", ".", "NotFound", ")", ";", "}", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidField", "(", "this", ",", "fieldBinding", ",", "this", ".", "actualReceiverType", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "else", "{", "this", ".", "methodBinding", "=", "problemMethodBinding", ".", "closestMatch", ";", "}", "}", "}", "return", "null", ";", "}", "this", ".", "binding", "=", "(", "FieldBinding", ")", "fieldBinding", ";", "if", "(", "isFieldUseDeprecated", "(", "this", ".", "binding", ",", "scope", ",", "(", "this", ".", "bits", "&", "IsStrictlyAssigned", ")", "!=", "0", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocDeprecatedField", "(", "this", ".", "binding", ",", "this", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "return", "this", ".", "resolvedType", "=", "this", ".", "binding", ".", "type", ";", "}", "public", "boolean", "isSuperAccess", "(", ")", "{", "return", "(", "this", ".", "bits", "&", "ASTNode", ".", "SuperAccess", ")", "!=", "0", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "if", "(", "this", ".", "receiver", "!=", "null", ")", "{", "this", ".", "receiver", ".", "printExpression", "(", "0", ",", "output", ")", ";", "}", "output", ".", "append", "(", "'#'", ")", ".", "append", "(", "this", ".", "token", ")", ";", "return", "output", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "return", "internalResolveType", "(", "scope", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "ClassScope", "scope", ")", "{", "return", "internalResolveType", "(", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "receiver", "!=", "null", ")", "{", "this", ".", "receiver", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "receiver", "!=", "null", ")", "{", "this", ".", "receiver", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,689
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "JavadocArgumentExpression", "extends", "Expression", "{", "public", "char", "[", "]", "token", ";", "public", "Argument", "argument", ";", "public", "JavadocArgumentExpression", "(", "char", "[", "]", "name", ",", "int", "startPos", ",", "int", "endPos", ",", "TypeReference", "typeRef", ")", "{", "this", ".", "token", "=", "name", ";", "this", ".", "sourceStart", "=", "startPos", ";", "this", ".", "sourceEnd", "=", "endPos", ";", "long", "pos", "=", "(", "(", "(", "long", ")", "startPos", ")", "<<", "32", ")", "+", "endPos", ";", "this", ".", "argument", "=", "new", "Argument", "(", "name", ",", "pos", ",", "typeRef", ",", "ClassFileConstants", ".", "AccDefault", ")", ";", "this", ".", "bits", "|=", "InsideJavadoc", ";", "}", "private", "TypeBinding", "internalResolveType", "(", "Scope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "this", ".", "resolvedType", "!=", "null", ")", "return", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", "?", "this", ".", "resolvedType", ":", "null", ";", "if", "(", "this", ".", "argument", "!=", "null", ")", "{", "TypeReference", "typeRef", "=", "this", ".", "argument", ".", "type", ";", "if", "(", "typeRef", "!=", "null", ")", "{", "this", ".", "resolvedType", "=", "typeRef", ".", "getTypeBinding", "(", "scope", ")", ";", "typeRef", ".", "resolvedType", "=", "this", ".", "resolvedType", ";", "if", "(", "typeRef", "instanceof", "SingleTypeReference", "&&", "this", ".", "resolvedType", ".", "leafComponentType", "(", ")", ".", "enclosingType", "(", ")", "!=", "null", "&&", "scope", ".", "compilerOptions", "(", ")", ".", "complianceLevel", "<=", "ClassFileConstants", ".", "JDK1_4", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidMemberTypeQualification", "(", "this", ".", "sourceStart", ",", "this", ".", "sourceEnd", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "else", "if", "(", "typeRef", "instanceof", "QualifiedTypeReference", ")", "{", "TypeBinding", "enclosingType", "=", "this", ".", "resolvedType", ".", "leafComponentType", "(", ")", ".", "enclosingType", "(", ")", ";", "if", "(", "enclosingType", "!=", "null", ")", "{", "int", "compoundLength", "=", "2", ";", "while", "(", "(", "enclosingType", "=", "enclosingType", ".", "enclosingType", "(", ")", ")", "!=", "null", ")", "compoundLength", "++", ";", "int", "typeNameLength", "=", "typeRef", ".", "getTypeName", "(", ")", ".", "length", ";", "if", "(", "typeNameLength", "!=", "compoundLength", "&&", "typeNameLength", "!=", "(", "compoundLength", "+", "this", ".", "resolvedType", ".", "getPackage", "(", ")", ".", "compoundName", ".", "length", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidMemberTypeQualification", "(", "typeRef", ".", "sourceStart", ",", "typeRef", ".", "sourceEnd", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "}", "}", "if", "(", "!", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidType", "(", "typeRef", ",", "this", ".", "resolvedType", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "return", "null", ";", "}", "if", "(", "isTypeUseDeprecated", "(", "this", ".", "resolvedType", ",", "scope", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocDeprecatedType", "(", "this", ".", "resolvedType", ",", "typeRef", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "return", "this", ".", "resolvedType", "=", "scope", ".", "environment", "(", ")", ".", "convertToRawType", "(", "this", ".", "resolvedType", ",", "true", ")", ";", "}", "}", "return", "null", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "if", "(", "this", ".", "argument", "==", "null", ")", "{", "if", "(", "this", ".", "token", "!=", "null", ")", "{", "output", ".", "append", "(", "this", ".", "token", ")", ";", "}", "}", "else", "{", "this", ".", "argument", ".", "print", "(", "indent", ",", "output", ")", ";", "}", "return", "output", ";", "}", "public", "void", "resolve", "(", "BlockScope", "scope", ")", "{", "if", "(", "this", ".", "argument", "!=", "null", ")", "{", "this", ".", "argument", ".", "resolve", "(", "scope", ")", ";", "}", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "return", "internalResolveType", "(", "scope", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "ClassScope", "scope", ")", "{", "return", "internalResolveType", "(", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "if", "(", "this", ".", "argument", "!=", "null", ")", "{", "this", ".", "argument", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "if", "(", "this", ".", "argument", "!=", "null", ")", "{", "this", ".", "argument", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
5,690
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "Opcodes", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "CompilerOptions", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Binding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ClassScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "FieldBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "LocalVariableBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MethodBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MethodScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MissingTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemFieldBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemReasons", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Scope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "SourceTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "SyntheticMethodBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TagBits", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "VariableBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "ProblemSeverities", ";", "public", "class", "QualifiedNameReference", "extends", "NameReference", "{", "public", "char", "[", "]", "[", "]", "tokens", ";", "public", "long", "[", "]", "sourcePositions", ";", "public", "FieldBinding", "[", "]", "otherBindings", ";", "int", "[", "]", "otherDepths", ";", "public", "int", "indexOfFirstFieldBinding", ";", "public", "SyntheticMethodBinding", "syntheticWriteAccessor", ";", "public", "SyntheticMethodBinding", "[", "]", "syntheticReadAccessors", ";", "public", "TypeBinding", "genericCast", ";", "public", "TypeBinding", "[", "]", "otherGenericCasts", ";", "public", "QualifiedNameReference", "(", "char", "[", "]", "[", "]", "tokens", ",", "long", "[", "]", "positions", ",", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "tokens", "=", "tokens", ";", "this", ".", "sourcePositions", "=", "positions", ";", "this", ".", "sourceStart", "=", "sourceStart", ";", "this", ".", "sourceEnd", "=", "sourceEnd", ";", "}", "public", "FlowInfo", "analyseAssignment", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ",", "Assignment", "assignment", ",", "boolean", "isCompound", ")", "{", "int", "otherBindingsCount", "=", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ";", "boolean", "needValue", "=", "otherBindingsCount", "==", "0", "||", "!", "this", ".", "otherBindings", "[", "0", "]", ".", "isStatic", "(", ")", ";", "boolean", "complyTo14", "=", "currentScope", ".", "compilerOptions", "(", ")", ".", "complianceLevel", ">=", "ClassFileConstants", ".", "JDK1_4", ";", "FieldBinding", "lastFieldBinding", "=", "null", ";", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "lastFieldBinding", "=", "(", "FieldBinding", ")", "this", ".", "binding", ";", "if", "(", "needValue", "||", "complyTo14", ")", "{", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "lastFieldBinding", ",", "0", ",", "flowInfo", ")", ";", "}", "if", "(", "lastFieldBinding", ".", "isBlankFinal", "(", ")", "&&", "this", ".", "otherBindings", "!=", "null", "&&", "currentScope", ".", "needBlankFinalFieldInitializationCheck", "(", "lastFieldBinding", ")", ")", "{", "FlowInfo", "fieldInits", "=", "flowContext", ".", "getInitsForFinalBlankInitializationCheck", "(", "lastFieldBinding", ".", "declaringClass", ".", "original", "(", ")", ",", "flowInfo", ")", ";", "if", "(", "!", "fieldInits", ".", "isDefinitelyAssigned", "(", "lastFieldBinding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "uninitializedBlankFinalField", "(", "lastFieldBinding", ",", "this", ")", ";", "}", "}", "break", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "localBinding", ";", "if", "(", "!", "flowInfo", ".", "isDefinitelyAssigned", "(", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "uninitializedLocalVariable", "(", "localBinding", ",", "this", ")", ";", "}", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ")", "{", "localBinding", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "}", "else", "if", "(", "localBinding", ".", "useFlag", "==", "LocalVariableBinding", ".", "UNUSED", ")", "{", "localBinding", ".", "useFlag", "=", "LocalVariableBinding", ".", "FAKE_USED", ";", "}", "if", "(", "needValue", ")", "{", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ",", "true", ")", ";", "}", "}", "if", "(", "needValue", ")", "{", "manageEnclosingInstanceAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ")", ";", "}", "if", "(", "this", ".", "otherBindings", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "otherBindingsCount", "-", "1", ";", "i", "++", ")", "{", "lastFieldBinding", "=", "this", ".", "otherBindings", "[", "i", "]", ";", "needValue", "=", "!", "this", ".", "otherBindings", "[", "i", "+", "1", "]", ".", "isStatic", "(", ")", ";", "if", "(", "needValue", "||", "complyTo14", ")", "{", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "lastFieldBinding", ",", "i", "+", "1", ",", "flowInfo", ")", ";", "}", "}", "lastFieldBinding", "=", "this", ".", "otherBindings", "[", "otherBindingsCount", "-", "1", "]", ";", "}", "if", "(", "isCompound", ")", "{", "if", "(", "otherBindingsCount", "==", "0", "&&", "lastFieldBinding", ".", "isBlankFinal", "(", ")", "&&", "currentScope", ".", "needBlankFinalFieldInitializationCheck", "(", "lastFieldBinding", ")", ")", "{", "FlowInfo", "fieldInits", "=", "flowContext", ".", "getInitsForFinalBlankInitializationCheck", "(", "lastFieldBinding", ".", "declaringClass", ",", "flowInfo", ")", ";", "if", "(", "!", "fieldInits", ".", "isDefinitelyAssigned", "(", "lastFieldBinding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "uninitializedBlankFinalField", "(", "lastFieldBinding", ",", "this", ")", ";", "}", "}", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "lastFieldBinding", ",", "otherBindingsCount", ",", "flowInfo", ")", ";", "}", "if", "(", "assignment", ".", "expression", "!=", "null", ")", "{", "flowInfo", "=", "assignment", ".", "expression", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "}", "if", "(", "lastFieldBinding", ".", "isFinal", "(", ")", ")", "{", "if", "(", "otherBindingsCount", "==", "0", "&&", "this", ".", "indexOfFirstFieldBinding", "==", "1", "&&", "lastFieldBinding", ".", "isBlankFinal", "(", ")", "&&", "!", "isCompound", "&&", "currentScope", ".", "allowBlankFinalFieldAssignment", "(", "lastFieldBinding", ")", ")", "{", "if", "(", "flowInfo", ".", "isPotentiallyAssigned", "(", "lastFieldBinding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "duplicateInitializationOfBlankFinalField", "(", "lastFieldBinding", ",", "this", ")", ";", "}", "else", "{", "flowContext", ".", "recordSettingFinal", "(", "lastFieldBinding", ",", "this", ",", "flowInfo", ")", ";", "}", "flowInfo", ".", "markAsDefinitelyAssigned", "(", "lastFieldBinding", ")", ";", "}", "else", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "cannotAssignToFinalField", "(", "lastFieldBinding", ",", "this", ")", ";", "if", "(", "otherBindingsCount", "==", "0", "&&", "currentScope", ".", "allowBlankFinalFieldAssignment", "(", "lastFieldBinding", ")", ")", "{", "flowInfo", ".", "markAsDefinitelyAssigned", "(", "lastFieldBinding", ")", ";", "}", "}", "}", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "lastFieldBinding", ",", "-", "1", ",", "flowInfo", ")", ";", "return", "flowInfo", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "return", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ",", "true", ")", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ",", "boolean", "valueRequired", ")", "{", "int", "otherBindingsCount", "=", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ";", "boolean", "needValue", "=", "otherBindingsCount", "==", "0", "?", "valueRequired", ":", "!", "this", ".", "otherBindings", "[", "0", "]", ".", "isStatic", "(", ")", ";", "boolean", "complyTo14", "=", "currentScope", ".", "compilerOptions", "(", ")", ".", "complianceLevel", ">=", "ClassFileConstants", ".", "JDK1_4", ";", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "if", "(", "needValue", "||", "complyTo14", ")", "{", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "(", "FieldBinding", ")", "this", ".", "binding", ",", "0", ",", "flowInfo", ")", ";", "}", "if", "(", "this", ".", "indexOfFirstFieldBinding", "==", "1", ")", "{", "FieldBinding", "fieldBinding", "=", "(", "FieldBinding", ")", "this", ".", "binding", ";", "if", "(", "fieldBinding", ".", "isBlankFinal", "(", ")", "&&", "currentScope", ".", "needBlankFinalFieldInitializationCheck", "(", "fieldBinding", ")", ")", "{", "FlowInfo", "fieldInits", "=", "flowContext", ".", "getInitsForFinalBlankInitializationCheck", "(", "fieldBinding", ".", "declaringClass", ".", "original", "(", ")", ",", "flowInfo", ")", ";", "if", "(", "!", "fieldInits", ".", "isDefinitelyAssigned", "(", "fieldBinding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "uninitializedBlankFinalField", "(", "fieldBinding", ",", "this", ")", ";", "}", "}", "}", "break", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "localBinding", ";", "if", "(", "!", "flowInfo", ".", "isDefinitelyAssigned", "(", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "uninitializedLocalVariable", "(", "localBinding", ",", "this", ")", ";", "}", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ")", "{", "localBinding", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "}", "else", "if", "(", "localBinding", ".", "useFlag", "==", "LocalVariableBinding", ".", "UNUSED", ")", "{", "localBinding", ".", "useFlag", "=", "LocalVariableBinding", ".", "FAKE_USED", ";", "}", "if", "(", "needValue", ")", "{", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ",", "true", ")", ";", "}", "}", "if", "(", "needValue", ")", "{", "manageEnclosingInstanceAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ")", ";", "}", "if", "(", "this", ".", "otherBindings", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "otherBindingsCount", ";", "i", "++", ")", "{", "needValue", "=", "i", "<", "otherBindingsCount", "-", "1", "?", "!", "this", ".", "otherBindings", "[", "i", "+", "1", "]", ".", "isStatic", "(", ")", ":", "valueRequired", ";", "if", "(", "needValue", "||", "complyTo14", ")", "{", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "this", ".", "otherBindings", "[", "i", "]", ",", "i", "+", "1", ",", "flowInfo", ")", ";", "}", "}", "}", "return", "flowInfo", ";", "}", "public", "void", "checkNPE", "(", "BlockScope", "scope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ",", "boolean", "checkString", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "==", "Binding", ".", "LOCAL", ")", "{", "LocalVariableBinding", "local", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "if", "(", "local", "!=", "null", "&&", "(", "local", ".", "type", ".", "tagBits", "&", "TagBits", ".", "IsBaseType", ")", "==", "0", "&&", "(", "checkString", "||", "local", ".", "type", ".", "id", "!=", "TypeIds", ".", "T_JavaLangString", ")", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsNonNull", ")", "==", "0", ")", "{", "flowContext", ".", "recordUsingNullReference", "(", "scope", ",", "local", ",", "this", ",", "FlowContext", ".", "MAY_NULL", ",", "flowInfo", ")", ";", "}", "flowInfo", ".", "markAsComparedEqualToNonNull", "(", "local", ")", ";", "if", "(", "flowContext", ".", "initsOnFinally", "!=", "null", ")", "{", "flowContext", ".", "initsOnFinally", ".", "markAsComparedEqualToNonNull", "(", "local", ")", ";", "}", "}", "}", "}", "public", "void", "computeConversion", "(", "Scope", "scope", ",", "TypeBinding", "runtimeTimeType", ",", "TypeBinding", "compileTimeType", ")", "{", "if", "(", "runtimeTimeType", "==", "null", "||", "compileTimeType", "==", "null", ")", "return", ";", "FieldBinding", "field", "=", "null", ";", "int", "length", "=", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ";", "if", "(", "length", "==", "0", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "Binding", ".", "FIELD", ")", "!=", "0", "&&", "this", ".", "binding", "!=", "null", "&&", "this", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "field", "=", "(", "FieldBinding", ")", "this", ".", "binding", ";", "}", "}", "else", "{", "field", "=", "this", ".", "otherBindings", "[", "length", "-", "1", "]", ";", "}", "if", "(", "field", "!=", "null", ")", "{", "FieldBinding", "originalBinding", "=", "field", ".", "original", "(", ")", ";", "TypeBinding", "originalType", "=", "originalBinding", ".", "type", ";", "if", "(", "originalType", ".", "leafComponentType", "(", ")", ".", "isTypeVariable", "(", ")", ")", "{", "TypeBinding", "targetType", "=", "(", "!", "compileTimeType", ".", "isBaseType", "(", ")", "&&", "runtimeTimeType", ".", "isBaseType", "(", ")", ")", "?", "compileTimeType", ":", "runtimeTimeType", ";", "TypeBinding", "typeCast", "=", "originalType", ".", "genericCast", "(", "targetType", ")", ";", "setGenericCast", "(", "length", ",", "typeCast", ")", ";", "if", "(", "typeCast", "instanceof", "ReferenceBinding", ")", "{", "ReferenceBinding", "referenceCast", "=", "(", "ReferenceBinding", ")", "typeCast", ";", "if", "(", "!", "referenceCast", ".", "canBeSeenBy", "(", "scope", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "invalidType", "(", "this", ",", "new", "ProblemReferenceBinding", "(", "CharOperation", ".", "splitOn", "(", "'.'", ",", "referenceCast", ".", "shortReadableName", "(", ")", ")", ",", "referenceCast", ",", "ProblemReasons", ".", "NotVisible", ")", ")", ";", "}", "}", "}", "}", "super", ".", "computeConversion", "(", "scope", ",", "runtimeTimeType", ",", "compileTimeType", ")", ";", "}", "public", "void", "generateAssignment", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "Assignment", "assignment", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "FieldBinding", "lastFieldBinding", "=", "generateReadSequence", "(", "currentScope", ",", "codeStream", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "assignment", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "fieldStore", "(", "currentScope", ",", "codeStream", ",", "lastFieldBinding", ",", "this", ".", "syntheticWriteAccessor", ",", "getFinalReceiverType", "(", ")", ",", "false", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "assignment", ".", "implicitConversion", ")", ";", "}", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "}", "else", "{", "FieldBinding", "lastFieldBinding", "=", "generateReadSequence", "(", "currentScope", ",", "codeStream", ")", ";", "if", "(", "lastFieldBinding", "!=", "null", ")", "{", "boolean", "isStatic", "=", "lastFieldBinding", ".", "isStatic", "(", ")", ";", "Constant", "fieldConstant", "=", "lastFieldBinding", ".", "constant", "(", ")", ";", "if", "(", "fieldConstant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "!", "isStatic", ")", "{", "codeStream", ".", "invokeObjectGetClass", "(", ")", ";", "codeStream", ".", "pop", "(", ")", ";", "}", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "fieldConstant", ",", "this", ".", "implicitConversion", ")", ";", "}", "}", "else", "{", "boolean", "isFirst", "=", "lastFieldBinding", "==", "this", ".", "binding", "&&", "(", "this", ".", "indexOfFirstFieldBinding", "==", "1", "||", "lastFieldBinding", ".", "declaringClass", "==", "currentScope", ".", "enclosingReceiverType", "(", ")", ")", "&&", "this", ".", "otherBindings", "==", "null", ";", "TypeBinding", "requiredGenericCast", "=", "getGenericCast", "(", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ")", ";", "if", "(", "valueRequired", "||", "(", "!", "isFirst", "&&", "currentScope", ".", "compilerOptions", "(", ")", ".", "complianceLevel", ">=", "ClassFileConstants", ".", "JDK1_4", ")", "||", "(", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "||", "requiredGenericCast", "!=", "null", ")", "{", "int", "lastFieldPc", "=", "codeStream", ".", "position", ";", "if", "(", "lastFieldBinding", ".", "declaringClass", "==", "null", ")", "{", "codeStream", ".", "arraylength", "(", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "codeStream", ".", "pop", "(", ")", ";", "}", "}", "else", "{", "SyntheticMethodBinding", "accessor", "=", "this", ".", "syntheticReadAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticReadAccessors", "[", "this", ".", "syntheticReadAccessors", ".", "length", "-", "1", "]", ";", "if", "(", "accessor", "==", "null", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "lastFieldBinding", ",", "getFinalReceiverType", "(", ")", ",", "isFirst", ")", ";", "if", "(", "isStatic", ")", "{", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "lastFieldBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getfield", ",", "lastFieldBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "accessor", ",", "null", ")", ";", "}", "if", "(", "requiredGenericCast", "!=", "null", ")", "codeStream", ".", "checkcast", "(", "requiredGenericCast", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "boolean", "isUnboxing", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ";", "if", "(", "isUnboxing", ")", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "switch", "(", "isUnboxing", "?", "postConversionType", "(", "currentScope", ")", ".", "id", ":", "lastFieldBinding", ".", "type", ".", "id", ")", "{", "case", "T_long", ":", "case", "T_double", ":", "codeStream", ".", "pop2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "pop", "(", ")", ";", "break", ";", "}", "}", "}", "int", "fieldPosition", "=", "(", "int", ")", "(", "this", ".", "sourcePositions", "[", "this", ".", "sourcePositions", ".", "length", "-", "1", "]", ">>>", "32", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "lastFieldPc", ",", "fieldPosition", ")", ";", "}", "else", "{", "if", "(", "!", "isStatic", ")", "{", "codeStream", ".", "invokeObjectGetClass", "(", ")", ";", "codeStream", ".", "pop", "(", ")", ";", "}", "}", "}", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "void", "generateCompoundAssignment", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "Expression", "expression", ",", "int", "operator", ",", "int", "assignmentImplicitConversion", ",", "boolean", "valueRequired", ")", "{", "FieldBinding", "lastFieldBinding", "=", "generateReadSequence", "(", "currentScope", ",", "codeStream", ")", ";", "boolean", "isFirst", "=", "lastFieldBinding", "==", "this", ".", "binding", "&&", "(", "this", ".", "indexOfFirstFieldBinding", "==", "1", "||", "lastFieldBinding", ".", "declaringClass", "==", "currentScope", ".", "enclosingReceiverType", "(", ")", ")", "&&", "this", ".", "otherBindings", "==", "null", ";", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "lastFieldBinding", ",", "getFinalReceiverType", "(", ")", ",", "isFirst", ")", ";", "SyntheticMethodBinding", "accessor", "=", "this", ".", "syntheticReadAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticReadAccessors", "[", "this", ".", "syntheticReadAccessors", ".", "length", "-", "1", "]", ";", "if", "(", "lastFieldBinding", ".", "isStatic", "(", ")", ")", "{", "if", "(", "accessor", "==", "null", ")", "{", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "lastFieldBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "accessor", ",", "null", ")", ";", "}", "}", "else", "{", "codeStream", ".", "dup", "(", ")", ";", "if", "(", "accessor", "==", "null", ")", "{", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getfield", ",", "lastFieldBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "accessor", ",", "null", ")", ";", "}", "}", "int", "operationTypeID", ";", "switch", "(", "operationTypeID", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ")", "{", "case", "T_JavaLangString", ":", "case", "T_JavaLangObject", ":", "case", "T_undefined", ":", "codeStream", ".", "generateStringConcatenationAppend", "(", "currentScope", ",", "null", ",", "expression", ")", ";", "break", ";", "default", ":", "TypeBinding", "requiredGenericCast", "=", "getGenericCast", "(", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ")", ";", "if", "(", "requiredGenericCast", "!=", "null", ")", "codeStream", ".", "checkcast", "(", "requiredGenericCast", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "if", "(", "expression", "==", "IntLiteral", ".", "One", ")", "{", "codeStream", ".", "generateConstant", "(", "expression", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "}", "codeStream", ".", "sendOperator", "(", "operator", ",", "operationTypeID", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "assignmentImplicitConversion", ")", ";", "}", "fieldStore", "(", "currentScope", ",", "codeStream", ",", "lastFieldBinding", ",", "this", ".", "syntheticWriteAccessor", ",", "getFinalReceiverType", "(", ")", ",", "false", ",", "valueRequired", ")", ";", "}", "public", "void", "generatePostIncrement", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "CompoundAssignment", "postIncrement", ",", "boolean", "valueRequired", ")", "{", "FieldBinding", "lastFieldBinding", "=", "generateReadSequence", "(", "currentScope", ",", "codeStream", ")", ";", "boolean", "isFirst", "=", "lastFieldBinding", "==", "this", ".", "binding", "&&", "(", "this", ".", "indexOfFirstFieldBinding", "==", "1", "||", "lastFieldBinding", ".", "declaringClass", "==", "currentScope", ".", "enclosingReceiverType", "(", ")", ")", "&&", "this", ".", "otherBindings", "==", "null", ";", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "lastFieldBinding", ",", "getFinalReceiverType", "(", ")", ",", "isFirst", ")", ";", "SyntheticMethodBinding", "accessor", "=", "this", ".", "syntheticReadAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticReadAccessors", "[", "this", ".", "syntheticReadAccessors", ".", "length", "-", "1", "]", ";", "if", "(", "lastFieldBinding", ".", "isStatic", "(", ")", ")", "{", "if", "(", "accessor", "==", "null", ")", "{", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "lastFieldBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "accessor", ",", "constantPoolDeclaringClass", ")", ";", "}", "}", "else", "{", "codeStream", ".", "dup", "(", ")", ";", "if", "(", "accessor", "==", "null", ")", "{", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getfield", ",", "lastFieldBinding", ",", "null", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "accessor", ",", "null", ")", ";", "}", "}", "TypeBinding", "requiredGenericCast", "=", "getGenericCast", "(", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ")", ";", "TypeBinding", "operandType", ";", "if", "(", "requiredGenericCast", "!=", "null", ")", "{", "codeStream", ".", "checkcast", "(", "requiredGenericCast", ")", ";", "operandType", "=", "requiredGenericCast", ";", "}", "else", "{", "operandType", "=", "lastFieldBinding", ".", "type", ";", "}", "if", "(", "valueRequired", ")", "{", "if", "(", "lastFieldBinding", ".", "isStatic", "(", ")", ")", "{", "switch", "(", "operandType", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "codeStream", ".", "dup2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "dup", "(", ")", ";", "break", ";", "}", "}", "else", "{", "switch", "(", "operandType", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "codeStream", ".", "dup2_x1", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "dup_x1", "(", ")", ";", "break", ";", "}", "}", "}", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "generateConstant", "(", "postIncrement", ".", "expression", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "sendOperator", "(", "postIncrement", ".", "operator", ",", "this", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "postIncrement", ".", "preAssignImplicitConversion", ")", ";", "fieldStore", "(", "currentScope", ",", "codeStream", ",", "lastFieldBinding", ",", "this", ".", "syntheticWriteAccessor", ",", "getFinalReceiverType", "(", ")", ",", "false", ",", "false", ")", ";", "}", "public", "FieldBinding", "generateReadSequence", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ")", "{", "int", "otherBindingsCount", "=", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ";", "boolean", "needValue", "=", "otherBindingsCount", "==", "0", "||", "!", "this", ".", "otherBindings", "[", "0", "]", ".", "isStatic", "(", ")", ";", "FieldBinding", "lastFieldBinding", ";", "TypeBinding", "lastGenericCast", ";", "TypeBinding", "lastReceiverType", ";", "boolean", "complyTo14", "=", "currentScope", ".", "compilerOptions", "(", ")", ".", "complianceLevel", ">=", "ClassFileConstants", ".", "JDK1_4", ";", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "lastFieldBinding", "=", "(", "(", "FieldBinding", ")", "this", ".", "binding", ")", ".", "original", "(", ")", ";", "lastGenericCast", "=", "this", ".", "genericCast", ";", "lastReceiverType", "=", "this", ".", "actualReceiverType", ";", "if", "(", "lastFieldBinding", ".", "constant", "(", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "break", ";", "}", "if", "(", "(", "needValue", "&&", "!", "lastFieldBinding", ".", "isStatic", "(", ")", ")", "||", "lastGenericCast", "!=", "null", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", "{", "ReferenceBinding", "targetType", "=", "currentScope", ".", "enclosingSourceType", "(", ")", ".", "enclosingTypeAt", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ")", ";", "Object", "[", "]", "emulationPath", "=", "currentScope", ".", "getEmulationPath", "(", "targetType", ",", "true", ",", "false", ")", ";", "codeStream", ".", "generateOuterAccess", "(", "emulationPath", ",", "this", ",", "targetType", ",", "currentScope", ")", ";", "}", "else", "{", "generateReceiver", "(", "codeStream", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "break", ";", "case", "Binding", ".", "LOCAL", ":", "lastFieldBinding", "=", "null", ";", "lastGenericCast", "=", "null", ";", "LocalVariableBinding", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "lastReceiverType", "=", "localBinding", ".", "type", ";", "if", "(", "!", "needValue", ")", "break", ";", "Constant", "localConstant", "=", "localBinding", ".", "constant", "(", ")", ";", "if", "(", "localConstant", "!=", "Constant", ".", "NotAConstant", ")", "{", "codeStream", ".", "generateConstant", "(", "localConstant", ",", "0", ")", ";", "}", "else", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", "{", "VariableBinding", "[", "]", "path", "=", "currentScope", ".", "getEmulationPath", "(", "localBinding", ")", ";", "codeStream", ".", "generateOuterAccess", "(", "path", ",", "this", ",", "localBinding", ",", "currentScope", ")", ";", "}", "else", "{", "codeStream", ".", "load", "(", "localBinding", ")", ";", "}", "}", "break", ";", "default", ":", "return", "null", ";", "}", "int", "positionsLength", "=", "this", ".", "sourcePositions", ".", "length", ";", "FieldBinding", "initialFieldBinding", "=", "lastFieldBinding", ";", "if", "(", "this", ".", "otherBindings", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "otherBindingsCount", ";", "i", "++", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "FieldBinding", "nextField", "=", "this", ".", "otherBindings", "[", "i", "]", ".", "original", "(", ")", ";", "TypeBinding", "nextGenericCast", "=", "this", ".", "otherGenericCasts", "==", "null", "?", "null", ":", "this", ".", "otherGenericCasts", "[", "i", "]", ";", "if", "(", "lastFieldBinding", "!=", "null", ")", "{", "needValue", "=", "!", "nextField", ".", "isStatic", "(", ")", ";", "Constant", "fieldConstant", "=", "lastFieldBinding", ".", "constant", "(", ")", ";", "if", "(", "fieldConstant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "i", ">", "0", "&&", "!", "lastFieldBinding", ".", "isStatic", "(", ")", ")", "{", "codeStream", ".", "invokeObjectGetClass", "(", ")", ";", "codeStream", ".", "pop", "(", ")", ";", "}", "if", "(", "needValue", ")", "{", "codeStream", ".", "generateConstant", "(", "fieldConstant", ",", "0", ")", ";", "}", "}", "else", "{", "if", "(", "needValue", "||", "(", "i", ">", "0", "&&", "complyTo14", ")", "||", "lastGenericCast", "!=", "null", ")", "{", "MethodBinding", "accessor", "=", "this", ".", "syntheticReadAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticReadAccessors", "[", "i", "]", ";", "if", "(", "accessor", "==", "null", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "lastFieldBinding", ",", "lastReceiverType", ",", "i", "==", "0", "&&", "this", ".", "indexOfFirstFieldBinding", "==", "1", ")", ";", "if", "(", "lastFieldBinding", ".", "isStatic", "(", ")", ")", "{", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "lastFieldBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getfield", ",", "lastFieldBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "accessor", ",", "null", ")", ";", "}", "if", "(", "lastGenericCast", "!=", "null", ")", "{", "codeStream", ".", "checkcast", "(", "lastGenericCast", ")", ";", "lastReceiverType", "=", "lastGenericCast", ";", "}", "else", "{", "lastReceiverType", "=", "lastFieldBinding", ".", "type", ";", "}", "if", "(", "!", "needValue", ")", "codeStream", ".", "pop", "(", ")", ";", "}", "else", "{", "if", "(", "lastFieldBinding", "==", "initialFieldBinding", ")", "{", "if", "(", "lastFieldBinding", ".", "isStatic", "(", ")", ")", "{", "if", "(", "initialFieldBinding", ".", "declaringClass", "!=", "this", ".", "actualReceiverType", ".", "erasure", "(", ")", ")", "{", "MethodBinding", "accessor", "=", "this", ".", "syntheticReadAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticReadAccessors", "[", "i", "]", ";", "if", "(", "accessor", "==", "null", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "lastFieldBinding", ",", "lastReceiverType", ",", "i", "==", "0", "&&", "this", ".", "indexOfFirstFieldBinding", "==", "1", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "lastFieldBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "accessor", ",", "null", ")", ";", "}", "codeStream", ".", "pop", "(", ")", ";", "}", "}", "}", "else", "if", "(", "!", "lastFieldBinding", ".", "isStatic", "(", ")", ")", "{", "codeStream", ".", "invokeObjectGetClass", "(", ")", ";", "codeStream", ".", "pop", "(", ")", ";", "}", "lastReceiverType", "=", "lastFieldBinding", ".", "type", ";", "}", "if", "(", "(", "positionsLength", "-", "otherBindingsCount", "+", "i", "-", "1", ")", ">=", "0", ")", "{", "int", "fieldPosition", "=", "(", "int", ")", "(", "this", ".", "sourcePositions", "[", "positionsLength", "-", "otherBindingsCount", "+", "i", "-", "1", "]", ">>>", "32", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "fieldPosition", ")", ";", "}", "}", "}", "lastFieldBinding", "=", "nextField", ";", "lastGenericCast", "=", "nextGenericCast", ";", "}", "}", "return", "lastFieldBinding", ";", "}", "public", "void", "generateReceiver", "(", "CodeStream", "codeStream", ")", "{", "codeStream", ".", "aload_0", "(", ")", ";", "}", "public", "TypeBinding", "[", "]", "genericTypeArguments", "(", ")", "{", "return", "null", ";", "}", "protected", "FieldBinding", "getCodegenBinding", "(", "int", "index", ")", "{", "if", "(", "index", "==", "0", ")", "{", "return", "(", "(", "FieldBinding", ")", "this", ".", "binding", ")", ".", "original", "(", ")", ";", "}", "else", "{", "return", "this", ".", "otherBindings", "[", "index", "-", "1", "]", ".", "original", "(", ")", ";", "}", "}", "protected", "TypeBinding", "getFinalReceiverType", "(", ")", "{", "int", "otherBindingsCount", "=", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ";", "switch", "(", "otherBindingsCount", ")", "{", "case", "0", ":", "return", "this", ".", "actualReceiverType", ";", "case", "1", ":", "return", "this", ".", "genericCast", "!=", "null", "?", "this", ".", "genericCast", ":", "(", "(", "VariableBinding", ")", "this", ".", "binding", ")", ".", "type", ";", "default", ":", "TypeBinding", "previousGenericCast", "=", "this", ".", "otherGenericCasts", "==", "null", "?", "null", ":", "this", ".", "otherGenericCasts", "[", "otherBindingsCount", "-", "2", "]", ";", "return", "previousGenericCast", "!=", "null", "?", "previousGenericCast", ":", "this", ".", "otherBindings", "[", "otherBindingsCount", "-", "2", "]", ".", "type", ";", "}", "}", "protected", "TypeBinding", "getGenericCast", "(", "int", "index", ")", "{", "if", "(", "index", "==", "0", ")", "{", "return", "this", ".", "genericCast", ";", "}", "else", "{", "if", "(", "this", ".", "otherGenericCasts", "==", "null", ")", "return", "null", ";", "return", "this", ".", "otherGenericCasts", "[", "index", "-", "1", "]", ";", "}", "}", "public", "TypeBinding", "getOtherFieldBindings", "(", "BlockScope", "scope", ")", "{", "int", "length", "=", "this", ".", "tokens", ".", "length", ";", "FieldBinding", "field", "=", "(", "(", "this", ".", "bits", "&", "Binding", ".", "FIELD", ")", "!=", "0", ")", "?", "(", "FieldBinding", ")", "this", ".", "binding", ":", "null", ";", "TypeBinding", "type", "=", "(", "(", "VariableBinding", ")", "this", ".", "binding", ")", ".", "type", ";", "int", "index", "=", "this", ".", "indexOfFirstFieldBinding", ";", "if", "(", "index", "==", "length", ")", "{", "this", ".", "constant", "=", "(", "(", "FieldBinding", ")", "this", ".", "binding", ")", ".", "constant", "(", ")", ";", "return", "(", "type", "!=", "null", "&&", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsStrictlyAssigned", ")", "==", "0", ")", "?", "type", ".", "capture", "(", "scope", ",", "this", ".", "sourceEnd", ")", ":", "type", ";", "}", "int", "otherBindingsLength", "=", "length", "-", "index", ";", "this", ".", "otherBindings", "=", "new", "FieldBinding", "[", "otherBindingsLength", "]", ";", "this", ".", "otherDepths", "=", "new", "int", "[", "otherBindingsLength", "]", ";", "this", ".", "constant", "=", "(", "(", "VariableBinding", ")", "this", ".", "binding", ")", ".", "constant", "(", ")", ";", "int", "firstDepth", "=", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ";", "while", "(", "index", "<", "length", ")", "{", "char", "[", "]", "token", "=", "this", ".", "tokens", "[", "index", "]", ";", "if", "(", "type", "==", "null", ")", "return", "null", ";", "this", ".", "bits", "&=", "~", "ASTNode", ".", "DepthMASK", ";", "FieldBinding", "previousField", "=", "field", ";", "field", "=", "scope", ".", "getField", "(", "type", ".", "capture", "(", "scope", ",", "(", "int", ")", "this", ".", "sourcePositions", "[", "index", "]", ")", ",", "token", ",", "this", ")", ";", "int", "place", "=", "index", "-", "this", ".", "indexOfFirstFieldBinding", ";", "this", ".", "otherBindings", "[", "place", "]", "=", "field", ";", "this", ".", "otherDepths", "[", "place", "]", "=", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ";", "if", "(", "field", ".", "isValidBinding", "(", ")", ")", "{", "if", "(", "previousField", "!=", "null", ")", "{", "TypeBinding", "fieldReceiverType", "=", "type", ";", "TypeBinding", "oldReceiverType", "=", "fieldReceiverType", ";", "fieldReceiverType", "=", "fieldReceiverType", ".", "getErasureCompatibleType", "(", "field", ".", "declaringClass", ")", ";", "FieldBinding", "originalBinding", "=", "previousField", ".", "original", "(", ")", ";", "if", "(", "fieldReceiverType", "!=", "oldReceiverType", "||", "originalBinding", ".", "type", ".", "leafComponentType", "(", ")", ".", "isTypeVariable", "(", ")", ")", "{", "setGenericCast", "(", "index", "-", "1", ",", "originalBinding", ".", "type", ".", "genericCast", "(", "fieldReceiverType", ")", ")", ";", "}", "}", "if", "(", "isFieldUseDeprecated", "(", "field", ",", "scope", ",", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsStrictlyAssigned", ")", "!=", "0", "&&", "index", "+", "1", "==", "length", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "deprecatedField", "(", "field", ",", "this", ")", ";", "}", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "this", ".", "constant", "=", "field", ".", "constant", "(", ")", ";", "}", "if", "(", "field", ".", "isStatic", "(", ")", ")", "{", "if", "(", "(", "field", ".", "modifiers", "&", "ClassFileConstants", ".", "AccEnum", ")", "!=", "0", ")", "{", "ReferenceBinding", "declaringClass", "=", "field", ".", "original", "(", ")", ".", "declaringClass", ";", "MethodScope", "methodScope", "=", "scope", ".", "methodScope", "(", ")", ";", "SourceTypeBinding", "sourceType", "=", "methodScope", ".", "enclosingSourceType", "(", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsStrictlyAssigned", ")", "==", "0", "&&", "sourceType", "==", "declaringClass", "&&", "methodScope", ".", "lastVisibleFieldID", ">=", "0", "&&", "field", ".", "id", ">=", "methodScope", ".", "lastVisibleFieldID", "&&", "(", "!", "field", ".", "isStatic", "(", ")", "||", "methodScope", ".", "isStatic", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "forwardReference", "(", "this", ",", "index", ",", "field", ")", ";", "}", "if", "(", "(", "sourceType", "==", "declaringClass", "||", "sourceType", ".", "superclass", "==", "declaringClass", ")", "&&", "field", ".", "constant", "(", ")", "==", "Constant", ".", "NotAConstant", "&&", "!", "methodScope", ".", "isStatic", "&&", "methodScope", ".", "isInsideInitializerOrConstructor", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "enumStaticFieldUsedDuringInitialization", "(", "field", ",", "this", ")", ";", "}", "}", "scope", ".", "problemReporter", "(", ")", ".", "nonStaticAccessToStaticField", "(", "this", ",", "field", ",", "index", ")", ";", "if", "(", "field", ".", "declaringClass", "!=", "type", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "indirectAccessToStaticField", "(", "this", ",", "field", ")", ";", "}", "}", "type", "=", "field", ".", "type", ";", "index", "++", ";", "}", "else", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidField", "(", "this", ",", "field", ",", "index", ",", "type", ")", ";", "setDepth", "(", "firstDepth", ")", ";", "return", "null", ";", "}", "}", "setDepth", "(", "firstDepth", ")", ";", "type", "=", "(", "this", ".", "otherBindings", "[", "otherBindingsLength", "-", "1", "]", ")", ".", "type", ";", "return", "(", "type", "!=", "null", "&&", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsStrictlyAssigned", ")", "==", "0", ")", "?", "type", ".", "capture", "(", "scope", ",", "this", ".", "sourceEnd", ")", ":", "type", ";", "}", "public", "void", "manageEnclosingInstanceAccessIfNecessary", "(", "BlockScope", "currentScope", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "==", "0", ")", "||", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", ")", "{", "return", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "==", "Binding", ".", "LOCAL", ")", "{", "LocalVariableBinding", "localVariableBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "if", "(", "localVariableBinding", "!=", "null", ")", "{", "switch", "(", "localVariableBinding", ".", "useFlag", ")", "{", "case", "LocalVariableBinding", ".", "FAKE_USED", ":", "case", "LocalVariableBinding", ".", "USED", ":", "currentScope", ".", "emulateOuterAccess", "(", "localVariableBinding", ")", ";", "}", "}", "}", "}", "public", "void", "manageSyntheticAccessIfNecessary", "(", "BlockScope", "currentScope", ",", "FieldBinding", "fieldBinding", ",", "int", "index", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", ")", "return", ";", "if", "(", "fieldBinding", ".", "constant", "(", ")", "!=", "Constant", ".", "NotAConstant", ")", "return", ";", "if", "(", "fieldBinding", ".", "isPrivate", "(", ")", ")", "{", "FieldBinding", "codegenField", "=", "getCodegenBinding", "(", "index", "<", "0", "?", "(", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ")", ":", "index", ")", ";", "ReferenceBinding", "declaringClass", "=", "codegenField", ".", "declaringClass", ";", "if", "(", "declaringClass", "!=", "currentScope", ".", "enclosingSourceType", "(", ")", ")", "{", "setSyntheticAccessor", "(", "fieldBinding", ",", "index", ",", "(", "(", "SourceTypeBinding", ")", "declaringClass", ")", ".", "addSyntheticMethod", "(", "codegenField", ",", "index", ">=", "0", ",", "false", ")", ")", ";", "currentScope", ".", "problemReporter", "(", ")", ".", "needToEmulateFieldAccess", "(", "codegenField", ",", "this", ",", "index", ">=", "0", ")", ";", "return", ";", "}", "}", "else", "if", "(", "fieldBinding", ".", "isProtected", "(", ")", ")", "{", "int", "depth", "=", "(", "index", "==", "0", "||", "(", "index", "<", "0", "&&", "this", ".", "otherDepths", "==", "null", ")", ")", "?", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ":", "this", ".", "otherDepths", "[", "index", "<", "0", "?", "this", ".", "otherDepths", ".", "length", "-", "1", ":", "index", "-", "1", "]", ";", "if", "(", "depth", ">", "0", "&&", "(", "fieldBinding", ".", "declaringClass", ".", "getPackage", "(", ")", "!=", "currentScope", ".", "enclosingSourceType", "(", ")", ".", "getPackage", "(", ")", ")", ")", "{", "FieldBinding", "codegenField", "=", "getCodegenBinding", "(", "index", "<", "0", "?", "(", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ")", ":", "index", ")", ";", "setSyntheticAccessor", "(", "fieldBinding", ",", "index", ",", "(", "(", "SourceTypeBinding", ")", "currentScope", ".", "enclosingSourceType", "(", ")", ".", "enclosingTypeAt", "(", "depth", ")", ")", ".", "addSyntheticMethod", "(", "codegenField", ",", "index", ">=", "0", ",", "false", ")", ")", ";", "currentScope", ".", "problemReporter", "(", ")", ".", "needToEmulateFieldAccess", "(", "codegenField", ",", "this", ",", "index", ">=", "0", ")", ";", "return", ";", "}", "}", "}", "public", "int", "nullStatus", "(", "FlowInfo", "flowInfo", ")", "{", "return", "FlowInfo", ".", "UNKNOWN", ";", "}", "public", "Constant", "optimizedBooleanConstant", "(", ")", "{", "switch", "(", "this", ".", "resolvedType", ".", "id", ")", "{", "case", "T_boolean", ":", "case", "T_JavaLangBoolean", ":", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "return", "this", ".", "constant", ";", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "if", "(", "this", ".", "otherBindings", "==", "null", ")", "return", "(", "(", "FieldBinding", ")", "this", ".", "binding", ")", ".", "constant", "(", ")", ";", "case", "Binding", ".", "LOCAL", ":", "return", "this", ".", "otherBindings", "[", "this", ".", "otherBindings", ".", "length", "-", "1", "]", ".", "constant", "(", ")", ";", "}", "}", "return", "Constant", ".", "NotAConstant", ";", "}", "public", "TypeBinding", "postConversionType", "(", "Scope", "scope", ")", "{", "TypeBinding", "convertedType", "=", "this", ".", "resolvedType", ";", "TypeBinding", "requiredGenericCast", "=", "getGenericCast", "(", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ")", ";", "if", "(", "requiredGenericCast", "!=", "null", ")", "convertedType", "=", "requiredGenericCast", ";", "int", "runtimeType", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ";", "switch", "(", "runtimeType", ")", "{", "case", "T_boolean", ":", "convertedType", "=", "TypeBinding", ".", "BOOLEAN", ";", "break", ";", "case", "T_byte", ":", "convertedType", "=", "TypeBinding", ".", "BYTE", ";", "break", ";", "case", "T_short", ":", "convertedType", "=", "TypeBinding", ".", "SHORT", ";", "break", ";", "case", "T_char", ":", "convertedType", "=", "TypeBinding", ".", "CHAR", ";", "break", ";", "case", "T_int", ":", "convertedType", "=", "TypeBinding", ".", "INT", ";", "break", ";", "case", "T_float", ":", "convertedType", "=", "TypeBinding", ".", "FLOAT", ";", "break", ";", "case", "T_long", ":", "convertedType", "=", "TypeBinding", ".", "LONG", ";", "break", ";", "case", "T_double", ":", "convertedType", "=", "TypeBinding", ".", "DOUBLE", ";", "break", ";", "default", ":", "}", "if", "(", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "BOXING", ")", "!=", "0", ")", "{", "convertedType", "=", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "convertedType", ")", ";", "}", "return", "convertedType", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "tokens", ".", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "output", ".", "append", "(", "'.'", ")", ";", "output", ".", "append", "(", "this", ".", "tokens", "[", "i", "]", ")", ";", "}", "return", "output", ";", "}", "public", "TypeBinding", "reportError", "(", "BlockScope", "scope", ")", "{", "if", "(", "this", ".", "binding", "instanceof", "ProblemFieldBinding", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "invalidField", "(", "this", ",", "(", "FieldBinding", ")", "this", ".", "binding", ")", ";", "}", "else", "if", "(", "this", ".", "binding", "instanceof", "ProblemReferenceBinding", "||", "this", ".", "binding", "instanceof", "MissingTypeBinding", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "invalidType", "(", "this", ",", "(", "TypeBinding", ")", "this", ".", "binding", ")", ";", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "unresolvableReference", "(", "this", ",", "this", ".", "binding", ")", ";", "}", "return", "null", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "this", ".", "actualReceiverType", "=", "scope", ".", "enclosingReceiverType", "(", ")", ";", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "(", "this", ".", "binding", "=", "scope", ".", "getBinding", "(", "this", ".", "tokens", ",", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ",", "this", ",", "true", ")", ")", ".", "isValidBinding", "(", ")", ")", "{", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "VARIABLE", ":", "case", "Binding", ".", "TYPE", "|", "Binding", ".", "VARIABLE", ":", "if", "(", "this", ".", "binding", "instanceof", "LocalVariableBinding", ")", "{", "this", ".", "bits", "&=", "~", "ASTNode", ".", "RestrictiveFlagMASK", ";", "this", ".", "bits", "|=", "Binding", ".", "LOCAL", ";", "LocalVariableBinding", "local", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "if", "(", "!", "local", ".", "isFinal", "(", ")", "&&", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotReferToNonFinalOuterLocal", "(", "(", "LocalVariableBinding", ")", "this", ".", "binding", ",", "this", ")", ";", "}", "if", "(", "local", ".", "type", "!=", "null", "&&", "(", "local", ".", "type", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "return", "null", ";", "}", "this", ".", "resolvedType", "=", "getOtherFieldBindings", "(", "scope", ")", ";", "if", "(", "this", ".", "resolvedType", "!=", "null", "&&", "(", "this", ".", "resolvedType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "FieldBinding", "lastField", "=", "this", ".", "otherBindings", "[", "this", ".", "otherBindings", ".", "length", "-", "1", "]", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidField", "(", "this", ",", "new", "ProblemFieldBinding", "(", "lastField", ".", "declaringClass", ",", "lastField", ".", "name", ",", "ProblemReasons", ".", "NotFound", ")", ",", "this", ".", "tokens", ".", "length", ",", "this", ".", "resolvedType", ".", "leafComponentType", "(", ")", ")", ";", "return", "null", ";", "}", "return", "this", ".", "resolvedType", ";", "}", "if", "(", "this", ".", "binding", "instanceof", "FieldBinding", ")", "{", "this", ".", "bits", "&=", "~", "ASTNode", ".", "RestrictiveFlagMASK", ";", "this", ".", "bits", "|=", "Binding", ".", "FIELD", ";", "FieldBinding", "fieldBinding", "=", "(", "FieldBinding", ")", "this", ".", "binding", ";", "MethodScope", "methodScope", "=", "scope", ".", "methodScope", "(", ")", ";", "ReferenceBinding", "declaringClass", "=", "fieldBinding", ".", "original", "(", ")", ".", "declaringClass", ";", "SourceTypeBinding", "sourceType", "=", "methodScope", ".", "enclosingSourceType", "(", ")", ";", "if", "(", "(", "this", ".", "indexOfFirstFieldBinding", "==", "1", "||", "(", "fieldBinding", ".", "modifiers", "&", "ClassFileConstants", ".", "AccEnum", ")", "!=", "0", "||", "(", "!", "fieldBinding", ".", "isFinal", "(", ")", "&&", "declaringClass", ".", "isEnum", "(", ")", ")", ")", "&&", "sourceType", "==", "declaringClass", "&&", "methodScope", ".", "lastVisibleFieldID", ">=", "0", "&&", "fieldBinding", ".", "id", ">=", "methodScope", ".", "lastVisibleFieldID", "&&", "(", "!", "fieldBinding", ".", "isStatic", "(", ")", "||", "methodScope", ".", "isStatic", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "forwardReference", "(", "this", ",", "this", ".", "indexOfFirstFieldBinding", "-", "1", ",", "fieldBinding", ")", ";", "}", "if", "(", "isFieldUseDeprecated", "(", "fieldBinding", ",", "scope", ",", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsStrictlyAssigned", ")", "!=", "0", "&&", "this", ".", "indexOfFirstFieldBinding", "==", "this", ".", "tokens", ".", "length", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "deprecatedField", "(", "fieldBinding", ",", "this", ")", ";", "}", "if", "(", "fieldBinding", ".", "isStatic", "(", ")", ")", "{", "if", "(", "declaringClass", ".", "isEnum", "(", ")", ")", "{", "if", "(", "(", "sourceType", "==", "declaringClass", "||", "sourceType", ".", "superclass", "==", "declaringClass", ")", "&&", "fieldBinding", ".", "constant", "(", ")", "==", "Constant", ".", "NotAConstant", "&&", "!", "methodScope", ".", "isStatic", "&&", "methodScope", ".", "isInsideInitializerOrConstructor", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "enumStaticFieldUsedDuringInitialization", "(", "fieldBinding", ",", "this", ")", ";", "}", "}", "if", "(", "this", ".", "indexOfFirstFieldBinding", ">", "1", "&&", "fieldBinding", ".", "declaringClass", "!=", "this", ".", "actualReceiverType", "&&", "fieldBinding", ".", "declaringClass", ".", "canBeSeenBy", "(", "scope", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "indirectAccessToStaticField", "(", "this", ",", "fieldBinding", ")", ";", "}", "}", "else", "{", "if", "(", "this", ".", "indexOfFirstFieldBinding", "==", "1", "&&", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "UnqualifiedFieldAccess", ")", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unqualifiedFieldAccess", "(", "this", ",", "fieldBinding", ")", ";", "}", "if", "(", "this", ".", "indexOfFirstFieldBinding", ">", "1", "||", "scope", ".", "methodScope", "(", ")", ".", "isStatic", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "staticFieldAccessToNonStaticVariable", "(", "this", ",", "fieldBinding", ")", ";", "return", "null", ";", "}", "}", "this", ".", "resolvedType", "=", "getOtherFieldBindings", "(", "scope", ")", ";", "if", "(", "this", ".", "resolvedType", "!=", "null", "&&", "(", "this", ".", "resolvedType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "FieldBinding", "lastField", "=", "this", ".", "indexOfFirstFieldBinding", "==", "this", ".", "tokens", ".", "length", "?", "(", "FieldBinding", ")", "this", ".", "binding", ":", "this", ".", "otherBindings", "[", "this", ".", "otherBindings", ".", "length", "-", "1", "]", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidField", "(", "this", ",", "new", "ProblemFieldBinding", "(", "lastField", ".", "declaringClass", ",", "lastField", ".", "name", ",", "ProblemReasons", ".", "NotFound", ")", ",", "this", ".", "tokens", ".", "length", ",", "this", ".", "resolvedType", ".", "leafComponentType", "(", ")", ")", ";", "return", "null", ";", "}", "return", "this", ".", "resolvedType", ";", "}", "this", ".", "bits", "&=", "~", "ASTNode", ".", "RestrictiveFlagMASK", ";", "this", ".", "bits", "|=", "Binding", ".", "TYPE", ";", "case", "Binding", ".", "TYPE", ":", "TypeBinding", "type", "=", "(", "TypeBinding", ")", "this", ".", "binding", ";", "type", "=", "scope", ".", "environment", "(", ")", ".", "convertToRawType", "(", "type", ",", "false", ")", ";", "return", "this", ".", "resolvedType", "=", "type", ";", "}", "}", "return", "this", ".", "resolvedType", "=", "reportError", "(", "scope", ")", ";", "}", "public", "void", "setFieldIndex", "(", "int", "index", ")", "{", "this", ".", "indexOfFirstFieldBinding", "=", "index", ";", "}", "protected", "void", "setGenericCast", "(", "int", "index", ",", "TypeBinding", "someGenericCast", ")", "{", "if", "(", "someGenericCast", "==", "null", ")", "return", ";", "if", "(", "index", "==", "0", ")", "{", "this", ".", "genericCast", "=", "someGenericCast", ";", "}", "else", "{", "if", "(", "this", ".", "otherGenericCasts", "==", "null", ")", "{", "this", ".", "otherGenericCasts", "=", "new", "TypeBinding", "[", "this", ".", "otherBindings", ".", "length", "]", ";", "}", "this", ".", "otherGenericCasts", "[", "index", "-", "1", "]", "=", "someGenericCast", ";", "}", "}", "protected", "void", "setSyntheticAccessor", "(", "FieldBinding", "fieldBinding", ",", "int", "index", ",", "SyntheticMethodBinding", "syntheticAccessor", ")", "{", "if", "(", "index", "<", "0", ")", "{", "this", ".", "syntheticWriteAccessor", "=", "syntheticAccessor", ";", "}", "else", "{", "if", "(", "this", ".", "syntheticReadAccessors", "==", "null", ")", "{", "this", ".", "syntheticReadAccessors", "=", "new", "SyntheticMethodBinding", "[", "this", ".", "otherBindings", "==", "null", "?", "1", ":", "this", ".", "otherBindings", ".", "length", "+", "1", "]", ";", "}", "this", ".", "syntheticReadAccessors", "[", "index", "]", "=", "syntheticAccessor", ";", "}", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "String", "unboundReferenceErrorName", "(", ")", "{", "return", "new", "String", "(", "this", ".", "tokens", "[", "0", "]", ")", ";", "}", "}", "</s>" ]
5,691
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "JavadocSingleNameReference", "extends", "SingleNameReference", "{", "public", "int", "tagSourceStart", ",", "tagSourceEnd", ";", "public", "JavadocSingleNameReference", "(", "char", "[", "]", "source", ",", "long", "pos", ",", "int", "tagStart", ",", "int", "tagEnd", ")", "{", "super", "(", "source", ",", "pos", ")", ";", "this", ".", "tagSourceStart", "=", "tagStart", ";", "this", ".", "tagSourceEnd", "=", "tagEnd", ";", "this", ".", "bits", "|=", "InsideJavadoc", ";", "}", "public", "void", "resolve", "(", "BlockScope", "scope", ")", "{", "resolve", "(", "scope", ",", "true", ",", "scope", ".", "compilerOptions", "(", ")", ".", "reportUnusedParameterIncludeDocCommentReference", ")", ";", "}", "public", "void", "resolve", "(", "BlockScope", "scope", ",", "boolean", "warn", ",", "boolean", "considerParamRefAsUsage", ")", "{", "LocalVariableBinding", "variableBinding", "=", "scope", ".", "findVariable", "(", "this", ".", "token", ")", ";", "if", "(", "variableBinding", "!=", "null", "&&", "variableBinding", ".", "isValidBinding", "(", ")", "&&", "(", "(", "variableBinding", ".", "tagBits", "&", "TagBits", ".", "IsArgument", ")", "!=", "0", ")", ")", "{", "this", ".", "binding", "=", "variableBinding", ";", "if", "(", "considerParamRefAsUsage", ")", "{", "variableBinding", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "}", "return", ";", "}", "if", "(", "warn", ")", "{", "try", "{", "MethodScope", "methScope", "=", "(", "MethodScope", ")", "scope", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocUndeclaredParamTagName", "(", "this", ".", "token", ",", "this", ".", "sourceStart", ",", "this", ".", "sourceEnd", ",", "methScope", ".", "referenceMethod", "(", ")", ".", "modifiers", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocUndeclaredParamTagName", "(", "this", ".", "token", ",", "this", ".", "sourceStart", ",", "this", ".", "sourceEnd", ",", "-", "1", ")", ";", "}", "}", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,692
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "ParameterizedQualifiedTypeReference", "extends", "ArrayQualifiedTypeReference", "{", "public", "TypeReference", "[", "]", "[", "]", "typeArguments", ";", "public", "ParameterizedQualifiedTypeReference", "(", "char", "[", "]", "[", "]", "tokens", ",", "TypeReference", "[", "]", "[", "]", "typeArguments", ",", "int", "dim", ",", "long", "[", "]", "positions", ")", "{", "super", "(", "tokens", ",", "dim", ",", "positions", ")", ";", "this", ".", "typeArguments", "=", "typeArguments", ";", "}", "public", "void", "checkBounds", "(", "Scope", "scope", ")", "{", "if", "(", "this", ".", "resolvedType", "==", "null", ")", "return", ";", "checkBounds", "(", "(", "ReferenceBinding", ")", "this", ".", "resolvedType", ".", "leafComponentType", "(", ")", ",", "scope", ",", "this", ".", "typeArguments", ".", "length", "-", "1", ")", ";", "}", "public", "void", "checkBounds", "(", "ReferenceBinding", "type", ",", "Scope", "scope", ",", "int", "index", ")", "{", "if", "(", "index", ">", "0", "&&", "type", ".", "enclosingType", "(", ")", "!=", "null", ")", "{", "checkBounds", "(", "type", ".", "enclosingType", "(", ")", ",", "scope", ",", "index", "-", "1", ")", ";", "}", "if", "(", "type", ".", "isParameterizedTypeWithActualArguments", "(", ")", ")", "{", "ParameterizedTypeBinding", "parameterizedType", "=", "(", "ParameterizedTypeBinding", ")", "type", ";", "ReferenceBinding", "currentType", "=", "parameterizedType", ".", "genericType", "(", ")", ";", "TypeVariableBinding", "[", "]", "typeVariables", "=", "currentType", ".", "typeVariables", "(", ")", ";", "if", "(", "typeVariables", "!=", "null", ")", "{", "parameterizedType", ".", "boundCheck", "(", "scope", ",", "this", ".", "typeArguments", "[", "index", "]", ")", ";", "}", "}", "}", "public", "TypeReference", "copyDims", "(", "int", "dim", ")", "{", "return", "new", "ParameterizedQualifiedTypeReference", "(", "this", ".", "tokens", ",", "this", ".", "typeArguments", ",", "dim", ",", "this", ".", "sourcePositions", ")", ";", "}", "public", "char", "[", "]", "[", "]", "getParameterizedTypeName", "(", ")", "{", "int", "length", "=", "this", ".", "tokens", ".", "length", ";", "char", "[", "]", "[", "]", "qParamName", "=", "new", "char", "[", "length", "]", "[", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeReference", "[", "]", "arguments", "=", "this", ".", "typeArguments", "[", "i", "]", ";", "if", "(", "arguments", "==", "null", ")", "{", "qParamName", "[", "i", "]", "=", "this", ".", "tokens", "[", "i", "]", ";", "}", "else", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "5", ")", ";", "buffer", ".", "append", "(", "this", ".", "tokens", "[", "i", "]", ")", ";", "buffer", ".", "append", "(", "'<'", ")", ";", "for", "(", "int", "j", "=", "0", ",", "argLength", "=", "arguments", ".", "length", ";", "j", "<", "argLength", ";", "j", "++", ")", "{", "if", "(", "j", ">", "0", ")", "buffer", ".", "append", "(", "','", ")", ";", "buffer", ".", "append", "(", "CharOperation", ".", "concatWith", "(", "arguments", "[", "j", "]", ".", "getParameterizedTypeName", "(", ")", ",", "'.'", ")", ")", ";", "}", "buffer", ".", "append", "(", "'>'", ")", ";", "int", "nameLength", "=", "buffer", ".", "length", "(", ")", ";", "qParamName", "[", "i", "]", "=", "new", "char", "[", "nameLength", "]", ";", "buffer", ".", "getChars", "(", "0", ",", "nameLength", ",", "qParamName", "[", "i", "]", ",", "0", ")", ";", "}", "}", "int", "dim", "=", "this", ".", "dimensions", ";", "if", "(", "dim", ">", "0", ")", "{", "char", "[", "]", "dimChars", "=", "new", "char", "[", "dim", "*", "2", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "dim", ";", "i", "++", ")", "{", "int", "index", "=", "i", "*", "2", ";", "dimChars", "[", "index", "]", "=", "'['", ";", "dimChars", "[", "index", "+", "1", "]", "=", "']'", ";", "}", "qParamName", "[", "length", "-", "1", "]", "=", "CharOperation", ".", "concat", "(", "qParamName", "[", "length", "-", "1", "]", ",", "dimChars", ")", ";", "}", "return", "qParamName", ";", "}", "protected", "TypeBinding", "getTypeBinding", "(", "Scope", "scope", ")", "{", "return", "null", ";", "}", "private", "TypeBinding", "internalResolveType", "(", "Scope", "scope", ",", "boolean", "checkBounds", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DidResolve", ")", "!=", "0", ")", "{", "if", "(", "this", ".", "resolvedType", "!=", "null", ")", "{", "if", "(", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "return", "this", ".", "resolvedType", ";", "}", "else", "{", "switch", "(", "this", ".", "resolvedType", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "case", "ProblemReasons", ".", "NotVisible", ":", "case", "ProblemReasons", ".", "InheritedNameHidesEnclosingName", ":", "TypeBinding", "type", "=", "this", ".", "resolvedType", ".", "closestMatch", "(", ")", ";", "return", "type", ";", "default", ":", "return", "null", ";", "}", "}", "}", "}", "this", ".", "bits", "|=", "ASTNode", ".", "DidResolve", ";", "boolean", "isClassScope", "=", "scope", ".", "kind", "==", "Scope", ".", "CLASS_SCOPE", ";", "Binding", "binding", "=", "scope", ".", "getPackage", "(", "this", ".", "tokens", ")", ";", "if", "(", "binding", "!=", "null", "&&", "!", "binding", ".", "isValidBinding", "(", ")", ")", "{", "this", ".", "resolvedType", "=", "(", "ReferenceBinding", ")", "binding", ";", "reportInvalidType", "(", "scope", ")", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "tokens", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "TypeReference", "[", "]", "args", "=", "this", ".", "typeArguments", "[", "i", "]", ";", "if", "(", "args", "!=", "null", ")", "{", "int", "argLength", "=", "args", ".", "length", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "argLength", ";", "j", "++", ")", "{", "TypeReference", "typeArgument", "=", "args", "[", "j", "]", ";", "if", "(", "isClassScope", ")", "{", "typeArgument", ".", "resolveType", "(", "(", "ClassScope", ")", "scope", ")", ";", "}", "else", "{", "typeArgument", ".", "resolveType", "(", "(", "BlockScope", ")", "scope", ",", "checkBounds", ")", ";", "}", "}", "}", "}", "return", "null", ";", "}", "PackageBinding", "packageBinding", "=", "binding", "==", "null", "?", "null", ":", "(", "PackageBinding", ")", "binding", ";", "boolean", "typeIsConsistent", "=", "true", ";", "ReferenceBinding", "qualifyingType", "=", "null", ";", "for", "(", "int", "i", "=", "packageBinding", "==", "null", "?", "0", ":", "packageBinding", ".", "compoundName", ".", "length", ",", "max", "=", "this", ".", "tokens", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "findNextTypeBinding", "(", "i", ",", "scope", ",", "packageBinding", ")", ";", "if", "(", "!", "(", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", ")", "{", "reportInvalidType", "(", "scope", ")", ";", "for", "(", "int", "j", "=", "i", ";", "j", "<", "max", ";", "j", "++", ")", "{", "TypeReference", "[", "]", "args", "=", "this", ".", "typeArguments", "[", "j", "]", ";", "if", "(", "args", "!=", "null", ")", "{", "int", "argLength", "=", "args", ".", "length", ";", "for", "(", "int", "k", "=", "0", ";", "k", "<", "argLength", ";", "k", "++", ")", "{", "TypeReference", "typeArgument", "=", "args", "[", "k", "]", ";", "if", "(", "isClassScope", ")", "{", "typeArgument", ".", "resolveType", "(", "(", "ClassScope", ")", "scope", ")", ";", "}", "else", "{", "typeArgument", ".", "resolveType", "(", "(", "BlockScope", ")", "scope", ")", ";", "}", "}", "}", "}", "return", "null", ";", "}", "ReferenceBinding", "currentType", "=", "(", "ReferenceBinding", ")", "this", ".", "resolvedType", ";", "if", "(", "qualifyingType", "==", "null", ")", "{", "qualifyingType", "=", "currentType", ".", "enclosingType", "(", ")", ";", "if", "(", "qualifyingType", "!=", "null", ")", "{", "qualifyingType", "=", "currentType", ".", "isStatic", "(", ")", "?", "(", "ReferenceBinding", ")", "scope", ".", "environment", "(", ")", ".", "convertToRawType", "(", "qualifyingType", ",", "false", ")", ":", "scope", ".", "environment", "(", ")", ".", "convertToParameterizedType", "(", "qualifyingType", ")", ";", "}", "}", "else", "{", "if", "(", "typeIsConsistent", "&&", "currentType", ".", "isStatic", "(", ")", "&&", "(", "qualifyingType", ".", "isParameterizedTypeWithActualArguments", "(", ")", "||", "qualifyingType", ".", "isGenericType", "(", ")", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "staticMemberOfParameterizedType", "(", "this", ",", "scope", ".", "environment", "(", ")", ".", "createParameterizedType", "(", "(", "ReferenceBinding", ")", "currentType", ".", "erasure", "(", ")", ",", "null", ",", "qualifyingType", ")", ",", "i", ")", ";", "typeIsConsistent", "=", "false", ";", "}", "ReferenceBinding", "enclosingType", "=", "currentType", ".", "enclosingType", "(", ")", ";", "if", "(", "enclosingType", "!=", "null", "&&", "enclosingType", ".", "erasure", "(", ")", "!=", "qualifyingType", ".", "erasure", "(", ")", ")", "{", "qualifyingType", "=", "enclosingType", ";", "}", "}", "TypeReference", "[", "]", "args", "=", "this", ".", "typeArguments", "[", "i", "]", ";", "if", "(", "args", "!=", "null", ")", "{", "TypeReference", "keep", "=", "null", ";", "if", "(", "isClassScope", ")", "{", "keep", "=", "(", "(", "ClassScope", ")", "scope", ")", ".", "superTypeReference", ";", "(", "(", "ClassScope", ")", "scope", ")", ".", "superTypeReference", "=", "null", ";", "}", "int", "argLength", "=", "args", ".", "length", ";", "TypeBinding", "[", "]", "argTypes", "=", "new", "TypeBinding", "[", "argLength", "]", ";", "boolean", "argHasError", "=", "false", ";", "ReferenceBinding", "currentOriginal", "=", "(", "ReferenceBinding", ")", "currentType", ".", "original", "(", ")", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "argLength", ";", "j", "++", ")", "{", "TypeReference", "arg", "=", "args", "[", "j", "]", ";", "TypeBinding", "argType", "=", "isClassScope", "?", "arg", ".", "resolveTypeArgument", "(", "(", "ClassScope", ")", "scope", ",", "currentOriginal", ",", "j", ")", ":", "arg", ".", "resolveTypeArgument", "(", "(", "BlockScope", ")", "scope", ",", "currentOriginal", ",", "j", ")", ";", "if", "(", "argType", "==", "null", ")", "{", "argHasError", "=", "true", ";", "}", "else", "{", "argTypes", "[", "j", "]", "=", "argType", ";", "}", "}", "if", "(", "argHasError", ")", "{", "return", "null", ";", "}", "if", "(", "isClassScope", ")", "{", "(", "(", "ClassScope", ")", "scope", ")", ".", "superTypeReference", "=", "keep", ";", "if", "(", "(", "(", "ClassScope", ")", "scope", ")", ".", "detectHierarchyCycle", "(", "currentOriginal", ",", "this", ")", ")", "return", "null", ";", "}", "TypeVariableBinding", "[", "]", "typeVariables", "=", "currentOriginal", ".", "typeVariables", "(", ")", ";", "if", "(", "typeVariables", "==", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "if", "(", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "nonGenericTypeCannotBeParameterized", "(", "i", ",", "this", ",", "currentType", ",", "argTypes", ")", ";", "return", "null", ";", "}", "this", ".", "resolvedType", "=", "(", "qualifyingType", "!=", "null", "&&", "qualifyingType", ".", "isParameterizedType", "(", ")", ")", "?", "scope", ".", "environment", "(", ")", ".", "createParameterizedType", "(", "currentOriginal", ",", "null", ",", "qualifyingType", ")", ":", "currentType", ";", "if", "(", "this", ".", "dimensions", ">", "0", ")", "{", "if", "(", "this", ".", "dimensions", ">", "255", ")", "scope", ".", "problemReporter", "(", ")", ".", "tooManyDimensions", "(", "this", ")", ";", "this", ".", "resolvedType", "=", "scope", ".", "createArrayType", "(", "this", ".", "resolvedType", ",", "this", ".", "dimensions", ")", ";", "}", "return", "this", ".", "resolvedType", ";", "}", "else", "if", "(", "argLength", "!=", "typeVariables", ".", "length", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "incorrectArityForParameterizedType", "(", "this", ",", "currentType", ",", "argTypes", ",", "i", ")", ";", "return", "null", ";", "}", "if", "(", "typeIsConsistent", "&&", "!", "currentType", ".", "isStatic", "(", ")", ")", "{", "ReferenceBinding", "actualEnclosing", "=", "currentType", ".", "enclosingType", "(", ")", ";", "if", "(", "actualEnclosing", "!=", "null", "&&", "actualEnclosing", ".", "isRawType", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "rawMemberTypeCannotBeParameterized", "(", "this", ",", "scope", ".", "environment", "(", ")", ".", "createRawType", "(", "currentOriginal", ",", "actualEnclosing", ")", ",", "argTypes", ")", ";", "typeIsConsistent", "=", "false", ";", "}", "}", "ParameterizedTypeBinding", "parameterizedType", "=", "scope", ".", "environment", "(", ")", ".", "createParameterizedType", "(", "currentOriginal", ",", "argTypes", ",", "qualifyingType", ")", ";", "if", "(", "checkBounds", ")", "parameterizedType", ".", "boundCheck", "(", "scope", ",", "args", ")", ";", "else", "scope", ".", "deferBoundCheck", "(", "this", ")", ";", "qualifyingType", "=", "parameterizedType", ";", "}", "else", "{", "ReferenceBinding", "currentOriginal", "=", "(", "ReferenceBinding", ")", "currentType", ".", "original", "(", ")", ";", "if", "(", "isClassScope", ")", "if", "(", "(", "(", "ClassScope", ")", "scope", ")", ".", "detectHierarchyCycle", "(", "currentOriginal", ",", "this", ")", ")", "return", "null", ";", "if", "(", "currentOriginal", ".", "isGenericType", "(", ")", ")", "{", "if", "(", "typeIsConsistent", "&&", "qualifyingType", "!=", "null", "&&", "qualifyingType", ".", "isParameterizedType", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "parameterizedMemberTypeMissingArguments", "(", "this", ",", "scope", ".", "environment", "(", ")", ".", "createParameterizedType", "(", "currentOriginal", ",", "null", ",", "qualifyingType", ")", ",", "i", ")", ";", "typeIsConsistent", "=", "false", ";", "}", "qualifyingType", "=", "scope", ".", "environment", "(", ")", ".", "createRawType", "(", "currentOriginal", ",", "qualifyingType", ")", ";", "}", "else", "{", "qualifyingType", "=", "(", "qualifyingType", "!=", "null", "&&", "qualifyingType", ".", "isParameterizedType", "(", ")", ")", "?", "scope", ".", "environment", "(", ")", ".", "createParameterizedType", "(", "currentOriginal", ",", "null", ",", "qualifyingType", ")", ":", "currentType", ";", "}", "}", "if", "(", "isTypeUseDeprecated", "(", "qualifyingType", ",", "scope", ")", ")", "reportDeprecatedType", "(", "qualifyingType", ",", "scope", ",", "i", ")", ";", "this", ".", "resolvedType", "=", "qualifyingType", ";", "}", "if", "(", "this", ".", "dimensions", ">", "0", ")", "{", "if", "(", "this", ".", "dimensions", ">", "255", ")", "scope", ".", "problemReporter", "(", ")", ".", "tooManyDimensions", "(", "this", ")", ";", "this", ".", "resolvedType", "=", "scope", ".", "createArrayType", "(", "this", ".", "resolvedType", ",", "this", ".", "dimensions", ")", ";", "}", "return", "this", ".", "resolvedType", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "int", "length", "=", "this", ".", "tokens", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", "-", "1", ";", "i", "++", ")", "{", "output", ".", "append", "(", "this", ".", "tokens", "[", "i", "]", ")", ";", "TypeReference", "[", "]", "typeArgument", "=", "this", ".", "typeArguments", "[", "i", "]", ";", "if", "(", "typeArgument", "!=", "null", ")", "{", "output", ".", "append", "(", "'<'", ")", ";", "int", "max", "=", "typeArgument", ".", "length", "-", "1", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "max", ";", "j", "++", ")", "{", "typeArgument", "[", "j", "]", ".", "print", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "\",", "\"", ")", ";", "}", "typeArgument", "[", "max", "]", ".", "print", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "'>'", ")", ";", "}", "output", ".", "append", "(", "'.'", ")", ";", "}", "output", ".", "append", "(", "this", ".", "tokens", "[", "length", "-", "1", "]", ")", ";", "TypeReference", "[", "]", "typeArgument", "=", "this", ".", "typeArguments", "[", "length", "-", "1", "]", ";", "if", "(", "typeArgument", "!=", "null", ")", "{", "output", ".", "append", "(", "'<'", ")", ";", "int", "max", "=", "typeArgument", ".", "length", "-", "1", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "max", ";", "j", "++", ")", "{", "typeArgument", "[", "j", "]", ".", "print", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "\",", "\"", ")", ";", "}", "typeArgument", "[", "max", "]", ".", "print", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "'>'", ")", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "IsVarArgs", ")", "!=", "0", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "dimensions", "-", "1", ";", "i", "++", ")", "{", "output", ".", "append", "(", "\"[]\"", ")", ";", "}", "output", ".", "append", "(", "\"...\"", ")", ";", "}", "else", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "dimensions", ";", "i", "++", ")", "{", "output", ".", "append", "(", "\"[]\"", ")", ";", "}", "}", "return", "output", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ",", "boolean", "checkBounds", ")", "{", "return", "internalResolveType", "(", "scope", ",", "checkBounds", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "ClassScope", "scope", ")", "{", "return", "internalResolveType", "(", "scope", ",", "false", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "typeArguments", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "if", "(", "this", ".", "typeArguments", "[", "i", "]", "!=", "null", ")", "{", "for", "(", "int", "j", "=", "0", ",", "max2", "=", "this", ".", "typeArguments", "[", "i", "]", ".", "length", ";", "j", "<", "max2", ";", "j", "++", ")", "{", "this", ".", "typeArguments", "[", "i", "]", "[", "j", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "typeArguments", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "if", "(", "this", ".", "typeArguments", "[", "i", "]", "!=", "null", ")", "{", "for", "(", "int", "j", "=", "0", ",", "max2", "=", "this", ".", "typeArguments", "[", "i", "]", ".", "length", ";", "j", "<", "max2", ";", "j", "++", ")", "{", "this", ".", "typeArguments", "[", "i", "]", "[", "j", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,693
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ClassScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Scope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "public", "class", "JavadocArrayQualifiedTypeReference", "extends", "ArrayQualifiedTypeReference", "{", "public", "int", "tagSourceStart", ",", "tagSourceEnd", ";", "public", "JavadocArrayQualifiedTypeReference", "(", "JavadocQualifiedTypeReference", "typeRef", ",", "int", "dim", ")", "{", "super", "(", "typeRef", ".", "tokens", ",", "dim", ",", "typeRef", ".", "sourcePositions", ")", ";", "}", "protected", "void", "reportInvalidType", "(", "Scope", "scope", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidType", "(", "this", ",", "this", ".", "resolvedType", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "protected", "void", "reportDeprecatedType", "(", "TypeBinding", "type", ",", "Scope", "scope", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocDeprecatedType", "(", "type", ",", "this", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,694
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "abstract", "class", "OperatorExpression", "extends", "Expression", "implements", "OperatorIds", "{", "public", "static", "int", "[", "]", "[", "]", "OperatorSignatures", "=", "new", "int", "[", "NumberOfTables", "]", "[", "]", ";", "static", "{", "classInitialize", "(", ")", ";", "}", "public", "OperatorExpression", "(", ")", "{", "super", "(", ")", ";", "}", "public", "static", "final", "void", "classInitialize", "(", ")", "{", "OperatorSignatures", "[", "AND", "]", "=", "get_AND", "(", ")", ";", "OperatorSignatures", "[", "AND_AND", "]", "=", "get_AND_AND", "(", ")", ";", "OperatorSignatures", "[", "DIVIDE", "]", "=", "get_DIVIDE", "(", ")", ";", "OperatorSignatures", "[", "EQUAL_EQUAL", "]", "=", "get_EQUAL_EQUAL", "(", ")", ";", "OperatorSignatures", "[", "GREATER", "]", "=", "get_GREATER", "(", ")", ";", "OperatorSignatures", "[", "GREATER_EQUAL", "]", "=", "get_GREATER_EQUAL", "(", ")", ";", "OperatorSignatures", "[", "LEFT_SHIFT", "]", "=", "get_LEFT_SHIFT", "(", ")", ";", "OperatorSignatures", "[", "LESS", "]", "=", "get_LESS", "(", ")", ";", "OperatorSignatures", "[", "LESS_EQUAL", "]", "=", "get_LESS_EQUAL", "(", ")", ";", "OperatorSignatures", "[", "MINUS", "]", "=", "get_MINUS", "(", ")", ";", "OperatorSignatures", "[", "MULTIPLY", "]", "=", "get_MULTIPLY", "(", ")", ";", "OperatorSignatures", "[", "OR", "]", "=", "get_OR", "(", ")", ";", "OperatorSignatures", "[", "OR_OR", "]", "=", "get_OR_OR", "(", ")", ";", "OperatorSignatures", "[", "PLUS", "]", "=", "get_PLUS", "(", ")", ";", "OperatorSignatures", "[", "REMAINDER", "]", "=", "get_REMAINDER", "(", ")", ";", "OperatorSignatures", "[", "RIGHT_SHIFT", "]", "=", "get_RIGHT_SHIFT", "(", ")", ";", "OperatorSignatures", "[", "UNSIGNED_RIGHT_SHIFT", "]", "=", "get_UNSIGNED_RIGHT_SHIFT", "(", ")", ";", "OperatorSignatures", "[", "XOR", "]", "=", "get_XOR", "(", ")", ";", "}", "public", "static", "final", "String", "generateTableTestCase", "(", ")", "{", "int", "[", "]", "operators", "=", "new", "int", "[", "]", "{", "AND", ",", "AND_AND", ",", "DIVIDE", ",", "GREATER", ",", "GREATER_EQUAL", ",", "LEFT_SHIFT", ",", "LESS", ",", "LESS_EQUAL", ",", "MINUS", ",", "MULTIPLY", ",", "OR", ",", "OR_OR", ",", "PLUS", ",", "REMAINDER", ",", "RIGHT_SHIFT", ",", "UNSIGNED_RIGHT_SHIFT", ",", "XOR", "}", ";", "class", "Decode", "{", "public", "final", "String", "constant", "(", "int", "code", ")", "{", "switch", "(", "code", ")", "{", "case", "T_boolean", ":", "return", "\"true\"", ";", "case", "T_byte", ":", "return", "\"((byte)", "3)\"", ";", "case", "T_char", ":", "return", "\"'A'\"", ";", "case", "T_double", ":", "return", "\"300.0d\"", ";", "case", "T_float", ":", "return", "\"100.0f\"", ";", "case", "T_int", ":", "return", "\"1\"", ";", "case", "T_long", ":", "return", "\"7L\"", ";", "case", "T_JavaLangString", ":", "return", "\"\"", ";", "case", "T_null", ":", "return", "\"null\"", ";", "case", "T_short", ":", "return", "\"((short)", "5)\"", ";", "case", "T_JavaLangObject", ":", "return", "\"null\"", ";", "}", "return", "Util", ".", "EMPTY_STRING", ";", "}", "public", "final", "String", "type", "(", "int", "code", ")", "{", "switch", "(", "code", ")", "{", "case", "T_boolean", ":", "return", "\"z\"", ";", "case", "T_byte", ":", "return", "\"b\"", ";", "case", "T_char", ":", "return", "\"c\"", ";", "case", "T_double", ":", "return", "\"d\"", ";", "case", "T_float", ":", "return", "\"f\"", ";", "case", "T_int", ":", "return", "\"i\"", ";", "case", "T_long", ":", "return", "\"l\"", ";", "case", "T_JavaLangString", ":", "return", "\"str\"", ";", "case", "T_null", ":", "return", "\"null\"", ";", "case", "T_short", ":", "return", "\"s\"", ";", "case", "T_JavaLangObject", ":", "return", "\"obj\"", ";", "}", "return", "\"xxx\"", ";", "}", "public", "final", "String", "operator", "(", "int", "operator", ")", "{", "switch", "(", "operator", ")", "{", "case", "EQUAL_EQUAL", ":", "return", "\"==\"", ";", "case", "LESS_EQUAL", ":", "return", "\"<=\"", ";", "case", "GREATER_EQUAL", ":", "return", "\">=\"", ";", "case", "LEFT_SHIFT", ":", "return", "\"<<\"", ";", "case", "RIGHT_SHIFT", ":", "return", "\">>\"", ";", "case", "UNSIGNED_RIGHT_SHIFT", ":", "return", "\">>>\"", ";", "case", "OR_OR", ":", "return", "\"||\"", ";", "case", "AND_AND", ":", "return", "\"&&\"", ";", "case", "PLUS", ":", "return", "\"+\"", ";", "case", "MINUS", ":", "return", "\"-\"", ";", "case", "NOT", ":", "return", "\"!\"", ";", "case", "REMAINDER", ":", "return", "\"%\"", ";", "case", "XOR", ":", "return", "\"^\"", ";", "case", "AND", ":", "return", "\"&\"", ";", "case", "MULTIPLY", ":", "return", "\"*\"", ";", "case", "OR", ":", "return", "\"|\"", ";", "case", "TWIDDLE", ":", "return", "\"~\"", ";", "case", "DIVIDE", ":", "return", "\"/\"", ";", "case", "GREATER", ":", "return", "\">\"", ";", "case", "LESS", ":", "return", "\"<\"", ";", "}", "return", "\"????\"", ";", "}", "}", "Decode", "decode", "=", "new", "Decode", "(", ")", ";", "String", "s", ";", "s", "=", "\"\"", "+", "\"\"", "+", "\"\"", "+", "\"\"", "+", "\"\"", "+", "decode", ".", "constant", "(", "T_JavaLangString", ")", "+", "\";n\"", "+", "\"\"", "+", "decode", ".", "constant", "(", "T_int", ")", "+", "\";n\"", "+", "\"\"", "+", "decode", ".", "constant", "(", "T_boolean", ")", "+", "\";n\"", "+", "\"\"", "+", "decode", ".", "constant", "(", "T_char", ")", "+", "\";n\"", "+", "\"\"", "+", "decode", ".", "constant", "(", "T_float", ")", "+", "\";n\"", "+", "\"\"", "+", "decode", ".", "constant", "(", "T_double", ")", "+", "\";n\"", "+", "\"\"", "+", "decode", ".", "constant", "(", "T_byte", ")", "+", "\";n\"", "+", "\"\"", "+", "decode", ".", "constant", "(", "T_short", ")", "+", "\";n\"", "+", "\"\"", "+", "decode", ".", "constant", "(", "T_long", ")", "+", "\";n\"", "+", "\"\"", "+", "decode", ".", "constant", "(", "T_JavaLangObject", ")", "+", "\";n\"", "+", "\"n\"", ";", "int", "error", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "operators", ".", "length", ";", "i", "++", ")", "{", "int", "operator", "=", "operators", "[", "i", "]", ";", "for", "(", "int", "left", "=", "0", ";", "left", "<", "16", ";", "left", "++", ")", "for", "(", "int", "right", "=", "0", ";", "right", "<", "16", ";", "right", "++", ")", "{", "int", "result", "=", "(", "OperatorSignatures", "[", "operator", "]", "[", "(", "left", "<<", "4", ")", "+", "right", "]", ")", "&", "0x0000F", ";", "if", "(", "result", "!=", "T_undefined", ")", "{", "s", "+=", "\"tt\"", "+", "decode", ".", "type", "(", "result", ")", "+", "\"0\"", "+", "\"", "=", "\"", "+", "decode", ".", "type", "(", "left", ")", ";", "s", "+=", "\"", "\"", "+", "decode", ".", "operator", "(", "operator", ")", "+", "\"", "\"", "+", "decode", ".", "type", "(", "right", ")", "+", "\";n\"", ";", "String", "begin", "=", "result", "==", "T_JavaLangString", "?", "\"ttif", "(!", "\"", ":", "\"ttif", "(", "\"", ";", "String", "test", "=", "result", "==", "T_JavaLangString", "?", "\".equals(\"", ":", "\"", "!=", "(\"", ";", "s", "+=", "begin", "+", "decode", ".", "type", "(", "result", ")", "+", "\"0\"", "+", "test", "+", "decode", ".", "constant", "(", "left", ")", "+", "\"", "\"", "+", "decode", ".", "operator", "(", "operator", ")", "+", "\"", "\"", "+", "decode", ".", "constant", "(", "right", ")", "+", "\"))n\"", ";", "s", "+=", "\"\"", "+", "(", "++", "error", ")", "+", "\");n\"", ";", "}", "}", "}", "return", "s", "+=", "\"\"", ";", "}", "public", "static", "final", "int", "[", "]", "get_AND", "(", ")", "{", "int", "[", "]", "table", "=", "new", "int", "[", "16", "*", "16", "]", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Byte2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Byte2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Short2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Char2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Int2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Short2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_boolean", "<<", "4", ")", "+", "T_boolean", "]", "=", "(", "Boolean2Boolean", "<<", "12", ")", "+", "(", "Boolean2Boolean", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Char2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Int2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "return", "table", ";", "}", "public", "static", "final", "int", "[", "]", "get_AND_AND", "(", ")", "{", "int", "[", "]", "table", "=", "new", "int", "[", "16", "*", "16", "]", ";", "table", "[", "(", "T_boolean", "<<", "4", ")", "+", "T_boolean", "]", "=", "(", "Boolean2Boolean", "<<", "12", ")", "+", "(", "Boolean2Boolean", "<<", "4", ")", "+", "T_boolean", ";", "return", "table", ";", "}", "public", "static", "final", "int", "[", "]", "get_DIVIDE", "(", ")", "{", "return", "get_MINUS", "(", ")", ";", "}", "public", "static", "final", "int", "[", "]", "get_EQUAL_EQUAL", "(", ")", "{", "int", "[", "]", "table", "=", "new", "int", "[", "16", "*", "16", "]", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Byte2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Byte2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Byte2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Byte2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Short2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Long2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Long2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Char2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Int2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Short2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Short2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Short2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "T_JavaLangObject", "<<", "16", ")", "+", "(", "T_JavaLangString", "<<", "12", ")", "+", "(", "T_JavaLangObject", "<<", "8", ")", "+", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_JavaLangObject", "]", "=", "(", "T_JavaLangObject", "<<", "16", ")", "+", "(", "T_JavaLangString", "<<", "12", ")", "+", "(", "T_JavaLangObject", "<<", "8", ")", "+", "(", "T_JavaLangObject", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_null", "]", "=", "(", "T_JavaLangObject", "<<", "16", ")", "+", "(", "T_JavaLangString", "<<", "12", ")", "+", "(", "T_JavaLangObject", "<<", "8", ")", "+", "(", "T_null", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_JavaLangObject", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "T_JavaLangObject", "<<", "16", ")", "+", "(", "T_JavaLangObject", "<<", "12", ")", "+", "(", "T_JavaLangObject", "<<", "8", ")", "+", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_JavaLangObject", "<<", "4", ")", "+", "T_JavaLangObject", "]", "=", "(", "T_JavaLangObject", "<<", "16", ")", "+", "(", "T_JavaLangObject", "<<", "12", ")", "+", "(", "T_JavaLangObject", "<<", "8", ")", "+", "(", "T_JavaLangObject", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_JavaLangObject", "<<", "4", ")", "+", "T_null", "]", "=", "(", "T_JavaLangObject", "<<", "16", ")", "+", "(", "T_JavaLangObject", "<<", "12", ")", "+", "(", "T_JavaLangObject", "<<", "8", ")", "+", "(", "T_null", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Byte2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Long2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Short2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Float2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Char2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Int2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Byte2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Long2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Short2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Float2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Char2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Int2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_boolean", "<<", "4", ")", "+", "T_boolean", "]", "=", "(", "Boolean2Boolean", "<<", "12", ")", "+", "(", "Boolean2Boolean", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Char2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Char2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Char2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Int2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Int2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Int2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_null", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "T_JavaLangObject", "<<", "16", ")", "+", "(", "T_null", "<<", "12", ")", "+", "(", "T_JavaLangObject", "<<", "8", ")", "+", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_null", "<<", "4", ")", "+", "T_JavaLangObject", "]", "=", "(", "T_JavaLangObject", "<<", "16", ")", "+", "(", "T_null", "<<", "12", ")", "+", "(", "T_JavaLangObject", "<<", "8", ")", "+", "(", "T_JavaLangObject", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_null", "<<", "4", ")", "+", "T_null", "]", "=", "(", "T_JavaLangObject", "<<", "16", ")", "+", "(", "T_null", "<<", "12", ")", "+", "(", "T_JavaLangObject", "<<", "8", ")", "+", "(", "T_null", "<<", "4", ")", "+", "T_boolean", ";", "return", "table", ";", "}", "public", "static", "final", "int", "[", "]", "get_GREATER", "(", ")", "{", "return", "get_LESS", "(", ")", ";", "}", "public", "static", "final", "int", "[", "]", "get_GREATER_EQUAL", "(", ")", "{", "return", "get_LESS", "(", ")", ";", "}", "public", "static", "final", "int", "[", "]", "get_LEFT_SHIFT", "(", ")", "{", "int", "[", "]", "table", "=", "new", "int", "[", "16", "*", "16", "]", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Long2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Long2Int", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Long2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Long2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Long2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "return", "table", ";", "}", "public", "static", "final", "int", "[", "]", "get_LESS", "(", ")", "{", "int", "[", "]", "table", "=", "new", "int", "[", "16", "*", "16", "]", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Byte2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Byte2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Byte2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Byte2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Short2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Long2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Long2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Char2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Int2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Short2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Short2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Short2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Byte2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Long2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Short2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Float2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Char2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Int2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Byte2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Long2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Short2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Float2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Char2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Int2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Char2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Char2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Char2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Int2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Int2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Int2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_boolean", ";", "return", "table", ";", "}", "public", "static", "final", "int", "[", "]", "get_LESS_EQUAL", "(", ")", "{", "return", "get_LESS", "(", ")", ";", "}", "public", "static", "final", "int", "[", "]", "get_MINUS", "(", ")", "{", "int", "[", "]", "table", "=", "(", "int", "[", "]", ")", "get_PLUS", "(", ")", ".", "clone", "(", ")", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_byte", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_long", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_short", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_void", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_JavaLangObject", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_double", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_float", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_boolean", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_char", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_int", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_null", "]", "=", "T_undefined", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_void", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangObject", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_boolean", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_null", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_null", "<<", "4", ")", "+", "T_null", "]", "=", "T_undefined", ";", "return", "table", ";", "}", "public", "static", "final", "int", "[", "]", "get_MULTIPLY", "(", ")", "{", "return", "get_MINUS", "(", ")", ";", "}", "public", "static", "final", "int", "[", "]", "get_OR", "(", ")", "{", "return", "get_AND", "(", ")", ";", "}", "public", "static", "final", "int", "[", "]", "get_OR_OR", "(", ")", "{", "return", "get_AND_AND", "(", ")", ";", "}", "public", "static", "final", "int", "[", "]", "get_PLUS", "(", ")", "{", "int", "[", "]", "table", "=", "new", "int", "[", "16", "*", "16", "]", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Byte2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "Byte2Byte", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Byte2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Byte2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Byte2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Short2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Long2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Long2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Char2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Int2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Short2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "Short2Short", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Short2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Short2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "Byte2Byte", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_long", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_short", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "Short2Short", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_JavaLangObject", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "Object2Object", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_double", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_float", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_boolean", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "Boolean2Boolean", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_char", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "Char2Char", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_int", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_null", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "T_null", "<<", "8", ")", "+", "(", "T_null", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangObject", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "Object2Object", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Byte2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Long2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Short2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Float2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Char2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Int2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Byte2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Long2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Short2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Float2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Char2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Int2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_boolean", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "Boolean2Boolean", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Char2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "Char2Char", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Char2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Char2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Int2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Int2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Int2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_null", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "T_null", "<<", "16", ")", "+", "(", "T_null", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "return", "table", ";", "}", "public", "static", "final", "int", "[", "]", "get_REMAINDER", "(", ")", "{", "return", "get_MINUS", "(", ")", ";", "}", "public", "static", "final", "int", "[", "]", "get_RIGHT_SHIFT", "(", ")", "{", "return", "get_LEFT_SHIFT", "(", ")", ";", "}", "public", "static", "final", "int", "[", "]", "get_UNSIGNED_RIGHT_SHIFT", "(", ")", "{", "return", "get_LEFT_SHIFT", "(", ")", ";", "}", "public", "static", "final", "int", "[", "]", "get_XOR", "(", ")", "{", "return", "get_AND", "(", ")", ";", "}", "public", "String", "operatorToString", "(", ")", "{", "switch", "(", "(", "this", ".", "bits", "&", "OperatorMASK", ")", ">>", "OperatorSHIFT", ")", "{", "case", "EQUAL_EQUAL", ":", "return", "\"==\"", ";", "case", "LESS_EQUAL", ":", "return", "\"<=\"", ";", "case", "GREATER_EQUAL", ":", "return", "\">=\"", ";", "case", "NOT_EQUAL", ":", "return", "\"!=\"", ";", "case", "LEFT_SHIFT", ":", "return", "\"<<\"", ";", "case", "RIGHT_SHIFT", ":", "return", "\">>\"", ";", "case", "UNSIGNED_RIGHT_SHIFT", ":", "return", "\">>>\"", ";", "case", "OR_OR", ":", "return", "\"||\"", ";", "case", "AND_AND", ":", "return", "\"&&\"", ";", "case", "PLUS", ":", "return", "\"+\"", ";", "case", "MINUS", ":", "return", "\"-\"", ";", "case", "NOT", ":", "return", "\"!\"", ";", "case", "REMAINDER", ":", "return", "\"%\"", ";", "case", "XOR", ":", "return", "\"^\"", ";", "case", "AND", ":", "return", "\"&\"", ";", "case", "MULTIPLY", ":", "return", "\"*\"", ";", "case", "OR", ":", "return", "\"|\"", ";", "case", "TWIDDLE", ":", "return", "\"~\"", ";", "case", "DIVIDE", ":", "return", "\"/\"", ";", "case", "GREATER", ":", "return", "\">\"", ";", "case", "LESS", ":", "return", "\"<\"", ";", "case", "QUESTIONCOLON", ":", "return", "\"?:\"", ";", "case", "EQUAL", ":", "return", "\"=\"", ";", "}", "return", "\"\"", ";", "}", "public", "int", "nullStatus", "(", "FlowInfo", "flowInfo", ")", "{", "return", "FlowInfo", ".", "NON_NULL", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "output", ".", "append", "(", "'('", ")", ";", "return", "printExpressionNoParenthesis", "(", "0", ",", "output", ")", ".", "append", "(", "')'", ")", ";", "}", "public", "abstract", "StringBuffer", "printExpressionNoParenthesis", "(", "int", "indent", ",", "StringBuffer", "output", ")", ";", "}", "</s>" ]
5,695
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "AbortCompilation", ";", "public", "class", "QualifiedTypeReference", "extends", "TypeReference", "{", "public", "char", "[", "]", "[", "]", "tokens", ";", "public", "long", "[", "]", "sourcePositions", ";", "public", "QualifiedTypeReference", "(", "char", "[", "]", "[", "]", "sources", ",", "long", "[", "]", "poss", ")", "{", "this", ".", "tokens", "=", "sources", ";", "this", ".", "sourcePositions", "=", "poss", ";", "this", ".", "sourceStart", "=", "(", "int", ")", "(", "this", ".", "sourcePositions", "[", "0", "]", ">>>", "32", ")", ";", "this", ".", "sourceEnd", "=", "(", "int", ")", "(", "this", ".", "sourcePositions", "[", "this", ".", "sourcePositions", ".", "length", "-", "1", "]", "&", "0x00000000FFFFFFFFL", ")", ";", "}", "public", "TypeReference", "copyDims", "(", "int", "dim", ")", "{", "return", "new", "ArrayQualifiedTypeReference", "(", "this", ".", "tokens", ",", "dim", ",", "this", ".", "sourcePositions", ")", ";", "}", "protected", "TypeBinding", "findNextTypeBinding", "(", "int", "tokenIndex", ",", "Scope", "scope", ",", "PackageBinding", "packageBinding", ")", "{", "LookupEnvironment", "env", "=", "scope", ".", "environment", "(", ")", ";", "try", "{", "env", ".", "missingClassFileLocation", "=", "this", ";", "if", "(", "this", ".", "resolvedType", "==", "null", ")", "{", "this", ".", "resolvedType", "=", "scope", ".", "getType", "(", "this", ".", "tokens", "[", "tokenIndex", "]", ",", "packageBinding", ")", ";", "}", "else", "{", "this", ".", "resolvedType", "=", "scope", ".", "getMemberType", "(", "this", ".", "tokens", "[", "tokenIndex", "]", ",", "(", "ReferenceBinding", ")", "this", ".", "resolvedType", ")", ";", "if", "(", "!", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "this", ".", "resolvedType", "=", "new", "ProblemReferenceBinding", "(", "CharOperation", ".", "subarray", "(", "this", ".", "tokens", ",", "0", ",", "tokenIndex", "+", "1", ")", ",", "(", "ReferenceBinding", ")", "this", ".", "resolvedType", ".", "closestMatch", "(", ")", ",", "this", ".", "resolvedType", ".", "problemId", "(", ")", ")", ";", "}", "}", "return", "this", ".", "resolvedType", ";", "}", "catch", "(", "AbortCompilation", "e", ")", "{", "e", ".", "updateContext", "(", "this", ",", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ")", ";", "throw", "e", ";", "}", "finally", "{", "env", ".", "missingClassFileLocation", "=", "null", ";", "}", "}", "public", "char", "[", "]", "getLastToken", "(", ")", "{", "return", "this", ".", "tokens", "[", "this", ".", "tokens", ".", "length", "-", "1", "]", ";", "}", "protected", "TypeBinding", "getTypeBinding", "(", "Scope", "scope", ")", "{", "if", "(", "this", ".", "resolvedType", "!=", "null", ")", "{", "return", "this", ".", "resolvedType", ";", "}", "Binding", "binding", "=", "scope", ".", "getPackage", "(", "this", ".", "tokens", ")", ";", "if", "(", "binding", "!=", "null", "&&", "!", "binding", ".", "isValidBinding", "(", ")", ")", "{", "if", "(", "binding", "instanceof", "ProblemReferenceBinding", "&&", "binding", ".", "problemId", "(", ")", "==", "ProblemReasons", ".", "NotFound", ")", "{", "ProblemReferenceBinding", "problemBinding", "=", "(", "ProblemReferenceBinding", ")", "binding", ";", "Binding", "pkg", "=", "scope", ".", "getTypeOrPackage", "(", "this", ".", "tokens", ")", ";", "return", "new", "ProblemReferenceBinding", "(", "problemBinding", ".", "compoundName", ",", "pkg", "instanceof", "PackageBinding", "?", "null", ":", "scope", ".", "environment", "(", ")", ".", "createMissingType", "(", "null", ",", "this", ".", "tokens", ")", ",", "ProblemReasons", ".", "NotFound", ")", ";", "}", "return", "(", "ReferenceBinding", ")", "binding", ";", "}", "PackageBinding", "packageBinding", "=", "binding", "==", "null", "?", "null", ":", "(", "PackageBinding", ")", "binding", ";", "boolean", "isClassScope", "=", "scope", ".", "kind", "==", "Scope", ".", "CLASS_SCOPE", ";", "ReferenceBinding", "qualifiedType", "=", "null", ";", "for", "(", "int", "i", "=", "packageBinding", "==", "null", "?", "0", ":", "packageBinding", ".", "compoundName", ".", "length", ",", "max", "=", "this", ".", "tokens", ".", "length", ",", "last", "=", "max", "-", "1", ";", "i", "<", "max", ";", "i", "++", ")", "{", "findNextTypeBinding", "(", "i", ",", "scope", ",", "packageBinding", ")", ";", "if", "(", "!", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "return", "this", ".", "resolvedType", ";", "if", "(", "i", "==", "0", "&&", "this", ".", "resolvedType", ".", "isTypeVariable", "(", ")", "&&", "(", "(", "TypeVariableBinding", ")", "this", ".", "resolvedType", ")", ".", "firstBound", "==", "null", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "illegalAccessFromTypeVariable", "(", "(", "TypeVariableBinding", ")", "this", ".", "resolvedType", ",", "this", ")", ";", "return", "null", ";", "}", "if", "(", "i", "<=", "last", "&&", "isTypeUseDeprecated", "(", "this", ".", "resolvedType", ",", "scope", ")", ")", "{", "reportDeprecatedType", "(", "this", ".", "resolvedType", ",", "scope", ",", "i", ")", ";", "}", "if", "(", "isClassScope", ")", "if", "(", "(", "(", "ClassScope", ")", "scope", ")", ".", "detectHierarchyCycle", "(", "this", ".", "resolvedType", ",", "this", ")", ")", "return", "null", ";", "ReferenceBinding", "currentType", "=", "(", "ReferenceBinding", ")", "this", ".", "resolvedType", ";", "if", "(", "qualifiedType", "!=", "null", ")", "{", "ReferenceBinding", "enclosingType", "=", "currentType", ".", "enclosingType", "(", ")", ";", "if", "(", "enclosingType", "!=", "null", "&&", "enclosingType", ".", "erasure", "(", ")", "!=", "qualifiedType", ".", "erasure", "(", ")", ")", "{", "qualifiedType", "=", "enclosingType", ";", "}", "boolean", "rawQualified", ";", "if", "(", "currentType", ".", "isGenericType", "(", ")", ")", "{", "qualifiedType", "=", "scope", ".", "environment", "(", ")", ".", "createRawType", "(", "currentType", ",", "qualifiedType", ")", ";", "}", "else", "if", "(", "(", "rawQualified", "=", "qualifiedType", ".", "isRawType", "(", ")", ")", "&&", "!", "currentType", ".", "isStatic", "(", ")", ")", "{", "qualifiedType", "=", "scope", ".", "environment", "(", ")", ".", "createRawType", "(", "(", "ReferenceBinding", ")", "currentType", ".", "erasure", "(", ")", ",", "qualifiedType", ")", ";", "}", "else", "if", "(", "(", "rawQualified", "||", "qualifiedType", ".", "isParameterizedType", "(", ")", ")", "&&", "qualifiedType", ".", "erasure", "(", ")", "==", "currentType", ".", "enclosingType", "(", ")", ".", "erasure", "(", ")", ")", "{", "qualifiedType", "=", "scope", ".", "environment", "(", ")", ".", "createParameterizedType", "(", "(", "ReferenceBinding", ")", "currentType", ".", "erasure", "(", ")", ",", "null", ",", "qualifiedType", ")", ";", "}", "else", "{", "qualifiedType", "=", "currentType", ";", "}", "}", "else", "{", "qualifiedType", "=", "currentType", ".", "isGenericType", "(", ")", "?", "(", "ReferenceBinding", ")", "scope", ".", "environment", "(", ")", ".", "convertToRawType", "(", "currentType", ",", "false", ")", ":", "currentType", ";", "}", "}", "this", ".", "resolvedType", "=", "qualifiedType", ";", "return", "this", ".", "resolvedType", ";", "}", "public", "char", "[", "]", "[", "]", "getTypeName", "(", ")", "{", "return", "this", ".", "tokens", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "tokens", ".", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "output", ".", "append", "(", "'.'", ")", ";", "output", ".", "append", "(", "this", ".", "tokens", "[", "i", "]", ")", ";", "}", "return", "output", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,696
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "ScannerHelper", ";", "public", "class", "CharLiteral", "extends", "NumberLiteral", "{", "char", "value", ";", "public", "CharLiteral", "(", "char", "[", "]", "token", ",", "int", "s", ",", "int", "e", ")", "{", "super", "(", "token", ",", "s", ",", "e", ")", ";", "computeValue", "(", ")", ";", "}", "public", "void", "computeConstant", "(", ")", "{", "this", ".", "constant", "=", "CharConstant", ".", "fromValue", "(", "this", ".", "value", ")", ";", "}", "private", "void", "computeValue", "(", ")", "{", "if", "(", "(", "this", ".", "value", "=", "this", ".", "source", "[", "1", "]", ")", "!=", "'\\\\'", ")", "return", ";", "char", "digit", ";", "switch", "(", "digit", "=", "this", ".", "source", "[", "2", "]", ")", "{", "case", "'b'", ":", "this", ".", "value", "=", "'\\b'", ";", "break", ";", "case", "'t'", ":", "this", ".", "value", "=", "'\\t'", ";", "break", ";", "case", "'n'", ":", "this", ".", "value", "=", "'\\n'", ";", "break", ";", "case", "'f'", ":", "this", ".", "value", "=", "'\\f'", ";", "break", ";", "case", "'r'", ":", "this", ".", "value", "=", "'\\r'", ";", "break", ";", "case", "'\\\"'", ":", "this", ".", "value", "=", "'\\\"'", ";", "break", ";", "case", "'\\''", ":", "this", ".", "value", "=", "'\\''", ";", "break", ";", "case", "'\\\\'", ":", "this", ".", "value", "=", "'\\\\'", ";", "break", ";", "default", ":", "int", "number", "=", "ScannerHelper", ".", "getNumericValue", "(", "digit", ")", ";", "if", "(", "(", "digit", "=", "this", ".", "source", "[", "3", "]", ")", "!=", "'\\''", ")", "number", "=", "(", "number", "*", "8", ")", "+", "ScannerHelper", ".", "getNumericValue", "(", "digit", ")", ";", "else", "{", "this", ".", "constant", "=", "CharConstant", ".", "fromValue", "(", "this", ".", "value", "=", "(", "char", ")", "number", ")", ";", "break", ";", "}", "if", "(", "(", "digit", "=", "this", ".", "source", "[", "4", "]", ")", "!=", "'\\''", ")", "number", "=", "(", "number", "*", "8", ")", "+", "ScannerHelper", ".", "getNumericValue", "(", "digit", ")", ";", "this", ".", "value", "=", "(", "char", ")", "number", ";", "break", ";", "}", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "TypeBinding", "literalType", "(", "BlockScope", "scope", ")", "{", "return", "TypeBinding", ".", "CHAR", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
5,697
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CaseLabel", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "IntConstant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Binding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "FieldBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "public", "class", "CaseStatement", "extends", "Statement", "{", "public", "Expression", "constantExpression", ";", "public", "CaseLabel", "targetLabel", ";", "public", "CaseStatement", "(", "Expression", "constantExpression", ",", "int", "sourceEnd", ",", "int", "sourceStart", ")", "{", "this", ".", "constantExpression", "=", "constantExpression", ";", "this", ".", "sourceEnd", "=", "sourceEnd", ";", "this", ".", "sourceStart", "=", "sourceStart", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "constantExpression", "!=", "null", ")", "{", "if", "(", "this", ".", "constantExpression", ".", "constant", "==", "Constant", ".", "NotAConstant", "&&", "!", "this", ".", "constantExpression", ".", "resolvedType", ".", "isEnum", "(", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "caseExpressionMustBeConstant", "(", "this", ".", "constantExpression", ")", ";", "}", "this", ".", "constantExpression", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "return", "flowInfo", ";", "}", "public", "StringBuffer", "printStatement", "(", "int", "tab", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "tab", ",", "output", ")", ";", "if", "(", "this", ".", "constantExpression", "==", "null", ")", "{", "output", ".", "append", "(", "\"default", ":", "\"", ")", ";", "}", "else", "{", "output", ".", "append", "(", "\"case", "\"", ")", ";", "this", ".", "constantExpression", ".", "printExpression", "(", "0", ",", "output", ")", ".", "append", "(", "\"", ":", "\"", ")", ";", "}", "return", "output", ".", "append", "(", "';'", ")", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsReachable", ")", "==", "0", ")", "{", "return", ";", "}", "int", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "targetLabel", ".", "place", "(", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "void", "resolve", "(", "BlockScope", "scope", ")", "{", "}", "public", "Constant", "resolveCase", "(", "BlockScope", "scope", ",", "TypeBinding", "switchExpressionType", ",", "SwitchStatement", "switchStatement", ")", "{", "scope", ".", "enclosingCase", "=", "this", ";", "if", "(", "this", ".", "constantExpression", "==", "null", ")", "{", "if", "(", "switchStatement", ".", "defaultCase", "!=", "null", ")", "scope", ".", "problemReporter", "(", ")", ".", "duplicateDefaultCase", "(", "this", ")", ";", "switchStatement", ".", "defaultCase", "=", "this", ";", "return", "Constant", ".", "NotAConstant", ";", "}", "switchStatement", ".", "cases", "[", "switchStatement", ".", "caseCount", "++", "]", "=", "this", ";", "if", "(", "switchExpressionType", "!=", "null", "&&", "switchExpressionType", ".", "isEnum", "(", ")", "&&", "(", "this", ".", "constantExpression", "instanceof", "SingleNameReference", ")", ")", "{", "(", "(", "SingleNameReference", ")", "this", ".", "constantExpression", ")", ".", "setActualReceiverType", "(", "(", "ReferenceBinding", ")", "switchExpressionType", ")", ";", "}", "TypeBinding", "caseType", "=", "this", ".", "constantExpression", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "caseType", "==", "null", "||", "switchExpressionType", "==", "null", ")", "return", "Constant", ".", "NotAConstant", ";", "if", "(", "this", ".", "constantExpression", ".", "isConstantValueOfTypeAssignableToType", "(", "caseType", ",", "switchExpressionType", ")", "||", "caseType", ".", "isCompatibleWith", "(", "switchExpressionType", ")", ")", "{", "if", "(", "caseType", ".", "isEnum", "(", ")", ")", "{", "if", "(", "(", "(", "this", ".", "constantExpression", ".", "bits", "&", "ASTNode", ".", "ParenthesizedMASK", ")", ">>", "ASTNode", ".", "ParenthesizedSHIFT", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "enumConstantsCannotBeSurroundedByParenthesis", "(", "this", ".", "constantExpression", ")", ";", "}", "if", "(", "this", ".", "constantExpression", "instanceof", "NameReference", "&&", "(", "this", ".", "constantExpression", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "==", "Binding", ".", "FIELD", ")", "{", "NameReference", "reference", "=", "(", "NameReference", ")", "this", ".", "constantExpression", ";", "FieldBinding", "field", "=", "reference", ".", "fieldBinding", "(", ")", ";", "if", "(", "(", "field", ".", "modifiers", "&", "ClassFileConstants", ".", "AccEnum", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "enumSwitchCannotTargetField", "(", "reference", ",", "field", ")", ";", "}", "else", "if", "(", "reference", "instanceof", "QualifiedNameReference", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotUseQualifiedEnumConstantInCaseLabel", "(", "reference", ",", "field", ")", ";", "}", "return", "IntConstant", ".", "fromValue", "(", "field", ".", "original", "(", ")", ".", "id", "+", "1", ")", ";", "}", "}", "else", "{", "return", "this", ".", "constantExpression", ".", "constant", ";", "}", "}", "else", "if", "(", "isBoxingCompatible", "(", "caseType", ",", "switchExpressionType", ",", "this", ".", "constantExpression", ",", "scope", ")", ")", "{", "return", "this", ".", "constantExpression", ".", "constant", ";", "}", "scope", ".", "problemReporter", "(", ")", ".", "typeMismatchError", "(", "caseType", ",", "switchExpressionType", ",", "this", ".", "constantExpression", ",", "switchStatement", ".", "expression", ")", ";", "return", "Constant", ".", "NotAConstant", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "if", "(", "this", ".", "constantExpression", "!=", "null", ")", "this", ".", "constantExpression", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
5,698
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ClassScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Scope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "public", "class", "JavadocArraySingleTypeReference", "extends", "ArrayTypeReference", "{", "public", "JavadocArraySingleTypeReference", "(", "char", "[", "]", "name", ",", "int", "dim", ",", "long", "pos", ")", "{", "super", "(", "name", ",", "dim", ",", "pos", ")", ";", "this", ".", "bits", "|=", "InsideJavadoc", ";", "}", "protected", "void", "reportInvalidType", "(", "Scope", "scope", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidType", "(", "this", ",", "this", ".", "resolvedType", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "protected", "void", "reportDeprecatedType", "(", "TypeBinding", "type", ",", "Scope", "scope", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocDeprecatedType", "(", "type", ",", "this", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
5,699
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "AbortCompilation", ";", "public", "class", "ArrayQualifiedTypeReference", "extends", "QualifiedTypeReference", "{", "int", "dimensions", ";", "public", "ArrayQualifiedTypeReference", "(", "char", "[", "]", "[", "]", "sources", ",", "int", "dim", ",", "long", "[", "]", "poss", ")", "{", "super", "(", "sources", ",", "poss", ")", ";", "this", ".", "dimensions", "=", "dim", ";", "}", "public", "int", "dimensions", "(", ")", "{", "return", "this", ".", "dimensions", ";", "}", "public", "char", "[", "]", "[", "]", "getParameterizedTypeName", "(", ")", "{", "int", "dim", "=", "this", ".", "dimensions", ";", "char", "[", "]", "dimChars", "=", "new", "char", "[", "dim", "*", "2", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "dim", ";", "i", "++", ")", "{", "int", "index", "=", "i", "*", "2", ";", "dimChars", "[", "index", "]", "=", "'['", ";", "dimChars", "[", "index", "+", "1", "]", "=", "']'", ";", "}", "int", "length", "=", "this", ".", "tokens", ".", "length", ";", "char", "[", "]", "[", "]", "qParamName", "=", "new", "char", "[", "length", "]", "[", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "tokens", ",", "0", ",", "qParamName", ",", "0", ",", "length", "-", "1", ")", ";", "qParamName", "[", "length", "-", "1", "]", "=", "CharOperation", ".", "concat", "(", "this", ".", "tokens", "[", "length", "-", "1", "]", ",", "dimChars", ")", ";", "return", "qParamName", ";", "}", "protected", "TypeBinding", "getTypeBinding", "(", "Scope", "scope", ")", "{", "if", "(", "this", ".", "resolvedType", "!=", "null", ")", "return", "this", ".", "resolvedType", ";", "if", "(", "this", ".", "dimensions", ">", "255", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "tooManyDimensions", "(", "this", ")", ";", "}", "LookupEnvironment", "env", "=", "scope", ".", "environment", "(", ")", ";", "try", "{", "env", ".", "missingClassFileLocation", "=", "this", ";", "TypeBinding", "leafComponentType", "=", "super", ".", "getTypeBinding", "(", "scope", ")", ";", "return", "this", ".", "resolvedType", "=", "scope", ".", "createArrayType", "(", "leafComponentType", ",", "this", ".", "dimensions", ")", ";", "}", "catch", "(", "AbortCompilation", "e", ")", "{", "e", ".", "updateContext", "(", "this", ",", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ")", ";", "throw", "e", ";", "}", "finally", "{", "env", ".", "missingClassFileLocation", "=", "null", ";", "}", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "super", ".", "printExpression", "(", "indent", ",", "output", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "IsVarArgs", ")", "!=", "0", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "dimensions", "-", "1", ";", "i", "++", ")", "{", "output", ".", "append", "(", "\"[]\"", ")", ";", "}", "output", ".", "append", "(", "\"...\"", ")", ";", "}", "else", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "dimensions", ";", "i", "++", ")", "{", "output", ".", "append", "(", "\"[]\"", ")", ";", "}", "}", "return", "output", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]