id
int32
0
12.9k
code
sequencelengths
2
264k
3,300
[ "<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", ".", "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", "ArrayTypeReference", "extends", "SingleTypeReference", "{", "public", "int", "dimensions", ";", "public", "int", "originalSourceEnd", ";", "public", "ArrayTypeReference", "(", "char", "[", "]", "source", ",", "int", "dimensions", ",", "long", "pos", ")", "{", "super", "(", "source", ",", "pos", ")", ";", "this", ".", "originalSourceEnd", "=", "this", ".", "sourceEnd", ";", "this", ".", "dimensions", "=", "dimensions", ";", "}", "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", "]", "=", "']'", ";", "}", "return", "new", "char", "[", "]", "[", "]", "{", "CharOperation", ".", "concat", "(", "this", ".", "token", ",", "dimChars", ")", "}", ";", "}", "protected", "TypeBinding", "getTypeBinding", "(", "Scope", "scope", ")", "{", "if", "(", "this", ".", "resolvedType", "!=", "null", ")", "{", "return", "this", ".", "resolvedType", ";", "}", "if", "(", "this", ".", "dimensions", ">", "255", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "tooManyDimensions", "(", "this", ")", ";", "}", "TypeBinding", "leafComponentType", "=", "scope", ".", "getType", "(", "this", ".", "token", ")", ";", "return", "scope", ".", "createArrayType", "(", "leafComponentType", ",", "this", ".", "dimensions", ")", ";", "}", "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>" ]
3,301
[ "<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", ".", "Binding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ElementValuePair", ";", "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", ".", "TypeBinding", ";", "public", "class", "MemberValuePair", "extends", "ASTNode", "{", "public", "char", "[", "]", "name", ";", "public", "Expression", "value", ";", "public", "MethodBinding", "binding", ";", "public", "ElementValuePair", "compilerElementPair", "=", "null", ";", "public", "MemberValuePair", "(", "char", "[", "]", "token", ",", "int", "sourceStart", ",", "int", "sourceEnd", ",", "Expression", "value", ")", "{", "this", ".", "name", "=", "token", ";", "this", ".", "sourceStart", "=", "sourceStart", ";", "this", ".", "sourceEnd", "=", "sourceEnd", ";", "this", ".", "value", "=", "value", ";", "if", "(", "value", "instanceof", "ArrayInitializer", ")", "{", "value", ".", "bits", "|=", "IsAnnotationDefaultValue", ";", "}", "}", "public", "StringBuffer", "print", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "output", ".", "append", "(", "this", ".", "name", ")", ".", "append", "(", "\"", "=", "\"", ")", ";", "this", ".", "value", ".", "print", "(", "0", ",", "output", ")", ";", "return", "output", ";", "}", "public", "void", "resolveTypeExpecting", "(", "BlockScope", "scope", ",", "TypeBinding", "requiredType", ")", "{", "if", "(", "this", ".", "value", "==", "null", ")", "{", "this", ".", "compilerElementPair", "=", "new", "ElementValuePair", "(", "this", ".", "name", ",", "this", ".", "value", ",", "this", ".", "binding", ")", ";", "return", ";", "}", "if", "(", "requiredType", "==", "null", ")", "{", "if", "(", "this", ".", "value", "instanceof", "ArrayInitializer", ")", "{", "this", ".", "value", ".", "resolveTypeExpecting", "(", "scope", ",", "null", ")", ";", "}", "else", "{", "this", ".", "value", ".", "resolveType", "(", "scope", ")", ";", "}", "this", ".", "compilerElementPair", "=", "new", "ElementValuePair", "(", "this", ".", "name", ",", "this", ".", "value", ",", "this", ".", "binding", ")", ";", "return", ";", "}", "this", ".", "value", ".", "setExpectedType", "(", "requiredType", ")", ";", "TypeBinding", "valueType", ";", "if", "(", "this", ".", "value", "instanceof", "ArrayInitializer", ")", "{", "ArrayInitializer", "initializer", "=", "(", "ArrayInitializer", ")", "this", ".", "value", ";", "valueType", "=", "initializer", ".", "resolveTypeExpecting", "(", "scope", ",", "this", ".", "binding", ".", "returnType", ")", ";", "}", "else", "if", "(", "this", ".", "value", "instanceof", "ArrayAllocationExpression", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "annotationValueMustBeArrayInitializer", "(", "this", ".", "binding", ".", "declaringClass", ",", "this", ".", "name", ",", "this", ".", "value", ")", ";", "this", ".", "value", ".", "resolveType", "(", "scope", ")", ";", "valueType", "=", "null", ";", "}", "else", "{", "valueType", "=", "this", ".", "value", ".", "resolveType", "(", "scope", ")", ";", "ASTVisitor", "visitor", "=", "new", "ASTVisitor", "(", ")", "{", "public", "boolean", "visit", "(", "SingleNameReference", "reference", ",", "BlockScope", "scop", ")", "{", "if", "(", "reference", ".", "binding", "instanceof", "LocalVariableBinding", ")", "{", "(", "(", "LocalVariableBinding", ")", "reference", ".", "binding", ")", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "}", "return", "true", ";", "}", "}", ";", "this", ".", "value", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "this", ".", "compilerElementPair", "=", "new", "ElementValuePair", "(", "this", ".", "name", ",", "this", ".", "value", ",", "this", ".", "binding", ")", ";", "if", "(", "valueType", "==", "null", ")", "return", ";", "TypeBinding", "leafType", "=", "requiredType", ".", "leafComponentType", "(", ")", ";", "if", "(", "!", "(", "this", ".", "value", ".", "isConstantValueOfTypeAssignableToType", "(", "valueType", ",", "requiredType", ")", "||", "valueType", ".", "isCompatibleWith", "(", "requiredType", ")", ")", ")", "{", "if", "(", "!", "(", "requiredType", ".", "isArrayType", "(", ")", "&&", "requiredType", ".", "dimensions", "(", ")", "==", "1", "&&", "(", "this", ".", "value", ".", "isConstantValueOfTypeAssignableToType", "(", "valueType", ",", "leafType", ")", "||", "valueType", ".", "isCompatibleWith", "(", "leafType", ")", ")", ")", ")", "{", "if", "(", "leafType", ".", "isAnnotationType", "(", ")", "&&", "!", "valueType", ".", "isAnnotationType", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "annotationValueMustBeAnnotation", "(", "this", ".", "binding", ".", "declaringClass", ",", "this", ".", "name", ",", "this", ".", "value", ",", "leafType", ")", ";", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "typeMismatchError", "(", "valueType", ",", "requiredType", ",", "this", ".", "value", ",", "null", ")", ";", "}", "return", ";", "}", "}", "else", "{", "scope", ".", "compilationUnitScope", "(", ")", ".", "recordTypeConversion", "(", "requiredType", ".", "leafComponentType", "(", ")", ",", "valueType", ".", "leafComponentType", "(", ")", ")", ";", "this", ".", "value", ".", "computeConversion", "(", "scope", ",", "requiredType", ",", "valueType", ")", ";", "}", "checkAnnotationMethodType", ":", "{", "switch", "(", "leafType", ".", "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", ":", "if", "(", "this", ".", "value", "instanceof", "ArrayInitializer", ")", "{", "ArrayInitializer", "initializer", "=", "(", "ArrayInitializer", ")", "this", ".", "value", ";", "final", "Expression", "[", "]", "expressions", "=", "initializer", ".", "expressions", ";", "if", "(", "expressions", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "expressions", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "Expression", "expression", "=", "expressions", "[", "i", "]", ";", "if", "(", "expression", ".", "resolvedType", "==", "null", ")", "continue", ";", "if", "(", "expression", ".", "constant", "==", "Constant", ".", "NotAConstant", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "annotationValueMustBeConstant", "(", "this", ".", "binding", ".", "declaringClass", ",", "this", ".", "name", ",", "expressions", "[", "i", "]", ",", "false", ")", ";", "}", "}", "}", "}", "else", "if", "(", "this", ".", "value", ".", "constant", "==", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "valueType", ".", "isArrayType", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "annotationValueMustBeArrayInitializer", "(", "this", ".", "binding", ".", "declaringClass", ",", "this", ".", "name", ",", "this", ".", "value", ")", ";", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "annotationValueMustBeConstant", "(", "this", ".", "binding", ".", "declaringClass", ",", "this", ".", "name", ",", "this", ".", "value", ",", "false", ")", ";", "}", "}", "break", "checkAnnotationMethodType", ";", "case", "T_JavaLangClass", ":", "if", "(", "this", ".", "value", "instanceof", "ArrayInitializer", ")", "{", "ArrayInitializer", "initializer", "=", "(", "ArrayInitializer", ")", "this", ".", "value", ";", "final", "Expression", "[", "]", "expressions", "=", "initializer", ".", "expressions", ";", "if", "(", "expressions", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "expressions", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "Expression", "currentExpression", "=", "expressions", "[", "i", "]", ";", "if", "(", "!", "(", "currentExpression", "instanceof", "ClassLiteralAccess", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "annotationValueMustBeClassLiteral", "(", "this", ".", "binding", ".", "declaringClass", ",", "this", ".", "name", ",", "currentExpression", ")", ";", "}", "}", "}", "}", "else", "if", "(", "!", "(", "this", ".", "value", "instanceof", "ClassLiteralAccess", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "annotationValueMustBeClassLiteral", "(", "this", ".", "binding", ".", "declaringClass", ",", "this", ".", "name", ",", "this", ".", "value", ")", ";", "}", "break", "checkAnnotationMethodType", ";", "}", "if", "(", "leafType", ".", "isEnum", "(", ")", ")", "{", "if", "(", "this", ".", "value", "instanceof", "NullLiteral", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "annotationValueMustBeConstant", "(", "this", ".", "binding", ".", "declaringClass", ",", "this", ".", "name", ",", "this", ".", "value", ",", "true", ")", ";", "}", "else", "if", "(", "this", ".", "value", "instanceof", "ArrayInitializer", ")", "{", "ArrayInitializer", "initializer", "=", "(", "ArrayInitializer", ")", "this", ".", "value", ";", "final", "Expression", "[", "]", "expressions", "=", "initializer", ".", "expressions", ";", "if", "(", "expressions", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "expressions", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "Expression", "currentExpression", "=", "expressions", "[", "i", "]", ";", "if", "(", "currentExpression", "instanceof", "NullLiteral", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "annotationValueMustBeConstant", "(", "this", ".", "binding", ".", "declaringClass", ",", "this", ".", "name", ",", "currentExpression", ",", "true", ")", ";", "}", "else", "if", "(", "currentExpression", "instanceof", "NameReference", ")", "{", "NameReference", "nameReference", "=", "(", "NameReference", ")", "currentExpression", ";", "final", "Binding", "nameReferenceBinding", "=", "nameReference", ".", "binding", ";", "if", "(", "nameReferenceBinding", ".", "kind", "(", ")", "==", "Binding", ".", "FIELD", ")", "{", "FieldBinding", "fieldBinding", "=", "(", "FieldBinding", ")", "nameReferenceBinding", ";", "if", "(", "!", "fieldBinding", ".", "declaringClass", ".", "isEnum", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "annotationValueMustBeConstant", "(", "this", ".", "binding", ".", "declaringClass", ",", "this", ".", "name", ",", "currentExpression", ",", "true", ")", ";", "}", "}", "}", "}", "}", "}", "else", "if", "(", "this", ".", "value", "instanceof", "NameReference", ")", "{", "NameReference", "nameReference", "=", "(", "NameReference", ")", "this", ".", "value", ";", "final", "Binding", "nameReferenceBinding", "=", "nameReference", ".", "binding", ";", "if", "(", "nameReferenceBinding", ".", "kind", "(", ")", "==", "Binding", ".", "FIELD", ")", "{", "FieldBinding", "fieldBinding", "=", "(", "FieldBinding", ")", "nameReferenceBinding", ";", "if", "(", "!", "fieldBinding", ".", "declaringClass", ".", "isEnum", "(", ")", ")", "{", "if", "(", "!", "fieldBinding", ".", "type", ".", "isArrayType", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "annotationValueMustBeConstant", "(", "this", ".", "binding", ".", "declaringClass", ",", "this", ".", "name", ",", "this", ".", "value", ",", "true", ")", ";", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "annotationValueMustBeArrayInitializer", "(", "this", ".", "binding", ".", "declaringClass", ",", "this", ".", "name", ",", "this", ".", "value", ")", ";", "}", "}", "}", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "annotationValueMustBeConstant", "(", "this", ".", "binding", ".", "declaringClass", ",", "this", ".", "name", ",", "this", ".", "value", ",", "true", ")", ";", "}", "break", "checkAnnotationMethodType", ";", "}", "if", "(", "leafType", ".", "isAnnotationType", "(", ")", ")", "{", "if", "(", "!", "valueType", ".", "leafComponentType", "(", ")", ".", "isAnnotationType", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "annotationValueMustBeAnnotation", "(", "this", ".", "binding", ".", "declaringClass", ",", "this", ".", "name", ",", "this", ".", "value", ",", "leafType", ")", ";", "}", "else", "if", "(", "this", ".", "value", "instanceof", "ArrayInitializer", ")", "{", "ArrayInitializer", "initializer", "=", "(", "ArrayInitializer", ")", "this", ".", "value", ";", "final", "Expression", "[", "]", "expressions", "=", "initializer", ".", "expressions", ";", "if", "(", "expressions", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "expressions", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "Expression", "currentExpression", "=", "expressions", "[", "i", "]", ";", "if", "(", "currentExpression", "instanceof", "NullLiteral", "||", "!", "(", "currentExpression", "instanceof", "Annotation", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "annotationValueMustBeAnnotation", "(", "this", ".", "binding", ".", "declaringClass", ",", "this", ".", "name", ",", "currentExpression", ",", "leafType", ")", ";", "}", "}", "}", "}", "else", "if", "(", "!", "(", "this", ".", "value", "instanceof", "Annotation", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "annotationValueMustBeAnnotation", "(", "this", ".", "binding", ".", "declaringClass", ",", "this", ".", "name", ",", "this", ".", "value", ",", "leafType", ")", ";", "}", "break", "checkAnnotationMethodType", ";", "}", "}", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "value", "!=", "null", ")", "{", "this", ".", "value", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
3,302
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ";", "import", "java", ".", "util", ".", "Arrays", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "SourceTypeBinding", ";", "public", "class", "ClassFilePool", "{", "public", "static", "final", "int", "POOL_SIZE", "=", "25", ";", "ClassFile", "[", "]", "classFiles", ";", "private", "ClassFilePool", "(", ")", "{", "this", ".", "classFiles", "=", "new", "ClassFile", "[", "POOL_SIZE", "]", ";", "}", "public", "static", "ClassFilePool", "newInstance", "(", ")", "{", "return", "new", "ClassFilePool", "(", ")", ";", "}", "public", "synchronized", "ClassFile", "acquire", "(", "SourceTypeBinding", "typeBinding", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "POOL_SIZE", ";", "i", "++", ")", "{", "ClassFile", "classFile", "=", "this", ".", "classFiles", "[", "i", "]", ";", "if", "(", "classFile", "==", "null", ")", "{", "ClassFile", "newClassFile", "=", "new", "ClassFile", "(", "typeBinding", ")", ";", "this", ".", "classFiles", "[", "i", "]", "=", "newClassFile", ";", "newClassFile", ".", "isShared", "=", "true", ";", "return", "newClassFile", ";", "}", "if", "(", "!", "classFile", ".", "isShared", ")", "{", "classFile", ".", "reset", "(", "typeBinding", ")", ";", "classFile", ".", "isShared", "=", "true", ";", "return", "classFile", ";", "}", "}", "return", "new", "ClassFile", "(", "typeBinding", ")", ";", "}", "public", "synchronized", "void", "release", "(", "ClassFile", "classFile", ")", "{", "classFile", ".", "isShared", "=", "false", ";", "}", "public", "void", "reset", "(", ")", "{", "Arrays", ".", "fill", "(", "this", ".", "classFiles", ",", "null", ")", ";", "}", "}", "</s>" ]
3,303
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ";", "import", "java", ".", "util", ".", "Locale", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CategorizedProblem", ";", "public", "interface", "IProblemFactory", "{", "CategorizedProblem", "createProblem", "(", "char", "[", "]", "originatingFileName", ",", "int", "problemId", ",", "String", "[", "]", "problemArguments", ",", "String", "[", "]", "messageArguments", ",", "int", "severity", ",", "int", "startPosition", ",", "int", "endPosition", ",", "int", "lineNumber", ",", "int", "columnNumber", ")", ";", "CategorizedProblem", "createProblem", "(", "char", "[", "]", "originatingFileName", ",", "int", "problemId", ",", "String", "[", "]", "problemArguments", ",", "int", "elaborationId", ",", "String", "[", "]", "messageArguments", ",", "int", "severity", ",", "int", "startPosition", ",", "int", "endPosition", ",", "int", "lineNumber", ",", "int", "columnNumber", ")", ";", "Locale", "getLocale", "(", ")", ";", "String", "getLocalizedMessage", "(", "int", "problemId", ",", "String", "[", "]", "messageArguments", ")", ";", "String", "getLocalizedMessage", "(", "int", "problemId", ",", "int", "elaborationId", ",", "String", "[", "]", "messageArguments", ")", ";", "}", "</s>" ]
3,304
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ";", "import", "java", ".", "util", ".", "Arrays", ";", "import", "java", ".", "util", ".", "Comparator", ";", "import", "java", ".", "util", ".", "HashMap", ";", "import", "java", ".", "util", ".", "HashSet", ";", "import", "java", ".", "util", ".", "Hashtable", ";", "import", "java", ".", "util", ".", "Iterator", ";", "import", "java", ".", "util", ".", "Map", ";", "import", "java", ".", "util", ".", "Set", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CategorizedProblem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "IProblem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "AbstractMethodDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ".", "ICompilationUnit", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "ReferenceContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "SourceTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "RecoveryScannerData", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "class", "CompilationResult", "{", "public", "CategorizedProblem", "problems", "[", "]", ";", "public", "CategorizedProblem", "tasks", "[", "]", ";", "public", "int", "problemCount", ";", "public", "int", "taskCount", ";", "public", "ICompilationUnit", "compilationUnit", ";", "private", "Map", "problemsMap", ";", "private", "Set", "firstErrors", ";", "private", "int", "maxProblemPerUnit", ";", "public", "char", "[", "]", "[", "]", "[", "]", "qualifiedReferences", ";", "public", "char", "[", "]", "[", "]", "simpleNameReferences", ";", "public", "char", "[", "]", "[", "]", "rootReferences", ";", "public", "boolean", "hasAnnotations", "=", "false", ";", "public", "int", "lineSeparatorPositions", "[", "]", ";", "public", "RecoveryScannerData", "recoveryScannerData", ";", "public", "Map", "compiledTypes", "=", "new", "Hashtable", "(", "11", ")", ";", "public", "int", "unitIndex", ",", "totalUnitsKnown", ";", "public", "boolean", "hasBeenAccepted", "=", "false", ";", "public", "char", "[", "]", "fileName", ";", "public", "boolean", "hasInconsistentToplevelHierarchies", "=", "false", ";", "public", "boolean", "hasSyntaxError", "=", "false", ";", "public", "char", "[", "]", "[", "]", "packageName", ";", "public", "boolean", "checkSecondaryTypes", "=", "false", ";", "private", "int", "numberOfErrors", ";", "private", "boolean", "hasMandatoryErrors", ";", "private", "static", "final", "int", "[", "]", "EMPTY_LINE_ENDS", "=", "Util", ".", "EMPTY_INT_ARRAY", ";", "private", "static", "final", "Comparator", "PROBLEM_COMPARATOR", "=", "new", "Comparator", "(", ")", "{", "public", "int", "compare", "(", "Object", "o1", ",", "Object", "o2", ")", "{", "return", "(", "(", "CategorizedProblem", ")", "o1", ")", ".", "getSourceStart", "(", ")", "-", "(", "(", "CategorizedProblem", ")", "o2", ")", ".", "getSourceStart", "(", ")", ";", "}", "}", ";", "public", "CompilationResult", "(", "char", "[", "]", "fileName", ",", "int", "unitIndex", ",", "int", "totalUnitsKnown", ",", "int", "maxProblemPerUnit", ")", "{", "this", ".", "fileName", "=", "fileName", ";", "this", ".", "unitIndex", "=", "unitIndex", ";", "this", ".", "totalUnitsKnown", "=", "totalUnitsKnown", ";", "this", ".", "maxProblemPerUnit", "=", "maxProblemPerUnit", ";", "}", "public", "CompilationResult", "(", "ICompilationUnit", "compilationUnit", ",", "int", "unitIndex", ",", "int", "totalUnitsKnown", ",", "int", "maxProblemPerUnit", ")", "{", "this", ".", "fileName", "=", "compilationUnit", ".", "getFileName", "(", ")", ";", "this", ".", "compilationUnit", "=", "compilationUnit", ";", "this", ".", "unitIndex", "=", "unitIndex", ";", "this", ".", "totalUnitsKnown", "=", "totalUnitsKnown", ";", "this", ".", "maxProblemPerUnit", "=", "maxProblemPerUnit", ";", "}", "private", "int", "computePriority", "(", "CategorizedProblem", "problem", ")", "{", "final", "int", "P_STATIC", "=", "10000", ";", "final", "int", "P_OUTSIDE_METHOD", "=", "40000", ";", "final", "int", "P_FIRST_ERROR", "=", "20000", ";", "final", "int", "P_ERROR", "=", "100000", ";", "int", "priority", "=", "10000", "-", "problem", ".", "getSourceLineNumber", "(", ")", ";", "if", "(", "priority", "<", "0", ")", "priority", "=", "0", ";", "if", "(", "problem", ".", "isError", "(", ")", ")", "{", "priority", "+=", "P_ERROR", ";", "}", "ReferenceContext", "context", "=", "this", ".", "problemsMap", "==", "null", "?", "null", ":", "(", "ReferenceContext", ")", "this", ".", "problemsMap", ".", "get", "(", "problem", ")", ";", "if", "(", "context", "!=", "null", ")", "{", "if", "(", "context", "instanceof", "AbstractMethodDeclaration", ")", "{", "AbstractMethodDeclaration", "method", "=", "(", "AbstractMethodDeclaration", ")", "context", ";", "if", "(", "method", ".", "isStatic", "(", ")", ")", "{", "priority", "+=", "P_STATIC", ";", "}", "}", "else", "{", "priority", "+=", "P_OUTSIDE_METHOD", ";", "}", "if", "(", "this", ".", "firstErrors", ".", "contains", "(", "problem", ")", ")", "{", "priority", "+=", "P_FIRST_ERROR", ";", "}", "}", "else", "{", "priority", "+=", "P_OUTSIDE_METHOD", ";", "}", "return", "priority", ";", "}", "public", "CategorizedProblem", "[", "]", "getAllProblems", "(", ")", "{", "CategorizedProblem", "[", "]", "onlyProblems", "=", "getProblems", "(", ")", ";", "int", "onlyProblemCount", "=", "onlyProblems", "!=", "null", "?", "onlyProblems", ".", "length", ":", "0", ";", "CategorizedProblem", "[", "]", "onlyTasks", "=", "getTasks", "(", ")", ";", "int", "onlyTaskCount", "=", "onlyTasks", "!=", "null", "?", "onlyTasks", ".", "length", ":", "0", ";", "if", "(", "onlyTaskCount", "==", "0", ")", "{", "return", "onlyProblems", ";", "}", "if", "(", "onlyProblemCount", "==", "0", ")", "{", "return", "onlyTasks", ";", "}", "int", "totalNumberOfProblem", "=", "onlyProblemCount", "+", "onlyTaskCount", ";", "CategorizedProblem", "[", "]", "allProblems", "=", "new", "CategorizedProblem", "[", "totalNumberOfProblem", "]", ";", "int", "allProblemIndex", "=", "0", ";", "int", "taskIndex", "=", "0", ";", "int", "problemIndex", "=", "0", ";", "while", "(", "taskIndex", "+", "problemIndex", "<", "totalNumberOfProblem", ")", "{", "CategorizedProblem", "nextTask", "=", "null", ";", "CategorizedProblem", "nextProblem", "=", "null", ";", "if", "(", "taskIndex", "<", "onlyTaskCount", ")", "{", "nextTask", "=", "onlyTasks", "[", "taskIndex", "]", ";", "}", "if", "(", "problemIndex", "<", "onlyProblemCount", ")", "{", "nextProblem", "=", "onlyProblems", "[", "problemIndex", "]", ";", "}", "CategorizedProblem", "currentProblem", "=", "null", ";", "if", "(", "nextProblem", "!=", "null", ")", "{", "if", "(", "nextTask", "!=", "null", ")", "{", "if", "(", "nextProblem", ".", "getSourceStart", "(", ")", "<", "nextTask", ".", "getSourceStart", "(", ")", ")", "{", "currentProblem", "=", "nextProblem", ";", "problemIndex", "++", ";", "}", "else", "{", "currentProblem", "=", "nextTask", ";", "taskIndex", "++", ";", "}", "}", "else", "{", "currentProblem", "=", "nextProblem", ";", "problemIndex", "++", ";", "}", "}", "else", "{", "if", "(", "nextTask", "!=", "null", ")", "{", "currentProblem", "=", "nextTask", ";", "taskIndex", "++", ";", "}", "}", "allProblems", "[", "allProblemIndex", "++", "]", "=", "currentProblem", ";", "}", "return", "allProblems", ";", "}", "public", "ClassFile", "[", "]", "getClassFiles", "(", ")", "{", "ClassFile", "[", "]", "classFiles", "=", "new", "ClassFile", "[", "this", ".", "compiledTypes", ".", "size", "(", ")", "]", ";", "this", ".", "compiledTypes", ".", "values", "(", ")", ".", "toArray", "(", "classFiles", ")", ";", "return", "classFiles", ";", "}", "public", "ICompilationUnit", "getCompilationUnit", "(", ")", "{", "return", "this", ".", "compilationUnit", ";", "}", "public", "CategorizedProblem", "[", "]", "getErrors", "(", ")", "{", "CategorizedProblem", "[", "]", "reportedProblems", "=", "getProblems", "(", ")", ";", "int", "errorCount", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "problemCount", ";", "i", "++", ")", "{", "if", "(", "reportedProblems", "[", "i", "]", ".", "isError", "(", ")", ")", "errorCount", "++", ";", "}", "if", "(", "errorCount", "==", "this", ".", "problemCount", ")", "return", "reportedProblems", ";", "CategorizedProblem", "[", "]", "errors", "=", "new", "CategorizedProblem", "[", "errorCount", "]", ";", "int", "index", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "problemCount", ";", "i", "++", ")", "{", "if", "(", "reportedProblems", "[", "i", "]", ".", "isError", "(", ")", ")", "errors", "[", "index", "++", "]", "=", "reportedProblems", "[", "i", "]", ";", "}", "return", "errors", ";", "}", "public", "char", "[", "]", "getFileName", "(", ")", "{", "return", "this", ".", "fileName", ";", "}", "public", "int", "[", "]", "getLineSeparatorPositions", "(", ")", "{", "return", "this", ".", "lineSeparatorPositions", "==", "null", "?", "CompilationResult", ".", "EMPTY_LINE_ENDS", ":", "this", ".", "lineSeparatorPositions", ";", "}", "public", "CategorizedProblem", "[", "]", "getProblems", "(", ")", "{", "if", "(", "this", ".", "problems", "!=", "null", ")", "{", "if", "(", "this", ".", "problemCount", "!=", "this", ".", "problems", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "problems", ",", "0", ",", "(", "this", ".", "problems", "=", "new", "CategorizedProblem", "[", "this", ".", "problemCount", "]", ")", ",", "0", ",", "this", ".", "problemCount", ")", ";", "}", "if", "(", "this", ".", "maxProblemPerUnit", ">", "0", "&&", "this", ".", "problemCount", ">", "this", ".", "maxProblemPerUnit", ")", "{", "quickPrioritize", "(", "this", ".", "problems", ",", "0", ",", "this", ".", "problemCount", "-", "1", ")", ";", "this", ".", "problemCount", "=", "this", ".", "maxProblemPerUnit", ";", "System", ".", "arraycopy", "(", "this", ".", "problems", ",", "0", ",", "(", "this", ".", "problems", "=", "new", "CategorizedProblem", "[", "this", ".", "problemCount", "]", ")", ",", "0", ",", "this", ".", "problemCount", ")", ";", "}", "Arrays", ".", "sort", "(", "this", ".", "problems", ",", "0", ",", "this", ".", "problems", ".", "length", ",", "CompilationResult", ".", "PROBLEM_COMPARATOR", ")", ";", "}", "return", "this", ".", "problems", ";", "}", "public", "CategorizedProblem", "[", "]", "getCUProblems", "(", ")", "{", "if", "(", "this", ".", "problems", "!=", "null", ")", "{", "CategorizedProblem", "[", "]", "filteredProblems", "=", "new", "CategorizedProblem", "[", "this", ".", "problemCount", "]", ";", "int", "keep", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "problemCount", ";", "i", "++", ")", "{", "CategorizedProblem", "problem", "=", "this", ".", "problems", "[", "i", "]", ";", "if", "(", "problem", ".", "getID", "(", ")", "!=", "IProblem", ".", "MissingNonNullByDefaultAnnotationOnPackage", ")", "{", "filteredProblems", "[", "keep", "++", "]", "=", "problem", ";", "}", "else", "if", "(", "this", ".", "compilationUnit", "!=", "null", ")", "{", "if", "(", "CharOperation", ".", "equals", "(", "this", ".", "compilationUnit", ".", "getMainTypeName", "(", ")", ",", "TypeConstants", ".", "PACKAGE_INFO_NAME", ")", ")", "{", "filteredProblems", "[", "keep", "++", "]", "=", "problem", ";", "}", "}", "}", "if", "(", "keep", "<", "this", ".", "problemCount", ")", "{", "System", ".", "arraycopy", "(", "filteredProblems", ",", "0", ",", "filteredProblems", "=", "new", "CategorizedProblem", "[", "keep", "]", ",", "0", ",", "keep", ")", ";", "this", ".", "problemCount", "=", "keep", ";", "}", "this", ".", "problems", "=", "filteredProblems", ";", "if", "(", "this", ".", "maxProblemPerUnit", ">", "0", "&&", "this", ".", "problemCount", ">", "this", ".", "maxProblemPerUnit", ")", "{", "quickPrioritize", "(", "this", ".", "problems", ",", "0", ",", "this", ".", "problemCount", "-", "1", ")", ";", "this", ".", "problemCount", "=", "this", ".", "maxProblemPerUnit", ";", "System", ".", "arraycopy", "(", "this", ".", "problems", ",", "0", ",", "(", "this", ".", "problems", "=", "new", "CategorizedProblem", "[", "this", ".", "problemCount", "]", ")", ",", "0", ",", "this", ".", "problemCount", ")", ";", "}", "Arrays", ".", "sort", "(", "this", ".", "problems", ",", "0", ",", "this", ".", "problems", ".", "length", ",", "CompilationResult", ".", "PROBLEM_COMPARATOR", ")", ";", "}", "return", "this", ".", "problems", ";", "}", "public", "CategorizedProblem", "[", "]", "getTasks", "(", ")", "{", "if", "(", "this", ".", "tasks", "!=", "null", ")", "{", "if", "(", "this", ".", "taskCount", "!=", "this", ".", "tasks", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "tasks", ",", "0", ",", "(", "this", ".", "tasks", "=", "new", "CategorizedProblem", "[", "this", ".", "taskCount", "]", ")", ",", "0", ",", "this", ".", "taskCount", ")", ";", "}", "Arrays", ".", "sort", "(", "this", ".", "tasks", ",", "0", ",", "this", ".", "tasks", ".", "length", ",", "CompilationResult", ".", "PROBLEM_COMPARATOR", ")", ";", "}", "return", "this", ".", "tasks", ";", "}", "public", "boolean", "hasErrors", "(", ")", "{", "return", "this", ".", "numberOfErrors", "!=", "0", ";", "}", "public", "boolean", "hasMandatoryErrors", "(", ")", "{", "return", "this", ".", "hasMandatoryErrors", ";", "}", "public", "boolean", "hasProblems", "(", ")", "{", "return", "this", ".", "problemCount", "!=", "0", ";", "}", "public", "boolean", "hasTasks", "(", ")", "{", "return", "this", ".", "taskCount", "!=", "0", ";", "}", "public", "boolean", "hasWarnings", "(", ")", "{", "if", "(", "this", ".", "problems", "!=", "null", ")", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "problemCount", ";", "i", "++", ")", "{", "if", "(", "this", ".", "problems", "[", "i", "]", ".", "isWarning", "(", ")", ")", "return", "true", ";", "}", "return", "false", ";", "}", "private", "void", "quickPrioritize", "(", "CategorizedProblem", "[", "]", "problemList", ",", "int", "left", ",", "int", "right", ")", "{", "if", "(", "left", ">=", "right", ")", "return", ";", "int", "original_left", "=", "left", ";", "int", "original_right", "=", "right", ";", "int", "mid", "=", "computePriority", "(", "problemList", "[", "left", "+", "(", "right", "-", "left", ")", "/", "2", "]", ")", ";", "do", "{", "while", "(", "computePriority", "(", "problemList", "[", "right", "]", ")", "<", "mid", ")", "right", "--", ";", "while", "(", "mid", "<", "computePriority", "(", "problemList", "[", "left", "]", ")", ")", "left", "++", ";", "if", "(", "left", "<=", "right", ")", "{", "CategorizedProblem", "tmp", "=", "problemList", "[", "left", "]", ";", "problemList", "[", "left", "]", "=", "problemList", "[", "right", "]", ";", "problemList", "[", "right", "]", "=", "tmp", ";", "left", "++", ";", "right", "--", ";", "}", "}", "while", "(", "left", "<=", "right", ")", ";", "if", "(", "original_left", "<", "right", ")", "quickPrioritize", "(", "problemList", ",", "original_left", ",", "right", ")", ";", "if", "(", "left", "<", "original_right", ")", "quickPrioritize", "(", "problemList", ",", "left", ",", "original_right", ")", ";", "}", "public", "void", "recordPackageName", "(", "char", "[", "]", "[", "]", "packName", ")", "{", "this", ".", "packageName", "=", "packName", ";", "}", "public", "void", "record", "(", "CategorizedProblem", "newProblem", ",", "ReferenceContext", "referenceContext", ")", "{", "record", "(", "newProblem", ",", "referenceContext", ",", "true", ")", ";", "return", ";", "}", "public", "void", "record", "(", "CategorizedProblem", "newProblem", ",", "ReferenceContext", "referenceContext", ",", "boolean", "mandatoryError", ")", "{", "if", "(", "newProblem", ".", "getID", "(", ")", "==", "IProblem", ".", "Task", ")", "{", "recordTask", "(", "newProblem", ")", ";", "return", ";", "}", "if", "(", "this", ".", "problemCount", "==", "0", ")", "{", "this", ".", "problems", "=", "new", "CategorizedProblem", "[", "5", "]", ";", "}", "else", "if", "(", "this", ".", "problemCount", "==", "this", ".", "problems", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "problems", ",", "0", ",", "(", "this", ".", "problems", "=", "new", "CategorizedProblem", "[", "this", ".", "problemCount", "*", "2", "]", ")", ",", "0", ",", "this", ".", "problemCount", ")", ";", "}", "this", ".", "problems", "[", "this", ".", "problemCount", "++", "]", "=", "newProblem", ";", "if", "(", "referenceContext", "!=", "null", ")", "{", "if", "(", "this", ".", "problemsMap", "==", "null", ")", "this", ".", "problemsMap", "=", "new", "HashMap", "(", "5", ")", ";", "if", "(", "this", ".", "firstErrors", "==", "null", ")", "this", ".", "firstErrors", "=", "new", "HashSet", "(", "5", ")", ";", "if", "(", "newProblem", ".", "isError", "(", ")", "&&", "!", "referenceContext", ".", "hasErrors", "(", ")", ")", "this", ".", "firstErrors", ".", "add", "(", "newProblem", ")", ";", "this", ".", "problemsMap", ".", "put", "(", "newProblem", ",", "referenceContext", ")", ";", "}", "if", "(", "newProblem", ".", "isError", "(", ")", ")", "{", "this", ".", "numberOfErrors", "++", ";", "if", "(", "mandatoryError", ")", "this", ".", "hasMandatoryErrors", "=", "true", ";", "if", "(", "(", "newProblem", ".", "getID", "(", ")", "&", "IProblem", ".", "Syntax", ")", "!=", "0", ")", "{", "this", ".", "hasSyntaxError", "=", "true", ";", "}", "}", "}", "public", "void", "record", "(", "char", "[", "]", "typeName", ",", "ClassFile", "classFile", ")", "{", "SourceTypeBinding", "sourceType", "=", "classFile", ".", "referenceBinding", ";", "if", "(", "!", "sourceType", ".", "isLocalType", "(", ")", "&&", "sourceType", ".", "isHierarchyInconsistent", "(", ")", ")", "{", "this", ".", "hasInconsistentToplevelHierarchies", "=", "true", ";", "}", "this", ".", "compiledTypes", ".", "put", "(", "typeName", ",", "classFile", ")", ";", "}", "private", "void", "recordTask", "(", "CategorizedProblem", "newProblem", ")", "{", "if", "(", "this", ".", "taskCount", "==", "0", ")", "{", "this", ".", "tasks", "=", "new", "CategorizedProblem", "[", "5", "]", ";", "}", "else", "if", "(", "this", ".", "taskCount", "==", "this", ".", "tasks", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "tasks", ",", "0", ",", "(", "this", ".", "tasks", "=", "new", "CategorizedProblem", "[", "this", ".", "taskCount", "*", "2", "]", ")", ",", "0", ",", "this", ".", "taskCount", ")", ";", "}", "this", ".", "tasks", "[", "this", ".", "taskCount", "++", "]", "=", "newProblem", ";", "}", "public", "void", "removeProblem", "(", "CategorizedProblem", "problem", ")", "{", "if", "(", "this", ".", "problemsMap", "!=", "null", ")", "this", ".", "problemsMap", ".", "remove", "(", "problem", ")", ";", "if", "(", "this", ".", "firstErrors", "!=", "null", ")", "this", ".", "firstErrors", ".", "remove", "(", "problem", ")", ";", "if", "(", "problem", ".", "isError", "(", ")", ")", "{", "this", ".", "numberOfErrors", "--", ";", "}", "this", ".", "problemCount", "--", ";", "}", "public", "CompilationResult", "tagAsAccepted", "(", ")", "{", "this", ".", "hasBeenAccepted", "=", "true", ";", "this", ".", "problemsMap", "=", "null", ";", "this", ".", "firstErrors", "=", "null", ";", "return", "this", ";", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "if", "(", "this", ".", "fileName", "!=", "null", ")", "{", "buffer", ".", "append", "(", "\"Filename", ":", "\"", ")", ".", "append", "(", "this", ".", "fileName", ")", ".", "append", "(", "'\\n'", ")", ";", "}", "if", "(", "this", ".", "compiledTypes", "!=", "null", ")", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "Iterator", "keys", "=", "this", ".", "compiledTypes", ".", "keySet", "(", ")", ".", "iterator", "(", ")", ";", "while", "(", "keys", ".", "hasNext", "(", ")", ")", "{", "char", "[", "]", "typeName", "=", "(", "char", "[", "]", ")", "keys", ".", "next", "(", ")", ";", "buffer", ".", "append", "(", "\"t", "-", "\"", ")", ".", "append", "(", "typeName", ")", ".", "append", "(", "'\\n'", ")", ";", "}", "}", "else", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "}", "if", "(", "this", ".", "problems", "!=", "null", ")", "{", "buffer", ".", "append", "(", "this", ".", "problemCount", ")", ".", "append", "(", "\"\"", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "problemCount", ";", "i", "++", ")", "{", "buffer", ".", "append", "(", "\"t", "-", "\"", ")", ".", "append", "(", "this", ".", "problems", "[", "i", "]", ")", ".", "append", "(", "'\\n'", ")", ";", "}", "}", "else", "{", "buffer", ".", "append", "(", "\"No", "PROBLEMn\"", ")", ";", "}", "return", "buffer", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
3,305
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ";", "public", "final", "class", "HashtableOfLong", "{", "public", "long", "[", "]", "keyTable", ";", "public", "Object", "[", "]", "valueTable", ";", "public", "int", "elementSize", ";", "int", "threshold", ";", "public", "HashtableOfLong", "(", ")", "{", "this", "(", "13", ")", ";", "}", "public", "HashtableOfLong", "(", "int", "size", ")", "{", "this", ".", "elementSize", "=", "0", ";", "this", ".", "threshold", "=", "size", ";", "int", "extraRoom", "=", "(", "int", ")", "(", "size", "*", "1.75f", ")", ";", "if", "(", "this", ".", "threshold", "==", "extraRoom", ")", "extraRoom", "++", ";", "this", ".", "keyTable", "=", "new", "long", "[", "extraRoom", "]", ";", "this", ".", "valueTable", "=", "new", "Object", "[", "extraRoom", "]", ";", "}", "public", "boolean", "containsKey", "(", "long", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "(", "(", "int", ")", "(", "key", ">>>", "32", ")", ")", "%", "length", ";", "long", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "0", ")", "{", "if", "(", "currentKey", "==", "key", ")", "return", "true", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "false", ";", "}", "public", "Object", "get", "(", "long", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "(", "(", "int", ")", "(", "key", ">>>", "32", ")", ")", "%", "length", ";", "long", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "0", ")", "{", "if", "(", "currentKey", "==", "key", ")", "return", "this", ".", "valueTable", "[", "index", "]", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "null", ";", "}", "public", "Object", "put", "(", "long", "key", ",", "Object", "value", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "(", "(", "int", ")", "(", "key", ">>>", "32", ")", ")", "%", "length", ";", "long", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "0", ")", "{", "if", "(", "currentKey", "==", "key", ")", "return", "this", ".", "valueTable", "[", "index", "]", "=", "value", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "this", ".", "keyTable", "[", "index", "]", "=", "key", ";", "this", ".", "valueTable", "[", "index", "]", "=", "value", ";", "if", "(", "++", "this", ".", "elementSize", ">", "this", ".", "threshold", ")", "rehash", "(", ")", ";", "return", "value", ";", "}", "private", "void", "rehash", "(", ")", "{", "HashtableOfLong", "newHashtable", "=", "new", "HashtableOfLong", "(", "this", ".", "elementSize", "*", "2", ")", ";", "long", "currentKey", ";", "for", "(", "int", "i", "=", "this", ".", "keyTable", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "i", "]", ")", "!=", "0", ")", "newHashtable", ".", "put", "(", "currentKey", ",", "this", ".", "valueTable", "[", "i", "]", ")", ";", "this", ".", "keyTable", "=", "newHashtable", ".", "keyTable", ";", "this", ".", "valueTable", "=", "newHashtable", ".", "valueTable", ";", "this", ".", "threshold", "=", "newHashtable", ".", "threshold", ";", "}", "public", "int", "size", "(", ")", "{", "return", "this", ".", "elementSize", ";", "}", "public", "String", "toString", "(", ")", "{", "String", "s", "=", "\"\"", ";", "Object", "object", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "valueTable", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "if", "(", "(", "object", "=", "this", ".", "valueTable", "[", "i", "]", ")", "!=", "null", ")", "s", "+=", "this", ".", "keyTable", "[", "i", "]", "+", "\"", "->", "\"", "+", "object", ".", "toString", "(", ")", "+", "\"n\"", ";", "return", "s", ";", "}", "}", "</s>" ]
3,306
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ";", "public", "final", "class", "SimpleLookupTable", "implements", "Cloneable", "{", "public", "Object", "[", "]", "keyTable", ";", "public", "Object", "[", "]", "valueTable", ";", "public", "int", "elementSize", ";", "public", "int", "threshold", ";", "public", "SimpleLookupTable", "(", ")", "{", "this", "(", "13", ")", ";", "}", "public", "SimpleLookupTable", "(", "int", "size", ")", "{", "this", ".", "elementSize", "=", "0", ";", "this", ".", "threshold", "=", "size", ";", "int", "extraRoom", "=", "(", "int", ")", "(", "size", "*", "1.5f", ")", ";", "if", "(", "this", ".", "threshold", "==", "extraRoom", ")", "extraRoom", "++", ";", "this", ".", "keyTable", "=", "new", "Object", "[", "extraRoom", "]", ";", "this", ".", "valueTable", "=", "new", "Object", "[", "extraRoom", "]", ";", "}", "public", "Object", "clone", "(", ")", "throws", "CloneNotSupportedException", "{", "SimpleLookupTable", "result", "=", "(", "SimpleLookupTable", ")", "super", ".", "clone", "(", ")", ";", "result", ".", "elementSize", "=", "this", ".", "elementSize", ";", "result", ".", "threshold", "=", "this", ".", "threshold", ";", "int", "length", "=", "this", ".", "keyTable", ".", "length", ";", "result", ".", "keyTable", "=", "new", "Object", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "keyTable", ",", "0", ",", "result", ".", "keyTable", ",", "0", ",", "length", ")", ";", "length", "=", "this", ".", "valueTable", ".", "length", ";", "result", ".", "valueTable", "=", "new", "Object", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "valueTable", ",", "0", ",", "result", ".", "valueTable", ",", "0", ",", "length", ")", ";", "return", "result", ";", "}", "public", "boolean", "containsKey", "(", "Object", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ";", "int", "index", "=", "(", "key", ".", "hashCode", "(", ")", "&", "0x7FFFFFFF", ")", "%", "length", ";", "Object", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "equals", "(", "key", ")", ")", "return", "true", ";", "if", "(", "++", "index", "==", "length", ")", "index", "=", "0", ";", "}", "return", "false", ";", "}", "public", "Object", "get", "(", "Object", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ";", "int", "index", "=", "(", "key", ".", "hashCode", "(", ")", "&", "0x7FFFFFFF", ")", "%", "length", ";", "Object", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "equals", "(", "key", ")", ")", "return", "this", ".", "valueTable", "[", "index", "]", ";", "if", "(", "++", "index", "==", "length", ")", "index", "=", "0", ";", "}", "return", "null", ";", "}", "public", "Object", "getKey", "(", "Object", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ";", "int", "index", "=", "(", "key", ".", "hashCode", "(", ")", "&", "0x7FFFFFFF", ")", "%", "length", ";", "Object", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "equals", "(", "key", ")", ")", "return", "currentKey", ";", "if", "(", "++", "index", "==", "length", ")", "index", "=", "0", ";", "}", "return", "key", ";", "}", "public", "Object", "keyForValue", "(", "Object", "valueToMatch", ")", "{", "if", "(", "valueToMatch", "!=", "null", ")", "for", "(", "int", "i", "=", "0", ",", "l", "=", "this", ".", "keyTable", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "if", "(", "this", ".", "keyTable", "[", "i", "]", "!=", "null", "&&", "valueToMatch", ".", "equals", "(", "this", ".", "valueTable", "[", "i", "]", ")", ")", "return", "this", ".", "keyTable", "[", "i", "]", ";", "return", "null", ";", "}", "public", "Object", "put", "(", "Object", "key", ",", "Object", "value", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ";", "int", "index", "=", "(", "key", ".", "hashCode", "(", ")", "&", "0x7FFFFFFF", ")", "%", "length", ";", "Object", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "equals", "(", "key", ")", ")", "return", "this", ".", "valueTable", "[", "index", "]", "=", "value", ";", "if", "(", "++", "index", "==", "length", ")", "index", "=", "0", ";", "}", "this", ".", "keyTable", "[", "index", "]", "=", "key", ";", "this", ".", "valueTable", "[", "index", "]", "=", "value", ";", "if", "(", "++", "this", ".", "elementSize", ">", "this", ".", "threshold", ")", "rehash", "(", ")", ";", "return", "value", ";", "}", "public", "Object", "removeKey", "(", "Object", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ";", "int", "index", "=", "(", "key", ".", "hashCode", "(", ")", "&", "0x7FFFFFFF", ")", "%", "length", ";", "Object", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "equals", "(", "key", ")", ")", "{", "this", ".", "elementSize", "--", ";", "Object", "oldValue", "=", "this", ".", "valueTable", "[", "index", "]", ";", "this", ".", "keyTable", "[", "index", "]", "=", "null", ";", "this", ".", "valueTable", "[", "index", "]", "=", "null", ";", "if", "(", "this", ".", "keyTable", "[", "index", "+", "1", "==", "length", "?", "0", ":", "index", "+", "1", "]", "!=", "null", ")", "rehash", "(", ")", ";", "return", "oldValue", ";", "}", "if", "(", "++", "index", "==", "length", ")", "index", "=", "0", ";", "}", "return", "null", ";", "}", "public", "void", "removeValue", "(", "Object", "valueToRemove", ")", "{", "boolean", "rehash", "=", "false", ";", "for", "(", "int", "i", "=", "0", ",", "l", "=", "this", ".", "valueTable", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "{", "Object", "value", "=", "this", ".", "valueTable", "[", "i", "]", ";", "if", "(", "value", "!=", "null", "&&", "value", ".", "equals", "(", "valueToRemove", ")", ")", "{", "this", ".", "elementSize", "--", ";", "this", ".", "keyTable", "[", "i", "]", "=", "null", ";", "this", ".", "valueTable", "[", "i", "]", "=", "null", ";", "if", "(", "!", "rehash", "&&", "this", ".", "keyTable", "[", "i", "+", "1", "==", "l", "?", "0", ":", "i", "+", "1", "]", "!=", "null", ")", "rehash", "=", "true", ";", "}", "}", "if", "(", "rehash", ")", "rehash", "(", ")", ";", "}", "private", "void", "rehash", "(", ")", "{", "SimpleLookupTable", "newLookupTable", "=", "new", "SimpleLookupTable", "(", "this", ".", "elementSize", "*", "2", ")", ";", "Object", "currentKey", ";", "for", "(", "int", "i", "=", "this", ".", "keyTable", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "i", "]", ")", "!=", "null", ")", "newLookupTable", ".", "put", "(", "currentKey", ",", "this", ".", "valueTable", "[", "i", "]", ")", ";", "this", ".", "keyTable", "=", "newLookupTable", ".", "keyTable", ";", "this", ".", "valueTable", "=", "newLookupTable", ".", "valueTable", ";", "this", ".", "elementSize", "=", "newLookupTable", ".", "elementSize", ";", "this", ".", "threshold", "=", "newLookupTable", ".", "threshold", ";", "}", "public", "String", "toString", "(", ")", "{", "String", "s", "=", "\"\"", ";", "Object", "object", ";", "for", "(", "int", "i", "=", "0", ",", "l", "=", "this", ".", "valueTable", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "if", "(", "(", "object", "=", "this", ".", "valueTable", "[", "i", "]", ")", "!=", "null", ")", "s", "+=", "this", ".", "keyTable", "[", "i", "]", ".", "toString", "(", ")", "+", "\"", "->", "\"", "+", "object", ".", "toString", "(", ")", "+", "\"n\"", ";", "return", "s", ";", "}", "}", "</s>" ]
3,307
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ";", "public", "final", "class", "HashtableOfObjectToInt", "implements", "Cloneable", "{", "public", "Object", "[", "]", "keyTable", ";", "public", "int", "[", "]", "valueTable", ";", "public", "int", "elementSize", ";", "int", "threshold", ";", "public", "HashtableOfObjectToInt", "(", ")", "{", "this", "(", "13", ")", ";", "}", "public", "HashtableOfObjectToInt", "(", "int", "size", ")", "{", "this", ".", "elementSize", "=", "0", ";", "this", ".", "threshold", "=", "size", ";", "int", "extraRoom", "=", "(", "int", ")", "(", "size", "*", "1.75f", ")", ";", "if", "(", "this", ".", "threshold", "==", "extraRoom", ")", "extraRoom", "++", ";", "this", ".", "keyTable", "=", "new", "Object", "[", "extraRoom", "]", ";", "this", ".", "valueTable", "=", "new", "int", "[", "extraRoom", "]", ";", "}", "public", "Object", "clone", "(", ")", "throws", "CloneNotSupportedException", "{", "HashtableOfObjectToInt", "result", "=", "(", "HashtableOfObjectToInt", ")", "super", ".", "clone", "(", ")", ";", "result", ".", "elementSize", "=", "this", ".", "elementSize", ";", "result", ".", "threshold", "=", "this", ".", "threshold", ";", "int", "length", "=", "this", ".", "keyTable", ".", "length", ";", "result", ".", "keyTable", "=", "new", "Object", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "keyTable", ",", "0", ",", "result", ".", "keyTable", ",", "0", ",", "length", ")", ";", "length", "=", "this", ".", "valueTable", ".", "length", ";", "result", ".", "valueTable", "=", "new", "int", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "valueTable", ",", "0", ",", "result", ".", "valueTable", ",", "0", ",", "length", ")", ";", "return", "result", ";", "}", "public", "boolean", "containsKey", "(", "Object", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "(", "key", ".", "hashCode", "(", ")", "&", "0x7FFFFFFF", ")", "%", "length", ";", "Object", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "equals", "(", "key", ")", ")", "return", "true", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "false", ";", "}", "public", "int", "get", "(", "Object", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "(", "key", ".", "hashCode", "(", ")", "&", "0x7FFFFFFF", ")", "%", "length", ";", "Object", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "equals", "(", "key", ")", ")", "return", "this", ".", "valueTable", "[", "index", "]", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "-", "1", ";", "}", "public", "void", "keysToArray", "(", "Object", "[", "]", "array", ")", "{", "int", "index", "=", "0", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "keyTable", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "this", ".", "keyTable", "[", "i", "]", "!=", "null", ")", "array", "[", "index", "++", "]", "=", "this", ".", "keyTable", "[", "i", "]", ";", "}", "}", "public", "int", "put", "(", "Object", "key", ",", "int", "value", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "(", "key", ".", "hashCode", "(", ")", "&", "0x7FFFFFFF", ")", "%", "length", ";", "Object", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "equals", "(", "key", ")", ")", "return", "this", ".", "valueTable", "[", "index", "]", "=", "value", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "this", ".", "keyTable", "[", "index", "]", "=", "key", ";", "this", ".", "valueTable", "[", "index", "]", "=", "value", ";", "if", "(", "++", "this", ".", "elementSize", ">", "this", ".", "threshold", ")", "rehash", "(", ")", ";", "return", "value", ";", "}", "public", "int", "removeKey", "(", "Object", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "(", "key", ".", "hashCode", "(", ")", "&", "0x7FFFFFFF", ")", "%", "length", ";", "Object", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "equals", "(", "key", ")", ")", "{", "int", "value", "=", "this", ".", "valueTable", "[", "index", "]", ";", "this", ".", "elementSize", "--", ";", "this", ".", "keyTable", "[", "index", "]", "=", "null", ";", "rehash", "(", ")", ";", "return", "value", ";", "}", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "-", "1", ";", "}", "private", "void", "rehash", "(", ")", "{", "HashtableOfObjectToInt", "newHashtable", "=", "new", "HashtableOfObjectToInt", "(", "this", ".", "elementSize", "*", "2", ")", ";", "Object", "currentKey", ";", "for", "(", "int", "i", "=", "this", ".", "keyTable", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "i", "]", ")", "!=", "null", ")", "newHashtable", ".", "put", "(", "currentKey", ",", "this", ".", "valueTable", "[", "i", "]", ")", ";", "this", ".", "keyTable", "=", "newHashtable", ".", "keyTable", ";", "this", ".", "valueTable", "=", "newHashtable", ".", "valueTable", ";", "this", ".", "threshold", "=", "newHashtable", ".", "threshold", ";", "}", "public", "int", "size", "(", ")", "{", "return", "this", ".", "elementSize", ";", "}", "public", "String", "toString", "(", ")", "{", "String", "s", "=", "\"\"", ";", "Object", "key", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "keyTable", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "if", "(", "(", "key", "=", "this", ".", "keyTable", "[", "i", "]", ")", "!=", "null", ")", "s", "+=", "key", "+", "\"", "->", "\"", "+", "this", ".", "valueTable", "[", "i", "]", "+", "\"n\"", ";", "return", "s", ";", "}", "}", "</s>" ]
3,308
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ";", "public", "interface", "SuffixConstants", "{", "public", "final", "static", "String", "EXTENSION_class", "=", "\"class\"", ";", "public", "final", "static", "String", "EXTENSION_CLASS", "=", "\"CLASS\"", ";", "public", "final", "static", "String", "EXTENSION_java", "=", "\"java\"", ";", "public", "final", "static", "String", "EXTENSION_JAVA", "=", "\"JAVA\"", ";", "public", "final", "static", "String", "SUFFIX_STRING_class", "=", "\".\"", "+", "EXTENSION_class", ";", "public", "final", "static", "String", "SUFFIX_STRING_CLASS", "=", "\".\"", "+", "EXTENSION_CLASS", ";", "public", "final", "static", "String", "SUFFIX_STRING_java", "=", "\".\"", "+", "EXTENSION_java", ";", "public", "final", "static", "String", "SUFFIX_STRING_JAVA", "=", "\".\"", "+", "EXTENSION_JAVA", ";", "public", "final", "static", "char", "[", "]", "SUFFIX_class", "=", "SUFFIX_STRING_class", ".", "toCharArray", "(", ")", ";", "public", "final", "static", "char", "[", "]", "SUFFIX_CLASS", "=", "SUFFIX_STRING_CLASS", ".", "toCharArray", "(", ")", ";", "public", "final", "static", "char", "[", "]", "SUFFIX_java", "=", "SUFFIX_STRING_java", ".", "toCharArray", "(", ")", ";", "public", "final", "static", "char", "[", "]", "SUFFIX_JAVA", "=", "SUFFIX_STRING_JAVA", ".", "toCharArray", "(", ")", ";", "}", "</s>" ]
3,309
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ";", "import", "java", ".", "io", ".", "IOException", ";", "import", "java", ".", "io", ".", "InputStream", ";", "import", "java", ".", "util", ".", "ArrayList", ";", "import", "java", ".", "util", ".", "List", ";", "public", "class", "ManifestAnalyzer", "{", "private", "static", "final", "int", "START", "=", "0", ",", "IN_CLASSPATH_HEADER", "=", "1", ",", "PAST_CLASSPATH_HEADER", "=", "2", ",", "SKIPPING_WHITESPACE", "=", "3", ",", "READING_JAR", "=", "4", ",", "CONTINUING", "=", "5", ",", "SKIP_LINE", "=", "6", ";", "private", "static", "final", "char", "[", "]", "CLASSPATH_HEADER_TOKEN", "=", "\"Class-Path:\"", ".", "toCharArray", "(", ")", ";", "private", "int", "classpathSectionsCount", ";", "private", "ArrayList", "calledFilesNames", ";", "public", "boolean", "analyzeManifestContents", "(", "InputStream", "inputStream", ")", "throws", "IOException", "{", "char", "[", "]", "chars", "=", "Util", ".", "getInputStreamAsCharArray", "(", "inputStream", ",", "-", "1", ",", "Util", ".", "UTF_8", ")", ";", "int", "state", "=", "START", ",", "substate", "=", "0", ";", "StringBuffer", "currentJarToken", "=", "new", "StringBuffer", "(", ")", ";", "int", "currentChar", ";", "this", ".", "classpathSectionsCount", "=", "0", ";", "this", ".", "calledFilesNames", "=", "null", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "chars", ".", "length", ";", "i", "<", "max", ";", ")", "{", "currentChar", "=", "chars", "[", "i", "++", "]", ";", "if", "(", "currentChar", "==", "'\\r'", ")", "{", "if", "(", "i", "<", "max", ")", "{", "currentChar", "=", "chars", "[", "i", "++", "]", ";", "}", "}", "switch", "(", "state", ")", "{", "case", "START", ":", "if", "(", "currentChar", "==", "CLASSPATH_HEADER_TOKEN", "[", "0", "]", ")", "{", "state", "=", "IN_CLASSPATH_HEADER", ";", "substate", "=", "1", ";", "}", "else", "{", "state", "=", "SKIP_LINE", ";", "}", "break", ";", "case", "IN_CLASSPATH_HEADER", ":", "if", "(", "currentChar", "==", "'\\n'", ")", "{", "state", "=", "START", ";", "}", "else", "if", "(", "currentChar", "!=", "CLASSPATH_HEADER_TOKEN", "[", "substate", "++", "]", ")", "{", "state", "=", "SKIP_LINE", ";", "}", "else", "if", "(", "substate", "==", "CLASSPATH_HEADER_TOKEN", ".", "length", ")", "{", "state", "=", "PAST_CLASSPATH_HEADER", ";", "}", "break", ";", "case", "PAST_CLASSPATH_HEADER", ":", "if", "(", "currentChar", "==", "'", "'", ")", "{", "state", "=", "SKIPPING_WHITESPACE", ";", "this", ".", "classpathSectionsCount", "++", ";", "}", "else", "{", "return", "false", ";", "}", "break", ";", "case", "SKIPPING_WHITESPACE", ":", "if", "(", "currentChar", "==", "'\\n'", ")", "{", "state", "=", "CONTINUING", ";", "}", "else", "if", "(", "currentChar", "!=", "'", "'", ")", "{", "currentJarToken", ".", "append", "(", "(", "char", ")", "currentChar", ")", ";", "state", "=", "READING_JAR", ";", "}", "else", "{", "addCurrentTokenJarWhenNecessary", "(", "currentJarToken", ")", ";", "}", "break", ";", "case", "CONTINUING", ":", "if", "(", "currentChar", "==", "'\\n'", ")", "{", "addCurrentTokenJarWhenNecessary", "(", "currentJarToken", ")", ";", "state", "=", "START", ";", "}", "else", "if", "(", "currentChar", "==", "'", "'", ")", "{", "state", "=", "SKIPPING_WHITESPACE", ";", "}", "else", "if", "(", "currentChar", "==", "CLASSPATH_HEADER_TOKEN", "[", "0", "]", ")", "{", "addCurrentTokenJarWhenNecessary", "(", "currentJarToken", ")", ";", "state", "=", "IN_CLASSPATH_HEADER", ";", "substate", "=", "1", ";", "}", "else", "if", "(", "this", ".", "calledFilesNames", "==", "null", ")", "{", "addCurrentTokenJarWhenNecessary", "(", "currentJarToken", ")", ";", "state", "=", "START", ";", "}", "else", "{", "addCurrentTokenJarWhenNecessary", "(", "currentJarToken", ")", ";", "state", "=", "SKIP_LINE", ";", "}", "break", ";", "case", "SKIP_LINE", ":", "if", "(", "currentChar", "==", "'\\n'", ")", "{", "state", "=", "START", ";", "}", "break", ";", "case", "READING_JAR", ":", "if", "(", "currentChar", "==", "'\\n'", ")", "{", "state", "=", "CONTINUING", ";", "break", ";", "}", "else", "if", "(", "currentChar", "==", "'", "'", ")", "{", "state", "=", "SKIPPING_WHITESPACE", ";", "}", "else", "{", "currentJarToken", ".", "append", "(", "(", "char", ")", "currentChar", ")", ";", "break", ";", "}", "addCurrentTokenJarWhenNecessary", "(", "currentJarToken", ")", ";", "break", ";", "}", "}", "switch", "(", "state", ")", "{", "case", "START", ":", "return", "true", ";", "case", "IN_CLASSPATH_HEADER", ":", "return", "true", ";", "case", "PAST_CLASSPATH_HEADER", ":", "return", "false", ";", "case", "SKIPPING_WHITESPACE", ":", "addCurrentTokenJarWhenNecessary", "(", "currentJarToken", ")", ";", "return", "true", ";", "case", "CONTINUING", ":", "addCurrentTokenJarWhenNecessary", "(", "currentJarToken", ")", ";", "return", "true", ";", "case", "SKIP_LINE", ":", "if", "(", "this", ".", "classpathSectionsCount", "!=", "0", ")", "{", "if", "(", "this", ".", "calledFilesNames", "==", "null", ")", "{", "return", "false", ";", "}", "}", "return", "true", ";", "case", "READING_JAR", ":", "return", "false", ";", "}", "return", "true", ";", "}", "private", "boolean", "addCurrentTokenJarWhenNecessary", "(", "StringBuffer", "currentJarToken", ")", "{", "if", "(", "currentJarToken", "!=", "null", "&&", "currentJarToken", ".", "length", "(", ")", ">", "0", ")", "{", "if", "(", "this", ".", "calledFilesNames", "==", "null", ")", "{", "this", ".", "calledFilesNames", "=", "new", "ArrayList", "(", ")", ";", "}", "this", ".", "calledFilesNames", ".", "add", "(", "currentJarToken", ".", "toString", "(", ")", ")", ";", "currentJarToken", ".", "setLength", "(", "0", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", "public", "int", "getClasspathSectionsCount", "(", ")", "{", "return", "this", ".", "classpathSectionsCount", ";", "}", "public", "List", "getCalledFileNames", "(", ")", "{", "return", "this", ".", "calledFilesNames", ";", "}", "}", "</s>" ]
3,310
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "public", "final", "class", "HashtableOfIntValues", "implements", "Cloneable", "{", "public", "static", "final", "int", "NO_VALUE", "=", "Integer", ".", "MIN_VALUE", ";", "public", "char", "[", "]", "keyTable", "[", "]", ";", "public", "int", "valueTable", "[", "]", ";", "public", "int", "elementSize", ";", "int", "threshold", ";", "public", "HashtableOfIntValues", "(", ")", "{", "this", "(", "13", ")", ";", "}", "public", "HashtableOfIntValues", "(", "int", "size", ")", "{", "this", ".", "elementSize", "=", "0", ";", "this", ".", "threshold", "=", "size", ";", "int", "extraRoom", "=", "(", "int", ")", "(", "size", "*", "1.75f", ")", ";", "if", "(", "this", ".", "threshold", "==", "extraRoom", ")", "extraRoom", "++", ";", "this", ".", "keyTable", "=", "new", "char", "[", "extraRoom", "]", "[", "]", ";", "this", ".", "valueTable", "=", "new", "int", "[", "extraRoom", "]", ";", "}", "public", "Object", "clone", "(", ")", "throws", "CloneNotSupportedException", "{", "HashtableOfIntValues", "result", "=", "(", "HashtableOfIntValues", ")", "super", ".", "clone", "(", ")", ";", "result", ".", "elementSize", "=", "this", ".", "elementSize", ";", "result", ".", "threshold", "=", "this", ".", "threshold", ";", "int", "length", "=", "this", ".", "keyTable", ".", "length", ";", "result", ".", "keyTable", "=", "new", "char", "[", "length", "]", "[", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "keyTable", ",", "0", ",", "result", ".", "keyTable", ",", "0", ",", "length", ")", ";", "length", "=", "this", ".", "valueTable", ".", "length", ";", "result", ".", "valueTable", "=", "new", "int", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "valueTable", ",", "0", ",", "result", ".", "valueTable", ",", "0", ",", "length", ")", ";", "return", "result", ";", "}", "public", "boolean", "containsKey", "(", "char", "[", "]", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "CharOperation", ".", "hashCode", "(", "key", ")", "%", "length", ";", "int", "keyLength", "=", "key", ".", "length", ";", "char", "[", "]", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "length", "==", "keyLength", "&&", "CharOperation", ".", "equals", "(", "currentKey", ",", "key", ")", ")", "return", "true", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "false", ";", "}", "public", "int", "get", "(", "char", "[", "]", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "CharOperation", ".", "hashCode", "(", "key", ")", "%", "length", ";", "int", "keyLength", "=", "key", ".", "length", ";", "char", "[", "]", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "length", "==", "keyLength", "&&", "CharOperation", ".", "equals", "(", "currentKey", ",", "key", ")", ")", "return", "this", ".", "valueTable", "[", "index", "]", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "NO_VALUE", ";", "}", "public", "int", "put", "(", "char", "[", "]", "key", ",", "int", "value", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "CharOperation", ".", "hashCode", "(", "key", ")", "%", "length", ";", "int", "keyLength", "=", "key", ".", "length", ";", "char", "[", "]", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "length", "==", "keyLength", "&&", "CharOperation", ".", "equals", "(", "currentKey", ",", "key", ")", ")", "return", "this", ".", "valueTable", "[", "index", "]", "=", "value", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "this", ".", "keyTable", "[", "index", "]", "=", "key", ";", "this", ".", "valueTable", "[", "index", "]", "=", "value", ";", "if", "(", "++", "this", ".", "elementSize", ">", "this", ".", "threshold", ")", "rehash", "(", ")", ";", "return", "value", ";", "}", "public", "int", "removeKey", "(", "char", "[", "]", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "CharOperation", ".", "hashCode", "(", "key", ")", "%", "length", ";", "int", "keyLength", "=", "key", ".", "length", ";", "char", "[", "]", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "length", "==", "keyLength", "&&", "CharOperation", ".", "equals", "(", "currentKey", ",", "key", ")", ")", "{", "int", "value", "=", "this", ".", "valueTable", "[", "index", "]", ";", "this", ".", "elementSize", "--", ";", "this", ".", "keyTable", "[", "index", "]", "=", "null", ";", "this", ".", "valueTable", "[", "index", "]", "=", "NO_VALUE", ";", "rehash", "(", ")", ";", "return", "value", ";", "}", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "NO_VALUE", ";", "}", "private", "void", "rehash", "(", ")", "{", "HashtableOfIntValues", "newHashtable", "=", "new", "HashtableOfIntValues", "(", "this", ".", "elementSize", "*", "2", ")", ";", "char", "[", "]", "currentKey", ";", "for", "(", "int", "i", "=", "this", ".", "keyTable", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "i", "]", ")", "!=", "null", ")", "newHashtable", ".", "put", "(", "currentKey", ",", "this", ".", "valueTable", "[", "i", "]", ")", ";", "this", ".", "keyTable", "=", "newHashtable", ".", "keyTable", ";", "this", ".", "valueTable", "=", "newHashtable", ".", "valueTable", ";", "this", ".", "threshold", "=", "newHashtable", ".", "threshold", ";", "}", "public", "int", "size", "(", ")", "{", "return", "this", ".", "elementSize", ";", "}", "public", "String", "toString", "(", ")", "{", "String", "s", "=", "\"\"", ";", "char", "[", "]", "key", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "valueTable", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "if", "(", "(", "key", "=", "this", ".", "keyTable", "[", "i", "]", ")", "!=", "null", ")", "s", "+=", "new", "String", "(", "key", ")", "+", "\"", "->", "\"", "+", "this", ".", "valueTable", "[", "i", "]", "+", "\"n\"", ";", "return", "s", ";", "}", "}", "</s>" ]
3,311
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ";", "public", "class", "FloatUtil", "{", "private", "static", "final", "int", "DOUBLE_FRACTION_WIDTH", "=", "52", ";", "private", "static", "final", "int", "DOUBLE_PRECISION", "=", "53", ";", "private", "static", "final", "int", "MAX_DOUBLE_EXPONENT", "=", "+", "1023", ";", "private", "static", "final", "int", "MIN_NORMALIZED_DOUBLE_EXPONENT", "=", "-", "1022", ";", "private", "static", "final", "int", "MIN_UNNORMALIZED_DOUBLE_EXPONENT", "=", "MIN_NORMALIZED_DOUBLE_EXPONENT", "-", "DOUBLE_PRECISION", ";", "private", "static", "final", "int", "DOUBLE_EXPONENT_BIAS", "=", "+", "1023", ";", "private", "static", "final", "int", "DOUBLE_EXPONENT_SHIFT", "=", "52", ";", "private", "static", "final", "int", "SINGLE_FRACTION_WIDTH", "=", "23", ";", "private", "static", "final", "int", "SINGLE_PRECISION", "=", "24", ";", "private", "static", "final", "int", "MAX_SINGLE_EXPONENT", "=", "+", "127", ";", "private", "static", "final", "int", "MIN_NORMALIZED_SINGLE_EXPONENT", "=", "-", "126", ";", "private", "static", "final", "int", "MIN_UNNORMALIZED_SINGLE_EXPONENT", "=", "MIN_NORMALIZED_SINGLE_EXPONENT", "-", "SINGLE_PRECISION", ";", "private", "static", "final", "int", "SINGLE_EXPONENT_BIAS", "=", "+", "127", ";", "private", "static", "final", "int", "SINGLE_EXPONENT_SHIFT", "=", "23", ";", "public", "static", "float", "valueOfHexFloatLiteral", "(", "char", "[", "]", "source", ")", "{", "long", "bits", "=", "convertHexFloatingPointLiteralToBits", "(", "source", ")", ";", "return", "Float", ".", "intBitsToFloat", "(", "(", "int", ")", "bits", ")", ";", "}", "public", "static", "double", "valueOfHexDoubleLiteral", "(", "char", "[", "]", "source", ")", "{", "long", "bits", "=", "convertHexFloatingPointLiteralToBits", "(", "source", ")", ";", "return", "Double", ".", "longBitsToDouble", "(", "bits", ")", ";", "}", "private", "static", "long", "convertHexFloatingPointLiteralToBits", "(", "char", "[", "]", "source", ")", "{", "int", "length", "=", "source", ".", "length", ";", "long", "mantissa", "=", "0", ";", "int", "next", "=", "0", ";", "char", "nextChar", "=", "source", "[", "next", "]", ";", "nextChar", "=", "source", "[", "next", "]", ";", "if", "(", "nextChar", "==", "'0'", ")", "{", "next", "++", ";", "}", "else", "{", "throw", "new", "NumberFormatException", "(", ")", ";", "}", "nextChar", "=", "source", "[", "next", "]", ";", "if", "(", "nextChar", "==", "'X'", "||", "nextChar", "==", "'x'", ")", "{", "next", "++", ";", "}", "else", "{", "throw", "new", "NumberFormatException", "(", ")", ";", "}", "int", "binaryPointPosition", "=", "-", "1", ";", "loop", ":", "while", "(", "true", ")", "{", "nextChar", "=", "source", "[", "next", "]", ";", "switch", "(", "nextChar", ")", "{", "case", "'0'", ":", "next", "++", ";", "continue", "loop", ";", "case", "'.'", ":", "binaryPointPosition", "=", "next", ";", "next", "++", ";", "continue", "loop", ";", "default", ":", "break", "loop", ";", "}", "}", "int", "mantissaBits", "=", "0", ";", "int", "leadingDigitPosition", "=", "-", "1", ";", "loop", ":", "while", "(", "true", ")", "{", "nextChar", "=", "source", "[", "next", "]", ";", "int", "hexdigit", ";", "switch", "(", "nextChar", ")", "{", "case", "'0'", ":", "case", "'1'", ":", "case", "'2'", ":", "case", "'3'", ":", "case", "'4'", ":", "case", "'5'", ":", "case", "'6'", ":", "case", "'7'", ":", "case", "'8'", ":", "case", "'9'", ":", "hexdigit", "=", "nextChar", "-", "'0'", ";", "break", ";", "case", "'a'", ":", "case", "'b'", ":", "case", "'c'", ":", "case", "'d'", ":", "case", "'e'", ":", "case", "'f'", ":", "hexdigit", "=", "(", "nextChar", "-", "'a'", ")", "+", "10", ";", "break", ";", "case", "'A'", ":", "case", "'B'", ":", "case", "'C'", ":", "case", "'D'", ":", "case", "'E'", ":", "case", "'F'", ":", "hexdigit", "=", "(", "nextChar", "-", "'A'", ")", "+", "10", ";", "break", ";", "case", "'.'", ":", "binaryPointPosition", "=", "next", ";", "next", "++", ";", "continue", "loop", ";", "default", ":", "if", "(", "binaryPointPosition", "<", "0", ")", "{", "binaryPointPosition", "=", "next", ";", "}", "break", "loop", ";", "}", "if", "(", "mantissaBits", "==", "0", ")", "{", "leadingDigitPosition", "=", "next", ";", "mantissa", "=", "hexdigit", ";", "mantissaBits", "=", "4", ";", "}", "else", "if", "(", "mantissaBits", "<", "60", ")", "{", "mantissa", "<<=", "4", ";", "mantissa", "|=", "hexdigit", ";", "mantissaBits", "+=", "4", ";", "}", "else", "{", "}", "next", "++", ";", "continue", "loop", ";", "}", "nextChar", "=", "source", "[", "next", "]", ";", "if", "(", "nextChar", "==", "'P'", "||", "nextChar", "==", "'p'", ")", "{", "next", "++", ";", "}", "else", "{", "throw", "new", "NumberFormatException", "(", ")", ";", "}", "int", "exponent", "=", "0", ";", "int", "exponentSign", "=", "+", "1", ";", "loop", ":", "while", "(", "next", "<", "length", ")", "{", "nextChar", "=", "source", "[", "next", "]", ";", "switch", "(", "nextChar", ")", "{", "case", "'+'", ":", "exponentSign", "=", "+", "1", ";", "next", "++", ";", "continue", "loop", ";", "case", "'-'", ":", "exponentSign", "=", "-", "1", ";", "next", "++", ";", "continue", "loop", ";", "case", "'0'", ":", "case", "'1'", ":", "case", "'2'", ":", "case", "'3'", ":", "case", "'4'", ":", "case", "'5'", ":", "case", "'6'", ":", "case", "'7'", ":", "case", "'8'", ":", "case", "'9'", ":", "int", "digit", "=", "nextChar", "-", "'0'", ";", "exponent", "=", "(", "exponent", "*", "10", ")", "+", "digit", ";", "next", "++", ";", "continue", "loop", ";", "default", ":", "break", "loop", ";", "}", "}", "boolean", "doublePrecision", "=", "true", ";", "if", "(", "next", "<", "length", ")", "{", "nextChar", "=", "source", "[", "next", "]", ";", "switch", "(", "nextChar", ")", "{", "case", "'f'", ":", "case", "'F'", ":", "doublePrecision", "=", "false", ";", "next", "++", ";", "break", ";", "case", "'d'", ":", "case", "'D'", ":", "doublePrecision", "=", "true", ";", "next", "++", ";", "break", ";", "default", ":", "throw", "new", "NumberFormatException", "(", ")", ";", "}", "}", "if", "(", "mantissa", "==", "0", ")", "{", "return", "0L", ";", "}", "int", "scaleFactorCompensation", "=", "0", ";", "long", "top", "=", "(", "mantissa", ">>>", "(", "mantissaBits", "-", "4", ")", ")", ";", "if", "(", "(", "top", "&", "0x8", ")", "==", "0", ")", "{", "mantissaBits", "--", ";", "scaleFactorCompensation", "++", ";", "if", "(", "(", "top", "&", "0x4", ")", "==", "0", ")", "{", "mantissaBits", "--", ";", "scaleFactorCompensation", "++", ";", "if", "(", "(", "top", "&", "0x2", ")", "==", "0", ")", "{", "mantissaBits", "--", ";", "scaleFactorCompensation", "++", ";", "}", "}", "}", "long", "result", "=", "0L", ";", "if", "(", "doublePrecision", ")", "{", "long", "fraction", ";", "if", "(", "mantissaBits", ">", "DOUBLE_PRECISION", ")", "{", "int", "extraBits", "=", "mantissaBits", "-", "DOUBLE_PRECISION", ";", "fraction", "=", "mantissa", ">>>", "(", "extraBits", "-", "1", ")", ";", "long", "lowBit", "=", "fraction", "&", "0x1", ";", "fraction", "+=", "lowBit", ";", "fraction", "=", "fraction", ">>>", "1", ";", "if", "(", "(", "fraction", "&", "(", "1L", "<<", "DOUBLE_PRECISION", ")", ")", "!=", "0", ")", "{", "fraction", "=", "fraction", ">>>", "1", ";", "scaleFactorCompensation", "-=", "1", ";", "}", "}", "else", "{", "fraction", "=", "mantissa", "<<", "(", "DOUBLE_PRECISION", "-", "mantissaBits", ")", ";", "}", "int", "scaleFactor", "=", "0", ";", "if", "(", "mantissaBits", ">", "0", ")", "{", "if", "(", "leadingDigitPosition", "<", "binaryPointPosition", ")", "{", "scaleFactor", "=", "4", "*", "(", "binaryPointPosition", "-", "leadingDigitPosition", ")", ";", "scaleFactor", "-=", "scaleFactorCompensation", ";", "}", "else", "{", "scaleFactor", "=", "-", "4", "*", "(", "leadingDigitPosition", "-", "binaryPointPosition", "-", "1", ")", ";", "scaleFactor", "-=", "scaleFactorCompensation", ";", "}", "}", "int", "e", "=", "(", "exponentSign", "*", "exponent", ")", "+", "scaleFactor", ";", "if", "(", "e", "-", "1", ">", "MAX_DOUBLE_EXPONENT", ")", "{", "result", "=", "Double", ".", "doubleToLongBits", "(", "Double", ".", "POSITIVE_INFINITY", ")", ";", "}", "else", "if", "(", "e", "-", "1", ">=", "MIN_NORMALIZED_DOUBLE_EXPONENT", ")", "{", "long", "biasedExponent", "=", "e", "-", "1", "+", "DOUBLE_EXPONENT_BIAS", ";", "result", "=", "fraction", "&", "~", "(", "1L", "<<", "DOUBLE_FRACTION_WIDTH", ")", ";", "result", "|=", "(", "biasedExponent", "<<", "DOUBLE_EXPONENT_SHIFT", ")", ";", "}", "else", "if", "(", "e", "-", "1", ">", "MIN_UNNORMALIZED_DOUBLE_EXPONENT", ")", "{", "long", "biasedExponent", "=", "0", ";", "result", "=", "fraction", ">>>", "(", "MIN_NORMALIZED_DOUBLE_EXPONENT", "-", "e", "+", "1", ")", ";", "result", "|=", "(", "biasedExponent", "<<", "DOUBLE_EXPONENT_SHIFT", ")", ";", "}", "else", "{", "result", "=", "Double", ".", "doubleToLongBits", "(", "Double", ".", "NaN", ")", ";", "}", "return", "result", ";", "}", "long", "fraction", ";", "if", "(", "mantissaBits", ">", "SINGLE_PRECISION", ")", "{", "int", "extraBits", "=", "mantissaBits", "-", "SINGLE_PRECISION", ";", "fraction", "=", "mantissa", ">>>", "(", "extraBits", "-", "1", ")", ";", "long", "lowBit", "=", "fraction", "&", "0x1", ";", "fraction", "+=", "lowBit", ";", "fraction", "=", "fraction", ">>>", "1", ";", "if", "(", "(", "fraction", "&", "(", "1L", "<<", "SINGLE_PRECISION", ")", ")", "!=", "0", ")", "{", "fraction", "=", "fraction", ">>>", "1", ";", "scaleFactorCompensation", "-=", "1", ";", "}", "}", "else", "{", "fraction", "=", "mantissa", "<<", "(", "SINGLE_PRECISION", "-", "mantissaBits", ")", ";", "}", "int", "scaleFactor", "=", "0", ";", "if", "(", "mantissaBits", ">", "0", ")", "{", "if", "(", "leadingDigitPosition", "<", "binaryPointPosition", ")", "{", "scaleFactor", "=", "4", "*", "(", "binaryPointPosition", "-", "leadingDigitPosition", ")", ";", "scaleFactor", "-=", "scaleFactorCompensation", ";", "}", "else", "{", "scaleFactor", "=", "-", "4", "*", "(", "leadingDigitPosition", "-", "binaryPointPosition", "-", "1", ")", ";", "scaleFactor", "-=", "scaleFactorCompensation", ";", "}", "}", "int", "e", "=", "(", "exponentSign", "*", "exponent", ")", "+", "scaleFactor", ";", "if", "(", "e", "-", "1", ">", "MAX_SINGLE_EXPONENT", ")", "{", "result", "=", "Float", ".", "floatToIntBits", "(", "Float", ".", "POSITIVE_INFINITY", ")", ";", "}", "else", "if", "(", "e", "-", "1", ">=", "MIN_NORMALIZED_SINGLE_EXPONENT", ")", "{", "long", "biasedExponent", "=", "e", "-", "1", "+", "SINGLE_EXPONENT_BIAS", ";", "result", "=", "fraction", "&", "~", "(", "1L", "<<", "SINGLE_FRACTION_WIDTH", ")", ";", "result", "|=", "(", "biasedExponent", "<<", "SINGLE_EXPONENT_SHIFT", ")", ";", "}", "else", "if", "(", "e", "-", "1", ">", "MIN_UNNORMALIZED_SINGLE_EXPONENT", ")", "{", "long", "biasedExponent", "=", "0", ";", "result", "=", "fraction", ">>>", "(", "MIN_NORMALIZED_SINGLE_EXPONENT", "-", "e", "+", "1", ")", ";", "result", "|=", "(", "biasedExponent", "<<", "SINGLE_EXPONENT_SHIFT", ")", ";", "}", "else", "{", "result", "=", "Float", ".", "floatToIntBits", "(", "Float", ".", "NaN", ")", ";", "}", "return", "result", ";", "}", "}", "</s>" ]
3,312
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ";", "public", "final", "class", "ObjectVector", "{", "static", "int", "INITIAL_SIZE", "=", "10", ";", "public", "int", "size", ";", "int", "maxSize", ";", "Object", "[", "]", "elements", ";", "public", "ObjectVector", "(", ")", "{", "this", "(", "INITIAL_SIZE", ")", ";", "}", "public", "ObjectVector", "(", "int", "initialSize", ")", "{", "this", ".", "maxSize", "=", "initialSize", ">", "0", "?", "initialSize", ":", "INITIAL_SIZE", ";", "this", ".", "size", "=", "0", ";", "this", ".", "elements", "=", "new", "Object", "[", "this", ".", "maxSize", "]", ";", "}", "public", "void", "add", "(", "Object", "newElement", ")", "{", "if", "(", "this", ".", "size", "==", "this", ".", "maxSize", ")", "System", ".", "arraycopy", "(", "this", ".", "elements", ",", "0", ",", "(", "this", ".", "elements", "=", "new", "Object", "[", "this", ".", "maxSize", "*=", "2", "]", ")", ",", "0", ",", "this", ".", "size", ")", ";", "this", ".", "elements", "[", "this", ".", "size", "++", "]", "=", "newElement", ";", "}", "public", "void", "addAll", "(", "Object", "[", "]", "newElements", ")", "{", "if", "(", "this", ".", "size", "+", "newElements", ".", "length", ">=", "this", ".", "maxSize", ")", "{", "this", ".", "maxSize", "=", "this", ".", "size", "+", "newElements", ".", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "elements", ",", "0", ",", "(", "this", ".", "elements", "=", "new", "Object", "[", "this", ".", "maxSize", "]", ")", ",", "0", ",", "this", ".", "size", ")", ";", "}", "System", ".", "arraycopy", "(", "newElements", ",", "0", ",", "this", ".", "elements", ",", "this", ".", "size", ",", "newElements", ".", "length", ")", ";", "this", ".", "size", "+=", "newElements", ".", "length", ";", "}", "public", "void", "addAll", "(", "ObjectVector", "newVector", ")", "{", "if", "(", "this", ".", "size", "+", "newVector", ".", "size", ">=", "this", ".", "maxSize", ")", "{", "this", ".", "maxSize", "=", "this", ".", "size", "+", "newVector", ".", "size", ";", "System", ".", "arraycopy", "(", "this", ".", "elements", ",", "0", ",", "(", "this", ".", "elements", "=", "new", "Object", "[", "this", ".", "maxSize", "]", ")", ",", "0", ",", "this", ".", "size", ")", ";", "}", "System", ".", "arraycopy", "(", "newVector", ".", "elements", ",", "0", ",", "this", ".", "elements", ",", "this", ".", "size", ",", "newVector", ".", "size", ")", ";", "this", ".", "size", "+=", "newVector", ".", "size", ";", "}", "public", "boolean", "containsIdentical", "(", "Object", "element", ")", "{", "for", "(", "int", "i", "=", "this", ".", "size", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "element", "==", "this", ".", "elements", "[", "i", "]", ")", "return", "true", ";", "return", "false", ";", "}", "public", "boolean", "contains", "(", "Object", "element", ")", "{", "for", "(", "int", "i", "=", "this", ".", "size", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "element", ".", "equals", "(", "this", ".", "elements", "[", "i", "]", ")", ")", "return", "true", ";", "return", "false", ";", "}", "public", "void", "copyInto", "(", "Object", "[", "]", "targetArray", ")", "{", "this", ".", "copyInto", "(", "targetArray", ",", "0", ")", ";", "}", "public", "void", "copyInto", "(", "Object", "[", "]", "targetArray", ",", "int", "index", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "elements", ",", "0", ",", "targetArray", ",", "index", ",", "this", ".", "size", ")", ";", "}", "public", "Object", "elementAt", "(", "int", "index", ")", "{", "return", "this", ".", "elements", "[", "index", "]", ";", "}", "public", "Object", "find", "(", "Object", "element", ")", "{", "for", "(", "int", "i", "=", "this", ".", "size", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "element", ".", "equals", "(", "this", ".", "elements", "[", "i", "]", ")", ")", "return", "this", ".", "elements", "[", "i", "]", ";", "return", "null", ";", "}", "public", "Object", "remove", "(", "Object", "element", ")", "{", "for", "(", "int", "i", "=", "this", ".", "size", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "element", ".", "equals", "(", "this", ".", "elements", "[", "i", "]", ")", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "elements", ",", "i", "+", "1", ",", "this", ".", "elements", ",", "i", ",", "--", "this", ".", "size", "-", "i", ")", ";", "this", ".", "elements", "[", "this", ".", "size", "]", "=", "null", ";", "return", "element", ";", "}", "return", "null", ";", "}", "public", "void", "removeAll", "(", ")", "{", "for", "(", "int", "i", "=", "this", ".", "size", ";", "--", "i", ">=", "0", ";", ")", "this", ".", "elements", "[", "i", "]", "=", "null", ";", "this", ".", "size", "=", "0", ";", "}", "public", "int", "size", "(", ")", "{", "return", "this", ".", "size", ";", "}", "public", "String", "toString", "(", ")", "{", "String", "s", "=", "\"\"", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "size", ";", "i", "++", ")", "s", "+=", "this", ".", "elements", "[", "i", "]", ".", "toString", "(", ")", "+", "\"n\"", ";", "return", "s", ";", "}", "}", "</s>" ]
3,313
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "PackageBinding", ";", "public", "final", "class", "HashtableOfPackage", "{", "public", "char", "[", "]", "keyTable", "[", "]", ";", "public", "PackageBinding", "valueTable", "[", "]", ";", "public", "int", "elementSize", ";", "int", "threshold", ";", "public", "HashtableOfPackage", "(", ")", "{", "this", "(", "3", ")", ";", "}", "public", "HashtableOfPackage", "(", "int", "size", ")", "{", "this", ".", "elementSize", "=", "0", ";", "this", ".", "threshold", "=", "size", ";", "int", "extraRoom", "=", "(", "int", ")", "(", "size", "*", "1.75f", ")", ";", "if", "(", "this", ".", "threshold", "==", "extraRoom", ")", "extraRoom", "++", ";", "this", ".", "keyTable", "=", "new", "char", "[", "extraRoom", "]", "[", "]", ";", "this", ".", "valueTable", "=", "new", "PackageBinding", "[", "extraRoom", "]", ";", "}", "public", "boolean", "containsKey", "(", "char", "[", "]", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "CharOperation", ".", "hashCode", "(", "key", ")", "%", "length", ";", "int", "keyLength", "=", "key", ".", "length", ";", "char", "[", "]", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "length", "==", "keyLength", "&&", "CharOperation", ".", "equals", "(", "currentKey", ",", "key", ")", ")", "return", "true", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "false", ";", "}", "public", "PackageBinding", "get", "(", "char", "[", "]", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "CharOperation", ".", "hashCode", "(", "key", ")", "%", "length", ";", "int", "keyLength", "=", "key", ".", "length", ";", "char", "[", "]", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "length", "==", "keyLength", "&&", "CharOperation", ".", "equals", "(", "currentKey", ",", "key", ")", ")", "return", "this", ".", "valueTable", "[", "index", "]", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "null", ";", "}", "public", "PackageBinding", "put", "(", "char", "[", "]", "key", ",", "PackageBinding", "value", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "CharOperation", ".", "hashCode", "(", "key", ")", "%", "length", ";", "int", "keyLength", "=", "key", ".", "length", ";", "char", "[", "]", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "length", "==", "keyLength", "&&", "CharOperation", ".", "equals", "(", "currentKey", ",", "key", ")", ")", "return", "this", ".", "valueTable", "[", "index", "]", "=", "value", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "this", ".", "keyTable", "[", "index", "]", "=", "key", ";", "this", ".", "valueTable", "[", "index", "]", "=", "value", ";", "if", "(", "++", "this", ".", "elementSize", ">", "this", ".", "threshold", ")", "rehash", "(", ")", ";", "return", "value", ";", "}", "private", "void", "rehash", "(", ")", "{", "HashtableOfPackage", "newHashtable", "=", "new", "HashtableOfPackage", "(", "this", ".", "elementSize", "*", "2", ")", ";", "char", "[", "]", "currentKey", ";", "for", "(", "int", "i", "=", "this", ".", "keyTable", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "i", "]", ")", "!=", "null", ")", "newHashtable", ".", "put", "(", "currentKey", ",", "this", ".", "valueTable", "[", "i", "]", ")", ";", "this", ".", "keyTable", "=", "newHashtable", ".", "keyTable", ";", "this", ".", "valueTable", "=", "newHashtable", ".", "valueTable", ";", "this", ".", "threshold", "=", "newHashtable", ".", "threshold", ";", "}", "public", "int", "size", "(", ")", "{", "return", "this", ".", "elementSize", ";", "}", "public", "String", "toString", "(", ")", "{", "String", "s", "=", "\"\"", ";", "PackageBinding", "pkg", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "valueTable", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "if", "(", "(", "pkg", "=", "this", ".", "valueTable", "[", "i", "]", ")", "!=", "null", ")", "s", "+=", "pkg", ".", "toString", "(", ")", "+", "\"n\"", ";", "return", "s", ";", "}", "}", "</s>" ]
3,314
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ";", "public", "final", "class", "HashtableOfInt", "{", "public", "int", "[", "]", "keyTable", ";", "public", "Object", "[", "]", "valueTable", ";", "public", "int", "elementSize", ";", "int", "threshold", ";", "public", "HashtableOfInt", "(", ")", "{", "this", "(", "13", ")", ";", "}", "public", "HashtableOfInt", "(", "int", "size", ")", "{", "this", ".", "elementSize", "=", "0", ";", "this", ".", "threshold", "=", "size", ";", "int", "extraRoom", "=", "(", "int", ")", "(", "size", "*", "1.75f", ")", ";", "if", "(", "this", ".", "threshold", "==", "extraRoom", ")", "extraRoom", "++", ";", "this", ".", "keyTable", "=", "new", "int", "[", "extraRoom", "]", ";", "this", ".", "valueTable", "=", "new", "Object", "[", "extraRoom", "]", ";", "}", "public", "boolean", "containsKey", "(", "int", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "key", "%", "length", ";", "int", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "0", ")", "{", "if", "(", "currentKey", "==", "key", ")", "return", "true", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "false", ";", "}", "public", "Object", "get", "(", "int", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "key", "%", "length", ";", "int", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "0", ")", "{", "if", "(", "currentKey", "==", "key", ")", "return", "this", ".", "valueTable", "[", "index", "]", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "null", ";", "}", "public", "Object", "put", "(", "int", "key", ",", "Object", "value", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "key", "%", "length", ";", "int", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "0", ")", "{", "if", "(", "currentKey", "==", "key", ")", "return", "this", ".", "valueTable", "[", "index", "]", "=", "value", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "this", ".", "keyTable", "[", "index", "]", "=", "key", ";", "this", ".", "valueTable", "[", "index", "]", "=", "value", ";", "if", "(", "++", "this", ".", "elementSize", ">", "this", ".", "threshold", ")", "rehash", "(", ")", ";", "return", "value", ";", "}", "private", "void", "rehash", "(", ")", "{", "HashtableOfInt", "newHashtable", "=", "new", "HashtableOfInt", "(", "this", ".", "elementSize", "*", "2", ")", ";", "int", "currentKey", ";", "for", "(", "int", "i", "=", "this", ".", "keyTable", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "i", "]", ")", "!=", "0", ")", "newHashtable", ".", "put", "(", "currentKey", ",", "this", ".", "valueTable", "[", "i", "]", ")", ";", "this", ".", "keyTable", "=", "newHashtable", ".", "keyTable", ";", "this", ".", "valueTable", "=", "newHashtable", ".", "valueTable", ";", "this", ".", "threshold", "=", "newHashtable", ".", "threshold", ";", "}", "public", "int", "size", "(", ")", "{", "return", "this", ".", "elementSize", ";", "}", "public", "String", "toString", "(", ")", "{", "String", "s", "=", "\"\"", ";", "Object", "object", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "valueTable", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "if", "(", "(", "object", "=", "this", ".", "valueTable", "[", "i", "]", ")", "!=", "null", ")", "s", "+=", "this", ".", "keyTable", "[", "i", "]", "+", "\"", "->", "\"", "+", "object", ".", "toString", "(", ")", "+", "\"n\"", ";", "return", "s", ";", "}", "}", "</s>" ]
3,315
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "public", "final", "class", "HashtableOfType", "{", "public", "char", "[", "]", "keyTable", "[", "]", ";", "public", "ReferenceBinding", "valueTable", "[", "]", ";", "public", "int", "elementSize", ";", "int", "threshold", ";", "public", "HashtableOfType", "(", ")", "{", "this", "(", "3", ")", ";", "}", "public", "HashtableOfType", "(", "int", "size", ")", "{", "this", ".", "elementSize", "=", "0", ";", "this", ".", "threshold", "=", "size", ";", "int", "extraRoom", "=", "(", "int", ")", "(", "size", "*", "1.75f", ")", ";", "if", "(", "this", ".", "threshold", "==", "extraRoom", ")", "extraRoom", "++", ";", "this", ".", "keyTable", "=", "new", "char", "[", "extraRoom", "]", "[", "]", ";", "this", ".", "valueTable", "=", "new", "ReferenceBinding", "[", "extraRoom", "]", ";", "}", "public", "boolean", "containsKey", "(", "char", "[", "]", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "CharOperation", ".", "hashCode", "(", "key", ")", "%", "length", ";", "int", "keyLength", "=", "key", ".", "length", ";", "char", "[", "]", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "length", "==", "keyLength", "&&", "CharOperation", ".", "equals", "(", "currentKey", ",", "key", ")", ")", "return", "true", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "false", ";", "}", "public", "ReferenceBinding", "get", "(", "char", "[", "]", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "CharOperation", ".", "hashCode", "(", "key", ")", "%", "length", ";", "int", "keyLength", "=", "key", ".", "length", ";", "char", "[", "]", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "length", "==", "keyLength", "&&", "CharOperation", ".", "equals", "(", "currentKey", ",", "key", ")", ")", "return", "this", ".", "valueTable", "[", "index", "]", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "null", ";", "}", "public", "ReferenceBinding", "put", "(", "char", "[", "]", "key", ",", "ReferenceBinding", "value", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "CharOperation", ".", "hashCode", "(", "key", ")", "%", "length", ";", "int", "keyLength", "=", "key", ".", "length", ";", "char", "[", "]", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "length", "==", "keyLength", "&&", "CharOperation", ".", "equals", "(", "currentKey", ",", "key", ")", ")", "return", "this", ".", "valueTable", "[", "index", "]", "=", "value", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "this", ".", "keyTable", "[", "index", "]", "=", "key", ";", "this", ".", "valueTable", "[", "index", "]", "=", "value", ";", "if", "(", "++", "this", ".", "elementSize", ">", "this", ".", "threshold", ")", "rehash", "(", ")", ";", "return", "value", ";", "}", "private", "void", "rehash", "(", ")", "{", "HashtableOfType", "newHashtable", "=", "new", "HashtableOfType", "(", "this", ".", "elementSize", "<", "100", "?", "100", ":", "this", ".", "elementSize", "*", "2", ")", ";", "char", "[", "]", "currentKey", ";", "for", "(", "int", "i", "=", "this", ".", "keyTable", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "i", "]", ")", "!=", "null", ")", "newHashtable", ".", "put", "(", "currentKey", ",", "this", ".", "valueTable", "[", "i", "]", ")", ";", "this", ".", "keyTable", "=", "newHashtable", ".", "keyTable", ";", "this", ".", "valueTable", "=", "newHashtable", ".", "valueTable", ";", "this", ".", "threshold", "=", "newHashtable", ".", "threshold", ";", "}", "public", "int", "size", "(", ")", "{", "return", "this", ".", "elementSize", ";", "}", "public", "String", "toString", "(", ")", "{", "String", "s", "=", "\"\"", ";", "ReferenceBinding", "type", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "valueTable", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "if", "(", "(", "type", "=", "this", ".", "valueTable", "[", "i", "]", ")", "!=", "null", ")", "s", "+=", "type", ".", "toString", "(", ")", "+", "\"n\"", ";", "return", "s", ";", "}", "}", "</s>" ]
3,316
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "public", "final", "class", "CompoundNameVector", "{", "static", "int", "INITIAL_SIZE", "=", "10", ";", "public", "int", "size", ";", "int", "maxSize", ";", "char", "[", "]", "[", "]", "[", "]", "elements", ";", "public", "CompoundNameVector", "(", ")", "{", "this", ".", "maxSize", "=", "INITIAL_SIZE", ";", "this", ".", "size", "=", "0", ";", "this", ".", "elements", "=", "new", "char", "[", "this", ".", "maxSize", "]", "[", "]", "[", "]", ";", "}", "public", "void", "add", "(", "char", "[", "]", "[", "]", "newElement", ")", "{", "if", "(", "this", ".", "size", "==", "this", ".", "maxSize", ")", "System", ".", "arraycopy", "(", "this", ".", "elements", ",", "0", ",", "(", "this", ".", "elements", "=", "new", "char", "[", "this", ".", "maxSize", "*=", "2", "]", "[", "]", "[", "]", ")", ",", "0", ",", "this", ".", "size", ")", ";", "this", ".", "elements", "[", "this", ".", "size", "++", "]", "=", "newElement", ";", "}", "public", "void", "addAll", "(", "char", "[", "]", "[", "]", "[", "]", "newElements", ")", "{", "if", "(", "this", ".", "size", "+", "newElements", ".", "length", ">=", "this", ".", "maxSize", ")", "{", "this", ".", "maxSize", "=", "this", ".", "size", "+", "newElements", ".", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "elements", ",", "0", ",", "(", "this", ".", "elements", "=", "new", "char", "[", "this", ".", "maxSize", "]", "[", "]", "[", "]", ")", ",", "0", ",", "this", ".", "size", ")", ";", "}", "System", ".", "arraycopy", "(", "newElements", ",", "0", ",", "this", ".", "elements", ",", "this", ".", "size", ",", "newElements", ".", "length", ")", ";", "this", ".", "size", "+=", "newElements", ".", "length", ";", "}", "public", "boolean", "contains", "(", "char", "[", "]", "[", "]", "element", ")", "{", "for", "(", "int", "i", "=", "this", ".", "size", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "CharOperation", ".", "equals", "(", "element", ",", "this", ".", "elements", "[", "i", "]", ")", ")", "return", "true", ";", "return", "false", ";", "}", "public", "char", "[", "]", "[", "]", "elementAt", "(", "int", "index", ")", "{", "return", "this", ".", "elements", "[", "index", "]", ";", "}", "public", "char", "[", "]", "[", "]", "remove", "(", "char", "[", "]", "[", "]", "element", ")", "{", "for", "(", "int", "i", "=", "this", ".", "size", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "element", "==", "this", ".", "elements", "[", "i", "]", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "elements", ",", "i", "+", "1", ",", "this", ".", "elements", ",", "i", ",", "--", "this", ".", "size", "-", "i", ")", ";", "this", ".", "elements", "[", "this", ".", "size", "]", "=", "null", ";", "return", "element", ";", "}", "return", "null", ";", "}", "public", "void", "removeAll", "(", ")", "{", "for", "(", "int", "i", "=", "this", ".", "size", ";", "--", "i", ">=", "0", ";", ")", "this", ".", "elements", "[", "i", "]", "=", "null", ";", "this", ".", "size", "=", "0", ";", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "size", ";", "i", "++", ")", "{", "buffer", ".", "append", "(", "CharOperation", ".", "toString", "(", "this", ".", "elements", "[", "i", "]", ")", ")", ".", "append", "(", "\"n\"", ")", ";", "}", "return", "buffer", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
3,317
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ";", "public", "final", "class", "HashSetOfInt", "implements", "Cloneable", "{", "public", "int", "[", "]", "set", ";", "public", "int", "elementSize", ";", "int", "threshold", ";", "public", "HashSetOfInt", "(", ")", "{", "this", "(", "13", ")", ";", "}", "public", "HashSetOfInt", "(", "int", "size", ")", "{", "this", ".", "elementSize", "=", "0", ";", "this", ".", "threshold", "=", "size", ";", "int", "extraRoom", "=", "(", "int", ")", "(", "size", "*", "1.75f", ")", ";", "if", "(", "this", ".", "threshold", "==", "extraRoom", ")", "extraRoom", "++", ";", "this", ".", "set", "=", "new", "int", "[", "extraRoom", "]", ";", "}", "public", "Object", "clone", "(", ")", "throws", "CloneNotSupportedException", "{", "HashSetOfInt", "result", "=", "(", "HashSetOfInt", ")", "super", ".", "clone", "(", ")", ";", "result", ".", "elementSize", "=", "this", ".", "elementSize", ";", "result", ".", "threshold", "=", "this", ".", "threshold", ";", "int", "length", "=", "this", ".", "set", ".", "length", ";", "result", ".", "set", "=", "new", "int", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "set", ",", "0", ",", "result", ".", "set", ",", "0", ",", "length", ")", ";", "return", "result", ";", "}", "public", "boolean", "contains", "(", "int", "element", ")", "{", "int", "length", "=", "this", ".", "set", ".", "length", ";", "int", "index", "=", "element", "%", "length", ";", "int", "currentElement", ";", "while", "(", "(", "currentElement", "=", "this", ".", "set", "[", "index", "]", ")", "!=", "0", ")", "{", "if", "(", "currentElement", "==", "element", ")", "return", "true", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "false", ";", "}", "public", "int", "add", "(", "int", "element", ")", "{", "int", "length", "=", "this", ".", "set", ".", "length", ";", "int", "index", "=", "element", "%", "length", ";", "int", "currentElement", ";", "while", "(", "(", "currentElement", "=", "this", ".", "set", "[", "index", "]", ")", "!=", "0", ")", "{", "if", "(", "currentElement", "==", "element", ")", "return", "this", ".", "set", "[", "index", "]", "=", "element", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "this", ".", "set", "[", "index", "]", "=", "element", ";", "if", "(", "++", "this", ".", "elementSize", ">", "this", ".", "threshold", ")", "rehash", "(", ")", ";", "return", "element", ";", "}", "public", "int", "remove", "(", "int", "element", ")", "{", "int", "length", "=", "this", ".", "set", ".", "length", ";", "int", "index", "=", "element", "%", "length", ";", "int", "currentElement", ";", "while", "(", "(", "currentElement", "=", "this", ".", "set", "[", "index", "]", ")", "!=", "0", ")", "{", "if", "(", "currentElement", "==", "element", ")", "{", "int", "existing", "=", "this", ".", "set", "[", "index", "]", ";", "this", ".", "elementSize", "--", ";", "this", ".", "set", "[", "index", "]", "=", "0", ";", "rehash", "(", ")", ";", "return", "existing", ";", "}", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "0", ";", "}", "private", "void", "rehash", "(", ")", "{", "HashSetOfInt", "newHashSet", "=", "new", "HashSetOfInt", "(", "this", ".", "elementSize", "*", "2", ")", ";", "int", "currentElement", ";", "for", "(", "int", "i", "=", "this", ".", "set", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "(", "currentElement", "=", "this", ".", "set", "[", "i", "]", ")", "!=", "0", ")", "newHashSet", ".", "add", "(", "currentElement", ")", ";", "this", ".", "set", "=", "newHashSet", ".", "set", ";", "this", ".", "threshold", "=", "newHashSet", ".", "threshold", ";", "}", "public", "int", "size", "(", ")", "{", "return", "this", ".", "elementSize", ";", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "int", "element", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "set", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "if", "(", "(", "element", "=", "this", ".", "set", "[", "i", "]", ")", "!=", "0", ")", "{", "buffer", ".", "append", "(", "element", ")", ";", "if", "(", "i", "!=", "length", "-", "1", ")", "buffer", ".", "append", "(", "'\\n'", ")", ";", "}", "return", "buffer", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
3,318
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ";", "import", "java", ".", "io", ".", "BufferedInputStream", ";", "import", "java", ".", "io", ".", "BufferedOutputStream", ";", "import", "java", ".", "io", ".", "BufferedReader", ";", "import", "java", ".", "io", ".", "ByteArrayInputStream", ";", "import", "java", ".", "io", ".", "File", ";", "import", "java", ".", "io", ".", "FileInputStream", ";", "import", "java", ".", "io", ".", "FileOutputStream", ";", "import", "java", ".", "io", ".", "IOException", ";", "import", "java", ".", "io", ".", "InputStream", ";", "import", "java", ".", "io", ".", "InputStreamReader", ";", "import", "java", ".", "io", ".", "PrintWriter", ";", "import", "java", ".", "io", ".", "StringWriter", ";", "import", "java", ".", "io", ".", "UnsupportedEncodingException", ";", "import", "java", ".", "util", ".", "HashSet", ";", "import", "java", ".", "util", ".", "List", ";", "import", "java", ".", "util", ".", "StringTokenizer", ";", "import", "java", ".", "util", ".", "zip", ".", "ZipEntry", ";", "import", "java", ".", "util", ".", "zip", ".", "ZipFile", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ClassFile", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "batch", ".", "FileSystem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "batch", ".", "Main", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ExtraCompilerModifiers", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ParameterizedTypeBinding", ";", "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", ".", "TypeVariableBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "WildcardBinding", ";", "public", "class", "Util", "implements", "SuffixConstants", "{", "public", "static", "final", "char", "C_BOOLEAN", "=", "'Z'", ";", "public", "static", "final", "char", "C_BYTE", "=", "'B'", ";", "public", "static", "final", "char", "C_CHAR", "=", "'C'", ";", "public", "static", "final", "char", "C_DOUBLE", "=", "'D'", ";", "public", "static", "final", "char", "C_FLOAT", "=", "'F'", ";", "public", "static", "final", "char", "C_INT", "=", "'I'", ";", "public", "static", "final", "char", "C_SEMICOLON", "=", "';'", ";", "public", "static", "final", "char", "C_COLON", "=", "':'", ";", "public", "static", "final", "char", "C_LONG", "=", "'J'", ";", "public", "static", "final", "char", "C_SHORT", "=", "'S'", ";", "public", "static", "final", "char", "C_VOID", "=", "'V'", ";", "public", "static", "final", "char", "C_TYPE_VARIABLE", "=", "'T'", ";", "public", "static", "final", "char", "C_STAR", "=", "'*'", ";", "public", "static", "final", "char", "C_EXCEPTION_START", "=", "'^'", ";", "public", "static", "final", "char", "C_EXTENDS", "=", "'+'", ";", "public", "static", "final", "char", "C_SUPER", "=", "'-'", ";", "public", "static", "final", "char", "C_DOT", "=", "'.'", ";", "public", "static", "final", "char", "C_DOLLAR", "=", "'$'", ";", "public", "static", "final", "char", "C_ARRAY", "=", "'['", ";", "public", "static", "final", "char", "C_RESOLVED", "=", "'L'", ";", "public", "static", "final", "char", "C_UNRESOLVED", "=", "'Q'", ";", "public", "static", "final", "char", "C_NAME_END", "=", "';'", ";", "public", "static", "final", "char", "C_PARAM_START", "=", "'('", ";", "public", "static", "final", "char", "C_PARAM_END", "=", "')'", ";", "public", "static", "final", "char", "C_GENERIC_START", "=", "'<'", ";", "public", "static", "final", "char", "C_GENERIC_END", "=", "'>'", ";", "public", "static", "final", "char", "C_CAPTURE", "=", "'!'", ";", "public", "interface", "Displayable", "{", "String", "displayString", "(", "Object", "o", ")", ";", "}", "private", "static", "final", "int", "DEFAULT_READING_SIZE", "=", "8192", ";", "private", "static", "final", "int", "DEFAULT_WRITING_SIZE", "=", "1024", ";", "public", "final", "static", "String", "UTF_8", "=", "\"UTF-8\"", ";", "public", "static", "final", "String", "LINE_SEPARATOR", "=", "System", ".", "getProperty", "(", "\"\"", ")", ";", "public", "static", "final", "String", "EMPTY_STRING", "=", "new", "String", "(", "CharOperation", ".", "NO_CHAR", ")", ";", "public", "static", "final", "int", "[", "]", "EMPTY_INT_ARRAY", "=", "new", "int", "[", "0", "]", ";", "public", "static", "String", "buildAllDirectoriesInto", "(", "String", "outputPath", ",", "String", "relativeFileName", ")", "throws", "IOException", "{", "char", "fileSeparatorChar", "=", "File", ".", "separatorChar", ";", "String", "fileSeparator", "=", "File", ".", "separator", ";", "File", "f", ";", "outputPath", "=", "outputPath", ".", "replace", "(", "'/'", ",", "fileSeparatorChar", ")", ";", "relativeFileName", "=", "relativeFileName", ".", "replace", "(", "'/'", ",", "fileSeparatorChar", ")", ";", "String", "outputDirPath", ",", "fileName", ";", "int", "separatorIndex", "=", "relativeFileName", ".", "lastIndexOf", "(", "fileSeparatorChar", ")", ";", "if", "(", "separatorIndex", "==", "-", "1", ")", "{", "if", "(", "outputPath", ".", "endsWith", "(", "fileSeparator", ")", ")", "{", "outputDirPath", "=", "outputPath", ".", "substring", "(", "0", ",", "outputPath", ".", "length", "(", ")", "-", "1", ")", ";", "fileName", "=", "outputPath", "+", "relativeFileName", ";", "}", "else", "{", "outputDirPath", "=", "outputPath", ";", "fileName", "=", "outputPath", "+", "fileSeparator", "+", "relativeFileName", ";", "}", "}", "else", "{", "if", "(", "outputPath", ".", "endsWith", "(", "fileSeparator", ")", ")", "{", "outputDirPath", "=", "outputPath", "+", "relativeFileName", ".", "substring", "(", "0", ",", "separatorIndex", ")", ";", "fileName", "=", "outputPath", "+", "relativeFileName", ";", "}", "else", "{", "outputDirPath", "=", "outputPath", "+", "fileSeparator", "+", "relativeFileName", ".", "substring", "(", "0", ",", "separatorIndex", ")", ";", "fileName", "=", "outputPath", "+", "fileSeparator", "+", "relativeFileName", ";", "}", "}", "f", "=", "new", "File", "(", "outputDirPath", ")", ";", "f", ".", "mkdirs", "(", ")", ";", "if", "(", "f", ".", "isDirectory", "(", ")", ")", "{", "return", "fileName", ";", "}", "else", "{", "if", "(", "outputPath", ".", "endsWith", "(", "fileSeparator", ")", ")", "{", "outputPath", "=", "outputPath", ".", "substring", "(", "0", ",", "outputPath", ".", "length", "(", ")", "-", "1", ")", ";", "}", "f", "=", "new", "File", "(", "outputPath", ")", ";", "boolean", "checkFileType", "=", "false", ";", "if", "(", "f", ".", "exists", "(", ")", ")", "{", "checkFileType", "=", "true", ";", "}", "else", "{", "if", "(", "!", "f", ".", "mkdirs", "(", ")", ")", "{", "if", "(", "f", ".", "exists", "(", ")", ")", "{", "checkFileType", "=", "true", ";", "}", "else", "{", "throw", "new", "IOException", "(", "Messages", ".", "bind", "(", "Messages", ".", "output_notValidAll", ",", "f", ".", "getAbsolutePath", "(", ")", ")", ")", ";", "}", "}", "}", "if", "(", "checkFileType", ")", "{", "if", "(", "!", "f", ".", "isDirectory", "(", ")", ")", "{", "throw", "new", "IOException", "(", "Messages", ".", "bind", "(", "Messages", ".", "output_isFile", ",", "f", ".", "getAbsolutePath", "(", ")", ")", ")", ";", "}", "}", "StringBuffer", "outDir", "=", "new", "StringBuffer", "(", "outputPath", ")", ";", "outDir", ".", "append", "(", "fileSeparator", ")", ";", "StringTokenizer", "tokenizer", "=", "new", "StringTokenizer", "(", "relativeFileName", ",", "fileSeparator", ")", ";", "String", "token", "=", "tokenizer", ".", "nextToken", "(", ")", ";", "while", "(", "tokenizer", ".", "hasMoreTokens", "(", ")", ")", "{", "f", "=", "new", "File", "(", "outDir", ".", "append", "(", "token", ")", ".", "append", "(", "fileSeparator", ")", ".", "toString", "(", ")", ")", ";", "checkFileType", "=", "false", ";", "if", "(", "f", ".", "exists", "(", ")", ")", "{", "checkFileType", "=", "true", ";", "}", "else", "{", "if", "(", "!", "f", ".", "mkdir", "(", ")", ")", "{", "if", "(", "f", ".", "exists", "(", ")", ")", "{", "checkFileType", "=", "true", ";", "}", "else", "{", "throw", "new", "IOException", "(", "Messages", ".", "bind", "(", "Messages", ".", "output_notValid", ",", "outDir", ".", "substring", "(", "outputPath", ".", "length", "(", ")", "+", "1", ",", "outDir", ".", "length", "(", ")", "-", "1", ")", ",", "outputPath", ")", ")", ";", "}", "}", "}", "if", "(", "checkFileType", ")", "{", "if", "(", "!", "f", ".", "isDirectory", "(", ")", ")", "{", "throw", "new", "IOException", "(", "Messages", ".", "bind", "(", "Messages", ".", "output_isFile", ",", "f", ".", "getAbsolutePath", "(", ")", ")", ")", ";", "}", "}", "token", "=", "tokenizer", ".", "nextToken", "(", ")", ";", "}", "return", "outDir", ".", "append", "(", "token", ")", ".", "toString", "(", ")", ";", "}", "}", "public", "static", "char", "[", "]", "bytesToChar", "(", "byte", "[", "]", "bytes", ",", "String", "encoding", ")", "throws", "IOException", "{", "return", "getInputStreamAsCharArray", "(", "new", "ByteArrayInputStream", "(", "bytes", ")", ",", "bytes", ".", "length", ",", "encoding", ")", ";", "}", "public", "static", "int", "computeOuterMostVisibility", "(", "TypeDeclaration", "typeDeclaration", ",", "int", "visibility", ")", "{", "while", "(", "typeDeclaration", "!=", "null", ")", "{", "switch", "(", "typeDeclaration", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccVisibilityMASK", ")", "{", "case", "ClassFileConstants", ".", "AccPrivate", ":", "visibility", "=", "ClassFileConstants", ".", "AccPrivate", ";", "break", ";", "case", "ClassFileConstants", ".", "AccDefault", ":", "if", "(", "visibility", "!=", "ClassFileConstants", ".", "AccPrivate", ")", "{", "visibility", "=", "ClassFileConstants", ".", "AccDefault", ";", "}", "break", ";", "case", "ClassFileConstants", ".", "AccProtected", ":", "if", "(", "visibility", "==", "ClassFileConstants", ".", "AccPublic", ")", "{", "visibility", "=", "ClassFileConstants", ".", "AccProtected", ";", "}", "break", ";", "}", "typeDeclaration", "=", "typeDeclaration", ".", "enclosingType", ";", "}", "return", "visibility", ";", "}", "public", "static", "byte", "[", "]", "getFileByteContent", "(", "File", "file", ")", "throws", "IOException", "{", "InputStream", "stream", "=", "null", ";", "try", "{", "stream", "=", "new", "BufferedInputStream", "(", "new", "FileInputStream", "(", "file", ")", ")", ";", "return", "getInputStreamAsByteArray", "(", "stream", ",", "(", "int", ")", "file", ".", "length", "(", ")", ")", ";", "}", "finally", "{", "if", "(", "stream", "!=", "null", ")", "{", "try", "{", "stream", ".", "close", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "}", "}", "}", "}", "public", "static", "char", "[", "]", "getFileCharContent", "(", "File", "file", ",", "String", "encoding", ")", "throws", "IOException", "{", "InputStream", "stream", "=", "null", ";", "try", "{", "stream", "=", "new", "FileInputStream", "(", "file", ")", ";", "return", "getInputStreamAsCharArray", "(", "stream", ",", "(", "int", ")", "file", ".", "length", "(", ")", ",", "encoding", ")", ";", "}", "finally", "{", "if", "(", "stream", "!=", "null", ")", "{", "try", "{", "stream", ".", "close", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "}", "}", "}", "}", "private", "static", "FileOutputStream", "getFileOutputStream", "(", "boolean", "generatePackagesStructure", ",", "String", "outputPath", ",", "String", "relativeFileName", ")", "throws", "IOException", "{", "if", "(", "generatePackagesStructure", ")", "{", "return", "new", "FileOutputStream", "(", "new", "File", "(", "buildAllDirectoriesInto", "(", "outputPath", ",", "relativeFileName", ")", ")", ")", ";", "}", "else", "{", "String", "fileName", "=", "null", ";", "char", "fileSeparatorChar", "=", "File", ".", "separatorChar", ";", "String", "fileSeparator", "=", "File", ".", "separator", ";", "outputPath", "=", "outputPath", ".", "replace", "(", "'/'", ",", "fileSeparatorChar", ")", ";", "int", "indexOfPackageSeparator", "=", "relativeFileName", ".", "lastIndexOf", "(", "fileSeparatorChar", ")", ";", "if", "(", "indexOfPackageSeparator", "==", "-", "1", ")", "{", "if", "(", "outputPath", ".", "endsWith", "(", "fileSeparator", ")", ")", "{", "fileName", "=", "outputPath", "+", "relativeFileName", ";", "}", "else", "{", "fileName", "=", "outputPath", "+", "fileSeparator", "+", "relativeFileName", ";", "}", "}", "else", "{", "int", "length", "=", "relativeFileName", ".", "length", "(", ")", ";", "if", "(", "outputPath", ".", "endsWith", "(", "fileSeparator", ")", ")", "{", "fileName", "=", "outputPath", "+", "relativeFileName", ".", "substring", "(", "indexOfPackageSeparator", "+", "1", ",", "length", ")", ";", "}", "else", "{", "fileName", "=", "outputPath", "+", "fileSeparator", "+", "relativeFileName", ".", "substring", "(", "indexOfPackageSeparator", "+", "1", ",", "length", ")", ";", "}", "}", "return", "new", "FileOutputStream", "(", "new", "File", "(", "fileName", ")", ")", ";", "}", "}", "public", "static", "byte", "[", "]", "getInputStreamAsByteArray", "(", "InputStream", "stream", ",", "int", "length", ")", "throws", "IOException", "{", "byte", "[", "]", "contents", ";", "if", "(", "length", "==", "-", "1", ")", "{", "contents", "=", "new", "byte", "[", "0", "]", ";", "int", "contentsLength", "=", "0", ";", "int", "amountRead", "=", "-", "1", ";", "do", "{", "int", "amountRequested", "=", "Math", ".", "max", "(", "stream", ".", "available", "(", ")", ",", "DEFAULT_READING_SIZE", ")", ";", "if", "(", "contentsLength", "+", "amountRequested", ">", "contents", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "contents", ",", "0", ",", "contents", "=", "new", "byte", "[", "contentsLength", "+", "amountRequested", "]", ",", "0", ",", "contentsLength", ")", ";", "}", "amountRead", "=", "stream", ".", "read", "(", "contents", ",", "contentsLength", ",", "amountRequested", ")", ";", "if", "(", "amountRead", ">", "0", ")", "{", "contentsLength", "+=", "amountRead", ";", "}", "}", "while", "(", "amountRead", "!=", "-", "1", ")", ";", "if", "(", "contentsLength", "<", "contents", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "contents", ",", "0", ",", "contents", "=", "new", "byte", "[", "contentsLength", "]", ",", "0", ",", "contentsLength", ")", ";", "}", "}", "else", "{", "contents", "=", "new", "byte", "[", "length", "]", ";", "int", "len", "=", "0", ";", "int", "readSize", "=", "0", ";", "while", "(", "(", "readSize", "!=", "-", "1", ")", "&&", "(", "len", "!=", "length", ")", ")", "{", "len", "+=", "readSize", ";", "readSize", "=", "stream", ".", "read", "(", "contents", ",", "len", ",", "length", "-", "len", ")", ";", "}", "}", "return", "contents", ";", "}", "public", "static", "char", "[", "]", "getInputStreamAsCharArray", "(", "InputStream", "stream", ",", "int", "length", ",", "String", "encoding", ")", "throws", "IOException", "{", "BufferedReader", "reader", "=", "null", ";", "try", "{", "reader", "=", "encoding", "==", "null", "?", "new", "BufferedReader", "(", "new", "InputStreamReader", "(", "stream", ")", ")", ":", "new", "BufferedReader", "(", "new", "InputStreamReader", "(", "stream", ",", "encoding", ")", ")", ";", "}", "catch", "(", "UnsupportedEncodingException", "e", ")", "{", "reader", "=", "new", "BufferedReader", "(", "new", "InputStreamReader", "(", "stream", ")", ")", ";", "}", "char", "[", "]", "contents", ";", "int", "totalRead", "=", "0", ";", "if", "(", "length", "==", "-", "1", ")", "{", "contents", "=", "CharOperation", ".", "NO_CHAR", ";", "}", "else", "{", "contents", "=", "new", "char", "[", "length", "]", ";", "}", "while", "(", "true", ")", "{", "int", "amountRequested", ";", "if", "(", "totalRead", "<", "length", ")", "{", "amountRequested", "=", "length", "-", "totalRead", ";", "}", "else", "{", "int", "current", "=", "reader", ".", "read", "(", ")", ";", "if", "(", "current", "<", "0", ")", "break", ";", "amountRequested", "=", "Math", ".", "max", "(", "stream", ".", "available", "(", ")", ",", "DEFAULT_READING_SIZE", ")", ";", "if", "(", "totalRead", "+", "1", "+", "amountRequested", ">", "contents", ".", "length", ")", "System", ".", "arraycopy", "(", "contents", ",", "0", ",", "contents", "=", "new", "char", "[", "totalRead", "+", "1", "+", "amountRequested", "]", ",", "0", ",", "totalRead", ")", ";", "contents", "[", "totalRead", "++", "]", "=", "(", "char", ")", "current", ";", "}", "int", "amountRead", "=", "reader", ".", "read", "(", "contents", ",", "totalRead", ",", "amountRequested", ")", ";", "if", "(", "amountRead", "<", "0", ")", "break", ";", "totalRead", "+=", "amountRead", ";", "}", "int", "start", "=", "0", ";", "if", "(", "totalRead", ">", "0", "&&", "UTF_8", ".", "equals", "(", "encoding", ")", ")", "{", "if", "(", "contents", "[", "0", "]", "==", "0xFEFF", ")", "{", "totalRead", "--", ";", "start", "=", "1", ";", "}", "}", "if", "(", "totalRead", "<", "contents", ".", "length", ")", "System", ".", "arraycopy", "(", "contents", ",", "start", ",", "contents", "=", "new", "char", "[", "totalRead", "]", ",", "0", ",", "totalRead", ")", ";", "return", "contents", ";", "}", "public", "static", "String", "getExceptionSummary", "(", "Throwable", "exception", ")", "{", "StringWriter", "stringWriter", "=", "new", "StringWriter", "(", ")", ";", "exception", ".", "printStackTrace", "(", "new", "PrintWriter", "(", "stringWriter", ")", ")", ";", "StringBuffer", "buffer", "=", "stringWriter", ".", "getBuffer", "(", ")", ";", "StringBuffer", "exceptionBuffer", "=", "new", "StringBuffer", "(", "50", ")", ";", "exceptionBuffer", ".", "append", "(", "exception", ".", "toString", "(", ")", ")", ";", "lookupLine2", ":", "for", "(", "int", "i", "=", "0", ",", "lineSep", "=", "0", ",", "max", "=", "buffer", ".", "length", "(", ")", ",", "line2Start", "=", "0", ";", "i", "<", "max", ";", "i", "++", ")", "{", "switch", "(", "buffer", ".", "charAt", "(", "i", ")", ")", "{", "case", "'\\n'", ":", "case", "'\\r'", ":", "if", "(", "line2Start", ">", "0", ")", "{", "exceptionBuffer", ".", "append", "(", "'", "'", ")", ".", "append", "(", "buffer", ".", "substring", "(", "line2Start", ",", "i", ")", ")", ";", "break", "lookupLine2", ";", "}", "lineSep", "++", ";", "break", ";", "case", "'", "'", ":", "case", "'\\t'", ":", "break", ";", "default", ":", "if", "(", "lineSep", ">", "0", ")", "{", "line2Start", "=", "i", ";", "lineSep", "=", "0", ";", "}", "break", ";", "}", "}", "return", "exceptionBuffer", ".", "toString", "(", ")", ";", "}", "public", "static", "int", "getLineNumber", "(", "int", "position", ",", "int", "[", "]", "lineEnds", ",", "int", "g", ",", "int", "d", ")", "{", "if", "(", "lineEnds", "==", "null", ")", "return", "1", ";", "if", "(", "d", "==", "-", "1", ")", "return", "1", ";", "int", "m", "=", "g", ",", "start", ";", "while", "(", "g", "<=", "d", ")", "{", "m", "=", "g", "+", "(", "d", "-", "g", ")", "/", "2", ";", "if", "(", "position", "<", "(", "start", "=", "lineEnds", "[", "m", "]", ")", ")", "{", "d", "=", "m", "-", "1", ";", "}", "else", "if", "(", "position", ">", "start", ")", "{", "g", "=", "m", "+", "1", ";", "}", "else", "{", "return", "m", "+", "1", ";", "}", "}", "if", "(", "position", "<", "lineEnds", "[", "m", "]", ")", "{", "return", "m", "+", "1", ";", "}", "return", "m", "+", "2", ";", "}", "public", "static", "byte", "[", "]", "getZipEntryByteContent", "(", "ZipEntry", "ze", ",", "ZipFile", "zip", ")", "throws", "IOException", "{", "InputStream", "stream", "=", "null", ";", "try", "{", "InputStream", "inputStream", "=", "zip", ".", "getInputStream", "(", "ze", ")", ";", "if", "(", "inputStream", "==", "null", ")", "throw", "new", "IOException", "(", "\"\"", "+", "ze", ".", "getName", "(", ")", ")", ";", "stream", "=", "new", "BufferedInputStream", "(", "inputStream", ")", ";", "return", "getInputStreamAsByteArray", "(", "stream", ",", "(", "int", ")", "ze", ".", "getSize", "(", ")", ")", ";", "}", "finally", "{", "if", "(", "stream", "!=", "null", ")", "{", "try", "{", "stream", ".", "close", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "}", "}", "}", "}", "public", "static", "int", "hashCode", "(", "Object", "[", "]", "array", ")", "{", "int", "prime", "=", "31", ";", "if", "(", "array", "==", "null", ")", "{", "return", "0", ";", "}", "int", "result", "=", "1", ";", "for", "(", "int", "index", "=", "0", ";", "index", "<", "array", ".", "length", ";", "index", "++", ")", "{", "result", "=", "prime", "*", "result", "+", "(", "array", "[", "index", "]", "==", "null", "?", "0", ":", "array", "[", "index", "]", ".", "hashCode", "(", ")", ")", ";", "}", "return", "result", ";", "}", "public", "final", "static", "boolean", "isPotentialZipArchive", "(", "String", "name", ")", "{", "int", "lastDot", "=", "name", ".", "lastIndexOf", "(", "'.'", ")", ";", "if", "(", "lastDot", "==", "-", "1", ")", "return", "false", ";", "if", "(", "name", ".", "lastIndexOf", "(", "File", ".", "separatorChar", ")", ">", "lastDot", ")", "return", "false", ";", "int", "length", "=", "name", ".", "length", "(", ")", ";", "int", "extensionLength", "=", "length", "-", "lastDot", "-", "1", ";", "if", "(", "extensionLength", "==", "EXTENSION_java", ".", "length", "(", ")", ")", "{", "for", "(", "int", "i", "=", "extensionLength", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "if", "(", "Character", ".", "toLowerCase", "(", "name", ".", "charAt", "(", "length", "-", "extensionLength", "+", "i", ")", ")", "!=", "EXTENSION_java", ".", "charAt", "(", "i", ")", ")", "{", "break", ";", "}", "if", "(", "i", "==", "0", ")", "{", "return", "false", ";", "}", "}", "}", "if", "(", "extensionLength", "==", "EXTENSION_class", ".", "length", "(", ")", ")", "{", "for", "(", "int", "i", "=", "extensionLength", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "if", "(", "Character", ".", "toLowerCase", "(", "name", ".", "charAt", "(", "length", "-", "extensionLength", "+", "i", ")", ")", "!=", "EXTENSION_class", ".", "charAt", "(", "i", ")", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";", "}", "return", "true", ";", "}", "public", "final", "static", "boolean", "isClassFileName", "(", "char", "[", "]", "name", ")", "{", "int", "nameLength", "=", "name", "==", "null", "?", "0", ":", "name", ".", "length", ";", "int", "suffixLength", "=", "SUFFIX_CLASS", ".", "length", ";", "if", "(", "nameLength", "<", "suffixLength", ")", "return", "false", ";", "for", "(", "int", "i", "=", "0", ",", "offset", "=", "nameLength", "-", "suffixLength", ";", "i", "<", "suffixLength", ";", "i", "++", ")", "{", "char", "c", "=", "name", "[", "offset", "+", "i", "]", ";", "if", "(", "c", "!=", "SUFFIX_class", "[", "i", "]", "&&", "c", "!=", "SUFFIX_CLASS", "[", "i", "]", ")", "return", "false", ";", "}", "return", "true", ";", "}", "public", "final", "static", "boolean", "isClassFileName", "(", "String", "name", ")", "{", "int", "nameLength", "=", "name", "==", "null", "?", "0", ":", "name", ".", "length", "(", ")", ";", "int", "suffixLength", "=", "SUFFIX_CLASS", ".", "length", ";", "if", "(", "nameLength", "<", "suffixLength", ")", "return", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "suffixLength", ";", "i", "++", ")", "{", "char", "c", "=", "name", ".", "charAt", "(", "nameLength", "-", "i", "-", "1", ")", ";", "int", "suffixIndex", "=", "suffixLength", "-", "i", "-", "1", ";", "if", "(", "c", "!=", "SUFFIX_class", "[", "suffixIndex", "]", "&&", "c", "!=", "SUFFIX_CLASS", "[", "suffixIndex", "]", ")", "return", "false", ";", "}", "return", "true", ";", "}", "public", "final", "static", "boolean", "isExcluded", "(", "char", "[", "]", "path", ",", "char", "[", "]", "[", "]", "inclusionPatterns", ",", "char", "[", "]", "[", "]", "exclusionPatterns", ",", "boolean", "isFolderPath", ")", "{", "if", "(", "inclusionPatterns", "==", "null", "&&", "exclusionPatterns", "==", "null", ")", "return", "false", ";", "inclusionCheck", ":", "if", "(", "inclusionPatterns", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "inclusionPatterns", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "char", "[", "]", "pattern", "=", "inclusionPatterns", "[", "i", "]", ";", "char", "[", "]", "folderPattern", "=", "pattern", ";", "if", "(", "isFolderPath", ")", "{", "int", "lastSlash", "=", "CharOperation", ".", "lastIndexOf", "(", "'/'", ",", "pattern", ")", ";", "if", "(", "lastSlash", "!=", "-", "1", "&&", "lastSlash", "!=", "pattern", ".", "length", "-", "1", ")", "{", "int", "star", "=", "CharOperation", ".", "indexOf", "(", "'*'", ",", "pattern", ",", "lastSlash", ")", ";", "if", "(", "(", "star", "==", "-", "1", "||", "star", ">=", "pattern", ".", "length", "-", "1", "||", "pattern", "[", "star", "+", "1", "]", "!=", "'*'", ")", ")", "{", "folderPattern", "=", "CharOperation", ".", "subarray", "(", "pattern", ",", "0", ",", "lastSlash", ")", ";", "}", "}", "}", "if", "(", "CharOperation", ".", "pathMatch", "(", "folderPattern", ",", "path", ",", "true", ",", "'/'", ")", ")", "{", "break", "inclusionCheck", ";", "}", "}", "return", "true", ";", "}", "if", "(", "isFolderPath", ")", "{", "path", "=", "CharOperation", ".", "concat", "(", "path", ",", "new", "char", "[", "]", "{", "'*'", "}", ",", "'/'", ")", ";", "}", "if", "(", "exclusionPatterns", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "exclusionPatterns", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "CharOperation", ".", "pathMatch", "(", "exclusionPatterns", "[", "i", "]", ",", "path", ",", "true", ",", "'/'", ")", ")", "{", "return", "true", ";", "}", "}", "}", "return", "false", ";", "}", "public", "final", "static", "boolean", "isJavaFileName", "(", "char", "[", "]", "name", ")", "{", "int", "nameLength", "=", "name", "==", "null", "?", "0", ":", "name", ".", "length", ";", "int", "suffixLength", "=", "SUFFIX_JAVA", ".", "length", ";", "if", "(", "nameLength", "<", "suffixLength", ")", "return", "false", ";", "for", "(", "int", "i", "=", "0", ",", "offset", "=", "nameLength", "-", "suffixLength", ";", "i", "<", "suffixLength", ";", "i", "++", ")", "{", "char", "c", "=", "name", "[", "offset", "+", "i", "]", ";", "if", "(", "c", "!=", "SUFFIX_java", "[", "i", "]", "&&", "c", "!=", "SUFFIX_JAVA", "[", "i", "]", ")", "return", "false", ";", "}", "return", "true", ";", "}", "public", "final", "static", "boolean", "isJavaFileName", "(", "String", "name", ")", "{", "int", "nameLength", "=", "name", "==", "null", "?", "0", ":", "name", ".", "length", "(", ")", ";", "int", "suffixLength", "=", "SUFFIX_JAVA", ".", "length", ";", "if", "(", "nameLength", "<", "suffixLength", ")", "return", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "suffixLength", ";", "i", "++", ")", "{", "char", "c", "=", "name", ".", "charAt", "(", "nameLength", "-", "i", "-", "1", ")", ";", "int", "suffixIndex", "=", "suffixLength", "-", "i", "-", "1", ";", "if", "(", "c", "!=", "SUFFIX_java", "[", "suffixIndex", "]", "&&", "c", "!=", "SUFFIX_JAVA", "[", "suffixIndex", "]", ")", "return", "false", ";", "}", "return", "true", ";", "}", "public", "static", "void", "reverseQuickSort", "(", "char", "[", "]", "[", "]", "list", ",", "int", "left", ",", "int", "right", ")", "{", "int", "original_left", "=", "left", ";", "int", "original_right", "=", "right", ";", "char", "[", "]", "mid", "=", "list", "[", "left", "+", "(", "(", "right", "-", "left", ")", "/", "2", ")", "]", ";", "do", "{", "while", "(", "CharOperation", ".", "compareTo", "(", "list", "[", "left", "]", ",", "mid", ")", ">", "0", ")", "{", "left", "++", ";", "}", "while", "(", "CharOperation", ".", "compareTo", "(", "mid", ",", "list", "[", "right", "]", ")", ">", "0", ")", "{", "right", "--", ";", "}", "if", "(", "left", "<=", "right", ")", "{", "char", "[", "]", "tmp", "=", "list", "[", "left", "]", ";", "list", "[", "left", "]", "=", "list", "[", "right", "]", ";", "list", "[", "right", "]", "=", "tmp", ";", "left", "++", ";", "right", "--", ";", "}", "}", "while", "(", "left", "<=", "right", ")", ";", "if", "(", "original_left", "<", "right", ")", "{", "reverseQuickSort", "(", "list", ",", "original_left", ",", "right", ")", ";", "}", "if", "(", "left", "<", "original_right", ")", "{", "reverseQuickSort", "(", "list", ",", "left", ",", "original_right", ")", ";", "}", "}", "public", "static", "void", "reverseQuickSort", "(", "char", "[", "]", "[", "]", "list", ",", "int", "left", ",", "int", "right", ",", "int", "[", "]", "result", ")", "{", "int", "original_left", "=", "left", ";", "int", "original_right", "=", "right", ";", "char", "[", "]", "mid", "=", "list", "[", "left", "+", "(", "(", "right", "-", "left", ")", "/", "2", ")", "]", ";", "do", "{", "while", "(", "CharOperation", ".", "compareTo", "(", "list", "[", "left", "]", ",", "mid", ")", ">", "0", ")", "{", "left", "++", ";", "}", "while", "(", "CharOperation", ".", "compareTo", "(", "mid", ",", "list", "[", "right", "]", ")", ">", "0", ")", "{", "right", "--", ";", "}", "if", "(", "left", "<=", "right", ")", "{", "char", "[", "]", "tmp", "=", "list", "[", "left", "]", ";", "list", "[", "left", "]", "=", "list", "[", "right", "]", ";", "list", "[", "right", "]", "=", "tmp", ";", "int", "temp", "=", "result", "[", "left", "]", ";", "result", "[", "left", "]", "=", "result", "[", "right", "]", ";", "result", "[", "right", "]", "=", "temp", ";", "left", "++", ";", "right", "--", ";", "}", "}", "while", "(", "left", "<=", "right", ")", ";", "if", "(", "original_left", "<", "right", ")", "{", "reverseQuickSort", "(", "list", ",", "original_left", ",", "right", ",", "result", ")", ";", "}", "if", "(", "left", "<", "original_right", ")", "{", "reverseQuickSort", "(", "list", ",", "left", ",", "original_right", ",", "result", ")", ";", "}", "}", "public", "static", "final", "int", "searchColumnNumber", "(", "int", "[", "]", "startLineIndexes", ",", "int", "lineNumber", ",", "int", "position", ")", "{", "switch", "(", "lineNumber", ")", "{", "case", "1", ":", "return", "position", "+", "1", ";", "case", "2", ":", "return", "position", "-", "startLineIndexes", "[", "0", "]", ";", "default", ":", "int", "line", "=", "lineNumber", "-", "2", ";", "int", "length", "=", "startLineIndexes", ".", "length", ";", "if", "(", "line", ">=", "length", ")", "{", "return", "position", "-", "startLineIndexes", "[", "length", "-", "1", "]", ";", "}", "return", "position", "-", "startLineIndexes", "[", "line", "]", ";", "}", "}", "public", "static", "Boolean", "toBoolean", "(", "boolean", "bool", ")", "{", "if", "(", "bool", ")", "{", "return", "Boolean", ".", "TRUE", ";", "}", "else", "{", "return", "Boolean", ".", "FALSE", ";", "}", "}", "public", "static", "String", "toString", "(", "Object", "[", "]", "objects", ")", "{", "return", "toString", "(", "objects", ",", "new", "Displayable", "(", ")", "{", "public", "String", "displayString", "(", "Object", "o", ")", "{", "if", "(", "o", "==", "null", ")", "return", "\"null\"", ";", "return", "o", ".", "toString", "(", ")", ";", "}", "}", ")", ";", "}", "public", "static", "String", "toString", "(", "Object", "[", "]", "objects", ",", "Displayable", "renderer", ")", "{", "if", "(", "objects", "==", "null", ")", "return", "\"\"", ";", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "10", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "objects", ".", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "buffer", ".", "append", "(", "\",", "\"", ")", ";", "buffer", ".", "append", "(", "renderer", ".", "displayString", "(", "objects", "[", "i", "]", ")", ")", ";", "}", "return", "buffer", ".", "toString", "(", ")", ";", "}", "public", "static", "void", "writeToDisk", "(", "boolean", "generatePackagesStructure", ",", "String", "outputPath", ",", "String", "relativeFileName", ",", "ClassFile", "classFile", ")", "throws", "IOException", "{", "FileOutputStream", "file", "=", "getFileOutputStream", "(", "generatePackagesStructure", ",", "outputPath", ",", "relativeFileName", ")", ";", "BufferedOutputStream", "output", "=", "new", "BufferedOutputStream", "(", "file", ",", "DEFAULT_WRITING_SIZE", ")", ";", "try", "{", "output", ".", "write", "(", "classFile", ".", "header", ",", "0", ",", "classFile", ".", "headerOffset", ")", ";", "output", ".", "write", "(", "classFile", ".", "contents", ",", "0", ",", "classFile", ".", "contentsOffset", ")", ";", "output", ".", "flush", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "throw", "e", ";", "}", "finally", "{", "output", ".", "close", "(", ")", ";", "}", "}", "public", "static", "void", "recordNestedType", "(", "ClassFile", "classFile", ",", "TypeBinding", "typeBinding", ")", "{", "if", "(", "classFile", ".", "visitedTypes", "==", "null", ")", "{", "classFile", ".", "visitedTypes", "=", "new", "HashSet", "(", "3", ")", ";", "}", "else", "if", "(", "classFile", ".", "visitedTypes", ".", "contains", "(", "typeBinding", ")", ")", "{", "return", ";", "}", "classFile", ".", "visitedTypes", ".", "add", "(", "typeBinding", ")", ";", "if", "(", "typeBinding", ".", "isParameterizedType", "(", ")", "&&", "(", "(", "typeBinding", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ")", "!=", "0", ")", ")", "{", "ParameterizedTypeBinding", "parameterizedTypeBinding", "=", "(", "ParameterizedTypeBinding", ")", "typeBinding", ";", "ReferenceBinding", "genericType", "=", "parameterizedTypeBinding", ".", "genericType", "(", ")", ";", "if", "(", "(", "genericType", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ")", "!=", "0", ")", "{", "recordNestedType", "(", "classFile", ",", "genericType", ")", ";", "}", "TypeBinding", "[", "]", "arguments", "=", "parameterizedTypeBinding", ".", "arguments", ";", "if", "(", "arguments", "!=", "null", ")", "{", "for", "(", "int", "j", "=", "0", ",", "max2", "=", "arguments", ".", "length", ";", "j", "<", "max2", ";", "j", "++", ")", "{", "TypeBinding", "argument", "=", "arguments", "[", "j", "]", ";", "if", "(", "argument", ".", "isWildcard", "(", ")", ")", "{", "WildcardBinding", "wildcardBinding", "=", "(", "WildcardBinding", ")", "argument", ";", "TypeBinding", "bound", "=", "wildcardBinding", ".", "bound", ";", "if", "(", "bound", "!=", "null", "&&", "(", "(", "bound", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ")", "!=", "0", ")", ")", "{", "recordNestedType", "(", "classFile", ",", "bound", ")", ";", "}", "ReferenceBinding", "superclass", "=", "wildcardBinding", ".", "superclass", "(", ")", ";", "if", "(", "superclass", "!=", "null", "&&", "(", "(", "superclass", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ")", "!=", "0", ")", ")", "{", "recordNestedType", "(", "classFile", ",", "superclass", ")", ";", "}", "ReferenceBinding", "[", "]", "superInterfaces", "=", "wildcardBinding", ".", "superInterfaces", "(", ")", ";", "if", "(", "superInterfaces", "!=", "null", ")", "{", "for", "(", "int", "k", "=", "0", ",", "max3", "=", "superInterfaces", ".", "length", ";", "k", "<", "max3", ";", "k", "++", ")", "{", "ReferenceBinding", "superInterface", "=", "superInterfaces", "[", "k", "]", ";", "if", "(", "(", "superInterface", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ")", "!=", "0", ")", "{", "recordNestedType", "(", "classFile", ",", "superInterface", ")", ";", "}", "}", "}", "}", "else", "if", "(", "(", "argument", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ")", "!=", "0", ")", "{", "recordNestedType", "(", "classFile", ",", "argument", ")", ";", "}", "}", "}", "}", "else", "if", "(", "typeBinding", ".", "isTypeVariable", "(", ")", "&&", "(", "(", "typeBinding", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ")", "!=", "0", ")", ")", "{", "TypeVariableBinding", "typeVariableBinding", "=", "(", "TypeVariableBinding", ")", "typeBinding", ";", "TypeBinding", "upperBound", "=", "typeVariableBinding", ".", "upperBound", "(", ")", ";", "if", "(", "upperBound", "!=", "null", "&&", "(", "(", "upperBound", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ")", "!=", "0", ")", ")", "{", "recordNestedType", "(", "classFile", ",", "upperBound", ")", ";", "}", "TypeBinding", "[", "]", "upperBounds", "=", "typeVariableBinding", ".", "otherUpperBounds", "(", ")", ";", "if", "(", "upperBounds", "!=", "null", ")", "{", "for", "(", "int", "k", "=", "0", ",", "max3", "=", "upperBounds", ".", "length", ";", "k", "<", "max3", ";", "k", "++", ")", "{", "TypeBinding", "otherUpperBound", "=", "upperBounds", "[", "k", "]", ";", "if", "(", "(", "otherUpperBound", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ")", "!=", "0", ")", "{", "recordNestedType", "(", "classFile", ",", "otherUpperBound", ")", ";", "}", "}", "}", "}", "else", "if", "(", "typeBinding", ".", "isNestedType", "(", ")", ")", "{", "classFile", ".", "recordInnerClasses", "(", "typeBinding", ")", ";", "}", "}", "public", "static", "File", "getJavaHome", "(", ")", "{", "String", "javaHome", "=", "System", ".", "getProperty", "(", "\"java.home\"", ")", ";", "if", "(", "javaHome", "!=", "null", ")", "{", "File", "javaHomeFile", "=", "new", "File", "(", "javaHome", ")", ";", "if", "(", "javaHomeFile", ".", "exists", "(", ")", ")", "{", "return", "javaHomeFile", ";", "}", "}", "return", "null", ";", "}", "public", "static", "void", "collectRunningVMBootclasspath", "(", "List", "bootclasspaths", ")", "{", "String", "javaversion", "=", "System", ".", "getProperty", "(", "\"java.version\"", ")", ";", "if", "(", "javaversion", "!=", "null", "&&", "javaversion", ".", "equalsIgnoreCase", "(", "\"1.1.8\"", ")", ")", "{", "throw", "new", "IllegalStateException", "(", ")", ";", "}", "String", "bootclasspathProperty", "=", "System", ".", "getProperty", "(", "\"\"", ")", ";", "if", "(", "(", "bootclasspathProperty", "==", "null", ")", "||", "(", "bootclasspathProperty", ".", "length", "(", ")", "==", "0", ")", ")", "{", "bootclasspathProperty", "=", "System", ".", "getProperty", "(", "\"\"", ")", ";", "if", "(", "(", "bootclasspathProperty", "==", "null", ")", "||", "(", "bootclasspathProperty", ".", "length", "(", ")", "==", "0", ")", ")", "{", "bootclasspathProperty", "=", "System", ".", "getProperty", "(", "\"\"", ")", ";", "}", "}", "if", "(", "(", "bootclasspathProperty", "!=", "null", ")", "&&", "(", "bootclasspathProperty", ".", "length", "(", ")", "!=", "0", ")", ")", "{", "StringTokenizer", "tokenizer", "=", "new", "StringTokenizer", "(", "bootclasspathProperty", ",", "File", ".", "pathSeparator", ")", ";", "String", "token", ";", "while", "(", "tokenizer", ".", "hasMoreTokens", "(", ")", ")", "{", "token", "=", "tokenizer", ".", "nextToken", "(", ")", ";", "FileSystem", ".", "Classpath", "currentClasspath", "=", "FileSystem", ".", "getClasspath", "(", "token", ",", "null", ",", "null", ")", ";", "if", "(", "currentClasspath", "!=", "null", ")", "{", "bootclasspaths", ".", "add", "(", "currentClasspath", ")", ";", "}", "}", "}", "else", "{", "final", "File", "javaHome", "=", "getJavaHome", "(", ")", ";", "if", "(", "javaHome", "!=", "null", ")", "{", "File", "[", "]", "directoriesToCheck", "=", "null", ";", "if", "(", "System", ".", "getProperty", "(", "\"os.name\"", ")", ".", "startsWith", "(", "\"Mac\"", ")", ")", "{", "directoriesToCheck", "=", "new", "File", "[", "]", "{", "new", "File", "(", "javaHome", ",", "\"../Classes\"", ")", ",", "}", ";", "}", "else", "{", "directoriesToCheck", "=", "new", "File", "[", "]", "{", "new", "File", "(", "javaHome", ",", "\"lib\"", ")", "}", ";", "}", "File", "[", "]", "[", "]", "systemLibrariesJars", "=", "Main", ".", "getLibrariesFiles", "(", "directoriesToCheck", ")", ";", "if", "(", "systemLibrariesJars", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "systemLibrariesJars", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "File", "[", "]", "current", "=", "systemLibrariesJars", "[", "i", "]", ";", "if", "(", "current", "!=", "null", ")", "{", "for", "(", "int", "j", "=", "0", ",", "max2", "=", "current", ".", "length", ";", "j", "<", "max2", ";", "j", "++", ")", "{", "FileSystem", ".", "Classpath", "classpath", "=", "FileSystem", ".", "getClasspath", "(", "current", "[", "j", "]", ".", "getAbsolutePath", "(", ")", ",", "null", ",", "false", ",", "null", ",", "null", ")", ";", "if", "(", "classpath", "!=", "null", ")", "{", "bootclasspaths", ".", "add", "(", "classpath", ")", ";", "}", "}", "}", "}", "}", "}", "}", "}", "public", "static", "int", "getParameterCount", "(", "char", "[", "]", "methodSignature", ")", "{", "try", "{", "int", "count", "=", "0", ";", "int", "i", "=", "CharOperation", ".", "indexOf", "(", "C_PARAM_START", ",", "methodSignature", ")", ";", "if", "(", "i", "<", "0", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "else", "{", "i", "++", ";", "}", "for", "(", ";", ";", ")", "{", "if", "(", "methodSignature", "[", "i", "]", "==", "C_PARAM_END", ")", "{", "return", "count", ";", "}", "int", "e", "=", "Util", ".", "scanTypeSignature", "(", "methodSignature", ",", "i", ")", ";", "if", "(", "e", "<", "0", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "else", "{", "i", "=", "e", "+", "1", ";", "}", "count", "++", ";", "}", "}", "catch", "(", "ArrayIndexOutOfBoundsException", "e", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "}", "public", "static", "int", "scanTypeSignature", "(", "char", "[", "]", "string", ",", "int", "start", ")", "{", "if", "(", "start", ">=", "string", ".", "length", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "char", "c", "=", "string", "[", "start", "]", ";", "switch", "(", "c", ")", "{", "case", "C_ARRAY", ":", "return", "scanArrayTypeSignature", "(", "string", ",", "start", ")", ";", "case", "C_RESOLVED", ":", "case", "C_UNRESOLVED", ":", "return", "scanClassTypeSignature", "(", "string", ",", "start", ")", ";", "case", "C_TYPE_VARIABLE", ":", "return", "scanTypeVariableSignature", "(", "string", ",", "start", ")", ";", "case", "C_BOOLEAN", ":", "case", "C_BYTE", ":", "case", "C_CHAR", ":", "case", "C_DOUBLE", ":", "case", "C_FLOAT", ":", "case", "C_INT", ":", "case", "C_LONG", ":", "case", "C_SHORT", ":", "case", "C_VOID", ":", "return", "scanBaseTypeSignature", "(", "string", ",", "start", ")", ";", "case", "C_CAPTURE", ":", "return", "scanCaptureTypeSignature", "(", "string", ",", "start", ")", ";", "case", "C_EXTENDS", ":", "case", "C_SUPER", ":", "case", "C_STAR", ":", "return", "scanTypeBoundSignature", "(", "string", ",", "start", ")", ";", "default", ":", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "}", "public", "static", "int", "scanBaseTypeSignature", "(", "char", "[", "]", "string", ",", "int", "start", ")", "{", "if", "(", "start", ">=", "string", ".", "length", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "char", "c", "=", "string", "[", "start", "]", ";", "if", "(", "\"BCDFIJSVZ\"", ".", "indexOf", "(", "c", ")", ">=", "0", ")", "{", "return", "start", ";", "}", "else", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "}", "public", "static", "int", "scanArrayTypeSignature", "(", "char", "[", "]", "string", ",", "int", "start", ")", "{", "int", "length", "=", "string", ".", "length", ";", "if", "(", "start", ">=", "length", "-", "1", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "char", "c", "=", "string", "[", "start", "]", ";", "if", "(", "c", "!=", "C_ARRAY", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "c", "=", "string", "[", "++", "start", "]", ";", "while", "(", "c", "==", "C_ARRAY", ")", "{", "if", "(", "start", ">=", "length", "-", "1", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "c", "=", "string", "[", "++", "start", "]", ";", "}", "return", "scanTypeSignature", "(", "string", ",", "start", ")", ";", "}", "public", "static", "int", "scanCaptureTypeSignature", "(", "char", "[", "]", "string", ",", "int", "start", ")", "{", "if", "(", "start", ">=", "string", ".", "length", "-", "1", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "char", "c", "=", "string", "[", "start", "]", ";", "if", "(", "c", "!=", "C_CAPTURE", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "return", "scanTypeBoundSignature", "(", "string", ",", "start", "+", "1", ")", ";", "}", "public", "static", "int", "scanTypeVariableSignature", "(", "char", "[", "]", "string", ",", "int", "start", ")", "{", "if", "(", "start", ">=", "string", ".", "length", "-", "2", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "char", "c", "=", "string", "[", "start", "]", ";", "if", "(", "c", "!=", "C_TYPE_VARIABLE", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "int", "id", "=", "scanIdentifier", "(", "string", ",", "start", "+", "1", ")", ";", "c", "=", "string", "[", "id", "+", "1", "]", ";", "if", "(", "c", "==", "C_SEMICOLON", ")", "{", "return", "id", "+", "1", ";", "}", "else", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "}", "public", "static", "int", "scanIdentifier", "(", "char", "[", "]", "string", ",", "int", "start", ")", "{", "if", "(", "start", ">=", "string", ".", "length", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "int", "p", "=", "start", ";", "while", "(", "true", ")", "{", "char", "c", "=", "string", "[", "p", "]", ";", "if", "(", "c", "==", "'<'", "||", "c", "==", "'>'", "||", "c", "==", "':'", "||", "c", "==", "';'", "||", "c", "==", "'.'", "||", "c", "==", "'/'", ")", "{", "return", "p", "-", "1", ";", "}", "p", "++", ";", "if", "(", "p", "==", "string", ".", "length", ")", "{", "return", "p", "-", "1", ";", "}", "}", "}", "public", "static", "int", "scanClassTypeSignature", "(", "char", "[", "]", "string", ",", "int", "start", ")", "{", "if", "(", "start", ">=", "string", ".", "length", "-", "2", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "char", "c", "=", "string", "[", "start", "]", ";", "if", "(", "c", "!=", "C_RESOLVED", "&&", "c", "!=", "C_UNRESOLVED", ")", "{", "return", "-", "1", ";", "}", "int", "p", "=", "start", "+", "1", ";", "while", "(", "true", ")", "{", "if", "(", "p", ">=", "string", ".", "length", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "c", "=", "string", "[", "p", "]", ";", "if", "(", "c", "==", "C_SEMICOLON", ")", "{", "return", "p", ";", "}", "else", "if", "(", "c", "==", "C_GENERIC_START", ")", "{", "int", "e", "=", "scanTypeArgumentSignatures", "(", "string", ",", "p", ")", ";", "p", "=", "e", ";", "}", "else", "if", "(", "c", "==", "C_DOT", "||", "c", "==", "'/'", ")", "{", "int", "id", "=", "scanIdentifier", "(", "string", ",", "p", "+", "1", ")", ";", "p", "=", "id", ";", "}", "p", "++", ";", "}", "}", "public", "static", "int", "scanTypeBoundSignature", "(", "char", "[", "]", "string", ",", "int", "start", ")", "{", "if", "(", "start", ">=", "string", ".", "length", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "char", "c", "=", "string", "[", "start", "]", ";", "switch", "(", "c", ")", "{", "case", "C_STAR", ":", "return", "start", ";", "case", "C_SUPER", ":", "case", "C_EXTENDS", ":", "if", "(", "start", ">=", "string", ".", "length", "-", "2", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "break", ";", "default", ":", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "c", "=", "string", "[", "++", "start", "]", ";", "switch", "(", "c", ")", "{", "case", "C_CAPTURE", ":", "return", "scanCaptureTypeSignature", "(", "string", ",", "start", ")", ";", "case", "C_SUPER", ":", "case", "C_EXTENDS", ":", "return", "scanTypeBoundSignature", "(", "string", ",", "start", ")", ";", "case", "C_RESOLVED", ":", "case", "C_UNRESOLVED", ":", "return", "scanClassTypeSignature", "(", "string", ",", "start", ")", ";", "case", "C_TYPE_VARIABLE", ":", "return", "scanTypeVariableSignature", "(", "string", ",", "start", ")", ";", "case", "C_ARRAY", ":", "return", "scanArrayTypeSignature", "(", "string", ",", "start", ")", ";", "case", "C_STAR", ":", "return", "start", ";", "default", ":", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "}", "public", "static", "int", "scanTypeArgumentSignatures", "(", "char", "[", "]", "string", ",", "int", "start", ")", "{", "if", "(", "start", ">=", "string", ".", "length", "-", "1", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "char", "c", "=", "string", "[", "start", "]", ";", "if", "(", "c", "!=", "C_GENERIC_START", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "int", "p", "=", "start", "+", "1", ";", "while", "(", "true", ")", "{", "if", "(", "p", ">=", "string", ".", "length", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "c", "=", "string", "[", "p", "]", ";", "if", "(", "c", "==", "C_GENERIC_END", ")", "{", "return", "p", ";", "}", "int", "e", "=", "scanTypeArgumentSignature", "(", "string", ",", "p", ")", ";", "p", "=", "e", "+", "1", ";", "}", "}", "public", "static", "int", "scanTypeArgumentSignature", "(", "char", "[", "]", "string", ",", "int", "start", ")", "{", "if", "(", "start", ">=", "string", ".", "length", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "char", "c", "=", "string", "[", "start", "]", ";", "switch", "(", "c", ")", "{", "case", "C_STAR", ":", "return", "start", ";", "case", "C_EXTENDS", ":", "case", "C_SUPER", ":", "return", "scanTypeBoundSignature", "(", "string", ",", "start", ")", ";", "default", ":", "return", "scanTypeSignature", "(", "string", ",", "start", ")", ";", "}", "}", "}", "</s>" ]
3,319
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "public", "final", "class", "SimpleNameVector", "{", "static", "int", "INITIAL_SIZE", "=", "10", ";", "public", "int", "size", ";", "int", "maxSize", ";", "char", "[", "]", "[", "]", "elements", ";", "public", "SimpleNameVector", "(", ")", "{", "this", ".", "maxSize", "=", "INITIAL_SIZE", ";", "this", ".", "size", "=", "0", ";", "this", ".", "elements", "=", "new", "char", "[", "this", ".", "maxSize", "]", "[", "]", ";", "}", "public", "void", "add", "(", "char", "[", "]", "newElement", ")", "{", "if", "(", "this", ".", "size", "==", "this", ".", "maxSize", ")", "System", ".", "arraycopy", "(", "this", ".", "elements", ",", "0", ",", "(", "this", ".", "elements", "=", "new", "char", "[", "this", ".", "maxSize", "*=", "2", "]", "[", "]", ")", ",", "0", ",", "this", ".", "size", ")", ";", "this", ".", "elements", "[", "this", ".", "size", "++", "]", "=", "newElement", ";", "}", "public", "void", "addAll", "(", "char", "[", "]", "[", "]", "newElements", ")", "{", "if", "(", "this", ".", "size", "+", "newElements", ".", "length", ">=", "this", ".", "maxSize", ")", "{", "this", ".", "maxSize", "=", "this", ".", "size", "+", "newElements", ".", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "elements", ",", "0", ",", "(", "this", ".", "elements", "=", "new", "char", "[", "this", ".", "maxSize", "]", "[", "]", ")", ",", "0", ",", "this", ".", "size", ")", ";", "}", "System", ".", "arraycopy", "(", "newElements", ",", "0", ",", "this", ".", "elements", ",", "this", ".", "size", ",", "newElements", ".", "length", ")", ";", "this", ".", "size", "+=", "newElements", ".", "length", ";", "}", "public", "void", "copyInto", "(", "Object", "[", "]", "targetArray", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "elements", ",", "0", ",", "targetArray", ",", "0", ",", "this", ".", "size", ")", ";", "}", "public", "boolean", "contains", "(", "char", "[", "]", "element", ")", "{", "for", "(", "int", "i", "=", "this", ".", "size", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "CharOperation", ".", "equals", "(", "element", ",", "this", ".", "elements", "[", "i", "]", ")", ")", "return", "true", ";", "return", "false", ";", "}", "public", "char", "[", "]", "elementAt", "(", "int", "index", ")", "{", "return", "this", ".", "elements", "[", "index", "]", ";", "}", "public", "char", "[", "]", "remove", "(", "char", "[", "]", "element", ")", "{", "for", "(", "int", "i", "=", "this", ".", "size", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "element", "==", "this", ".", "elements", "[", "i", "]", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "elements", ",", "i", "+", "1", ",", "this", ".", "elements", ",", "i", ",", "--", "this", ".", "size", "-", "i", ")", ";", "this", ".", "elements", "[", "this", ".", "size", "]", "=", "null", ";", "return", "element", ";", "}", "return", "null", ";", "}", "public", "void", "removeAll", "(", ")", "{", "for", "(", "int", "i", "=", "this", ".", "size", ";", "--", "i", ">=", "0", ";", ")", "this", ".", "elements", "[", "i", "]", "=", "null", ";", "this", ".", "size", "=", "0", ";", "}", "public", "int", "size", "(", ")", "{", "return", "this", ".", "size", ";", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "size", ";", "i", "++", ")", "{", "buffer", ".", "append", "(", "this", ".", "elements", "[", "i", "]", ")", ".", "append", "(", "\"n\"", ")", ";", "}", "return", "buffer", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
3,320
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ";", "import", "java", ".", "io", ".", "OutputStream", ";", "import", "java", ".", "io", ".", "PrintWriter", ";", "import", "java", ".", "io", ".", "Writer", ";", "import", "java", ".", "util", ".", "Arrays", ";", "import", "java", ".", "util", ".", "Comparator", ";", "import", "java", ".", "util", ".", "HashMap", ";", "import", "java", ".", "util", ".", "Map", ";", "public", "class", "GenericXMLWriter", "extends", "PrintWriter", "{", "private", "static", "final", "String", "XML_VERSION", "=", "\"\"", ";", "private", "static", "void", "appendEscapedChar", "(", "StringBuffer", "buffer", ",", "char", "c", ")", "{", "String", "replacement", "=", "getReplacement", "(", "c", ")", ";", "if", "(", "replacement", "!=", "null", ")", "{", "buffer", ".", "append", "(", "'&'", ")", ";", "buffer", ".", "append", "(", "replacement", ")", ";", "buffer", ".", "append", "(", "';'", ")", ";", "}", "else", "{", "buffer", ".", "append", "(", "c", ")", ";", "}", "}", "private", "static", "String", "getEscaped", "(", "String", "s", ")", "{", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "s", ".", "length", "(", ")", "+", "10", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "s", ".", "length", "(", ")", ";", "++", "i", ")", "appendEscapedChar", "(", "result", ",", "s", ".", "charAt", "(", "i", ")", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "private", "static", "String", "getReplacement", "(", "char", "c", ")", "{", "switch", "(", "c", ")", "{", "case", "'<'", ":", "return", "\"lt\"", ";", "case", "'>'", ":", "return", "\"gt\"", ";", "case", "'\"'", ":", "return", "\"quot\"", ";", "case", "'\\''", ":", "return", "\"apos\"", ";", "case", "'&'", ":", "return", "\"amp\"", ";", "}", "return", "null", ";", "}", "private", "String", "lineSeparator", ";", "private", "int", "tab", ";", "public", "GenericXMLWriter", "(", "OutputStream", "stream", ",", "String", "lineSeparator", ",", "boolean", "printXmlVersion", ")", "{", "this", "(", "new", "PrintWriter", "(", "stream", ")", ",", "lineSeparator", ",", "printXmlVersion", ")", ";", "}", "public", "GenericXMLWriter", "(", "Writer", "writer", ",", "String", "lineSeparator", ",", "boolean", "printXmlVersion", ")", "{", "super", "(", "writer", ")", ";", "this", ".", "tab", "=", "0", ";", "this", ".", "lineSeparator", "=", "lineSeparator", ";", "if", "(", "printXmlVersion", ")", "{", "print", "(", "XML_VERSION", ")", ";", "print", "(", "this", ".", "lineSeparator", ")", ";", "}", "}", "public", "void", "endTag", "(", "String", "name", ",", "boolean", "insertTab", ",", "boolean", "insertNewLine", ")", "{", "this", ".", "tab", "--", ";", "printTag", "(", "'/'", "+", "name", ",", "null", ",", "insertTab", ",", "insertNewLine", ",", "false", ")", ";", "}", "public", "void", "printString", "(", "String", "string", ",", "boolean", "insertTab", ",", "boolean", "insertNewLine", ")", "{", "if", "(", "insertTab", ")", "{", "printTabulation", "(", ")", ";", "}", "print", "(", "string", ")", ";", "if", "(", "insertNewLine", ")", "{", "print", "(", "this", ".", "lineSeparator", ")", ";", "}", "}", "private", "void", "printTabulation", "(", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "tab", ";", "i", "++", ")", "this", ".", "print", "(", "'\\t'", ")", ";", "}", "public", "void", "printTag", "(", "String", "name", ",", "HashMap", "parameters", ",", "boolean", "insertTab", ",", "boolean", "insertNewLine", ",", "boolean", "closeTag", ")", "{", "if", "(", "insertTab", ")", "{", "printTabulation", "(", ")", ";", "}", "this", ".", "print", "(", "'<'", ")", ";", "this", ".", "print", "(", "name", ")", ";", "if", "(", "parameters", "!=", "null", ")", "{", "int", "length", "=", "parameters", ".", "size", "(", ")", ";", "Map", ".", "Entry", "[", "]", "entries", "=", "new", "Map", ".", "Entry", "[", "length", "]", ";", "parameters", ".", "entrySet", "(", ")", ".", "toArray", "(", "entries", ")", ";", "Arrays", ".", "sort", "(", "entries", ",", "new", "Comparator", "(", ")", "{", "public", "int", "compare", "(", "Object", "o1", ",", "Object", "o2", ")", "{", "Map", ".", "Entry", "entry1", "=", "(", "Map", ".", "Entry", ")", "o1", ";", "Map", ".", "Entry", "entry2", "=", "(", "Map", ".", "Entry", ")", "o2", ";", "return", "(", "(", "String", ")", "entry1", ".", "getKey", "(", ")", ")", ".", "compareTo", "(", "(", "String", ")", "entry2", ".", "getKey", "(", ")", ")", ";", "}", "}", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "print", "(", "'", "'", ")", ";", "this", ".", "print", "(", "entries", "[", "i", "]", ".", "getKey", "(", ")", ")", ";", "this", ".", "print", "(", "\"=\\\"\"", ")", ";", "this", ".", "print", "(", "getEscaped", "(", "String", ".", "valueOf", "(", "entries", "[", "i", "]", ".", "getValue", "(", ")", ")", ")", ")", ";", "this", ".", "print", "(", "'\\\"'", ")", ";", "}", "}", "if", "(", "closeTag", ")", "{", "this", ".", "print", "(", "\"/>\"", ")", ";", "}", "else", "{", "this", ".", "print", "(", "\">\"", ")", ";", "}", "if", "(", "insertNewLine", ")", "{", "print", "(", "this", ".", "lineSeparator", ")", ";", "}", "if", "(", "parameters", "!=", "null", "&&", "!", "closeTag", ")", "this", ".", "tab", "++", ";", "}", "public", "void", "startTag", "(", "String", "name", ",", "boolean", "insertTab", ")", "{", "printTag", "(", "name", ",", "null", ",", "insertTab", ",", "true", ",", "false", ")", ";", "this", ".", "tab", "++", ";", "}", "}", "</s>" ]
3,321
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "public", "final", "class", "HashtableOfObject", "implements", "Cloneable", "{", "public", "char", "[", "]", "keyTable", "[", "]", ";", "public", "Object", "valueTable", "[", "]", ";", "public", "int", "elementSize", ";", "int", "threshold", ";", "public", "HashtableOfObject", "(", ")", "{", "this", "(", "13", ")", ";", "}", "public", "HashtableOfObject", "(", "int", "size", ")", "{", "this", ".", "elementSize", "=", "0", ";", "this", ".", "threshold", "=", "size", ";", "int", "extraRoom", "=", "(", "int", ")", "(", "size", "*", "1.75f", ")", ";", "if", "(", "this", ".", "threshold", "==", "extraRoom", ")", "extraRoom", "++", ";", "this", ".", "keyTable", "=", "new", "char", "[", "extraRoom", "]", "[", "]", ";", "this", ".", "valueTable", "=", "new", "Object", "[", "extraRoom", "]", ";", "}", "public", "void", "clear", "(", ")", "{", "for", "(", "int", "i", "=", "this", ".", "keyTable", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "{", "this", ".", "keyTable", "[", "i", "]", "=", "null", ";", "this", ".", "valueTable", "[", "i", "]", "=", "null", ";", "}", "this", ".", "elementSize", "=", "0", ";", "}", "public", "Object", "clone", "(", ")", "throws", "CloneNotSupportedException", "{", "HashtableOfObject", "result", "=", "(", "HashtableOfObject", ")", "super", ".", "clone", "(", ")", ";", "result", ".", "elementSize", "=", "this", ".", "elementSize", ";", "result", ".", "threshold", "=", "this", ".", "threshold", ";", "int", "length", "=", "this", ".", "keyTable", ".", "length", ";", "result", ".", "keyTable", "=", "new", "char", "[", "length", "]", "[", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "keyTable", ",", "0", ",", "result", ".", "keyTable", ",", "0", ",", "length", ")", ";", "length", "=", "this", ".", "valueTable", ".", "length", ";", "result", ".", "valueTable", "=", "new", "Object", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "valueTable", ",", "0", ",", "result", ".", "valueTable", ",", "0", ",", "length", ")", ";", "return", "result", ";", "}", "public", "boolean", "containsKey", "(", "char", "[", "]", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "CharOperation", ".", "hashCode", "(", "key", ")", "%", "length", ";", "int", "keyLength", "=", "key", ".", "length", ";", "char", "[", "]", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "length", "==", "keyLength", "&&", "CharOperation", ".", "equals", "(", "currentKey", ",", "key", ")", ")", "return", "true", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "false", ";", "}", "public", "Object", "get", "(", "char", "[", "]", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "CharOperation", ".", "hashCode", "(", "key", ")", "%", "length", ";", "int", "keyLength", "=", "key", ".", "length", ";", "char", "[", "]", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "length", "==", "keyLength", "&&", "CharOperation", ".", "equals", "(", "currentKey", ",", "key", ")", ")", "return", "this", ".", "valueTable", "[", "index", "]", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "null", ";", "}", "public", "Object", "put", "(", "char", "[", "]", "key", ",", "Object", "value", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "CharOperation", ".", "hashCode", "(", "key", ")", "%", "length", ";", "int", "keyLength", "=", "key", ".", "length", ";", "char", "[", "]", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "length", "==", "keyLength", "&&", "CharOperation", ".", "equals", "(", "currentKey", ",", "key", ")", ")", "return", "this", ".", "valueTable", "[", "index", "]", "=", "value", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "this", ".", "keyTable", "[", "index", "]", "=", "key", ";", "this", ".", "valueTable", "[", "index", "]", "=", "value", ";", "if", "(", "++", "this", ".", "elementSize", ">", "this", ".", "threshold", ")", "rehash", "(", ")", ";", "return", "value", ";", "}", "public", "void", "putUnsafely", "(", "char", "[", "]", "key", ",", "Object", "value", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "CharOperation", ".", "hashCode", "(", "key", ")", "%", "length", ";", "while", "(", "this", ".", "keyTable", "[", "index", "]", "!=", "null", ")", "{", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "this", ".", "keyTable", "[", "index", "]", "=", "key", ";", "this", ".", "valueTable", "[", "index", "]", "=", "value", ";", "if", "(", "++", "this", ".", "elementSize", ">", "this", ".", "threshold", ")", "{", "rehash", "(", ")", ";", "}", "}", "public", "Object", "removeKey", "(", "char", "[", "]", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "CharOperation", ".", "hashCode", "(", "key", ")", "%", "length", ";", "int", "keyLength", "=", "key", ".", "length", ";", "char", "[", "]", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "length", "==", "keyLength", "&&", "CharOperation", ".", "equals", "(", "currentKey", ",", "key", ")", ")", "{", "Object", "value", "=", "this", ".", "valueTable", "[", "index", "]", ";", "this", ".", "elementSize", "--", ";", "this", ".", "keyTable", "[", "index", "]", "=", "null", ";", "this", ".", "valueTable", "[", "index", "]", "=", "null", ";", "rehash", "(", ")", ";", "return", "value", ";", "}", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "null", ";", "}", "private", "void", "rehash", "(", ")", "{", "HashtableOfObject", "newHashtable", "=", "new", "HashtableOfObject", "(", "this", ".", "elementSize", "*", "2", ")", ";", "char", "[", "]", "currentKey", ";", "for", "(", "int", "i", "=", "this", ".", "keyTable", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "i", "]", ")", "!=", "null", ")", "newHashtable", ".", "putUnsafely", "(", "currentKey", ",", "this", ".", "valueTable", "[", "i", "]", ")", ";", "this", ".", "keyTable", "=", "newHashtable", ".", "keyTable", ";", "this", ".", "valueTable", "=", "newHashtable", ".", "valueTable", ";", "this", ".", "threshold", "=", "newHashtable", ".", "threshold", ";", "}", "public", "int", "size", "(", ")", "{", "return", "this", ".", "elementSize", ";", "}", "public", "String", "toString", "(", ")", "{", "String", "s", "=", "\"\"", ";", "Object", "object", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "valueTable", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "if", "(", "(", "object", "=", "this", ".", "valueTable", "[", "i", "]", ")", "!=", "null", ")", "s", "+=", "new", "String", "(", "this", ".", "keyTable", "[", "i", "]", ")", "+", "\"", "->", "\"", "+", "object", ".", "toString", "(", ")", "+", "\"n\"", ";", "return", "s", ";", "}", "}", "</s>" ]
3,322
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ";", "public", "final", "class", "SimpleSet", "implements", "Cloneable", "{", "public", "Object", "[", "]", "values", ";", "public", "int", "elementSize", ";", "public", "int", "threshold", ";", "public", "SimpleSet", "(", ")", "{", "this", "(", "13", ")", ";", "}", "public", "SimpleSet", "(", "int", "size", ")", "{", "if", "(", "size", "<", "3", ")", "size", "=", "3", ";", "this", ".", "elementSize", "=", "0", ";", "this", ".", "threshold", "=", "size", "+", "1", ";", "this", ".", "values", "=", "new", "Object", "[", "2", "*", "size", "+", "1", "]", ";", "}", "public", "Object", "add", "(", "Object", "object", ")", "{", "int", "length", "=", "this", ".", "values", ".", "length", ";", "int", "index", "=", "(", "object", ".", "hashCode", "(", ")", "&", "0x7FFFFFFF", ")", "%", "length", ";", "Object", "current", ";", "while", "(", "(", "current", "=", "this", ".", "values", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "current", ".", "equals", "(", "object", ")", ")", "return", "this", ".", "values", "[", "index", "]", "=", "object", ";", "if", "(", "++", "index", "==", "length", ")", "index", "=", "0", ";", "}", "this", ".", "values", "[", "index", "]", "=", "object", ";", "if", "(", "++", "this", ".", "elementSize", ">", "this", ".", "threshold", ")", "rehash", "(", ")", ";", "return", "object", ";", "}", "public", "Object", "addIfNotIncluded", "(", "Object", "object", ")", "{", "int", "length", "=", "this", ".", "values", ".", "length", ";", "int", "index", "=", "(", "object", ".", "hashCode", "(", ")", "&", "0x7FFFFFFF", ")", "%", "length", ";", "Object", "current", ";", "while", "(", "(", "current", "=", "this", ".", "values", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "current", ".", "equals", "(", "object", ")", ")", "return", "null", ";", "if", "(", "++", "index", "==", "length", ")", "index", "=", "0", ";", "}", "this", ".", "values", "[", "index", "]", "=", "object", ";", "if", "(", "++", "this", ".", "elementSize", ">", "this", ".", "threshold", ")", "rehash", "(", ")", ";", "return", "object", ";", "}", "public", "void", "asArray", "(", "Object", "[", "]", "copy", ")", "{", "if", "(", "this", ".", "elementSize", "!=", "copy", ".", "length", ")", "throw", "new", "IllegalArgumentException", "(", ")", ";", "int", "index", "=", "this", ".", "elementSize", ";", "for", "(", "int", "i", "=", "0", ",", "l", "=", "this", ".", "values", ".", "length", ";", "i", "<", "l", "&&", "index", ">", "0", ";", "i", "++", ")", "if", "(", "this", ".", "values", "[", "i", "]", "!=", "null", ")", "copy", "[", "--", "index", "]", "=", "this", ".", "values", "[", "i", "]", ";", "}", "public", "void", "clear", "(", ")", "{", "for", "(", "int", "i", "=", "this", ".", "values", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "this", ".", "values", "[", "i", "]", "=", "null", ";", "this", ".", "elementSize", "=", "0", ";", "}", "public", "Object", "clone", "(", ")", "throws", "CloneNotSupportedException", "{", "SimpleSet", "result", "=", "(", "SimpleSet", ")", "super", ".", "clone", "(", ")", ";", "result", ".", "elementSize", "=", "this", ".", "elementSize", ";", "result", ".", "threshold", "=", "this", ".", "threshold", ";", "int", "length", "=", "this", ".", "values", ".", "length", ";", "result", ".", "values", "=", "new", "Object", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "values", ",", "0", ",", "result", ".", "values", ",", "0", ",", "length", ")", ";", "return", "result", ";", "}", "public", "boolean", "includes", "(", "Object", "object", ")", "{", "int", "length", "=", "this", ".", "values", ".", "length", ";", "int", "index", "=", "(", "object", ".", "hashCode", "(", ")", "&", "0x7FFFFFFF", ")", "%", "length", ";", "Object", "current", ";", "while", "(", "(", "current", "=", "this", ".", "values", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "current", ".", "equals", "(", "object", ")", ")", "return", "true", ";", "if", "(", "++", "index", "==", "length", ")", "index", "=", "0", ";", "}", "return", "false", ";", "}", "public", "Object", "remove", "(", "Object", "object", ")", "{", "int", "length", "=", "this", ".", "values", ".", "length", ";", "int", "index", "=", "(", "object", ".", "hashCode", "(", ")", "&", "0x7FFFFFFF", ")", "%", "length", ";", "Object", "current", ";", "while", "(", "(", "current", "=", "this", ".", "values", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "current", ".", "equals", "(", "object", ")", ")", "{", "this", ".", "elementSize", "--", ";", "Object", "oldValue", "=", "this", ".", "values", "[", "index", "]", ";", "this", ".", "values", "[", "index", "]", "=", "null", ";", "if", "(", "this", ".", "values", "[", "index", "+", "1", "==", "length", "?", "0", ":", "index", "+", "1", "]", "!=", "null", ")", "rehash", "(", ")", ";", "return", "oldValue", ";", "}", "if", "(", "++", "index", "==", "length", ")", "index", "=", "0", ";", "}", "return", "null", ";", "}", "private", "void", "rehash", "(", ")", "{", "SimpleSet", "newSet", "=", "new", "SimpleSet", "(", "this", ".", "elementSize", "*", "2", ")", ";", "Object", "current", ";", "for", "(", "int", "i", "=", "this", ".", "values", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "(", "current", "=", "this", ".", "values", "[", "i", "]", ")", "!=", "null", ")", "newSet", ".", "add", "(", "current", ")", ";", "this", ".", "values", "=", "newSet", ".", "values", ";", "this", ".", "elementSize", "=", "newSet", ".", "elementSize", ";", "this", ".", "threshold", "=", "newSet", ".", "threshold", ";", "}", "public", "String", "toString", "(", ")", "{", "String", "s", "=", "\"\"", ";", "Object", "object", ";", "for", "(", "int", "i", "=", "0", ",", "l", "=", "this", ".", "values", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "if", "(", "(", "object", "=", "this", ".", "values", "[", "i", "]", ")", "!=", "null", ")", "s", "+=", "object", ".", "toString", "(", ")", "+", "\"n\"", ";", "return", "s", ";", "}", "}", "</s>" ]
3,323
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ";", "import", "java", ".", "io", ".", "IOException", ";", "import", "java", ".", "io", ".", "InputStream", ";", "import", "java", ".", "lang", ".", "reflect", ".", "Field", ";", "import", "java", ".", "lang", ".", "reflect", ".", "Modifier", ";", "import", "java", ".", "text", ".", "MessageFormat", ";", "import", "java", ".", "util", ".", "ArrayList", ";", "import", "java", ".", "util", ".", "HashMap", ";", "import", "java", ".", "util", ".", "Locale", ";", "import", "java", ".", "util", ".", "Map", ";", "import", "java", ".", "util", ".", "Properties", ";", "public", "final", "class", "Messages", "{", "private", "static", "class", "MessagesProperties", "extends", "Properties", "{", "private", "static", "final", "int", "MOD_EXPECTED", "=", "Modifier", ".", "PUBLIC", "|", "Modifier", ".", "STATIC", ";", "private", "static", "final", "int", "MOD_MASK", "=", "MOD_EXPECTED", "|", "Modifier", ".", "FINAL", ";", "private", "static", "final", "long", "serialVersionUID", "=", "1L", ";", "private", "final", "Map", "fields", ";", "public", "MessagesProperties", "(", "Field", "[", "]", "fieldArray", ",", "String", "bundleName", ")", "{", "super", "(", ")", ";", "final", "int", "len", "=", "fieldArray", ".", "length", ";", "this", ".", "fields", "=", "new", "HashMap", "(", "len", "*", "2", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "++", ")", "{", "this", ".", "fields", ".", "put", "(", "fieldArray", "[", "i", "]", ".", "getName", "(", ")", ",", "fieldArray", "[", "i", "]", ")", ";", "}", "}", "public", "synchronized", "Object", "put", "(", "Object", "key", ",", "Object", "value", ")", "{", "try", "{", "Field", "field", "=", "(", "Field", ")", "this", ".", "fields", ".", "get", "(", "key", ")", ";", "if", "(", "field", "==", "null", ")", "{", "return", "null", ";", "}", "if", "(", "(", "field", ".", "getModifiers", "(", ")", "&", "MOD_MASK", ")", "!=", "MOD_EXPECTED", ")", "return", "null", ";", "try", "{", "field", ".", "set", "(", "null", ",", "value", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "}", "}", "catch", "(", "SecurityException", "e", ")", "{", "}", "return", "null", ";", "}", "}", "private", "static", "String", "[", "]", "nlSuffixes", ";", "private", "static", "final", "String", "EXTENSION", "=", "\".properties\"", ";", "private", "static", "final", "String", "BUNDLE_NAME", "=", "\"\"", ";", "private", "Messages", "(", ")", "{", "}", "public", "static", "String", "compilation_unresolvedProblem", ";", "public", "static", "String", "compilation_unresolvedProblems", ";", "public", "static", "String", "compilation_request", ";", "public", "static", "String", "compilation_loadBinary", ";", "public", "static", "String", "compilation_process", ";", "public", "static", "String", "compilation_write", ";", "public", "static", "String", "compilation_done", ";", "public", "static", "String", "compilation_units", ";", "public", "static", "String", "compilation_unit", ";", "public", "static", "String", "compilation_internalError", ";", "public", "static", "String", "compilation_beginningToCompile", ";", "public", "static", "String", "compilation_processing", ";", "public", "static", "String", "output_isFile", ";", "public", "static", "String", "output_notValidAll", ";", "public", "static", "String", "output_notValid", ";", "public", "static", "String", "problem_noSourceInformation", ";", "public", "static", "String", "problem_atLine", ";", "public", "static", "String", "abort_invalidAttribute", ";", "public", "static", "String", "abort_invalidExceptionAttribute", ";", "public", "static", "String", "abort_invalidOpcode", ";", "public", "static", "String", "abort_missingCode", ";", "public", "static", "String", "abort_againstSourceModel", ";", "public", "static", "String", "accept_cannot", ";", "public", "static", "String", "parser_incorrectPath", ";", "public", "static", "String", "parser_moveFiles", ";", "public", "static", "String", "parser_syntaxRecovery", ";", "public", "static", "String", "parser_regularParse", ";", "public", "static", "String", "parser_missingFile", ";", "public", "static", "String", "parser_corruptedFile", ";", "public", "static", "String", "parser_endOfFile", ";", "public", "static", "String", "parser_endOfConstructor", ";", "public", "static", "String", "parser_endOfMethod", ";", "public", "static", "String", "parser_endOfInitializer", ";", "public", "static", "String", "ast_missingCode", ";", "public", "static", "String", "constant_cannotCastedInto", ";", "public", "static", "String", "constant_cannotConvertedTo", ";", "static", "{", "initializeMessages", "(", "BUNDLE_NAME", ",", "Messages", ".", "class", ")", ";", "}", "public", "static", "String", "bind", "(", "String", "message", ")", "{", "return", "bind", "(", "message", ",", "null", ")", ";", "}", "public", "static", "String", "bind", "(", "String", "message", ",", "Object", "binding", ")", "{", "return", "bind", "(", "message", ",", "new", "Object", "[", "]", "{", "binding", "}", ")", ";", "}", "public", "static", "String", "bind", "(", "String", "message", ",", "Object", "binding1", ",", "Object", "binding2", ")", "{", "return", "bind", "(", "message", ",", "new", "Object", "[", "]", "{", "binding1", ",", "binding2", "}", ")", ";", "}", "public", "static", "String", "bind", "(", "String", "message", ",", "Object", "[", "]", "bindings", ")", "{", "return", "MessageFormat", ".", "format", "(", "message", ",", "bindings", ")", ";", "}", "private", "static", "String", "[", "]", "buildVariants", "(", "String", "root", ")", "{", "if", "(", "nlSuffixes", "==", "null", ")", "{", "String", "nl", "=", "Locale", ".", "getDefault", "(", ")", ".", "toString", "(", ")", ";", "ArrayList", "result", "=", "new", "ArrayList", "(", "4", ")", ";", "int", "lastSeparator", ";", "while", "(", "true", ")", "{", "result", ".", "add", "(", "'_'", "+", "nl", "+", "EXTENSION", ")", ";", "lastSeparator", "=", "nl", ".", "lastIndexOf", "(", "'_'", ")", ";", "if", "(", "lastSeparator", "==", "-", "1", ")", "break", ";", "nl", "=", "nl", ".", "substring", "(", "0", ",", "lastSeparator", ")", ";", "}", "result", ".", "add", "(", "EXTENSION", ")", ";", "nlSuffixes", "=", "(", "String", "[", "]", ")", "result", ".", "toArray", "(", "new", "String", "[", "result", ".", "size", "(", ")", "]", ")", ";", "}", "root", "=", "root", ".", "replace", "(", "'.'", ",", "'/'", ")", ";", "String", "[", "]", "variants", "=", "new", "String", "[", "nlSuffixes", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "variants", ".", "length", ";", "i", "++", ")", "variants", "[", "i", "]", "=", "root", "+", "nlSuffixes", "[", "i", "]", ";", "return", "variants", ";", "}", "public", "static", "void", "initializeMessages", "(", "String", "bundleName", ",", "Class", "clazz", ")", "{", "final", "Field", "[", "]", "fields", "=", "clazz", ".", "getDeclaredFields", "(", ")", ";", "load", "(", "bundleName", ",", "clazz", ".", "getClassLoader", "(", ")", ",", "fields", ")", ";", "final", "int", "MOD_EXPECTED", "=", "Modifier", ".", "PUBLIC", "|", "Modifier", ".", "STATIC", ";", "final", "int", "MOD_MASK", "=", "MOD_EXPECTED", "|", "Modifier", ".", "FINAL", ";", "final", "int", "numFields", "=", "fields", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "numFields", ";", "i", "++", ")", "{", "Field", "field", "=", "fields", "[", "i", "]", ";", "if", "(", "(", "field", ".", "getModifiers", "(", ")", "&", "MOD_MASK", ")", "!=", "MOD_EXPECTED", ")", "continue", ";", "try", "{", "if", "(", "field", ".", "get", "(", "clazz", ")", "==", "null", ")", "{", "String", "value", "=", "\"\"", "+", "field", ".", "getName", "(", ")", "+", "\"", "in:", "\"", "+", "bundleName", ";", "field", ".", "set", "(", "null", ",", "value", ")", ";", "}", "}", "catch", "(", "IllegalArgumentException", "e", ")", "{", "}", "catch", "(", "IllegalAccessException", "e", ")", "{", "}", "}", "}", "public", "static", "void", "load", "(", "final", "String", "bundleName", ",", "final", "ClassLoader", "loader", ",", "final", "Field", "[", "]", "fields", ")", "{", "final", "String", "[", "]", "variants", "=", "buildVariants", "(", "bundleName", ")", ";", "for", "(", "int", "i", "=", "variants", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "{", "InputStream", "input", "=", "(", "loader", "==", "null", ")", "?", "ClassLoader", ".", "getSystemResourceAsStream", "(", "variants", "[", "i", "]", ")", ":", "loader", ".", "getResourceAsStream", "(", "variants", "[", "i", "]", ")", ";", "if", "(", "input", "==", "null", ")", "continue", ";", "try", "{", "final", "MessagesProperties", "properties", "=", "new", "MessagesProperties", "(", "fields", ",", "bundleName", ")", ";", "properties", ".", "load", "(", "input", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "}", "finally", "{", "try", "{", "input", ".", "close", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "}", "}", "}", "}", "}", "</s>" ]
3,324
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ";", "public", "final", "class", "HashtableOfObjectToIntArray", "implements", "Cloneable", "{", "public", "Object", "[", "]", "keyTable", ";", "public", "int", "[", "]", "[", "]", "valueTable", ";", "public", "int", "elementSize", ";", "int", "threshold", ";", "public", "HashtableOfObjectToIntArray", "(", ")", "{", "this", "(", "13", ")", ";", "}", "public", "HashtableOfObjectToIntArray", "(", "int", "size", ")", "{", "this", ".", "elementSize", "=", "0", ";", "this", ".", "threshold", "=", "size", ";", "int", "extraRoom", "=", "(", "int", ")", "(", "size", "*", "1.75f", ")", ";", "if", "(", "this", ".", "threshold", "==", "extraRoom", ")", "extraRoom", "++", ";", "this", ".", "keyTable", "=", "new", "Object", "[", "extraRoom", "]", ";", "this", ".", "valueTable", "=", "new", "int", "[", "extraRoom", "]", "[", "]", ";", "}", "public", "Object", "clone", "(", ")", "throws", "CloneNotSupportedException", "{", "HashtableOfObjectToIntArray", "result", "=", "(", "HashtableOfObjectToIntArray", ")", "super", ".", "clone", "(", ")", ";", "result", ".", "elementSize", "=", "this", ".", "elementSize", ";", "result", ".", "threshold", "=", "this", ".", "threshold", ";", "int", "length", "=", "this", ".", "keyTable", ".", "length", ";", "result", ".", "keyTable", "=", "new", "Object", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "keyTable", ",", "0", ",", "result", ".", "keyTable", ",", "0", ",", "length", ")", ";", "length", "=", "this", ".", "valueTable", ".", "length", ";", "result", ".", "valueTable", "=", "new", "int", "[", "length", "]", "[", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "valueTable", ",", "0", ",", "result", ".", "valueTable", ",", "0", ",", "length", ")", ";", "return", "result", ";", "}", "public", "boolean", "containsKey", "(", "Object", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "(", "key", ".", "hashCode", "(", ")", "&", "0x7FFFFFFF", ")", "%", "length", ";", "Object", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "equals", "(", "key", ")", ")", "return", "true", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "false", ";", "}", "public", "int", "[", "]", "get", "(", "Object", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "(", "key", ".", "hashCode", "(", ")", "&", "0x7FFFFFFF", ")", "%", "length", ";", "Object", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "equals", "(", "key", ")", ")", "return", "this", ".", "valueTable", "[", "index", "]", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "null", ";", "}", "public", "void", "keysToArray", "(", "Object", "[", "]", "array", ")", "{", "int", "index", "=", "0", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "keyTable", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "this", ".", "keyTable", "[", "i", "]", "!=", "null", ")", "array", "[", "index", "++", "]", "=", "this", ".", "keyTable", "[", "i", "]", ";", "}", "}", "public", "int", "[", "]", "put", "(", "Object", "key", ",", "int", "[", "]", "value", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "(", "key", ".", "hashCode", "(", ")", "&", "0x7FFFFFFF", ")", "%", "length", ";", "Object", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "equals", "(", "key", ")", ")", "return", "this", ".", "valueTable", "[", "index", "]", "=", "value", ";", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "this", ".", "keyTable", "[", "index", "]", "=", "key", ";", "this", ".", "valueTable", "[", "index", "]", "=", "value", ";", "if", "(", "++", "this", ".", "elementSize", ">", "this", ".", "threshold", ")", "rehash", "(", ")", ";", "return", "value", ";", "}", "public", "int", "[", "]", "removeKey", "(", "Object", "key", ")", "{", "int", "length", "=", "this", ".", "keyTable", ".", "length", ",", "index", "=", "(", "key", ".", "hashCode", "(", ")", "&", "0x7FFFFFFF", ")", "%", "length", ";", "Object", "currentKey", ";", "while", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "currentKey", ".", "equals", "(", "key", ")", ")", "{", "int", "[", "]", "value", "=", "this", ".", "valueTable", "[", "index", "]", ";", "this", ".", "elementSize", "--", ";", "this", ".", "keyTable", "[", "index", "]", "=", "null", ";", "rehash", "(", ")", ";", "return", "value", ";", "}", "if", "(", "++", "index", "==", "length", ")", "{", "index", "=", "0", ";", "}", "}", "return", "null", ";", "}", "private", "void", "rehash", "(", ")", "{", "HashtableOfObjectToIntArray", "newHashtable", "=", "new", "HashtableOfObjectToIntArray", "(", "this", ".", "elementSize", "*", "2", ")", ";", "Object", "currentKey", ";", "for", "(", "int", "i", "=", "this", ".", "keyTable", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "(", "currentKey", "=", "this", ".", "keyTable", "[", "i", "]", ")", "!=", "null", ")", "newHashtable", ".", "put", "(", "currentKey", ",", "this", ".", "valueTable", "[", "i", "]", ")", ";", "this", ".", "keyTable", "=", "newHashtable", ".", "keyTable", ";", "this", ".", "valueTable", "=", "newHashtable", ".", "valueTable", ";", "this", ".", "threshold", "=", "newHashtable", ".", "threshold", ";", "}", "public", "int", "size", "(", ")", "{", "return", "this", ".", "elementSize", ";", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "Object", "key", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "keyTable", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "(", "key", "=", "this", ".", "keyTable", "[", "i", "]", ")", "!=", "null", ")", "{", "buffer", ".", "append", "(", "key", ")", ".", "append", "(", "\"", "->", "\"", ")", ";", "int", "[", "]", "ints", "=", "this", ".", "valueTable", "[", "i", "]", ";", "buffer", ".", "append", "(", "'['", ")", ";", "if", "(", "ints", "!=", "null", ")", "{", "for", "(", "int", "j", "=", "0", ",", "max", "=", "ints", ".", "length", ";", "j", "<", "max", ";", "j", "++", ")", "{", "if", "(", "j", ">", "0", ")", "{", "buffer", ".", "append", "(", "','", ")", ";", "}", "buffer", ".", "append", "(", "ints", "[", "j", "]", ")", ";", "}", "}", "buffer", ".", "append", "(", "\"]n\"", ")", ";", "}", "}", "return", "String", ".", "valueOf", "(", "buffer", ")", ";", "}", "}", "</s>" ]
3,325
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "public", "final", "class", "SimpleSetOfCharArray", "implements", "Cloneable", "{", "public", "char", "[", "]", "[", "]", "values", ";", "public", "int", "elementSize", ";", "public", "int", "threshold", ";", "public", "SimpleSetOfCharArray", "(", ")", "{", "this", "(", "13", ")", ";", "}", "public", "SimpleSetOfCharArray", "(", "int", "size", ")", "{", "if", "(", "size", "<", "3", ")", "size", "=", "3", ";", "this", ".", "elementSize", "=", "0", ";", "this", ".", "threshold", "=", "size", "+", "1", ";", "this", ".", "values", "=", "new", "char", "[", "2", "*", "size", "+", "1", "]", "[", "]", ";", "}", "public", "Object", "add", "(", "char", "[", "]", "object", ")", "{", "int", "length", "=", "this", ".", "values", ".", "length", ";", "int", "index", "=", "(", "CharOperation", ".", "hashCode", "(", "object", ")", "&", "0x7FFFFFFF", ")", "%", "length", ";", "char", "[", "]", "current", ";", "while", "(", "(", "current", "=", "this", ".", "values", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "CharOperation", ".", "equals", "(", "current", ",", "object", ")", ")", "return", "this", ".", "values", "[", "index", "]", "=", "object", ";", "if", "(", "++", "index", "==", "length", ")", "index", "=", "0", ";", "}", "this", ".", "values", "[", "index", "]", "=", "object", ";", "if", "(", "++", "this", ".", "elementSize", ">", "this", ".", "threshold", ")", "rehash", "(", ")", ";", "return", "object", ";", "}", "public", "void", "asArray", "(", "Object", "[", "]", "copy", ")", "{", "if", "(", "this", ".", "elementSize", "!=", "copy", ".", "length", ")", "throw", "new", "IllegalArgumentException", "(", ")", ";", "int", "index", "=", "this", ".", "elementSize", ";", "for", "(", "int", "i", "=", "0", ",", "l", "=", "this", ".", "values", ".", "length", ";", "i", "<", "l", "&&", "index", ">", "0", ";", "i", "++", ")", "if", "(", "this", ".", "values", "[", "i", "]", "!=", "null", ")", "copy", "[", "--", "index", "]", "=", "this", ".", "values", "[", "i", "]", ";", "}", "public", "void", "clear", "(", ")", "{", "for", "(", "int", "i", "=", "this", ".", "values", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "this", ".", "values", "[", "i", "]", "=", "null", ";", "this", ".", "elementSize", "=", "0", ";", "}", "public", "Object", "clone", "(", ")", "throws", "CloneNotSupportedException", "{", "SimpleSetOfCharArray", "result", "=", "(", "SimpleSetOfCharArray", ")", "super", ".", "clone", "(", ")", ";", "result", ".", "elementSize", "=", "this", ".", "elementSize", ";", "result", ".", "threshold", "=", "this", ".", "threshold", ";", "int", "length", "=", "this", ".", "values", ".", "length", ";", "result", ".", "values", "=", "new", "char", "[", "length", "]", "[", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "values", ",", "0", ",", "result", ".", "values", ",", "0", ",", "length", ")", ";", "return", "result", ";", "}", "public", "char", "[", "]", "get", "(", "char", "[", "]", "object", ")", "{", "int", "length", "=", "this", ".", "values", ".", "length", ";", "int", "index", "=", "(", "CharOperation", ".", "hashCode", "(", "object", ")", "&", "0x7FFFFFFF", ")", "%", "length", ";", "char", "[", "]", "current", ";", "while", "(", "(", "current", "=", "this", ".", "values", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "CharOperation", ".", "equals", "(", "current", ",", "object", ")", ")", "return", "current", ";", "if", "(", "++", "index", "==", "length", ")", "index", "=", "0", ";", "}", "this", ".", "values", "[", "index", "]", "=", "object", ";", "if", "(", "++", "this", ".", "elementSize", ">", "this", ".", "threshold", ")", "rehash", "(", ")", ";", "return", "object", ";", "}", "public", "boolean", "includes", "(", "char", "[", "]", "object", ")", "{", "int", "length", "=", "this", ".", "values", ".", "length", ";", "int", "index", "=", "(", "CharOperation", ".", "hashCode", "(", "object", ")", "&", "0x7FFFFFFF", ")", "%", "length", ";", "char", "[", "]", "current", ";", "while", "(", "(", "current", "=", "this", ".", "values", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "CharOperation", ".", "equals", "(", "current", ",", "object", ")", ")", "return", "true", ";", "if", "(", "++", "index", "==", "length", ")", "index", "=", "0", ";", "}", "return", "false", ";", "}", "public", "char", "[", "]", "remove", "(", "char", "[", "]", "object", ")", "{", "int", "length", "=", "this", ".", "values", ".", "length", ";", "int", "index", "=", "(", "CharOperation", ".", "hashCode", "(", "object", ")", "&", "0x7FFFFFFF", ")", "%", "length", ";", "char", "[", "]", "current", ";", "while", "(", "(", "current", "=", "this", ".", "values", "[", "index", "]", ")", "!=", "null", ")", "{", "if", "(", "CharOperation", ".", "equals", "(", "current", ",", "object", ")", ")", "{", "this", ".", "elementSize", "--", ";", "char", "[", "]", "oldValue", "=", "this", ".", "values", "[", "index", "]", ";", "this", ".", "values", "[", "index", "]", "=", "null", ";", "if", "(", "this", ".", "values", "[", "index", "+", "1", "==", "length", "?", "0", ":", "index", "+", "1", "]", "!=", "null", ")", "rehash", "(", ")", ";", "return", "oldValue", ";", "}", "if", "(", "++", "index", "==", "length", ")", "index", "=", "0", ";", "}", "return", "null", ";", "}", "private", "void", "rehash", "(", ")", "{", "SimpleSetOfCharArray", "newSet", "=", "new", "SimpleSetOfCharArray", "(", "this", ".", "elementSize", "*", "2", ")", ";", "char", "[", "]", "current", ";", "for", "(", "int", "i", "=", "this", ".", "values", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "if", "(", "(", "current", "=", "this", ".", "values", "[", "i", "]", ")", "!=", "null", ")", "newSet", ".", "add", "(", "current", ")", ";", "this", ".", "values", "=", "newSet", ".", "values", ";", "this", ".", "elementSize", "=", "newSet", ".", "elementSize", ";", "this", ".", "threshold", "=", "newSet", ".", "threshold", ";", "}", "public", "String", "toString", "(", ")", "{", "String", "s", "=", "\"\"", ";", "char", "[", "]", "object", ";", "for", "(", "int", "i", "=", "0", ",", "l", "=", "this", ".", "values", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "if", "(", "(", "object", "=", "this", ".", "values", "[", "i", "]", ")", "!=", "null", ")", "s", "+=", "new", "String", "(", "object", ")", "+", "\"n\"", ";", "return", "s", ";", "}", "}", "</s>" ]
3,326
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "CompilationUnitDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Messages", ";", "public", "class", "ProcessTaskManager", "implements", "Runnable", "{", "Compiler", "compiler", ";", "private", "int", "unitIndex", ";", "private", "Thread", "processingThread", ";", "CompilationUnitDeclaration", "unitToProcess", ";", "private", "Throwable", "caughtException", ";", "volatile", "int", "currentIndex", ",", "availableIndex", ",", "size", ",", "sleepCount", ";", "CompilationUnitDeclaration", "[", "]", "units", ";", "public", "static", "final", "int", "PROCESSED_QUEUE_SIZE", "=", "12", ";", "public", "ProcessTaskManager", "(", "Compiler", "compiler", ")", "{", "this", ".", "compiler", "=", "compiler", ";", "this", ".", "unitIndex", "=", "0", ";", "this", ".", "currentIndex", "=", "0", ";", "this", ".", "availableIndex", "=", "0", ";", "this", ".", "size", "=", "PROCESSED_QUEUE_SIZE", ";", "this", ".", "sleepCount", "=", "0", ";", "this", ".", "units", "=", "new", "CompilationUnitDeclaration", "[", "this", ".", "size", "]", ";", "synchronized", "(", "this", ")", "{", "this", ".", "processingThread", "=", "new", "Thread", "(", "this", ",", "\"\"", ")", ";", "this", ".", "processingThread", ".", "setDaemon", "(", "true", ")", ";", "this", ".", "processingThread", ".", "start", "(", ")", ";", "}", "}", "private", "synchronized", "void", "addNextUnit", "(", "CompilationUnitDeclaration", "newElement", ")", "{", "while", "(", "this", ".", "units", "[", "this", ".", "availableIndex", "]", "!=", "null", ")", "{", "this", ".", "sleepCount", "=", "1", ";", "try", "{", "wait", "(", "250", ")", ";", "}", "catch", "(", "InterruptedException", "ignore", ")", "{", "}", "this", ".", "sleepCount", "=", "0", ";", "}", "this", ".", "units", "[", "this", ".", "availableIndex", "++", "]", "=", "newElement", ";", "if", "(", "this", ".", "availableIndex", ">=", "this", ".", "size", ")", "this", ".", "availableIndex", "=", "0", ";", "if", "(", "this", ".", "sleepCount", "<=", "-", "1", ")", "notify", "(", ")", ";", "}", "public", "CompilationUnitDeclaration", "removeNextUnit", "(", ")", "throws", "Error", "{", "CompilationUnitDeclaration", "next", "=", "null", ";", "boolean", "yield", "=", "false", ";", "synchronized", "(", "this", ")", "{", "next", "=", "this", ".", "units", "[", "this", ".", "currentIndex", "]", ";", "if", "(", "next", "==", "null", "||", "this", ".", "caughtException", "!=", "null", ")", "{", "do", "{", "if", "(", "this", ".", "processingThread", "==", "null", ")", "{", "if", "(", "this", ".", "caughtException", "!=", "null", ")", "{", "if", "(", "this", ".", "caughtException", "instanceof", "Error", ")", "throw", "(", "Error", ")", "this", ".", "caughtException", ";", "throw", "(", "RuntimeException", ")", "this", ".", "caughtException", ";", "}", "return", "null", ";", "}", "this", ".", "sleepCount", "=", "-", "1", ";", "try", "{", "wait", "(", "100", ")", ";", "}", "catch", "(", "InterruptedException", "ignore", ")", "{", "}", "this", ".", "sleepCount", "=", "0", ";", "next", "=", "this", ".", "units", "[", "this", ".", "currentIndex", "]", ";", "}", "while", "(", "next", "==", "null", ")", ";", "}", "this", ".", "units", "[", "this", ".", "currentIndex", "++", "]", "=", "null", ";", "if", "(", "this", ".", "currentIndex", ">=", "this", ".", "size", ")", "this", ".", "currentIndex", "=", "0", ";", "if", "(", "this", ".", "sleepCount", ">=", "1", "&&", "++", "this", ".", "sleepCount", ">", "4", ")", "{", "notify", "(", ")", ";", "yield", "=", "this", ".", "sleepCount", ">", "8", ";", "}", "}", "if", "(", "yield", ")", "Thread", ".", "yield", "(", ")", ";", "return", "next", ";", "}", "public", "void", "run", "(", ")", "{", "while", "(", "this", ".", "processingThread", "!=", "null", ")", "{", "this", ".", "unitToProcess", "=", "null", ";", "int", "index", "=", "-", "1", ";", "try", "{", "synchronized", "(", "this", ")", "{", "if", "(", "this", ".", "processingThread", "==", "null", ")", "return", ";", "this", ".", "unitToProcess", "=", "this", ".", "compiler", ".", "getUnitToProcess", "(", "this", ".", "unitIndex", ")", ";", "if", "(", "this", ".", "unitToProcess", "==", "null", ")", "{", "this", ".", "processingThread", "=", "null", ";", "return", ";", "}", "index", "=", "this", ".", "unitIndex", "++", ";", "}", "try", "{", "this", ".", "compiler", ".", "reportProgress", "(", "Messages", ".", "bind", "(", "Messages", ".", "compilation_processing", ",", "new", "String", "(", "this", ".", "unitToProcess", ".", "getFileName", "(", ")", ")", ")", ")", ";", "if", "(", "this", ".", "compiler", ".", "options", ".", "verbose", ")", "this", ".", "compiler", ".", "out", ".", "println", "(", "Messages", ".", "bind", "(", "Messages", ".", "compilation_process", ",", "new", "String", "[", "]", "{", "String", ".", "valueOf", "(", "index", "+", "1", ")", ",", "String", ".", "valueOf", "(", "this", ".", "compiler", ".", "totalUnits", ")", ",", "new", "String", "(", "this", ".", "unitToProcess", ".", "getFileName", "(", ")", ")", "}", ")", ")", ";", "this", ".", "compiler", ".", "process", "(", "this", ".", "unitToProcess", ",", "index", ")", ";", "}", "finally", "{", "if", "(", "this", ".", "unitToProcess", "!=", "null", ")", "this", ".", "unitToProcess", ".", "cleanUp", "(", ")", ";", "}", "addNextUnit", "(", "this", ".", "unitToProcess", ")", ";", "}", "catch", "(", "Error", "e", ")", "{", "synchronized", "(", "this", ")", "{", "this", ".", "processingThread", "=", "null", ";", "this", ".", "caughtException", "=", "e", ";", "}", "return", ";", "}", "catch", "(", "RuntimeException", "e", ")", "{", "synchronized", "(", "this", ")", "{", "this", ".", "processingThread", "=", "null", ";", "this", ".", "caughtException", "=", "e", ";", "}", "return", ";", "}", "}", "}", "public", "void", "shutdown", "(", ")", "{", "try", "{", "Thread", "t", "=", "null", ";", "synchronized", "(", "this", ")", "{", "if", "(", "this", ".", "processingThread", "!=", "null", ")", "{", "t", "=", "this", ".", "processingThread", ";", "this", ".", "processingThread", "=", "null", ";", "notifyAll", "(", ")", ";", "}", "}", "if", "(", "t", "!=", "null", ")", "t", ".", "join", "(", "250", ")", ";", "}", "catch", "(", "InterruptedException", "ignored", ")", "{", "}", "}", "}", "</s>" ]
3,327
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ";", "import", "java", ".", "lang", ".", "reflect", ".", "InvocationTargetException", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ".", "ICompilationUnit", ";", "public", "class", "ReadManager", "implements", "Runnable", "{", "ICompilationUnit", "[", "]", "units", ";", "int", "nextFileToRead", ";", "ICompilationUnit", "[", "]", "filesRead", ";", "char", "[", "]", "[", "]", "contentsRead", ";", "int", "readyToReadPosition", ";", "int", "nextAvailablePosition", ";", "Thread", "[", "]", "readingThreads", ";", "char", "[", "]", "readInProcessMarker", "=", "new", "char", "[", "0", "]", ";", "int", "sleepingThreadCount", ";", "private", "Throwable", "caughtException", ";", "static", "final", "int", "START_CUSHION", "=", "5", ";", "public", "static", "final", "int", "THRESHOLD", "=", "10", ";", "static", "final", "int", "CACHE_SIZE", "=", "15", ";", "public", "ReadManager", "(", "ICompilationUnit", "[", "]", "files", ",", "int", "length", ")", "{", "int", "threadCount", "=", "0", ";", "try", "{", "Class", "runtime", "=", "Class", ".", "forName", "(", "\"\"", ")", ";", "java", ".", "lang", ".", "reflect", ".", "Method", "m", "=", "runtime", ".", "getDeclaredMethod", "(", "\"\"", ",", "new", "Class", "[", "0", "]", ")", ";", "if", "(", "m", "!=", "null", ")", "{", "Integer", "result", "=", "(", "Integer", ")", "m", ".", "invoke", "(", "Runtime", ".", "getRuntime", "(", ")", ",", "null", ")", ";", "threadCount", "=", "result", ".", "intValue", "(", ")", "+", "1", ";", "if", "(", "threadCount", "<", "2", ")", "threadCount", "=", "0", ";", "else", "if", "(", "threadCount", ">", "CACHE_SIZE", ")", "threadCount", "=", "CACHE_SIZE", ";", "}", "}", "catch", "(", "IllegalAccessException", "ignored", ")", "{", "}", "catch", "(", "ClassNotFoundException", "e", ")", "{", "}", "catch", "(", "SecurityException", "e", ")", "{", "}", "catch", "(", "NoSuchMethodException", "e", ")", "{", "}", "catch", "(", "IllegalArgumentException", "e", ")", "{", "}", "catch", "(", "InvocationTargetException", "e", ")", "{", "}", "if", "(", "threadCount", ">", "0", ")", "{", "synchronized", "(", "this", ")", "{", "this", ".", "units", "=", "new", "ICompilationUnit", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "files", ",", "0", ",", "this", ".", "units", ",", "0", ",", "length", ")", ";", "this", ".", "nextFileToRead", "=", "START_CUSHION", ";", "this", ".", "filesRead", "=", "new", "ICompilationUnit", "[", "CACHE_SIZE", "]", ";", "this", ".", "contentsRead", "=", "new", "char", "[", "CACHE_SIZE", "]", "[", "]", ";", "this", ".", "readyToReadPosition", "=", "0", ";", "this", ".", "nextAvailablePosition", "=", "0", ";", "this", ".", "sleepingThreadCount", "=", "0", ";", "this", ".", "readingThreads", "=", "new", "Thread", "[", "threadCount", "]", ";", "for", "(", "int", "i", "=", "threadCount", ";", "--", "i", ">=", "0", ";", ")", "{", "this", ".", "readingThreads", "[", "i", "]", "=", "new", "Thread", "(", "this", ",", "\"\"", ")", ";", "this", ".", "readingThreads", "[", "i", "]", ".", "setDaemon", "(", "true", ")", ";", "this", ".", "readingThreads", "[", "i", "]", ".", "start", "(", ")", ";", "}", "}", "}", "}", "public", "char", "[", "]", "getContents", "(", "ICompilationUnit", "unit", ")", "throws", "Error", "{", "if", "(", "this", ".", "readingThreads", "==", "null", "||", "this", ".", "units", ".", "length", "==", "0", ")", "{", "if", "(", "this", ".", "caughtException", "!=", "null", ")", "{", "if", "(", "this", ".", "caughtException", "instanceof", "Error", ")", "throw", "(", "Error", ")", "this", ".", "caughtException", ";", "throw", "(", "RuntimeException", ")", "this", ".", "caughtException", ";", "}", "return", "unit", ".", "getContents", "(", ")", ";", "}", "boolean", "yield", "=", "false", ";", "char", "[", "]", "result", "=", "null", ";", "synchronized", "(", "this", ")", "{", "if", "(", "unit", "==", "this", ".", "filesRead", "[", "this", ".", "readyToReadPosition", "]", ")", "{", "result", "=", "this", ".", "contentsRead", "[", "this", ".", "readyToReadPosition", "]", ";", "while", "(", "result", "==", "this", ".", "readInProcessMarker", "||", "result", "==", "null", ")", "{", "this", ".", "contentsRead", "[", "this", ".", "readyToReadPosition", "]", "=", "null", ";", "try", "{", "wait", "(", "250", ")", ";", "}", "catch", "(", "InterruptedException", "ignore", ")", "{", "}", "if", "(", "this", ".", "caughtException", "!=", "null", ")", "{", "if", "(", "this", ".", "caughtException", "instanceof", "Error", ")", "throw", "(", "Error", ")", "this", ".", "caughtException", ";", "throw", "(", "RuntimeException", ")", "this", ".", "caughtException", ";", "}", "result", "=", "this", ".", "contentsRead", "[", "this", ".", "readyToReadPosition", "]", ";", "}", "this", ".", "filesRead", "[", "this", ".", "readyToReadPosition", "]", "=", "null", ";", "this", ".", "contentsRead", "[", "this", ".", "readyToReadPosition", "]", "=", "null", ";", "if", "(", "++", "this", ".", "readyToReadPosition", ">=", "this", ".", "contentsRead", ".", "length", ")", "this", ".", "readyToReadPosition", "=", "0", ";", "if", "(", "this", ".", "sleepingThreadCount", ">", "0", ")", "{", "notify", "(", ")", ";", "yield", "=", "this", ".", "sleepingThreadCount", "==", "this", ".", "readingThreads", ".", "length", ";", "}", "}", "else", "{", "int", "unitIndex", "=", "0", ";", "for", "(", "int", "l", "=", "this", ".", "units", ".", "length", ";", "unitIndex", "<", "l", ";", "unitIndex", "++", ")", "if", "(", "this", ".", "units", "[", "unitIndex", "]", "==", "unit", ")", "break", ";", "if", "(", "unitIndex", "==", "this", ".", "units", ".", "length", ")", "{", "this", ".", "units", "=", "new", "ICompilationUnit", "[", "0", "]", ";", "}", "else", "if", "(", "unitIndex", ">=", "this", ".", "nextFileToRead", ")", "{", "this", ".", "nextFileToRead", "=", "unitIndex", "+", "START_CUSHION", ";", "this", ".", "readyToReadPosition", "=", "0", ";", "this", ".", "nextAvailablePosition", "=", "0", ";", "this", ".", "filesRead", "=", "new", "ICompilationUnit", "[", "CACHE_SIZE", "]", ";", "this", ".", "contentsRead", "=", "new", "char", "[", "CACHE_SIZE", "]", "[", "]", ";", "notifyAll", "(", ")", ";", "}", "}", "}", "if", "(", "yield", ")", "Thread", ".", "yield", "(", ")", ";", "if", "(", "result", "!=", "null", ")", "return", "result", ";", "return", "unit", ".", "getContents", "(", ")", ";", "}", "public", "void", "run", "(", ")", "{", "try", "{", "while", "(", "this", ".", "readingThreads", "!=", "null", "&&", "this", ".", "nextFileToRead", "<", "this", ".", "units", ".", "length", ")", "{", "ICompilationUnit", "unit", "=", "null", ";", "int", "position", "=", "-", "1", ";", "synchronized", "(", "this", ")", "{", "if", "(", "this", ".", "readingThreads", "==", "null", ")", "return", ";", "while", "(", "this", ".", "filesRead", "[", "this", ".", "nextAvailablePosition", "]", "!=", "null", ")", "{", "this", ".", "sleepingThreadCount", "++", ";", "try", "{", "wait", "(", "250", ")", ";", "}", "catch", "(", "InterruptedException", "e", ")", "{", "}", "this", ".", "sleepingThreadCount", "--", ";", "if", "(", "this", ".", "readingThreads", "==", "null", ")", "return", ";", "}", "if", "(", "this", ".", "nextFileToRead", ">=", "this", ".", "units", ".", "length", ")", "return", ";", "unit", "=", "this", ".", "units", "[", "this", ".", "nextFileToRead", "++", "]", ";", "position", "=", "this", ".", "nextAvailablePosition", ";", "if", "(", "++", "this", ".", "nextAvailablePosition", ">=", "this", ".", "contentsRead", ".", "length", ")", "this", ".", "nextAvailablePosition", "=", "0", ";", "this", ".", "filesRead", "[", "position", "]", "=", "unit", ";", "this", ".", "contentsRead", "[", "position", "]", "=", "this", ".", "readInProcessMarker", ";", "}", "char", "[", "]", "result", "=", "unit", ".", "getContents", "(", ")", ";", "synchronized", "(", "this", ")", "{", "if", "(", "this", ".", "filesRead", "[", "position", "]", "==", "unit", ")", "{", "if", "(", "this", ".", "contentsRead", "[", "position", "]", "==", "null", ")", "notifyAll", "(", ")", ";", "this", ".", "contentsRead", "[", "position", "]", "=", "result", ";", "}", "}", "}", "}", "catch", "(", "Error", "e", ")", "{", "synchronized", "(", "this", ")", "{", "this", ".", "caughtException", "=", "e", ";", "shutdown", "(", ")", ";", "}", "return", ";", "}", "catch", "(", "RuntimeException", "e", ")", "{", "synchronized", "(", "this", ")", "{", "this", ".", "caughtException", "=", "e", ";", "shutdown", "(", ")", ";", "}", "return", ";", "}", "}", "public", "synchronized", "void", "shutdown", "(", ")", "{", "this", ".", "readingThreads", "=", "null", ";", "notifyAll", "(", ")", ";", "}", "}", "</s>" ]
3,328
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "import", "java", ".", "util", ".", "HashSet", ";", "import", "java", ".", "util", ".", "Set", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "AbstractMethodDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Annotation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Argument", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Block", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ConstructorDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ExplicitConstructorCall", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "FieldDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "LocalDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "MemberValuePair", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "MethodDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Statement", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "SuperReference", ";", "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", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "class", "RecoveredMethod", "extends", "RecoveredElement", "implements", "TerminalTokens", "{", "public", "AbstractMethodDeclaration", "methodDeclaration", ";", "public", "RecoveredAnnotation", "[", "]", "annotations", ";", "public", "int", "annotationCount", ";", "public", "int", "modifiers", ";", "public", "int", "modifiersStart", ";", "public", "RecoveredType", "[", "]", "localTypes", ";", "public", "int", "localTypeCount", ";", "public", "RecoveredBlock", "methodBody", ";", "public", "boolean", "discardBody", "=", "true", ";", "int", "pendingModifiers", ";", "int", "pendingModifersSourceStart", "=", "-", "1", ";", "RecoveredAnnotation", "[", "]", "pendingAnnotations", ";", "int", "pendingAnnotationCount", ";", "public", "RecoveredMethod", "(", "AbstractMethodDeclaration", "methodDeclaration", ",", "RecoveredElement", "parent", ",", "int", "bracketBalance", ",", "Parser", "parser", ")", "{", "super", "(", "parent", ",", "bracketBalance", ",", "parser", ")", ";", "this", ".", "methodDeclaration", "=", "methodDeclaration", ";", "this", ".", "foundOpeningBrace", "=", "!", "bodyStartsAtHeaderEnd", "(", ")", ";", "if", "(", "this", ".", "foundOpeningBrace", ")", "{", "this", ".", "bracketBalance", "++", ";", "}", "}", "public", "RecoveredElement", "add", "(", "Block", "nestedBlockDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "if", "(", "this", ".", "methodDeclaration", ".", "declarationSourceEnd", ">", "0", "&&", "nestedBlockDeclaration", ".", "sourceStart", ">", "this", ".", "methodDeclaration", ".", "declarationSourceEnd", ")", "{", "resetPendingModifiers", "(", ")", ";", "if", "(", "this", ".", "parent", "==", "null", ")", "{", "return", "this", ";", "}", "else", "{", "return", "this", ".", "parent", ".", "add", "(", "nestedBlockDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "}", "if", "(", "!", "this", ".", "foundOpeningBrace", ")", "{", "this", ".", "foundOpeningBrace", "=", "true", ";", "this", ".", "bracketBalance", "++", ";", "}", "this", ".", "methodBody", "=", "new", "RecoveredBlock", "(", "nestedBlockDeclaration", ",", "this", ",", "bracketBalanceValue", ")", ";", "if", "(", "nestedBlockDeclaration", ".", "sourceEnd", "==", "0", ")", "return", "this", ".", "methodBody", ";", "return", "this", ";", "}", "public", "RecoveredElement", "add", "(", "FieldDeclaration", "fieldDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "resetPendingModifiers", "(", ")", ";", "char", "[", "]", "[", "]", "fieldTypeName", ";", "if", "(", "(", "fieldDeclaration", ".", "modifiers", "&", "~", "ClassFileConstants", ".", "AccFinal", ")", "!=", "0", "||", "(", "fieldDeclaration", ".", "type", "==", "null", ")", "||", "(", "(", "fieldTypeName", "=", "fieldDeclaration", ".", "type", ".", "getTypeName", "(", ")", ")", ".", "length", "==", "1", "&&", "CharOperation", ".", "equals", "(", "fieldTypeName", "[", "0", "]", ",", "TypeBinding", ".", "VOID", ".", "sourceName", "(", ")", ")", ")", ")", "{", "if", "(", "this", ".", "parent", "==", "null", ")", "{", "return", "this", ";", "}", "else", "{", "this", ".", "updateSourceEndIfNecessary", "(", "previousAvailableLineEnd", "(", "fieldDeclaration", ".", "declarationSourceStart", "-", "1", ")", ")", ";", "return", "this", ".", "parent", ".", "add", "(", "fieldDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "}", "if", "(", "this", ".", "methodDeclaration", ".", "declarationSourceEnd", ">", "0", "&&", "fieldDeclaration", ".", "declarationSourceStart", ">", "this", ".", "methodDeclaration", ".", "declarationSourceEnd", ")", "{", "if", "(", "this", ".", "parent", "==", "null", ")", "{", "return", "this", ";", "}", "else", "{", "return", "this", ".", "parent", ".", "add", "(", "fieldDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "}", "if", "(", "!", "this", ".", "foundOpeningBrace", ")", "{", "this", ".", "foundOpeningBrace", "=", "true", ";", "this", ".", "bracketBalance", "++", ";", "}", "return", "this", ";", "}", "public", "RecoveredElement", "add", "(", "LocalDeclaration", "localDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "resetPendingModifiers", "(", ")", ";", "if", "(", "this", ".", "methodDeclaration", ".", "declarationSourceEnd", "!=", "0", "&&", "localDeclaration", ".", "declarationSourceStart", ">", "this", ".", "methodDeclaration", ".", "declarationSourceEnd", ")", "{", "if", "(", "this", ".", "parent", "==", "null", ")", "{", "return", "this", ";", "}", "else", "{", "return", "this", ".", "parent", ".", "add", "(", "localDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "}", "if", "(", "this", ".", "methodBody", "==", "null", ")", "{", "Block", "block", "=", "new", "Block", "(", "0", ")", ";", "block", ".", "sourceStart", "=", "this", ".", "methodDeclaration", ".", "bodyStart", ";", "RecoveredElement", "currentBlock", "=", "this", ".", "add", "(", "block", ",", "1", ")", ";", "if", "(", "this", ".", "bracketBalance", ">", "0", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "bracketBalance", "-", "1", ";", "i", "++", ")", "{", "currentBlock", "=", "currentBlock", ".", "add", "(", "new", "Block", "(", "0", ")", ",", "1", ")", ";", "}", "this", ".", "bracketBalance", "=", "1", ";", "}", "return", "currentBlock", ".", "add", "(", "localDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "return", "this", ".", "methodBody", ".", "add", "(", "localDeclaration", ",", "bracketBalanceValue", ",", "true", ")", ";", "}", "public", "RecoveredElement", "add", "(", "Statement", "statement", ",", "int", "bracketBalanceValue", ")", "{", "resetPendingModifiers", "(", ")", ";", "if", "(", "this", ".", "methodDeclaration", ".", "declarationSourceEnd", "!=", "0", "&&", "statement", ".", "sourceStart", ">", "this", ".", "methodDeclaration", ".", "declarationSourceEnd", ")", "{", "if", "(", "this", ".", "parent", "==", "null", ")", "{", "return", "this", ";", "}", "else", "{", "return", "this", ".", "parent", ".", "add", "(", "statement", ",", "bracketBalanceValue", ")", ";", "}", "}", "if", "(", "this", ".", "methodBody", "==", "null", ")", "{", "Block", "block", "=", "new", "Block", "(", "0", ")", ";", "block", ".", "sourceStart", "=", "this", ".", "methodDeclaration", ".", "bodyStart", ";", "RecoveredElement", "currentBlock", "=", "this", ".", "add", "(", "block", ",", "1", ")", ";", "if", "(", "this", ".", "bracketBalance", ">", "0", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "bracketBalance", "-", "1", ";", "i", "++", ")", "{", "currentBlock", "=", "currentBlock", ".", "add", "(", "new", "Block", "(", "0", ")", ",", "1", ")", ";", "}", "this", ".", "bracketBalance", "=", "1", ";", "}", "return", "currentBlock", ".", "add", "(", "statement", ",", "bracketBalanceValue", ")", ";", "}", "return", "this", ".", "methodBody", ".", "add", "(", "statement", ",", "bracketBalanceValue", ",", "true", ")", ";", "}", "public", "RecoveredElement", "add", "(", "TypeDeclaration", "typeDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "if", "(", "this", ".", "methodDeclaration", ".", "declarationSourceEnd", "!=", "0", "&&", "typeDeclaration", ".", "declarationSourceStart", ">", "this", ".", "methodDeclaration", ".", "declarationSourceEnd", ")", "{", "if", "(", "this", ".", "parent", "==", "null", ")", "{", "return", "this", ";", "}", "return", "this", ".", "parent", ".", "add", "(", "typeDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "if", "(", "(", "typeDeclaration", ".", "bits", "&", "ASTNode", ".", "IsLocalType", ")", "!=", "0", "||", "parser", "(", ")", ".", "methodRecoveryActivated", "||", "parser", "(", ")", ".", "statementRecoveryActivated", ")", "{", "if", "(", "this", ".", "methodBody", "==", "null", ")", "{", "Block", "block", "=", "new", "Block", "(", "0", ")", ";", "block", ".", "sourceStart", "=", "this", ".", "methodDeclaration", ".", "bodyStart", ";", "this", ".", "add", "(", "block", ",", "1", ")", ";", "}", "this", ".", "methodBody", ".", "attachPendingModifiers", "(", "this", ".", "pendingAnnotations", ",", "this", ".", "pendingAnnotationCount", ",", "this", ".", "pendingModifiers", ",", "this", ".", "pendingModifersSourceStart", ")", ";", "resetPendingModifiers", "(", ")", ";", "return", "this", ".", "methodBody", ".", "add", "(", "typeDeclaration", ",", "bracketBalanceValue", ",", "true", ")", ";", "}", "switch", "(", "TypeDeclaration", ".", "kind", "(", "typeDeclaration", ".", "modifiers", ")", ")", "{", "case", "TypeDeclaration", ".", "INTERFACE_DECL", ":", "case", "TypeDeclaration", ".", "ANNOTATION_TYPE_DECL", ":", "resetPendingModifiers", "(", ")", ";", "this", ".", "updateSourceEndIfNecessary", "(", "previousAvailableLineEnd", "(", "typeDeclaration", ".", "declarationSourceStart", "-", "1", ")", ")", ";", "if", "(", "this", ".", "parent", "==", "null", ")", "{", "return", "this", ";", "}", "return", "this", ".", "parent", ".", "add", "(", "typeDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "if", "(", "this", ".", "localTypes", "==", "null", ")", "{", "this", ".", "localTypes", "=", "new", "RecoveredType", "[", "5", "]", ";", "this", ".", "localTypeCount", "=", "0", ";", "}", "else", "{", "if", "(", "this", ".", "localTypeCount", "==", "this", ".", "localTypes", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "localTypes", ",", "0", ",", "(", "this", ".", "localTypes", "=", "new", "RecoveredType", "[", "2", "*", "this", ".", "localTypeCount", "]", ")", ",", "0", ",", "this", ".", "localTypeCount", ")", ";", "}", "}", "RecoveredType", "element", "=", "new", "RecoveredType", "(", "typeDeclaration", ",", "this", ",", "bracketBalanceValue", ")", ";", "this", ".", "localTypes", "[", "this", ".", "localTypeCount", "++", "]", "=", "element", ";", "if", "(", "this", ".", "pendingAnnotationCount", ">", "0", ")", "{", "element", ".", "attach", "(", "this", ".", "pendingAnnotations", ",", "this", ".", "pendingAnnotationCount", ",", "this", ".", "pendingModifiers", ",", "this", ".", "pendingModifersSourceStart", ")", ";", "}", "resetPendingModifiers", "(", ")", ";", "if", "(", "!", "this", ".", "foundOpeningBrace", ")", "{", "this", ".", "foundOpeningBrace", "=", "true", ";", "this", ".", "bracketBalance", "++", ";", "}", "return", "element", ";", "}", "public", "boolean", "bodyStartsAtHeaderEnd", "(", ")", "{", "return", "this", ".", "methodDeclaration", ".", "bodyStart", "==", "this", ".", "methodDeclaration", ".", "sourceEnd", "+", "1", ";", "}", "public", "ASTNode", "parseTree", "(", ")", "{", "return", "this", ".", "methodDeclaration", ";", "}", "public", "void", "resetPendingModifiers", "(", ")", "{", "this", ".", "pendingAnnotations", "=", "null", ";", "this", ".", "pendingAnnotationCount", "=", "0", ";", "this", ".", "pendingModifiers", "=", "0", ";", "this", ".", "pendingModifersSourceStart", "=", "-", "1", ";", "}", "public", "int", "sourceEnd", "(", ")", "{", "return", "this", ".", "methodDeclaration", ".", "declarationSourceEnd", ";", "}", "public", "String", "toString", "(", "int", "tab", ")", "{", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "tabString", "(", "tab", ")", ")", ";", "result", ".", "append", "(", "\"\"", ")", ";", "this", ".", "methodDeclaration", ".", "print", "(", "tab", "+", "1", ",", "result", ")", ";", "if", "(", "this", ".", "annotations", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "annotationCount", ";", "i", "++", ")", "{", "result", ".", "append", "(", "\"n\"", ")", ";", "result", ".", "append", "(", "this", ".", "annotations", "[", "i", "]", ".", "toString", "(", "tab", "+", "1", ")", ")", ";", "}", "}", "if", "(", "this", ".", "localTypes", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "localTypeCount", ";", "i", "++", ")", "{", "result", ".", "append", "(", "\"n\"", ")", ";", "result", ".", "append", "(", "this", ".", "localTypes", "[", "i", "]", ".", "toString", "(", "tab", "+", "1", ")", ")", ";", "}", "}", "if", "(", "this", ".", "methodBody", "!=", "null", ")", "{", "result", ".", "append", "(", "\"n\"", ")", ";", "result", ".", "append", "(", "this", ".", "methodBody", ".", "toString", "(", "tab", "+", "1", ")", ")", ";", "}", "return", "result", ".", "toString", "(", ")", ";", "}", "public", "void", "updateBodyStart", "(", "int", "bodyStart", ")", "{", "this", ".", "foundOpeningBrace", "=", "true", ";", "this", ".", "methodDeclaration", ".", "bodyStart", "=", "bodyStart", ";", "}", "public", "AbstractMethodDeclaration", "updatedMethodDeclaration", "(", "int", "depth", ",", "Set", "knownTypes", ")", "{", "if", "(", "this", ".", "modifiers", "!=", "0", ")", "{", "this", ".", "methodDeclaration", ".", "modifiers", "|=", "this", ".", "modifiers", ";", "if", "(", "this", ".", "modifiersStart", "<", "this", ".", "methodDeclaration", ".", "declarationSourceStart", ")", "{", "this", ".", "methodDeclaration", ".", "declarationSourceStart", "=", "this", ".", "modifiersStart", ";", "}", "}", "if", "(", "this", ".", "annotationCount", ">", "0", ")", "{", "int", "existingCount", "=", "this", ".", "methodDeclaration", ".", "annotations", "==", "null", "?", "0", ":", "this", ".", "methodDeclaration", ".", "annotations", ".", "length", ";", "Annotation", "[", "]", "annotationReferences", "=", "new", "Annotation", "[", "existingCount", "+", "this", ".", "annotationCount", "]", ";", "if", "(", "existingCount", ">", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "methodDeclaration", ".", "annotations", ",", "0", ",", "annotationReferences", ",", "this", ".", "annotationCount", ",", "existingCount", ")", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "annotationCount", ";", "i", "++", ")", "{", "annotationReferences", "[", "i", "]", "=", "this", ".", "annotations", "[", "i", "]", ".", "updatedAnnotationReference", "(", ")", ";", "}", "this", ".", "methodDeclaration", ".", "annotations", "=", "annotationReferences", ";", "int", "start", "=", "this", ".", "annotations", "[", "0", "]", ".", "annotation", ".", "sourceStart", ";", "if", "(", "start", "<", "this", ".", "methodDeclaration", ".", "declarationSourceStart", ")", "{", "this", ".", "methodDeclaration", ".", "declarationSourceStart", "=", "start", ";", "}", "}", "if", "(", "this", ".", "methodBody", "!=", "null", ")", "{", "Block", "block", "=", "this", ".", "methodBody", ".", "updatedBlock", "(", "depth", ",", "knownTypes", ")", ";", "if", "(", "block", "!=", "null", ")", "{", "this", ".", "methodDeclaration", ".", "statements", "=", "block", ".", "statements", ";", "if", "(", "this", ".", "methodDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "{", "this", ".", "methodDeclaration", ".", "declarationSourceEnd", "=", "block", ".", "sourceEnd", ";", "this", ".", "methodDeclaration", ".", "bodyEnd", "=", "block", ".", "sourceEnd", ";", "}", "if", "(", "this", ".", "methodDeclaration", ".", "isConstructor", "(", ")", ")", "{", "ConstructorDeclaration", "constructor", "=", "(", "ConstructorDeclaration", ")", "this", ".", "methodDeclaration", ";", "if", "(", "this", ".", "methodDeclaration", ".", "statements", "!=", "null", "&&", "this", ".", "methodDeclaration", ".", "statements", "[", "0", "]", "instanceof", "ExplicitConstructorCall", ")", "{", "constructor", ".", "constructorCall", "=", "(", "ExplicitConstructorCall", ")", "this", ".", "methodDeclaration", ".", "statements", "[", "0", "]", ";", "int", "length", "=", "this", ".", "methodDeclaration", ".", "statements", ".", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "methodDeclaration", ".", "statements", ",", "1", ",", "(", "this", ".", "methodDeclaration", ".", "statements", "=", "new", "Statement", "[", "length", "-", "1", "]", ")", ",", "0", ",", "length", "-", "1", ")", ";", "}", "if", "(", "constructor", ".", "constructorCall", "==", "null", ")", "{", "constructor", ".", "constructorCall", "=", "SuperReference", ".", "implicitSuperConstructorCall", "(", ")", ";", "}", "}", "}", "}", "else", "{", "if", "(", "this", ".", "methodDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "{", "if", "(", "this", ".", "methodDeclaration", ".", "sourceEnd", "+", "1", "==", "this", ".", "methodDeclaration", ".", "bodyStart", ")", "{", "this", ".", "methodDeclaration", ".", "declarationSourceEnd", "=", "this", ".", "methodDeclaration", ".", "sourceEnd", ";", "this", ".", "methodDeclaration", ".", "bodyStart", "=", "this", ".", "methodDeclaration", ".", "sourceEnd", ";", "this", ".", "methodDeclaration", ".", "bodyEnd", "=", "this", ".", "methodDeclaration", ".", "sourceEnd", ";", "}", "else", "{", "this", ".", "methodDeclaration", ".", "declarationSourceEnd", "=", "this", ".", "methodDeclaration", ".", "bodyStart", ";", "this", ".", "methodDeclaration", ".", "bodyEnd", "=", "this", ".", "methodDeclaration", ".", "bodyStart", ";", "}", "}", "}", "if", "(", "this", ".", "localTypeCount", ">", "0", ")", "this", ".", "methodDeclaration", ".", "bits", "|=", "ASTNode", ".", "HasLocalType", ";", "return", "this", ".", "methodDeclaration", ";", "}", "public", "void", "updateFromParserState", "(", ")", "{", "if", "(", "bodyStartsAtHeaderEnd", "(", ")", "&&", "this", ".", "parent", "!=", "null", ")", "{", "Parser", "parser", "=", "parser", "(", ")", ";", "if", "(", "parser", ".", "listLength", ">", "0", "&&", "parser", ".", "astLengthPtr", ">", "0", ")", "{", "if", "(", "this", ".", "methodDeclaration", ".", "sourceEnd", "==", "parser", ".", "rParenPos", ")", "{", "int", "length", "=", "parser", ".", "astLengthStack", "[", "parser", ".", "astLengthPtr", "]", ";", "int", "astPtr", "=", "parser", ".", "astPtr", "-", "length", ";", "boolean", "canConsume", "=", "astPtr", ">=", "0", ";", "if", "(", "canConsume", ")", "{", "if", "(", "(", "!", "(", "parser", ".", "astStack", "[", "astPtr", "]", "instanceof", "AbstractMethodDeclaration", ")", ")", ")", "{", "canConsume", "=", "false", ";", "}", "for", "(", "int", "i", "=", "1", ",", "max", "=", "length", "+", "1", ";", "i", "<", "max", ";", "i", "++", ")", "{", "if", "(", "!", "(", "parser", ".", "astStack", "[", "astPtr", "+", "i", "]", "instanceof", "TypeReference", ")", ")", "{", "canConsume", "=", "false", ";", "}", "}", "}", "if", "(", "canConsume", ")", "{", "parser", ".", "consumeMethodHeaderThrowsClause", "(", ")", ";", "}", "else", "{", "parser", ".", "listLength", "=", "0", ";", "}", "}", "else", "{", "if", "(", "parser", ".", "currentToken", "==", "TokenNameLPAREN", "||", "parser", ".", "currentToken", "==", "TokenNameSEMICOLON", ")", "{", "parser", ".", "astLengthStack", "[", "parser", ".", "astLengthPtr", "]", "--", ";", "parser", ".", "astPtr", "--", ";", "parser", ".", "listLength", "--", ";", "parser", ".", "currentToken", "=", "0", ";", "}", "int", "argLength", "=", "parser", ".", "astLengthStack", "[", "parser", ".", "astLengthPtr", "]", ";", "int", "argStart", "=", "parser", ".", "astPtr", "-", "argLength", "+", "1", ";", "boolean", "needUpdateRParenPos", "=", "parser", ".", "rParenPos", "<", "parser", ".", "lParenPos", ";", "MemberValuePair", "[", "]", "memberValuePairs", "=", "null", ";", "while", "(", "argLength", ">", "0", "&&", "parser", ".", "astStack", "[", "parser", ".", "astPtr", "]", "instanceof", "MemberValuePair", ")", "{", "System", ".", "arraycopy", "(", "parser", ".", "astStack", ",", "argStart", ",", "memberValuePairs", "=", "new", "MemberValuePair", "[", "argLength", "]", ",", "0", ",", "argLength", ")", ";", "parser", ".", "astLengthPtr", "--", ";", "parser", ".", "astPtr", "-=", "argLength", ";", "argLength", "=", "parser", ".", "astLengthStack", "[", "parser", ".", "astLengthPtr", "]", ";", "argStart", "=", "parser", ".", "astPtr", "-", "argLength", "+", "1", ";", "needUpdateRParenPos", "=", "true", ";", "}", "int", "count", ";", "for", "(", "count", "=", "0", ";", "count", "<", "argLength", ";", "count", "++", ")", "{", "ASTNode", "aNode", "=", "parser", ".", "astStack", "[", "argStart", "+", "count", "]", ";", "if", "(", "aNode", "instanceof", "Argument", ")", "{", "Argument", "argument", "=", "(", "Argument", ")", "aNode", ";", "char", "[", "]", "[", "]", "argTypeName", "=", "argument", ".", "type", ".", "getTypeName", "(", ")", ";", "if", "(", "(", "argument", ".", "modifiers", "&", "~", "ClassFileConstants", ".", "AccFinal", ")", "!=", "0", "||", "(", "argTypeName", ".", "length", "==", "1", "&&", "CharOperation", ".", "equals", "(", "argTypeName", "[", "0", "]", ",", "TypeBinding", ".", "VOID", ".", "sourceName", "(", ")", ")", ")", ")", "{", "parser", ".", "astLengthStack", "[", "parser", ".", "astLengthPtr", "]", "=", "count", ";", "parser", ".", "astPtr", "=", "argStart", "+", "count", "-", "1", ";", "parser", ".", "listLength", "=", "count", ";", "parser", ".", "currentToken", "=", "0", ";", "break", ";", "}", "if", "(", "needUpdateRParenPos", ")", "parser", ".", "rParenPos", "=", "argument", ".", "sourceEnd", "+", "1", ";", "}", "else", "{", "parser", ".", "astLengthStack", "[", "parser", ".", "astLengthPtr", "]", "=", "count", ";", "parser", ".", "astPtr", "=", "argStart", "+", "count", "-", "1", ";", "parser", ".", "listLength", "=", "count", ";", "parser", ".", "currentToken", "=", "0", ";", "break", ";", "}", "}", "if", "(", "parser", ".", "listLength", ">", "0", "&&", "parser", ".", "astLengthPtr", ">", "0", ")", "{", "int", "length", "=", "parser", ".", "astLengthStack", "[", "parser", ".", "astLengthPtr", "]", ";", "int", "astPtr", "=", "parser", ".", "astPtr", "-", "length", ";", "boolean", "canConsume", "=", "astPtr", ">=", "0", ";", "if", "(", "canConsume", ")", "{", "if", "(", "(", "!", "(", "parser", ".", "astStack", "[", "astPtr", "]", "instanceof", "AbstractMethodDeclaration", ")", ")", ")", "{", "canConsume", "=", "false", ";", "}", "for", "(", "int", "i", "=", "1", ",", "max", "=", "length", "+", "1", ";", "i", "<", "max", ";", "i", "++", ")", "{", "if", "(", "!", "(", "parser", ".", "astStack", "[", "astPtr", "+", "i", "]", "instanceof", "Argument", ")", ")", "{", "canConsume", "=", "false", ";", "}", "}", "}", "if", "(", "canConsume", ")", "{", "parser", ".", "consumeMethodHeaderRightParen", "(", ")", ";", "if", "(", "parser", ".", "currentElement", "==", "this", ")", "{", "this", ".", "methodDeclaration", ".", "sourceEnd", "=", "this", ".", "methodDeclaration", ".", "arguments", "[", "this", ".", "methodDeclaration", ".", "arguments", ".", "length", "-", "1", "]", ".", "sourceEnd", ";", "this", ".", "methodDeclaration", ".", "bodyStart", "=", "this", ".", "methodDeclaration", ".", "sourceEnd", "+", "1", ";", "parser", ".", "lastCheckPoint", "=", "this", ".", "methodDeclaration", ".", "bodyStart", ";", "}", "}", "}", "if", "(", "memberValuePairs", "!=", "null", ")", "{", "System", ".", "arraycopy", "(", "memberValuePairs", ",", "0", ",", "parser", ".", "astStack", ",", "parser", ".", "astPtr", "+", "1", ",", "memberValuePairs", ".", "length", ")", ";", "parser", ".", "astPtr", "+=", "memberValuePairs", ".", "length", ";", "parser", ".", "astLengthStack", "[", "++", "parser", ".", "astLengthPtr", "]", "=", "memberValuePairs", ".", "length", ";", "}", "}", "}", "}", "}", "public", "RecoveredElement", "updateOnClosingBrace", "(", "int", "braceStart", ",", "int", "braceEnd", ")", "{", "if", "(", "this", ".", "methodDeclaration", ".", "isAnnotationMethod", "(", ")", ")", "{", "this", ".", "updateSourceEndIfNecessary", "(", "braceStart", ",", "braceEnd", ")", ";", "if", "(", "!", "this", ".", "foundOpeningBrace", "&&", "this", ".", "parent", "!=", "null", ")", "{", "return", "this", ".", "parent", ".", "updateOnClosingBrace", "(", "braceStart", ",", "braceEnd", ")", ";", "}", "return", "this", ";", "}", "if", "(", "this", ".", "parent", "!=", "null", "&&", "this", ".", "parent", "instanceof", "RecoveredType", ")", "{", "int", "mods", "=", "(", "(", "RecoveredType", ")", "this", ".", "parent", ")", ".", "typeDeclaration", ".", "modifiers", ";", "if", "(", "TypeDeclaration", ".", "kind", "(", "mods", ")", "==", "TypeDeclaration", ".", "INTERFACE_DECL", ")", "{", "if", "(", "!", "this", ".", "foundOpeningBrace", ")", "{", "this", ".", "updateSourceEndIfNecessary", "(", "braceStart", "-", "1", ",", "braceStart", "-", "1", ")", ";", "return", "this", ".", "parent", ".", "updateOnClosingBrace", "(", "braceStart", ",", "braceEnd", ")", ";", "}", "}", "}", "return", "super", ".", "updateOnClosingBrace", "(", "braceStart", ",", "braceEnd", ")", ";", "}", "public", "RecoveredElement", "updateOnOpeningBrace", "(", "int", "braceStart", ",", "int", "braceEnd", ")", "{", "if", "(", "this", ".", "bracketBalance", "==", "0", ")", "{", "switch", "(", "parser", "(", ")", ".", "lastIgnoredToken", ")", "{", "case", "-", "1", ":", "case", "TokenNamethrows", ":", "break", ";", "default", ":", "this", ".", "foundOpeningBrace", "=", "true", ";", "this", ".", "bracketBalance", "=", "1", ";", "}", "}", "return", "super", ".", "updateOnOpeningBrace", "(", "braceStart", ",", "braceEnd", ")", ";", "}", "public", "void", "updateParseTree", "(", ")", "{", "updatedMethodDeclaration", "(", "0", ",", "new", "HashSet", "(", ")", ")", ";", "}", "public", "void", "updateSourceEndIfNecessary", "(", "int", "braceStart", ",", "int", "braceEnd", ")", "{", "if", "(", "this", ".", "methodDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "{", "if", "(", "parser", "(", ")", ".", "rBraceSuccessorStart", ">=", "braceEnd", ")", "{", "this", ".", "methodDeclaration", ".", "declarationSourceEnd", "=", "parser", "(", ")", ".", "rBraceEnd", ";", "this", ".", "methodDeclaration", ".", "bodyEnd", "=", "parser", "(", ")", ".", "rBraceStart", ";", "}", "else", "{", "this", ".", "methodDeclaration", ".", "declarationSourceEnd", "=", "braceEnd", ";", "this", ".", "methodDeclaration", ".", "bodyEnd", "=", "braceStart", "-", "1", ";", "}", "}", "}", "public", "RecoveredElement", "addAnnotationName", "(", "int", "identifierPtr", ",", "int", "identifierLengthPtr", ",", "int", "annotationStart", ",", "int", "bracketBalanceValue", ")", "{", "if", "(", "this", ".", "pendingAnnotations", "==", "null", ")", "{", "this", ".", "pendingAnnotations", "=", "new", "RecoveredAnnotation", "[", "5", "]", ";", "this", ".", "pendingAnnotationCount", "=", "0", ";", "}", "else", "{", "if", "(", "this", ".", "pendingAnnotationCount", "==", "this", ".", "pendingAnnotations", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "pendingAnnotations", ",", "0", ",", "(", "this", ".", "pendingAnnotations", "=", "new", "RecoveredAnnotation", "[", "2", "*", "this", ".", "pendingAnnotationCount", "]", ")", ",", "0", ",", "this", ".", "pendingAnnotationCount", ")", ";", "}", "}", "RecoveredAnnotation", "element", "=", "new", "RecoveredAnnotation", "(", "identifierPtr", ",", "identifierLengthPtr", ",", "annotationStart", ",", "this", ",", "bracketBalanceValue", ")", ";", "this", ".", "pendingAnnotations", "[", "this", ".", "pendingAnnotationCount", "++", "]", "=", "element", ";", "return", "element", ";", "}", "public", "void", "addModifier", "(", "int", "flag", ",", "int", "modifiersSourceStart", ")", "{", "this", ".", "pendingModifiers", "|=", "flag", ";", "if", "(", "this", ".", "pendingModifersSourceStart", "<", "0", ")", "{", "this", ".", "pendingModifersSourceStart", "=", "modifiersSourceStart", ";", "}", "}", "void", "attach", "(", "TypeParameter", "[", "]", "parameters", ",", "int", "startPos", ")", "{", "if", "(", "this", ".", "methodDeclaration", ".", "modifiers", "!=", "ClassFileConstants", ".", "AccDefault", ")", "return", ";", "int", "lastParameterEnd", "=", "parameters", "[", "parameters", ".", "length", "-", "1", "]", ".", "sourceEnd", ";", "Parser", "parser", "=", "parser", "(", ")", ";", "Scanner", "scanner", "=", "parser", ".", "scanner", ";", "if", "(", "Util", ".", "getLineNumber", "(", "this", ".", "methodDeclaration", ".", "declarationSourceStart", ",", "scanner", ".", "lineEnds", ",", "0", ",", "scanner", ".", "linePtr", ")", "!=", "Util", ".", "getLineNumber", "(", "lastParameterEnd", ",", "scanner", ".", "lineEnds", ",", "0", ",", "scanner", ".", "linePtr", ")", ")", "return", ";", "if", "(", "parser", ".", "modifiersSourceStart", ">", "lastParameterEnd", "&&", "parser", ".", "modifiersSourceStart", "<", "this", ".", "methodDeclaration", ".", "declarationSourceStart", ")", "return", ";", "if", "(", "this", ".", "methodDeclaration", "instanceof", "MethodDeclaration", ")", "{", "(", "(", "MethodDeclaration", ")", "this", ".", "methodDeclaration", ")", ".", "typeParameters", "=", "parameters", ";", "this", ".", "methodDeclaration", ".", "declarationSourceStart", "=", "startPos", ";", "}", "else", "if", "(", "this", ".", "methodDeclaration", "instanceof", "ConstructorDeclaration", ")", "{", "(", "(", "ConstructorDeclaration", ")", "this", ".", "methodDeclaration", ")", ".", "typeParameters", "=", "parameters", ";", "this", ".", "methodDeclaration", ".", "declarationSourceStart", "=", "startPos", ";", "}", "}", "public", "void", "attach", "(", "RecoveredAnnotation", "[", "]", "annots", ",", "int", "annotCount", ",", "int", "mods", ",", "int", "modsSourceStart", ")", "{", "if", "(", "annotCount", ">", "0", ")", "{", "Annotation", "[", "]", "existingAnnotations", "=", "this", ".", "methodDeclaration", ".", "annotations", ";", "if", "(", "existingAnnotations", "!=", "null", ")", "{", "this", ".", "annotations", "=", "new", "RecoveredAnnotation", "[", "annotCount", "]", ";", "this", ".", "annotationCount", "=", "0", ";", "next", ":", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotCount", ";", "i", "++", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "existingAnnotations", ".", "length", ";", "j", "++", ")", "{", "if", "(", "annots", "[", "i", "]", ".", "annotation", "==", "existingAnnotations", "[", "j", "]", ")", "continue", "next", ";", "}", "this", ".", "annotations", "[", "this", ".", "annotationCount", "++", "]", "=", "annots", "[", "i", "]", ";", "}", "}", "else", "{", "this", ".", "annotations", "=", "annots", ";", "this", ".", "annotationCount", "=", "annotCount", ";", "}", "}", "if", "(", "mods", "!=", "0", ")", "{", "this", ".", "modifiers", "=", "mods", ";", "this", ".", "modifiersStart", "=", "modsSourceStart", ";", "}", "}", "}", "</s>" ]
3,329
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "import", "java", ".", "util", ".", "HashSet", ";", "import", "java", ".", "util", ".", "Set", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "AbstractMethodDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Argument", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Block", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "FieldDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "LocalDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Statement", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "public", "class", "RecoveredBlock", "extends", "RecoveredStatement", "implements", "TerminalTokens", "{", "public", "Block", "blockDeclaration", ";", "public", "RecoveredStatement", "[", "]", "statements", ";", "public", "int", "statementCount", ";", "public", "boolean", "preserveContent", "=", "false", ";", "public", "RecoveredLocalVariable", "pendingArgument", ";", "int", "pendingModifiers", ";", "int", "pendingModifersSourceStart", "=", "-", "1", ";", "RecoveredAnnotation", "[", "]", "pendingAnnotations", ";", "int", "pendingAnnotationCount", ";", "public", "RecoveredBlock", "(", "Block", "block", ",", "RecoveredElement", "parent", ",", "int", "bracketBalance", ")", "{", "super", "(", "block", ",", "parent", ",", "bracketBalance", ")", ";", "this", ".", "blockDeclaration", "=", "block", ";", "this", ".", "foundOpeningBrace", "=", "true", ";", "this", ".", "preserveContent", "=", "parser", "(", ")", ".", "methodRecoveryActivated", "||", "parser", "(", ")", ".", "statementRecoveryActivated", ";", "}", "public", "RecoveredElement", "add", "(", "AbstractMethodDeclaration", "methodDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "if", "(", "this", ".", "parent", "!=", "null", "&&", "this", ".", "parent", "instanceof", "RecoveredMethod", ")", "{", "RecoveredMethod", "enclosingRecoveredMethod", "=", "(", "RecoveredMethod", ")", "this", ".", "parent", ";", "if", "(", "enclosingRecoveredMethod", ".", "methodBody", "==", "this", "&&", "enclosingRecoveredMethod", ".", "parent", "==", "null", ")", "{", "resetPendingModifiers", "(", ")", ";", "return", "this", ";", "}", "}", "return", "super", ".", "add", "(", "methodDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "public", "RecoveredElement", "add", "(", "Block", "nestedBlockDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "resetPendingModifiers", "(", ")", ";", "if", "(", "this", ".", "blockDeclaration", ".", "sourceEnd", "!=", "0", "&&", "nestedBlockDeclaration", ".", "sourceStart", ">", "this", ".", "blockDeclaration", ".", "sourceEnd", ")", "{", "return", "this", ".", "parent", ".", "add", "(", "nestedBlockDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "RecoveredBlock", "element", "=", "new", "RecoveredBlock", "(", "nestedBlockDeclaration", ",", "this", ",", "bracketBalanceValue", ")", ";", "if", "(", "this", ".", "pendingArgument", "!=", "null", ")", "{", "element", ".", "attach", "(", "this", ".", "pendingArgument", ")", ";", "this", ".", "pendingArgument", "=", "null", ";", "}", "if", "(", "parser", "(", ")", ".", "statementRecoveryActivated", ")", "{", "addBlockStatement", "(", "element", ")", ";", "}", "attach", "(", "element", ")", ";", "if", "(", "nestedBlockDeclaration", ".", "sourceEnd", "==", "0", ")", "return", "element", ";", "return", "this", ";", "}", "public", "RecoveredElement", "add", "(", "LocalDeclaration", "localDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "return", "this", ".", "add", "(", "localDeclaration", ",", "bracketBalanceValue", ",", "false", ")", ";", "}", "public", "RecoveredElement", "add", "(", "LocalDeclaration", "localDeclaration", ",", "int", "bracketBalanceValue", ",", "boolean", "delegatedByParent", ")", "{", "if", "(", "this", ".", "blockDeclaration", ".", "sourceEnd", "!=", "0", "&&", "localDeclaration", ".", "declarationSourceStart", ">", "this", ".", "blockDeclaration", ".", "sourceEnd", ")", "{", "resetPendingModifiers", "(", ")", ";", "if", "(", "delegatedByParent", ")", "return", "this", ";", "return", "this", ".", "parent", ".", "add", "(", "localDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "RecoveredLocalVariable", "element", "=", "new", "RecoveredLocalVariable", "(", "localDeclaration", ",", "this", ",", "bracketBalanceValue", ")", ";", "if", "(", "this", ".", "pendingAnnotationCount", ">", "0", ")", "{", "element", ".", "attach", "(", "this", ".", "pendingAnnotations", ",", "this", ".", "pendingAnnotationCount", ",", "this", ".", "pendingModifiers", ",", "this", ".", "pendingModifersSourceStart", ")", ";", "}", "resetPendingModifiers", "(", ")", ";", "if", "(", "localDeclaration", "instanceof", "Argument", ")", "{", "this", ".", "pendingArgument", "=", "element", ";", "return", "this", ";", "}", "attach", "(", "element", ")", ";", "if", "(", "localDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "return", "element", ";", "return", "this", ";", "}", "public", "RecoveredElement", "add", "(", "Statement", "stmt", ",", "int", "bracketBalanceValue", ")", "{", "return", "this", ".", "add", "(", "stmt", ",", "bracketBalanceValue", ",", "false", ")", ";", "}", "public", "RecoveredElement", "add", "(", "Statement", "stmt", ",", "int", "bracketBalanceValue", ",", "boolean", "delegatedByParent", ")", "{", "resetPendingModifiers", "(", ")", ";", "if", "(", "this", ".", "blockDeclaration", ".", "sourceEnd", "!=", "0", "&&", "stmt", ".", "sourceStart", ">", "this", ".", "blockDeclaration", ".", "sourceEnd", ")", "{", "if", "(", "delegatedByParent", ")", "return", "this", ";", "return", "this", ".", "parent", ".", "add", "(", "stmt", ",", "bracketBalanceValue", ")", ";", "}", "RecoveredStatement", "element", "=", "new", "RecoveredStatement", "(", "stmt", ",", "this", ",", "bracketBalanceValue", ")", ";", "attach", "(", "element", ")", ";", "if", "(", "stmt", ".", "sourceEnd", "==", "0", ")", "return", "element", ";", "return", "this", ";", "}", "public", "RecoveredElement", "add", "(", "TypeDeclaration", "typeDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "return", "this", ".", "add", "(", "typeDeclaration", ",", "bracketBalanceValue", ",", "false", ")", ";", "}", "public", "RecoveredElement", "add", "(", "TypeDeclaration", "typeDeclaration", ",", "int", "bracketBalanceValue", ",", "boolean", "delegatedByParent", ")", "{", "if", "(", "this", ".", "blockDeclaration", ".", "sourceEnd", "!=", "0", "&&", "typeDeclaration", ".", "declarationSourceStart", ">", "this", ".", "blockDeclaration", ".", "sourceEnd", ")", "{", "resetPendingModifiers", "(", ")", ";", "if", "(", "delegatedByParent", ")", "return", "this", ";", "return", "this", ".", "parent", ".", "add", "(", "typeDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "RecoveredType", "element", "=", "new", "RecoveredType", "(", "typeDeclaration", ",", "this", ",", "bracketBalanceValue", ")", ";", "if", "(", "this", ".", "pendingAnnotationCount", ">", "0", ")", "{", "element", ".", "attach", "(", "this", ".", "pendingAnnotations", ",", "this", ".", "pendingAnnotationCount", ",", "this", ".", "pendingModifiers", ",", "this", ".", "pendingModifersSourceStart", ")", ";", "}", "resetPendingModifiers", "(", ")", ";", "attach", "(", "element", ")", ";", "if", "(", "typeDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "return", "element", ";", "return", "this", ";", "}", "public", "RecoveredElement", "addAnnotationName", "(", "int", "identifierPtr", ",", "int", "identifierLengthPtr", ",", "int", "annotationStart", ",", "int", "bracketBalanceValue", ")", "{", "if", "(", "this", ".", "pendingAnnotations", "==", "null", ")", "{", "this", ".", "pendingAnnotations", "=", "new", "RecoveredAnnotation", "[", "5", "]", ";", "this", ".", "pendingAnnotationCount", "=", "0", ";", "}", "else", "{", "if", "(", "this", ".", "pendingAnnotationCount", "==", "this", ".", "pendingAnnotations", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "pendingAnnotations", ",", "0", ",", "(", "this", ".", "pendingAnnotations", "=", "new", "RecoveredAnnotation", "[", "2", "*", "this", ".", "pendingAnnotationCount", "]", ")", ",", "0", ",", "this", ".", "pendingAnnotationCount", ")", ";", "}", "}", "RecoveredAnnotation", "element", "=", "new", "RecoveredAnnotation", "(", "identifierPtr", ",", "identifierLengthPtr", ",", "annotationStart", ",", "this", ",", "bracketBalanceValue", ")", ";", "this", ".", "pendingAnnotations", "[", "this", ".", "pendingAnnotationCount", "++", "]", "=", "element", ";", "return", "element", ";", "}", "public", "void", "addModifier", "(", "int", "flag", ",", "int", "modifiersSourceStart", ")", "{", "this", ".", "pendingModifiers", "|=", "flag", ";", "if", "(", "this", ".", "pendingModifersSourceStart", "<", "0", ")", "{", "this", ".", "pendingModifersSourceStart", "=", "modifiersSourceStart", ";", "}", "}", "void", "attach", "(", "RecoveredStatement", "recoveredStatement", ")", "{", "if", "(", "this", ".", "statements", "==", "null", ")", "{", "this", ".", "statements", "=", "new", "RecoveredStatement", "[", "5", "]", ";", "this", ".", "statementCount", "=", "0", ";", "}", "else", "{", "if", "(", "this", ".", "statementCount", "==", "this", ".", "statements", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "statements", ",", "0", ",", "(", "this", ".", "statements", "=", "new", "RecoveredStatement", "[", "2", "*", "this", ".", "statementCount", "]", ")", ",", "0", ",", "this", ".", "statementCount", ")", ";", "}", "}", "this", ".", "statements", "[", "this", ".", "statementCount", "++", "]", "=", "recoveredStatement", ";", "}", "void", "attachPendingModifiers", "(", "RecoveredAnnotation", "[", "]", "pendingAnnots", ",", "int", "pendingAnnotCount", ",", "int", "pendingMods", ",", "int", "pendingModsSourceStart", ")", "{", "this", ".", "pendingAnnotations", "=", "pendingAnnots", ";", "this", ".", "pendingAnnotationCount", "=", "pendingAnnotCount", ";", "this", ".", "pendingModifiers", "=", "pendingMods", ";", "this", ".", "pendingModifersSourceStart", "=", "pendingModsSourceStart", ";", "}", "public", "ASTNode", "parseTree", "(", ")", "{", "return", "this", ".", "blockDeclaration", ";", "}", "public", "void", "resetPendingModifiers", "(", ")", "{", "this", ".", "pendingAnnotations", "=", "null", ";", "this", ".", "pendingAnnotationCount", "=", "0", ";", "this", ".", "pendingModifiers", "=", "0", ";", "this", ".", "pendingModifersSourceStart", "=", "-", "1", ";", "}", "public", "String", "toString", "(", "int", "tab", ")", "{", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "tabString", "(", "tab", ")", ")", ";", "result", ".", "append", "(", "\"\"", ")", ";", "this", ".", "blockDeclaration", ".", "print", "(", "tab", "+", "1", ",", "result", ")", ";", "if", "(", "this", ".", "statements", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "statementCount", ";", "i", "++", ")", "{", "result", ".", "append", "(", "\"n\"", ")", ";", "result", ".", "append", "(", "this", ".", "statements", "[", "i", "]", ".", "toString", "(", "tab", "+", "1", ")", ")", ";", "}", "}", "return", "result", ".", "toString", "(", ")", ";", "}", "public", "Block", "updatedBlock", "(", "int", "depth", ",", "Set", "knownTypes", ")", "{", "if", "(", "!", "this", ".", "preserveContent", "||", "this", ".", "statementCount", "==", "0", ")", "return", "null", ";", "Statement", "[", "]", "updatedStatements", "=", "new", "Statement", "[", "this", ".", "statementCount", "]", ";", "int", "updatedCount", "=", "0", ";", "RecoveredStatement", "lastStatement", "=", "this", ".", "statements", "[", "this", ".", "statementCount", "-", "1", "]", ";", "RecoveredMethod", "enclosingMethod", "=", "enclosingMethod", "(", ")", ";", "RecoveredInitializer", "enclosingIntializer", "=", "enclosingInitializer", "(", ")", ";", "int", "bodyEndValue", "=", "0", ";", "if", "(", "enclosingMethod", "!=", "null", ")", "{", "bodyEndValue", "=", "enclosingMethod", ".", "methodDeclaration", ".", "bodyEnd", ";", "if", "(", "enclosingIntializer", "!=", "null", "&&", "enclosingMethod", ".", "methodDeclaration", ".", "sourceStart", "<", "enclosingIntializer", ".", "fieldDeclaration", ".", "sourceStart", ")", "{", "bodyEndValue", "=", "enclosingIntializer", ".", "fieldDeclaration", ".", "declarationSourceEnd", ";", "}", "}", "else", "if", "(", "enclosingIntializer", "!=", "null", ")", "{", "bodyEndValue", "=", "enclosingIntializer", ".", "fieldDeclaration", ".", "declarationSourceEnd", ";", "}", "else", "{", "bodyEndValue", "=", "this", ".", "blockDeclaration", ".", "sourceEnd", "-", "1", ";", "}", "if", "(", "lastStatement", "instanceof", "RecoveredLocalVariable", ")", "{", "RecoveredLocalVariable", "lastLocalVariable", "=", "(", "RecoveredLocalVariable", ")", "lastStatement", ";", "if", "(", "lastLocalVariable", ".", "localDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "{", "lastLocalVariable", ".", "localDeclaration", ".", "declarationSourceEnd", "=", "bodyEndValue", ";", "lastLocalVariable", ".", "localDeclaration", ".", "declarationEnd", "=", "bodyEndValue", ";", "}", "}", "else", "if", "(", "lastStatement", "instanceof", "RecoveredBlock", ")", "{", "RecoveredBlock", "lastBlock", "=", "(", "RecoveredBlock", ")", "lastStatement", ";", "if", "(", "lastBlock", ".", "blockDeclaration", ".", "sourceEnd", "==", "0", ")", "{", "lastBlock", ".", "blockDeclaration", ".", "sourceEnd", "=", "bodyEndValue", ";", "}", "}", "else", "if", "(", "!", "(", "lastStatement", "instanceof", "RecoveredType", ")", ")", "{", "if", "(", "lastStatement", ".", "statement", ".", "sourceEnd", "==", "0", ")", "{", "lastStatement", ".", "statement", ".", "sourceEnd", "=", "bodyEndValue", ";", "}", "}", "int", "lastEnd", "=", "this", ".", "blockDeclaration", ".", "sourceStart", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "statementCount", ";", "i", "++", ")", "{", "Statement", "updatedStatement", "=", "this", ".", "statements", "[", "i", "]", ".", "updatedStatement", "(", "depth", ",", "knownTypes", ")", ";", "if", "(", "updatedStatement", "!=", "null", ")", "{", "updatedStatements", "[", "updatedCount", "++", "]", "=", "updatedStatement", ";", "if", "(", "updatedStatement", "instanceof", "LocalDeclaration", ")", "{", "LocalDeclaration", "localDeclaration", "=", "(", "LocalDeclaration", ")", "updatedStatement", ";", "if", "(", "localDeclaration", ".", "declarationSourceEnd", ">", "lastEnd", ")", "{", "lastEnd", "=", "localDeclaration", ".", "declarationSourceEnd", ";", "}", "}", "else", "if", "(", "updatedStatement", "instanceof", "TypeDeclaration", ")", "{", "TypeDeclaration", "typeDeclaration", "=", "(", "TypeDeclaration", ")", "updatedStatement", ";", "if", "(", "typeDeclaration", ".", "declarationSourceEnd", ">", "lastEnd", ")", "{", "lastEnd", "=", "typeDeclaration", ".", "declarationSourceEnd", ";", "}", "}", "else", "{", "if", "(", "updatedStatement", ".", "sourceEnd", ">", "lastEnd", ")", "{", "lastEnd", "=", "updatedStatement", ".", "sourceEnd", ";", "}", "}", "}", "}", "if", "(", "updatedCount", "==", "0", ")", "return", "null", ";", "if", "(", "updatedCount", "!=", "this", ".", "statementCount", ")", "{", "this", ".", "blockDeclaration", ".", "statements", "=", "new", "Statement", "[", "updatedCount", "]", ";", "System", ".", "arraycopy", "(", "updatedStatements", ",", "0", ",", "this", ".", "blockDeclaration", ".", "statements", ",", "0", ",", "updatedCount", ")", ";", "}", "else", "{", "this", ".", "blockDeclaration", ".", "statements", "=", "updatedStatements", ";", "}", "if", "(", "this", ".", "blockDeclaration", ".", "sourceEnd", "==", "0", ")", "{", "if", "(", "lastEnd", "<", "bodyEndValue", ")", "{", "this", ".", "blockDeclaration", ".", "sourceEnd", "=", "bodyEndValue", ";", "}", "else", "{", "this", ".", "blockDeclaration", ".", "sourceEnd", "=", "lastEnd", ";", "}", "}", "return", "this", ".", "blockDeclaration", ";", "}", "public", "Statement", "updatedStatement", "(", "int", "depth", ",", "Set", "knownTypes", ")", "{", "return", "updatedBlock", "(", "depth", ",", "knownTypes", ")", ";", "}", "public", "RecoveredElement", "updateOnClosingBrace", "(", "int", "braceStart", ",", "int", "braceEnd", ")", "{", "if", "(", "(", "--", "this", ".", "bracketBalance", "<=", "0", ")", "&&", "(", "this", ".", "parent", "!=", "null", ")", ")", "{", "this", ".", "updateSourceEndIfNecessary", "(", "braceStart", ",", "braceEnd", ")", ";", "RecoveredMethod", "method", "=", "enclosingMethod", "(", ")", ";", "if", "(", "method", "!=", "null", "&&", "method", ".", "methodBody", "==", "this", ")", "{", "return", "this", ".", "parent", ".", "updateOnClosingBrace", "(", "braceStart", ",", "braceEnd", ")", ";", "}", "RecoveredInitializer", "initializer", "=", "enclosingInitializer", "(", ")", ";", "if", "(", "initializer", "!=", "null", "&&", "initializer", ".", "initializerBody", "==", "this", ")", "{", "return", "this", ".", "parent", ".", "updateOnClosingBrace", "(", "braceStart", ",", "braceEnd", ")", ";", "}", "return", "this", ".", "parent", ";", "}", "return", "this", ";", "}", "public", "RecoveredElement", "updateOnOpeningBrace", "(", "int", "braceStart", ",", "int", "braceEnd", ")", "{", "Block", "block", "=", "new", "Block", "(", "0", ")", ";", "block", ".", "sourceStart", "=", "parser", "(", ")", ".", "scanner", ".", "startPosition", ";", "return", "this", ".", "add", "(", "block", ",", "1", ")", ";", "}", "public", "void", "updateParseTree", "(", ")", "{", "updatedBlock", "(", "0", ",", "new", "HashSet", "(", ")", ")", ";", "}", "public", "Statement", "updateStatement", "(", "int", "depth", ",", "Set", "knownTypes", ")", "{", "if", "(", "this", ".", "blockDeclaration", ".", "sourceEnd", "!=", "0", "||", "this", ".", "statementCount", "==", "0", ")", "return", "null", ";", "Statement", "[", "]", "updatedStatements", "=", "new", "Statement", "[", "this", ".", "statementCount", "]", ";", "int", "updatedCount", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "statementCount", ";", "i", "++", ")", "{", "Statement", "updatedStatement", "=", "this", ".", "statements", "[", "i", "]", ".", "updatedStatement", "(", "depth", ",", "knownTypes", ")", ";", "if", "(", "updatedStatement", "!=", "null", ")", "{", "updatedStatements", "[", "updatedCount", "++", "]", "=", "updatedStatement", ";", "}", "}", "if", "(", "updatedCount", "==", "0", ")", "return", "null", ";", "if", "(", "updatedCount", "!=", "this", ".", "statementCount", ")", "{", "this", ".", "blockDeclaration", ".", "statements", "=", "new", "Statement", "[", "updatedCount", "]", ";", "System", ".", "arraycopy", "(", "updatedStatements", ",", "0", ",", "this", ".", "blockDeclaration", ".", "statements", ",", "0", ",", "updatedCount", ")", ";", "}", "else", "{", "this", ".", "blockDeclaration", ".", "statements", "=", "updatedStatements", ";", "}", "return", "this", ".", "blockDeclaration", ";", "}", "public", "RecoveredElement", "add", "(", "FieldDeclaration", "fieldDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "resetPendingModifiers", "(", ")", ";", "char", "[", "]", "[", "]", "fieldTypeName", ";", "if", "(", "(", "fieldDeclaration", ".", "modifiers", "&", "~", "ClassFileConstants", ".", "AccFinal", ")", "!=", "0", "||", "(", "fieldDeclaration", ".", "type", "==", "null", ")", "||", "(", "(", "fieldTypeName", "=", "fieldDeclaration", ".", "type", ".", "getTypeName", "(", ")", ")", ".", "length", "==", "1", "&&", "CharOperation", ".", "equals", "(", "fieldTypeName", "[", "0", "]", ",", "TypeBinding", ".", "VOID", ".", "sourceName", "(", ")", ")", ")", ")", "{", "this", ".", "updateSourceEndIfNecessary", "(", "previousAvailableLineEnd", "(", "fieldDeclaration", ".", "declarationSourceStart", "-", "1", ")", ")", ";", "return", "this", ".", "parent", ".", "add", "(", "fieldDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "if", "(", "this", ".", "blockDeclaration", ".", "sourceEnd", "!=", "0", "&&", "fieldDeclaration", ".", "declarationSourceStart", ">", "this", ".", "blockDeclaration", ".", "sourceEnd", ")", "{", "return", "this", ".", "parent", ".", "add", "(", "fieldDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "return", "this", ";", "}", "}", "</s>" ]
3,330
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "diagnose", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "AbstractMethodDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "FieldDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Initializer", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ExtraCompilerModifiers", ";", "public", "class", "RangeUtil", "{", "public", "static", "final", "int", "NO_FLAG", "=", "0", ";", "public", "static", "final", "int", "LBRACE_MISSING", "=", "1", ";", "public", "static", "final", "int", "IGNORE", "=", "2", ";", "static", "class", "RangeResult", "{", "private", "static", "final", "int", "INITIAL_SIZE", "=", "10", ";", "int", "pos", ";", "int", "[", "]", "intervalStarts", ";", "int", "[", "]", "intervalEnds", ";", "int", "[", "]", "intervalFlags", ";", "RangeResult", "(", ")", "{", "this", ".", "pos", "=", "0", ";", "this", ".", "intervalStarts", "=", "new", "int", "[", "INITIAL_SIZE", "]", ";", "this", ".", "intervalEnds", "=", "new", "int", "[", "INITIAL_SIZE", "]", ";", "this", ".", "intervalFlags", "=", "new", "int", "[", "INITIAL_SIZE", "]", ";", "}", "void", "addInterval", "(", "int", "start", ",", "int", "end", ")", "{", "addInterval", "(", "start", ",", "end", ",", "NO_FLAG", ")", ";", "}", "void", "addInterval", "(", "int", "start", ",", "int", "end", ",", "int", "flags", ")", "{", "if", "(", "this", ".", "pos", ">=", "this", ".", "intervalStarts", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "intervalStarts", ",", "0", ",", "this", ".", "intervalStarts", "=", "new", "int", "[", "this", ".", "pos", "*", "2", "]", ",", "0", ",", "this", ".", "pos", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "intervalEnds", ",", "0", ",", "this", ".", "intervalEnds", "=", "new", "int", "[", "this", ".", "pos", "*", "2", "]", ",", "0", ",", "this", ".", "pos", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "intervalFlags", ",", "0", ",", "this", ".", "intervalFlags", "=", "new", "int", "[", "this", ".", "pos", "*", "2", "]", ",", "0", ",", "this", ".", "pos", ")", ";", "}", "this", ".", "intervalStarts", "[", "this", ".", "pos", "]", "=", "start", ";", "this", ".", "intervalEnds", "[", "this", ".", "pos", "]", "=", "end", ";", "this", ".", "intervalFlags", "[", "this", ".", "pos", "]", "=", "flags", ";", "this", ".", "pos", "++", ";", "}", "int", "[", "]", "[", "]", "getRanges", "(", ")", "{", "int", "[", "]", "resultStarts", "=", "new", "int", "[", "this", ".", "pos", "]", ";", "int", "[", "]", "resultEnds", "=", "new", "int", "[", "this", ".", "pos", "]", ";", "int", "[", "]", "resultFlags", "=", "new", "int", "[", "this", ".", "pos", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "intervalStarts", ",", "0", ",", "resultStarts", ",", "0", ",", "this", ".", "pos", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "intervalEnds", ",", "0", ",", "resultEnds", ",", "0", ",", "this", ".", "pos", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "intervalFlags", ",", "0", ",", "resultFlags", ",", "0", ",", "this", ".", "pos", ")", ";", "if", "(", "resultStarts", ".", "length", ">", "1", ")", "{", "quickSort", "(", "resultStarts", ",", "resultEnds", ",", "resultFlags", ",", "0", ",", "resultStarts", ".", "length", "-", "1", ")", ";", "}", "return", "new", "int", "[", "]", "[", "]", "{", "resultStarts", ",", "resultEnds", ",", "resultFlags", "}", ";", "}", "private", "void", "quickSort", "(", "int", "[", "]", "list", ",", "int", "[", "]", "list2", ",", "int", "[", "]", "list3", ",", "int", "left", ",", "int", "right", ")", "{", "int", "original_left", "=", "left", ";", "int", "original_right", "=", "right", ";", "int", "mid", "=", "list", "[", "left", "+", "(", "right", "-", "left", ")", "/", "2", "]", ";", "do", "{", "while", "(", "compare", "(", "list", "[", "left", "]", ",", "mid", ")", "<", "0", ")", "{", "left", "++", ";", "}", "while", "(", "compare", "(", "mid", ",", "list", "[", "right", "]", ")", "<", "0", ")", "{", "right", "--", ";", "}", "if", "(", "left", "<=", "right", ")", "{", "int", "tmp", "=", "list", "[", "left", "]", ";", "list", "[", "left", "]", "=", "list", "[", "right", "]", ";", "list", "[", "right", "]", "=", "tmp", ";", "tmp", "=", "list2", "[", "left", "]", ";", "list2", "[", "left", "]", "=", "list2", "[", "right", "]", ";", "list2", "[", "right", "]", "=", "tmp", ";", "tmp", "=", "list3", "[", "left", "]", ";", "list3", "[", "left", "]", "=", "list3", "[", "right", "]", ";", "list3", "[", "right", "]", "=", "tmp", ";", "left", "++", ";", "right", "--", ";", "}", "}", "while", "(", "left", "<=", "right", ")", ";", "if", "(", "original_left", "<", "right", ")", "{", "quickSort", "(", "list", ",", "list2", ",", "list3", ",", "original_left", ",", "right", ")", ";", "}", "if", "(", "left", "<", "original_right", ")", "{", "quickSort", "(", "list", ",", "list2", ",", "list3", ",", "left", ",", "original_right", ")", ";", "}", "}", "private", "int", "compare", "(", "int", "i1", ",", "int", "i2", ")", "{", "return", "i1", "-", "i2", ";", "}", "}", "public", "static", "boolean", "containsErrorInSignature", "(", "AbstractMethodDeclaration", "method", ")", "{", "return", "method", ".", "sourceEnd", "+", "1", "==", "method", ".", "bodyStart", "||", "method", ".", "bodyEnd", "==", "method", ".", "declarationSourceEnd", ";", "}", "public", "static", "int", "[", "]", "[", "]", "computeDietRange", "(", "TypeDeclaration", "[", "]", "types", ")", "{", "if", "(", "types", "==", "null", "||", "types", ".", "length", "==", "0", ")", "{", "return", "new", "int", "[", "3", "]", "[", "0", "]", ";", "}", "else", "{", "RangeResult", "result", "=", "new", "RangeResult", "(", ")", ";", "computeDietRange0", "(", "types", ",", "result", ")", ";", "return", "result", ".", "getRanges", "(", ")", ";", "}", "}", "private", "static", "void", "computeDietRange0", "(", "TypeDeclaration", "[", "]", "types", ",", "RangeResult", "result", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "types", ".", "length", ";", "j", "++", ")", "{", "TypeDeclaration", "[", "]", "memberTypeDeclarations", "=", "types", "[", "j", "]", ".", "memberTypes", ";", "if", "(", "memberTypeDeclarations", "!=", "null", "&&", "memberTypeDeclarations", ".", "length", ">", "0", ")", "{", "computeDietRange0", "(", "types", "[", "j", "]", ".", "memberTypes", ",", "result", ")", ";", "}", "AbstractMethodDeclaration", "[", "]", "methods", "=", "types", "[", "j", "]", ".", "methods", ";", "if", "(", "methods", "!=", "null", ")", "{", "int", "length", "=", "methods", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "AbstractMethodDeclaration", "method", "=", "methods", "[", "i", "]", ";", "if", "(", "containsIgnoredBody", "(", "method", ")", ")", "{", "if", "(", "containsErrorInSignature", "(", "method", ")", ")", "{", "method", ".", "bits", "|=", "ASTNode", ".", "ErrorInSignature", ";", "result", ".", "addInterval", "(", "method", ".", "declarationSourceStart", ",", "method", ".", "declarationSourceEnd", ",", "IGNORE", ")", ";", "}", "else", "{", "int", "flags", "=", "method", ".", "sourceEnd", "+", "1", "==", "method", ".", "bodyStart", "?", "LBRACE_MISSING", ":", "NO_FLAG", ";", "result", ".", "addInterval", "(", "method", ".", "bodyStart", ",", "method", ".", "bodyEnd", ",", "flags", ")", ";", "}", "}", "}", "}", "FieldDeclaration", "[", "]", "fields", "=", "types", "[", "j", "]", ".", "fields", ";", "if", "(", "fields", "!=", "null", ")", "{", "int", "length", "=", "fields", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "fields", "[", "i", "]", "instanceof", "Initializer", ")", "{", "Initializer", "initializer", "=", "(", "Initializer", ")", "fields", "[", "i", "]", ";", "if", "(", "initializer", ".", "declarationSourceEnd", "==", "initializer", ".", "bodyEnd", "&&", "initializer", ".", "declarationSourceStart", "!=", "initializer", ".", "declarationSourceEnd", ")", "{", "initializer", ".", "bits", "|=", "ASTNode", ".", "ErrorInSignature", ";", "result", ".", "addInterval", "(", "initializer", ".", "declarationSourceStart", ",", "initializer", ".", "declarationSourceEnd", ",", "IGNORE", ")", ";", "}", "else", "{", "result", ".", "addInterval", "(", "initializer", ".", "bodyStart", ",", "initializer", ".", "bodyEnd", ")", ";", "}", "}", "}", "}", "}", "}", "public", "static", "boolean", "containsIgnoredBody", "(", "AbstractMethodDeclaration", "method", ")", "{", "return", "!", "method", ".", "isDefaultConstructor", "(", ")", "&&", "!", "method", ".", "isClinit", "(", ")", "&&", "(", "method", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccSemicolonBody", ")", "==", "0", ";", "}", "}", "</s>" ]
3,331
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "diagnose", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "InvalidInputException", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "Scanner", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "TerminalTokens", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "class", "LexStream", "implements", "TerminalTokens", "{", "public", "static", "final", "int", "IS_AFTER_JUMP", "=", "1", ";", "public", "static", "final", "int", "LBRACE_MISSING", "=", "2", ";", "public", "static", "class", "Token", "{", "int", "kind", ";", "char", "[", "]", "name", ";", "int", "start", ";", "int", "end", ";", "int", "line", ";", "int", "flags", ";", "public", "String", "toString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "buffer", ".", "append", "(", "this", ".", "name", ")", ".", "append", "(", "'['", ")", ".", "append", "(", "this", ".", "kind", ")", ".", "append", "(", "']'", ")", ";", "buffer", ".", "append", "(", "'{'", ")", ".", "append", "(", "this", ".", "start", ")", ".", "append", "(", "','", ")", ".", "append", "(", "this", ".", "end", ")", ".", "append", "(", "'}'", ")", ".", "append", "(", "this", ".", "line", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}", "}", "private", "int", "tokenCacheIndex", ";", "private", "int", "tokenCacheEOFIndex", ";", "private", "Token", "[", "]", "tokenCache", ";", "private", "int", "currentIndex", "=", "-", "1", ";", "private", "Scanner", "scanner", ";", "private", "int", "[", "]", "intervalStartToSkip", ";", "private", "int", "[", "]", "intervalEndToSkip", ";", "private", "int", "[", "]", "intervalFlagsToSkip", ";", "private", "int", "previousInterval", "=", "-", "1", ";", "private", "int", "currentInterval", "=", "-", "1", ";", "public", "LexStream", "(", "int", "size", ",", "Scanner", "scanner", ",", "int", "[", "]", "intervalStartToSkip", ",", "int", "[", "]", "intervalEndToSkip", ",", "int", "[", "]", "intervalFlagsToSkip", ",", "int", "firstToken", ",", "int", "init", ",", "int", "eof", ")", "{", "this", ".", "tokenCache", "=", "new", "Token", "[", "size", "]", ";", "this", ".", "tokenCacheIndex", "=", "0", ";", "this", ".", "tokenCacheEOFIndex", "=", "Integer", ".", "MAX_VALUE", ";", "this", ".", "tokenCache", "[", "0", "]", "=", "new", "Token", "(", ")", ";", "this", ".", "tokenCache", "[", "0", "]", ".", "kind", "=", "firstToken", ";", "this", ".", "tokenCache", "[", "0", "]", ".", "name", "=", "CharOperation", ".", "NO_CHAR", ";", "this", ".", "tokenCache", "[", "0", "]", ".", "start", "=", "init", ";", "this", ".", "tokenCache", "[", "0", "]", ".", "end", "=", "init", ";", "this", ".", "tokenCache", "[", "0", "]", ".", "line", "=", "0", ";", "this", ".", "intervalStartToSkip", "=", "intervalStartToSkip", ";", "this", ".", "intervalEndToSkip", "=", "intervalEndToSkip", ";", "this", ".", "intervalFlagsToSkip", "=", "intervalFlagsToSkip", ";", "scanner", ".", "resetTo", "(", "init", ",", "eof", ")", ";", "this", ".", "scanner", "=", "scanner", ";", "}", "private", "void", "readTokenFromScanner", "(", ")", "{", "int", "length", "=", "this", ".", "tokenCache", ".", "length", ";", "boolean", "tokenNotFound", "=", "true", ";", "while", "(", "tokenNotFound", ")", "{", "try", "{", "int", "tokenKind", "=", "this", ".", "scanner", ".", "getNextToken", "(", ")", ";", "if", "(", "tokenKind", "!=", "TokenNameEOF", ")", "{", "int", "start", "=", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ";", "int", "end", "=", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ";", "int", "nextInterval", "=", "this", ".", "currentInterval", "+", "1", ";", "if", "(", "this", ".", "intervalStartToSkip", ".", "length", "==", "0", "||", "nextInterval", ">=", "this", ".", "intervalStartToSkip", ".", "length", "||", "start", "<", "this", ".", "intervalStartToSkip", "[", "nextInterval", "]", ")", "{", "Token", "token", "=", "new", "Token", "(", ")", ";", "token", ".", "kind", "=", "tokenKind", ";", "token", ".", "name", "=", "this", ".", "scanner", ".", "getCurrentTokenSource", "(", ")", ";", "token", ".", "start", "=", "start", ";", "token", ".", "end", "=", "end", ";", "token", ".", "line", "=", "Util", ".", "getLineNumber", "(", "end", ",", "this", ".", "scanner", ".", "lineEnds", ",", "0", ",", "this", ".", "scanner", ".", "linePtr", ")", ";", "if", "(", "this", ".", "currentInterval", "!=", "this", ".", "previousInterval", "&&", "(", "this", ".", "intervalFlagsToSkip", "[", "this", ".", "currentInterval", "]", "&", "RangeUtil", ".", "IGNORE", ")", "==", "0", ")", "{", "token", ".", "flags", "=", "IS_AFTER_JUMP", ";", "if", "(", "(", "this", ".", "intervalFlagsToSkip", "[", "this", ".", "currentInterval", "]", "&", "RangeUtil", ".", "LBRACE_MISSING", ")", "!=", "0", ")", "{", "token", ".", "flags", "|=", "LBRACE_MISSING", ";", "}", "}", "this", ".", "previousInterval", "=", "this", ".", "currentInterval", ";", "this", ".", "tokenCache", "[", "++", "this", ".", "tokenCacheIndex", "%", "length", "]", "=", "token", ";", "tokenNotFound", "=", "false", ";", "}", "else", "{", "this", ".", "scanner", ".", "resetTo", "(", "this", ".", "intervalEndToSkip", "[", "++", "this", ".", "currentInterval", "]", "+", "1", ",", "this", ".", "scanner", ".", "eofPosition", "-", "1", ")", ";", "}", "}", "else", "{", "int", "start", "=", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ";", "int", "end", "=", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ";", "Token", "token", "=", "new", "Token", "(", ")", ";", "token", ".", "kind", "=", "tokenKind", ";", "token", ".", "name", "=", "CharOperation", ".", "NO_CHAR", ";", "token", ".", "start", "=", "start", ";", "token", ".", "end", "=", "end", ";", "token", ".", "line", "=", "Util", ".", "getLineNumber", "(", "end", ",", "this", ".", "scanner", ".", "lineEnds", ",", "0", ",", "this", ".", "scanner", ".", "linePtr", ")", ";", "this", ".", "tokenCache", "[", "++", "this", ".", "tokenCacheIndex", "%", "length", "]", "=", "token", ";", "this", ".", "tokenCacheEOFIndex", "=", "this", ".", "tokenCacheIndex", ";", "tokenNotFound", "=", "false", ";", "}", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "}", "}", "}", "public", "Token", "token", "(", "int", "index", ")", "{", "if", "(", "index", "<", "0", ")", "{", "Token", "eofToken", "=", "new", "Token", "(", ")", ";", "eofToken", ".", "kind", "=", "TokenNameEOF", ";", "eofToken", ".", "name", "=", "CharOperation", ".", "NO_CHAR", ";", "return", "eofToken", ";", "}", "if", "(", "this", ".", "tokenCacheEOFIndex", ">=", "0", "&&", "index", ">", "this", ".", "tokenCacheEOFIndex", ")", "{", "return", "token", "(", "this", ".", "tokenCacheEOFIndex", ")", ";", "}", "int", "length", "=", "this", ".", "tokenCache", ".", "length", ";", "if", "(", "index", ">", "this", ".", "tokenCacheIndex", ")", "{", "int", "tokensToRead", "=", "index", "-", "this", ".", "tokenCacheIndex", ";", "while", "(", "tokensToRead", "--", "!=", "0", ")", "{", "readTokenFromScanner", "(", ")", ";", "}", "}", "else", "if", "(", "this", ".", "tokenCacheIndex", "-", "length", ">=", "index", ")", "{", "return", "null", ";", "}", "return", "this", ".", "tokenCache", "[", "index", "%", "length", "]", ";", "}", "public", "int", "getToken", "(", ")", "{", "return", "this", ".", "currentIndex", "=", "next", "(", "this", ".", "currentIndex", ")", ";", "}", "public", "int", "previous", "(", "int", "tokenIndex", ")", "{", "return", "tokenIndex", ">", "0", "?", "tokenIndex", "-", "1", ":", "0", ";", "}", "public", "int", "next", "(", "int", "tokenIndex", ")", "{", "return", "tokenIndex", "<", "this", ".", "tokenCacheEOFIndex", "?", "tokenIndex", "+", "1", ":", "this", ".", "tokenCacheEOFIndex", ";", "}", "public", "boolean", "afterEol", "(", "int", "i", ")", "{", "return", "i", "<", "1", "?", "true", ":", "line", "(", "i", "-", "1", ")", "<", "line", "(", "i", ")", ";", "}", "public", "void", "reset", "(", ")", "{", "this", ".", "currentIndex", "=", "-", "1", ";", "}", "public", "void", "reset", "(", "int", "i", ")", "{", "this", ".", "currentIndex", "=", "previous", "(", "i", ")", ";", "}", "public", "int", "badtoken", "(", ")", "{", "return", "0", ";", "}", "public", "int", "kind", "(", "int", "tokenIndex", ")", "{", "return", "token", "(", "tokenIndex", ")", ".", "kind", ";", "}", "public", "char", "[", "]", "name", "(", "int", "tokenIndex", ")", "{", "return", "token", "(", "tokenIndex", ")", ".", "name", ";", "}", "public", "int", "line", "(", "int", "tokenIndex", ")", "{", "return", "token", "(", "tokenIndex", ")", ".", "line", ";", "}", "public", "int", "start", "(", "int", "tokenIndex", ")", "{", "return", "token", "(", "tokenIndex", ")", ".", "start", ";", "}", "public", "int", "end", "(", "int", "tokenIndex", ")", "{", "return", "token", "(", "tokenIndex", ")", ".", "end", ";", "}", "public", "int", "flags", "(", "int", "tokenIndex", ")", "{", "return", "token", "(", "tokenIndex", ")", ".", "flags", ";", "}", "public", "boolean", "isInsideStream", "(", "int", "index", ")", "{", "if", "(", "this", ".", "tokenCacheEOFIndex", ">=", "0", "&&", "index", ">", "this", ".", "tokenCacheEOFIndex", ")", "{", "return", "false", ";", "}", "else", "if", "(", "index", ">", "this", ".", "tokenCacheIndex", ")", "{", "return", "true", ";", "}", "else", "if", "(", "this", ".", "tokenCacheIndex", "-", "this", ".", "tokenCache", ".", "length", ">=", "index", ")", "{", "return", "false", ";", "}", "else", "{", "return", "true", ";", "}", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "res", "=", "new", "StringBuffer", "(", ")", ";", "String", "source", "=", "new", "String", "(", "this", ".", "scanner", ".", "source", ")", ";", "if", "(", "this", ".", "currentIndex", "<", "0", ")", "{", "int", "previousEnd", "=", "-", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "intervalStartToSkip", ".", "length", ";", "i", "++", ")", "{", "int", "intervalStart", "=", "this", ".", "intervalStartToSkip", "[", "i", "]", ";", "int", "intervalEnd", "=", "this", ".", "intervalEndToSkip", "[", "i", "]", ";", "res", ".", "append", "(", "source", ".", "substring", "(", "previousEnd", "+", "1", ",", "intervalStart", ")", ")", ";", "res", ".", "append", "(", "'<'", ")", ";", "res", ".", "append", "(", "'@'", ")", ";", "res", ".", "append", "(", "source", ".", "substring", "(", "intervalStart", ",", "intervalEnd", "+", "1", ")", ")", ";", "res", ".", "append", "(", "'@'", ")", ";", "res", ".", "append", "(", "'>'", ")", ";", "previousEnd", "=", "intervalEnd", ";", "}", "res", ".", "append", "(", "source", ".", "substring", "(", "previousEnd", "+", "1", ")", ")", ";", "}", "else", "{", "Token", "token", "=", "token", "(", "this", ".", "currentIndex", ")", ";", "int", "curtokKind", "=", "token", ".", "kind", ";", "int", "curtokStart", "=", "token", ".", "start", ";", "int", "curtokEnd", "=", "token", ".", "end", ";", "int", "previousEnd", "=", "-", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "intervalStartToSkip", ".", "length", ";", "i", "++", ")", "{", "int", "intervalStart", "=", "this", ".", "intervalStartToSkip", "[", "i", "]", ";", "int", "intervalEnd", "=", "this", ".", "intervalEndToSkip", "[", "i", "]", ";", "if", "(", "curtokStart", ">=", "previousEnd", "&&", "curtokEnd", "<=", "intervalStart", ")", "{", "res", ".", "append", "(", "source", ".", "substring", "(", "previousEnd", "+", "1", ",", "curtokStart", ")", ")", ";", "res", ".", "append", "(", "'<'", ")", ";", "res", ".", "append", "(", "'#'", ")", ";", "res", ".", "append", "(", "source", ".", "substring", "(", "curtokStart", ",", "curtokEnd", "+", "1", ")", ")", ";", "res", ".", "append", "(", "'#'", ")", ";", "res", ".", "append", "(", "'>'", ")", ";", "res", ".", "append", "(", "source", ".", "substring", "(", "curtokEnd", "+", "1", ",", "intervalStart", ")", ")", ";", "}", "else", "{", "res", ".", "append", "(", "source", ".", "substring", "(", "previousEnd", "+", "1", ",", "intervalStart", ")", ")", ";", "}", "res", ".", "append", "(", "'<'", ")", ";", "res", ".", "append", "(", "'@'", ")", ";", "res", ".", "append", "(", "source", ".", "substring", "(", "intervalStart", ",", "intervalEnd", "+", "1", ")", ")", ";", "res", ".", "append", "(", "'@'", ")", ";", "res", ".", "append", "(", "'>'", ")", ";", "previousEnd", "=", "intervalEnd", ";", "}", "if", "(", "curtokStart", ">=", "previousEnd", ")", "{", "res", ".", "append", "(", "source", ".", "substring", "(", "previousEnd", "+", "1", ",", "curtokStart", ")", ")", ";", "res", ".", "append", "(", "'<'", ")", ";", "res", ".", "append", "(", "'#'", ")", ";", "if", "(", "curtokKind", "==", "TokenNameEOF", ")", "{", "res", ".", "append", "(", "\"EOF#>\"", ")", ";", "}", "else", "{", "res", ".", "append", "(", "source", ".", "substring", "(", "curtokStart", ",", "curtokEnd", "+", "1", ")", ")", ";", "res", ".", "append", "(", "'#'", ")", ";", "res", ".", "append", "(", "'>'", ")", ";", "res", ".", "append", "(", "source", ".", "substring", "(", "curtokEnd", "+", "1", ")", ")", ";", "}", "}", "else", "{", "res", ".", "append", "(", "source", ".", "substring", "(", "previousEnd", "+", "1", ")", ")", ";", "}", "}", "return", "res", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
3,332
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "diagnose", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "CompilerOptions", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "Parser", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "ParserBasicInformation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "RecoveryScanner", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "ScannerHelper", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "TerminalTokens", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "ProblemReporter", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "class", "DiagnoseParser", "implements", "ParserBasicInformation", ",", "TerminalTokens", "{", "private", "static", "final", "boolean", "DEBUG", "=", "false", ";", "private", "boolean", "DEBUG_PARSECHECK", "=", "false", ";", "private", "static", "final", "int", "STACK_INCREMENT", "=", "256", ";", "private", "static", "final", "int", "BEFORE_CODE", "=", "2", ";", "private", "static", "final", "int", "INSERTION_CODE", "=", "3", ";", "private", "static", "final", "int", "INVALID_CODE", "=", "4", ";", "private", "static", "final", "int", "SUBSTITUTION_CODE", "=", "5", ";", "private", "static", "final", "int", "DELETION_CODE", "=", "6", ";", "private", "static", "final", "int", "MERGE_CODE", "=", "7", ";", "private", "static", "final", "int", "MISPLACED_CODE", "=", "8", ";", "private", "static", "final", "int", "SCOPE_CODE", "=", "9", ";", "private", "static", "final", "int", "SECONDARY_CODE", "=", "10", ";", "private", "static", "final", "int", "EOF_CODE", "=", "11", ";", "private", "static", "final", "int", "BUFF_UBOUND", "=", "31", ";", "private", "static", "final", "int", "BUFF_SIZE", "=", "32", ";", "private", "static", "final", "int", "MAX_DISTANCE", "=", "30", ";", "private", "static", "final", "int", "MIN_DISTANCE", "=", "3", ";", "private", "CompilerOptions", "options", ";", "private", "LexStream", "lexStream", ";", "private", "int", "errorToken", ";", "private", "int", "errorTokenStart", ";", "private", "int", "currentToken", "=", "0", ";", "private", "int", "stackLength", ";", "private", "int", "stateStackTop", ";", "private", "int", "[", "]", "stack", ";", "private", "int", "[", "]", "locationStack", ";", "private", "int", "[", "]", "locationStartStack", ";", "private", "int", "tempStackTop", ";", "private", "int", "[", "]", "tempStack", ";", "private", "int", "prevStackTop", ";", "private", "int", "[", "]", "prevStack", ";", "private", "int", "nextStackTop", ";", "private", "int", "[", "]", "nextStack", ";", "private", "int", "scopeStackTop", ";", "private", "int", "[", "]", "scopeIndex", ";", "private", "int", "[", "]", "scopePosition", ";", "int", "[", "]", "list", "=", "new", "int", "[", "NUM_SYMBOLS", "+", "1", "]", ";", "int", "[", "]", "buffer", "=", "new", "int", "[", "BUFF_SIZE", "]", ";", "private", "static", "final", "int", "NIL", "=", "-", "1", ";", "int", "[", "]", "stateSeen", ";", "int", "statePoolTop", ";", "StateInfo", "[", "]", "statePool", ";", "private", "Parser", "parser", ";", "private", "RecoveryScanner", "recoveryScanner", ";", "private", "boolean", "reportProblem", ";", "private", "static", "class", "RepairCandidate", "{", "public", "int", "symbol", ";", "public", "int", "location", ";", "public", "RepairCandidate", "(", ")", "{", "this", ".", "symbol", "=", "0", ";", "this", ".", "location", "=", "0", ";", "}", "}", "private", "static", "class", "PrimaryRepairInfo", "{", "public", "int", "distance", ";", "public", "int", "misspellIndex", ";", "public", "int", "code", ";", "public", "int", "bufferPosition", ";", "public", "int", "symbol", ";", "public", "PrimaryRepairInfo", "(", ")", "{", "this", ".", "distance", "=", "0", ";", "this", ".", "misspellIndex", "=", "0", ";", "this", ".", "code", "=", "0", ";", "this", ".", "bufferPosition", "=", "0", ";", "this", ".", "symbol", "=", "0", ";", "}", "public", "PrimaryRepairInfo", "copy", "(", ")", "{", "PrimaryRepairInfo", "c", "=", "new", "PrimaryRepairInfo", "(", ")", ";", "c", ".", "distance", "=", "this", ".", "distance", ";", "c", ".", "misspellIndex", "=", "this", ".", "misspellIndex", ";", "c", ".", "code", "=", "this", ".", "code", ";", "c", ".", "bufferPosition", "=", "this", ".", "bufferPosition", ";", "c", ".", "symbol", "=", "this", ".", "symbol", ";", "return", "c", ";", "}", "}", "static", "class", "SecondaryRepairInfo", "{", "public", "int", "code", ";", "public", "int", "distance", ";", "public", "int", "bufferPosition", ";", "public", "int", "stackPosition", ";", "public", "int", "numDeletions", ";", "public", "int", "symbol", ";", "boolean", "recoveryOnNextStack", ";", "}", "private", "static", "class", "StateInfo", "{", "int", "state", ";", "int", "next", ";", "public", "StateInfo", "(", "int", "state", ",", "int", "next", ")", "{", "this", ".", "state", "=", "state", ";", "this", ".", "next", "=", "next", ";", "}", "}", "public", "DiagnoseParser", "(", "Parser", "parser", ",", "int", "firstToken", ",", "int", "start", ",", "int", "end", ",", "CompilerOptions", "options", ")", "{", "this", "(", "parser", ",", "firstToken", ",", "start", ",", "end", ",", "Util", ".", "EMPTY_INT_ARRAY", ",", "Util", ".", "EMPTY_INT_ARRAY", ",", "Util", ".", "EMPTY_INT_ARRAY", ",", "options", ")", ";", "}", "public", "DiagnoseParser", "(", "Parser", "parser", ",", "int", "firstToken", ",", "int", "start", ",", "int", "end", ",", "int", "[", "]", "intervalStartToSkip", ",", "int", "[", "]", "intervalEndToSkip", ",", "int", "[", "]", "intervalFlagsToSkip", ",", "CompilerOptions", "options", ")", "{", "this", ".", "parser", "=", "parser", ";", "this", ".", "options", "=", "options", ";", "this", ".", "lexStream", "=", "new", "LexStream", "(", "BUFF_SIZE", ",", "parser", ".", "scanner", ",", "intervalStartToSkip", ",", "intervalEndToSkip", ",", "intervalFlagsToSkip", ",", "firstToken", ",", "start", ",", "end", ")", ";", "this", ".", "recoveryScanner", "=", "parser", ".", "recoveryScanner", ";", "}", "private", "ProblemReporter", "problemReporter", "(", ")", "{", "return", "this", ".", "parser", ".", "problemReporter", "(", ")", ";", "}", "private", "void", "reallocateStacks", "(", ")", "{", "int", "old_stack_length", "=", "this", ".", "stackLength", ";", "this", ".", "stackLength", "+=", "STACK_INCREMENT", ";", "if", "(", "old_stack_length", "==", "0", ")", "{", "this", ".", "stack", "=", "new", "int", "[", "this", ".", "stackLength", "]", ";", "this", ".", "locationStack", "=", "new", "int", "[", "this", ".", "stackLength", "]", ";", "this", ".", "locationStartStack", "=", "new", "int", "[", "this", ".", "stackLength", "]", ";", "this", ".", "tempStack", "=", "new", "int", "[", "this", ".", "stackLength", "]", ";", "this", ".", "prevStack", "=", "new", "int", "[", "this", ".", "stackLength", "]", ";", "this", ".", "nextStack", "=", "new", "int", "[", "this", ".", "stackLength", "]", ";", "this", ".", "scopeIndex", "=", "new", "int", "[", "this", ".", "stackLength", "]", ";", "this", ".", "scopePosition", "=", "new", "int", "[", "this", ".", "stackLength", "]", ";", "}", "else", "{", "System", ".", "arraycopy", "(", "this", ".", "stack", ",", "0", ",", "this", ".", "stack", "=", "new", "int", "[", "this", ".", "stackLength", "]", ",", "0", ",", "old_stack_length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "locationStack", ",", "0", ",", "this", ".", "locationStack", "=", "new", "int", "[", "this", ".", "stackLength", "]", ",", "0", ",", "old_stack_length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "locationStartStack", ",", "0", ",", "this", ".", "locationStartStack", "=", "new", "int", "[", "this", ".", "stackLength", "]", ",", "0", ",", "old_stack_length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "tempStack", ",", "0", ",", "this", ".", "tempStack", "=", "new", "int", "[", "this", ".", "stackLength", "]", ",", "0", ",", "old_stack_length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "prevStack", ",", "0", ",", "this", ".", "prevStack", "=", "new", "int", "[", "this", ".", "stackLength", "]", ",", "0", ",", "old_stack_length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "nextStack", ",", "0", ",", "this", ".", "nextStack", "=", "new", "int", "[", "this", ".", "stackLength", "]", ",", "0", ",", "old_stack_length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "scopeIndex", ",", "0", ",", "this", ".", "scopeIndex", "=", "new", "int", "[", "this", ".", "stackLength", "]", ",", "0", ",", "old_stack_length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "scopePosition", ",", "0", ",", "this", ".", "scopePosition", "=", "new", "int", "[", "this", ".", "stackLength", "]", ",", "0", ",", "old_stack_length", ")", ";", "}", "return", ";", "}", "public", "void", "diagnoseParse", "(", "boolean", "record", ")", "{", "this", ".", "reportProblem", "=", "true", ";", "boolean", "oldRecord", "=", "false", ";", "if", "(", "this", ".", "recoveryScanner", "!=", "null", ")", "{", "oldRecord", "=", "this", ".", "recoveryScanner", ".", "record", ";", "this", ".", "recoveryScanner", ".", "record", "=", "record", ";", "}", "try", "{", "this", ".", "lexStream", ".", "reset", "(", ")", ";", "this", ".", "currentToken", "=", "this", ".", "lexStream", ".", "getToken", "(", ")", ";", "int", "prev_pos", ";", "int", "pos", ";", "int", "next_pos", ";", "int", "act", "=", "START_STATE", ";", "reallocateStacks", "(", ")", ";", "this", ".", "stateStackTop", "=", "0", ";", "this", ".", "stack", "[", "this", ".", "stateStackTop", "]", "=", "act", ";", "int", "tok", "=", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "currentToken", ")", ";", "this", ".", "locationStack", "[", "this", ".", "stateStackTop", "]", "=", "this", ".", "currentToken", ";", "this", ".", "locationStartStack", "[", "this", ".", "stateStackTop", "]", "=", "this", ".", "lexStream", ".", "start", "(", "this", ".", "currentToken", ")", ";", "boolean", "forceRecoveryAfterLBracketMissing", "=", "false", ";", "do", "{", "prev_pos", "=", "-", "1", ";", "this", ".", "prevStackTop", "=", "-", "1", ";", "next_pos", "=", "-", "1", ";", "this", ".", "nextStackTop", "=", "-", "1", ";", "pos", "=", "this", ".", "stateStackTop", ";", "this", ".", "tempStackTop", "=", "this", ".", "stateStackTop", "-", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "this", ".", "stateStackTop", ";", "i", "++", ")", "this", ".", "tempStack", "[", "i", "]", "=", "this", ".", "stack", "[", "i", "]", ";", "act", "=", "Parser", ".", "tAction", "(", "act", ",", "tok", ")", ";", "while", "(", "act", "<=", "NUM_RULES", ")", "{", "do", "{", "this", ".", "tempStackTop", "-=", "(", "Parser", ".", "rhs", "[", "act", "]", "-", "1", ")", ";", "act", "=", "Parser", ".", "ntAction", "(", "this", ".", "tempStack", "[", "this", ".", "tempStackTop", "]", ",", "Parser", ".", "lhs", "[", "act", "]", ")", ";", "}", "while", "(", "act", "<=", "NUM_RULES", ")", ";", "if", "(", "this", ".", "tempStackTop", "+", "1", ">=", "this", ".", "stackLength", ")", "reallocateStacks", "(", ")", ";", "pos", "=", "pos", "<", "this", ".", "tempStackTop", "?", "pos", ":", "this", ".", "tempStackTop", ";", "this", ".", "tempStack", "[", "this", ".", "tempStackTop", "+", "1", "]", "=", "act", ";", "act", "=", "Parser", ".", "tAction", "(", "act", ",", "tok", ")", ";", "}", "while", "(", "act", ">", "ERROR_ACTION", "||", "act", "<", "ACCEPT_ACTION", ")", "{", "this", ".", "nextStackTop", "=", "this", ".", "tempStackTop", "+", "1", ";", "for", "(", "int", "i", "=", "next_pos", "+", "1", ";", "i", "<=", "this", ".", "nextStackTop", ";", "i", "++", ")", "this", ".", "nextStack", "[", "i", "]", "=", "this", ".", "tempStack", "[", "i", "]", ";", "for", "(", "int", "i", "=", "pos", "+", "1", ";", "i", "<=", "this", ".", "nextStackTop", ";", "i", "++", ")", "{", "this", ".", "locationStack", "[", "i", "]", "=", "this", ".", "locationStack", "[", "this", ".", "stateStackTop", "]", ";", "this", ".", "locationStartStack", "[", "i", "]", "=", "this", ".", "locationStartStack", "[", "this", ".", "stateStackTop", "]", ";", "}", "if", "(", "act", ">", "ERROR_ACTION", ")", "{", "act", "-=", "ERROR_ACTION", ";", "do", "{", "this", ".", "nextStackTop", "-=", "(", "Parser", ".", "rhs", "[", "act", "]", "-", "1", ")", ";", "act", "=", "Parser", ".", "ntAction", "(", "this", ".", "nextStack", "[", "this", ".", "nextStackTop", "]", ",", "Parser", ".", "lhs", "[", "act", "]", ")", ";", "}", "while", "(", "act", "<=", "NUM_RULES", ")", ";", "pos", "=", "pos", "<", "this", ".", "nextStackTop", "?", "pos", ":", "this", ".", "nextStackTop", ";", "}", "if", "(", "this", ".", "nextStackTop", "+", "1", ">=", "this", ".", "stackLength", ")", "reallocateStacks", "(", ")", ";", "this", ".", "tempStackTop", "=", "this", ".", "nextStackTop", ";", "this", ".", "nextStack", "[", "++", "this", ".", "nextStackTop", "]", "=", "act", ";", "next_pos", "=", "this", ".", "nextStackTop", ";", "this", ".", "currentToken", "=", "this", ".", "lexStream", ".", "getToken", "(", ")", ";", "tok", "=", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "currentToken", ")", ";", "act", "=", "Parser", ".", "tAction", "(", "act", ",", "tok", ")", ";", "while", "(", "act", "<=", "NUM_RULES", ")", "{", "do", "{", "int", "lhs_symbol", "=", "Parser", ".", "lhs", "[", "act", "]", ";", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "Parser", ".", "name", "[", "Parser", ".", "non_terminal_index", "[", "lhs_symbol", "]", "]", ")", ";", "}", "this", ".", "tempStackTop", "-=", "(", "Parser", ".", "rhs", "[", "act", "]", "-", "1", ")", ";", "act", "=", "(", "this", ".", "tempStackTop", ">", "next_pos", "?", "this", ".", "tempStack", "[", "this", ".", "tempStackTop", "]", ":", "this", ".", "nextStack", "[", "this", ".", "tempStackTop", "]", ")", ";", "act", "=", "Parser", ".", "ntAction", "(", "act", ",", "lhs_symbol", ")", ";", "}", "while", "(", "act", "<=", "NUM_RULES", ")", ";", "if", "(", "this", ".", "tempStackTop", "+", "1", ">=", "this", ".", "stackLength", ")", "reallocateStacks", "(", ")", ";", "next_pos", "=", "next_pos", "<", "this", ".", "tempStackTop", "?", "next_pos", ":", "this", ".", "tempStackTop", ";", "this", ".", "tempStack", "[", "this", ".", "tempStackTop", "+", "1", "]", "=", "act", ";", "act", "=", "Parser", ".", "tAction", "(", "act", ",", "tok", ")", ";", "}", "if", "(", "act", "!=", "ERROR_ACTION", ")", "{", "this", ".", "prevStackTop", "=", "this", ".", "stateStackTop", ";", "for", "(", "int", "i", "=", "prev_pos", "+", "1", ";", "i", "<=", "this", ".", "prevStackTop", ";", "i", "++", ")", "this", ".", "prevStack", "[", "i", "]", "=", "this", ".", "stack", "[", "i", "]", ";", "prev_pos", "=", "pos", ";", "this", ".", "stateStackTop", "=", "this", ".", "nextStackTop", ";", "for", "(", "int", "i", "=", "pos", "+", "1", ";", "i", "<=", "this", ".", "stateStackTop", ";", "i", "++", ")", "this", ".", "stack", "[", "i", "]", "=", "this", ".", "nextStack", "[", "i", "]", ";", "this", ".", "locationStack", "[", "this", ".", "stateStackTop", "]", "=", "this", ".", "currentToken", ";", "this", ".", "locationStartStack", "[", "this", ".", "stateStackTop", "]", "=", "this", ".", "lexStream", ".", "start", "(", "this", ".", "currentToken", ")", ";", "pos", "=", "next_pos", ";", "}", "}", "if", "(", "act", "==", "ERROR_ACTION", ")", "{", "RepairCandidate", "candidate", "=", "errorRecovery", "(", "this", ".", "currentToken", ",", "forceRecoveryAfterLBracketMissing", ")", ";", "forceRecoveryAfterLBracketMissing", "=", "false", ";", "if", "(", "this", ".", "parser", ".", "reportOnlyOneSyntaxError", ")", "{", "return", ";", "}", "if", "(", "this", ".", "parser", ".", "problemReporter", "(", ")", ".", "options", ".", "maxProblemsPerUnit", "<", "this", ".", "parser", ".", "compilationUnit", ".", "compilationResult", ".", "problemCount", ")", "{", "if", "(", "this", ".", "recoveryScanner", "==", "null", "||", "!", "this", ".", "recoveryScanner", ".", "record", ")", "return", ";", "this", ".", "reportProblem", "=", "false", ";", "}", "act", "=", "this", ".", "stack", "[", "this", ".", "stateStackTop", "]", ";", "if", "(", "candidate", ".", "symbol", "==", "0", ")", "{", "break", ";", "}", "else", "if", "(", "candidate", ".", "symbol", ">", "NT_OFFSET", ")", "{", "int", "lhs_symbol", "=", "candidate", ".", "symbol", "-", "NT_OFFSET", ";", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "Parser", ".", "name", "[", "Parser", ".", "non_terminal_index", "[", "lhs_symbol", "]", "]", ")", ";", "}", "act", "=", "Parser", ".", "ntAction", "(", "act", ",", "lhs_symbol", ")", ";", "while", "(", "act", "<=", "NUM_RULES", ")", "{", "this", ".", "stateStackTop", "-=", "(", "Parser", ".", "rhs", "[", "act", "]", "-", "1", ")", ";", "act", "=", "Parser", ".", "ntAction", "(", "this", ".", "stack", "[", "this", ".", "stateStackTop", "]", ",", "Parser", ".", "lhs", "[", "act", "]", ")", ";", "}", "this", ".", "stack", "[", "++", "this", ".", "stateStackTop", "]", "=", "act", ";", "this", ".", "currentToken", "=", "this", ".", "lexStream", ".", "getToken", "(", ")", ";", "tok", "=", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "currentToken", ")", ";", "this", ".", "locationStack", "[", "this", ".", "stateStackTop", "]", "=", "this", ".", "currentToken", ";", "this", ".", "locationStartStack", "[", "this", ".", "stateStackTop", "]", "=", "this", ".", "lexStream", ".", "start", "(", "this", ".", "currentToken", ")", ";", "}", "else", "{", "tok", "=", "candidate", ".", "symbol", ";", "this", ".", "locationStack", "[", "this", ".", "stateStackTop", "]", "=", "candidate", ".", "location", ";", "this", ".", "locationStartStack", "[", "this", ".", "stateStackTop", "]", "=", "this", ".", "lexStream", ".", "start", "(", "candidate", ".", "location", ")", ";", "}", "}", "}", "while", "(", "act", "!=", "ACCEPT_ACTION", ")", ";", "}", "finally", "{", "if", "(", "this", ".", "recoveryScanner", "!=", "null", ")", "{", "this", ".", "recoveryScanner", ".", "record", "=", "oldRecord", ";", "}", "}", "return", ";", "}", "private", "static", "char", "[", "]", "displayEscapeCharacters", "(", "char", "[", "]", "tokenSource", ",", "int", "start", ",", "int", "end", ")", "{", "StringBuffer", "tokenSourceBuffer", "=", "new", "StringBuffer", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "start", ";", "i", "++", ")", "{", "tokenSourceBuffer", ".", "append", "(", "tokenSource", "[", "i", "]", ")", ";", "}", "for", "(", "int", "i", "=", "start", ";", "i", "<", "end", ";", "i", "++", ")", "{", "char", "c", "=", "tokenSource", "[", "i", "]", ";", "switch", "(", "c", ")", "{", "case", "'\\r'", ":", "tokenSourceBuffer", ".", "append", "(", "\"\\\\r\"", ")", ";", "break", ";", "case", "'\\n'", ":", "tokenSourceBuffer", ".", "append", "(", "\"\\\\n\"", ")", ";", "break", ";", "case", "'\\b'", ":", "tokenSourceBuffer", ".", "append", "(", "\"\\\\b\"", ")", ";", "break", ";", "case", "'\\t'", ":", "tokenSourceBuffer", ".", "append", "(", "\"t\"", ")", ";", "break", ";", "case", "'\\f'", ":", "tokenSourceBuffer", ".", "append", "(", "\"\\\\f\"", ")", ";", "break", ";", "case", "'\\\"'", ":", "tokenSourceBuffer", ".", "append", "(", "\"\\\\\\\"\"", ")", ";", "break", ";", "case", "'\\''", ":", "tokenSourceBuffer", ".", "append", "(", "\"\\\\'\"", ")", ";", "break", ";", "case", "'\\\\'", ":", "tokenSourceBuffer", ".", "append", "(", "\"\\\\\\\\\"", ")", ";", "break", ";", "default", ":", "tokenSourceBuffer", ".", "append", "(", "c", ")", ";", "}", "}", "for", "(", "int", "i", "=", "end", ";", "i", "<", "tokenSource", ".", "length", ";", "i", "++", ")", "{", "tokenSourceBuffer", ".", "append", "(", "tokenSource", "[", "i", "]", ")", ";", "}", "return", "tokenSourceBuffer", ".", "toString", "(", ")", ".", "toCharArray", "(", ")", ";", "}", "private", "RepairCandidate", "errorRecovery", "(", "int", "error_token", ",", "boolean", "forcedError", ")", "{", "this", ".", "errorToken", "=", "error_token", ";", "this", ".", "errorTokenStart", "=", "this", ".", "lexStream", ".", "start", "(", "error_token", ")", ";", "int", "prevtok", "=", "this", ".", "lexStream", ".", "previous", "(", "error_token", ")", ";", "int", "prevtokKind", "=", "this", ".", "lexStream", ".", "kind", "(", "prevtok", ")", ";", "if", "(", "forcedError", ")", "{", "int", "name_index", "=", "Parser", ".", "terminal_index", "[", "TokenNameLBRACE", "]", ";", "reportError", "(", "INSERTION_CODE", ",", "name_index", ",", "prevtok", ",", "prevtok", ")", ";", "RepairCandidate", "candidate", "=", "new", "RepairCandidate", "(", ")", ";", "candidate", ".", "symbol", "=", "TokenNameLBRACE", ";", "candidate", ".", "location", "=", "error_token", ";", "this", ".", "lexStream", ".", "reset", "(", "error_token", ")", ";", "this", ".", "stateStackTop", "=", "this", ".", "nextStackTop", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<=", "this", ".", "stateStackTop", ";", "j", "++", ")", "{", "this", ".", "stack", "[", "j", "]", "=", "this", ".", "nextStack", "[", "j", "]", ";", "}", "this", ".", "locationStack", "[", "this", ".", "stateStackTop", "]", "=", "error_token", ";", "this", ".", "locationStartStack", "[", "this", ".", "stateStackTop", "]", "=", "this", ".", "lexStream", ".", "start", "(", "error_token", ")", ";", "return", "candidate", ";", "}", "RepairCandidate", "candidate", "=", "primaryPhase", "(", "error_token", ")", ";", "if", "(", "candidate", ".", "symbol", "!=", "0", ")", "{", "return", "candidate", ";", "}", "candidate", "=", "secondaryPhase", "(", "error_token", ")", ";", "if", "(", "candidate", ".", "symbol", "!=", "0", ")", "{", "return", "candidate", ";", "}", "if", "(", "this", ".", "lexStream", ".", "kind", "(", "error_token", ")", "==", "EOFT_SYMBOL", ")", "{", "reportError", "(", "EOF_CODE", ",", "Parser", ".", "terminal_index", "[", "EOFT_SYMBOL", "]", ",", "prevtok", ",", "prevtok", ")", ";", "candidate", ".", "symbol", "=", "0", ";", "candidate", ".", "location", "=", "error_token", ";", "return", "candidate", ";", "}", "while", "(", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "buffer", "[", "BUFF_UBOUND", "]", ")", "!=", "EOFT_SYMBOL", ")", "{", "candidate", "=", "secondaryPhase", "(", "this", ".", "buffer", "[", "MAX_DISTANCE", "-", "MIN_DISTANCE", "+", "2", "]", ")", ";", "if", "(", "candidate", ".", "symbol", "!=", "0", ")", "{", "return", "candidate", ";", "}", "}", "int", "i", ";", "for", "(", "i", "=", "BUFF_UBOUND", ";", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "buffer", "[", "i", "]", ")", "==", "EOFT_SYMBOL", ";", "i", "--", ")", "{", "}", "reportError", "(", "DELETION_CODE", ",", "Parser", ".", "terminal_index", "[", "prevtokKind", "]", ",", "error_token", ",", "this", ".", "buffer", "[", "i", "]", ")", ";", "candidate", ".", "symbol", "=", "0", ";", "candidate", ".", "location", "=", "this", ".", "buffer", "[", "i", "]", ";", "return", "candidate", ";", "}", "private", "RepairCandidate", "primaryPhase", "(", "int", "error_token", ")", "{", "PrimaryRepairInfo", "repair", "=", "new", "PrimaryRepairInfo", "(", ")", ";", "RepairCandidate", "candidate", "=", "new", "RepairCandidate", "(", ")", ";", "int", "i", "=", "(", "this", ".", "nextStackTop", ">=", "0", "?", "3", ":", "2", ")", ";", "this", ".", "buffer", "[", "i", "]", "=", "error_token", ";", "for", "(", "int", "j", "=", "i", ";", "j", ">", "0", ";", "j", "--", ")", "this", ".", "buffer", "[", "j", "-", "1", "]", "=", "this", ".", "lexStream", ".", "previous", "(", "this", ".", "buffer", "[", "j", "]", ")", ";", "for", "(", "int", "k", "=", "i", "+", "1", ";", "k", "<", "BUFF_SIZE", ";", "k", "++", ")", "this", ".", "buffer", "[", "k", "]", "=", "this", ".", "lexStream", ".", "next", "(", "this", ".", "buffer", "[", "k", "-", "1", "]", ")", ";", "if", "(", "this", ".", "nextStackTop", ">=", "0", ")", "{", "repair", ".", "bufferPosition", "=", "3", ";", "repair", "=", "checkPrimaryDistance", "(", "this", ".", "nextStack", ",", "this", ".", "nextStackTop", ",", "repair", ")", ";", "}", "PrimaryRepairInfo", "new_repair", "=", "repair", ".", "copy", "(", ")", ";", "new_repair", ".", "bufferPosition", "=", "2", ";", "new_repair", "=", "checkPrimaryDistance", "(", "this", ".", "stack", ",", "this", ".", "stateStackTop", ",", "new_repair", ")", ";", "if", "(", "new_repair", ".", "distance", ">", "repair", ".", "distance", "||", "new_repair", ".", "misspellIndex", ">", "repair", ".", "misspellIndex", ")", "{", "repair", "=", "new_repair", ";", "}", "if", "(", "this", ".", "prevStackTop", ">=", "0", ")", "{", "new_repair", "=", "repair", ".", "copy", "(", ")", ";", "new_repair", ".", "bufferPosition", "=", "1", ";", "new_repair", "=", "checkPrimaryDistance", "(", "this", ".", "prevStack", ",", "this", ".", "prevStackTop", ",", "new_repair", ")", ";", "if", "(", "new_repair", ".", "distance", ">", "repair", ".", "distance", "||", "new_repair", ".", "misspellIndex", ">", "repair", ".", "misspellIndex", ")", "{", "repair", "=", "new_repair", ";", "}", "}", "if", "(", "this", ".", "nextStackTop", ">=", "0", ")", "{", "if", "(", "secondaryCheck", "(", "this", ".", "nextStack", ",", "this", ".", "nextStackTop", ",", "3", ",", "repair", ".", "distance", ")", ")", "{", "return", "candidate", ";", "}", "}", "else", "if", "(", "secondaryCheck", "(", "this", ".", "stack", ",", "this", ".", "stateStackTop", ",", "2", ",", "repair", ".", "distance", ")", ")", "{", "return", "candidate", ";", "}", "repair", ".", "distance", "=", "repair", ".", "distance", "-", "repair", ".", "bufferPosition", "+", "1", ";", "if", "(", "repair", ".", "code", "==", "INVALID_CODE", "||", "repair", ".", "code", "==", "DELETION_CODE", "||", "repair", ".", "code", "==", "SUBSTITUTION_CODE", "||", "repair", ".", "code", "==", "MERGE_CODE", ")", "{", "repair", ".", "distance", "--", ";", "}", "if", "(", "repair", ".", "distance", "<", "MIN_DISTANCE", ")", "{", "return", "candidate", ";", "}", "if", "(", "repair", ".", "code", "==", "INSERTION_CODE", ")", "{", "if", "(", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "-", "1", "]", "==", "0", ")", "{", "repair", ".", "code", "=", "BEFORE_CODE", ";", "}", "}", "if", "(", "repair", ".", "bufferPosition", "==", "1", ")", "{", "this", ".", "stateStackTop", "=", "this", ".", "prevStackTop", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<=", "this", ".", "stateStackTop", ";", "j", "++", ")", "{", "this", ".", "stack", "[", "j", "]", "=", "this", ".", "prevStack", "[", "j", "]", ";", "}", "}", "else", "if", "(", "this", ".", "nextStackTop", ">=", "0", "&&", "repair", ".", "bufferPosition", ">=", "3", ")", "{", "this", ".", "stateStackTop", "=", "this", ".", "nextStackTop", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<=", "this", ".", "stateStackTop", ";", "j", "++", ")", "{", "this", ".", "stack", "[", "j", "]", "=", "this", ".", "nextStack", "[", "j", "]", ";", "}", "this", ".", "locationStack", "[", "this", ".", "stateStackTop", "]", "=", "this", ".", "buffer", "[", "3", "]", ";", "this", ".", "locationStartStack", "[", "this", ".", "stateStackTop", "]", "=", "this", ".", "lexStream", ".", "start", "(", "this", ".", "buffer", "[", "3", "]", ")", ";", "}", "return", "primaryDiagnosis", "(", "repair", ")", ";", "}", "private", "int", "mergeCandidate", "(", "int", "state", ",", "int", "buffer_position", ")", "{", "char", "[", "]", "name1", "=", "this", ".", "lexStream", ".", "name", "(", "this", ".", "buffer", "[", "buffer_position", "]", ")", ";", "char", "[", "]", "name2", "=", "this", ".", "lexStream", ".", "name", "(", "this", ".", "buffer", "[", "buffer_position", "+", "1", "]", ")", ";", "int", "len", "=", "name1", ".", "length", "+", "name2", ".", "length", ";", "char", "[", "]", "str", "=", "CharOperation", ".", "concat", "(", "name1", ",", "name2", ")", ";", "for", "(", "int", "k", "=", "Parser", ".", "asi", "(", "state", ")", ";", "Parser", ".", "asr", "[", "k", "]", "!=", "0", ";", "k", "++", ")", "{", "int", "l", "=", "Parser", ".", "terminal_index", "[", "Parser", ".", "asr", "[", "k", "]", "]", ";", "if", "(", "len", "==", "Parser", ".", "name", "[", "l", "]", ".", "length", "(", ")", ")", "{", "char", "[", "]", "name", "=", "Parser", ".", "name", "[", "l", "]", ".", "toCharArray", "(", ")", ";", "if", "(", "CharOperation", ".", "equals", "(", "str", ",", "name", ",", "false", ")", ")", "{", "return", "Parser", ".", "asr", "[", "k", "]", ";", "}", "}", "}", "return", "0", ";", "}", "private", "PrimaryRepairInfo", "checkPrimaryDistance", "(", "int", "stck", "[", "]", ",", "int", "stack_top", ",", "PrimaryRepairInfo", "repair", ")", "{", "int", "i", ",", "j", ",", "k", ",", "next_state", ",", "max_pos", ",", "act", ",", "root", ",", "symbol", ",", "tok", ";", "PrimaryRepairInfo", "scope_repair", "=", "scopeTrial", "(", "stck", ",", "stack_top", ",", "repair", ".", "copy", "(", ")", ")", ";", "if", "(", "scope_repair", ".", "distance", ">", "repair", ".", "distance", ")", "repair", "=", "scope_repair", ";", "if", "(", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "]", "!=", "0", "&&", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "+", "1", "]", "!=", "0", ")", "{", "symbol", "=", "mergeCandidate", "(", "stck", "[", "stack_top", "]", ",", "repair", ".", "bufferPosition", ")", ";", "if", "(", "symbol", "!=", "0", ")", "{", "j", "=", "parseCheck", "(", "stck", ",", "stack_top", ",", "symbol", ",", "repair", ".", "bufferPosition", "+", "2", ")", ";", "if", "(", "(", "j", ">", "repair", ".", "distance", ")", "||", "(", "j", "==", "repair", ".", "distance", "&&", "repair", ".", "misspellIndex", "<", "10", ")", ")", "{", "repair", ".", "misspellIndex", "=", "10", ";", "repair", ".", "symbol", "=", "symbol", ";", "repair", ".", "distance", "=", "j", ";", "repair", ".", "code", "=", "MERGE_CODE", ";", "}", "}", "}", "j", "=", "parseCheck", "(", "stck", ",", "stack_top", ",", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "+", "1", "]", ")", ",", "repair", ".", "bufferPosition", "+", "2", ")", ";", "if", "(", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "]", ")", "==", "EOLT_SYMBOL", "&&", "this", ".", "lexStream", ".", "afterEol", "(", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "+", "1", "]", ")", ")", "{", "k", "=", "10", ";", "}", "else", "{", "k", "=", "0", ";", "}", "if", "(", "j", ">", "repair", ".", "distance", "||", "(", "j", "==", "repair", ".", "distance", "&&", "k", ">", "repair", ".", "misspellIndex", ")", ")", "{", "repair", ".", "misspellIndex", "=", "k", ";", "repair", ".", "code", "=", "DELETION_CODE", ";", "repair", ".", "distance", "=", "j", ";", "}", "next_state", "=", "stck", "[", "stack_top", "]", ";", "max_pos", "=", "stack_top", ";", "this", ".", "tempStackTop", "=", "stack_top", "-", "1", ";", "tok", "=", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "]", ")", ";", "this", ".", "lexStream", ".", "reset", "(", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "+", "1", "]", ")", ";", "act", "=", "Parser", ".", "tAction", "(", "next_state", ",", "tok", ")", ";", "while", "(", "act", "<=", "NUM_RULES", ")", "{", "do", "{", "this", ".", "tempStackTop", "-=", "(", "Parser", ".", "rhs", "[", "act", "]", "-", "1", ")", ";", "symbol", "=", "Parser", ".", "lhs", "[", "act", "]", ";", "act", "=", "(", "this", ".", "tempStackTop", ">", "max_pos", "?", "this", ".", "tempStack", "[", "this", ".", "tempStackTop", "]", ":", "stck", "[", "this", ".", "tempStackTop", "]", ")", ";", "act", "=", "Parser", ".", "ntAction", "(", "act", ",", "symbol", ")", ";", "}", "while", "(", "act", "<=", "NUM_RULES", ")", ";", "max_pos", "=", "max_pos", "<", "this", ".", "tempStackTop", "?", "max_pos", ":", "this", ".", "tempStackTop", ";", "this", ".", "tempStack", "[", "this", ".", "tempStackTop", "+", "1", "]", "=", "act", ";", "next_state", "=", "act", ";", "act", "=", "Parser", ".", "tAction", "(", "next_state", ",", "tok", ")", ";", "}", "root", "=", "0", ";", "for", "(", "i", "=", "Parser", ".", "asi", "(", "next_state", ")", ";", "Parser", ".", "asr", "[", "i", "]", "!=", "0", ";", "i", "++", ")", "{", "symbol", "=", "Parser", ".", "asr", "[", "i", "]", ";", "if", "(", "symbol", "!=", "EOFT_SYMBOL", "&&", "symbol", "!=", "ERROR_SYMBOL", ")", "{", "if", "(", "root", "==", "0", ")", "{", "this", ".", "list", "[", "symbol", "]", "=", "symbol", ";", "}", "else", "{", "this", ".", "list", "[", "symbol", "]", "=", "this", ".", "list", "[", "root", "]", ";", "this", ".", "list", "[", "root", "]", "=", "symbol", ";", "}", "root", "=", "symbol", ";", "}", "}", "if", "(", "stck", "[", "stack_top", "]", "!=", "next_state", ")", "{", "for", "(", "i", "=", "Parser", ".", "asi", "(", "stck", "[", "stack_top", "]", ")", ";", "Parser", ".", "asr", "[", "i", "]", "!=", "0", ";", "i", "++", ")", "{", "symbol", "=", "Parser", ".", "asr", "[", "i", "]", ";", "if", "(", "symbol", "!=", "EOFT_SYMBOL", "&&", "symbol", "!=", "ERROR_SYMBOL", "&&", "this", ".", "list", "[", "symbol", "]", "==", "0", ")", "{", "if", "(", "root", "==", "0", ")", "{", "this", ".", "list", "[", "symbol", "]", "=", "symbol", ";", "}", "else", "{", "this", ".", "list", "[", "symbol", "]", "=", "this", ".", "list", "[", "root", "]", ";", "this", ".", "list", "[", "root", "]", "=", "symbol", ";", "}", "root", "=", "symbol", ";", "}", "}", "}", "i", "=", "this", ".", "list", "[", "root", "]", ";", "this", ".", "list", "[", "root", "]", "=", "0", ";", "root", "=", "i", ";", "symbol", "=", "root", ";", "while", "(", "symbol", "!=", "0", ")", "{", "if", "(", "symbol", "==", "EOLT_SYMBOL", "&&", "this", ".", "lexStream", ".", "afterEol", "(", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "]", ")", ")", "{", "k", "=", "10", ";", "}", "else", "{", "k", "=", "0", ";", "}", "j", "=", "parseCheck", "(", "stck", ",", "stack_top", ",", "symbol", ",", "repair", ".", "bufferPosition", ")", ";", "if", "(", "j", ">", "repair", ".", "distance", ")", "{", "repair", ".", "misspellIndex", "=", "k", ";", "repair", ".", "distance", "=", "j", ";", "repair", ".", "symbol", "=", "symbol", ";", "repair", ".", "code", "=", "INSERTION_CODE", ";", "}", "else", "if", "(", "j", "==", "repair", ".", "distance", "&&", "k", ">", "repair", ".", "misspellIndex", ")", "{", "repair", ".", "misspellIndex", "=", "k", ";", "repair", ".", "distance", "=", "j", ";", "repair", ".", "symbol", "=", "symbol", ";", "repair", ".", "code", "=", "INSERTION_CODE", ";", "}", "symbol", "=", "this", ".", "list", "[", "symbol", "]", ";", "}", "symbol", "=", "root", ";", "if", "(", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "]", "!=", "0", ")", "{", "while", "(", "symbol", "!=", "0", ")", "{", "if", "(", "symbol", "==", "EOLT_SYMBOL", "&&", "this", ".", "lexStream", ".", "afterEol", "(", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "+", "1", "]", ")", ")", "{", "k", "=", "10", ";", "}", "else", "{", "k", "=", "misspell", "(", "symbol", ",", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "]", ")", ";", "}", "j", "=", "parseCheck", "(", "stck", ",", "stack_top", ",", "symbol", ",", "repair", ".", "bufferPosition", "+", "1", ")", ";", "if", "(", "j", ">", "repair", ".", "distance", ")", "{", "repair", ".", "misspellIndex", "=", "k", ";", "repair", ".", "distance", "=", "j", ";", "repair", ".", "symbol", "=", "symbol", ";", "repair", ".", "code", "=", "SUBSTITUTION_CODE", ";", "}", "else", "if", "(", "j", "==", "repair", ".", "distance", "&&", "k", ">", "repair", ".", "misspellIndex", ")", "{", "repair", ".", "misspellIndex", "=", "k", ";", "repair", ".", "symbol", "=", "symbol", ";", "repair", ".", "code", "=", "SUBSTITUTION_CODE", ";", "}", "i", "=", "symbol", ";", "symbol", "=", "this", ".", "list", "[", "symbol", "]", ";", "this", ".", "list", "[", "i", "]", "=", "0", ";", "}", "}", "for", "(", "i", "=", "Parser", ".", "nasi", "(", "stck", "[", "stack_top", "]", ")", ";", "Parser", ".", "nasr", "[", "i", "]", "!=", "0", ";", "i", "++", ")", "{", "symbol", "=", "Parser", ".", "nasr", "[", "i", "]", "+", "NT_OFFSET", ";", "j", "=", "parseCheck", "(", "stck", ",", "stack_top", ",", "symbol", ",", "repair", ".", "bufferPosition", "+", "1", ")", ";", "if", "(", "j", ">", "repair", ".", "distance", ")", "{", "repair", ".", "misspellIndex", "=", "0", ";", "repair", ".", "distance", "=", "j", ";", "repair", ".", "symbol", "=", "symbol", ";", "repair", ".", "code", "=", "INVALID_CODE", ";", "}", "j", "=", "parseCheck", "(", "stck", ",", "stack_top", ",", "symbol", ",", "repair", ".", "bufferPosition", ")", ";", "if", "(", "(", "j", ">", "repair", ".", "distance", ")", "||", "(", "j", "==", "repair", ".", "distance", "&&", "repair", ".", "code", "==", "INVALID_CODE", ")", ")", "{", "repair", ".", "misspellIndex", "=", "0", ";", "repair", ".", "distance", "=", "j", ";", "repair", ".", "symbol", "=", "symbol", ";", "repair", ".", "code", "=", "INSERTION_CODE", ";", "}", "}", "return", "repair", ";", "}", "private", "RepairCandidate", "primaryDiagnosis", "(", "PrimaryRepairInfo", "repair", ")", "{", "int", "name_index", ";", "int", "prevtok", "=", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "-", "1", "]", ";", "int", "curtok", "=", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "]", ";", "switch", "(", "repair", ".", "code", ")", "{", "case", "INSERTION_CODE", ":", "case", "BEFORE_CODE", ":", "{", "if", "(", "repair", ".", "symbol", ">", "NT_OFFSET", ")", "name_index", "=", "getNtermIndex", "(", "this", ".", "stack", "[", "this", ".", "stateStackTop", "]", ",", "repair", ".", "symbol", ",", "repair", ".", "bufferPosition", ")", ";", "else", "name_index", "=", "getTermIndex", "(", "this", ".", "stack", ",", "this", ".", "stateStackTop", ",", "repair", ".", "symbol", ",", "repair", ".", "bufferPosition", ")", ";", "int", "t", "=", "(", "repair", ".", "code", "==", "INSERTION_CODE", "?", "prevtok", ":", "curtok", ")", ";", "reportError", "(", "repair", ".", "code", ",", "name_index", ",", "t", ",", "t", ")", ";", "break", ";", "}", "case", "INVALID_CODE", ":", "{", "name_index", "=", "getNtermIndex", "(", "this", ".", "stack", "[", "this", ".", "stateStackTop", "]", ",", "repair", ".", "symbol", ",", "repair", ".", "bufferPosition", "+", "1", ")", ";", "reportError", "(", "repair", ".", "code", ",", "name_index", ",", "curtok", ",", "curtok", ")", ";", "break", ";", "}", "case", "SUBSTITUTION_CODE", ":", "{", "if", "(", "repair", ".", "misspellIndex", ">=", "6", ")", "name_index", "=", "Parser", ".", "terminal_index", "[", "repair", ".", "symbol", "]", ";", "else", "{", "name_index", "=", "getTermIndex", "(", "this", ".", "stack", ",", "this", ".", "stateStackTop", ",", "repair", ".", "symbol", ",", "repair", ".", "bufferPosition", "+", "1", ")", ";", "if", "(", "name_index", "!=", "Parser", ".", "terminal_index", "[", "repair", ".", "symbol", "]", ")", "repair", ".", "code", "=", "INVALID_CODE", ";", "}", "reportError", "(", "repair", ".", "code", ",", "name_index", ",", "curtok", ",", "curtok", ")", ";", "break", ";", "}", "case", "MERGE_CODE", ":", "{", "reportError", "(", "repair", ".", "code", ",", "Parser", ".", "terminal_index", "[", "repair", ".", "symbol", "]", ",", "curtok", ",", "this", ".", "lexStream", ".", "next", "(", "curtok", ")", ")", ";", "break", ";", "}", "case", "SCOPE_CODE", ":", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "scopeStackTop", ";", "i", "++", ")", "{", "reportError", "(", "repair", ".", "code", ",", "-", "this", ".", "scopeIndex", "[", "i", "]", ",", "this", ".", "locationStack", "[", "this", ".", "scopePosition", "[", "i", "]", "]", ",", "prevtok", ",", "Parser", ".", "non_terminal_index", "[", "Parser", ".", "scope_lhs", "[", "this", ".", "scopeIndex", "[", "i", "]", "]", "]", ")", ";", "}", "repair", ".", "symbol", "=", "Parser", ".", "scope_lhs", "[", "this", ".", "scopeIndex", "[", "this", ".", "scopeStackTop", "]", "]", "+", "NT_OFFSET", ";", "this", ".", "stateStackTop", "=", "this", ".", "scopePosition", "[", "this", ".", "scopeStackTop", "]", ";", "reportError", "(", "repair", ".", "code", ",", "-", "this", ".", "scopeIndex", "[", "this", ".", "scopeStackTop", "]", ",", "this", ".", "locationStack", "[", "this", ".", "scopePosition", "[", "this", ".", "scopeStackTop", "]", "]", ",", "prevtok", ",", "getNtermIndex", "(", "this", ".", "stack", "[", "this", ".", "stateStackTop", "]", ",", "repair", ".", "symbol", ",", "repair", ".", "bufferPosition", ")", ")", ";", "break", ";", "}", "default", ":", "{", "reportError", "(", "repair", ".", "code", ",", "Parser", ".", "terminal_index", "[", "ERROR_SYMBOL", "]", ",", "curtok", ",", "curtok", ")", ";", "}", "}", "RepairCandidate", "candidate", "=", "new", "RepairCandidate", "(", ")", ";", "switch", "(", "repair", ".", "code", ")", "{", "case", "INSERTION_CODE", ":", "case", "BEFORE_CODE", ":", "case", "SCOPE_CODE", ":", "{", "candidate", ".", "symbol", "=", "repair", ".", "symbol", ";", "candidate", ".", "location", "=", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "]", ";", "this", ".", "lexStream", ".", "reset", "(", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "]", ")", ";", "break", ";", "}", "case", "INVALID_CODE", ":", "case", "SUBSTITUTION_CODE", ":", "{", "candidate", ".", "symbol", "=", "repair", ".", "symbol", ";", "candidate", ".", "location", "=", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "]", ";", "this", ".", "lexStream", ".", "reset", "(", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "+", "1", "]", ")", ";", "break", ";", "}", "case", "MERGE_CODE", ":", "{", "candidate", ".", "symbol", "=", "repair", ".", "symbol", ";", "candidate", ".", "location", "=", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "]", ";", "this", ".", "lexStream", ".", "reset", "(", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "+", "2", "]", ")", ";", "break", ";", "}", "default", ":", "{", "candidate", ".", "location", "=", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "+", "1", "]", ";", "candidate", ".", "symbol", "=", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "+", "1", "]", ")", ";", "this", ".", "lexStream", ".", "reset", "(", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "+", "2", "]", ")", ";", "break", ";", "}", "}", "return", "candidate", ";", "}", "private", "int", "getTermIndex", "(", "int", "stck", "[", "]", ",", "int", "stack_top", ",", "int", "tok", ",", "int", "buffer_position", ")", "{", "int", "act", "=", "stck", "[", "stack_top", "]", ",", "max_pos", "=", "stack_top", ",", "highest_symbol", "=", "tok", ";", "this", ".", "tempStackTop", "=", "stack_top", "-", "1", ";", "this", ".", "lexStream", ".", "reset", "(", "this", ".", "buffer", "[", "buffer_position", "]", ")", ";", "act", "=", "Parser", ".", "tAction", "(", "act", ",", "tok", ")", ";", "while", "(", "act", "<=", "NUM_RULES", ")", "{", "do", "{", "this", ".", "tempStackTop", "-=", "(", "Parser", ".", "rhs", "[", "act", "]", "-", "1", ")", ";", "int", "lhs_symbol", "=", "Parser", ".", "lhs", "[", "act", "]", ";", "act", "=", "(", "this", ".", "tempStackTop", ">", "max_pos", "?", "this", ".", "tempStack", "[", "this", ".", "tempStackTop", "]", ":", "stck", "[", "this", ".", "tempStackTop", "]", ")", ";", "act", "=", "Parser", ".", "ntAction", "(", "act", ",", "lhs_symbol", ")", ";", "}", "while", "(", "act", "<=", "NUM_RULES", ")", ";", "max_pos", "=", "max_pos", "<", "this", ".", "tempStackTop", "?", "max_pos", ":", "this", ".", "tempStackTop", ";", "this", ".", "tempStack", "[", "this", ".", "tempStackTop", "+", "1", "]", "=", "act", ";", "act", "=", "Parser", ".", "tAction", "(", "act", ",", "tok", ")", ";", "}", "this", ".", "tempStackTop", "++", ";", "int", "threshold", "=", "this", ".", "tempStackTop", ";", "tok", "=", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "buffer", "[", "buffer_position", "]", ")", ";", "this", ".", "lexStream", ".", "reset", "(", "this", ".", "buffer", "[", "buffer_position", "+", "1", "]", ")", ";", "if", "(", "act", ">", "ERROR_ACTION", ")", "{", "act", "-=", "ERROR_ACTION", ";", "}", "else", "{", "this", ".", "tempStack", "[", "this", ".", "tempStackTop", "+", "1", "]", "=", "act", ";", "act", "=", "Parser", ".", "tAction", "(", "act", ",", "tok", ")", ";", "}", "while", "(", "act", "<=", "NUM_RULES", ")", "{", "do", "{", "this", ".", "tempStackTop", "-=", "(", "Parser", ".", "rhs", "[", "act", "]", "-", "1", ")", ";", "if", "(", "this", ".", "tempStackTop", "<", "threshold", ")", "{", "return", "(", "highest_symbol", ">", "NT_OFFSET", "?", "Parser", ".", "non_terminal_index", "[", "highest_symbol", "-", "NT_OFFSET", "]", ":", "Parser", ".", "terminal_index", "[", "highest_symbol", "]", ")", ";", "}", "int", "lhs_symbol", "=", "Parser", ".", "lhs", "[", "act", "]", ";", "if", "(", "this", ".", "tempStackTop", "==", "threshold", ")", "highest_symbol", "=", "lhs_symbol", "+", "NT_OFFSET", ";", "act", "=", "(", "this", ".", "tempStackTop", ">", "max_pos", "?", "this", ".", "tempStack", "[", "this", ".", "tempStackTop", "]", ":", "stck", "[", "this", ".", "tempStackTop", "]", ")", ";", "act", "=", "Parser", ".", "ntAction", "(", "act", ",", "lhs_symbol", ")", ";", "}", "while", "(", "act", "<=", "NUM_RULES", ")", ";", "this", ".", "tempStack", "[", "this", ".", "tempStackTop", "+", "1", "]", "=", "act", ";", "act", "=", "Parser", ".", "tAction", "(", "act", ",", "tok", ")", ";", "}", "return", "(", "highest_symbol", ">", "NT_OFFSET", "?", "Parser", ".", "non_terminal_index", "[", "highest_symbol", "-", "NT_OFFSET", "]", ":", "Parser", ".", "terminal_index", "[", "highest_symbol", "]", ")", ";", "}", "private", "int", "getNtermIndex", "(", "int", "start", ",", "int", "sym", ",", "int", "buffer_position", ")", "{", "int", "highest_symbol", "=", "sym", "-", "NT_OFFSET", ",", "tok", "=", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "buffer", "[", "buffer_position", "]", ")", ";", "this", ".", "lexStream", ".", "reset", "(", "this", ".", "buffer", "[", "buffer_position", "+", "1", "]", ")", ";", "this", ".", "tempStackTop", "=", "0", ";", "this", ".", "tempStack", "[", "this", ".", "tempStackTop", "]", "=", "start", ";", "int", "act", "=", "Parser", ".", "ntAction", "(", "start", ",", "highest_symbol", ")", ";", "if", "(", "act", ">", "NUM_RULES", ")", "{", "this", ".", "tempStack", "[", "this", ".", "tempStackTop", "+", "1", "]", "=", "act", ";", "act", "=", "Parser", ".", "tAction", "(", "act", ",", "tok", ")", ";", "}", "while", "(", "act", "<=", "NUM_RULES", ")", "{", "do", "{", "this", ".", "tempStackTop", "-=", "(", "Parser", ".", "rhs", "[", "act", "]", "-", "1", ")", ";", "if", "(", "this", ".", "tempStackTop", "<", "0", ")", "return", "Parser", ".", "non_terminal_index", "[", "highest_symbol", "]", ";", "if", "(", "this", ".", "tempStackTop", "==", "0", ")", "highest_symbol", "=", "Parser", ".", "lhs", "[", "act", "]", ";", "act", "=", "Parser", ".", "ntAction", "(", "this", ".", "tempStack", "[", "this", ".", "tempStackTop", "]", ",", "Parser", ".", "lhs", "[", "act", "]", ")", ";", "}", "while", "(", "act", "<=", "NUM_RULES", ")", ";", "this", ".", "tempStack", "[", "this", ".", "tempStackTop", "+", "1", "]", "=", "act", ";", "act", "=", "Parser", ".", "tAction", "(", "act", ",", "tok", ")", ";", "}", "return", "Parser", ".", "non_terminal_index", "[", "highest_symbol", "]", ";", "}", "private", "int", "misspell", "(", "int", "sym", ",", "int", "tok", ")", "{", "char", "[", "]", "name", "=", "Parser", ".", "name", "[", "Parser", ".", "terminal_index", "[", "sym", "]", "]", ".", "toCharArray", "(", ")", ";", "int", "n", "=", "name", ".", "length", ";", "char", "[", "]", "s1", "=", "new", "char", "[", "n", "+", "1", "]", ";", "for", "(", "int", "k", "=", "0", ";", "k", "<", "n", ";", "k", "++", ")", "{", "char", "c", "=", "name", "[", "k", "]", ";", "s1", "[", "k", "]", "=", "ScannerHelper", ".", "toLowerCase", "(", "c", ")", ";", "}", "s1", "[", "n", "]", "=", "'\\0'", ";", "char", "[", "]", "tokenName", "=", "this", ".", "lexStream", ".", "name", "(", "tok", ")", ";", "int", "len", "=", "tokenName", ".", "length", ";", "int", "m", "=", "len", "<", "MAX_NAME_LENGTH", "?", "len", ":", "MAX_NAME_LENGTH", ";", "char", "[", "]", "s2", "=", "new", "char", "[", "m", "+", "1", "]", ";", "for", "(", "int", "k", "=", "0", ";", "k", "<", "m", ";", "k", "++", ")", "{", "char", "c", "=", "tokenName", "[", "k", "]", ";", "s2", "[", "k", "]", "=", "ScannerHelper", ".", "toLowerCase", "(", "c", ")", ";", "}", "s2", "[", "m", "]", "=", "'\\0'", ";", "if", "(", "n", "==", "1", "&&", "m", "==", "1", ")", "{", "if", "(", "(", "s1", "[", "0", "]", "==", "';'", "&&", "s2", "[", "0", "]", "==", "','", ")", "||", "(", "s1", "[", "0", "]", "==", "','", "&&", "s2", "[", "0", "]", "==", "';'", ")", "||", "(", "s1", "[", "0", "]", "==", "';'", "&&", "s2", "[", "0", "]", "==", "':'", ")", "||", "(", "s1", "[", "0", "]", "==", "':'", "&&", "s2", "[", "0", "]", "==", "';'", ")", "||", "(", "s1", "[", "0", "]", "==", "'.'", "&&", "s2", "[", "0", "]", "==", "','", ")", "||", "(", "s1", "[", "0", "]", "==", "','", "&&", "s2", "[", "0", "]", "==", "'.'", ")", "||", "(", "s1", "[", "0", "]", "==", "'\\''", "&&", "s2", "[", "0", "]", "==", "'\\\"'", ")", "||", "(", "s1", "[", "0", "]", "==", "'\\\"'", "&&", "s2", "[", "0", "]", "==", "'\\''", ")", ")", "{", "return", "3", ";", "}", "}", "int", "count", "=", "0", ";", "int", "prefix_length", "=", "0", ";", "int", "num_errors", "=", "0", ";", "int", "i", "=", "0", ";", "int", "j", "=", "0", ";", "while", "(", "(", "i", "<", "n", ")", "&&", "(", "j", "<", "m", ")", ")", "{", "if", "(", "s1", "[", "i", "]", "==", "s2", "[", "j", "]", ")", "{", "count", "++", ";", "i", "++", ";", "j", "++", ";", "if", "(", "num_errors", "==", "0", ")", "{", "prefix_length", "++", ";", "}", "}", "else", "if", "(", "s1", "[", "i", "+", "1", "]", "==", "s2", "[", "j", "]", "&&", "s1", "[", "i", "]", "==", "s2", "[", "j", "+", "1", "]", ")", "{", "count", "+=", "2", ";", "i", "+=", "2", ";", "j", "+=", "2", ";", "num_errors", "++", ";", "}", "else", "if", "(", "s1", "[", "i", "+", "1", "]", "==", "s2", "[", "j", "+", "1", "]", ")", "{", "i", "++", ";", "j", "++", ";", "num_errors", "++", ";", "}", "else", "{", "if", "(", "(", "n", "-", "i", ")", ">", "(", "m", "-", "j", ")", ")", "{", "i", "++", ";", "}", "else", "if", "(", "(", "m", "-", "j", ")", ">", "(", "n", "-", "i", ")", ")", "{", "j", "++", ";", "}", "else", "{", "i", "++", ";", "j", "++", ";", "}", "num_errors", "++", ";", "}", "}", "if", "(", "i", "<", "n", "||", "j", "<", "m", ")", "num_errors", "++", ";", "if", "(", "num_errors", ">", "(", "(", "n", "<", "m", "?", "n", ":", "m", ")", "/", "6", "+", "1", ")", ")", "count", "=", "prefix_length", ";", "return", "(", "count", "*", "10", "/", "(", "(", "n", "<", "len", "?", "len", ":", "n", ")", "+", "num_errors", ")", ")", ";", "}", "private", "PrimaryRepairInfo", "scopeTrial", "(", "int", "stck", "[", "]", ",", "int", "stack_top", ",", "PrimaryRepairInfo", "repair", ")", "{", "this", ".", "stateSeen", "=", "new", "int", "[", "this", ".", "stackLength", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "stackLength", ";", "i", "++", ")", "this", ".", "stateSeen", "[", "i", "]", "=", "NIL", ";", "this", ".", "statePoolTop", "=", "0", ";", "this", ".", "statePool", "=", "new", "StateInfo", "[", "this", ".", "stackLength", "]", ";", "scopeTrialCheck", "(", "stck", ",", "stack_top", ",", "repair", ",", "0", ")", ";", "this", ".", "stateSeen", "=", "null", ";", "this", ".", "statePoolTop", "=", "0", ";", "repair", ".", "code", "=", "SCOPE_CODE", ";", "repair", ".", "misspellIndex", "=", "10", ";", "return", "repair", ";", "}", "private", "void", "scopeTrialCheck", "(", "int", "stck", "[", "]", ",", "int", "stack_top", ",", "PrimaryRepairInfo", "repair", ",", "int", "indx", ")", "{", "if", "(", "indx", ">", "20", ")", "return", ";", "int", "act", "=", "stck", "[", "stack_top", "]", ";", "for", "(", "int", "i", "=", "this", ".", "stateSeen", "[", "stack_top", "]", ";", "i", "!=", "NIL", ";", "i", "=", "this", ".", "statePool", "[", "i", "]", ".", "next", ")", "{", "if", "(", "this", ".", "statePool", "[", "i", "]", ".", "state", "==", "act", ")", "return", ";", "}", "int", "old_state_pool_top", "=", "this", ".", "statePoolTop", "++", ";", "if", "(", "this", ".", "statePoolTop", ">=", "this", ".", "statePool", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "statePool", ",", "0", ",", "this", ".", "statePool", "=", "new", "StateInfo", "[", "this", ".", "statePoolTop", "*", "2", "]", ",", "0", ",", "this", ".", "statePoolTop", ")", ";", "}", "this", ".", "statePool", "[", "old_state_pool_top", "]", "=", "new", "StateInfo", "(", "act", ",", "this", ".", "stateSeen", "[", "stack_top", "]", ")", ";", "this", ".", "stateSeen", "[", "stack_top", "]", "=", "old_state_pool_top", ";", "next", ":", "for", "(", "int", "i", "=", "0", ";", "i", "<", "SCOPE_SIZE", ";", "i", "++", ")", "{", "act", "=", "stck", "[", "stack_top", "]", ";", "this", ".", "tempStackTop", "=", "stack_top", "-", "1", ";", "int", "max_pos", "=", "stack_top", ";", "int", "tok", "=", "Parser", ".", "scope_la", "[", "i", "]", ";", "this", ".", "lexStream", ".", "reset", "(", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "]", ")", ";", "act", "=", "Parser", ".", "tAction", "(", "act", ",", "tok", ")", ";", "while", "(", "act", "<=", "NUM_RULES", ")", "{", "do", "{", "this", ".", "tempStackTop", "-=", "(", "Parser", ".", "rhs", "[", "act", "]", "-", "1", ")", ";", "int", "lhs_symbol", "=", "Parser", ".", "lhs", "[", "act", "]", ";", "act", "=", "(", "this", ".", "tempStackTop", ">", "max_pos", "?", "this", ".", "tempStack", "[", "this", ".", "tempStackTop", "]", ":", "stck", "[", "this", ".", "tempStackTop", "]", ")", ";", "act", "=", "Parser", ".", "ntAction", "(", "act", ",", "lhs_symbol", ")", ";", "}", "while", "(", "act", "<=", "NUM_RULES", ")", ";", "if", "(", "this", ".", "tempStackTop", "+", "1", ">=", "this", ".", "stackLength", ")", "return", ";", "max_pos", "=", "max_pos", "<", "this", ".", "tempStackTop", "?", "max_pos", ":", "this", ".", "tempStackTop", ";", "this", ".", "tempStack", "[", "this", ".", "tempStackTop", "+", "1", "]", "=", "act", ";", "act", "=", "Parser", ".", "tAction", "(", "act", ",", "tok", ")", ";", "}", "if", "(", "act", "!=", "ERROR_ACTION", ")", "{", "int", "j", ",", "k", ";", "k", "=", "Parser", ".", "scope_prefix", "[", "i", "]", ";", "for", "(", "j", "=", "this", ".", "tempStackTop", "+", "1", ";", "j", ">=", "(", "max_pos", "+", "1", ")", "&&", "Parser", ".", "in_symbol", "(", "this", ".", "tempStack", "[", "j", "]", ")", "==", "Parser", ".", "scope_rhs", "[", "k", "]", ";", "j", "--", ")", "{", "k", "++", ";", "}", "if", "(", "j", "==", "max_pos", ")", "{", "for", "(", "j", "=", "max_pos", ";", "j", ">=", "1", "&&", "Parser", ".", "in_symbol", "(", "stck", "[", "j", "]", ")", "==", "Parser", ".", "scope_rhs", "[", "k", "]", ";", "j", "--", ")", "{", "k", "++", ";", "}", "}", "int", "marked_pos", "=", "(", "max_pos", "<", "stack_top", "?", "max_pos", "+", "1", ":", "stack_top", ")", ";", "if", "(", "Parser", ".", "scope_rhs", "[", "k", "]", "==", "0", "&&", "j", "<", "marked_pos", ")", "{", "int", "stack_position", "=", "j", ";", "for", "(", "j", "=", "Parser", ".", "scope_state_set", "[", "i", "]", ";", "stck", "[", "stack_position", "]", "!=", "Parser", ".", "scope_state", "[", "j", "]", "&&", "Parser", ".", "scope_state", "[", "j", "]", "!=", "0", ";", "j", "++", ")", "{", "}", "if", "(", "Parser", ".", "scope_state", "[", "j", "]", "!=", "0", ")", "{", "int", "previous_distance", "=", "repair", ".", "distance", ";", "int", "distance", "=", "parseCheck", "(", "stck", ",", "stack_position", ",", "Parser", ".", "scope_lhs", "[", "i", "]", "+", "NT_OFFSET", ",", "repair", ".", "bufferPosition", ")", ";", "if", "(", "(", "distance", "-", "repair", ".", "bufferPosition", "+", "1", ")", "<", "MIN_DISTANCE", ")", "{", "int", "top", "=", "stack_position", ";", "act", "=", "Parser", ".", "ntAction", "(", "stck", "[", "top", "]", ",", "Parser", ".", "scope_lhs", "[", "i", "]", ")", ";", "while", "(", "act", "<=", "NUM_RULES", ")", "{", "if", "(", "Parser", ".", "rules_compliance", "[", "act", "]", ">", "this", ".", "options", ".", "sourceLevel", ")", "{", "continue", "next", ";", "}", "top", "-=", "(", "Parser", ".", "rhs", "[", "act", "]", "-", "1", ")", ";", "act", "=", "Parser", ".", "ntAction", "(", "stck", "[", "top", "]", ",", "Parser", ".", "lhs", "[", "act", "]", ")", ";", "}", "top", "++", ";", "j", "=", "act", ";", "act", "=", "stck", "[", "top", "]", ";", "stck", "[", "top", "]", "=", "j", ";", "scopeTrialCheck", "(", "stck", ",", "top", ",", "repair", ",", "indx", "+", "1", ")", ";", "stck", "[", "top", "]", "=", "act", ";", "}", "else", "if", "(", "distance", ">", "repair", ".", "distance", ")", "{", "this", ".", "scopeStackTop", "=", "indx", ";", "repair", ".", "distance", "=", "distance", ";", "}", "if", "(", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "]", ")", "==", "EOFT_SYMBOL", "&&", "repair", ".", "distance", "==", "previous_distance", ")", "{", "this", ".", "scopeStackTop", "=", "indx", ";", "repair", ".", "distance", "=", "MAX_DISTANCE", ";", "}", "if", "(", "repair", ".", "distance", ">", "previous_distance", ")", "{", "this", ".", "scopeIndex", "[", "indx", "]", "=", "i", ";", "this", ".", "scopePosition", "[", "indx", "]", "=", "stack_position", ";", "return", ";", "}", "}", "}", "}", "}", "}", "private", "boolean", "secondaryCheck", "(", "int", "stck", "[", "]", ",", "int", "stack_top", ",", "int", "buffer_position", ",", "int", "distance", ")", "{", "int", "top", ",", "j", ";", "for", "(", "top", "=", "stack_top", "-", "1", ";", "top", ">=", "0", ";", "top", "--", ")", "{", "j", "=", "parseCheck", "(", "stck", ",", "top", ",", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "buffer", "[", "buffer_position", "]", ")", ",", "buffer_position", "+", "1", ")", ";", "if", "(", "(", "(", "j", "-", "buffer_position", "+", "1", ")", ">", "MIN_DISTANCE", ")", "&&", "(", "j", ">", "distance", ")", ")", "return", "true", ";", "}", "PrimaryRepairInfo", "repair", "=", "new", "PrimaryRepairInfo", "(", ")", ";", "repair", ".", "bufferPosition", "=", "buffer_position", "+", "1", ";", "repair", ".", "distance", "=", "distance", ";", "repair", "=", "scopeTrial", "(", "stck", ",", "stack_top", ",", "repair", ")", ";", "if", "(", "(", "repair", ".", "distance", "-", "buffer_position", ")", ">", "MIN_DISTANCE", "&&", "repair", ".", "distance", ">", "distance", ")", "return", "true", ";", "return", "false", ";", "}", "private", "RepairCandidate", "secondaryPhase", "(", "int", "error_token", ")", "{", "SecondaryRepairInfo", "repair", "=", "new", "SecondaryRepairInfo", "(", ")", ";", "SecondaryRepairInfo", "misplaced", "=", "new", "SecondaryRepairInfo", "(", ")", ";", "RepairCandidate", "candidate", "=", "new", "RepairCandidate", "(", ")", ";", "int", "i", ",", "j", ",", "k", ",", "top", ";", "int", "next_last_index", "=", "0", ";", "int", "last_index", ";", "candidate", ".", "symbol", "=", "0", ";", "repair", ".", "code", "=", "0", ";", "repair", ".", "distance", "=", "0", ";", "repair", ".", "recoveryOnNextStack", "=", "false", ";", "misplaced", ".", "distance", "=", "0", ";", "misplaced", ".", "recoveryOnNextStack", "=", "false", ";", "if", "(", "this", ".", "nextStackTop", ">=", "0", ")", "{", "int", "save_location", ";", "this", ".", "buffer", "[", "2", "]", "=", "error_token", ";", "this", ".", "buffer", "[", "1", "]", "=", "this", ".", "lexStream", ".", "previous", "(", "this", ".", "buffer", "[", "2", "]", ")", ";", "this", ".", "buffer", "[", "0", "]", "=", "this", ".", "lexStream", ".", "previous", "(", "this", ".", "buffer", "[", "1", "]", ")", ";", "for", "(", "k", "=", "3", ";", "k", "<", "BUFF_UBOUND", ";", "k", "++", ")", "this", ".", "buffer", "[", "k", "]", "=", "this", ".", "lexStream", ".", "next", "(", "this", ".", "buffer", "[", "k", "-", "1", "]", ")", ";", "this", ".", "buffer", "[", "BUFF_UBOUND", "]", "=", "this", ".", "lexStream", ".", "badtoken", "(", ")", ";", "for", "(", "next_last_index", "=", "MAX_DISTANCE", "-", "1", ";", "next_last_index", ">=", "1", "&&", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "buffer", "[", "next_last_index", "]", ")", "==", "EOFT_SYMBOL", ";", "next_last_index", "--", ")", "{", "}", "next_last_index", "=", "next_last_index", "+", "1", ";", "save_location", "=", "this", ".", "locationStack", "[", "this", ".", "nextStackTop", "]", ";", "int", "save_location_start", "=", "this", ".", "locationStartStack", "[", "this", ".", "nextStackTop", "]", ";", "this", ".", "locationStack", "[", "this", ".", "nextStackTop", "]", "=", "this", ".", "buffer", "[", "2", "]", ";", "this", ".", "locationStartStack", "[", "this", ".", "nextStackTop", "]", "=", "this", ".", "lexStream", ".", "start", "(", "this", ".", "buffer", "[", "2", "]", ")", ";", "misplaced", ".", "numDeletions", "=", "this", ".", "nextStackTop", ";", "misplaced", "=", "misplacementRecovery", "(", "this", ".", "nextStack", ",", "this", ".", "nextStackTop", ",", "next_last_index", ",", "misplaced", ",", "true", ")", ";", "if", "(", "misplaced", ".", "recoveryOnNextStack", ")", "misplaced", ".", "distance", "++", ";", "repair", ".", "numDeletions", "=", "this", ".", "nextStackTop", "+", "BUFF_UBOUND", ";", "repair", "=", "secondaryRecovery", "(", "this", ".", "nextStack", ",", "this", ".", "nextStackTop", ",", "next_last_index", ",", "repair", ",", "true", ")", ";", "if", "(", "repair", ".", "recoveryOnNextStack", ")", "repair", ".", "distance", "++", ";", "this", ".", "locationStack", "[", "this", ".", "nextStackTop", "]", "=", "save_location", ";", "this", ".", "locationStartStack", "[", "this", ".", "nextStackTop", "]", "=", "save_location_start", ";", "}", "else", "{", "misplaced", ".", "numDeletions", "=", "this", ".", "stateStackTop", ";", "repair", ".", "numDeletions", "=", "this", ".", "stateStackTop", "+", "BUFF_UBOUND", ";", "}", "this", ".", "buffer", "[", "3", "]", "=", "error_token", ";", "this", ".", "buffer", "[", "2", "]", "=", "this", ".", "lexStream", ".", "previous", "(", "this", ".", "buffer", "[", "3", "]", ")", ";", "this", ".", "buffer", "[", "1", "]", "=", "this", ".", "lexStream", ".", "previous", "(", "this", ".", "buffer", "[", "2", "]", ")", ";", "this", ".", "buffer", "[", "0", "]", "=", "this", ".", "lexStream", ".", "previous", "(", "this", ".", "buffer", "[", "1", "]", ")", ";", "for", "(", "k", "=", "4", ";", "k", "<", "BUFF_SIZE", ";", "k", "++", ")", "this", ".", "buffer", "[", "k", "]", "=", "this", ".", "lexStream", ".", "next", "(", "this", ".", "buffer", "[", "k", "-", "1", "]", ")", ";", "for", "(", "last_index", "=", "MAX_DISTANCE", "-", "1", ";", "last_index", ">=", "1", "&&", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "buffer", "[", "last_index", "]", ")", "==", "EOFT_SYMBOL", ";", "last_index", "--", ")", "{", "}", "last_index", "++", ";", "misplaced", "=", "misplacementRecovery", "(", "this", ".", "stack", ",", "this", ".", "stateStackTop", ",", "last_index", ",", "misplaced", ",", "false", ")", ";", "repair", "=", "secondaryRecovery", "(", "this", ".", "stack", ",", "this", ".", "stateStackTop", ",", "last_index", ",", "repair", ",", "false", ")", ";", "if", "(", "misplaced", ".", "distance", ">", "MIN_DISTANCE", ")", "{", "if", "(", "misplaced", ".", "numDeletions", "<=", "repair", ".", "numDeletions", "||", "(", "misplaced", ".", "distance", "-", "misplaced", ".", "numDeletions", ")", ">=", "(", "repair", ".", "distance", "-", "repair", ".", "numDeletions", ")", ")", "{", "repair", ".", "code", "=", "MISPLACED_CODE", ";", "repair", ".", "stackPosition", "=", "misplaced", ".", "stackPosition", ";", "repair", ".", "bufferPosition", "=", "2", ";", "repair", ".", "numDeletions", "=", "misplaced", ".", "numDeletions", ";", "repair", ".", "distance", "=", "misplaced", ".", "distance", ";", "repair", ".", "recoveryOnNextStack", "=", "misplaced", ".", "recoveryOnNextStack", ";", "}", "}", "if", "(", "repair", ".", "recoveryOnNextStack", ")", "{", "this", ".", "stateStackTop", "=", "this", ".", "nextStackTop", ";", "for", "(", "i", "=", "0", ";", "i", "<=", "this", ".", "stateStackTop", ";", "i", "++", ")", "this", ".", "stack", "[", "i", "]", "=", "this", ".", "nextStack", "[", "i", "]", ";", "this", ".", "buffer", "[", "2", "]", "=", "error_token", ";", "this", ".", "buffer", "[", "1", "]", "=", "this", ".", "lexStream", ".", "previous", "(", "this", ".", "buffer", "[", "2", "]", ")", ";", "this", ".", "buffer", "[", "0", "]", "=", "this", ".", "lexStream", ".", "previous", "(", "this", ".", "buffer", "[", "1", "]", ")", ";", "for", "(", "k", "=", "3", ";", "k", "<", "BUFF_UBOUND", ";", "k", "++", ")", "this", ".", "buffer", "[", "k", "]", "=", "this", ".", "lexStream", ".", "next", "(", "this", ".", "buffer", "[", "k", "-", "1", "]", ")", ";", "this", ".", "buffer", "[", "BUFF_UBOUND", "]", "=", "this", ".", "lexStream", ".", "badtoken", "(", ")", ";", "this", ".", "locationStack", "[", "this", ".", "nextStackTop", "]", "=", "this", ".", "buffer", "[", "2", "]", ";", "this", ".", "locationStartStack", "[", "this", ".", "nextStackTop", "]", "=", "this", ".", "lexStream", ".", "start", "(", "this", ".", "buffer", "[", "2", "]", ")", ";", "last_index", "=", "next_last_index", ";", "}", "if", "(", "repair", ".", "code", "==", "SECONDARY_CODE", "||", "repair", ".", "code", "==", "DELETION_CODE", ")", "{", "PrimaryRepairInfo", "scope_repair", "=", "new", "PrimaryRepairInfo", "(", ")", ";", "scope_repair", ".", "distance", "=", "0", ";", "for", "(", "scope_repair", ".", "bufferPosition", "=", "2", ";", "scope_repair", ".", "bufferPosition", "<=", "repair", ".", "bufferPosition", "&&", "repair", ".", "code", "!=", "SCOPE_CODE", ";", "scope_repair", ".", "bufferPosition", "++", ")", "{", "scope_repair", "=", "scopeTrial", "(", "this", ".", "stack", ",", "this", ".", "stateStackTop", ",", "scope_repair", ")", ";", "j", "=", "(", "scope_repair", ".", "distance", "==", "MAX_DISTANCE", "?", "last_index", ":", "scope_repair", ".", "distance", ")", ";", "k", "=", "scope_repair", ".", "bufferPosition", "-", "1", ";", "if", "(", "(", "j", "-", "k", ")", ">", "MIN_DISTANCE", "&&", "(", "j", "-", "k", ")", ">", "(", "repair", ".", "distance", "-", "repair", ".", "numDeletions", ")", ")", "{", "repair", ".", "code", "=", "SCOPE_CODE", ";", "i", "=", "this", ".", "scopeIndex", "[", "this", ".", "scopeStackTop", "]", ";", "repair", ".", "symbol", "=", "Parser", ".", "scope_lhs", "[", "i", "]", "+", "NT_OFFSET", ";", "repair", ".", "stackPosition", "=", "this", ".", "stateStackTop", ";", "repair", ".", "bufferPosition", "=", "scope_repair", ".", "bufferPosition", ";", "}", "}", "}", "if", "(", "repair", ".", "code", "==", "0", "&&", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "buffer", "[", "last_index", "]", ")", "==", "EOFT_SYMBOL", ")", "{", "PrimaryRepairInfo", "scope_repair", "=", "new", "PrimaryRepairInfo", "(", ")", ";", "scope_repair", ".", "bufferPosition", "=", "last_index", ";", "scope_repair", ".", "distance", "=", "0", ";", "for", "(", "top", "=", "this", ".", "stateStackTop", ";", "top", ">=", "0", "&&", "repair", ".", "code", "==", "0", ";", "top", "--", ")", "{", "scope_repair", "=", "scopeTrial", "(", "this", ".", "stack", ",", "top", ",", "scope_repair", ")", ";", "if", "(", "scope_repair", ".", "distance", ">", "0", ")", "{", "repair", ".", "code", "=", "SCOPE_CODE", ";", "i", "=", "this", ".", "scopeIndex", "[", "this", ".", "scopeStackTop", "]", ";", "repair", ".", "symbol", "=", "Parser", ".", "scope_lhs", "[", "i", "]", "+", "NT_OFFSET", ";", "repair", ".", "stackPosition", "=", "top", ";", "repair", ".", "bufferPosition", "=", "scope_repair", ".", "bufferPosition", ";", "}", "}", "}", "if", "(", "repair", ".", "code", "==", "0", ")", "return", "candidate", ";", "secondaryDiagnosis", "(", "repair", ")", ";", "switch", "(", "repair", ".", "code", ")", "{", "case", "MISPLACED_CODE", ":", "candidate", ".", "location", "=", "this", ".", "buffer", "[", "2", "]", ";", "candidate", ".", "symbol", "=", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "buffer", "[", "2", "]", ")", ";", "this", ".", "lexStream", ".", "reset", "(", "this", ".", "lexStream", ".", "next", "(", "this", ".", "buffer", "[", "2", "]", ")", ")", ";", "break", ";", "case", "DELETION_CODE", ":", "candidate", ".", "location", "=", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "]", ";", "candidate", ".", "symbol", "=", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "]", ")", ";", "this", ".", "lexStream", ".", "reset", "(", "this", ".", "lexStream", ".", "next", "(", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "]", ")", ")", ";", "break", ";", "default", ":", "candidate", ".", "symbol", "=", "repair", ".", "symbol", ";", "candidate", ".", "location", "=", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "]", ";", "this", ".", "lexStream", ".", "reset", "(", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "]", ")", ";", "break", ";", "}", "return", "candidate", ";", "}", "private", "SecondaryRepairInfo", "misplacementRecovery", "(", "int", "stck", "[", "]", ",", "int", "stack_top", ",", "int", "last_index", ",", "SecondaryRepairInfo", "repair", ",", "boolean", "stack_flag", ")", "{", "int", "previous_loc", "=", "this", ".", "buffer", "[", "2", "]", ";", "int", "stack_deletions", "=", "0", ";", "for", "(", "int", "top", "=", "stack_top", "-", "1", ";", "top", ">=", "0", ";", "top", "--", ")", "{", "if", "(", "this", ".", "locationStack", "[", "top", "]", "<", "previous_loc", ")", "{", "stack_deletions", "++", ";", "}", "previous_loc", "=", "this", ".", "locationStack", "[", "top", "]", ";", "int", "j", "=", "parseCheck", "(", "stck", ",", "top", ",", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "buffer", "[", "2", "]", ")", ",", "3", ")", ";", "if", "(", "j", "==", "MAX_DISTANCE", ")", "{", "j", "=", "last_index", ";", "}", "if", "(", "(", "j", ">", "MIN_DISTANCE", ")", "&&", "(", "j", "-", "stack_deletions", ")", ">", "(", "repair", ".", "distance", "-", "repair", ".", "numDeletions", ")", ")", "{", "repair", ".", "stackPosition", "=", "top", ";", "repair", ".", "distance", "=", "j", ";", "repair", ".", "numDeletions", "=", "stack_deletions", ";", "repair", ".", "recoveryOnNextStack", "=", "stack_flag", ";", "}", "}", "return", "repair", ";", "}", "private", "SecondaryRepairInfo", "secondaryRecovery", "(", "int", "stck", "[", "]", ",", "int", "stack_top", ",", "int", "last_index", ",", "SecondaryRepairInfo", "repair", ",", "boolean", "stack_flag", ")", "{", "int", "previous_loc", ";", "int", "stack_deletions", "=", "0", ";", "previous_loc", "=", "this", ".", "buffer", "[", "2", "]", ";", "for", "(", "int", "top", "=", "stack_top", ";", "top", ">=", "0", "&&", "repair", ".", "numDeletions", ">=", "stack_deletions", ";", "top", "--", ")", "{", "if", "(", "this", ".", "locationStack", "[", "top", "]", "<", "previous_loc", ")", "{", "stack_deletions", "++", ";", "}", "previous_loc", "=", "this", ".", "locationStack", "[", "top", "]", ";", "for", "(", "int", "i", "=", "2", ";", "i", "<=", "(", "last_index", "-", "MIN_DISTANCE", "+", "1", ")", "&&", "(", "repair", ".", "numDeletions", ">=", "(", "stack_deletions", "+", "i", "-", "1", ")", ")", ";", "i", "++", ")", "{", "int", "j", "=", "parseCheck", "(", "stck", ",", "top", ",", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "buffer", "[", "i", "]", ")", ",", "i", "+", "1", ")", ";", "if", "(", "j", "==", "MAX_DISTANCE", ")", "{", "j", "=", "last_index", ";", "}", "if", "(", "(", "j", "-", "i", "+", "1", ")", ">", "MIN_DISTANCE", ")", "{", "int", "k", "=", "stack_deletions", "+", "i", "-", "1", ";", "if", "(", "(", "k", "<", "repair", ".", "numDeletions", ")", "||", "(", "j", "-", "k", ")", ">", "(", "repair", ".", "distance", "-", "repair", ".", "numDeletions", ")", "||", "(", "(", "repair", ".", "code", "==", "SECONDARY_CODE", ")", "&&", "(", "j", "-", "k", ")", "==", "(", "repair", ".", "distance", "-", "repair", ".", "numDeletions", ")", ")", ")", "{", "repair", ".", "code", "=", "DELETION_CODE", ";", "repair", ".", "distance", "=", "j", ";", "repair", ".", "stackPosition", "=", "top", ";", "repair", ".", "bufferPosition", "=", "i", ";", "repair", ".", "numDeletions", "=", "k", ";", "repair", ".", "recoveryOnNextStack", "=", "stack_flag", ";", "}", "}", "for", "(", "int", "l", "=", "Parser", ".", "nasi", "(", "stck", "[", "top", "]", ")", ";", "l", ">=", "0", "&&", "Parser", ".", "nasr", "[", "l", "]", "!=", "0", ";", "l", "++", ")", "{", "int", "symbol", "=", "Parser", ".", "nasr", "[", "l", "]", "+", "NT_OFFSET", ";", "j", "=", "parseCheck", "(", "stck", ",", "top", ",", "symbol", ",", "i", ")", ";", "if", "(", "j", "==", "MAX_DISTANCE", ")", "{", "j", "=", "last_index", ";", "}", "if", "(", "(", "j", "-", "i", "+", "1", ")", ">", "MIN_DISTANCE", ")", "{", "int", "k", "=", "stack_deletions", "+", "i", "-", "1", ";", "if", "(", "k", "<", "repair", ".", "numDeletions", "||", "(", "j", "-", "k", ")", ">", "(", "repair", ".", "distance", "-", "repair", ".", "numDeletions", ")", ")", "{", "repair", ".", "code", "=", "SECONDARY_CODE", ";", "repair", ".", "symbol", "=", "symbol", ";", "repair", ".", "distance", "=", "j", ";", "repair", ".", "stackPosition", "=", "top", ";", "repair", ".", "bufferPosition", "=", "i", ";", "repair", ".", "numDeletions", "=", "k", ";", "repair", ".", "recoveryOnNextStack", "=", "stack_flag", ";", "}", "}", "}", "}", "}", "return", "repair", ";", "}", "private", "void", "secondaryDiagnosis", "(", "SecondaryRepairInfo", "repair", ")", "{", "switch", "(", "repair", ".", "code", ")", "{", "case", "SCOPE_CODE", ":", "{", "if", "(", "repair", ".", "stackPosition", "<", "this", ".", "stateStackTop", ")", "{", "reportError", "(", "DELETION_CODE", ",", "Parser", ".", "terminal_index", "[", "ERROR_SYMBOL", "]", ",", "this", ".", "locationStack", "[", "repair", ".", "stackPosition", "]", ",", "this", ".", "buffer", "[", "1", "]", ")", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "scopeStackTop", ";", "i", "++", ")", "{", "reportError", "(", "SCOPE_CODE", ",", "-", "this", ".", "scopeIndex", "[", "i", "]", ",", "this", ".", "locationStack", "[", "this", ".", "scopePosition", "[", "i", "]", "]", ",", "this", ".", "buffer", "[", "1", "]", ",", "Parser", ".", "non_terminal_index", "[", "Parser", ".", "scope_lhs", "[", "this", ".", "scopeIndex", "[", "i", "]", "]", "]", ")", ";", "}", "repair", ".", "symbol", "=", "Parser", ".", "scope_lhs", "[", "this", ".", "scopeIndex", "[", "this", ".", "scopeStackTop", "]", "]", "+", "NT_OFFSET", ";", "this", ".", "stateStackTop", "=", "this", ".", "scopePosition", "[", "this", ".", "scopeStackTop", "]", ";", "reportError", "(", "SCOPE_CODE", ",", "-", "this", ".", "scopeIndex", "[", "this", ".", "scopeStackTop", "]", ",", "this", ".", "locationStack", "[", "this", ".", "scopePosition", "[", "this", ".", "scopeStackTop", "]", "]", ",", "this", ".", "buffer", "[", "1", "]", ",", "getNtermIndex", "(", "this", ".", "stack", "[", "this", ".", "stateStackTop", "]", ",", "repair", ".", "symbol", ",", "repair", ".", "bufferPosition", ")", ")", ";", "break", ";", "}", "default", ":", "{", "reportError", "(", "repair", ".", "code", ",", "(", "repair", ".", "code", "==", "SECONDARY_CODE", "?", "getNtermIndex", "(", "this", ".", "stack", "[", "repair", ".", "stackPosition", "]", ",", "repair", ".", "symbol", ",", "repair", ".", "bufferPosition", ")", ":", "Parser", ".", "terminal_index", "[", "ERROR_SYMBOL", "]", ")", ",", "this", ".", "locationStack", "[", "repair", ".", "stackPosition", "]", ",", "this", ".", "buffer", "[", "repair", ".", "bufferPosition", "-", "1", "]", ")", ";", "this", ".", "stateStackTop", "=", "repair", ".", "stackPosition", ";", "}", "}", "}", "private", "int", "parseCheck", "(", "int", "stck", "[", "]", ",", "int", "stack_top", ",", "int", "first_token", ",", "int", "buffer_position", ")", "{", "int", "max_pos", ";", "int", "indx", ";", "int", "ct", ";", "int", "act", ";", "act", "=", "stck", "[", "stack_top", "]", ";", "if", "(", "first_token", ">", "NT_OFFSET", ")", "{", "this", ".", "tempStackTop", "=", "stack_top", ";", "if", "(", "this", ".", "DEBUG_PARSECHECK", ")", "{", "System", ".", "out", ".", "println", "(", "this", ".", "tempStackTop", ")", ";", "}", "max_pos", "=", "stack_top", ";", "indx", "=", "buffer_position", ";", "ct", "=", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "buffer", "[", "indx", "]", ")", ";", "this", ".", "lexStream", ".", "reset", "(", "this", ".", "lexStream", ".", "next", "(", "this", ".", "buffer", "[", "indx", "]", ")", ")", ";", "int", "lhs_symbol", "=", "first_token", "-", "NT_OFFSET", ";", "act", "=", "Parser", ".", "ntAction", "(", "act", ",", "lhs_symbol", ")", ";", "if", "(", "act", "<=", "NUM_RULES", ")", "{", "do", "{", "this", ".", "tempStackTop", "-=", "(", "Parser", ".", "rhs", "[", "act", "]", "-", "1", ")", ";", "if", "(", "this", ".", "DEBUG_PARSECHECK", ")", "{", "System", ".", "out", ".", "print", "(", "this", ".", "tempStackTop", ")", ";", "System", ".", "out", ".", "print", "(", "\"", "(\"", ")", ";", "System", ".", "out", ".", "print", "(", "-", "(", "Parser", ".", "rhs", "[", "act", "]", "-", "1", ")", ")", ";", "System", ".", "out", ".", "print", "(", "\")", "[max:\"", ")", ";", "System", ".", "out", ".", "print", "(", "max_pos", ")", ";", "System", ".", "out", ".", "print", "(", "\"\"", ")", ";", "System", ".", "out", ".", "print", "(", "act", ")", ";", "System", ".", "out", ".", "print", "(", "\"t\"", ")", ";", "System", ".", "out", ".", "print", "(", "Parser", ".", "name", "[", "Parser", ".", "non_terminal_index", "[", "Parser", ".", "lhs", "[", "act", "]", "]", "]", ")", ";", "System", ".", "out", ".", "println", "(", ")", ";", "}", "if", "(", "Parser", ".", "rules_compliance", "[", "act", "]", ">", "this", ".", "options", ".", "sourceLevel", ")", "{", "return", "0", ";", "}", "lhs_symbol", "=", "Parser", ".", "lhs", "[", "act", "]", ";", "act", "=", "(", "this", ".", "tempStackTop", ">", "max_pos", "?", "this", ".", "tempStack", "[", "this", ".", "tempStackTop", "]", ":", "stck", "[", "this", ".", "tempStackTop", "]", ")", ";", "act", "=", "Parser", ".", "ntAction", "(", "act", ",", "lhs_symbol", ")", ";", "}", "while", "(", "act", "<=", "NUM_RULES", ")", ";", "max_pos", "=", "max_pos", "<", "this", ".", "tempStackTop", "?", "max_pos", ":", "this", ".", "tempStackTop", ";", "}", "}", "else", "{", "this", ".", "tempStackTop", "=", "stack_top", "-", "1", ";", "if", "(", "this", ".", "DEBUG_PARSECHECK", ")", "{", "System", ".", "out", ".", "println", "(", "this", ".", "tempStackTop", ")", ";", "}", "max_pos", "=", "this", ".", "tempStackTop", ";", "indx", "=", "buffer_position", "-", "1", ";", "ct", "=", "first_token", ";", "this", ".", "lexStream", ".", "reset", "(", "this", ".", "buffer", "[", "buffer_position", "]", ")", ";", "}", "process_terminal", ":", "for", "(", ";", ";", ")", "{", "if", "(", "this", ".", "DEBUG_PARSECHECK", ")", "{", "System", ".", "out", ".", "print", "(", "this", ".", "tempStackTop", "+", "1", ")", ";", "System", ".", "out", ".", "print", "(", "\"", "(+1)", "[max:\"", ")", ";", "System", ".", "out", ".", "print", "(", "max_pos", ")", ";", "System", ".", "out", ".", "print", "(", "\"\"", ")", ";", "System", ".", "out", ".", "print", "(", "ct", ")", ";", "System", ".", "out", ".", "print", "(", "\"t\"", ")", ";", "System", ".", "out", ".", "print", "(", "Parser", ".", "name", "[", "Parser", ".", "terminal_index", "[", "ct", "]", "]", ")", ";", "System", ".", "out", ".", "println", "(", ")", ";", "}", "if", "(", "++", "this", ".", "tempStackTop", ">=", "this", ".", "stackLength", ")", "return", "indx", ";", "this", ".", "tempStack", "[", "this", ".", "tempStackTop", "]", "=", "act", ";", "act", "=", "Parser", ".", "tAction", "(", "act", ",", "ct", ")", ";", "if", "(", "act", "<=", "NUM_RULES", ")", "{", "this", ".", "tempStackTop", "--", ";", "if", "(", "this", ".", "DEBUG_PARSECHECK", ")", "{", "System", ".", "out", ".", "print", "(", "this", ".", "tempStackTop", ")", ";", "System", ".", "out", ".", "print", "(", "\"", "(-1)", "[max:\"", ")", ";", "System", ".", "out", ".", "print", "(", "max_pos", ")", ";", "System", ".", "out", ".", "print", "(", "\"]treduce\"", ")", ";", "System", ".", "out", ".", "println", "(", ")", ";", "}", "}", "else", "if", "(", "act", "<", "ACCEPT_ACTION", "||", "act", ">", "ERROR_ACTION", ")", "{", "if", "(", "indx", "==", "MAX_DISTANCE", ")", "return", "indx", ";", "indx", "++", ";", "ct", "=", "this", ".", "lexStream", ".", "kind", "(", "this", ".", "buffer", "[", "indx", "]", ")", ";", "this", ".", "lexStream", ".", "reset", "(", "this", ".", "lexStream", ".", "next", "(", "this", ".", "buffer", "[", "indx", "]", ")", ")", ";", "if", "(", "act", ">", "ERROR_ACTION", ")", "{", "act", "-=", "ERROR_ACTION", ";", "if", "(", "this", ".", "DEBUG_PARSECHECK", ")", "{", "System", ".", "out", ".", "print", "(", "this", ".", "tempStackTop", ")", ";", "System", ".", "out", ".", "print", "(", "\"\"", ")", ";", "System", ".", "out", ".", "println", "(", ")", ";", "}", "}", "else", "{", "if", "(", "this", ".", "DEBUG_PARSECHECK", ")", "{", "System", ".", "out", ".", "println", "(", "\"tshift\"", ")", ";", "}", "continue", "process_terminal", ";", "}", "}", "else", "if", "(", "act", "==", "ACCEPT_ACTION", ")", "{", "return", "MAX_DISTANCE", ";", "}", "else", "{", "return", "indx", ";", "}", "do", "{", "this", ".", "tempStackTop", "-=", "(", "Parser", ".", "rhs", "[", "act", "]", "-", "1", ")", ";", "if", "(", "this", ".", "DEBUG_PARSECHECK", ")", "{", "System", ".", "out", ".", "print", "(", "this", ".", "tempStackTop", ")", ";", "System", ".", "out", ".", "print", "(", "\"", "(\"", ")", ";", "System", ".", "out", ".", "print", "(", "-", "(", "Parser", ".", "rhs", "[", "act", "]", "-", "1", ")", ")", ";", "System", ".", "out", ".", "print", "(", "\")", "[max:\"", ")", ";", "System", ".", "out", ".", "print", "(", "max_pos", ")", ";", "System", ".", "out", ".", "print", "(", "\"\"", ")", ";", "System", ".", "out", ".", "print", "(", "act", ")", ";", "System", ".", "out", ".", "print", "(", "\"t\"", ")", ";", "System", ".", "out", ".", "print", "(", "Parser", ".", "name", "[", "Parser", ".", "non_terminal_index", "[", "Parser", ".", "lhs", "[", "act", "]", "]", "]", ")", ";", "System", ".", "out", ".", "println", "(", ")", ";", "}", "if", "(", "act", "<=", "NUM_RULES", ")", "{", "if", "(", "Parser", ".", "rules_compliance", "[", "act", "]", ">", "this", ".", "options", ".", "sourceLevel", ")", "{", "return", "0", ";", "}", "}", "int", "lhs_symbol", "=", "Parser", ".", "lhs", "[", "act", "]", ";", "act", "=", "(", "this", ".", "tempStackTop", ">", "max_pos", "?", "this", ".", "tempStack", "[", "this", ".", "tempStackTop", "]", ":", "stck", "[", "this", ".", "tempStackTop", "]", ")", ";", "act", "=", "Parser", ".", "ntAction", "(", "act", ",", "lhs_symbol", ")", ";", "}", "while", "(", "act", "<=", "NUM_RULES", ")", ";", "max_pos", "=", "max_pos", "<", "this", ".", "tempStackTop", "?", "max_pos", ":", "this", ".", "tempStackTop", ";", "}", "}", "private", "void", "reportError", "(", "int", "msgCode", ",", "int", "nameIndex", ",", "int", "leftToken", ",", "int", "rightToken", ")", "{", "reportError", "(", "msgCode", ",", "nameIndex", ",", "leftToken", ",", "rightToken", ",", "0", ")", ";", "}", "private", "void", "reportError", "(", "int", "msgCode", ",", "int", "nameIndex", ",", "int", "leftToken", ",", "int", "rightToken", ",", "int", "scopeNameIndex", ")", "{", "int", "lToken", "=", "(", "leftToken", ">", "rightToken", "?", "rightToken", ":", "leftToken", ")", ";", "if", "(", "lToken", "<", "rightToken", ")", "{", "reportSecondaryError", "(", "msgCode", ",", "nameIndex", ",", "lToken", ",", "rightToken", ",", "scopeNameIndex", ")", ";", "}", "else", "{", "reportPrimaryError", "(", "msgCode", ",", "nameIndex", ",", "rightToken", ",", "scopeNameIndex", ")", ";", "}", "}", "private", "void", "reportPrimaryError", "(", "int", "msgCode", ",", "int", "nameIndex", ",", "int", "token", ",", "int", "scopeNameIndex", ")", "{", "String", "name", ";", "if", "(", "nameIndex", ">=", "0", ")", "{", "name", "=", "Parser", ".", "readableName", "[", "nameIndex", "]", ";", "}", "else", "{", "name", "=", "Util", ".", "EMPTY_STRING", ";", "}", "int", "errorStart", "=", "this", ".", "lexStream", ".", "start", "(", "token", ")", ";", "int", "errorEnd", "=", "this", ".", "lexStream", ".", "end", "(", "token", ")", ";", "int", "currentKind", "=", "this", ".", "lexStream", ".", "kind", "(", "token", ")", ";", "String", "errorTokenName", "=", "Parser", ".", "name", "[", "Parser", ".", "terminal_index", "[", "this", ".", "lexStream", ".", "kind", "(", "token", ")", "]", "]", ";", "char", "[", "]", "errorTokenSource", "=", "this", ".", "lexStream", ".", "name", "(", "token", ")", ";", "if", "(", "currentKind", "==", "TerminalTokens", ".", "TokenNameStringLiteral", ")", "{", "errorTokenSource", "=", "displayEscapeCharacters", "(", "errorTokenSource", ",", "1", ",", "errorTokenSource", ".", "length", "-", "1", ")", ";", "}", "int", "addedToken", "=", "-", "1", ";", "if", "(", "this", ".", "recoveryScanner", "!=", "null", ")", "{", "if", "(", "nameIndex", ">=", "0", ")", "{", "addedToken", "=", "Parser", ".", "reverse_index", "[", "nameIndex", "]", ";", "}", "}", "switch", "(", "msgCode", ")", "{", "case", "BEFORE_CODE", ":", "if", "(", "this", ".", "recoveryScanner", "!=", "null", ")", "{", "if", "(", "addedToken", ">", "-", "1", ")", "{", "this", ".", "recoveryScanner", ".", "insertToken", "(", "addedToken", ",", "-", "1", ",", "errorStart", ")", ";", "}", "else", "{", "int", "[", "]", "template", "=", "getNTermTemplate", "(", "-", "addedToken", ")", ";", "if", "(", "template", "!=", "null", ")", "{", "this", ".", "recoveryScanner", ".", "insertTokens", "(", "template", ",", "-", "1", ",", "errorStart", ")", ";", "}", "}", "}", "if", "(", "this", ".", "reportProblem", ")", "problemReporter", "(", ")", ".", "parseErrorInsertBeforeToken", "(", "errorStart", ",", "errorEnd", ",", "currentKind", ",", "errorTokenSource", ",", "errorTokenName", ",", "name", ")", ";", "break", ";", "case", "INSERTION_CODE", ":", "if", "(", "this", ".", "recoveryScanner", "!=", "null", ")", "{", "if", "(", "addedToken", ">", "-", "1", ")", "{", "this", ".", "recoveryScanner", ".", "insertToken", "(", "addedToken", ",", "-", "1", ",", "errorEnd", ")", ";", "}", "else", "{", "int", "[", "]", "template", "=", "getNTermTemplate", "(", "-", "addedToken", ")", ";", "if", "(", "template", "!=", "null", ")", "{", "this", ".", "recoveryScanner", ".", "insertTokens", "(", "template", ",", "-", "1", ",", "errorEnd", ")", ";", "}", "}", "}", "if", "(", "this", ".", "reportProblem", ")", "problemReporter", "(", ")", ".", "parseErrorInsertAfterToken", "(", "errorStart", ",", "errorEnd", ",", "currentKind", ",", "errorTokenSource", ",", "errorTokenName", ",", "name", ")", ";", "break", ";", "case", "DELETION_CODE", ":", "if", "(", "this", ".", "recoveryScanner", "!=", "null", ")", "{", "this", ".", "recoveryScanner", ".", "removeTokens", "(", "errorStart", ",", "errorEnd", ")", ";", "}", "if", "(", "this", ".", "reportProblem", ")", "problemReporter", "(", ")", ".", "parseErrorDeleteToken", "(", "errorStart", ",", "errorEnd", ",", "currentKind", ",", "errorTokenSource", ",", "errorTokenName", ")", ";", "break", ";", "case", "INVALID_CODE", ":", "if", "(", "name", ".", "length", "(", ")", "==", "0", ")", "{", "if", "(", "this", ".", "recoveryScanner", "!=", "null", ")", "{", "this", ".", "recoveryScanner", ".", "removeTokens", "(", "errorStart", ",", "errorEnd", ")", ";", "}", "if", "(", "this", ".", "reportProblem", ")", "problemReporter", "(", ")", ".", "parseErrorReplaceToken", "(", "errorStart", ",", "errorEnd", ",", "currentKind", ",", "errorTokenSource", ",", "errorTokenName", ",", "name", ")", ";", "}", "else", "{", "if", "(", "this", ".", "recoveryScanner", "!=", "null", ")", "{", "if", "(", "addedToken", ">", "-", "1", ")", "{", "this", ".", "recoveryScanner", ".", "replaceTokens", "(", "addedToken", ",", "errorStart", ",", "errorEnd", ")", ";", "}", "else", "{", "int", "[", "]", "template", "=", "getNTermTemplate", "(", "-", "addedToken", ")", ";", "if", "(", "template", "!=", "null", ")", "{", "this", ".", "recoveryScanner", ".", "replaceTokens", "(", "template", ",", "errorStart", ",", "errorEnd", ")", ";", "}", "}", "}", "if", "(", "this", ".", "reportProblem", ")", "problemReporter", "(", ")", ".", "parseErrorInvalidToken", "(", "errorStart", ",", "errorEnd", ",", "currentKind", ",", "errorTokenSource", ",", "errorTokenName", ",", "name", ")", ";", "}", "break", ";", "case", "SUBSTITUTION_CODE", ":", "if", "(", "this", ".", "recoveryScanner", "!=", "null", ")", "{", "if", "(", "addedToken", ">", "-", "1", ")", "{", "this", ".", "recoveryScanner", ".", "replaceTokens", "(", "addedToken", ",", "errorStart", ",", "errorEnd", ")", ";", "}", "else", "{", "int", "[", "]", "template", "=", "getNTermTemplate", "(", "-", "addedToken", ")", ";", "if", "(", "template", "!=", "null", ")", "{", "this", ".", "recoveryScanner", ".", "replaceTokens", "(", "template", ",", "errorStart", ",", "errorEnd", ")", ";", "}", "}", "}", "if", "(", "this", ".", "reportProblem", ")", "problemReporter", "(", ")", ".", "parseErrorReplaceToken", "(", "errorStart", ",", "errorEnd", ",", "currentKind", ",", "errorTokenSource", ",", "errorTokenName", ",", "name", ")", ";", "break", ";", "case", "SCOPE_CODE", ":", "StringBuffer", "buf", "=", "new", "StringBuffer", "(", ")", ";", "int", "[", "]", "addedTokens", "=", "null", ";", "int", "addedTokenCount", "=", "0", ";", "if", "(", "this", ".", "recoveryScanner", "!=", "null", ")", "{", "addedTokens", "=", "new", "int", "[", "Parser", ".", "scope_rhs", ".", "length", "-", "Parser", ".", "scope_suffix", "[", "-", "nameIndex", "]", "]", ";", "}", "for", "(", "int", "i", "=", "Parser", ".", "scope_suffix", "[", "-", "nameIndex", "]", ";", "Parser", ".", "scope_rhs", "[", "i", "]", "!=", "0", ";", "i", "++", ")", "{", "buf", ".", "append", "(", "Parser", ".", "readableName", "[", "Parser", ".", "scope_rhs", "[", "i", "]", "]", ")", ";", "if", "(", "Parser", ".", "scope_rhs", "[", "i", "+", "1", "]", "!=", "0", ")", "buf", ".", "append", "(", "'", "'", ")", ";", "if", "(", "addedTokens", "!=", "null", ")", "{", "int", "tmpAddedToken", "=", "Parser", ".", "reverse_index", "[", "Parser", ".", "scope_rhs", "[", "i", "]", "]", ";", "if", "(", "tmpAddedToken", ">", "-", "1", ")", "{", "int", "length", "=", "addedTokens", ".", "length", ";", "if", "(", "addedTokenCount", "==", "length", ")", "{", "System", ".", "arraycopy", "(", "addedTokens", ",", "0", ",", "addedTokens", "=", "new", "int", "[", "length", "*", "2", "]", ",", "0", ",", "length", ")", ";", "}", "addedTokens", "[", "addedTokenCount", "++", "]", "=", "tmpAddedToken", ";", "}", "else", "{", "int", "[", "]", "template", "=", "getNTermTemplate", "(", "-", "tmpAddedToken", ")", ";", "if", "(", "template", "!=", "null", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "template", ".", "length", ";", "j", "++", ")", "{", "int", "length", "=", "addedTokens", ".", "length", ";", "if", "(", "addedTokenCount", "==", "length", ")", "{", "System", ".", "arraycopy", "(", "addedTokens", ",", "0", ",", "addedTokens", "=", "new", "int", "[", "length", "*", "2", "]", ",", "0", ",", "length", ")", ";", "}", "addedTokens", "[", "addedTokenCount", "++", "]", "=", "template", "[", "j", "]", ";", "}", "}", "else", "{", "addedTokenCount", "=", "0", ";", "addedTokens", "=", "null", ";", "}", "}", "}", "}", "if", "(", "addedTokenCount", ">", "0", ")", "{", "System", ".", "arraycopy", "(", "addedTokens", ",", "0", ",", "addedTokens", "=", "new", "int", "[", "addedTokenCount", "]", ",", "0", ",", "addedTokenCount", ")", ";", "int", "completedToken", "=", "-", "1", ";", "if", "(", "scopeNameIndex", "!=", "0", ")", "{", "completedToken", "=", "-", "Parser", ".", "reverse_index", "[", "scopeNameIndex", "]", ";", "}", "this", ".", "recoveryScanner", ".", "insertTokens", "(", "addedTokens", ",", "completedToken", ",", "errorEnd", ")", ";", "}", "if", "(", "scopeNameIndex", "!=", "0", ")", "{", "if", "(", "this", ".", "reportProblem", ")", "problemReporter", "(", ")", ".", "parseErrorInsertToComplete", "(", "errorStart", ",", "errorEnd", ",", "buf", ".", "toString", "(", ")", ",", "Parser", ".", "readableName", "[", "scopeNameIndex", "]", ")", ";", "}", "else", "{", "if", "(", "this", ".", "reportProblem", ")", "problemReporter", "(", ")", ".", "parseErrorInsertToCompleteScope", "(", "errorStart", ",", "errorEnd", ",", "buf", ".", "toString", "(", ")", ")", ";", "}", "break", ";", "case", "EOF_CODE", ":", "if", "(", "this", ".", "reportProblem", ")", "problemReporter", "(", ")", ".", "parseErrorUnexpectedEnd", "(", "errorStart", ",", "errorEnd", ")", ";", "break", ";", "case", "MERGE_CODE", ":", "if", "(", "this", ".", "recoveryScanner", "!=", "null", ")", "{", "if", "(", "addedToken", ">", "-", "1", ")", "{", "this", ".", "recoveryScanner", ".", "replaceTokens", "(", "addedToken", ",", "errorStart", ",", "errorEnd", ")", ";", "}", "else", "{", "int", "[", "]", "template", "=", "getNTermTemplate", "(", "-", "addedToken", ")", ";", "if", "(", "template", "!=", "null", ")", "{", "this", ".", "recoveryScanner", ".", "replaceTokens", "(", "template", ",", "errorStart", ",", "errorEnd", ")", ";", "}", "}", "}", "if", "(", "this", ".", "reportProblem", ")", "problemReporter", "(", ")", ".", "parseErrorMergeTokens", "(", "errorStart", ",", "errorEnd", ",", "name", ")", ";", "break", ";", "case", "MISPLACED_CODE", ":", "if", "(", "this", ".", "recoveryScanner", "!=", "null", ")", "{", "this", ".", "recoveryScanner", ".", "removeTokens", "(", "errorStart", ",", "errorEnd", ")", ";", "}", "if", "(", "this", ".", "reportProblem", ")", "problemReporter", "(", ")", ".", "parseErrorMisplacedConstruct", "(", "errorStart", ",", "errorEnd", ")", ";", "break", ";", "default", ":", "if", "(", "name", ".", "length", "(", ")", "==", "0", ")", "{", "if", "(", "this", ".", "recoveryScanner", "!=", "null", ")", "{", "this", ".", "recoveryScanner", ".", "removeTokens", "(", "errorStart", ",", "errorEnd", ")", ";", "}", "if", "(", "this", ".", "reportProblem", ")", "problemReporter", "(", ")", ".", "parseErrorNoSuggestion", "(", "errorStart", ",", "errorEnd", ",", "currentKind", ",", "errorTokenSource", ",", "errorTokenName", ")", ";", "}", "else", "{", "if", "(", "this", ".", "recoveryScanner", "!=", "null", ")", "{", "if", "(", "addedToken", ">", "-", "1", ")", "{", "this", ".", "recoveryScanner", ".", "replaceTokens", "(", "addedToken", ",", "errorStart", ",", "errorEnd", ")", ";", "}", "else", "{", "int", "[", "]", "template", "=", "getNTermTemplate", "(", "-", "addedToken", ")", ";", "if", "(", "template", "!=", "null", ")", "{", "this", ".", "recoveryScanner", ".", "replaceTokens", "(", "template", ",", "errorStart", ",", "errorEnd", ")", ";", "}", "}", "}", "if", "(", "this", ".", "reportProblem", ")", "problemReporter", "(", ")", ".", "parseErrorReplaceToken", "(", "errorStart", ",", "errorEnd", ",", "currentKind", ",", "errorTokenSource", ",", "errorTokenName", ",", "name", ")", ";", "}", "break", ";", "}", "}", "private", "void", "reportSecondaryError", "(", "int", "msgCode", ",", "int", "nameIndex", ",", "int", "leftToken", ",", "int", "rightToken", ",", "int", "scopeNameIndex", ")", "{", "String", "name", ";", "if", "(", "nameIndex", ">=", "0", ")", "{", "name", "=", "Parser", ".", "readableName", "[", "nameIndex", "]", ";", "}", "else", "{", "name", "=", "Util", ".", "EMPTY_STRING", ";", "}", "int", "errorStart", "=", "-", "1", ";", "if", "(", "this", ".", "lexStream", ".", "isInsideStream", "(", "leftToken", ")", ")", "{", "if", "(", "leftToken", "==", "0", ")", "{", "errorStart", "=", "this", ".", "lexStream", ".", "start", "(", "leftToken", "+", "1", ")", ";", "}", "else", "{", "errorStart", "=", "this", ".", "lexStream", ".", "start", "(", "leftToken", ")", ";", "}", "}", "else", "{", "if", "(", "leftToken", "==", "this", ".", "errorToken", ")", "{", "errorStart", "=", "this", ".", "errorTokenStart", ";", "}", "else", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "this", ".", "stateStackTop", ";", "i", "++", ")", "{", "if", "(", "this", ".", "locationStack", "[", "i", "]", "==", "leftToken", ")", "{", "errorStart", "=", "this", ".", "locationStartStack", "[", "i", "]", ";", "}", "}", "}", "if", "(", "errorStart", "==", "-", "1", ")", "{", "errorStart", "=", "this", ".", "lexStream", ".", "start", "(", "rightToken", ")", ";", "}", "}", "int", "errorEnd", "=", "this", ".", "lexStream", ".", "end", "(", "rightToken", ")", ";", "int", "addedToken", "=", "-", "1", ";", "if", "(", "this", ".", "recoveryScanner", "!=", "null", ")", "{", "if", "(", "nameIndex", ">=", "0", ")", "{", "addedToken", "=", "Parser", ".", "reverse_index", "[", "nameIndex", "]", ";", "}", "}", "switch", "(", "msgCode", ")", "{", "case", "MISPLACED_CODE", ":", "if", "(", "this", ".", "recoveryScanner", "!=", "null", ")", "{", "this", ".", "recoveryScanner", ".", "removeTokens", "(", "errorStart", ",", "errorEnd", ")", ";", "}", "if", "(", "this", ".", "reportProblem", ")", "problemReporter", "(", ")", ".", "parseErrorMisplacedConstruct", "(", "errorStart", ",", "errorEnd", ")", ";", "break", ";", "case", "SCOPE_CODE", ":", "errorStart", "=", "this", ".", "lexStream", ".", "start", "(", "rightToken", ")", ";", "StringBuffer", "buf", "=", "new", "StringBuffer", "(", ")", ";", "int", "[", "]", "addedTokens", "=", "null", ";", "int", "addedTokenCount", "=", "0", ";", "if", "(", "this", ".", "recoveryScanner", "!=", "null", ")", "{", "addedTokens", "=", "new", "int", "[", "Parser", ".", "scope_rhs", ".", "length", "-", "Parser", ".", "scope_suffix", "[", "-", "nameIndex", "]", "]", ";", "}", "for", "(", "int", "i", "=", "Parser", ".", "scope_suffix", "[", "-", "nameIndex", "]", ";", "Parser", ".", "scope_rhs", "[", "i", "]", "!=", "0", ";", "i", "++", ")", "{", "buf", ".", "append", "(", "Parser", ".", "readableName", "[", "Parser", ".", "scope_rhs", "[", "i", "]", "]", ")", ";", "if", "(", "Parser", ".", "scope_rhs", "[", "i", "+", "1", "]", "!=", "0", ")", "buf", ".", "append", "(", "'", "'", ")", ";", "if", "(", "addedTokens", "!=", "null", ")", "{", "int", "tmpAddedToken", "=", "Parser", ".", "reverse_index", "[", "Parser", ".", "scope_rhs", "[", "i", "]", "]", ";", "if", "(", "tmpAddedToken", ">", "-", "1", ")", "{", "int", "length", "=", "addedTokens", ".", "length", ";", "if", "(", "addedTokenCount", "==", "length", ")", "{", "System", ".", "arraycopy", "(", "addedTokens", ",", "0", ",", "addedTokens", "=", "new", "int", "[", "length", "*", "2", "]", ",", "0", ",", "length", ")", ";", "}", "addedTokens", "[", "addedTokenCount", "++", "]", "=", "tmpAddedToken", ";", "}", "else", "{", "int", "[", "]", "template", "=", "getNTermTemplate", "(", "-", "tmpAddedToken", ")", ";", "if", "(", "template", "!=", "null", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "template", ".", "length", ";", "j", "++", ")", "{", "int", "length", "=", "addedTokens", ".", "length", ";", "if", "(", "addedTokenCount", "==", "length", ")", "{", "System", ".", "arraycopy", "(", "addedTokens", ",", "0", ",", "addedTokens", "=", "new", "int", "[", "length", "*", "2", "]", ",", "0", ",", "length", ")", ";", "}", "addedTokens", "[", "addedTokenCount", "++", "]", "=", "template", "[", "j", "]", ";", "}", "}", "else", "{", "addedTokenCount", "=", "0", ";", "addedTokens", "=", "null", ";", "}", "}", "}", "}", "if", "(", "addedTokenCount", ">", "0", ")", "{", "System", ".", "arraycopy", "(", "addedTokens", ",", "0", ",", "addedTokens", "=", "new", "int", "[", "addedTokenCount", "]", ",", "0", ",", "addedTokenCount", ")", ";", "int", "completedToken", "=", "-", "1", ";", "if", "(", "scopeNameIndex", "!=", "0", ")", "{", "completedToken", "=", "-", "Parser", ".", "reverse_index", "[", "scopeNameIndex", "]", ";", "}", "this", ".", "recoveryScanner", ".", "insertTokens", "(", "addedTokens", ",", "completedToken", ",", "errorEnd", ")", ";", "}", "if", "(", "scopeNameIndex", "!=", "0", ")", "{", "if", "(", "this", ".", "reportProblem", ")", "problemReporter", "(", ")", ".", "parseErrorInsertToComplete", "(", "errorStart", ",", "errorEnd", ",", "buf", ".", "toString", "(", ")", ",", "Parser", ".", "readableName", "[", "scopeNameIndex", "]", ")", ";", "}", "else", "{", "if", "(", "this", ".", "reportProblem", ")", "problemReporter", "(", ")", ".", "parseErrorInsertToCompletePhrase", "(", "errorStart", ",", "errorEnd", ",", "buf", ".", "toString", "(", ")", ")", ";", "}", "break", ";", "case", "MERGE_CODE", ":", "if", "(", "this", ".", "recoveryScanner", "!=", "null", ")", "{", "if", "(", "addedToken", ">", "-", "1", ")", "{", "this", ".", "recoveryScanner", ".", "replaceTokens", "(", "addedToken", ",", "errorStart", ",", "errorEnd", ")", ";", "}", "else", "{", "int", "[", "]", "template", "=", "getNTermTemplate", "(", "-", "addedToken", ")", ";", "if", "(", "template", "!=", "null", ")", "{", "this", ".", "recoveryScanner", ".", "replaceTokens", "(", "template", ",", "errorStart", ",", "errorEnd", ")", ";", "}", "}", "}", "if", "(", "this", ".", "reportProblem", ")", "problemReporter", "(", ")", ".", "parseErrorMergeTokens", "(", "errorStart", ",", "errorEnd", ",", "name", ")", ";", "break", ";", "case", "DELETION_CODE", ":", "if", "(", "this", ".", "recoveryScanner", "!=", "null", ")", "{", "this", ".", "recoveryScanner", ".", "removeTokens", "(", "errorStart", ",", "errorEnd", ")", ";", "}", "if", "(", "this", ".", "reportProblem", ")", "problemReporter", "(", ")", ".", "parseErrorDeleteTokens", "(", "errorStart", ",", "errorEnd", ")", ";", "break", ";", "default", ":", "if", "(", "name", ".", "length", "(", ")", "==", "0", ")", "{", "if", "(", "this", ".", "recoveryScanner", "!=", "null", ")", "{", "this", ".", "recoveryScanner", ".", "removeTokens", "(", "errorStart", ",", "errorEnd", ")", ";", "}", "if", "(", "this", ".", "reportProblem", ")", "problemReporter", "(", ")", ".", "parseErrorNoSuggestionForTokens", "(", "errorStart", ",", "errorEnd", ")", ";", "}", "else", "{", "if", "(", "this", ".", "recoveryScanner", "!=", "null", ")", "{", "if", "(", "addedToken", ">", "-", "1", ")", "{", "this", ".", "recoveryScanner", ".", "replaceTokens", "(", "addedToken", ",", "errorStart", ",", "errorEnd", ")", ";", "}", "else", "{", "int", "[", "]", "template", "=", "getNTermTemplate", "(", "-", "addedToken", ")", ";", "if", "(", "template", "!=", "null", ")", "{", "this", ".", "recoveryScanner", ".", "replaceTokens", "(", "template", ",", "errorStart", ",", "errorEnd", ")", ";", "}", "}", "}", "if", "(", "this", ".", "reportProblem", ")", "problemReporter", "(", ")", ".", "parseErrorReplaceTokens", "(", "errorStart", ",", "errorEnd", ",", "name", ")", ";", "}", "}", "return", ";", "}", "private", "int", "[", "]", "getNTermTemplate", "(", "int", "sym", ")", "{", "int", "templateIndex", "=", "Parser", ".", "recovery_templates_index", "[", "sym", "]", ";", "if", "(", "templateIndex", ">", "0", ")", "{", "int", "[", "]", "result", "=", "new", "int", "[", "Parser", ".", "recovery_templates", ".", "length", "]", ";", "int", "count", "=", "0", ";", "for", "(", "int", "j", "=", "templateIndex", ";", "Parser", ".", "recovery_templates", "[", "j", "]", "!=", "0", ";", "j", "++", ")", "{", "result", "[", "count", "++", "]", "=", "Parser", ".", "recovery_templates", "[", "j", "]", ";", "}", "System", ".", "arraycopy", "(", "result", ",", "0", ",", "result", "=", "new", "int", "[", "count", "]", ",", "0", ",", "count", ")", ";", "return", "result", ";", "}", "else", "{", "return", "null", ";", "}", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "res", "=", "new", "StringBuffer", "(", ")", ";", "res", ".", "append", "(", "this", ".", "lexStream", ".", "toString", "(", ")", ")", ";", "return", "res", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
3,333
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "public", "class", "NLSTag", "{", "public", "int", "start", ";", "public", "int", "end", ";", "public", "int", "lineNumber", ";", "public", "int", "index", ";", "public", "NLSTag", "(", "int", "start", ",", "int", "end", ",", "int", "lineNumber", ",", "int", "index", ")", "{", "this", ".", "start", "=", "start", ";", "this", ".", "end", "=", "end", ";", "this", ".", "lineNumber", "=", "lineNumber", ";", "this", ".", "index", "=", "index", ";", "}", "public", "String", "toString", "(", ")", "{", "return", "\"NLSTag(\"", "+", "this", ".", "start", "+", "\",\"", "+", "this", ".", "end", "+", "\",\"", "+", "this", ".", "lineNumber", "+", "\")\"", ";", "}", "}", "</s>" ]
3,334
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "import", "java", ".", "util", ".", "HashSet", ";", "import", "java", ".", "util", ".", "Set", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Statement", ";", "public", "class", "RecoveredStatement", "extends", "RecoveredElement", "{", "public", "Statement", "statement", ";", "public", "RecoveredStatement", "(", "Statement", "statement", ",", "RecoveredElement", "parent", ",", "int", "bracketBalance", ")", "{", "super", "(", "parent", ",", "bracketBalance", ")", ";", "this", ".", "statement", "=", "statement", ";", "}", "public", "ASTNode", "parseTree", "(", ")", "{", "return", "this", ".", "statement", ";", "}", "public", "int", "sourceEnd", "(", ")", "{", "return", "this", ".", "statement", ".", "sourceEnd", ";", "}", "public", "String", "toString", "(", "int", "tab", ")", "{", "return", "tabString", "(", "tab", ")", "+", "\"\"", "+", "this", ".", "statement", ".", "print", "(", "tab", "+", "1", ",", "new", "StringBuffer", "(", "10", ")", ")", ";", "}", "public", "Statement", "updatedStatement", "(", "int", "depth", ",", "Set", "knownTypes", ")", "{", "return", "this", ".", "statement", ";", "}", "public", "void", "updateParseTree", "(", ")", "{", "updatedStatement", "(", "0", ",", "new", "HashSet", "(", ")", ")", ";", "}", "public", "void", "updateSourceEndIfNecessary", "(", "int", "bodyStart", ",", "int", "bodyEnd", ")", "{", "if", "(", "this", ".", "statement", ".", "sourceEnd", "==", "0", ")", "this", ".", "statement", ".", "sourceEnd", "=", "bodyEnd", ";", "}", "public", "RecoveredElement", "updateOnClosingBrace", "(", "int", "braceStart", ",", "int", "braceEnd", ")", "{", "if", "(", "(", "--", "this", ".", "bracketBalance", "<=", "0", ")", "&&", "(", "this", ".", "parent", "!=", "null", ")", ")", "{", "this", ".", "updateSourceEndIfNecessary", "(", "braceStart", ",", "braceEnd", ")", ";", "return", "this", ".", "parent", ".", "updateOnClosingBrace", "(", "braceStart", ",", "braceEnd", ")", ";", "}", "return", "this", ";", "}", "}", "</s>" ]
3,335
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "import", "java", ".", "util", ".", "HashSet", ";", "import", "java", ".", "util", ".", "Set", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "AbstractMethodDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Block", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "CompilationUnitDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "FieldDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ImportReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Initializer", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeDeclaration", ";", "public", "class", "RecoveredUnit", "extends", "RecoveredElement", "{", "public", "CompilationUnitDeclaration", "unitDeclaration", ";", "public", "RecoveredImport", "[", "]", "imports", ";", "public", "int", "importCount", ";", "public", "RecoveredType", "[", "]", "types", ";", "public", "int", "typeCount", ";", "int", "pendingModifiers", ";", "int", "pendingModifersSourceStart", "=", "-", "1", ";", "RecoveredAnnotation", "[", "]", "pendingAnnotations", ";", "int", "pendingAnnotationCount", ";", "public", "RecoveredUnit", "(", "CompilationUnitDeclaration", "unitDeclaration", ",", "int", "bracketBalance", ",", "Parser", "parser", ")", "{", "super", "(", "null", ",", "bracketBalance", ",", "parser", ")", ";", "this", ".", "unitDeclaration", "=", "unitDeclaration", ";", "}", "public", "RecoveredElement", "addAnnotationName", "(", "int", "identifierPtr", ",", "int", "identifierLengthPtr", ",", "int", "annotationStart", ",", "int", "bracketBalanceValue", ")", "{", "if", "(", "this", ".", "pendingAnnotations", "==", "null", ")", "{", "this", ".", "pendingAnnotations", "=", "new", "RecoveredAnnotation", "[", "5", "]", ";", "this", ".", "pendingAnnotationCount", "=", "0", ";", "}", "else", "{", "if", "(", "this", ".", "pendingAnnotationCount", "==", "this", ".", "pendingAnnotations", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "pendingAnnotations", ",", "0", ",", "(", "this", ".", "pendingAnnotations", "=", "new", "RecoveredAnnotation", "[", "2", "*", "this", ".", "pendingAnnotationCount", "]", ")", ",", "0", ",", "this", ".", "pendingAnnotationCount", ")", ";", "}", "}", "RecoveredAnnotation", "element", "=", "new", "RecoveredAnnotation", "(", "identifierPtr", ",", "identifierLengthPtr", ",", "annotationStart", ",", "this", ",", "bracketBalanceValue", ")", ";", "this", ".", "pendingAnnotations", "[", "this", ".", "pendingAnnotationCount", "++", "]", "=", "element", ";", "return", "element", ";", "}", "public", "void", "addModifier", "(", "int", "flag", ",", "int", "modifiersSourceStart", ")", "{", "this", ".", "pendingModifiers", "|=", "flag", ";", "if", "(", "this", ".", "pendingModifersSourceStart", "<", "0", ")", "{", "this", ".", "pendingModifersSourceStart", "=", "modifiersSourceStart", ";", "}", "}", "public", "RecoveredElement", "add", "(", "AbstractMethodDeclaration", "methodDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "if", "(", "this", ".", "typeCount", ">", "0", ")", "{", "RecoveredType", "type", "=", "this", ".", "types", "[", "this", ".", "typeCount", "-", "1", "]", ";", "int", "start", "=", "type", ".", "bodyEnd", ";", "int", "end", "=", "type", ".", "typeDeclaration", ".", "bodyEnd", ";", "type", ".", "bodyEnd", "=", "0", ";", "type", ".", "typeDeclaration", ".", "declarationSourceEnd", "=", "0", ";", "type", ".", "typeDeclaration", ".", "bodyEnd", "=", "0", ";", "int", "kind", "=", "TypeDeclaration", ".", "kind", "(", "type", ".", "typeDeclaration", ".", "modifiers", ")", ";", "if", "(", "start", ">", "0", "&&", "start", "<", "end", "&&", "kind", "!=", "TypeDeclaration", ".", "INTERFACE_DECL", "&&", "kind", "!=", "TypeDeclaration", ".", "ANNOTATION_TYPE_DECL", ")", "{", "Initializer", "initializer", "=", "new", "Initializer", "(", "new", "Block", "(", "0", ")", ",", "0", ")", ";", "initializer", ".", "bodyStart", "=", "end", ";", "initializer", ".", "bodyEnd", "=", "end", ";", "initializer", ".", "declarationSourceStart", "=", "end", ";", "initializer", ".", "declarationSourceEnd", "=", "end", ";", "initializer", ".", "sourceStart", "=", "end", ";", "initializer", ".", "sourceEnd", "=", "end", ";", "type", ".", "add", "(", "initializer", ",", "bracketBalanceValue", ")", ";", "}", "resetPendingModifiers", "(", ")", ";", "return", "type", ".", "add", "(", "methodDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "return", "this", ";", "}", "public", "RecoveredElement", "add", "(", "FieldDeclaration", "fieldDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "if", "(", "this", ".", "typeCount", ">", "0", ")", "{", "RecoveredType", "type", "=", "this", ".", "types", "[", "this", ".", "typeCount", "-", "1", "]", ";", "type", ".", "bodyEnd", "=", "0", ";", "type", ".", "typeDeclaration", ".", "declarationSourceEnd", "=", "0", ";", "type", ".", "typeDeclaration", ".", "bodyEnd", "=", "0", ";", "resetPendingModifiers", "(", ")", ";", "return", "type", ".", "add", "(", "fieldDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "return", "this", ";", "}", "public", "RecoveredElement", "add", "(", "ImportReference", "importReference", ",", "int", "bracketBalanceValue", ")", "{", "resetPendingModifiers", "(", ")", ";", "if", "(", "this", ".", "imports", "==", "null", ")", "{", "this", ".", "imports", "=", "new", "RecoveredImport", "[", "5", "]", ";", "this", ".", "importCount", "=", "0", ";", "}", "else", "{", "if", "(", "this", ".", "importCount", "==", "this", ".", "imports", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "imports", ",", "0", ",", "(", "this", ".", "imports", "=", "new", "RecoveredImport", "[", "2", "*", "this", ".", "importCount", "]", ")", ",", "0", ",", "this", ".", "importCount", ")", ";", "}", "}", "RecoveredImport", "element", "=", "new", "RecoveredImport", "(", "importReference", ",", "this", ",", "bracketBalanceValue", ")", ";", "this", ".", "imports", "[", "this", ".", "importCount", "++", "]", "=", "element", ";", "if", "(", "importReference", ".", "declarationSourceEnd", "==", "0", ")", "return", "element", ";", "return", "this", ";", "}", "public", "RecoveredElement", "add", "(", "TypeDeclaration", "typeDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "if", "(", "(", "typeDeclaration", ".", "bits", "&", "ASTNode", ".", "IsAnonymousType", ")", "!=", "0", ")", "{", "if", "(", "this", ".", "typeCount", ">", "0", ")", "{", "RecoveredType", "lastType", "=", "this", ".", "types", "[", "this", ".", "typeCount", "-", "1", "]", ";", "lastType", ".", "bodyEnd", "=", "0", ";", "lastType", ".", "typeDeclaration", ".", "bodyEnd", "=", "0", ";", "lastType", ".", "typeDeclaration", ".", "declarationSourceEnd", "=", "0", ";", "lastType", ".", "bracketBalance", "++", ";", "resetPendingModifiers", "(", ")", ";", "return", "lastType", ".", "add", "(", "typeDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "}", "if", "(", "this", ".", "types", "==", "null", ")", "{", "this", ".", "types", "=", "new", "RecoveredType", "[", "5", "]", ";", "this", ".", "typeCount", "=", "0", ";", "}", "else", "{", "if", "(", "this", ".", "typeCount", "==", "this", ".", "types", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "types", ",", "0", ",", "(", "this", ".", "types", "=", "new", "RecoveredType", "[", "2", "*", "this", ".", "typeCount", "]", ")", ",", "0", ",", "this", ".", "typeCount", ")", ";", "}", "}", "RecoveredType", "element", "=", "new", "RecoveredType", "(", "typeDeclaration", ",", "this", ",", "bracketBalanceValue", ")", ";", "this", ".", "types", "[", "this", ".", "typeCount", "++", "]", "=", "element", ";", "if", "(", "this", ".", "pendingAnnotationCount", ">", "0", ")", "{", "element", ".", "attach", "(", "this", ".", "pendingAnnotations", ",", "this", ".", "pendingAnnotationCount", ",", "this", ".", "pendingModifiers", ",", "this", ".", "pendingModifersSourceStart", ")", ";", "}", "resetPendingModifiers", "(", ")", ";", "if", "(", "typeDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "return", "element", ";", "return", "this", ";", "}", "public", "ASTNode", "parseTree", "(", ")", "{", "return", "this", ".", "unitDeclaration", ";", "}", "public", "void", "resetPendingModifiers", "(", ")", "{", "this", ".", "pendingAnnotations", "=", "null", ";", "this", ".", "pendingAnnotationCount", "=", "0", ";", "this", ".", "pendingModifiers", "=", "0", ";", "this", ".", "pendingModifersSourceStart", "=", "-", "1", ";", "}", "public", "int", "sourceEnd", "(", ")", "{", "return", "this", ".", "unitDeclaration", ".", "sourceEnd", ";", "}", "public", "String", "toString", "(", "int", "tab", ")", "{", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "tabString", "(", "tab", ")", ")", ";", "result", ".", "append", "(", "\"\"", ")", ";", "this", ".", "unitDeclaration", ".", "print", "(", "tab", "+", "1", ",", "result", ")", ";", "result", ".", "append", "(", "tabString", "(", "tab", "+", "1", ")", ")", ";", "result", ".", "append", "(", "\"]\"", ")", ";", "if", "(", "this", ".", "imports", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "importCount", ";", "i", "++", ")", "{", "result", ".", "append", "(", "\"n\"", ")", ";", "result", ".", "append", "(", "this", ".", "imports", "[", "i", "]", ".", "toString", "(", "tab", "+", "1", ")", ")", ";", "}", "}", "if", "(", "this", ".", "types", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "typeCount", ";", "i", "++", ")", "{", "result", ".", "append", "(", "\"n\"", ")", ";", "result", ".", "append", "(", "this", ".", "types", "[", "i", "]", ".", "toString", "(", "tab", "+", "1", ")", ")", ";", "}", "}", "return", "result", ".", "toString", "(", ")", ";", "}", "public", "CompilationUnitDeclaration", "updatedCompilationUnitDeclaration", "(", ")", "{", "if", "(", "this", ".", "importCount", ">", "0", ")", "{", "ImportReference", "[", "]", "importRefences", "=", "new", "ImportReference", "[", "this", ".", "importCount", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "importCount", ";", "i", "++", ")", "{", "importRefences", "[", "i", "]", "=", "this", ".", "imports", "[", "i", "]", ".", "updatedImportReference", "(", ")", ";", "}", "this", ".", "unitDeclaration", ".", "imports", "=", "importRefences", ";", "}", "if", "(", "this", ".", "typeCount", ">", "0", ")", "{", "int", "existingCount", "=", "this", ".", "unitDeclaration", ".", "types", "==", "null", "?", "0", ":", "this", ".", "unitDeclaration", ".", "types", ".", "length", ";", "TypeDeclaration", "[", "]", "typeDeclarations", "=", "new", "TypeDeclaration", "[", "existingCount", "+", "this", ".", "typeCount", "]", ";", "if", "(", "existingCount", ">", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "unitDeclaration", ".", "types", ",", "0", ",", "typeDeclarations", ",", "0", ",", "existingCount", ")", ";", "}", "if", "(", "this", ".", "types", "[", "this", ".", "typeCount", "-", "1", "]", ".", "typeDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "{", "this", ".", "types", "[", "this", ".", "typeCount", "-", "1", "]", ".", "typeDeclaration", ".", "declarationSourceEnd", "=", "this", ".", "unitDeclaration", ".", "sourceEnd", ";", "this", ".", "types", "[", "this", ".", "typeCount", "-", "1", "]", ".", "typeDeclaration", ".", "bodyEnd", "=", "this", ".", "unitDeclaration", ".", "sourceEnd", ";", "}", "Set", "knownTypes", "=", "new", "HashSet", "(", ")", ";", "int", "actualCount", "=", "existingCount", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "typeCount", ";", "i", "++", ")", "{", "TypeDeclaration", "typeDecl", "=", "this", ".", "types", "[", "i", "]", ".", "updatedTypeDeclaration", "(", "0", ",", "knownTypes", ")", ";", "if", "(", "typeDecl", "!=", "null", "&&", "(", "typeDecl", ".", "bits", "&", "ASTNode", ".", "IsLocalType", ")", "==", "0", ")", "{", "typeDeclarations", "[", "actualCount", "++", "]", "=", "typeDecl", ";", "}", "}", "if", "(", "actualCount", "!=", "this", ".", "typeCount", ")", "{", "System", ".", "arraycopy", "(", "typeDeclarations", ",", "0", ",", "typeDeclarations", "=", "new", "TypeDeclaration", "[", "existingCount", "+", "actualCount", "]", ",", "0", ",", "existingCount", "+", "actualCount", ")", ";", "}", "this", ".", "unitDeclaration", ".", "types", "=", "typeDeclarations", ";", "}", "return", "this", ".", "unitDeclaration", ";", "}", "public", "void", "updateParseTree", "(", ")", "{", "updatedCompilationUnitDeclaration", "(", ")", ";", "}", "public", "void", "updateSourceEndIfNecessary", "(", "int", "bodyStart", ",", "int", "bodyEnd", ")", "{", "if", "(", "this", ".", "unitDeclaration", ".", "sourceEnd", "==", "0", ")", "this", ".", "unitDeclaration", ".", "sourceEnd", "=", "bodyEnd", ";", "}", "}", "</s>" ]
3,336
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "import", "java", ".", "io", ".", "BufferedInputStream", ";", "import", "java", ".", "io", ".", "DataInputStream", ";", "import", "java", ".", "io", ".", "FileNotFoundException", ";", "import", "java", ".", "io", ".", "IOException", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "InvalidInputException", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "public", "class", "ScannerHelper", "{", "public", "final", "static", "long", "[", "]", "Bits", "=", "{", "ASTNode", ".", "Bit1", ",", "ASTNode", ".", "Bit2", ",", "ASTNode", ".", "Bit3", ",", "ASTNode", ".", "Bit4", ",", "ASTNode", ".", "Bit5", ",", "ASTNode", ".", "Bit6", ",", "ASTNode", ".", "Bit7", ",", "ASTNode", ".", "Bit8", ",", "ASTNode", ".", "Bit9", ",", "ASTNode", ".", "Bit10", ",", "ASTNode", ".", "Bit11", ",", "ASTNode", ".", "Bit12", ",", "ASTNode", ".", "Bit13", ",", "ASTNode", ".", "Bit14", ",", "ASTNode", ".", "Bit15", ",", "ASTNode", ".", "Bit16", ",", "ASTNode", ".", "Bit17", ",", "ASTNode", ".", "Bit18", ",", "ASTNode", ".", "Bit19", ",", "ASTNode", ".", "Bit20", ",", "ASTNode", ".", "Bit21", ",", "ASTNode", ".", "Bit22", ",", "ASTNode", ".", "Bit23", ",", "ASTNode", ".", "Bit24", ",", "ASTNode", ".", "Bit25", ",", "ASTNode", ".", "Bit26", ",", "ASTNode", ".", "Bit27", ",", "ASTNode", ".", "Bit28", ",", "ASTNode", ".", "Bit29", ",", "ASTNode", ".", "Bit30", ",", "ASTNode", ".", "Bit31", ",", "ASTNode", ".", "Bit32", ",", "ASTNode", ".", "Bit33L", ",", "ASTNode", ".", "Bit34L", ",", "ASTNode", ".", "Bit35L", ",", "ASTNode", ".", "Bit36L", ",", "ASTNode", ".", "Bit37L", ",", "ASTNode", ".", "Bit38L", ",", "ASTNode", ".", "Bit39L", ",", "ASTNode", ".", "Bit40L", ",", "ASTNode", ".", "Bit41L", ",", "ASTNode", ".", "Bit42L", ",", "ASTNode", ".", "Bit43L", ",", "ASTNode", ".", "Bit44L", ",", "ASTNode", ".", "Bit45L", ",", "ASTNode", ".", "Bit46L", ",", "ASTNode", ".", "Bit47L", ",", "ASTNode", ".", "Bit48L", ",", "ASTNode", ".", "Bit49L", ",", "ASTNode", ".", "Bit50L", ",", "ASTNode", ".", "Bit51L", ",", "ASTNode", ".", "Bit52L", ",", "ASTNode", ".", "Bit53L", ",", "ASTNode", ".", "Bit54L", ",", "ASTNode", ".", "Bit55L", ",", "ASTNode", ".", "Bit56L", ",", "ASTNode", ".", "Bit57L", ",", "ASTNode", ".", "Bit58L", ",", "ASTNode", ".", "Bit59L", ",", "ASTNode", ".", "Bit60L", ",", "ASTNode", ".", "Bit61L", ",", "ASTNode", ".", "Bit62L", ",", "ASTNode", ".", "Bit63L", ",", "ASTNode", ".", "Bit64L", ",", "}", ";", "private", "static", "final", "int", "START_INDEX", "=", "0", ";", "private", "static", "final", "int", "PART_INDEX", "=", "1", ";", "private", "static", "long", "[", "]", "[", "]", "[", "]", "Tables", ";", "private", "static", "long", "[", "]", "[", "]", "[", "]", "Tables7", ";", "public", "final", "static", "int", "MAX_OBVIOUS", "=", "128", ";", "public", "final", "static", "int", "[", "]", "OBVIOUS_IDENT_CHAR_NATURES", "=", "new", "int", "[", "MAX_OBVIOUS", "]", ";", "public", "final", "static", "int", "C_JLS_SPACE", "=", "ASTNode", ".", "Bit9", ";", "public", "final", "static", "int", "C_SPECIAL", "=", "ASTNode", ".", "Bit8", ";", "public", "final", "static", "int", "C_IDENT_START", "=", "ASTNode", ".", "Bit7", ";", "public", "final", "static", "int", "C_UPPER_LETTER", "=", "ASTNode", ".", "Bit6", ";", "public", "final", "static", "int", "C_LOWER_LETTER", "=", "ASTNode", ".", "Bit5", ";", "public", "final", "static", "int", "C_IDENT_PART", "=", "ASTNode", ".", "Bit4", ";", "public", "final", "static", "int", "C_DIGIT", "=", "ASTNode", ".", "Bit3", ";", "public", "final", "static", "int", "C_SEPARATOR", "=", "ASTNode", ".", "Bit2", ";", "public", "final", "static", "int", "C_SPACE", "=", "ASTNode", ".", "Bit1", ";", "static", "{", "OBVIOUS_IDENT_CHAR_NATURES", "[", "0", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "1", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "2", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "3", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "4", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "5", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "6", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "7", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "8", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "14", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "15", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "16", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "17", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "18", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "19", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "20", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "21", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "22", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "23", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "24", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "25", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "26", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "27", "]", "=", "C_IDENT_PART", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "127", "]", "=", "C_IDENT_PART", ";", "for", "(", "int", "i", "=", "'0'", ";", "i", "<=", "'9'", ";", "i", "++", ")", "OBVIOUS_IDENT_CHAR_NATURES", "[", "i", "]", "=", "C_DIGIT", "|", "C_IDENT_PART", ";", "for", "(", "int", "i", "=", "'a'", ";", "i", "<=", "'z'", ";", "i", "++", ")", "OBVIOUS_IDENT_CHAR_NATURES", "[", "i", "]", "=", "C_LOWER_LETTER", "|", "C_IDENT_PART", "|", "C_IDENT_START", ";", "for", "(", "int", "i", "=", "'A'", ";", "i", "<=", "'Z'", ";", "i", "++", ")", "OBVIOUS_IDENT_CHAR_NATURES", "[", "i", "]", "=", "C_UPPER_LETTER", "|", "C_IDENT_PART", "|", "C_IDENT_START", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'_'", "]", "=", "C_SPECIAL", "|", "C_IDENT_PART", "|", "C_IDENT_START", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'$'", "]", "=", "C_SPECIAL", "|", "C_IDENT_PART", "|", "C_IDENT_START", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "9", "]", "=", "C_SPACE", "|", "C_JLS_SPACE", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "10", "]", "=", "C_SPACE", "|", "C_JLS_SPACE", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "11", "]", "=", "C_SPACE", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "12", "]", "=", "C_SPACE", "|", "C_JLS_SPACE", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "13", "]", "=", "C_SPACE", "|", "C_JLS_SPACE", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "28", "]", "=", "C_SPACE", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "29", "]", "=", "C_SPACE", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "30", "]", "=", "C_SPACE", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "31", "]", "=", "C_SPACE", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "32", "]", "=", "C_SPACE", "|", "C_JLS_SPACE", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'.'", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "':'", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "';'", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "','", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'['", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "']'", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'('", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "')'", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'{'", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'}'", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'+'", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'-'", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'*'", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'/'", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'='", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'&'", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'|'", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'?'", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'<'", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'>'", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'!'", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'%'", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'^'", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'~'", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'\"'", "]", "=", "C_SEPARATOR", ";", "OBVIOUS_IDENT_CHAR_NATURES", "[", "'\\''", "]", "=", "C_SEPARATOR", ";", "}", "static", "void", "initializeTable", "(", ")", "{", "Tables", "=", "new", "long", "[", "2", "]", "[", "]", "[", "]", ";", "Tables", "[", "START_INDEX", "]", "=", "new", "long", "[", "3", "]", "[", "]", ";", "Tables", "[", "PART_INDEX", "]", "=", "new", "long", "[", "4", "]", "[", "]", ";", "try", "{", "DataInputStream", "inputStream", "=", "new", "DataInputStream", "(", "new", "BufferedInputStream", "(", "ScannerHelper", ".", "class", ".", "getResourceAsStream", "(", "\"\"", ")", ")", ")", ";", "long", "[", "]", "readValues", "=", "new", "long", "[", "1024", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "1024", ";", "i", "++", ")", "{", "readValues", "[", "i", "]", "=", "inputStream", ".", "readLong", "(", ")", ";", "}", "inputStream", ".", "close", "(", ")", ";", "Tables", "[", "START_INDEX", "]", "[", "0", "]", "=", "readValues", ";", "}", "catch", "(", "FileNotFoundException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "try", "{", "DataInputStream", "inputStream", "=", "new", "DataInputStream", "(", "new", "BufferedInputStream", "(", "ScannerHelper", ".", "class", ".", "getResourceAsStream", "(", "\"\"", ")", ")", ")", ";", "long", "[", "]", "readValues", "=", "new", "long", "[", "1024", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "1024", ";", "i", "++", ")", "{", "readValues", "[", "i", "]", "=", "inputStream", ".", "readLong", "(", ")", ";", "}", "inputStream", ".", "close", "(", ")", ";", "Tables", "[", "START_INDEX", "]", "[", "1", "]", "=", "readValues", ";", "}", "catch", "(", "FileNotFoundException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "try", "{", "DataInputStream", "inputStream", "=", "new", "DataInputStream", "(", "new", "BufferedInputStream", "(", "ScannerHelper", ".", "class", ".", "getResourceAsStream", "(", "\"\"", ")", ")", ")", ";", "long", "[", "]", "readValues", "=", "new", "long", "[", "1024", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "1024", ";", "i", "++", ")", "{", "readValues", "[", "i", "]", "=", "inputStream", ".", "readLong", "(", ")", ";", "}", "inputStream", ".", "close", "(", ")", ";", "Tables", "[", "START_INDEX", "]", "[", "2", "]", "=", "readValues", ";", "}", "catch", "(", "FileNotFoundException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "try", "{", "DataInputStream", "inputStream", "=", "new", "DataInputStream", "(", "new", "BufferedInputStream", "(", "ScannerHelper", ".", "class", ".", "getResourceAsStream", "(", "\"\"", ")", ")", ")", ";", "long", "[", "]", "readValues", "=", "new", "long", "[", "1024", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "1024", ";", "i", "++", ")", "{", "readValues", "[", "i", "]", "=", "inputStream", ".", "readLong", "(", ")", ";", "}", "inputStream", ".", "close", "(", ")", ";", "Tables", "[", "PART_INDEX", "]", "[", "0", "]", "=", "readValues", ";", "}", "catch", "(", "FileNotFoundException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "try", "{", "DataInputStream", "inputStream", "=", "new", "DataInputStream", "(", "new", "BufferedInputStream", "(", "ScannerHelper", ".", "class", ".", "getResourceAsStream", "(", "\"\"", ")", ")", ")", ";", "long", "[", "]", "readValues", "=", "new", "long", "[", "1024", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "1024", ";", "i", "++", ")", "{", "readValues", "[", "i", "]", "=", "inputStream", ".", "readLong", "(", ")", ";", "}", "inputStream", ".", "close", "(", ")", ";", "Tables", "[", "PART_INDEX", "]", "[", "1", "]", "=", "readValues", ";", "}", "catch", "(", "FileNotFoundException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "try", "{", "DataInputStream", "inputStream", "=", "new", "DataInputStream", "(", "new", "BufferedInputStream", "(", "ScannerHelper", ".", "class", ".", "getResourceAsStream", "(", "\"\"", ")", ")", ")", ";", "long", "[", "]", "readValues", "=", "new", "long", "[", "1024", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "1024", ";", "i", "++", ")", "{", "readValues", "[", "i", "]", "=", "inputStream", ".", "readLong", "(", ")", ";", "}", "inputStream", ".", "close", "(", ")", ";", "Tables", "[", "PART_INDEX", "]", "[", "2", "]", "=", "readValues", ";", "}", "catch", "(", "FileNotFoundException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "try", "{", "DataInputStream", "inputStream", "=", "new", "DataInputStream", "(", "new", "BufferedInputStream", "(", "ScannerHelper", ".", "class", ".", "getResourceAsStream", "(", "\"\"", ")", ")", ")", ";", "long", "[", "]", "readValues", "=", "new", "long", "[", "1024", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "1024", ";", "i", "++", ")", "{", "readValues", "[", "i", "]", "=", "inputStream", ".", "readLong", "(", ")", ";", "}", "inputStream", ".", "close", "(", ")", ";", "Tables", "[", "PART_INDEX", "]", "[", "3", "]", "=", "readValues", ";", "}", "catch", "(", "FileNotFoundException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "}", "static", "void", "initializeTable17", "(", ")", "{", "Tables7", "=", "new", "long", "[", "2", "]", "[", "]", "[", "]", ";", "Tables7", "[", "START_INDEX", "]", "=", "new", "long", "[", "3", "]", "[", "]", ";", "Tables7", "[", "PART_INDEX", "]", "=", "new", "long", "[", "4", "]", "[", "]", ";", "try", "{", "DataInputStream", "inputStream", "=", "new", "DataInputStream", "(", "new", "BufferedInputStream", "(", "ScannerHelper", ".", "class", ".", "getResourceAsStream", "(", "\"\"", ")", ")", ")", ";", "long", "[", "]", "readValues", "=", "new", "long", "[", "1024", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "1024", ";", "i", "++", ")", "{", "readValues", "[", "i", "]", "=", "inputStream", ".", "readLong", "(", ")", ";", "}", "inputStream", ".", "close", "(", ")", ";", "Tables7", "[", "START_INDEX", "]", "[", "0", "]", "=", "readValues", ";", "}", "catch", "(", "FileNotFoundException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "try", "{", "DataInputStream", "inputStream", "=", "new", "DataInputStream", "(", "new", "BufferedInputStream", "(", "ScannerHelper", ".", "class", ".", "getResourceAsStream", "(", "\"\"", ")", ")", ")", ";", "long", "[", "]", "readValues", "=", "new", "long", "[", "1024", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "1024", ";", "i", "++", ")", "{", "readValues", "[", "i", "]", "=", "inputStream", ".", "readLong", "(", ")", ";", "}", "inputStream", ".", "close", "(", ")", ";", "Tables7", "[", "START_INDEX", "]", "[", "1", "]", "=", "readValues", ";", "}", "catch", "(", "FileNotFoundException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "try", "{", "DataInputStream", "inputStream", "=", "new", "DataInputStream", "(", "new", "BufferedInputStream", "(", "ScannerHelper", ".", "class", ".", "getResourceAsStream", "(", "\"\"", ")", ")", ")", ";", "long", "[", "]", "readValues", "=", "new", "long", "[", "1024", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "1024", ";", "i", "++", ")", "{", "readValues", "[", "i", "]", "=", "inputStream", ".", "readLong", "(", ")", ";", "}", "inputStream", ".", "close", "(", ")", ";", "Tables7", "[", "START_INDEX", "]", "[", "2", "]", "=", "readValues", ";", "}", "catch", "(", "FileNotFoundException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "try", "{", "DataInputStream", "inputStream", "=", "new", "DataInputStream", "(", "new", "BufferedInputStream", "(", "ScannerHelper", ".", "class", ".", "getResourceAsStream", "(", "\"\"", ")", ")", ")", ";", "long", "[", "]", "readValues", "=", "new", "long", "[", "1024", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "1024", ";", "i", "++", ")", "{", "readValues", "[", "i", "]", "=", "inputStream", ".", "readLong", "(", ")", ";", "}", "inputStream", ".", "close", "(", ")", ";", "Tables7", "[", "PART_INDEX", "]", "[", "0", "]", "=", "readValues", ";", "}", "catch", "(", "FileNotFoundException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "try", "{", "DataInputStream", "inputStream", "=", "new", "DataInputStream", "(", "new", "BufferedInputStream", "(", "ScannerHelper", ".", "class", ".", "getResourceAsStream", "(", "\"\"", ")", ")", ")", ";", "long", "[", "]", "readValues", "=", "new", "long", "[", "1024", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "1024", ";", "i", "++", ")", "{", "readValues", "[", "i", "]", "=", "inputStream", ".", "readLong", "(", ")", ";", "}", "inputStream", ".", "close", "(", ")", ";", "Tables7", "[", "PART_INDEX", "]", "[", "1", "]", "=", "readValues", ";", "}", "catch", "(", "FileNotFoundException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "try", "{", "DataInputStream", "inputStream", "=", "new", "DataInputStream", "(", "new", "BufferedInputStream", "(", "ScannerHelper", ".", "class", ".", "getResourceAsStream", "(", "\"\"", ")", ")", ")", ";", "long", "[", "]", "readValues", "=", "new", "long", "[", "1024", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "1024", ";", "i", "++", ")", "{", "readValues", "[", "i", "]", "=", "inputStream", ".", "readLong", "(", ")", ";", "}", "inputStream", ".", "close", "(", ")", ";", "Tables7", "[", "PART_INDEX", "]", "[", "2", "]", "=", "readValues", ";", "}", "catch", "(", "FileNotFoundException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "try", "{", "DataInputStream", "inputStream", "=", "new", "DataInputStream", "(", "new", "BufferedInputStream", "(", "ScannerHelper", ".", "class", ".", "getResourceAsStream", "(", "\"\"", ")", ")", ")", ";", "long", "[", "]", "readValues", "=", "new", "long", "[", "1024", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "1024", ";", "i", "++", ")", "{", "readValues", "[", "i", "]", "=", "inputStream", ".", "readLong", "(", ")", ";", "}", "inputStream", ".", "close", "(", ")", ";", "Tables7", "[", "PART_INDEX", "]", "[", "3", "]", "=", "readValues", ";", "}", "catch", "(", "FileNotFoundException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "}", "private", "final", "static", "boolean", "isBitSet", "(", "long", "[", "]", "values", ",", "int", "i", ")", "{", "try", "{", "return", "(", "values", "[", "i", "/", "64", "]", "&", "Bits", "[", "i", "%", "64", "]", ")", "!=", "0", ";", "}", "catch", "(", "NullPointerException", "e", ")", "{", "return", "false", ";", "}", "}", "public", "static", "boolean", "isJavaIdentifierPart", "(", "char", "c", ")", "{", "if", "(", "c", "<", "MAX_OBVIOUS", ")", "{", "return", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "ScannerHelper", ".", "C_IDENT_PART", ")", "!=", "0", ";", "}", "return", "Character", ".", "isJavaIdentifierPart", "(", "c", ")", ";", "}", "public", "static", "boolean", "isJavaIdentifierPart", "(", "long", "complianceLevel", ",", "char", "c", ")", "{", "if", "(", "c", "<", "MAX_OBVIOUS", ")", "{", "return", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "ScannerHelper", ".", "C_IDENT_PART", ")", "!=", "0", ";", "}", "return", "isJavaIdentifierPart", "(", "complianceLevel", ",", "(", "int", ")", "c", ")", ";", "}", "public", "static", "boolean", "isJavaIdentifierPart", "(", "long", "complianceLevel", ",", "int", "codePoint", ")", "{", "if", "(", "complianceLevel", "<=", "ClassFileConstants", ".", "JDK1_6", ")", "{", "if", "(", "Tables", "==", "null", ")", "{", "initializeTable", "(", ")", ";", "}", "switch", "(", "(", "codePoint", "&", "0x1F0000", ")", ">>", "16", ")", "{", "case", "0", ":", "return", "isBitSet", "(", "Tables", "[", "PART_INDEX", "]", "[", "0", "]", ",", "codePoint", "&", "0xFFFF", ")", ";", "case", "1", ":", "return", "isBitSet", "(", "Tables", "[", "PART_INDEX", "]", "[", "1", "]", ",", "codePoint", "&", "0xFFFF", ")", ";", "case", "2", ":", "return", "isBitSet", "(", "Tables", "[", "PART_INDEX", "]", "[", "2", "]", ",", "codePoint", "&", "0xFFFF", ")", ";", "case", "14", ":", "return", "isBitSet", "(", "Tables", "[", "PART_INDEX", "]", "[", "3", "]", ",", "codePoint", "&", "0xFFFF", ")", ";", "}", "}", "else", "{", "if", "(", "Tables7", "==", "null", ")", "{", "initializeTable17", "(", ")", ";", "}", "switch", "(", "(", "codePoint", "&", "0x1F0000", ")", ">>", "16", ")", "{", "case", "0", ":", "return", "isBitSet", "(", "Tables7", "[", "PART_INDEX", "]", "[", "0", "]", ",", "codePoint", "&", "0xFFFF", ")", ";", "case", "1", ":", "return", "isBitSet", "(", "Tables7", "[", "PART_INDEX", "]", "[", "1", "]", ",", "codePoint", "&", "0xFFFF", ")", ";", "case", "2", ":", "return", "isBitSet", "(", "Tables7", "[", "PART_INDEX", "]", "[", "2", "]", ",", "codePoint", "&", "0xFFFF", ")", ";", "case", "14", ":", "return", "isBitSet", "(", "Tables7", "[", "PART_INDEX", "]", "[", "3", "]", ",", "codePoint", "&", "0xFFFF", ")", ";", "}", "}", "return", "false", ";", "}", "public", "static", "boolean", "isJavaIdentifierPart", "(", "long", "complianceLevel", ",", "char", "high", ",", "char", "low", ")", "{", "return", "isJavaIdentifierPart", "(", "complianceLevel", ",", "toCodePoint", "(", "high", ",", "low", ")", ")", ";", "}", "public", "static", "boolean", "isJavaIdentifierStart", "(", "char", "c", ")", "{", "if", "(", "c", "<", "MAX_OBVIOUS", ")", "{", "return", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "ScannerHelper", ".", "C_IDENT_START", ")", "!=", "0", ";", "}", "return", "Character", ".", "isJavaIdentifierStart", "(", "c", ")", ";", "}", "public", "static", "boolean", "isJavaIdentifierStart", "(", "long", "complianceLevel", ",", "char", "c", ")", "{", "if", "(", "c", "<", "MAX_OBVIOUS", ")", "{", "return", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "ScannerHelper", ".", "C_IDENT_START", ")", "!=", "0", ";", "}", "return", "ScannerHelper", ".", "isJavaIdentifierStart", "(", "complianceLevel", ",", "(", "int", ")", "c", ")", ";", "}", "public", "static", "boolean", "isJavaIdentifierStart", "(", "long", "complianceLevel", ",", "char", "high", ",", "char", "low", ")", "{", "return", "isJavaIdentifierStart", "(", "complianceLevel", ",", "toCodePoint", "(", "high", ",", "low", ")", ")", ";", "}", "public", "static", "boolean", "isJavaIdentifierStart", "(", "long", "complianceLevel", ",", "int", "codePoint", ")", "{", "if", "(", "complianceLevel", "<=", "ClassFileConstants", ".", "JDK1_6", ")", "{", "if", "(", "Tables", "==", "null", ")", "{", "initializeTable", "(", ")", ";", "}", "switch", "(", "(", "codePoint", "&", "0x1F0000", ")", ">>", "16", ")", "{", "case", "0", ":", "return", "isBitSet", "(", "Tables", "[", "START_INDEX", "]", "[", "0", "]", ",", "codePoint", "&", "0xFFFF", ")", ";", "case", "1", ":", "return", "isBitSet", "(", "Tables", "[", "START_INDEX", "]", "[", "1", "]", ",", "codePoint", "&", "0xFFFF", ")", ";", "case", "2", ":", "return", "isBitSet", "(", "Tables", "[", "START_INDEX", "]", "[", "2", "]", ",", "codePoint", "&", "0xFFFF", ")", ";", "}", "}", "else", "{", "if", "(", "Tables7", "==", "null", ")", "{", "initializeTable17", "(", ")", ";", "}", "switch", "(", "(", "codePoint", "&", "0x1F0000", ")", ">>", "16", ")", "{", "case", "0", ":", "return", "isBitSet", "(", "Tables7", "[", "START_INDEX", "]", "[", "0", "]", ",", "codePoint", "&", "0xFFFF", ")", ";", "case", "1", ":", "return", "isBitSet", "(", "Tables7", "[", "START_INDEX", "]", "[", "1", "]", ",", "codePoint", "&", "0xFFFF", ")", ";", "case", "2", ":", "return", "isBitSet", "(", "Tables7", "[", "START_INDEX", "]", "[", "2", "]", ",", "codePoint", "&", "0xFFFF", ")", ";", "}", "}", "return", "false", ";", "}", "private", "static", "int", "toCodePoint", "(", "char", "high", ",", "char", "low", ")", "{", "return", "(", "high", "-", "Scanner", ".", "HIGH_SURROGATE_MIN_VALUE", ")", "*", "0x400", "+", "(", "low", "-", "Scanner", ".", "LOW_SURROGATE_MIN_VALUE", ")", "+", "0x10000", ";", "}", "public", "static", "boolean", "isDigit", "(", "char", "c", ")", "throws", "InvalidInputException", "{", "if", "(", "c", "<", "ScannerHelper", ".", "MAX_OBVIOUS", ")", "{", "return", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "ScannerHelper", ".", "C_DIGIT", ")", "!=", "0", ";", "}", "if", "(", "Character", ".", "isDigit", "(", "c", ")", ")", "{", "throw", "new", "InvalidInputException", "(", "Scanner", ".", "INVALID_DIGIT", ")", ";", "}", "return", "false", ";", "}", "public", "static", "int", "digit", "(", "char", "c", ",", "int", "radix", ")", "{", "if", "(", "c", "<", "ScannerHelper", ".", "MAX_OBVIOUS", ")", "{", "switch", "(", "radix", ")", "{", "case", "8", ":", "if", "(", "c", ">=", "48", "&&", "c", "<=", "55", ")", "{", "return", "c", "-", "48", ";", "}", "return", "-", "1", ";", "case", "10", ":", "if", "(", "c", ">=", "48", "&&", "c", "<=", "57", ")", "{", "return", "c", "-", "48", ";", "}", "return", "-", "1", ";", "case", "16", ":", "if", "(", "c", ">=", "48", "&&", "c", "<=", "57", ")", "{", "return", "c", "-", "48", ";", "}", "if", "(", "c", ">=", "65", "&&", "c", "<=", "70", ")", "{", "return", "c", "-", "65", "+", "10", ";", "}", "if", "(", "c", ">=", "97", "&&", "c", "<=", "102", ")", "{", "return", "c", "-", "97", "+", "10", ";", "}", "return", "-", "1", ";", "}", "}", "return", "Character", ".", "digit", "(", "c", ",", "radix", ")", ";", "}", "public", "static", "int", "getNumericValue", "(", "char", "c", ")", "{", "if", "(", "c", "<", "ScannerHelper", ".", "MAX_OBVIOUS", ")", "{", "switch", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", ")", "{", "case", "C_DIGIT", ":", "return", "c", "-", "'0'", ";", "case", "C_LOWER_LETTER", ":", "return", "10", "+", "c", "-", "'a'", ";", "case", "C_UPPER_LETTER", ":", "return", "10", "+", "c", "-", "'A'", ";", "}", "}", "return", "Character", ".", "getNumericValue", "(", "c", ")", ";", "}", "public", "static", "int", "getHexadecimalValue", "(", "char", "c", ")", "{", "switch", "(", "c", ")", "{", "case", "'0'", ":", "return", "0", ";", "case", "'1'", ":", "return", "1", ";", "case", "'2'", ":", "return", "2", ";", "case", "'3'", ":", "return", "3", ";", "case", "'4'", ":", "return", "4", ";", "case", "'5'", ":", "return", "5", ";", "case", "'6'", ":", "return", "6", ";", "case", "'7'", ":", "return", "7", ";", "case", "'8'", ":", "return", "8", ";", "case", "'9'", ":", "return", "9", ";", "case", "'A'", ":", "case", "'a'", ":", "return", "10", ";", "case", "'B'", ":", "case", "'b'", ":", "return", "11", ";", "case", "'C'", ":", "case", "'c'", ":", "return", "12", ";", "case", "'D'", ":", "case", "'d'", ":", "return", "13", ";", "case", "'E'", ":", "case", "'e'", ":", "return", "14", ";", "case", "'F'", ":", "case", "'f'", ":", "return", "15", ";", "default", ":", "return", "-", "1", ";", "}", "}", "public", "static", "char", "toUpperCase", "(", "char", "c", ")", "{", "if", "(", "c", "<", "MAX_OBVIOUS", ")", "{", "if", "(", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "ScannerHelper", ".", "C_UPPER_LETTER", ")", "!=", "0", ")", "{", "return", "c", ";", "}", "else", "if", "(", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "ScannerHelper", ".", "C_LOWER_LETTER", ")", "!=", "0", ")", "{", "return", "(", "char", ")", "(", "c", "-", "32", ")", ";", "}", "}", "return", "Character", ".", "toUpperCase", "(", "c", ")", ";", "}", "public", "static", "char", "toLowerCase", "(", "char", "c", ")", "{", "if", "(", "c", "<", "MAX_OBVIOUS", ")", "{", "if", "(", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "ScannerHelper", ".", "C_LOWER_LETTER", ")", "!=", "0", ")", "{", "return", "c", ";", "}", "else", "if", "(", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "ScannerHelper", ".", "C_UPPER_LETTER", ")", "!=", "0", ")", "{", "return", "(", "char", ")", "(", "32", "+", "c", ")", ";", "}", "}", "return", "Character", ".", "toLowerCase", "(", "c", ")", ";", "}", "public", "static", "boolean", "isLowerCase", "(", "char", "c", ")", "{", "if", "(", "c", "<", "MAX_OBVIOUS", ")", "{", "return", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "ScannerHelper", ".", "C_LOWER_LETTER", ")", "!=", "0", ";", "}", "return", "Character", ".", "isLowerCase", "(", "c", ")", ";", "}", "public", "static", "boolean", "isUpperCase", "(", "char", "c", ")", "{", "if", "(", "c", "<", "MAX_OBVIOUS", ")", "{", "return", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "ScannerHelper", ".", "C_UPPER_LETTER", ")", "!=", "0", ";", "}", "return", "Character", ".", "isUpperCase", "(", "c", ")", ";", "}", "public", "static", "boolean", "isWhitespace", "(", "char", "c", ")", "{", "if", "(", "c", "<", "MAX_OBVIOUS", ")", "{", "return", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "ScannerHelper", ".", "C_SPACE", ")", "!=", "0", ";", "}", "return", "Character", ".", "isWhitespace", "(", "c", ")", ";", "}", "public", "static", "boolean", "isLetter", "(", "char", "c", ")", "{", "if", "(", "c", "<", "MAX_OBVIOUS", ")", "{", "return", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "(", "ScannerHelper", ".", "C_UPPER_LETTER", "|", "ScannerHelper", ".", "C_LOWER_LETTER", ")", ")", "!=", "0", ";", "}", "return", "Character", ".", "isLetter", "(", "c", ")", ";", "}", "public", "static", "boolean", "isLetterOrDigit", "(", "char", "c", ")", "{", "if", "(", "c", "<", "MAX_OBVIOUS", ")", "{", "return", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "(", "ScannerHelper", ".", "C_UPPER_LETTER", "|", "ScannerHelper", ".", "C_LOWER_LETTER", "|", "ScannerHelper", ".", "C_DIGIT", ")", ")", "!=", "0", ";", "}", "return", "Character", ".", "isLetterOrDigit", "(", "c", ")", ";", "}", "}", "</s>" ]
3,337
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "InvalidInputException", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "CompilationResult", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "class", "Scanner", "implements", "TerminalTokens", "{", "public", "long", "sourceLevel", ";", "public", "long", "complianceLevel", ";", "public", "boolean", "useAssertAsAnIndentifier", "=", "false", ";", "public", "boolean", "containsAssertKeyword", "=", "false", ";", "public", "boolean", "useEnumAsAnIndentifier", "=", "false", ";", "public", "boolean", "recordLineSeparator", "=", "false", ";", "public", "char", "currentCharacter", ";", "public", "int", "startPosition", ";", "public", "int", "currentPosition", ";", "public", "int", "initialPosition", ",", "eofPosition", ";", "public", "boolean", "skipComments", "=", "false", ";", "public", "boolean", "tokenizeComments", "=", "false", ";", "public", "boolean", "tokenizeWhiteSpace", "=", "false", ";", "public", "char", "source", "[", "]", ";", "public", "char", "[", "]", "withoutUnicodeBuffer", ";", "public", "int", "withoutUnicodePtr", ";", "public", "boolean", "unicodeAsBackSlash", "=", "false", ";", "public", "boolean", "scanningFloatLiteral", "=", "false", ";", "public", "final", "static", "int", "COMMENT_ARRAYS_SIZE", "=", "30", ";", "public", "int", "[", "]", "commentStops", "=", "new", "int", "[", "COMMENT_ARRAYS_SIZE", "]", ";", "public", "int", "[", "]", "commentStarts", "=", "new", "int", "[", "COMMENT_ARRAYS_SIZE", "]", ";", "public", "int", "[", "]", "commentTagStarts", "=", "new", "int", "[", "COMMENT_ARRAYS_SIZE", "]", ";", "public", "int", "commentPtr", "=", "-", "1", ";", "protected", "int", "lastCommentLinePosition", "=", "-", "1", ";", "public", "char", "[", "]", "[", "]", "foundTaskTags", "=", "null", ";", "public", "char", "[", "]", "[", "]", "foundTaskMessages", ";", "public", "char", "[", "]", "[", "]", "foundTaskPriorities", "=", "null", ";", "public", "int", "[", "]", "[", "]", "foundTaskPositions", ";", "public", "int", "foundTaskCount", "=", "0", ";", "public", "char", "[", "]", "[", "]", "taskTags", "=", "null", ";", "public", "char", "[", "]", "[", "]", "taskPriorities", "=", "null", ";", "public", "boolean", "isTaskCaseSensitive", "=", "true", ";", "public", "boolean", "diet", "=", "false", ";", "public", "int", "[", "]", "lineEnds", "=", "new", "int", "[", "250", "]", ";", "public", "int", "linePtr", "=", "-", "1", ";", "public", "boolean", "wasAcr", "=", "false", ";", "public", "static", "final", "String", "END_OF_SOURCE", "=", "\"\"", ";", "public", "static", "final", "String", "INVALID_HEXA", "=", "\"\"", ";", "public", "static", "final", "String", "INVALID_OCTAL", "=", "\"\"", ";", "public", "static", "final", "String", "INVALID_CHARACTER_CONSTANT", "=", "\"\"", ";", "public", "static", "final", "String", "INVALID_ESCAPE", "=", "\"\"", ";", "public", "static", "final", "String", "INVALID_INPUT", "=", "\"\"", ";", "public", "static", "final", "String", "INVALID_UNICODE_ESCAPE", "=", "\"\"", ";", "public", "static", "final", "String", "INVALID_FLOAT", "=", "\"\"", ";", "public", "static", "final", "String", "INVALID_LOW_SURROGATE", "=", "\"\"", ";", "public", "static", "final", "String", "INVALID_HIGH_SURROGATE", "=", "\"\"", ";", "public", "static", "final", "String", "NULL_SOURCE_STRING", "=", "\"\"", ";", "public", "static", "final", "String", "UNTERMINATED_STRING", "=", "\"\"", ";", "public", "static", "final", "String", "UNTERMINATED_COMMENT", "=", "\"\"", ";", "public", "static", "final", "String", "INVALID_CHAR_IN_STRING", "=", "\"\"", ";", "public", "static", "final", "String", "INVALID_DIGIT", "=", "\"\"", ";", "private", "static", "final", "int", "[", "]", "EMPTY_LINE_ENDS", "=", "Util", ".", "EMPTY_INT_ARRAY", ";", "public", "static", "final", "String", "INVALID_BINARY", "=", "\"\"", ";", "public", "static", "final", "String", "BINARY_LITERAL_NOT_BELOW_17", "=", "\"\"", ";", "public", "static", "final", "String", "ILLEGAL_HEXA_LITERAL", "=", "\"\"", ";", "public", "static", "final", "String", "INVALID_UNDERSCORE", "=", "\"\"", ";", "public", "static", "final", "String", "UNDERSCORES_IN_LITERALS_NOT_BELOW_17", "=", "\"\"", ";", "static", "final", "char", "[", "]", "charArray_a", "=", "new", "char", "[", "]", "{", "'a'", "}", ",", "charArray_b", "=", "new", "char", "[", "]", "{", "'b'", "}", ",", "charArray_c", "=", "new", "char", "[", "]", "{", "'c'", "}", ",", "charArray_d", "=", "new", "char", "[", "]", "{", "'d'", "}", ",", "charArray_e", "=", "new", "char", "[", "]", "{", "'e'", "}", ",", "charArray_f", "=", "new", "char", "[", "]", "{", "'f'", "}", ",", "charArray_g", "=", "new", "char", "[", "]", "{", "'g'", "}", ",", "charArray_h", "=", "new", "char", "[", "]", "{", "'h'", "}", ",", "charArray_i", "=", "new", "char", "[", "]", "{", "'i'", "}", ",", "charArray_j", "=", "new", "char", "[", "]", "{", "'j'", "}", ",", "charArray_k", "=", "new", "char", "[", "]", "{", "'k'", "}", ",", "charArray_l", "=", "new", "char", "[", "]", "{", "'l'", "}", ",", "charArray_m", "=", "new", "char", "[", "]", "{", "'m'", "}", ",", "charArray_n", "=", "new", "char", "[", "]", "{", "'n'", "}", ",", "charArray_o", "=", "new", "char", "[", "]", "{", "'o'", "}", ",", "charArray_p", "=", "new", "char", "[", "]", "{", "'p'", "}", ",", "charArray_q", "=", "new", "char", "[", "]", "{", "'q'", "}", ",", "charArray_r", "=", "new", "char", "[", "]", "{", "'r'", "}", ",", "charArray_s", "=", "new", "char", "[", "]", "{", "'s'", "}", ",", "charArray_t", "=", "new", "char", "[", "]", "{", "'t'", "}", ",", "charArray_u", "=", "new", "char", "[", "]", "{", "'u'", "}", ",", "charArray_v", "=", "new", "char", "[", "]", "{", "'v'", "}", ",", "charArray_w", "=", "new", "char", "[", "]", "{", "'w'", "}", ",", "charArray_x", "=", "new", "char", "[", "]", "{", "'x'", "}", ",", "charArray_y", "=", "new", "char", "[", "]", "{", "'y'", "}", ",", "charArray_z", "=", "new", "char", "[", "]", "{", "'z'", "}", ";", "static", "final", "char", "[", "]", "initCharArray", "=", "new", "char", "[", "]", "{", "'\u0000'", ",", "'\u0000'", ",", "'\u0000'", ",", "'\u0000'", ",", "'\u0000'", ",", "'\u0000'", "}", ";", "static", "final", "int", "TableSize", "=", "30", ",", "InternalTableSize", "=", "6", ";", "public", "static", "final", "int", "OptimizedLength", "=", "7", ";", "public", "final", "char", "[", "]", "[", "]", "[", "]", "[", "]", "charArray_length", "=", "new", "char", "[", "OptimizedLength", "]", "[", "TableSize", "]", "[", "InternalTableSize", "]", "[", "]", ";", "public", "static", "final", "char", "[", "]", "TAG_PREFIX", "=", "\"//$NON-NLS-\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "int", "TAG_PREFIX_LENGTH", "=", "TAG_PREFIX", ".", "length", ";", "public", "static", "final", "char", "TAG_POSTFIX", "=", "'$'", ";", "public", "static", "final", "int", "TAG_POSTFIX_LENGTH", "=", "1", ";", "private", "NLSTag", "[", "]", "nlsTags", "=", "null", ";", "protected", "int", "nlsTagsPtr", ";", "public", "boolean", "checkNonExternalizedStringLiterals", ";", "protected", "int", "lastPosition", ";", "public", "boolean", "returnOnlyGreater", "=", "false", ";", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "6", ";", "i", "++", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "TableSize", ";", "j", "++", ")", "{", "for", "(", "int", "k", "=", "0", ";", "k", "<", "InternalTableSize", ";", "k", "++", ")", "{", "this", ".", "charArray_length", "[", "i", "]", "[", "j", "]", "[", "k", "]", "=", "initCharArray", ";", "}", "}", "}", "}", "int", "newEntry2", "=", "0", ",", "newEntry3", "=", "0", ",", "newEntry4", "=", "0", ",", "newEntry5", "=", "0", ",", "newEntry6", "=", "0", ";", "public", "boolean", "insideRecovery", "=", "false", ";", "public", "static", "final", "int", "RoundBracket", "=", "0", ";", "public", "static", "final", "int", "SquareBracket", "=", "1", ";", "public", "static", "final", "int", "CurlyBracket", "=", "2", ";", "public", "static", "final", "int", "BracketKinds", "=", "3", ";", "public", "static", "final", "int", "LOW_SURROGATE_MIN_VALUE", "=", "0xDC00", ";", "public", "static", "final", "int", "HIGH_SURROGATE_MIN_VALUE", "=", "0xD800", ";", "public", "static", "final", "int", "HIGH_SURROGATE_MAX_VALUE", "=", "0xDBFF", ";", "public", "static", "final", "int", "LOW_SURROGATE_MAX_VALUE", "=", "0xDFFF", ";", "public", "Scanner", "(", ")", "{", "this", "(", "false", ",", "false", ",", "false", ",", "ClassFileConstants", ".", "JDK1_3", ",", "null", ",", "null", ",", "true", ")", ";", "}", "public", "Scanner", "(", "boolean", "tokenizeComments", ",", "boolean", "tokenizeWhiteSpace", ",", "boolean", "checkNonExternalizedStringLiterals", ",", "long", "sourceLevel", ",", "long", "complianceLevel", ",", "char", "[", "]", "[", "]", "taskTags", ",", "char", "[", "]", "[", "]", "taskPriorities", ",", "boolean", "isTaskCaseSensitive", ")", "{", "this", ".", "eofPosition", "=", "Integer", ".", "MAX_VALUE", ";", "this", ".", "tokenizeComments", "=", "tokenizeComments", ";", "this", ".", "tokenizeWhiteSpace", "=", "tokenizeWhiteSpace", ";", "this", ".", "sourceLevel", "=", "sourceLevel", ";", "this", ".", "complianceLevel", "=", "complianceLevel", ";", "this", ".", "checkNonExternalizedStringLiterals", "=", "checkNonExternalizedStringLiterals", ";", "if", "(", "taskTags", "!=", "null", ")", "{", "int", "taskTagsLength", "=", "taskTags", ".", "length", ";", "int", "length", "=", "taskTagsLength", ";", "if", "(", "taskPriorities", "!=", "null", ")", "{", "int", "taskPrioritiesLength", "=", "taskPriorities", ".", "length", ";", "if", "(", "taskPrioritiesLength", "!=", "taskTagsLength", ")", "{", "if", "(", "taskPrioritiesLength", ">", "taskTagsLength", ")", "{", "System", ".", "arraycopy", "(", "taskPriorities", ",", "0", ",", "(", "taskPriorities", "=", "new", "char", "[", "taskTagsLength", "]", "[", "]", ")", ",", "0", ",", "taskTagsLength", ")", ";", "}", "else", "{", "System", ".", "arraycopy", "(", "taskTags", ",", "0", ",", "(", "taskTags", "=", "new", "char", "[", "taskPrioritiesLength", "]", "[", "]", ")", ",", "0", ",", "taskPrioritiesLength", ")", ";", "length", "=", "taskPrioritiesLength", ";", "}", "}", "int", "[", "]", "initialIndexes", "=", "new", "int", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "initialIndexes", "[", "i", "]", "=", "i", ";", "}", "Util", ".", "reverseQuickSort", "(", "taskTags", ",", "0", ",", "length", "-", "1", ",", "initialIndexes", ")", ";", "char", "[", "]", "[", "]", "temp", "=", "new", "char", "[", "length", "]", "[", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "temp", "[", "i", "]", "=", "taskPriorities", "[", "initialIndexes", "[", "i", "]", "]", ";", "}", "this", ".", "taskPriorities", "=", "temp", ";", "}", "else", "{", "Util", ".", "reverseQuickSort", "(", "taskTags", ",", "0", ",", "length", "-", "1", ")", ";", "}", "this", ".", "taskTags", "=", "taskTags", ";", "this", ".", "isTaskCaseSensitive", "=", "isTaskCaseSensitive", ";", "}", "}", "public", "Scanner", "(", "boolean", "tokenizeComments", ",", "boolean", "tokenizeWhiteSpace", ",", "boolean", "checkNonExternalizedStringLiterals", ",", "long", "sourceLevel", ",", "char", "[", "]", "[", "]", "taskTags", ",", "char", "[", "]", "[", "]", "taskPriorities", ",", "boolean", "isTaskCaseSensitive", ")", "{", "this", "(", "tokenizeComments", ",", "tokenizeWhiteSpace", ",", "checkNonExternalizedStringLiterals", ",", "sourceLevel", ",", "sourceLevel", ",", "taskTags", ",", "taskPriorities", ",", "isTaskCaseSensitive", ")", ";", "}", "public", "final", "boolean", "atEnd", "(", ")", "{", "return", "this", ".", "eofPosition", "<=", "this", ".", "currentPosition", ";", "}", "public", "void", "checkTaskTag", "(", "int", "commentStart", ",", "int", "commentEnd", ")", "throws", "InvalidInputException", "{", "char", "[", "]", "src", "=", "this", ".", "source", ";", "if", "(", "this", ".", "foundTaskCount", ">", "0", "&&", "this", ".", "foundTaskPositions", "[", "this", ".", "foundTaskCount", "-", "1", "]", "[", "0", "]", ">=", "commentStart", ")", "{", "return", ";", "}", "int", "foundTaskIndex", "=", "this", ".", "foundTaskCount", ";", "char", "previous", "=", "src", "[", "commentStart", "+", "1", "]", ";", "for", "(", "int", "i", "=", "commentStart", "+", "2", ";", "i", "<", "commentEnd", "&&", "i", "<", "this", ".", "eofPosition", ";", "i", "++", ")", "{", "char", "[", "]", "tag", "=", "null", ";", "char", "[", "]", "priority", "=", "null", ";", "if", "(", "previous", "!=", "'@'", ")", "{", "nextTag", ":", "for", "(", "int", "itag", "=", "0", ";", "itag", "<", "this", ".", "taskTags", ".", "length", ";", "itag", "++", ")", "{", "tag", "=", "this", ".", "taskTags", "[", "itag", "]", ";", "int", "tagLength", "=", "tag", ".", "length", ";", "if", "(", "tagLength", "==", "0", ")", "continue", "nextTag", ";", "if", "(", "ScannerHelper", ".", "isJavaIdentifierStart", "(", "this", ".", "complianceLevel", ",", "tag", "[", "0", "]", ")", ")", "{", "if", "(", "ScannerHelper", ".", "isJavaIdentifierPart", "(", "this", ".", "complianceLevel", ",", "previous", ")", ")", "{", "continue", "nextTag", ";", "}", "}", "for", "(", "int", "t", "=", "0", ";", "t", "<", "tagLength", ";", "t", "++", ")", "{", "char", "sc", ",", "tc", ";", "int", "x", "=", "i", "+", "t", ";", "if", "(", "x", ">=", "this", ".", "eofPosition", "||", "x", ">=", "commentEnd", ")", "continue", "nextTag", ";", "if", "(", "(", "sc", "=", "src", "[", "i", "+", "t", "]", ")", "!=", "(", "tc", "=", "tag", "[", "t", "]", ")", ")", "{", "if", "(", "this", ".", "isTaskCaseSensitive", "||", "(", "ScannerHelper", ".", "toLowerCase", "(", "sc", ")", "!=", "ScannerHelper", ".", "toLowerCase", "(", "tc", ")", ")", ")", "{", "continue", "nextTag", ";", "}", "}", "}", "if", "(", "i", "+", "tagLength", "<", "commentEnd", "&&", "ScannerHelper", ".", "isJavaIdentifierPart", "(", "this", ".", "complianceLevel", ",", "src", "[", "i", "+", "tagLength", "-", "1", "]", ")", ")", "{", "if", "(", "ScannerHelper", ".", "isJavaIdentifierPart", "(", "this", ".", "complianceLevel", ",", "src", "[", "i", "+", "tagLength", "]", ")", ")", "continue", "nextTag", ";", "}", "if", "(", "this", ".", "foundTaskTags", "==", "null", ")", "{", "this", ".", "foundTaskTags", "=", "new", "char", "[", "5", "]", "[", "]", ";", "this", ".", "foundTaskMessages", "=", "new", "char", "[", "5", "]", "[", "]", ";", "this", ".", "foundTaskPriorities", "=", "new", "char", "[", "5", "]", "[", "]", ";", "this", ".", "foundTaskPositions", "=", "new", "int", "[", "5", "]", "[", "]", ";", "}", "else", "if", "(", "this", ".", "foundTaskCount", "==", "this", ".", "foundTaskTags", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "foundTaskTags", ",", "0", ",", "this", ".", "foundTaskTags", "=", "new", "char", "[", "this", ".", "foundTaskCount", "*", "2", "]", "[", "]", ",", "0", ",", "this", ".", "foundTaskCount", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "foundTaskMessages", ",", "0", ",", "this", ".", "foundTaskMessages", "=", "new", "char", "[", "this", ".", "foundTaskCount", "*", "2", "]", "[", "]", ",", "0", ",", "this", ".", "foundTaskCount", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "foundTaskPriorities", ",", "0", ",", "this", ".", "foundTaskPriorities", "=", "new", "char", "[", "this", ".", "foundTaskCount", "*", "2", "]", "[", "]", ",", "0", ",", "this", ".", "foundTaskCount", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "foundTaskPositions", ",", "0", ",", "this", ".", "foundTaskPositions", "=", "new", "int", "[", "this", ".", "foundTaskCount", "*", "2", "]", "[", "]", ",", "0", ",", "this", ".", "foundTaskCount", ")", ";", "}", "priority", "=", "this", ".", "taskPriorities", "!=", "null", "&&", "itag", "<", "this", ".", "taskPriorities", ".", "length", "?", "this", ".", "taskPriorities", "[", "itag", "]", ":", "null", ";", "this", ".", "foundTaskTags", "[", "this", ".", "foundTaskCount", "]", "=", "tag", ";", "this", ".", "foundTaskPriorities", "[", "this", ".", "foundTaskCount", "]", "=", "priority", ";", "this", ".", "foundTaskPositions", "[", "this", ".", "foundTaskCount", "]", "=", "new", "int", "[", "]", "{", "i", ",", "i", "+", "tagLength", "-", "1", "}", ";", "this", ".", "foundTaskMessages", "[", "this", ".", "foundTaskCount", "]", "=", "CharOperation", ".", "NO_CHAR", ";", "this", ".", "foundTaskCount", "++", ";", "i", "+=", "tagLength", "-", "1", ";", "break", "nextTag", ";", "}", "}", "previous", "=", "src", "[", "i", "]", ";", "}", "boolean", "containsEmptyTask", "=", "false", ";", "for", "(", "int", "i", "=", "foundTaskIndex", ";", "i", "<", "this", ".", "foundTaskCount", ";", "i", "++", ")", "{", "int", "msgStart", "=", "this", ".", "foundTaskPositions", "[", "i", "]", "[", "0", "]", "+", "this", ".", "foundTaskTags", "[", "i", "]", ".", "length", ";", "int", "max_value", "=", "i", "+", "1", "<", "this", ".", "foundTaskCount", "?", "this", ".", "foundTaskPositions", "[", "i", "+", "1", "]", "[", "0", "]", "-", "1", ":", "commentEnd", "-", "1", ";", "if", "(", "max_value", "<", "msgStart", ")", "{", "max_value", "=", "msgStart", ";", "}", "int", "end", "=", "-", "1", ";", "char", "c", ";", "for", "(", "int", "j", "=", "msgStart", ";", "j", "<", "max_value", ";", "j", "++", ")", "{", "if", "(", "(", "c", "=", "src", "[", "j", "]", ")", "==", "'\\n'", "||", "c", "==", "'\\r'", ")", "{", "end", "=", "j", "-", "1", ";", "break", ";", "}", "}", "if", "(", "end", "==", "-", "1", ")", "{", "for", "(", "int", "j", "=", "max_value", ";", "j", ">", "msgStart", ";", "j", "--", ")", "{", "if", "(", "(", "c", "=", "src", "[", "j", "]", ")", "==", "'*'", ")", "{", "end", "=", "j", "-", "1", ";", "break", ";", "}", "}", "if", "(", "end", "==", "-", "1", ")", "end", "=", "max_value", ";", "}", "if", "(", "msgStart", "==", "end", ")", "{", "containsEmptyTask", "=", "true", ";", "continue", ";", "}", "while", "(", "CharOperation", ".", "isWhitespace", "(", "src", "[", "end", "]", ")", "&&", "msgStart", "<=", "end", ")", "end", "--", ";", "this", ".", "foundTaskPositions", "[", "i", "]", "[", "1", "]", "=", "end", ";", "final", "int", "messageLength", "=", "end", "-", "msgStart", "+", "1", ";", "char", "[", "]", "message", "=", "new", "char", "[", "messageLength", "]", ";", "System", ".", "arraycopy", "(", "src", ",", "msgStart", ",", "message", ",", "0", ",", "messageLength", ")", ";", "this", ".", "foundTaskMessages", "[", "i", "]", "=", "message", ";", "}", "if", "(", "containsEmptyTask", ")", "{", "for", "(", "int", "i", "=", "foundTaskIndex", ",", "max", "=", "this", ".", "foundTaskCount", ";", "i", "<", "max", ";", "i", "++", ")", "{", "if", "(", "this", ".", "foundTaskMessages", "[", "i", "]", ".", "length", "==", "0", ")", "{", "loop", ":", "for", "(", "int", "j", "=", "i", "+", "1", ";", "j", "<", "max", ";", "j", "++", ")", "{", "if", "(", "this", ".", "foundTaskMessages", "[", "j", "]", ".", "length", "!=", "0", ")", "{", "this", ".", "foundTaskMessages", "[", "i", "]", "=", "this", ".", "foundTaskMessages", "[", "j", "]", ";", "this", ".", "foundTaskPositions", "[", "i", "]", "[", "1", "]", "=", "this", ".", "foundTaskPositions", "[", "j", "]", "[", "1", "]", ";", "break", "loop", ";", "}", "}", "}", "}", "}", "}", "public", "char", "[", "]", "getCurrentIdentifierSource", "(", ")", "{", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "char", "[", "]", "result", "=", "new", "char", "[", "this", ".", "withoutUnicodePtr", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "withoutUnicodeBuffer", ",", "1", ",", "result", ",", "0", ",", "this", ".", "withoutUnicodePtr", ")", ";", "return", "result", ";", "}", "int", "length", "=", "this", ".", "currentPosition", "-", "this", ".", "startPosition", ";", "if", "(", "length", "==", "this", ".", "eofPosition", ")", "return", "this", ".", "source", ";", "switch", "(", "length", ")", "{", "case", "1", ":", "return", "optimizedCurrentTokenSource1", "(", ")", ";", "case", "2", ":", "return", "optimizedCurrentTokenSource2", "(", ")", ";", "case", "3", ":", "return", "optimizedCurrentTokenSource3", "(", ")", ";", "case", "4", ":", "return", "optimizedCurrentTokenSource4", "(", ")", ";", "case", "5", ":", "return", "optimizedCurrentTokenSource5", "(", ")", ";", "case", "6", ":", "return", "optimizedCurrentTokenSource6", "(", ")", ";", "}", "char", "[", "]", "result", "=", "new", "char", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "source", ",", "this", ".", "startPosition", ",", "result", ",", "0", ",", "length", ")", ";", "return", "result", ";", "}", "public", "int", "getCurrentTokenEndPosition", "(", ")", "{", "return", "this", ".", "currentPosition", "-", "1", ";", "}", "public", "char", "[", "]", "getCurrentTokenSource", "(", ")", "{", "char", "[", "]", "result", ";", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "System", ".", "arraycopy", "(", "this", ".", "withoutUnicodeBuffer", ",", "1", ",", "result", "=", "new", "char", "[", "this", ".", "withoutUnicodePtr", "]", ",", "0", ",", "this", ".", "withoutUnicodePtr", ")", ";", "else", "{", "int", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "source", ",", "this", ".", "startPosition", ",", "result", "=", "new", "char", "[", "length", "=", "this", ".", "currentPosition", "-", "this", ".", "startPosition", "]", ",", "0", ",", "length", ")", ";", "}", "return", "result", ";", "}", "public", "final", "String", "getCurrentTokenString", "(", ")", "{", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "return", "new", "String", "(", "this", ".", "withoutUnicodeBuffer", ",", "1", ",", "this", ".", "withoutUnicodePtr", ")", ";", "}", "return", "new", "String", "(", "this", ".", "source", ",", "this", ".", "startPosition", ",", "this", ".", "currentPosition", "-", "this", ".", "startPosition", ")", ";", "}", "public", "char", "[", "]", "getCurrentTokenSourceString", "(", ")", "{", "char", "[", "]", "result", ";", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "System", ".", "arraycopy", "(", "this", ".", "withoutUnicodeBuffer", ",", "2", ",", "result", "=", "new", "char", "[", "this", ".", "withoutUnicodePtr", "-", "2", "]", ",", "0", ",", "this", ".", "withoutUnicodePtr", "-", "2", ")", ";", "else", "{", "int", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "source", ",", "this", ".", "startPosition", "+", "1", ",", "result", "=", "new", "char", "[", "length", "=", "this", ".", "currentPosition", "-", "this", ".", "startPosition", "-", "2", "]", ",", "0", ",", "length", ")", ";", "}", "return", "result", ";", "}", "public", "final", "String", "getCurrentStringLiteral", "(", ")", "{", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "return", "new", "String", "(", "this", ".", "withoutUnicodeBuffer", ",", "2", ",", "this", ".", "withoutUnicodePtr", "-", "2", ")", ";", "else", "{", "return", "new", "String", "(", "this", ".", "source", ",", "this", ".", "startPosition", "+", "1", ",", "this", ".", "currentPosition", "-", "this", ".", "startPosition", "-", "2", ")", ";", "}", "}", "public", "final", "char", "[", "]", "getRawTokenSource", "(", ")", "{", "int", "length", "=", "this", ".", "currentPosition", "-", "this", ".", "startPosition", ";", "char", "[", "]", "tokenSource", "=", "new", "char", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "source", ",", "this", ".", "startPosition", ",", "tokenSource", ",", "0", ",", "length", ")", ";", "return", "tokenSource", ";", "}", "public", "final", "char", "[", "]", "getRawTokenSourceEnd", "(", ")", "{", "int", "length", "=", "this", ".", "eofPosition", "-", "this", ".", "currentPosition", "-", "1", ";", "char", "[", "]", "sourceEnd", "=", "new", "char", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "source", ",", "this", ".", "currentPosition", ",", "sourceEnd", ",", "0", ",", "length", ")", ";", "return", "sourceEnd", ";", "}", "public", "int", "getCurrentTokenStartPosition", "(", ")", "{", "return", "this", ".", "startPosition", ";", "}", "public", "final", "int", "getLineEnd", "(", "int", "lineNumber", ")", "{", "if", "(", "this", ".", "lineEnds", "==", "null", "||", "this", ".", "linePtr", "==", "-", "1", ")", "return", "-", "1", ";", "if", "(", "lineNumber", ">", "this", ".", "lineEnds", ".", "length", "+", "1", ")", "return", "-", "1", ";", "if", "(", "lineNumber", "<=", "0", ")", "return", "-", "1", ";", "if", "(", "lineNumber", "==", "this", ".", "lineEnds", ".", "length", "+", "1", ")", "return", "this", ".", "eofPosition", ";", "return", "this", ".", "lineEnds", "[", "lineNumber", "-", "1", "]", ";", "}", "public", "final", "int", "[", "]", "getLineEnds", "(", ")", "{", "if", "(", "this", ".", "linePtr", "==", "-", "1", ")", "{", "return", "EMPTY_LINE_ENDS", ";", "}", "int", "[", "]", "copy", ";", "System", ".", "arraycopy", "(", "this", ".", "lineEnds", ",", "0", ",", "copy", "=", "new", "int", "[", "this", ".", "linePtr", "+", "1", "]", ",", "0", ",", "this", ".", "linePtr", "+", "1", ")", ";", "return", "copy", ";", "}", "public", "final", "int", "getLineStart", "(", "int", "lineNumber", ")", "{", "if", "(", "this", ".", "lineEnds", "==", "null", "||", "this", ".", "linePtr", "==", "-", "1", ")", "return", "-", "1", ";", "if", "(", "lineNumber", ">", "this", ".", "lineEnds", ".", "length", "+", "1", ")", "return", "-", "1", ";", "if", "(", "lineNumber", "<=", "0", ")", "return", "-", "1", ";", "if", "(", "lineNumber", "==", "1", ")", "return", "this", ".", "initialPosition", ";", "return", "this", ".", "lineEnds", "[", "lineNumber", "-", "2", "]", "+", "1", ";", "}", "public", "final", "int", "getNextChar", "(", ")", "{", "try", "{", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "}", "else", "{", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "return", "this", ".", "currentCharacter", ";", "}", "catch", "(", "IndexOutOfBoundsException", "e", ")", "{", "return", "-", "1", ";", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "return", "-", "1", ";", "}", "}", "public", "final", "int", "getNextCharWithBoundChecks", "(", ")", "{", "if", "(", "this", ".", "currentPosition", ">=", "this", ".", "eofPosition", ")", "{", "return", "-", "1", ";", "}", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ";", "if", "(", "this", ".", "currentPosition", ">=", "this", ".", "eofPosition", ")", "{", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "return", "this", ".", "currentCharacter", ";", "}", "if", "(", "this", ".", "currentCharacter", "==", "'\\\\'", "&&", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", "{", "try", "{", "getNextUnicodeChar", "(", ")", ";", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "return", "-", "1", ";", "}", "}", "else", "{", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "return", "this", ".", "currentCharacter", ";", "}", "public", "final", "boolean", "getNextChar", "(", "char", "testedChar", ")", "{", "if", "(", "this", ".", "currentPosition", ">=", "this", ".", "eofPosition", ")", "{", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "return", "false", ";", "}", "int", "temp", "=", "this", ".", "currentPosition", ";", "try", "{", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "if", "(", "this", ".", "currentCharacter", "!=", "testedChar", ")", "{", "this", ".", "currentPosition", "=", "temp", ";", "this", ".", "withoutUnicodePtr", "--", ";", "return", "false", ";", "}", "return", "true", ";", "}", "else", "{", "if", "(", "this", ".", "currentCharacter", "!=", "testedChar", ")", "{", "this", ".", "currentPosition", "=", "temp", ";", "return", "false", ";", "}", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "unicodeStore", "(", ")", ";", "return", "true", ";", "}", "}", "catch", "(", "IndexOutOfBoundsException", "e", ")", "{", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "this", ".", "currentPosition", "=", "temp", ";", "return", "false", ";", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "this", ".", "currentPosition", "=", "temp", ";", "return", "false", ";", "}", "}", "public", "final", "int", "getNextChar", "(", "char", "testedChar1", ",", "char", "testedChar2", ")", "{", "if", "(", "this", ".", "currentPosition", ">=", "this", ".", "eofPosition", ")", "return", "-", "1", ";", "int", "temp", "=", "this", ".", "currentPosition", ";", "try", "{", "int", "result", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "if", "(", "this", ".", "currentCharacter", "==", "testedChar1", ")", "{", "result", "=", "0", ";", "}", "else", "if", "(", "this", ".", "currentCharacter", "==", "testedChar2", ")", "{", "result", "=", "1", ";", "}", "else", "{", "this", ".", "currentPosition", "=", "temp", ";", "this", ".", "withoutUnicodePtr", "--", ";", "result", "=", "-", "1", ";", "}", "return", "result", ";", "}", "else", "{", "if", "(", "this", ".", "currentCharacter", "==", "testedChar1", ")", "{", "result", "=", "0", ";", "}", "else", "if", "(", "this", ".", "currentCharacter", "==", "testedChar2", ")", "{", "result", "=", "1", ";", "}", "else", "{", "this", ".", "currentPosition", "=", "temp", ";", "return", "-", "1", ";", "}", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "unicodeStore", "(", ")", ";", "return", "result", ";", "}", "}", "catch", "(", "IndexOutOfBoundsException", "e", ")", "{", "this", ".", "currentPosition", "=", "temp", ";", "return", "-", "1", ";", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "this", ".", "currentPosition", "=", "temp", ";", "return", "-", "1", ";", "}", "}", "private", "final", "void", "consumeDigits", "(", "int", "radix", ")", "throws", "InvalidInputException", "{", "consumeDigits", "(", "radix", ",", "false", ")", ";", "}", "private", "final", "void", "consumeDigits", "(", "int", "radix", ",", "boolean", "expectingDigitFirst", ")", "throws", "InvalidInputException", "{", "final", "int", "USING_UNDERSCORE", "=", "1", ";", "final", "int", "INVALID_POSITION", "=", "2", ";", "switch", "(", "consumeDigits0", "(", "radix", ",", "USING_UNDERSCORE", ",", "INVALID_POSITION", ",", "expectingDigitFirst", ")", ")", "{", "case", "USING_UNDERSCORE", ":", "if", "(", "this", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_7", ")", "{", "throw", "new", "InvalidInputException", "(", "UNDERSCORES_IN_LITERALS_NOT_BELOW_17", ")", ";", "}", "break", ";", "case", "INVALID_POSITION", ":", "if", "(", "this", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_7", ")", "{", "throw", "new", "InvalidInputException", "(", "UNDERSCORES_IN_LITERALS_NOT_BELOW_17", ")", ";", "}", "throw", "new", "InvalidInputException", "(", "INVALID_UNDERSCORE", ")", ";", "}", "}", "private", "final", "int", "consumeDigits0", "(", "int", "radix", ",", "int", "usingUnderscore", ",", "int", "invalidPosition", ",", "boolean", "expectingDigitFirst", ")", "throws", "InvalidInputException", "{", "int", "kind", "=", "0", ";", "if", "(", "getNextChar", "(", "'_'", ")", ")", "{", "if", "(", "expectingDigitFirst", ")", "{", "return", "invalidPosition", ";", "}", "kind", "=", "usingUnderscore", ";", "while", "(", "getNextChar", "(", "'_'", ")", ")", "{", "}", "}", "if", "(", "getNextCharAsDigit", "(", "radix", ")", ")", "{", "while", "(", "getNextCharAsDigit", "(", "radix", ")", ")", "{", "}", "int", "kind2", "=", "consumeDigits0", "(", "radix", ",", "usingUnderscore", ",", "invalidPosition", ",", "false", ")", ";", "if", "(", "kind2", "==", "0", ")", "{", "return", "kind", ";", "}", "return", "kind2", ";", "}", "if", "(", "kind", "==", "usingUnderscore", ")", "return", "invalidPosition", ";", "return", "kind", ";", "}", "public", "final", "boolean", "getNextCharAsDigit", "(", ")", "throws", "InvalidInputException", "{", "if", "(", "this", ".", "currentPosition", ">=", "this", ".", "eofPosition", ")", "return", "false", ";", "int", "temp", "=", "this", ".", "currentPosition", ";", "try", "{", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "if", "(", "!", "ScannerHelper", ".", "isDigit", "(", "this", ".", "currentCharacter", ")", ")", "{", "this", ".", "currentPosition", "=", "temp", ";", "this", ".", "withoutUnicodePtr", "--", ";", "return", "false", ";", "}", "return", "true", ";", "}", "else", "{", "if", "(", "!", "ScannerHelper", ".", "isDigit", "(", "this", ".", "currentCharacter", ")", ")", "{", "this", ".", "currentPosition", "=", "temp", ";", "return", "false", ";", "}", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "unicodeStore", "(", ")", ";", "return", "true", ";", "}", "}", "catch", "(", "IndexOutOfBoundsException", "e", ")", "{", "this", ".", "currentPosition", "=", "temp", ";", "return", "false", ";", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "this", ".", "currentPosition", "=", "temp", ";", "return", "false", ";", "}", "}", "public", "final", "boolean", "getNextCharAsDigit", "(", "int", "radix", ")", "{", "if", "(", "this", ".", "currentPosition", ">=", "this", ".", "eofPosition", ")", "return", "false", ";", "int", "temp", "=", "this", ".", "currentPosition", ";", "try", "{", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "if", "(", "ScannerHelper", ".", "digit", "(", "this", ".", "currentCharacter", ",", "radix", ")", "==", "-", "1", ")", "{", "this", ".", "currentPosition", "=", "temp", ";", "this", ".", "withoutUnicodePtr", "--", ";", "return", "false", ";", "}", "return", "true", ";", "}", "else", "{", "if", "(", "ScannerHelper", ".", "digit", "(", "this", ".", "currentCharacter", ",", "radix", ")", "==", "-", "1", ")", "{", "this", ".", "currentPosition", "=", "temp", ";", "return", "false", ";", "}", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "unicodeStore", "(", ")", ";", "return", "true", ";", "}", "}", "catch", "(", "IndexOutOfBoundsException", "e", ")", "{", "this", ".", "currentPosition", "=", "temp", ";", "return", "false", ";", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "this", ".", "currentPosition", "=", "temp", ";", "return", "false", ";", "}", "}", "public", "boolean", "getNextCharAsJavaIdentifierPartWithBoundCheck", "(", ")", "{", "int", "pos", "=", "this", ".", "currentPosition", ";", "if", "(", "pos", ">=", "this", ".", "eofPosition", ")", "return", "false", ";", "int", "temp2", "=", "this", ".", "withoutUnicodePtr", ";", "try", "{", "boolean", "unicode", "=", "false", ";", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ";", "if", "(", "this", ".", "currentPosition", "<", "this", ".", "eofPosition", ")", "{", "if", "(", "this", ".", "currentCharacter", "==", "'\\\\'", "&&", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", "{", "getNextUnicodeChar", "(", ")", ";", "unicode", "=", "true", ";", "}", "}", "char", "c", "=", "this", ".", "currentCharacter", ";", "boolean", "isJavaIdentifierPart", "=", "false", ";", "if", "(", "c", ">=", "HIGH_SURROGATE_MIN_VALUE", "&&", "c", "<=", "HIGH_SURROGATE_MAX_VALUE", ")", "{", "if", "(", "this", ".", "complianceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "this", ".", "currentPosition", "=", "pos", ";", "this", ".", "withoutUnicodePtr", "=", "temp2", ";", "return", "false", ";", "}", "char", "low", "=", "(", "char", ")", "getNextCharWithBoundChecks", "(", ")", ";", "if", "(", "low", "<", "LOW_SURROGATE_MIN_VALUE", "||", "low", ">", "LOW_SURROGATE_MAX_VALUE", ")", "{", "this", ".", "currentPosition", "=", "pos", ";", "this", ".", "withoutUnicodePtr", "=", "temp2", ";", "return", "false", ";", "}", "isJavaIdentifierPart", "=", "ScannerHelper", ".", "isJavaIdentifierPart", "(", "this", ".", "complianceLevel", ",", "c", ",", "low", ")", ";", "}", "else", "if", "(", "c", ">=", "LOW_SURROGATE_MIN_VALUE", "&&", "c", "<=", "LOW_SURROGATE_MAX_VALUE", ")", "{", "this", ".", "currentPosition", "=", "pos", ";", "this", ".", "withoutUnicodePtr", "=", "temp2", ";", "return", "false", ";", "}", "else", "{", "isJavaIdentifierPart", "=", "ScannerHelper", ".", "isJavaIdentifierPart", "(", "this", ".", "complianceLevel", ",", "c", ")", ";", "}", "if", "(", "unicode", ")", "{", "if", "(", "!", "isJavaIdentifierPart", ")", "{", "this", ".", "currentPosition", "=", "pos", ";", "this", ".", "withoutUnicodePtr", "=", "temp2", ";", "return", "false", ";", "}", "return", "true", ";", "}", "else", "{", "if", "(", "!", "isJavaIdentifierPart", ")", "{", "this", ".", "currentPosition", "=", "pos", ";", "return", "false", ";", "}", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "unicodeStore", "(", ")", ";", "return", "true", ";", "}", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "this", ".", "currentPosition", "=", "pos", ";", "this", ".", "withoutUnicodePtr", "=", "temp2", ";", "return", "false", ";", "}", "}", "public", "boolean", "getNextCharAsJavaIdentifierPart", "(", ")", "{", "int", "pos", ";", "if", "(", "(", "pos", "=", "this", ".", "currentPosition", ")", ">=", "this", ".", "eofPosition", ")", "return", "false", ";", "int", "temp2", "=", "this", ".", "withoutUnicodePtr", ";", "try", "{", "boolean", "unicode", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "unicode", "=", "true", ";", "}", "char", "c", "=", "this", ".", "currentCharacter", ";", "boolean", "isJavaIdentifierPart", "=", "false", ";", "if", "(", "c", ">=", "HIGH_SURROGATE_MIN_VALUE", "&&", "c", "<=", "HIGH_SURROGATE_MAX_VALUE", ")", "{", "if", "(", "this", ".", "complianceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "this", ".", "currentPosition", "=", "pos", ";", "this", ".", "withoutUnicodePtr", "=", "temp2", ";", "return", "false", ";", "}", "char", "low", "=", "(", "char", ")", "getNextChar", "(", ")", ";", "if", "(", "low", "<", "LOW_SURROGATE_MIN_VALUE", "||", "low", ">", "LOW_SURROGATE_MAX_VALUE", ")", "{", "this", ".", "currentPosition", "=", "pos", ";", "this", ".", "withoutUnicodePtr", "=", "temp2", ";", "return", "false", ";", "}", "isJavaIdentifierPart", "=", "ScannerHelper", ".", "isJavaIdentifierPart", "(", "this", ".", "complianceLevel", ",", "c", ",", "low", ")", ";", "}", "else", "if", "(", "c", ">=", "LOW_SURROGATE_MIN_VALUE", "&&", "c", "<=", "LOW_SURROGATE_MAX_VALUE", ")", "{", "this", ".", "currentPosition", "=", "pos", ";", "this", ".", "withoutUnicodePtr", "=", "temp2", ";", "return", "false", ";", "}", "else", "{", "isJavaIdentifierPart", "=", "ScannerHelper", ".", "isJavaIdentifierPart", "(", "this", ".", "complianceLevel", ",", "c", ")", ";", "}", "if", "(", "unicode", ")", "{", "if", "(", "!", "isJavaIdentifierPart", ")", "{", "this", ".", "currentPosition", "=", "pos", ";", "this", ".", "withoutUnicodePtr", "=", "temp2", ";", "return", "false", ";", "}", "return", "true", ";", "}", "else", "{", "if", "(", "!", "isJavaIdentifierPart", ")", "{", "this", ".", "currentPosition", "=", "pos", ";", "return", "false", ";", "}", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "unicodeStore", "(", ")", ";", "return", "true", ";", "}", "}", "catch", "(", "IndexOutOfBoundsException", "e", ")", "{", "this", ".", "currentPosition", "=", "pos", ";", "this", ".", "withoutUnicodePtr", "=", "temp2", ";", "return", "false", ";", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "this", ".", "currentPosition", "=", "pos", ";", "this", ".", "withoutUnicodePtr", "=", "temp2", ";", "return", "false", ";", "}", "}", "public", "int", "scanIdentifier", "(", ")", "throws", "InvalidInputException", "{", "int", "whiteStart", "=", "0", ";", "while", "(", "true", ")", "{", "this", ".", "withoutUnicodePtr", "=", "0", ";", "whiteStart", "=", "this", ".", "currentPosition", ";", "boolean", "isWhiteSpace", ",", "hasWhiteSpaces", "=", "false", ";", "int", "offset", ";", "int", "unicodePtr", ";", "boolean", "checkIfUnicode", "=", "false", ";", "do", "{", "unicodePtr", "=", "this", ".", "withoutUnicodePtr", ";", "offset", "=", "this", ".", "currentPosition", ";", "this", ".", "startPosition", "=", "this", ".", "currentPosition", ";", "if", "(", "this", ".", "currentPosition", "<", "this", ".", "eofPosition", ")", "{", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ";", "checkIfUnicode", "=", "this", ".", "currentPosition", "<", "this", ".", "eofPosition", "&&", "this", ".", "currentCharacter", "==", "'\\\\'", "&&", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ";", "}", "else", "if", "(", "this", ".", "tokenizeWhiteSpace", "&&", "(", "whiteStart", "!=", "this", ".", "currentPosition", "-", "1", ")", ")", "{", "this", ".", "currentPosition", "--", ";", "this", ".", "startPosition", "=", "whiteStart", ";", "return", "TokenNameWHITESPACE", ";", "}", "else", "{", "return", "TokenNameEOF", ";", "}", "if", "(", "checkIfUnicode", ")", "{", "isWhiteSpace", "=", "jumpOverUnicodeWhiteSpace", "(", ")", ";", "offset", "=", "this", ".", "currentPosition", "-", "offset", ";", "}", "else", "{", "offset", "=", "this", ".", "currentPosition", "-", "offset", ";", "switch", "(", "this", ".", "currentCharacter", ")", "{", "case", "10", ":", "case", "12", ":", "case", "13", ":", "case", "32", ":", "case", "9", ":", "isWhiteSpace", "=", "true", ";", "break", ";", "default", ":", "isWhiteSpace", "=", "false", ";", "}", "}", "if", "(", "isWhiteSpace", ")", "{", "hasWhiteSpaces", "=", "true", ";", "}", "}", "while", "(", "isWhiteSpace", ")", ";", "if", "(", "hasWhiteSpaces", ")", "{", "if", "(", "this", ".", "tokenizeWhiteSpace", ")", "{", "this", ".", "currentPosition", "-=", "offset", ";", "this", ".", "startPosition", "=", "whiteStart", ";", "if", "(", "checkIfUnicode", ")", "{", "this", ".", "withoutUnicodePtr", "=", "unicodePtr", ";", "}", "return", "TokenNameWHITESPACE", ";", "}", "else", "if", "(", "checkIfUnicode", ")", "{", "this", ".", "withoutUnicodePtr", "=", "0", ";", "unicodeStore", "(", ")", ";", "}", "else", "{", "this", ".", "withoutUnicodePtr", "=", "0", ";", "}", "}", "char", "c", "=", "this", ".", "currentCharacter", ";", "if", "(", "c", "<", "ScannerHelper", ".", "MAX_OBVIOUS", ")", "{", "if", "(", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "ScannerHelper", ".", "C_IDENT_START", ")", "!=", "0", ")", "{", "return", "scanIdentifierOrKeywordWithBoundCheck", "(", ")", ";", "}", "return", "TokenNameERROR", ";", "}", "boolean", "isJavaIdStart", ";", "if", "(", "c", ">=", "HIGH_SURROGATE_MIN_VALUE", "&&", "c", "<=", "HIGH_SURROGATE_MAX_VALUE", ")", "{", "if", "(", "this", ".", "complianceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "throw", "new", "InvalidInputException", "(", "INVALID_UNICODE_ESCAPE", ")", ";", "}", "char", "low", "=", "(", "char", ")", "getNextCharWithBoundChecks", "(", ")", ";", "if", "(", "low", "<", "LOW_SURROGATE_MIN_VALUE", "||", "low", ">", "LOW_SURROGATE_MAX_VALUE", ")", "{", "throw", "new", "InvalidInputException", "(", "INVALID_LOW_SURROGATE", ")", ";", "}", "isJavaIdStart", "=", "ScannerHelper", ".", "isJavaIdentifierStart", "(", "this", ".", "complianceLevel", ",", "c", ",", "low", ")", ";", "}", "else", "if", "(", "c", ">=", "LOW_SURROGATE_MIN_VALUE", "&&", "c", "<=", "LOW_SURROGATE_MAX_VALUE", ")", "{", "if", "(", "this", ".", "complianceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "throw", "new", "InvalidInputException", "(", "INVALID_UNICODE_ESCAPE", ")", ";", "}", "throw", "new", "InvalidInputException", "(", "INVALID_HIGH_SURROGATE", ")", ";", "}", "else", "{", "isJavaIdStart", "=", "ScannerHelper", ".", "isJavaIdentifierStart", "(", "this", ".", "complianceLevel", ",", "c", ")", ";", "}", "if", "(", "isJavaIdStart", ")", "return", "scanIdentifierOrKeywordWithBoundCheck", "(", ")", ";", "return", "TokenNameERROR", ";", "}", "}", "public", "int", "getNextToken", "(", ")", "throws", "InvalidInputException", "{", "this", ".", "wasAcr", "=", "false", ";", "if", "(", "this", ".", "diet", ")", "{", "jumpOverMethodBody", "(", ")", ";", "this", ".", "diet", "=", "false", ";", "return", "this", ".", "currentPosition", ">", "this", ".", "eofPosition", "?", "TokenNameEOF", ":", "TokenNameRBRACE", ";", "}", "int", "whiteStart", "=", "0", ";", "try", "{", "while", "(", "true", ")", "{", "this", ".", "withoutUnicodePtr", "=", "0", ";", "whiteStart", "=", "this", ".", "currentPosition", ";", "boolean", "isWhiteSpace", ",", "hasWhiteSpaces", "=", "false", ";", "int", "offset", ";", "int", "unicodePtr", ";", "boolean", "checkIfUnicode", "=", "false", ";", "do", "{", "unicodePtr", "=", "this", ".", "withoutUnicodePtr", ";", "offset", "=", "this", ".", "currentPosition", ";", "this", ".", "startPosition", "=", "this", ".", "currentPosition", ";", "try", "{", "checkIfUnicode", "=", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ";", "}", "catch", "(", "IndexOutOfBoundsException", "e", ")", "{", "if", "(", "this", ".", "tokenizeWhiteSpace", "&&", "(", "whiteStart", "!=", "this", ".", "currentPosition", "-", "1", ")", ")", "{", "this", ".", "currentPosition", "--", ";", "this", ".", "startPosition", "=", "whiteStart", ";", "return", "TokenNameWHITESPACE", ";", "}", "if", "(", "this", ".", "currentPosition", ">", "this", ".", "eofPosition", ")", "return", "TokenNameEOF", ";", "}", "if", "(", "this", ".", "currentPosition", ">", "this", ".", "eofPosition", ")", "{", "if", "(", "this", ".", "tokenizeWhiteSpace", "&&", "(", "whiteStart", "!=", "this", ".", "currentPosition", "-", "1", ")", ")", "{", "this", ".", "currentPosition", "--", ";", "this", ".", "startPosition", "=", "whiteStart", ";", "return", "TokenNameWHITESPACE", ";", "}", "return", "TokenNameEOF", ";", "}", "if", "(", "checkIfUnicode", ")", "{", "isWhiteSpace", "=", "jumpOverUnicodeWhiteSpace", "(", ")", ";", "offset", "=", "this", ".", "currentPosition", "-", "offset", ";", "}", "else", "{", "offset", "=", "this", ".", "currentPosition", "-", "offset", ";", "if", "(", "(", "this", ".", "currentCharacter", "==", "'\\r'", ")", "||", "(", "this", ".", "currentCharacter", "==", "'\\n'", ")", ")", "{", "if", "(", "this", ".", "recordLineSeparator", ")", "{", "pushLineSeparator", "(", ")", ";", "}", "}", "switch", "(", "this", ".", "currentCharacter", ")", "{", "case", "10", ":", "case", "12", ":", "case", "13", ":", "case", "32", ":", "case", "9", ":", "isWhiteSpace", "=", "true", ";", "break", ";", "default", ":", "isWhiteSpace", "=", "false", ";", "}", "}", "if", "(", "isWhiteSpace", ")", "{", "hasWhiteSpaces", "=", "true", ";", "}", "}", "while", "(", "isWhiteSpace", ")", ";", "if", "(", "hasWhiteSpaces", ")", "{", "if", "(", "this", ".", "tokenizeWhiteSpace", ")", "{", "this", ".", "currentPosition", "-=", "offset", ";", "this", ".", "startPosition", "=", "whiteStart", ";", "if", "(", "checkIfUnicode", ")", "{", "this", ".", "withoutUnicodePtr", "=", "unicodePtr", ";", "}", "return", "TokenNameWHITESPACE", ";", "}", "else", "if", "(", "checkIfUnicode", ")", "{", "this", ".", "withoutUnicodePtr", "=", "0", ";", "unicodeStore", "(", ")", ";", "}", "else", "{", "this", ".", "withoutUnicodePtr", "=", "0", ";", "}", "}", "switch", "(", "this", ".", "currentCharacter", ")", "{", "case", "'@'", ":", "return", "TokenNameAT", ";", "case", "'('", ":", "return", "TokenNameLPAREN", ";", "case", "')'", ":", "return", "TokenNameRPAREN", ";", "case", "'{'", ":", "return", "TokenNameLBRACE", ";", "case", "'}'", ":", "return", "TokenNameRBRACE", ";", "case", "'['", ":", "return", "TokenNameLBRACKET", ";", "case", "']'", ":", "return", "TokenNameRBRACKET", ";", "case", "';'", ":", "return", "TokenNameSEMICOLON", ";", "case", "','", ":", "return", "TokenNameCOMMA", ";", "case", "'.'", ":", "if", "(", "getNextCharAsDigit", "(", ")", ")", "{", "return", "scanNumber", "(", "true", ")", ";", "}", "int", "temp", "=", "this", ".", "currentPosition", ";", "if", "(", "getNextChar", "(", "'.'", ")", ")", "{", "if", "(", "getNextChar", "(", "'.'", ")", ")", "{", "return", "TokenNameELLIPSIS", ";", "}", "else", "{", "this", ".", "currentPosition", "=", "temp", ";", "return", "TokenNameDOT", ";", "}", "}", "else", "{", "this", ".", "currentPosition", "=", "temp", ";", "return", "TokenNameDOT", ";", "}", "case", "'+'", ":", "{", "int", "test", ";", "if", "(", "(", "test", "=", "getNextChar", "(", "'+'", ",", "'='", ")", ")", "==", "0", ")", "return", "TokenNamePLUS_PLUS", ";", "if", "(", "test", ">", "0", ")", "return", "TokenNamePLUS_EQUAL", ";", "return", "TokenNamePLUS", ";", "}", "case", "'-'", ":", "{", "int", "test", ";", "if", "(", "(", "test", "=", "getNextChar", "(", "'-'", ",", "'='", ")", ")", "==", "0", ")", "return", "TokenNameMINUS_MINUS", ";", "if", "(", "test", ">", "0", ")", "return", "TokenNameMINUS_EQUAL", ";", "return", "TokenNameMINUS", ";", "}", "case", "'~'", ":", "return", "TokenNameTWIDDLE", ";", "case", "'!'", ":", "if", "(", "getNextChar", "(", "'='", ")", ")", "return", "TokenNameNOT_EQUAL", ";", "return", "TokenNameNOT", ";", "case", "'*'", ":", "if", "(", "getNextChar", "(", "'='", ")", ")", "return", "TokenNameMULTIPLY_EQUAL", ";", "return", "TokenNameMULTIPLY", ";", "case", "'%'", ":", "if", "(", "getNextChar", "(", "'='", ")", ")", "return", "TokenNameREMAINDER_EQUAL", ";", "return", "TokenNameREMAINDER", ";", "case", "'<'", ":", "{", "int", "test", ";", "if", "(", "(", "test", "=", "getNextChar", "(", "'='", ",", "'<'", ")", ")", "==", "0", ")", "return", "TokenNameLESS_EQUAL", ";", "if", "(", "test", ">", "0", ")", "{", "if", "(", "getNextChar", "(", "'='", ")", ")", "return", "TokenNameLEFT_SHIFT_EQUAL", ";", "return", "TokenNameLEFT_SHIFT", ";", "}", "return", "TokenNameLESS", ";", "}", "case", "'>'", ":", "{", "int", "test", ";", "if", "(", "this", ".", "returnOnlyGreater", ")", "{", "return", "TokenNameGREATER", ";", "}", "if", "(", "(", "test", "=", "getNextChar", "(", "'='", ",", "'>'", ")", ")", "==", "0", ")", "return", "TokenNameGREATER_EQUAL", ";", "if", "(", "test", ">", "0", ")", "{", "if", "(", "(", "test", "=", "getNextChar", "(", "'='", ",", "'>'", ")", ")", "==", "0", ")", "return", "TokenNameRIGHT_SHIFT_EQUAL", ";", "if", "(", "test", ">", "0", ")", "{", "if", "(", "getNextChar", "(", "'='", ")", ")", "return", "TokenNameUNSIGNED_RIGHT_SHIFT_EQUAL", ";", "return", "TokenNameUNSIGNED_RIGHT_SHIFT", ";", "}", "return", "TokenNameRIGHT_SHIFT", ";", "}", "return", "TokenNameGREATER", ";", "}", "case", "'='", ":", "if", "(", "getNextChar", "(", "'='", ")", ")", "return", "TokenNameEQUAL_EQUAL", ";", "return", "TokenNameEQUAL", ";", "case", "'&'", ":", "{", "int", "test", ";", "if", "(", "(", "test", "=", "getNextChar", "(", "'&'", ",", "'='", ")", ")", "==", "0", ")", "return", "TokenNameAND_AND", ";", "if", "(", "test", ">", "0", ")", "return", "TokenNameAND_EQUAL", ";", "return", "TokenNameAND", ";", "}", "case", "'|'", ":", "{", "int", "test", ";", "if", "(", "(", "test", "=", "getNextChar", "(", "'|'", ",", "'='", ")", ")", "==", "0", ")", "return", "TokenNameOR_OR", ";", "if", "(", "test", ">", "0", ")", "return", "TokenNameOR_EQUAL", ";", "return", "TokenNameOR", ";", "}", "case", "'^'", ":", "if", "(", "getNextChar", "(", "'='", ")", ")", "return", "TokenNameXOR_EQUAL", ";", "return", "TokenNameXOR", ";", "case", "'?'", ":", "return", "TokenNameQUESTION", ";", "case", "':'", ":", "return", "TokenNameCOLON", ";", "case", "'\\''", ":", "{", "int", "test", ";", "if", "(", "(", "test", "=", "getNextChar", "(", "'\\n'", ",", "'\\r'", ")", ")", "==", "0", ")", "{", "throw", "new", "InvalidInputException", "(", "INVALID_CHARACTER_CONSTANT", ")", ";", "}", "if", "(", "test", ">", "0", ")", "{", "for", "(", "int", "lookAhead", "=", "0", ";", "lookAhead", "<", "3", ";", "lookAhead", "++", ")", "{", "if", "(", "this", ".", "currentPosition", "+", "lookAhead", "==", "this", ".", "eofPosition", ")", "break", ";", "if", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "+", "lookAhead", "]", "==", "'\\n'", ")", "break", ";", "if", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "+", "lookAhead", "]", "==", "'\\''", ")", "{", "this", ".", "currentPosition", "+=", "lookAhead", "+", "1", ";", "break", ";", "}", "}", "throw", "new", "InvalidInputException", "(", "INVALID_CHARACTER_CONSTANT", ")", ";", "}", "}", "if", "(", "getNextChar", "(", "'\\''", ")", ")", "{", "for", "(", "int", "lookAhead", "=", "0", ";", "lookAhead", "<", "3", ";", "lookAhead", "++", ")", "{", "if", "(", "this", ".", "currentPosition", "+", "lookAhead", "==", "this", ".", "eofPosition", ")", "break", ";", "if", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "+", "lookAhead", "]", "==", "'\\n'", ")", "break", ";", "if", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "+", "lookAhead", "]", "==", "'\\''", ")", "{", "this", ".", "currentPosition", "+=", "lookAhead", "+", "1", ";", "break", ";", "}", "}", "throw", "new", "InvalidInputException", "(", "INVALID_CHARACTER_CONSTANT", ")", ";", "}", "if", "(", "getNextChar", "(", "'\\\\'", ")", ")", "{", "if", "(", "this", ".", "unicodeAsBackSlash", ")", "{", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "}", "else", "{", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "}", "else", "{", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ";", "}", "scanEscapeCharacter", "(", ")", ";", "}", "else", "{", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "checkIfUnicode", "=", "false", ";", "try", "{", "checkIfUnicode", "=", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ";", "}", "catch", "(", "IndexOutOfBoundsException", "e", ")", "{", "this", ".", "currentPosition", "--", ";", "throw", "new", "InvalidInputException", "(", "INVALID_CHARACTER_CONSTANT", ")", ";", "}", "if", "(", "checkIfUnicode", ")", "{", "getNextUnicodeChar", "(", ")", ";", "}", "else", "{", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "}", "if", "(", "getNextChar", "(", "'\\''", ")", ")", "return", "TokenNameCharacterLiteral", ";", "for", "(", "int", "lookAhead", "=", "0", ";", "lookAhead", "<", "20", ";", "lookAhead", "++", ")", "{", "if", "(", "this", ".", "currentPosition", "+", "lookAhead", "==", "this", ".", "eofPosition", ")", "break", ";", "if", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "+", "lookAhead", "]", "==", "'\\n'", ")", "break", ";", "if", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "+", "lookAhead", "]", "==", "'\\''", ")", "{", "this", ".", "currentPosition", "+=", "lookAhead", "+", "1", ";", "break", ";", "}", "}", "throw", "new", "InvalidInputException", "(", "INVALID_CHARACTER_CONSTANT", ")", ";", "case", "'\"'", ":", "try", "{", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "boolean", "isUnicode", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "isUnicode", "=", "true", ";", "}", "else", "{", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "while", "(", "this", ".", "currentCharacter", "!=", "'\"'", ")", "{", "if", "(", "this", ".", "currentPosition", ">=", "this", ".", "eofPosition", ")", "{", "throw", "new", "InvalidInputException", "(", "UNTERMINATED_STRING", ")", ";", "}", "if", "(", "(", "this", ".", "currentCharacter", "==", "'\\n'", ")", "||", "(", "this", ".", "currentCharacter", "==", "'\\r'", ")", ")", "{", "if", "(", "isUnicode", ")", "{", "int", "start", "=", "this", ".", "currentPosition", ";", "for", "(", "int", "lookAhead", "=", "0", ";", "lookAhead", "<", "50", ";", "lookAhead", "++", ")", "{", "if", "(", "this", ".", "currentPosition", ">=", "this", ".", "eofPosition", ")", "{", "this", ".", "currentPosition", "=", "start", ";", "break", ";", "}", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "isUnicode", "=", "true", ";", "getNextUnicodeChar", "(", ")", ";", "}", "else", "{", "isUnicode", "=", "false", ";", "}", "if", "(", "!", "isUnicode", "&&", "this", ".", "currentCharacter", "==", "'\\n'", ")", "{", "this", ".", "currentPosition", "--", ";", "break", ";", "}", "if", "(", "this", ".", "currentCharacter", "==", "'\\\"'", ")", "{", "throw", "new", "InvalidInputException", "(", "INVALID_CHAR_IN_STRING", ")", ";", "}", "}", "}", "else", "{", "this", ".", "currentPosition", "--", ";", "}", "throw", "new", "InvalidInputException", "(", "INVALID_CHAR_IN_STRING", ")", ";", "}", "if", "(", "this", ".", "currentCharacter", "==", "'\\\\'", ")", "{", "if", "(", "this", ".", "unicodeAsBackSlash", ")", "{", "this", ".", "withoutUnicodePtr", "--", ";", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "isUnicode", "=", "true", ";", "this", ".", "withoutUnicodePtr", "--", ";", "}", "else", "{", "isUnicode", "=", "false", ";", "}", "}", "else", "{", "if", "(", "this", ".", "withoutUnicodePtr", "==", "0", ")", "{", "unicodeInitializeBuffer", "(", "this", ".", "currentPosition", "-", "this", ".", "startPosition", ")", ";", "}", "this", ".", "withoutUnicodePtr", "--", ";", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ";", "}", "scanEscapeCharacter", "(", ")", ";", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "isUnicode", "=", "true", ";", "}", "else", "{", "isUnicode", "=", "false", ";", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "}", "}", "catch", "(", "IndexOutOfBoundsException", "e", ")", "{", "this", ".", "currentPosition", "--", ";", "throw", "new", "InvalidInputException", "(", "UNTERMINATED_STRING", ")", ";", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "if", "(", "e", ".", "getMessage", "(", ")", ".", "equals", "(", "INVALID_ESCAPE", ")", ")", "{", "for", "(", "int", "lookAhead", "=", "0", ";", "lookAhead", "<", "50", ";", "lookAhead", "++", ")", "{", "if", "(", "this", ".", "currentPosition", "+", "lookAhead", "==", "this", ".", "eofPosition", ")", "break", ";", "if", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "+", "lookAhead", "]", "==", "'\\n'", ")", "break", ";", "if", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "+", "lookAhead", "]", "==", "'\\\"'", ")", "{", "this", ".", "currentPosition", "+=", "lookAhead", "+", "1", ";", "break", ";", "}", "}", "}", "throw", "e", ";", "}", "return", "TokenNameStringLiteral", ";", "case", "'/'", ":", "if", "(", "!", "this", ".", "skipComments", ")", "{", "int", "test", "=", "getNextChar", "(", "'/'", ",", "'*'", ")", ";", "if", "(", "test", "==", "0", ")", "{", "this", ".", "lastCommentLinePosition", "=", "this", ".", "currentPosition", ";", "try", "{", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "}", "if", "(", "this", ".", "currentCharacter", "==", "'\\\\'", ")", "{", "if", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'\\\\'", ")", "this", ".", "currentPosition", "++", ";", "}", "boolean", "isUnicode", "=", "false", ";", "while", "(", "this", ".", "currentCharacter", "!=", "'\\r'", "&&", "this", ".", "currentCharacter", "!=", "'\\n'", ")", "{", "if", "(", "this", ".", "currentPosition", ">=", "this", ".", "eofPosition", ")", "{", "this", ".", "lastCommentLinePosition", "=", "this", ".", "currentPosition", ";", "this", ".", "currentPosition", "++", ";", "throw", "new", "IndexOutOfBoundsException", "(", ")", ";", "}", "this", ".", "lastCommentLinePosition", "=", "this", ".", "currentPosition", ";", "isUnicode", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "isUnicode", "=", "true", ";", "}", "if", "(", "this", ".", "currentCharacter", "==", "'\\\\'", ")", "{", "if", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'\\\\'", ")", "this", ".", "currentPosition", "++", ";", "}", "}", "if", "(", "this", ".", "currentCharacter", "==", "'\\r'", "&&", "this", ".", "eofPosition", ">", "this", ".", "currentPosition", ")", "{", "if", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'\\n'", ")", "{", "this", ".", "currentPosition", "++", ";", "this", ".", "currentCharacter", "=", "'\\n'", ";", "}", "else", "if", "(", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "+", "1", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "isUnicode", "=", "true", ";", "}", "}", "recordComment", "(", "TokenNameCOMMENT_LINE", ")", ";", "if", "(", "this", ".", "taskTags", "!=", "null", ")", "checkTaskTag", "(", "this", ".", "startPosition", ",", "this", ".", "currentPosition", ")", ";", "if", "(", "(", "this", ".", "currentCharacter", "==", "'\\r'", ")", "||", "(", "this", ".", "currentCharacter", "==", "'\\n'", ")", ")", "{", "if", "(", "this", ".", "checkNonExternalizedStringLiterals", "&&", "this", ".", "lastPosition", "<", "this", ".", "currentPosition", ")", "{", "parseTags", "(", ")", ";", "}", "if", "(", "this", ".", "recordLineSeparator", ")", "{", "if", "(", "isUnicode", ")", "{", "pushUnicodeLineSeparator", "(", ")", ";", "}", "else", "{", "pushLineSeparator", "(", ")", ";", "}", "}", "}", "if", "(", "this", ".", "tokenizeComments", ")", "{", "return", "TokenNameCOMMENT_LINE", ";", "}", "}", "catch", "(", "IndexOutOfBoundsException", "e", ")", "{", "this", ".", "currentPosition", "--", ";", "recordComment", "(", "TokenNameCOMMENT_LINE", ")", ";", "if", "(", "this", ".", "taskTags", "!=", "null", ")", "checkTaskTag", "(", "this", ".", "startPosition", ",", "this", ".", "currentPosition", ")", ";", "if", "(", "this", ".", "checkNonExternalizedStringLiterals", "&&", "this", ".", "lastPosition", "<", "this", ".", "currentPosition", ")", "{", "parseTags", "(", ")", ";", "}", "if", "(", "this", ".", "tokenizeComments", ")", "{", "return", "TokenNameCOMMENT_LINE", ";", "}", "else", "{", "this", ".", "currentPosition", "++", ";", "}", "}", "break", ";", "}", "if", "(", "test", ">", "0", ")", "{", "try", "{", "boolean", "isJavadoc", "=", "false", ",", "star", "=", "false", ";", "boolean", "isUnicode", "=", "false", ";", "int", "previous", ";", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "isUnicode", "=", "true", ";", "}", "else", "{", "isUnicode", "=", "false", ";", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "if", "(", "this", ".", "currentCharacter", "==", "'*'", ")", "{", "isJavadoc", "=", "true", ";", "star", "=", "true", ";", "}", "if", "(", "(", "this", ".", "currentCharacter", "==", "'\\r'", ")", "||", "(", "this", ".", "currentCharacter", "==", "'\\n'", ")", ")", "{", "if", "(", "this", ".", "recordLineSeparator", ")", "{", "if", "(", "isUnicode", ")", "{", "pushUnicodeLineSeparator", "(", ")", ";", "}", "else", "{", "pushLineSeparator", "(", ")", ";", "}", "}", "}", "isUnicode", "=", "false", ";", "previous", "=", "this", ".", "currentPosition", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "isUnicode", "=", "true", ";", "}", "else", "{", "isUnicode", "=", "false", ";", "}", "if", "(", "this", ".", "currentCharacter", "==", "'\\\\'", ")", "{", "if", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'\\\\'", ")", "this", ".", "currentPosition", "++", ";", "}", "if", "(", "this", ".", "currentCharacter", "==", "'/'", ")", "{", "isJavadoc", "=", "false", ";", "}", "int", "firstTag", "=", "0", ";", "while", "(", "(", "this", ".", "currentCharacter", "!=", "'/'", ")", "||", "(", "!", "star", ")", ")", "{", "if", "(", "this", ".", "currentPosition", ">=", "this", ".", "eofPosition", ")", "{", "throw", "new", "InvalidInputException", "(", "UNTERMINATED_COMMENT", ")", ";", "}", "if", "(", "(", "this", ".", "currentCharacter", "==", "'\\r'", ")", "||", "(", "this", ".", "currentCharacter", "==", "'\\n'", ")", ")", "{", "if", "(", "this", ".", "recordLineSeparator", ")", "{", "if", "(", "isUnicode", ")", "{", "pushUnicodeLineSeparator", "(", ")", ";", "}", "else", "{", "pushLineSeparator", "(", ")", ";", "}", "}", "}", "switch", "(", "this", ".", "currentCharacter", ")", "{", "case", "'*'", ":", "star", "=", "true", ";", "break", ";", "case", "'@'", ":", "if", "(", "firstTag", "==", "0", "&&", "this", ".", "isFirstTag", "(", ")", ")", "{", "firstTag", "=", "previous", ";", "}", "default", ":", "star", "=", "false", ";", "}", "previous", "=", "this", ".", "currentPosition", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "isUnicode", "=", "true", ";", "}", "else", "{", "isUnicode", "=", "false", ";", "}", "if", "(", "this", ".", "currentCharacter", "==", "'\\\\'", ")", "{", "if", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'\\\\'", ")", "this", ".", "currentPosition", "++", ";", "}", "}", "int", "token", "=", "isJavadoc", "?", "TokenNameCOMMENT_JAVADOC", ":", "TokenNameCOMMENT_BLOCK", ";", "recordComment", "(", "token", ")", ";", "this", ".", "commentTagStarts", "[", "this", ".", "commentPtr", "]", "=", "firstTag", ";", "if", "(", "this", ".", "taskTags", "!=", "null", ")", "checkTaskTag", "(", "this", ".", "startPosition", ",", "this", ".", "currentPosition", ")", ";", "if", "(", "this", ".", "tokenizeComments", ")", "{", "return", "token", ";", "}", "}", "catch", "(", "IndexOutOfBoundsException", "e", ")", "{", "this", ".", "currentPosition", "--", ";", "throw", "new", "InvalidInputException", "(", "UNTERMINATED_COMMENT", ")", ";", "}", "break", ";", "}", "}", "if", "(", "getNextChar", "(", "'='", ")", ")", "return", "TokenNameDIVIDE_EQUAL", ";", "return", "TokenNameDIVIDE", ";", "case", "'\u001a'", ":", "if", "(", "atEnd", "(", ")", ")", "return", "TokenNameEOF", ";", "throw", "new", "InvalidInputException", "(", "\"Ctrl-Z\"", ")", ";", "default", ":", "char", "c", "=", "this", ".", "currentCharacter", ";", "if", "(", "c", "<", "ScannerHelper", ".", "MAX_OBVIOUS", ")", "{", "if", "(", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "ScannerHelper", ".", "C_IDENT_START", ")", "!=", "0", ")", "{", "return", "scanIdentifierOrKeyword", "(", ")", ";", "}", "else", "if", "(", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "ScannerHelper", ".", "C_DIGIT", ")", "!=", "0", ")", "{", "return", "scanNumber", "(", "false", ")", ";", "}", "else", "{", "return", "TokenNameERROR", ";", "}", "}", "boolean", "isJavaIdStart", ";", "if", "(", "c", ">=", "HIGH_SURROGATE_MIN_VALUE", "&&", "c", "<=", "HIGH_SURROGATE_MAX_VALUE", ")", "{", "if", "(", "this", ".", "complianceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "throw", "new", "InvalidInputException", "(", "INVALID_UNICODE_ESCAPE", ")", ";", "}", "char", "low", "=", "(", "char", ")", "getNextChar", "(", ")", ";", "if", "(", "low", "<", "LOW_SURROGATE_MIN_VALUE", "||", "low", ">", "LOW_SURROGATE_MAX_VALUE", ")", "{", "throw", "new", "InvalidInputException", "(", "INVALID_LOW_SURROGATE", ")", ";", "}", "isJavaIdStart", "=", "ScannerHelper", ".", "isJavaIdentifierStart", "(", "this", ".", "complianceLevel", ",", "c", ",", "low", ")", ";", "}", "else", "if", "(", "c", ">=", "LOW_SURROGATE_MIN_VALUE", "&&", "c", "<=", "LOW_SURROGATE_MAX_VALUE", ")", "{", "if", "(", "this", ".", "complianceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "throw", "new", "InvalidInputException", "(", "INVALID_UNICODE_ESCAPE", ")", ";", "}", "throw", "new", "InvalidInputException", "(", "INVALID_HIGH_SURROGATE", ")", ";", "}", "else", "{", "isJavaIdStart", "=", "ScannerHelper", ".", "isJavaIdentifierStart", "(", "this", ".", "complianceLevel", ",", "c", ")", ";", "}", "if", "(", "isJavaIdStart", ")", "return", "scanIdentifierOrKeyword", "(", ")", ";", "if", "(", "ScannerHelper", ".", "isDigit", "(", "this", ".", "currentCharacter", ")", ")", "{", "return", "scanNumber", "(", "false", ")", ";", "}", "return", "TokenNameERROR", ";", "}", "}", "}", "catch", "(", "IndexOutOfBoundsException", "e", ")", "{", "if", "(", "this", ".", "tokenizeWhiteSpace", "&&", "(", "whiteStart", "!=", "this", ".", "currentPosition", "-", "1", ")", ")", "{", "this", ".", "currentPosition", "--", ";", "this", ".", "startPosition", "=", "whiteStart", ";", "return", "TokenNameWHITESPACE", ";", "}", "}", "return", "TokenNameEOF", ";", "}", "public", "void", "getNextUnicodeChar", "(", ")", "throws", "InvalidInputException", "{", "int", "c1", "=", "0", ",", "c2", "=", "0", ",", "c3", "=", "0", ",", "c4", "=", "0", ",", "unicodeSize", "=", "6", ";", "this", ".", "currentPosition", "++", ";", "if", "(", "this", ".", "currentPosition", "<", "this", ".", "eofPosition", ")", "{", "while", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", "{", "this", ".", "currentPosition", "++", ";", "if", "(", "this", ".", "currentPosition", ">=", "this", ".", "eofPosition", ")", "{", "this", ".", "currentPosition", "--", ";", "throw", "new", "InvalidInputException", "(", "INVALID_UNICODE_ESCAPE", ")", ";", "}", "unicodeSize", "++", ";", "}", "}", "else", "{", "this", ".", "currentPosition", "--", ";", "throw", "new", "InvalidInputException", "(", "INVALID_UNICODE_ESCAPE", ")", ";", "}", "if", "(", "(", "this", ".", "currentPosition", "+", "4", ")", ">", "this", ".", "eofPosition", ")", "{", "this", ".", "currentPosition", "+=", "(", "this", ".", "eofPosition", "-", "this", ".", "currentPosition", ")", ";", "throw", "new", "InvalidInputException", "(", "INVALID_UNICODE_ESCAPE", ")", ";", "}", "if", "(", "(", "c1", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", ")", ">", "15", "||", "c1", "<", "0", "||", "(", "c2", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", ")", ">", "15", "||", "c2", "<", "0", "||", "(", "c3", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", ")", ">", "15", "||", "c3", "<", "0", "||", "(", "c4", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", ")", ">", "15", "||", "c4", "<", "0", ")", "{", "throw", "new", "InvalidInputException", "(", "INVALID_UNICODE_ESCAPE", ")", ";", "}", "this", ".", "currentCharacter", "=", "(", "char", ")", "(", "(", "(", "c1", "*", "16", "+", "c2", ")", "*", "16", "+", "c3", ")", "*", "16", "+", "c4", ")", ";", "if", "(", "this", ".", "withoutUnicodePtr", "==", "0", ")", "{", "unicodeInitializeBuffer", "(", "this", ".", "currentPosition", "-", "unicodeSize", "-", "this", ".", "startPosition", ")", ";", "}", "unicodeStore", "(", ")", ";", "this", ".", "unicodeAsBackSlash", "=", "this", ".", "currentCharacter", "==", "'\\\\'", ";", "}", "public", "NLSTag", "[", "]", "getNLSTags", "(", ")", "{", "final", "int", "length", "=", "this", ".", "nlsTagsPtr", ";", "if", "(", "length", "!=", "0", ")", "{", "NLSTag", "[", "]", "result", "=", "new", "NLSTag", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "nlsTags", ",", "0", ",", "result", ",", "0", ",", "length", ")", ";", "this", ".", "nlsTagsPtr", "=", "0", ";", "return", "result", ";", "}", "return", "null", ";", "}", "public", "char", "[", "]", "getSource", "(", ")", "{", "return", "this", ".", "source", ";", "}", "protected", "boolean", "isFirstTag", "(", ")", "{", "return", "true", ";", "}", "public", "final", "void", "jumpOverMethodBody", "(", ")", "{", "this", ".", "wasAcr", "=", "false", ";", "int", "found", "=", "1", ";", "try", "{", "while", "(", "true", ")", "{", "this", ".", "withoutUnicodePtr", "=", "0", ";", "boolean", "isWhiteSpace", ";", "do", "{", "this", ".", "startPosition", "=", "this", ".", "currentPosition", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "isWhiteSpace", "=", "jumpOverUnicodeWhiteSpace", "(", ")", ";", "}", "else", "{", "if", "(", "this", ".", "recordLineSeparator", "&&", "(", "(", "this", ".", "currentCharacter", "==", "'\\r'", ")", "||", "(", "this", ".", "currentCharacter", "==", "'\\n'", ")", ")", ")", "{", "pushLineSeparator", "(", ")", ";", "}", "isWhiteSpace", "=", "CharOperation", ".", "isWhitespace", "(", "this", ".", "currentCharacter", ")", ";", "}", "}", "while", "(", "isWhiteSpace", ")", ";", "NextToken", ":", "switch", "(", "this", ".", "currentCharacter", ")", "{", "case", "'{'", ":", "found", "++", ";", "break", "NextToken", ";", "case", "'}'", ":", "found", "--", ";", "if", "(", "found", "==", "0", ")", "return", ";", "break", "NextToken", ";", "case", "'\\''", ":", "{", "boolean", "test", ";", "test", "=", "getNextChar", "(", "'\\\\'", ")", ";", "if", "(", "test", ")", "{", "try", "{", "if", "(", "this", ".", "unicodeAsBackSlash", ")", "{", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "}", "else", "{", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "}", "else", "{", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ";", "}", "scanEscapeCharacter", "(", ")", ";", "}", "catch", "(", "InvalidInputException", "ex", ")", "{", "}", "}", "else", "{", "try", "{", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "}", "else", "{", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "}", "catch", "(", "InvalidInputException", "ex", ")", "{", "}", "}", "getNextChar", "(", "'\\''", ")", ";", "break", "NextToken", ";", "}", "case", "'\"'", ":", "try", "{", "try", "{", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "}", "else", "{", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "}", "catch", "(", "InvalidInputException", "ex", ")", "{", "}", "while", "(", "this", ".", "currentCharacter", "!=", "'\"'", ")", "{", "if", "(", "this", ".", "currentPosition", ">=", "this", ".", "eofPosition", ")", "{", "return", ";", "}", "if", "(", "this", ".", "currentCharacter", "==", "'\\r'", ")", "{", "if", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'\\n'", ")", "this", ".", "currentPosition", "++", ";", "break", "NextToken", ";", "}", "if", "(", "this", ".", "currentCharacter", "==", "'\\n'", ")", "{", "break", ";", "}", "if", "(", "this", ".", "currentCharacter", "==", "'\\\\'", ")", "{", "try", "{", "if", "(", "this", ".", "unicodeAsBackSlash", ")", "{", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "}", "else", "{", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "}", "else", "{", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ";", "}", "scanEscapeCharacter", "(", ")", ";", "}", "catch", "(", "InvalidInputException", "ex", ")", "{", "}", "}", "try", "{", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "}", "else", "{", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "}", "catch", "(", "InvalidInputException", "ex", ")", "{", "}", "}", "}", "catch", "(", "IndexOutOfBoundsException", "e", ")", "{", "return", ";", "}", "break", "NextToken", ";", "case", "'/'", ":", "{", "int", "test", ";", "if", "(", "(", "test", "=", "getNextChar", "(", "'/'", ",", "'*'", ")", ")", "==", "0", ")", "{", "try", "{", "this", ".", "lastCommentLinePosition", "=", "this", ".", "currentPosition", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "}", "if", "(", "this", ".", "currentCharacter", "==", "'\\\\'", ")", "{", "if", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'\\\\'", ")", "this", ".", "currentPosition", "++", ";", "}", "boolean", "isUnicode", "=", "false", ";", "while", "(", "this", ".", "currentCharacter", "!=", "'\\r'", "&&", "this", ".", "currentCharacter", "!=", "'\\n'", ")", "{", "if", "(", "this", ".", "currentPosition", ">=", "this", ".", "eofPosition", ")", "{", "this", ".", "lastCommentLinePosition", "=", "this", ".", "currentPosition", ";", "this", ".", "currentPosition", "++", ";", "throw", "new", "IndexOutOfBoundsException", "(", ")", ";", "}", "this", ".", "lastCommentLinePosition", "=", "this", ".", "currentPosition", ";", "isUnicode", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "isUnicode", "=", "true", ";", "getNextUnicodeChar", "(", ")", ";", "}", "if", "(", "this", ".", "currentCharacter", "==", "'\\\\'", ")", "{", "if", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'\\\\'", ")", "this", ".", "currentPosition", "++", ";", "}", "}", "if", "(", "this", ".", "currentCharacter", "==", "'\\r'", "&&", "this", ".", "eofPosition", ">", "this", ".", "currentPosition", ")", "{", "if", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'\\n'", ")", "{", "this", ".", "currentPosition", "++", ";", "this", ".", "currentCharacter", "=", "'\\n'", ";", "}", "else", "if", "(", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "+", "1", "]", "==", "'u'", ")", ")", "{", "isUnicode", "=", "true", ";", "getNextUnicodeChar", "(", ")", ";", "}", "}", "recordComment", "(", "TokenNameCOMMENT_LINE", ")", ";", "if", "(", "this", ".", "recordLineSeparator", "&&", "(", "(", "this", ".", "currentCharacter", "==", "'\\r'", ")", "||", "(", "this", ".", "currentCharacter", "==", "'\\n'", ")", ")", ")", "{", "if", "(", "this", ".", "checkNonExternalizedStringLiterals", "&&", "this", ".", "lastPosition", "<", "this", ".", "currentPosition", ")", "{", "parseTags", "(", ")", ";", "}", "if", "(", "this", ".", "recordLineSeparator", ")", "{", "if", "(", "isUnicode", ")", "{", "pushUnicodeLineSeparator", "(", ")", ";", "}", "else", "{", "pushLineSeparator", "(", ")", ";", "}", "}", "}", "}", "catch", "(", "IndexOutOfBoundsException", "e", ")", "{", "this", ".", "currentPosition", "--", ";", "recordComment", "(", "TokenNameCOMMENT_LINE", ")", ";", "if", "(", "this", ".", "checkNonExternalizedStringLiterals", "&&", "this", ".", "lastPosition", "<", "this", ".", "currentPosition", ")", "{", "parseTags", "(", ")", ";", "}", "if", "(", "!", "this", ".", "tokenizeComments", ")", "{", "this", ".", "currentPosition", "++", ";", "}", "}", "break", "NextToken", ";", "}", "if", "(", "test", ">", "0", ")", "{", "boolean", "isJavadoc", "=", "false", ";", "try", "{", "boolean", "star", "=", "false", ";", "int", "previous", ";", "boolean", "isUnicode", "=", "false", ";", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "isUnicode", "=", "true", ";", "}", "else", "{", "isUnicode", "=", "false", ";", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "if", "(", "this", ".", "currentCharacter", "==", "'*'", ")", "{", "isJavadoc", "=", "true", ";", "star", "=", "true", ";", "}", "if", "(", "(", "this", ".", "currentCharacter", "==", "'\\r'", ")", "||", "(", "this", ".", "currentCharacter", "==", "'\\n'", ")", ")", "{", "if", "(", "this", ".", "recordLineSeparator", ")", "{", "if", "(", "isUnicode", ")", "{", "pushUnicodeLineSeparator", "(", ")", ";", "}", "else", "{", "pushLineSeparator", "(", ")", ";", "}", "}", "}", "isUnicode", "=", "false", ";", "previous", "=", "this", ".", "currentPosition", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "isUnicode", "=", "true", ";", "}", "else", "{", "isUnicode", "=", "false", ";", "}", "if", "(", "this", ".", "currentCharacter", "==", "'\\\\'", ")", "{", "if", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'\\\\'", ")", "this", ".", "currentPosition", "++", ";", "}", "if", "(", "this", ".", "currentCharacter", "==", "'/'", ")", "{", "isJavadoc", "=", "false", ";", "}", "int", "firstTag", "=", "0", ";", "while", "(", "(", "this", ".", "currentCharacter", "!=", "'/'", ")", "||", "(", "!", "star", ")", ")", "{", "if", "(", "this", ".", "currentPosition", ">=", "this", ".", "eofPosition", ")", "{", "return", ";", "}", "if", "(", "(", "this", ".", "currentCharacter", "==", "'\\r'", ")", "||", "(", "this", ".", "currentCharacter", "==", "'\\n'", ")", ")", "{", "if", "(", "this", ".", "recordLineSeparator", ")", "{", "if", "(", "isUnicode", ")", "{", "pushUnicodeLineSeparator", "(", ")", ";", "}", "else", "{", "pushLineSeparator", "(", ")", ";", "}", "}", "}", "switch", "(", "this", ".", "currentCharacter", ")", "{", "case", "'*'", ":", "star", "=", "true", ";", "break", ";", "case", "'@'", ":", "if", "(", "firstTag", "==", "0", "&&", "this", ".", "isFirstTag", "(", ")", ")", "{", "firstTag", "=", "previous", ";", "}", "default", ":", "star", "=", "false", ";", "}", "previous", "=", "this", ".", "currentPosition", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "isUnicode", "=", "true", ";", "}", "else", "{", "isUnicode", "=", "false", ";", "}", "if", "(", "this", ".", "currentCharacter", "==", "'\\\\'", ")", "{", "if", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'\\\\'", ")", "this", ".", "currentPosition", "++", ";", "}", "}", "recordComment", "(", "isJavadoc", "?", "TokenNameCOMMENT_JAVADOC", ":", "TokenNameCOMMENT_BLOCK", ")", ";", "this", ".", "commentTagStarts", "[", "this", ".", "commentPtr", "]", "=", "firstTag", ";", "}", "catch", "(", "IndexOutOfBoundsException", "e", ")", "{", "return", ";", "}", "break", "NextToken", ";", "}", "break", "NextToken", ";", "}", "default", ":", "try", "{", "char", "c", "=", "this", ".", "currentCharacter", ";", "if", "(", "c", "<", "ScannerHelper", ".", "MAX_OBVIOUS", ")", "{", "if", "(", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "ScannerHelper", ".", "C_IDENT_START", ")", "!=", "0", ")", "{", "scanIdentifierOrKeyword", "(", ")", ";", "break", "NextToken", ";", "}", "else", "if", "(", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "ScannerHelper", ".", "C_DIGIT", ")", "!=", "0", ")", "{", "scanNumber", "(", "false", ")", ";", "break", "NextToken", ";", "}", "else", "{", "break", "NextToken", ";", "}", "}", "boolean", "isJavaIdStart", ";", "if", "(", "c", ">=", "HIGH_SURROGATE_MIN_VALUE", "&&", "c", "<=", "HIGH_SURROGATE_MAX_VALUE", ")", "{", "if", "(", "this", ".", "complianceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "throw", "new", "InvalidInputException", "(", "INVALID_UNICODE_ESCAPE", ")", ";", "}", "char", "low", "=", "(", "char", ")", "getNextChar", "(", ")", ";", "if", "(", "low", "<", "LOW_SURROGATE_MIN_VALUE", "||", "low", ">", "LOW_SURROGATE_MAX_VALUE", ")", "{", "break", "NextToken", ";", "}", "isJavaIdStart", "=", "ScannerHelper", ".", "isJavaIdentifierStart", "(", "this", ".", "complianceLevel", ",", "c", ",", "low", ")", ";", "}", "else", "if", "(", "c", ">=", "LOW_SURROGATE_MIN_VALUE", "&&", "c", "<=", "LOW_SURROGATE_MAX_VALUE", ")", "{", "break", "NextToken", ";", "}", "else", "{", "isJavaIdStart", "=", "ScannerHelper", ".", "isJavaIdentifierStart", "(", "this", ".", "complianceLevel", ",", "c", ")", ";", "}", "if", "(", "isJavaIdStart", ")", "{", "scanIdentifierOrKeyword", "(", ")", ";", "break", "NextToken", ";", "}", "}", "catch", "(", "InvalidInputException", "ex", ")", "{", "}", "}", "}", "}", "catch", "(", "IndexOutOfBoundsException", "e", ")", "{", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "}", "return", ";", "}", "public", "final", "boolean", "jumpOverUnicodeWhiteSpace", "(", ")", "throws", "InvalidInputException", "{", "this", ".", "wasAcr", "=", "false", ";", "getNextUnicodeChar", "(", ")", ";", "return", "CharOperation", ".", "isWhitespace", "(", "this", ".", "currentCharacter", ")", ";", "}", "final", "char", "[", "]", "optimizedCurrentTokenSource1", "(", ")", "{", "char", "charOne", "=", "this", ".", "source", "[", "this", ".", "startPosition", "]", ";", "switch", "(", "charOne", ")", "{", "case", "'a'", ":", "return", "charArray_a", ";", "case", "'b'", ":", "return", "charArray_b", ";", "case", "'c'", ":", "return", "charArray_c", ";", "case", "'d'", ":", "return", "charArray_d", ";", "case", "'e'", ":", "return", "charArray_e", ";", "case", "'f'", ":", "return", "charArray_f", ";", "case", "'g'", ":", "return", "charArray_g", ";", "case", "'h'", ":", "return", "charArray_h", ";", "case", "'i'", ":", "return", "charArray_i", ";", "case", "'j'", ":", "return", "charArray_j", ";", "case", "'k'", ":", "return", "charArray_k", ";", "case", "'l'", ":", "return", "charArray_l", ";", "case", "'m'", ":", "return", "charArray_m", ";", "case", "'n'", ":", "return", "charArray_n", ";", "case", "'o'", ":", "return", "charArray_o", ";", "case", "'p'", ":", "return", "charArray_p", ";", "case", "'q'", ":", "return", "charArray_q", ";", "case", "'r'", ":", "return", "charArray_r", ";", "case", "'s'", ":", "return", "charArray_s", ";", "case", "'t'", ":", "return", "charArray_t", ";", "case", "'u'", ":", "return", "charArray_u", ";", "case", "'v'", ":", "return", "charArray_v", ";", "case", "'w'", ":", "return", "charArray_w", ";", "case", "'x'", ":", "return", "charArray_x", ";", "case", "'y'", ":", "return", "charArray_y", ";", "case", "'z'", ":", "return", "charArray_z", ";", "default", ":", "return", "new", "char", "[", "]", "{", "charOne", "}", ";", "}", "}", "final", "char", "[", "]", "optimizedCurrentTokenSource2", "(", ")", "{", "char", "[", "]", "src", "=", "this", ".", "source", ";", "int", "start", "=", "this", ".", "startPosition", ";", "char", "c0", ",", "c1", ";", "int", "hash", "=", "(", "(", "(", "c0", "=", "src", "[", "start", "]", ")", "<<", "6", ")", "+", "(", "c1", "=", "src", "[", "start", "+", "1", "]", ")", ")", "%", "TableSize", ";", "char", "[", "]", "[", "]", "table", "=", "this", ".", "charArray_length", "[", "0", "]", "[", "hash", "]", ";", "int", "i", "=", "this", ".", "newEntry2", ";", "while", "(", "++", "i", "<", "InternalTableSize", ")", "{", "char", "[", "]", "charArray", "=", "table", "[", "i", "]", ";", "if", "(", "(", "c0", "==", "charArray", "[", "0", "]", ")", "&&", "(", "c1", "==", "charArray", "[", "1", "]", ")", ")", "return", "charArray", ";", "}", "i", "=", "-", "1", ";", "int", "max", "=", "this", ".", "newEntry2", ";", "while", "(", "++", "i", "<=", "max", ")", "{", "char", "[", "]", "charArray", "=", "table", "[", "i", "]", ";", "if", "(", "(", "c0", "==", "charArray", "[", "0", "]", ")", "&&", "(", "c1", "==", "charArray", "[", "1", "]", ")", ")", "return", "charArray", ";", "}", "if", "(", "++", "max", ">=", "InternalTableSize", ")", "max", "=", "0", ";", "char", "[", "]", "r", ";", "System", ".", "arraycopy", "(", "src", ",", "start", ",", "r", "=", "new", "char", "[", "2", "]", ",", "0", ",", "2", ")", ";", "return", "table", "[", "this", ".", "newEntry2", "=", "max", "]", "=", "r", ";", "}", "final", "char", "[", "]", "optimizedCurrentTokenSource3", "(", ")", "{", "char", "[", "]", "src", "=", "this", ".", "source", ";", "int", "start", "=", "this", ".", "startPosition", ";", "char", "c0", ",", "c1", "=", "src", "[", "start", "+", "1", "]", ",", "c2", ";", "int", "hash", "=", "(", "(", "(", "c0", "=", "src", "[", "start", "]", ")", "<<", "6", ")", "+", "(", "c2", "=", "src", "[", "start", "+", "2", "]", ")", ")", "%", "TableSize", ";", "char", "[", "]", "[", "]", "table", "=", "this", ".", "charArray_length", "[", "1", "]", "[", "hash", "]", ";", "int", "i", "=", "this", ".", "newEntry3", ";", "while", "(", "++", "i", "<", "InternalTableSize", ")", "{", "char", "[", "]", "charArray", "=", "table", "[", "i", "]", ";", "if", "(", "(", "c0", "==", "charArray", "[", "0", "]", ")", "&&", "(", "c1", "==", "charArray", "[", "1", "]", ")", "&&", "(", "c2", "==", "charArray", "[", "2", "]", ")", ")", "return", "charArray", ";", "}", "i", "=", "-", "1", ";", "int", "max", "=", "this", ".", "newEntry3", ";", "while", "(", "++", "i", "<=", "max", ")", "{", "char", "[", "]", "charArray", "=", "table", "[", "i", "]", ";", "if", "(", "(", "c0", "==", "charArray", "[", "0", "]", ")", "&&", "(", "c1", "==", "charArray", "[", "1", "]", ")", "&&", "(", "c2", "==", "charArray", "[", "2", "]", ")", ")", "return", "charArray", ";", "}", "if", "(", "++", "max", ">=", "InternalTableSize", ")", "max", "=", "0", ";", "char", "[", "]", "r", ";", "System", ".", "arraycopy", "(", "src", ",", "start", ",", "r", "=", "new", "char", "[", "3", "]", ",", "0", ",", "3", ")", ";", "return", "table", "[", "this", ".", "newEntry3", "=", "max", "]", "=", "r", ";", "}", "final", "char", "[", "]", "optimizedCurrentTokenSource4", "(", ")", "{", "char", "[", "]", "src", "=", "this", ".", "source", ";", "int", "start", "=", "this", ".", "startPosition", ";", "char", "c0", ",", "c1", "=", "src", "[", "start", "+", "1", "]", ",", "c2", ",", "c3", "=", "src", "[", "start", "+", "3", "]", ";", "int", "hash", "=", "(", "(", "(", "c0", "=", "src", "[", "start", "]", ")", "<<", "6", ")", "+", "(", "c2", "=", "src", "[", "start", "+", "2", "]", ")", ")", "%", "TableSize", ";", "char", "[", "]", "[", "]", "table", "=", "this", ".", "charArray_length", "[", "2", "]", "[", "hash", "]", ";", "int", "i", "=", "this", ".", "newEntry4", ";", "while", "(", "++", "i", "<", "InternalTableSize", ")", "{", "char", "[", "]", "charArray", "=", "table", "[", "i", "]", ";", "if", "(", "(", "c0", "==", "charArray", "[", "0", "]", ")", "&&", "(", "c1", "==", "charArray", "[", "1", "]", ")", "&&", "(", "c2", "==", "charArray", "[", "2", "]", ")", "&&", "(", "c3", "==", "charArray", "[", "3", "]", ")", ")", "return", "charArray", ";", "}", "i", "=", "-", "1", ";", "int", "max", "=", "this", ".", "newEntry4", ";", "while", "(", "++", "i", "<=", "max", ")", "{", "char", "[", "]", "charArray", "=", "table", "[", "i", "]", ";", "if", "(", "(", "c0", "==", "charArray", "[", "0", "]", ")", "&&", "(", "c1", "==", "charArray", "[", "1", "]", ")", "&&", "(", "c2", "==", "charArray", "[", "2", "]", ")", "&&", "(", "c3", "==", "charArray", "[", "3", "]", ")", ")", "return", "charArray", ";", "}", "if", "(", "++", "max", ">=", "InternalTableSize", ")", "max", "=", "0", ";", "char", "[", "]", "r", ";", "System", ".", "arraycopy", "(", "src", ",", "start", ",", "r", "=", "new", "char", "[", "4", "]", ",", "0", ",", "4", ")", ";", "return", "table", "[", "this", ".", "newEntry4", "=", "max", "]", "=", "r", ";", "}", "final", "char", "[", "]", "optimizedCurrentTokenSource5", "(", ")", "{", "char", "[", "]", "src", "=", "this", ".", "source", ";", "int", "start", "=", "this", ".", "startPosition", ";", "char", "c0", ",", "c1", "=", "src", "[", "start", "+", "1", "]", ",", "c2", ",", "c3", "=", "src", "[", "start", "+", "3", "]", ",", "c4", ";", "int", "hash", "=", "(", "(", "(", "c0", "=", "src", "[", "start", "]", ")", "<<", "12", ")", "+", "(", "(", "c2", "=", "src", "[", "start", "+", "2", "]", ")", "<<", "6", ")", "+", "(", "c4", "=", "src", "[", "start", "+", "4", "]", ")", ")", "%", "TableSize", ";", "char", "[", "]", "[", "]", "table", "=", "this", ".", "charArray_length", "[", "3", "]", "[", "hash", "]", ";", "int", "i", "=", "this", ".", "newEntry5", ";", "while", "(", "++", "i", "<", "InternalTableSize", ")", "{", "char", "[", "]", "charArray", "=", "table", "[", "i", "]", ";", "if", "(", "(", "c0", "==", "charArray", "[", "0", "]", ")", "&&", "(", "c1", "==", "charArray", "[", "1", "]", ")", "&&", "(", "c2", "==", "charArray", "[", "2", "]", ")", "&&", "(", "c3", "==", "charArray", "[", "3", "]", ")", "&&", "(", "c4", "==", "charArray", "[", "4", "]", ")", ")", "return", "charArray", ";", "}", "i", "=", "-", "1", ";", "int", "max", "=", "this", ".", "newEntry5", ";", "while", "(", "++", "i", "<=", "max", ")", "{", "char", "[", "]", "charArray", "=", "table", "[", "i", "]", ";", "if", "(", "(", "c0", "==", "charArray", "[", "0", "]", ")", "&&", "(", "c1", "==", "charArray", "[", "1", "]", ")", "&&", "(", "c2", "==", "charArray", "[", "2", "]", ")", "&&", "(", "c3", "==", "charArray", "[", "3", "]", ")", "&&", "(", "c4", "==", "charArray", "[", "4", "]", ")", ")", "return", "charArray", ";", "}", "if", "(", "++", "max", ">=", "InternalTableSize", ")", "max", "=", "0", ";", "char", "[", "]", "r", ";", "System", ".", "arraycopy", "(", "src", ",", "start", ",", "r", "=", "new", "char", "[", "5", "]", ",", "0", ",", "5", ")", ";", "return", "table", "[", "this", ".", "newEntry5", "=", "max", "]", "=", "r", ";", "}", "final", "char", "[", "]", "optimizedCurrentTokenSource6", "(", ")", "{", "char", "[", "]", "src", "=", "this", ".", "source", ";", "int", "start", "=", "this", ".", "startPosition", ";", "char", "c0", ",", "c1", "=", "src", "[", "start", "+", "1", "]", ",", "c2", ",", "c3", "=", "src", "[", "start", "+", "3", "]", ",", "c4", ",", "c5", "=", "src", "[", "start", "+", "5", "]", ";", "int", "hash", "=", "(", "(", "(", "c0", "=", "src", "[", "start", "]", ")", "<<", "12", ")", "+", "(", "(", "c2", "=", "src", "[", "start", "+", "2", "]", ")", "<<", "6", ")", "+", "(", "c4", "=", "src", "[", "start", "+", "4", "]", ")", ")", "%", "TableSize", ";", "char", "[", "]", "[", "]", "table", "=", "this", ".", "charArray_length", "[", "4", "]", "[", "hash", "]", ";", "int", "i", "=", "this", ".", "newEntry6", ";", "while", "(", "++", "i", "<", "InternalTableSize", ")", "{", "char", "[", "]", "charArray", "=", "table", "[", "i", "]", ";", "if", "(", "(", "c0", "==", "charArray", "[", "0", "]", ")", "&&", "(", "c1", "==", "charArray", "[", "1", "]", ")", "&&", "(", "c2", "==", "charArray", "[", "2", "]", ")", "&&", "(", "c3", "==", "charArray", "[", "3", "]", ")", "&&", "(", "c4", "==", "charArray", "[", "4", "]", ")", "&&", "(", "c5", "==", "charArray", "[", "5", "]", ")", ")", "return", "charArray", ";", "}", "i", "=", "-", "1", ";", "int", "max", "=", "this", ".", "newEntry6", ";", "while", "(", "++", "i", "<=", "max", ")", "{", "char", "[", "]", "charArray", "=", "table", "[", "i", "]", ";", "if", "(", "(", "c0", "==", "charArray", "[", "0", "]", ")", "&&", "(", "c1", "==", "charArray", "[", "1", "]", ")", "&&", "(", "c2", "==", "charArray", "[", "2", "]", ")", "&&", "(", "c3", "==", "charArray", "[", "3", "]", ")", "&&", "(", "c4", "==", "charArray", "[", "4", "]", ")", "&&", "(", "c5", "==", "charArray", "[", "5", "]", ")", ")", "return", "charArray", ";", "}", "if", "(", "++", "max", ">=", "InternalTableSize", ")", "max", "=", "0", ";", "char", "[", "]", "r", ";", "System", ".", "arraycopy", "(", "src", ",", "start", ",", "r", "=", "new", "char", "[", "6", "]", ",", "0", ",", "6", ")", ";", "return", "table", "[", "this", ".", "newEntry6", "=", "max", "]", "=", "r", ";", "}", "private", "void", "parseTags", "(", ")", "{", "int", "position", "=", "0", ";", "final", "int", "currentStartPosition", "=", "this", ".", "startPosition", ";", "final", "int", "currentLinePtr", "=", "this", ".", "linePtr", ";", "if", "(", "currentLinePtr", ">=", "0", ")", "{", "position", "=", "this", ".", "lineEnds", "[", "currentLinePtr", "]", "+", "1", ";", "}", "while", "(", "ScannerHelper", ".", "isWhitespace", "(", "this", ".", "source", "[", "position", "]", ")", ")", "{", "position", "++", ";", "}", "if", "(", "currentStartPosition", "==", "position", ")", "{", "return", ";", "}", "char", "[", "]", "s", "=", "null", ";", "int", "sourceEnd", "=", "this", ".", "currentPosition", ";", "int", "sourceStart", "=", "currentStartPosition", ";", "int", "sourceDelta", "=", "0", ";", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "withoutUnicodeBuffer", ",", "1", ",", "s", "=", "new", "char", "[", "this", ".", "withoutUnicodePtr", "]", ",", "0", ",", "this", ".", "withoutUnicodePtr", ")", ";", "sourceEnd", "=", "this", ".", "withoutUnicodePtr", ";", "sourceStart", "=", "1", ";", "sourceDelta", "=", "currentStartPosition", ";", "}", "else", "{", "s", "=", "this", ".", "source", ";", "}", "int", "pos", "=", "CharOperation", ".", "indexOf", "(", "TAG_PREFIX", ",", "s", ",", "true", ",", "sourceStart", ",", "sourceEnd", ")", ";", "if", "(", "pos", "!=", "-", "1", ")", "{", "if", "(", "this", ".", "nlsTags", "==", "null", ")", "{", "this", ".", "nlsTags", "=", "new", "NLSTag", "[", "10", "]", ";", "this", ".", "nlsTagsPtr", "=", "0", ";", "}", "while", "(", "pos", "!=", "-", "1", ")", "{", "int", "start", "=", "pos", "+", "TAG_PREFIX_LENGTH", ";", "int", "end", "=", "CharOperation", ".", "indexOf", "(", "TAG_POSTFIX", ",", "s", ",", "start", ",", "sourceEnd", ")", ";", "if", "(", "end", "!=", "-", "1", ")", "{", "NLSTag", "currentTag", "=", "null", ";", "final", "int", "currentLine", "=", "currentLinePtr", "+", "1", ";", "try", "{", "currentTag", "=", "new", "NLSTag", "(", "pos", "+", "sourceDelta", ",", "end", "+", "sourceDelta", ",", "currentLine", ",", "extractInt", "(", "s", ",", "start", ",", "end", ")", ")", ";", "}", "catch", "(", "NumberFormatException", "e", ")", "{", "currentTag", "=", "new", "NLSTag", "(", "pos", "+", "sourceDelta", ",", "end", "+", "sourceDelta", ",", "currentLine", ",", "-", "1", ")", ";", "}", "if", "(", "this", ".", "nlsTagsPtr", "==", "this", ".", "nlsTags", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "nlsTags", ",", "0", ",", "(", "this", ".", "nlsTags", "=", "new", "NLSTag", "[", "this", ".", "nlsTagsPtr", "+", "10", "]", ")", ",", "0", ",", "this", ".", "nlsTagsPtr", ")", ";", "}", "this", ".", "nlsTags", "[", "this", ".", "nlsTagsPtr", "++", "]", "=", "currentTag", ";", "}", "else", "{", "end", "=", "start", ";", "}", "pos", "=", "CharOperation", ".", "indexOf", "(", "TAG_PREFIX", ",", "s", ",", "true", ",", "end", ",", "sourceEnd", ")", ";", "}", "}", "}", "private", "int", "extractInt", "(", "char", "[", "]", "array", ",", "int", "start", ",", "int", "end", ")", "{", "int", "value", "=", "0", ";", "for", "(", "int", "i", "=", "start", ";", "i", "<", "end", ";", "i", "++", ")", "{", "final", "char", "currentChar", "=", "array", "[", "i", "]", ";", "int", "digit", "=", "0", ";", "switch", "(", "currentChar", ")", "{", "case", "'0'", ":", "digit", "=", "0", ";", "break", ";", "case", "'1'", ":", "digit", "=", "1", ";", "break", ";", "case", "'2'", ":", "digit", "=", "2", ";", "break", ";", "case", "'3'", ":", "digit", "=", "3", ";", "break", ";", "case", "'4'", ":", "digit", "=", "4", ";", "break", ";", "case", "'5'", ":", "digit", "=", "5", ";", "break", ";", "case", "'6'", ":", "digit", "=", "6", ";", "break", ";", "case", "'7'", ":", "digit", "=", "7", ";", "break", ";", "case", "'8'", ":", "digit", "=", "8", ";", "break", ";", "case", "'9'", ":", "digit", "=", "9", ";", "break", ";", "default", ":", "throw", "new", "NumberFormatException", "(", ")", ";", "}", "value", "*=", "10", ";", "if", "(", "digit", "<", "0", ")", "throw", "new", "NumberFormatException", "(", ")", ";", "value", "+=", "digit", ";", "}", "return", "value", ";", "}", "public", "final", "void", "pushLineSeparator", "(", ")", "{", "final", "int", "INCREMENT", "=", "250", ";", "if", "(", "this", ".", "currentCharacter", "==", "'\\r'", ")", "{", "int", "separatorPos", "=", "this", ".", "currentPosition", "-", "1", ";", "if", "(", "(", "this", ".", "linePtr", ">=", "0", ")", "&&", "(", "this", ".", "lineEnds", "[", "this", ".", "linePtr", "]", ">=", "separatorPos", ")", ")", "return", ";", "int", "length", "=", "this", ".", "lineEnds", ".", "length", ";", "if", "(", "++", "this", ".", "linePtr", ">=", "length", ")", "System", ".", "arraycopy", "(", "this", ".", "lineEnds", ",", "0", ",", "this", ".", "lineEnds", "=", "new", "int", "[", "length", "+", "INCREMENT", "]", ",", "0", ",", "length", ")", ";", "this", ".", "lineEnds", "[", "this", ".", "linePtr", "]", "=", "separatorPos", ";", "try", "{", "if", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'\\n'", ")", "{", "this", ".", "lineEnds", "[", "this", ".", "linePtr", "]", "=", "this", ".", "currentPosition", ";", "this", ".", "currentPosition", "++", ";", "this", ".", "wasAcr", "=", "false", ";", "}", "else", "{", "this", ".", "wasAcr", "=", "true", ";", "}", "}", "catch", "(", "IndexOutOfBoundsException", "e", ")", "{", "this", ".", "wasAcr", "=", "true", ";", "}", "}", "else", "{", "if", "(", "this", ".", "currentCharacter", "==", "'\\n'", ")", "{", "if", "(", "this", ".", "wasAcr", "&&", "(", "this", ".", "lineEnds", "[", "this", ".", "linePtr", "]", "==", "(", "this", ".", "currentPosition", "-", "2", ")", ")", ")", "{", "this", ".", "lineEnds", "[", "this", ".", "linePtr", "]", "=", "this", ".", "currentPosition", "-", "1", ";", "}", "else", "{", "int", "separatorPos", "=", "this", ".", "currentPosition", "-", "1", ";", "if", "(", "(", "this", ".", "linePtr", ">=", "0", ")", "&&", "(", "this", ".", "lineEnds", "[", "this", ".", "linePtr", "]", ">=", "separatorPos", ")", ")", "return", ";", "int", "length", "=", "this", ".", "lineEnds", ".", "length", ";", "if", "(", "++", "this", ".", "linePtr", ">=", "length", ")", "System", ".", "arraycopy", "(", "this", ".", "lineEnds", ",", "0", ",", "this", ".", "lineEnds", "=", "new", "int", "[", "length", "+", "INCREMENT", "]", ",", "0", ",", "length", ")", ";", "this", ".", "lineEnds", "[", "this", ".", "linePtr", "]", "=", "separatorPos", ";", "}", "this", ".", "wasAcr", "=", "false", ";", "}", "}", "}", "public", "final", "void", "pushUnicodeLineSeparator", "(", ")", "{", "if", "(", "this", ".", "currentCharacter", "==", "'\\r'", ")", "{", "if", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'\\n'", ")", "{", "this", ".", "wasAcr", "=", "false", ";", "}", "else", "{", "this", ".", "wasAcr", "=", "true", ";", "}", "}", "else", "{", "if", "(", "this", ".", "currentCharacter", "==", "'\\n'", ")", "{", "this", ".", "wasAcr", "=", "false", ";", "}", "}", "}", "public", "void", "recordComment", "(", "int", "token", ")", "{", "int", "commentStart", "=", "this", ".", "startPosition", ";", "int", "stopPosition", "=", "this", ".", "currentPosition", ";", "switch", "(", "token", ")", "{", "case", "TokenNameCOMMENT_LINE", ":", "commentStart", "=", "-", "this", ".", "startPosition", ";", "stopPosition", "=", "-", "this", ".", "lastCommentLinePosition", ";", "break", ";", "case", "TokenNameCOMMENT_BLOCK", ":", "stopPosition", "=", "-", "this", ".", "currentPosition", ";", "break", ";", "}", "int", "length", "=", "this", ".", "commentStops", ".", "length", ";", "if", "(", "++", "this", ".", "commentPtr", ">=", "length", ")", "{", "int", "newLength", "=", "length", "+", "COMMENT_ARRAYS_SIZE", "*", "10", ";", "System", ".", "arraycopy", "(", "this", ".", "commentStops", ",", "0", ",", "this", ".", "commentStops", "=", "new", "int", "[", "newLength", "]", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "commentStarts", ",", "0", ",", "this", ".", "commentStarts", "=", "new", "int", "[", "newLength", "]", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "commentTagStarts", ",", "0", ",", "this", ".", "commentTagStarts", "=", "new", "int", "[", "newLength", "]", ",", "0", ",", "length", ")", ";", "}", "this", ".", "commentStops", "[", "this", ".", "commentPtr", "]", "=", "stopPosition", ";", "this", ".", "commentStarts", "[", "this", ".", "commentPtr", "]", "=", "commentStart", ";", "}", "public", "void", "resetTo", "(", "int", "begin", ",", "int", "end", ")", "{", "this", ".", "diet", "=", "false", ";", "this", ".", "initialPosition", "=", "this", ".", "startPosition", "=", "this", ".", "currentPosition", "=", "begin", ";", "if", "(", "this", ".", "source", "!=", "null", "&&", "this", ".", "source", ".", "length", "<", "end", ")", "{", "this", ".", "eofPosition", "=", "this", ".", "source", ".", "length", ";", "}", "else", "{", "this", ".", "eofPosition", "=", "end", "<", "Integer", ".", "MAX_VALUE", "?", "end", "+", "1", ":", "end", ";", "}", "this", ".", "commentPtr", "=", "-", "1", ";", "this", ".", "foundTaskCount", "=", "0", ";", "}", "protected", "final", "void", "scanEscapeCharacter", "(", ")", "throws", "InvalidInputException", "{", "switch", "(", "this", ".", "currentCharacter", ")", "{", "case", "'b'", ":", "this", ".", "currentCharacter", "=", "'\\b'", ";", "break", ";", "case", "'t'", ":", "this", ".", "currentCharacter", "=", "'\\t'", ";", "break", ";", "case", "'n'", ":", "this", ".", "currentCharacter", "=", "'\\n'", ";", "break", ";", "case", "'f'", ":", "this", ".", "currentCharacter", "=", "'\\f'", ";", "break", ";", "case", "'r'", ":", "this", ".", "currentCharacter", "=", "'\\r'", ";", "break", ";", "case", "'\\\"'", ":", "this", ".", "currentCharacter", "=", "'\\\"'", ";", "break", ";", "case", "'\\''", ":", "this", ".", "currentCharacter", "=", "'\\''", ";", "break", ";", "case", "'\\\\'", ":", "this", ".", "currentCharacter", "=", "'\\\\'", ";", "break", ";", "default", ":", "int", "number", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "this", ".", "currentCharacter", ")", ";", "if", "(", "number", ">=", "0", "&&", "number", "<=", "7", ")", "{", "boolean", "zeroToThreeNot", "=", "number", ">", "3", ";", "if", "(", "ScannerHelper", ".", "isDigit", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", ")", "{", "int", "digit", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "this", ".", "currentCharacter", ")", ";", "if", "(", "digit", ">=", "0", "&&", "digit", "<=", "7", ")", "{", "number", "=", "(", "number", "*", "8", ")", "+", "digit", ";", "if", "(", "ScannerHelper", ".", "isDigit", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", ")", "{", "if", "(", "zeroToThreeNot", ")", "{", "this", ".", "currentPosition", "--", ";", "}", "else", "{", "digit", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "this", ".", "currentCharacter", ")", ";", "if", "(", "digit", ">=", "0", "&&", "digit", "<=", "7", ")", "{", "number", "=", "(", "number", "*", "8", ")", "+", "digit", ";", "}", "else", "{", "this", ".", "currentPosition", "--", ";", "}", "}", "}", "else", "{", "this", ".", "currentPosition", "--", ";", "}", "}", "else", "{", "this", ".", "currentPosition", "--", ";", "}", "}", "else", "{", "this", ".", "currentPosition", "--", ";", "}", "if", "(", "number", ">", "255", ")", "throw", "new", "InvalidInputException", "(", "INVALID_ESCAPE", ")", ";", "this", ".", "currentCharacter", "=", "(", "char", ")", "number", ";", "}", "else", "throw", "new", "InvalidInputException", "(", "INVALID_ESCAPE", ")", ";", "}", "}", "public", "int", "scanIdentifierOrKeywordWithBoundCheck", "(", ")", "{", "this", ".", "useAssertAsAnIndentifier", "=", "false", ";", "this", ".", "useEnumAsAnIndentifier", "=", "false", ";", "char", "[", "]", "src", "=", "this", ".", "source", ";", "identLoop", ":", "{", "int", "pos", ";", "int", "srcLength", "=", "this", ".", "eofPosition", ";", "while", "(", "true", ")", "{", "if", "(", "(", "pos", "=", "this", ".", "currentPosition", ")", ">=", "srcLength", ")", "break", "identLoop", ";", "char", "c", "=", "src", "[", "pos", "]", ";", "if", "(", "c", "<", "ScannerHelper", ".", "MAX_OBVIOUS", ")", "{", "if", "(", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "(", "ScannerHelper", ".", "C_UPPER_LETTER", "|", "ScannerHelper", ".", "C_LOWER_LETTER", "|", "ScannerHelper", ".", "C_IDENT_PART", "|", "ScannerHelper", ".", "C_DIGIT", ")", ")", "!=", "0", ")", "{", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "this", ".", "currentCharacter", "=", "c", ";", "unicodeStore", "(", ")", ";", "}", "this", ".", "currentPosition", "++", ";", "}", "else", "if", "(", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "(", "ScannerHelper", ".", "C_SEPARATOR", "|", "ScannerHelper", ".", "C_JLS_SPACE", ")", ")", "!=", "0", ")", "{", "this", ".", "currentCharacter", "=", "c", ";", "break", "identLoop", ";", "}", "else", "{", "while", "(", "getNextCharAsJavaIdentifierPartWithBoundCheck", "(", ")", ")", "{", "}", "break", "identLoop", ";", "}", "}", "else", "{", "while", "(", "getNextCharAsJavaIdentifierPartWithBoundCheck", "(", ")", ")", "{", "}", "break", "identLoop", ";", "}", "}", "}", "int", "index", ",", "length", ";", "char", "[", "]", "data", ";", "if", "(", "this", ".", "withoutUnicodePtr", "==", "0", ")", "{", "if", "(", "(", "length", "=", "this", ".", "currentPosition", "-", "this", ".", "startPosition", ")", "==", "1", ")", "{", "return", "TokenNameIdentifier", ";", "}", "data", "=", "this", ".", "source", ";", "index", "=", "this", ".", "startPosition", ";", "}", "else", "{", "if", "(", "(", "length", "=", "this", ".", "withoutUnicodePtr", ")", "==", "1", ")", "return", "TokenNameIdentifier", ";", "data", "=", "this", ".", "withoutUnicodeBuffer", ";", "index", "=", "1", ";", "}", "return", "internalScanIdentifierOrKeyword", "(", "index", ",", "length", ",", "data", ")", ";", "}", "public", "int", "scanIdentifierOrKeyword", "(", ")", "{", "this", ".", "useAssertAsAnIndentifier", "=", "false", ";", "this", ".", "useEnumAsAnIndentifier", "=", "false", ";", "char", "[", "]", "src", "=", "this", ".", "source", ";", "identLoop", ":", "{", "int", "pos", ";", "int", "srcLength", "=", "this", ".", "eofPosition", ";", "while", "(", "true", ")", "{", "if", "(", "(", "pos", "=", "this", ".", "currentPosition", ")", ">=", "srcLength", ")", "break", "identLoop", ";", "char", "c", "=", "src", "[", "pos", "]", ";", "if", "(", "c", "<", "ScannerHelper", ".", "MAX_OBVIOUS", ")", "{", "if", "(", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "(", "ScannerHelper", ".", "C_UPPER_LETTER", "|", "ScannerHelper", ".", "C_LOWER_LETTER", "|", "ScannerHelper", ".", "C_IDENT_PART", "|", "ScannerHelper", ".", "C_DIGIT", ")", ")", "!=", "0", ")", "{", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "this", ".", "currentCharacter", "=", "c", ";", "unicodeStore", "(", ")", ";", "}", "this", ".", "currentPosition", "++", ";", "}", "else", "if", "(", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "(", "ScannerHelper", ".", "C_SEPARATOR", "|", "ScannerHelper", ".", "C_JLS_SPACE", ")", ")", "!=", "0", ")", "{", "this", ".", "currentCharacter", "=", "c", ";", "break", "identLoop", ";", "}", "else", "{", "while", "(", "getNextCharAsJavaIdentifierPart", "(", ")", ")", "{", "}", "break", "identLoop", ";", "}", "}", "else", "{", "while", "(", "getNextCharAsJavaIdentifierPart", "(", ")", ")", "{", "}", "break", "identLoop", ";", "}", "}", "}", "int", "index", ",", "length", ";", "char", "[", "]", "data", ";", "if", "(", "this", ".", "withoutUnicodePtr", "==", "0", ")", "{", "if", "(", "(", "length", "=", "this", ".", "currentPosition", "-", "this", ".", "startPosition", ")", "==", "1", ")", "{", "return", "TokenNameIdentifier", ";", "}", "data", "=", "this", ".", "source", ";", "index", "=", "this", ".", "startPosition", ";", "}", "else", "{", "if", "(", "(", "length", "=", "this", ".", "withoutUnicodePtr", ")", "==", "1", ")", "return", "TokenNameIdentifier", ";", "data", "=", "this", ".", "withoutUnicodeBuffer", ";", "index", "=", "1", ";", "}", "return", "internalScanIdentifierOrKeyword", "(", "index", ",", "length", ",", "data", ")", ";", "}", "private", "int", "internalScanIdentifierOrKeyword", "(", "int", "index", ",", "int", "length", ",", "char", "[", "]", "data", ")", "{", "switch", "(", "data", "[", "index", "]", ")", "{", "case", "'a'", ":", "switch", "(", "length", ")", "{", "case", "8", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'b'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'s'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'r'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'a'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'c'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", ")", "{", "return", "TokenNameabstract", ";", "}", "else", "{", "return", "TokenNameIdentifier", ";", "}", "case", "6", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'s'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'s'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'r'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", ")", "{", "if", "(", "this", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_4", ")", "{", "this", ".", "containsAssertKeyword", "=", "true", ";", "return", "TokenNameassert", ";", "}", "else", "{", "this", ".", "useAssertAsAnIndentifier", "=", "true", ";", "return", "TokenNameIdentifier", ";", "}", "}", "else", "{", "return", "TokenNameIdentifier", ";", "}", "default", ":", "return", "TokenNameIdentifier", ";", "}", "case", "'b'", ":", "switch", "(", "length", ")", "{", "case", "4", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'y'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", ")", "return", "TokenNamebyte", ";", "else", "return", "TokenNameIdentifier", ";", "case", "5", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'r'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'a'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'k'", ")", ")", "return", "TokenNamebreak", ";", "else", "return", "TokenNameIdentifier", ";", "case", "7", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'o'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'o'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'l'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'a'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'n'", ")", ")", "return", "TokenNameboolean", ";", "else", "return", "TokenNameIdentifier", ";", "default", ":", "return", "TokenNameIdentifier", ";", "}", "case", "'c'", ":", "switch", "(", "length", ")", "{", "case", "4", ":", "if", "(", "data", "[", "++", "index", "]", "==", "'a'", ")", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'s'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", ")", "return", "TokenNamecase", ";", "else", "return", "TokenNameIdentifier", ";", "else", "if", "(", "(", "data", "[", "index", "]", "==", "'h'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'a'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'r'", ")", ")", "return", "TokenNamechar", ";", "else", "return", "TokenNameIdentifier", ";", "case", "5", ":", "if", "(", "data", "[", "++", "index", "]", "==", "'a'", ")", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'c'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'h'", ")", ")", "return", "TokenNamecatch", ";", "else", "return", "TokenNameIdentifier", ";", "else", "if", "(", "data", "[", "index", "]", "==", "'l'", ")", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'a'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'s'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'s'", ")", ")", "return", "TokenNameclass", ";", "else", "return", "TokenNameIdentifier", ";", "else", "if", "(", "(", "data", "[", "index", "]", "==", "'o'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'n'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'s'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", ")", "return", "TokenNameconst", ";", "else", "return", "TokenNameIdentifier", ";", "case", "8", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'o'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'n'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'i'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'n'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'u'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", ")", "return", "TokenNamecontinue", ";", "else", "return", "TokenNameIdentifier", ";", "default", ":", "return", "TokenNameIdentifier", ";", "}", "case", "'d'", ":", "switch", "(", "length", ")", "{", "case", "2", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'o'", ")", ")", "return", "TokenNamedo", ";", "else", "return", "TokenNameIdentifier", ";", "case", "6", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'o'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'u'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'b'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'l'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", ")", "return", "TokenNamedouble", ";", "else", "return", "TokenNameIdentifier", ";", "case", "7", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'f'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'a'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'u'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'l'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", ")", "return", "TokenNamedefault", ";", "else", "return", "TokenNameIdentifier", ";", "default", ":", "return", "TokenNameIdentifier", ";", "}", "case", "'e'", ":", "switch", "(", "length", ")", "{", "case", "4", ":", "if", "(", "data", "[", "++", "index", "]", "==", "'l'", ")", "{", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'s'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", ")", "{", "return", "TokenNameelse", ";", "}", "else", "{", "return", "TokenNameIdentifier", ";", "}", "}", "else", "if", "(", "(", "data", "[", "index", "]", "==", "'n'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'u'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'m'", ")", ")", "{", "if", "(", "this", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "return", "TokenNameenum", ";", "}", "else", "{", "this", ".", "useEnumAsAnIndentifier", "=", "true", ";", "return", "TokenNameIdentifier", ";", "}", "}", "return", "TokenNameIdentifier", ";", "case", "7", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'x'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'n'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'d'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'s'", ")", ")", "return", "TokenNameextends", ";", "else", "return", "TokenNameIdentifier", ";", "default", ":", "return", "TokenNameIdentifier", ";", "}", "case", "'f'", ":", "switch", "(", "length", ")", "{", "case", "3", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'o'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'r'", ")", ")", "return", "TokenNamefor", ";", "else", "return", "TokenNameIdentifier", ";", "case", "5", ":", "if", "(", "data", "[", "++", "index", "]", "==", "'i'", ")", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'n'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'a'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'l'", ")", ")", "{", "return", "TokenNamefinal", ";", "}", "else", "return", "TokenNameIdentifier", ";", "else", "if", "(", "data", "[", "index", "]", "==", "'l'", ")", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'o'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'a'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", ")", "return", "TokenNamefloat", ";", "else", "return", "TokenNameIdentifier", ";", "else", "if", "(", "(", "data", "[", "index", "]", "==", "'a'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'l'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'s'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", ")", "return", "TokenNamefalse", ";", "else", "return", "TokenNameIdentifier", ";", "case", "7", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'i'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'n'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'a'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'l'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'l'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'y'", ")", ")", "return", "TokenNamefinally", ";", "else", "return", "TokenNameIdentifier", ";", "default", ":", "return", "TokenNameIdentifier", ";", "}", "case", "'g'", ":", "if", "(", "length", "==", "4", ")", "{", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'o'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'o'", ")", ")", "{", "return", "TokenNamegoto", ";", "}", "}", "return", "TokenNameIdentifier", ";", "case", "'i'", ":", "switch", "(", "length", ")", "{", "case", "2", ":", "if", "(", "data", "[", "++", "index", "]", "==", "'f'", ")", "return", "TokenNameif", ";", "else", "return", "TokenNameIdentifier", ";", "case", "3", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'n'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", ")", "return", "TokenNameint", ";", "else", "return", "TokenNameIdentifier", ";", "case", "6", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'m'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'p'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'o'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'r'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", ")", "return", "TokenNameimport", ";", "else", "return", "TokenNameIdentifier", ";", "case", "9", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'n'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'r'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'f'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'a'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'c'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", ")", "return", "TokenNameinterface", ";", "else", "return", "TokenNameIdentifier", ";", "case", "10", ":", "if", "(", "data", "[", "++", "index", "]", "==", "'m'", ")", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'p'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'l'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'m'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'n'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'s'", ")", ")", "return", "TokenNameimplements", ";", "else", "return", "TokenNameIdentifier", ";", "else", "if", "(", "(", "data", "[", "index", "]", "==", "'n'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'s'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'a'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'n'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'c'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'o'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'f'", ")", ")", "return", "TokenNameinstanceof", ";", "else", "return", "TokenNameIdentifier", ";", "default", ":", "return", "TokenNameIdentifier", ";", "}", "case", "'l'", ":", "if", "(", "length", "==", "4", ")", "{", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'o'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'n'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'g'", ")", ")", "{", "return", "TokenNamelong", ";", "}", "}", "return", "TokenNameIdentifier", ";", "case", "'n'", ":", "switch", "(", "length", ")", "{", "case", "3", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'w'", ")", ")", "return", "TokenNamenew", ";", "else", "return", "TokenNameIdentifier", ";", "case", "4", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'u'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'l'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'l'", ")", ")", "return", "TokenNamenull", ";", "else", "return", "TokenNameIdentifier", ";", "case", "6", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'a'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'i'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'v'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", ")", "{", "return", "TokenNamenative", ";", "}", "else", "return", "TokenNameIdentifier", ";", "default", ":", "return", "TokenNameIdentifier", ";", "}", "case", "'p'", ":", "switch", "(", "length", ")", "{", "case", "6", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'u'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'b'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'l'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'i'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'c'", ")", ")", "{", "return", "TokenNamepublic", ";", "}", "else", "return", "TokenNameIdentifier", ";", "case", "7", ":", "if", "(", "data", "[", "++", "index", "]", "==", "'a'", ")", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'c'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'k'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'a'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'g'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", ")", "return", "TokenNamepackage", ";", "else", "return", "TokenNameIdentifier", ";", "else", "if", "(", "(", "data", "[", "index", "]", "==", "'r'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'i'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'v'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'a'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", ")", "{", "return", "TokenNameprivate", ";", "}", "else", "return", "TokenNameIdentifier", ";", "case", "9", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'r'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'o'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'c'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'d'", ")", ")", "{", "return", "TokenNameprotected", ";", "}", "else", "return", "TokenNameIdentifier", ";", "default", ":", "return", "TokenNameIdentifier", ";", "}", "case", "'r'", ":", "if", "(", "length", "==", "6", ")", "{", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'u'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'r'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'n'", ")", ")", "{", "return", "TokenNamereturn", ";", "}", "}", "return", "TokenNameIdentifier", ";", "case", "'s'", ":", "switch", "(", "length", ")", "{", "case", "5", ":", "if", "(", "data", "[", "++", "index", "]", "==", "'h'", ")", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'o'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'r'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", ")", "return", "TokenNameshort", ";", "else", "return", "TokenNameIdentifier", ";", "else", "if", "(", "(", "data", "[", "index", "]", "==", "'u'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'p'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'r'", ")", ")", "return", "TokenNamesuper", ";", "else", "return", "TokenNameIdentifier", ";", "case", "6", ":", "if", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'a'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'i'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'c'", ")", ")", "{", "return", "TokenNamestatic", ";", "}", "else", "return", "TokenNameIdentifier", ";", "else", "if", "(", "(", "data", "[", "index", "]", "==", "'w'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'i'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'c'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'h'", ")", ")", "return", "TokenNameswitch", ";", "else", "return", "TokenNameIdentifier", ";", "case", "8", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'r'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'i'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'c'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'f'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'p'", ")", ")", "return", "TokenNamestrictfp", ";", "else", "return", "TokenNameIdentifier", ";", "case", "12", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'y'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'n'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'c'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'h'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'r'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'o'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'n'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'i'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'z'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'d'", ")", ")", "{", "return", "TokenNamesynchronized", ";", "}", "else", "return", "TokenNameIdentifier", ";", "default", ":", "return", "TokenNameIdentifier", ";", "}", "case", "'t'", ":", "switch", "(", "length", ")", "{", "case", "3", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'r'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'y'", ")", ")", "return", "TokenNametry", ";", "else", "return", "TokenNameIdentifier", ";", "case", "4", ":", "if", "(", "data", "[", "++", "index", "]", "==", "'h'", ")", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'i'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'s'", ")", ")", "return", "TokenNamethis", ";", "else", "return", "TokenNameIdentifier", ";", "else", "if", "(", "(", "data", "[", "index", "]", "==", "'r'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'u'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", ")", "return", "TokenNametrue", ";", "else", "return", "TokenNameIdentifier", ";", "case", "5", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'h'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'r'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'o'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'w'", ")", ")", "return", "TokenNamethrow", ";", "else", "return", "TokenNameIdentifier", ";", "case", "6", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'h'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'r'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'o'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'w'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'s'", ")", ")", "return", "TokenNamethrows", ";", "else", "return", "TokenNameIdentifier", ";", "case", "9", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'r'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'a'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'n'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'s'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'i'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'n'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", ")", "{", "return", "TokenNametransient", ";", "}", "else", "return", "TokenNameIdentifier", ";", "default", ":", "return", "TokenNameIdentifier", ";", "}", "case", "'v'", ":", "switch", "(", "length", ")", "{", "case", "4", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'o'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'i'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'d'", ")", ")", "return", "TokenNamevoid", ";", "else", "return", "TokenNameIdentifier", ";", "case", "8", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'o'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'l'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'a'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'t'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'i'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'l'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", ")", "{", "return", "TokenNamevolatile", ";", "}", "else", "return", "TokenNameIdentifier", ";", "default", ":", "return", "TokenNameIdentifier", ";", "}", "case", "'w'", ":", "switch", "(", "length", ")", "{", "case", "5", ":", "if", "(", "(", "data", "[", "++", "index", "]", "==", "'h'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'i'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'l'", ")", "&&", "(", "data", "[", "++", "index", "]", "==", "'e'", ")", ")", "return", "TokenNamewhile", ";", "else", "return", "TokenNameIdentifier", ";", "default", ":", "return", "TokenNameIdentifier", ";", "}", "default", ":", "return", "TokenNameIdentifier", ";", "}", "}", "public", "int", "scanNumber", "(", "boolean", "dotPrefix", ")", "throws", "InvalidInputException", "{", "boolean", "floating", "=", "dotPrefix", ";", "if", "(", "!", "dotPrefix", "&&", "(", "this", ".", "currentCharacter", "==", "'0'", ")", ")", "{", "if", "(", "getNextChar", "(", "'x'", ",", "'X'", ")", ">=", "0", ")", "{", "int", "start", "=", "this", ".", "currentPosition", ";", "consumeDigits", "(", "16", ",", "true", ")", ";", "int", "end", "=", "this", ".", "currentPosition", ";", "if", "(", "getNextChar", "(", "'l'", ",", "'L'", ")", ">=", "0", ")", "{", "if", "(", "end", "==", "start", ")", "{", "throw", "new", "InvalidInputException", "(", "INVALID_HEXA", ")", ";", "}", "return", "TokenNameLongLiteral", ";", "}", "else", "if", "(", "getNextChar", "(", "'.'", ")", ")", "{", "boolean", "hasNoDigitsBeforeDot", "=", "end", "==", "start", ";", "start", "=", "this", ".", "currentPosition", ";", "consumeDigits", "(", "16", ",", "true", ")", ";", "end", "=", "this", ".", "currentPosition", ";", "if", "(", "hasNoDigitsBeforeDot", "&&", "end", "==", "start", ")", "{", "if", "(", "this", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "throw", "new", "InvalidInputException", "(", "ILLEGAL_HEXA_LITERAL", ")", ";", "}", "throw", "new", "InvalidInputException", "(", "INVALID_HEXA", ")", ";", "}", "if", "(", "getNextChar", "(", "'p'", ",", "'P'", ")", ">=", "0", ")", "{", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "}", "else", "{", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "if", "(", "(", "this", ".", "currentCharacter", "==", "'-'", ")", "||", "(", "this", ".", "currentCharacter", "==", "'+'", ")", ")", "{", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "}", "else", "{", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "}", "if", "(", "!", "ScannerHelper", ".", "isDigit", "(", "this", ".", "currentCharacter", ")", ")", "{", "if", "(", "this", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "throw", "new", "InvalidInputException", "(", "ILLEGAL_HEXA_LITERAL", ")", ";", "}", "if", "(", "this", ".", "currentCharacter", "==", "'_'", ")", "{", "consumeDigits", "(", "10", ")", ";", "throw", "new", "InvalidInputException", "(", "INVALID_UNDERSCORE", ")", ";", "}", "throw", "new", "InvalidInputException", "(", "INVALID_HEXA", ")", ";", "}", "consumeDigits", "(", "10", ")", ";", "if", "(", "getNextChar", "(", "'f'", ",", "'F'", ")", ">=", "0", ")", "{", "if", "(", "this", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "throw", "new", "InvalidInputException", "(", "ILLEGAL_HEXA_LITERAL", ")", ";", "}", "return", "TokenNameFloatingPointLiteral", ";", "}", "if", "(", "getNextChar", "(", "'d'", ",", "'D'", ")", ">=", "0", ")", "{", "if", "(", "this", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "throw", "new", "InvalidInputException", "(", "ILLEGAL_HEXA_LITERAL", ")", ";", "}", "return", "TokenNameDoubleLiteral", ";", "}", "if", "(", "getNextChar", "(", "'l'", ",", "'L'", ")", ">=", "0", ")", "{", "if", "(", "this", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "throw", "new", "InvalidInputException", "(", "ILLEGAL_HEXA_LITERAL", ")", ";", "}", "throw", "new", "InvalidInputException", "(", "INVALID_HEXA", ")", ";", "}", "if", "(", "this", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "throw", "new", "InvalidInputException", "(", "ILLEGAL_HEXA_LITERAL", ")", ";", "}", "return", "TokenNameDoubleLiteral", ";", "}", "else", "{", "if", "(", "this", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "throw", "new", "InvalidInputException", "(", "ILLEGAL_HEXA_LITERAL", ")", ";", "}", "throw", "new", "InvalidInputException", "(", "INVALID_HEXA", ")", ";", "}", "}", "else", "if", "(", "getNextChar", "(", "'p'", ",", "'P'", ")", ">=", "0", ")", "{", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "}", "else", "{", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "if", "(", "(", "this", ".", "currentCharacter", "==", "'-'", ")", "||", "(", "this", ".", "currentCharacter", "==", "'+'", ")", ")", "{", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "}", "else", "{", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "}", "if", "(", "!", "ScannerHelper", ".", "isDigit", "(", "this", ".", "currentCharacter", ")", ")", "{", "if", "(", "this", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "throw", "new", "InvalidInputException", "(", "ILLEGAL_HEXA_LITERAL", ")", ";", "}", "if", "(", "this", ".", "currentCharacter", "==", "'_'", ")", "{", "consumeDigits", "(", "10", ")", ";", "throw", "new", "InvalidInputException", "(", "INVALID_UNDERSCORE", ")", ";", "}", "throw", "new", "InvalidInputException", "(", "INVALID_FLOAT", ")", ";", "}", "consumeDigits", "(", "10", ")", ";", "if", "(", "getNextChar", "(", "'f'", ",", "'F'", ")", ">=", "0", ")", "{", "if", "(", "this", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "throw", "new", "InvalidInputException", "(", "ILLEGAL_HEXA_LITERAL", ")", ";", "}", "return", "TokenNameFloatingPointLiteral", ";", "}", "if", "(", "getNextChar", "(", "'d'", ",", "'D'", ")", ">=", "0", ")", "{", "if", "(", "this", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "throw", "new", "InvalidInputException", "(", "ILLEGAL_HEXA_LITERAL", ")", ";", "}", "return", "TokenNameDoubleLiteral", ";", "}", "if", "(", "getNextChar", "(", "'l'", ",", "'L'", ")", ">=", "0", ")", "{", "if", "(", "this", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "throw", "new", "InvalidInputException", "(", "ILLEGAL_HEXA_LITERAL", ")", ";", "}", "throw", "new", "InvalidInputException", "(", "INVALID_HEXA", ")", ";", "}", "if", "(", "this", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "throw", "new", "InvalidInputException", "(", "ILLEGAL_HEXA_LITERAL", ")", ";", "}", "return", "TokenNameDoubleLiteral", ";", "}", "else", "{", "if", "(", "end", "==", "start", ")", "throw", "new", "InvalidInputException", "(", "INVALID_HEXA", ")", ";", "return", "TokenNameIntegerLiteral", ";", "}", "}", "else", "if", "(", "getNextChar", "(", "'b'", ",", "'B'", ")", ">=", "0", ")", "{", "int", "start", "=", "this", ".", "currentPosition", ";", "consumeDigits", "(", "2", ",", "true", ")", ";", "int", "end", "=", "this", ".", "currentPosition", ";", "if", "(", "end", "==", "start", ")", "{", "if", "(", "this", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_7", ")", "{", "throw", "new", "InvalidInputException", "(", "BINARY_LITERAL_NOT_BELOW_17", ")", ";", "}", "throw", "new", "InvalidInputException", "(", "INVALID_BINARY", ")", ";", "}", "if", "(", "getNextChar", "(", "'l'", ",", "'L'", ")", ">=", "0", ")", "{", "if", "(", "this", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_7", ")", "{", "throw", "new", "InvalidInputException", "(", "BINARY_LITERAL_NOT_BELOW_17", ")", ";", "}", "return", "TokenNameLongLiteral", ";", "}", "if", "(", "this", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_7", ")", "{", "throw", "new", "InvalidInputException", "(", "BINARY_LITERAL_NOT_BELOW_17", ")", ";", "}", "return", "TokenNameIntegerLiteral", ";", "}", "if", "(", "getNextCharAsDigit", "(", ")", ")", "{", "consumeDigits", "(", "10", ")", ";", "if", "(", "getNextChar", "(", "'l'", ",", "'L'", ")", ">=", "0", ")", "{", "return", "TokenNameLongLiteral", ";", "}", "if", "(", "getNextChar", "(", "'f'", ",", "'F'", ")", ">=", "0", ")", "{", "return", "TokenNameFloatingPointLiteral", ";", "}", "if", "(", "getNextChar", "(", "'d'", ",", "'D'", ")", ">=", "0", ")", "{", "return", "TokenNameDoubleLiteral", ";", "}", "else", "{", "boolean", "isInteger", "=", "true", ";", "if", "(", "getNextChar", "(", "'.'", ")", ")", "{", "isInteger", "=", "false", ";", "consumeDigits", "(", "10", ")", ";", "}", "if", "(", "getNextChar", "(", "'e'", ",", "'E'", ")", ">=", "0", ")", "{", "isInteger", "=", "false", ";", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "}", "else", "{", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "if", "(", "(", "this", ".", "currentCharacter", "==", "'-'", ")", "||", "(", "this", ".", "currentCharacter", "==", "'+'", ")", ")", "{", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "}", "else", "{", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "}", "if", "(", "!", "ScannerHelper", ".", "isDigit", "(", "this", ".", "currentCharacter", ")", ")", "{", "if", "(", "this", ".", "currentCharacter", "==", "'_'", ")", "{", "consumeDigits", "(", "10", ")", ";", "throw", "new", "InvalidInputException", "(", "INVALID_UNDERSCORE", ")", ";", "}", "throw", "new", "InvalidInputException", "(", "INVALID_FLOAT", ")", ";", "}", "consumeDigits", "(", "10", ")", ";", "}", "if", "(", "getNextChar", "(", "'f'", ",", "'F'", ")", ">=", "0", ")", "return", "TokenNameFloatingPointLiteral", ";", "if", "(", "getNextChar", "(", "'d'", ",", "'D'", ")", ">=", "0", "||", "!", "isInteger", ")", "return", "TokenNameDoubleLiteral", ";", "return", "TokenNameIntegerLiteral", ";", "}", "}", "else", "{", "}", "}", "consumeDigits", "(", "10", ")", ";", "if", "(", "(", "!", "dotPrefix", ")", "&&", "(", "getNextChar", "(", "'l'", ",", "'L'", ")", ">=", "0", ")", ")", "return", "TokenNameLongLiteral", ";", "if", "(", "(", "!", "dotPrefix", ")", "&&", "(", "getNextChar", "(", "'.'", ")", ")", ")", "{", "consumeDigits", "(", "10", ",", "true", ")", ";", "floating", "=", "true", ";", "}", "if", "(", "getNextChar", "(", "'e'", ",", "'E'", ")", ">=", "0", ")", "{", "floating", "=", "true", ";", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "}", "else", "{", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "if", "(", "(", "this", ".", "currentCharacter", "==", "'-'", ")", "||", "(", "this", ".", "currentCharacter", "==", "'+'", ")", ")", "{", "this", ".", "unicodeAsBackSlash", "=", "false", ";", "if", "(", "(", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", "==", "'\\\\'", ")", "&&", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "]", "==", "'u'", ")", ")", "{", "getNextUnicodeChar", "(", ")", ";", "}", "else", "{", "if", "(", "this", ".", "withoutUnicodePtr", "!=", "0", ")", "{", "unicodeStore", "(", ")", ";", "}", "}", "}", "if", "(", "!", "ScannerHelper", ".", "isDigit", "(", "this", ".", "currentCharacter", ")", ")", "{", "if", "(", "this", ".", "currentCharacter", "==", "'_'", ")", "{", "consumeDigits", "(", "10", ")", ";", "throw", "new", "InvalidInputException", "(", "INVALID_UNDERSCORE", ")", ";", "}", "throw", "new", "InvalidInputException", "(", "INVALID_FLOAT", ")", ";", "}", "consumeDigits", "(", "10", ")", ";", "}", "if", "(", "getNextChar", "(", "'d'", ",", "'D'", ")", ">=", "0", ")", "return", "TokenNameDoubleLiteral", ";", "if", "(", "getNextChar", "(", "'f'", ",", "'F'", ")", ">=", "0", ")", "return", "TokenNameFloatingPointLiteral", ";", "return", "floating", "?", "TokenNameDoubleLiteral", ":", "TokenNameIntegerLiteral", ";", "}", "public", "final", "int", "getLineNumber", "(", "int", "position", ")", "{", "return", "Util", ".", "getLineNumber", "(", "position", ",", "this", ".", "lineEnds", ",", "0", ",", "this", ".", "linePtr", ")", ";", "}", "public", "final", "void", "setSource", "(", "char", "[", "]", "sourceString", ")", "{", "int", "sourceLength", ";", "if", "(", "sourceString", "==", "null", ")", "{", "this", ".", "source", "=", "CharOperation", ".", "NO_CHAR", ";", "sourceLength", "=", "0", ";", "}", "else", "{", "this", ".", "source", "=", "sourceString", ";", "sourceLength", "=", "sourceString", ".", "length", ";", "}", "this", ".", "startPosition", "=", "-", "1", ";", "this", ".", "eofPosition", "=", "sourceLength", ";", "this", ".", "initialPosition", "=", "this", ".", "currentPosition", "=", "0", ";", "this", ".", "containsAssertKeyword", "=", "false", ";", "this", ".", "linePtr", "=", "-", "1", ";", "}", "public", "final", "void", "setSource", "(", "char", "[", "]", "contents", ",", "CompilationResult", "compilationResult", ")", "{", "if", "(", "contents", "==", "null", ")", "{", "char", "[", "]", "cuContents", "=", "compilationResult", ".", "compilationUnit", ".", "getContents", "(", ")", ";", "setSource", "(", "cuContents", ")", ";", "}", "else", "{", "setSource", "(", "contents", ")", ";", "}", "int", "[", "]", "lineSeparatorPositions", "=", "compilationResult", ".", "lineSeparatorPositions", ";", "if", "(", "lineSeparatorPositions", "!=", "null", ")", "{", "this", ".", "lineEnds", "=", "lineSeparatorPositions", ";", "this", ".", "linePtr", "=", "lineSeparatorPositions", ".", "length", "-", "1", ";", "}", "}", "public", "final", "void", "setSource", "(", "CompilationResult", "compilationResult", ")", "{", "setSource", "(", "null", ",", "compilationResult", ")", ";", "}", "public", "String", "toString", "(", ")", "{", "if", "(", "this", ".", "startPosition", "==", "this", ".", "eofPosition", ")", "return", "\"EOFnn\"", "+", "new", "String", "(", "this", ".", "source", ")", ";", "if", "(", "this", ".", "currentPosition", ">", "this", ".", "eofPosition", ")", "return", "\"\"", "+", "new", "String", "(", "this", ".", "source", ")", ";", "if", "(", "this", ".", "currentPosition", "<=", "0", ")", "return", "\"\"", "+", "new", "String", "(", "this", ".", "source", ")", ";", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "if", "(", "this", ".", "startPosition", "<", "1000", ")", "{", "buffer", ".", "append", "(", "this", ".", "source", ",", "0", ",", "this", ".", "startPosition", ")", ";", "}", "else", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "int", "line", "=", "Util", ".", "getLineNumber", "(", "this", ".", "startPosition", "-", "1000", ",", "this", ".", "lineEnds", ",", "0", ",", "this", ".", "linePtr", ")", ";", "int", "lineStart", "=", "getLineStart", "(", "line", ")", ";", "buffer", ".", "append", "(", "this", ".", "source", ",", "lineStart", ",", "this", ".", "startPosition", "-", "lineStart", ")", ";", "}", "buffer", ".", "append", "(", "\"\"", ")", ";", "int", "middleLength", "=", "(", "this", ".", "currentPosition", "-", "1", ")", "-", "this", ".", "startPosition", "+", "1", ";", "if", "(", "middleLength", ">", "-", "1", ")", "{", "buffer", ".", "append", "(", "this", ".", "source", ",", "this", ".", "startPosition", ",", "middleLength", ")", ";", "}", "buffer", ".", "append", "(", "\"\"", ")", ";", "buffer", ".", "append", "(", "this", ".", "source", ",", "(", "this", ".", "currentPosition", "-", "1", ")", "+", "1", ",", "this", ".", "eofPosition", "-", "(", "this", ".", "currentPosition", "-", "1", ")", "-", "1", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}", "public", "String", "toStringAction", "(", "int", "act", ")", "{", "switch", "(", "act", ")", "{", "case", "TokenNameIdentifier", ":", "return", "\"Identifier(\"", "+", "new", "String", "(", "getCurrentTokenSource", "(", ")", ")", "+", "\")\"", ";", "case", "TokenNameabstract", ":", "return", "\"abstract\"", ";", "case", "TokenNameboolean", ":", "return", "\"boolean\"", ";", "case", "TokenNamebreak", ":", "return", "\"break\"", ";", "case", "TokenNamebyte", ":", "return", "\"byte\"", ";", "case", "TokenNamecase", ":", "return", "\"case\"", ";", "case", "TokenNamecatch", ":", "return", "\"catch\"", ";", "case", "TokenNamechar", ":", "return", "\"char\"", ";", "case", "TokenNameclass", ":", "return", "\"class\"", ";", "case", "TokenNamecontinue", ":", "return", "\"continue\"", ";", "case", "TokenNamedefault", ":", "return", "\"default\"", ";", "case", "TokenNamedo", ":", "return", "\"do\"", ";", "case", "TokenNamedouble", ":", "return", "\"double\"", ";", "case", "TokenNameelse", ":", "return", "\"else\"", ";", "case", "TokenNameextends", ":", "return", "\"extends\"", ";", "case", "TokenNamefalse", ":", "return", "\"false\"", ";", "case", "TokenNamefinal", ":", "return", "\"final\"", ";", "case", "TokenNamefinally", ":", "return", "\"finally\"", ";", "case", "TokenNamefloat", ":", "return", "\"float\"", ";", "case", "TokenNamefor", ":", "return", "\"for\"", ";", "case", "TokenNameif", ":", "return", "\"if\"", ";", "case", "TokenNameimplements", ":", "return", "\"implements\"", ";", "case", "TokenNameimport", ":", "return", "\"import\"", ";", "case", "TokenNameinstanceof", ":", "return", "\"instanceof\"", ";", "case", "TokenNameint", ":", "return", "\"int\"", ";", "case", "TokenNameinterface", ":", "return", "\"interface\"", ";", "case", "TokenNamelong", ":", "return", "\"long\"", ";", "case", "TokenNamenative", ":", "return", "\"native\"", ";", "case", "TokenNamenew", ":", "return", "\"new\"", ";", "case", "TokenNamenull", ":", "return", "\"null\"", ";", "case", "TokenNamepackage", ":", "return", "\"package\"", ";", "case", "TokenNameprivate", ":", "return", "\"private\"", ";", "case", "TokenNameprotected", ":", "return", "\"protected\"", ";", "case", "TokenNamepublic", ":", "return", "\"public\"", ";", "case", "TokenNamereturn", ":", "return", "\"return\"", ";", "case", "TokenNameshort", ":", "return", "\"short\"", ";", "case", "TokenNamestatic", ":", "return", "\"static\"", ";", "case", "TokenNamesuper", ":", "return", "\"super\"", ";", "case", "TokenNameswitch", ":", "return", "\"switch\"", ";", "case", "TokenNamesynchronized", ":", "return", "\"synchronized\"", ";", "case", "TokenNamethis", ":", "return", "\"this\"", ";", "case", "TokenNamethrow", ":", "return", "\"throw\"", ";", "case", "TokenNamethrows", ":", "return", "\"throws\"", ";", "case", "TokenNametransient", ":", "return", "\"transient\"", ";", "case", "TokenNametrue", ":", "return", "\"true\"", ";", "case", "TokenNametry", ":", "return", "\"try\"", ";", "case", "TokenNamevoid", ":", "return", "\"void\"", ";", "case", "TokenNamevolatile", ":", "return", "\"volatile\"", ";", "case", "TokenNamewhile", ":", "return", "\"while\"", ";", "case", "TokenNameIntegerLiteral", ":", "return", "\"Integer(\"", "+", "new", "String", "(", "getCurrentTokenSource", "(", ")", ")", "+", "\")\"", ";", "case", "TokenNameLongLiteral", ":", "return", "\"Long(\"", "+", "new", "String", "(", "getCurrentTokenSource", "(", ")", ")", "+", "\")\"", ";", "case", "TokenNameFloatingPointLiteral", ":", "return", "\"Float(\"", "+", "new", "String", "(", "getCurrentTokenSource", "(", ")", ")", "+", "\")\"", ";", "case", "TokenNameDoubleLiteral", ":", "return", "\"Double(\"", "+", "new", "String", "(", "getCurrentTokenSource", "(", ")", ")", "+", "\")\"", ";", "case", "TokenNameCharacterLiteral", ":", "return", "\"Char(\"", "+", "new", "String", "(", "getCurrentTokenSource", "(", ")", ")", "+", "\")\"", ";", "case", "TokenNameStringLiteral", ":", "return", "\"String(\"", "+", "new", "String", "(", "getCurrentTokenSource", "(", ")", ")", "+", "\")\"", ";", "case", "TokenNamePLUS_PLUS", ":", "return", "\"++\"", ";", "case", "TokenNameMINUS_MINUS", ":", "return", "\"--\"", ";", "case", "TokenNameEQUAL_EQUAL", ":", "return", "\"==\"", ";", "case", "TokenNameLESS_EQUAL", ":", "return", "\"<=\"", ";", "case", "TokenNameGREATER_EQUAL", ":", "return", "\">=\"", ";", "case", "TokenNameNOT_EQUAL", ":", "return", "\"!=\"", ";", "case", "TokenNameLEFT_SHIFT", ":", "return", "\"<<\"", ";", "case", "TokenNameRIGHT_SHIFT", ":", "return", "\">>\"", ";", "case", "TokenNameUNSIGNED_RIGHT_SHIFT", ":", "return", "\">>>\"", ";", "case", "TokenNamePLUS_EQUAL", ":", "return", "\"+=\"", ";", "case", "TokenNameMINUS_EQUAL", ":", "return", "\"-=\"", ";", "case", "TokenNameMULTIPLY_EQUAL", ":", "return", "\"*=\"", ";", "case", "TokenNameDIVIDE_EQUAL", ":", "return", "\"/=\"", ";", "case", "TokenNameAND_EQUAL", ":", "return", "\"&=\"", ";", "case", "TokenNameOR_EQUAL", ":", "return", "\"|=\"", ";", "case", "TokenNameXOR_EQUAL", ":", "return", "\"^=\"", ";", "case", "TokenNameREMAINDER_EQUAL", ":", "return", "\"%=\"", ";", "case", "TokenNameLEFT_SHIFT_EQUAL", ":", "return", "\"<<=\"", ";", "case", "TokenNameRIGHT_SHIFT_EQUAL", ":", "return", "\">>=\"", ";", "case", "TokenNameUNSIGNED_RIGHT_SHIFT_EQUAL", ":", "return", "\">>>=\"", ";", "case", "TokenNameOR_OR", ":", "return", "\"||\"", ";", "case", "TokenNameAND_AND", ":", "return", "\"&&\"", ";", "case", "TokenNamePLUS", ":", "return", "\"+\"", ";", "case", "TokenNameMINUS", ":", "return", "\"-\"", ";", "case", "TokenNameNOT", ":", "return", "\"!\"", ";", "case", "TokenNameREMAINDER", ":", "return", "\"%\"", ";", "case", "TokenNameXOR", ":", "return", "\"^\"", ";", "case", "TokenNameAND", ":", "return", "\"&\"", ";", "case", "TokenNameMULTIPLY", ":", "return", "\"*\"", ";", "case", "TokenNameOR", ":", "return", "\"|\"", ";", "case", "TokenNameTWIDDLE", ":", "return", "\"~\"", ";", "case", "TokenNameDIVIDE", ":", "return", "\"/\"", ";", "case", "TokenNameGREATER", ":", "return", "\">\"", ";", "case", "TokenNameLESS", ":", "return", "\"<\"", ";", "case", "TokenNameLPAREN", ":", "return", "\"(\"", ";", "case", "TokenNameRPAREN", ":", "return", "\")\"", ";", "case", "TokenNameLBRACE", ":", "return", "\"{\"", ";", "case", "TokenNameRBRACE", ":", "return", "\"}\"", ";", "case", "TokenNameLBRACKET", ":", "return", "\"[\"", ";", "case", "TokenNameRBRACKET", ":", "return", "\"]\"", ";", "case", "TokenNameSEMICOLON", ":", "return", "\";\"", ";", "case", "TokenNameQUESTION", ":", "return", "\"?\"", ";", "case", "TokenNameCOLON", ":", "return", "\":\"", ";", "case", "TokenNameCOMMA", ":", "return", "\",\"", ";", "case", "TokenNameDOT", ":", "return", "\".\"", ";", "case", "TokenNameEQUAL", ":", "return", "\"=\"", ";", "case", "TokenNameEOF", ":", "return", "\"EOF\"", ";", "case", "TokenNameWHITESPACE", ":", "return", "\"white_space(\"", "+", "new", "String", "(", "getCurrentTokenSource", "(", ")", ")", "+", "\")\"", ";", "default", ":", "return", "\"not-a-token\"", ";", "}", "}", "public", "void", "unicodeInitializeBuffer", "(", "int", "length", ")", "{", "this", ".", "withoutUnicodePtr", "=", "length", ";", "if", "(", "this", ".", "withoutUnicodeBuffer", "==", "null", ")", "this", ".", "withoutUnicodeBuffer", "=", "new", "char", "[", "length", "+", "(", "1", "+", "10", ")", "]", ";", "int", "bLength", "=", "this", ".", "withoutUnicodeBuffer", ".", "length", ";", "if", "(", "1", "+", "length", ">=", "bLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "withoutUnicodeBuffer", ",", "0", ",", "this", ".", "withoutUnicodeBuffer", "=", "new", "char", "[", "length", "+", "(", "1", "+", "10", ")", "]", ",", "0", ",", "bLength", ")", ";", "}", "System", ".", "arraycopy", "(", "this", ".", "source", ",", "this", ".", "startPosition", ",", "this", ".", "withoutUnicodeBuffer", ",", "1", ",", "length", ")", ";", "}", "public", "void", "unicodeStore", "(", ")", "{", "int", "pos", "=", "++", "this", ".", "withoutUnicodePtr", ";", "if", "(", "this", ".", "withoutUnicodeBuffer", "==", "null", ")", "this", ".", "withoutUnicodeBuffer", "=", "new", "char", "[", "10", "]", ";", "int", "length", "=", "this", ".", "withoutUnicodeBuffer", ".", "length", ";", "if", "(", "pos", "==", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "withoutUnicodeBuffer", ",", "0", ",", "this", ".", "withoutUnicodeBuffer", "=", "new", "char", "[", "length", "*", "2", "]", ",", "0", ",", "length", ")", ";", "}", "this", ".", "withoutUnicodeBuffer", "[", "pos", "]", "=", "this", ".", "currentCharacter", ";", "}", "public", "void", "unicodeStore", "(", "char", "character", ")", "{", "int", "pos", "=", "++", "this", ".", "withoutUnicodePtr", ";", "if", "(", "this", ".", "withoutUnicodeBuffer", "==", "null", ")", "this", ".", "withoutUnicodeBuffer", "=", "new", "char", "[", "10", "]", ";", "int", "length", "=", "this", ".", "withoutUnicodeBuffer", ".", "length", ";", "if", "(", "pos", "==", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "withoutUnicodeBuffer", ",", "0", ",", "this", ".", "withoutUnicodeBuffer", "=", "new", "char", "[", "length", "*", "2", "]", ",", "0", ",", "length", ")", ";", "}", "this", ".", "withoutUnicodeBuffer", "[", "pos", "]", "=", "character", ";", "}", "public", "static", "boolean", "isIdentifier", "(", "int", "token", ")", "{", "return", "token", "==", "TerminalTokens", ".", "TokenNameIdentifier", ";", "}", "public", "static", "boolean", "isLiteral", "(", "int", "token", ")", "{", "switch", "(", "token", ")", "{", "case", "TerminalTokens", ".", "TokenNameIntegerLiteral", ":", "case", "TerminalTokens", ".", "TokenNameLongLiteral", ":", "case", "TerminalTokens", ".", "TokenNameFloatingPointLiteral", ":", "case", "TerminalTokens", ".", "TokenNameDoubleLiteral", ":", "case", "TerminalTokens", ".", "TokenNameStringLiteral", ":", "case", "TerminalTokens", ".", "TokenNameCharacterLiteral", ":", "return", "true", ";", "default", ":", "return", "false", ";", "}", "}", "public", "static", "boolean", "isKeyword", "(", "int", "token", ")", "{", "switch", "(", "token", ")", "{", "case", "TerminalTokens", ".", "TokenNameabstract", ":", "case", "TerminalTokens", ".", "TokenNameassert", ":", "case", "TerminalTokens", ".", "TokenNamebyte", ":", "case", "TerminalTokens", ".", "TokenNamebreak", ":", "case", "TerminalTokens", ".", "TokenNameboolean", ":", "case", "TerminalTokens", ".", "TokenNamecase", ":", "case", "TerminalTokens", ".", "TokenNamechar", ":", "case", "TerminalTokens", ".", "TokenNamecatch", ":", "case", "TerminalTokens", ".", "TokenNameclass", ":", "case", "TerminalTokens", ".", "TokenNamecontinue", ":", "case", "TerminalTokens", ".", "TokenNamedo", ":", "case", "TerminalTokens", ".", "TokenNamedouble", ":", "case", "TerminalTokens", ".", "TokenNamedefault", ":", "case", "TerminalTokens", ".", "TokenNameelse", ":", "case", "TerminalTokens", ".", "TokenNameextends", ":", "case", "TerminalTokens", ".", "TokenNamefor", ":", "case", "TerminalTokens", ".", "TokenNamefinal", ":", "case", "TerminalTokens", ".", "TokenNamefloat", ":", "case", "TerminalTokens", ".", "TokenNamefalse", ":", "case", "TerminalTokens", ".", "TokenNamefinally", ":", "case", "TerminalTokens", ".", "TokenNameif", ":", "case", "TerminalTokens", ".", "TokenNameint", ":", "case", "TerminalTokens", ".", "TokenNameimport", ":", "case", "TerminalTokens", ".", "TokenNameinterface", ":", "case", "TerminalTokens", ".", "TokenNameimplements", ":", "case", "TerminalTokens", ".", "TokenNameinstanceof", ":", "case", "TerminalTokens", ".", "TokenNamelong", ":", "case", "TerminalTokens", ".", "TokenNamenew", ":", "case", "TerminalTokens", ".", "TokenNamenull", ":", "case", "TerminalTokens", ".", "TokenNamenative", ":", "case", "TerminalTokens", ".", "TokenNamepublic", ":", "case", "TerminalTokens", ".", "TokenNamepackage", ":", "case", "TerminalTokens", ".", "TokenNameprivate", ":", "case", "TerminalTokens", ".", "TokenNameprotected", ":", "case", "TerminalTokens", ".", "TokenNamereturn", ":", "case", "TerminalTokens", ".", "TokenNameshort", ":", "case", "TerminalTokens", ".", "TokenNamesuper", ":", "case", "TerminalTokens", ".", "TokenNamestatic", ":", "case", "TerminalTokens", ".", "TokenNameswitch", ":", "case", "TerminalTokens", ".", "TokenNamestrictfp", ":", "case", "TerminalTokens", ".", "TokenNamesynchronized", ":", "case", "TerminalTokens", ".", "TokenNametry", ":", "case", "TerminalTokens", ".", "TokenNamethis", ":", "case", "TerminalTokens", ".", "TokenNametrue", ":", "case", "TerminalTokens", ".", "TokenNamethrow", ":", "case", "TerminalTokens", ".", "TokenNamethrows", ":", "case", "TerminalTokens", ".", "TokenNametransient", ":", "case", "TerminalTokens", ".", "TokenNamevoid", ":", "case", "TerminalTokens", ".", "TokenNamevolatile", ":", "case", "TerminalTokens", ".", "TokenNamewhile", ":", "return", "true", ";", "default", ":", "return", "false", ";", "}", "}", "}", "</s>" ]
3,338
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "import", "java", ".", "util", ".", "ArrayList", ";", "import", "java", ".", "util", ".", "List", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "InvalidInputException", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "abstract", "class", "AbstractCommentParser", "implements", "JavadocTagConstants", "{", "public", "final", "static", "int", "COMPIL_PARSER", "=", "0x0001", ";", "public", "final", "static", "int", "DOM_PARSER", "=", "0x0002", ";", "public", "final", "static", "int", "SELECTION_PARSER", "=", "0x0004", ";", "public", "final", "static", "int", "COMPLETION_PARSER", "=", "0x0008", ";", "public", "final", "static", "int", "SOURCE_PARSER", "=", "0x0010", ";", "public", "final", "static", "int", "FORMATTER_COMMENT_PARSER", "=", "0x0020", ";", "protected", "final", "static", "int", "PARSER_KIND", "=", "0x00FF", ";", "protected", "final", "static", "int", "TEXT_PARSE", "=", "0x0100", ";", "protected", "final", "static", "int", "TEXT_VERIF", "=", "0x0200", ";", "protected", "final", "static", "int", "QUALIFIED_NAME_RECOVERY", "=", "1", ";", "protected", "final", "static", "int", "ARGUMENT_RECOVERY", "=", "2", ";", "protected", "final", "static", "int", "ARGUMENT_TYPE_RECOVERY", "=", "3", ";", "protected", "final", "static", "int", "EMPTY_ARGUMENT_RECOVERY", "=", "4", ";", "public", "Scanner", "scanner", ";", "public", "char", "[", "]", "source", ";", "protected", "Parser", "sourceParser", ";", "private", "int", "currentTokenType", "=", "-", "1", ";", "public", "boolean", "checkDocComment", "=", "false", ";", "public", "boolean", "setJavadocPositions", "=", "false", ";", "public", "boolean", "reportProblems", ";", "protected", "long", "complianceLevel", ";", "protected", "long", "sourceLevel", ";", "protected", "long", "[", "]", "inheritedPositions", ";", "protected", "int", "inheritedPositionsPtr", ";", "private", "final", "static", "int", "INHERITED_POSITIONS_ARRAY_INCREMENT", "=", "4", ";", "protected", "boolean", "deprecated", ";", "protected", "Object", "returnStatement", ";", "protected", "int", "javadocStart", ",", "javadocEnd", ";", "protected", "int", "javadocTextStart", ",", "javadocTextEnd", "=", "-", "1", ";", "protected", "int", "firstTagPosition", ";", "protected", "int", "index", ",", "lineEnd", ";", "protected", "int", "tokenPreviousPosition", ",", "lastIdentifierEndPosition", ",", "starPosition", ";", "protected", "int", "textStart", ",", "memberStart", ";", "protected", "int", "tagSourceStart", ",", "tagSourceEnd", ";", "protected", "int", "inlineTagStart", ";", "protected", "int", "[", "]", "lineEnds", ";", "protected", "boolean", "lineStarted", "=", "false", ";", "protected", "boolean", "inlineTagStarted", "=", "false", ";", "protected", "boolean", "abort", "=", "false", ";", "protected", "int", "kind", ";", "protected", "int", "tagValue", "=", "NO_TAG_VALUE", ";", "protected", "int", "lastBlockTagValue", "=", "NO_TAG_VALUE", ";", "private", "int", "linePtr", ",", "lastLinePtr", ";", "protected", "int", "identifierPtr", ";", "protected", "char", "[", "]", "[", "]", "identifierStack", ";", "protected", "int", "identifierLengthPtr", ";", "protected", "int", "[", "]", "identifierLengthStack", ";", "protected", "long", "[", "]", "identifierPositionStack", ";", "protected", "final", "static", "int", "AST_STACK_INCREMENT", "=", "10", ";", "protected", "int", "astPtr", ";", "protected", "Object", "[", "]", "astStack", ";", "protected", "int", "astLengthPtr", ";", "protected", "int", "[", "]", "astLengthStack", ";", "protected", "AbstractCommentParser", "(", "Parser", "sourceParser", ")", "{", "this", ".", "sourceParser", "=", "sourceParser", ";", "this", ".", "scanner", "=", "new", "Scanner", "(", "false", ",", "false", ",", "false", ",", "ClassFileConstants", ".", "JDK1_3", ",", "null", ",", "null", ",", "true", ")", ";", "this", ".", "identifierStack", "=", "new", "char", "[", "20", "]", "[", "]", ";", "this", ".", "identifierPositionStack", "=", "new", "long", "[", "20", "]", ";", "this", ".", "identifierLengthStack", "=", "new", "int", "[", "10", "]", ";", "this", ".", "astStack", "=", "new", "Object", "[", "30", "]", ";", "this", ".", "astLengthStack", "=", "new", "int", "[", "20", "]", ";", "this", ".", "reportProblems", "=", "sourceParser", "!=", "null", ";", "if", "(", "sourceParser", "!=", "null", ")", "{", "this", ".", "checkDocComment", "=", "this", ".", "sourceParser", ".", "options", ".", "docCommentSupport", ";", "this", ".", "sourceLevel", "=", "this", ".", "sourceParser", ".", "options", ".", "sourceLevel", ";", "this", ".", "scanner", ".", "sourceLevel", "=", "this", ".", "sourceLevel", ";", "this", ".", "complianceLevel", "=", "this", ".", "sourceParser", ".", "options", ".", "complianceLevel", ";", "}", "}", "protected", "boolean", "commentParse", "(", ")", "{", "boolean", "validComment", "=", "true", ";", "try", "{", "this", ".", "astLengthPtr", "=", "-", "1", ";", "this", ".", "astPtr", "=", "-", "1", ";", "this", ".", "identifierPtr", "=", "-", "1", ";", "this", ".", "currentTokenType", "=", "-", "1", ";", "setInlineTagStarted", "(", "false", ")", ";", "this", ".", "inlineTagStart", "=", "-", "1", ";", "this", ".", "lineStarted", "=", "false", ";", "this", ".", "returnStatement", "=", "null", ";", "this", ".", "inheritedPositions", "=", "null", ";", "this", ".", "lastBlockTagValue", "=", "NO_TAG_VALUE", ";", "this", ".", "deprecated", "=", "false", ";", "this", ".", "lastLinePtr", "=", "getLineNumber", "(", "this", ".", "javadocEnd", ")", ";", "this", ".", "textStart", "=", "-", "1", ";", "this", ".", "abort", "=", "false", ";", "char", "previousChar", "=", "0", ";", "int", "invalidTagLineEnd", "=", "-", "1", ";", "int", "invalidInlineTagLineEnd", "=", "-", "1", ";", "boolean", "lineHasStar", "=", "true", ";", "boolean", "verifText", "=", "(", "this", ".", "kind", "&", "TEXT_VERIF", ")", "!=", "0", ";", "boolean", "isDomParser", "=", "(", "this", ".", "kind", "&", "DOM_PARSER", ")", "!=", "0", ";", "boolean", "isFormatterParser", "=", "(", "this", ".", "kind", "&", "FORMATTER_COMMENT_PARSER", ")", "!=", "0", ";", "int", "lastStarPosition", "=", "-", "1", ";", "this", ".", "linePtr", "=", "getLineNumber", "(", "this", ".", "firstTagPosition", ")", ";", "int", "realStart", "=", "this", ".", "linePtr", "==", "1", "?", "this", ".", "javadocStart", ":", "this", ".", "scanner", ".", "getLineEnd", "(", "this", ".", "linePtr", "-", "1", ")", "+", "1", ";", "if", "(", "realStart", "<", "this", ".", "javadocStart", ")", "realStart", "=", "this", ".", "javadocStart", ";", "this", ".", "scanner", ".", "resetTo", "(", "realStart", ",", "this", ".", "javadocEnd", ")", ";", "this", ".", "index", "=", "realStart", ";", "if", "(", "realStart", "==", "this", ".", "javadocStart", ")", "{", "readChar", "(", ")", ";", "readChar", "(", ")", ";", "}", "int", "previousPosition", "=", "this", ".", "index", ";", "char", "nextCharacter", "=", "0", ";", "if", "(", "realStart", "==", "this", ".", "javadocStart", ")", "{", "nextCharacter", "=", "readChar", "(", ")", ";", "while", "(", "peekChar", "(", ")", "==", "'*'", ")", "{", "nextCharacter", "=", "readChar", "(", ")", ";", "}", "this", ".", "javadocTextStart", "=", "this", ".", "index", ";", "}", "this", ".", "lineEnd", "=", "(", "this", ".", "linePtr", "==", "this", ".", "lastLinePtr", ")", "?", "this", ".", "javadocEnd", ":", "this", ".", "scanner", ".", "getLineEnd", "(", "this", ".", "linePtr", ")", "-", "1", ";", "this", ".", "javadocTextEnd", "=", "this", ".", "javadocEnd", "-", "2", ";", "int", "textEndPosition", "=", "-", "1", ";", "while", "(", "!", "this", ".", "abort", "&&", "this", ".", "index", "<", "this", ".", "javadocEnd", ")", "{", "previousPosition", "=", "this", ".", "index", ";", "previousChar", "=", "nextCharacter", ";", "if", "(", "this", ".", "index", ">", "(", "this", ".", "lineEnd", "+", "1", ")", ")", "{", "updateLineEnd", "(", ")", ";", "}", "if", "(", "this", ".", "currentTokenType", "<", "0", ")", "{", "nextCharacter", "=", "readChar", "(", ")", ";", "}", "else", "{", "previousPosition", "=", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ";", "switch", "(", "this", ".", "currentTokenType", ")", "{", "case", "TerminalTokens", ".", "TokenNameRBRACE", ":", "nextCharacter", "=", "'}'", ";", "break", ";", "case", "TerminalTokens", ".", "TokenNameMULTIPLY", ":", "nextCharacter", "=", "'*'", ";", "break", ";", "default", ":", "nextCharacter", "=", "this", ".", "scanner", ".", "currentCharacter", ";", "}", "consumeToken", "(", ")", ";", "}", "switch", "(", "nextCharacter", ")", "{", "case", "'@'", ":", "if", "(", "(", "!", "this", ".", "lineStarted", "||", "previousChar", "==", "'{'", ")", ")", "{", "if", "(", "this", ".", "inlineTagStarted", ")", "{", "setInlineTagStarted", "(", "false", ")", ";", "if", "(", "this", ".", "reportProblems", ")", "{", "int", "end", "=", "previousPosition", "<", "invalidInlineTagLineEnd", "?", "previousPosition", ":", "invalidInlineTagLineEnd", ";", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocUnterminatedInlineTag", "(", "this", ".", "inlineTagStart", ",", "end", ")", ";", "}", "validComment", "=", "false", ";", "if", "(", "this", ".", "textStart", "!=", "-", "1", "&&", "this", ".", "textStart", "<", "textEndPosition", ")", "{", "pushText", "(", "this", ".", "textStart", ",", "textEndPosition", ")", ";", "}", "if", "(", "isDomParser", "||", "isFormatterParser", ")", "{", "refreshInlineTagPosition", "(", "textEndPosition", ")", ";", "}", "}", "if", "(", "previousChar", "==", "'{'", ")", "{", "if", "(", "this", ".", "textStart", "!=", "-", "1", ")", "{", "if", "(", "this", ".", "textStart", "<", "textEndPosition", ")", "{", "pushText", "(", "this", ".", "textStart", ",", "textEndPosition", ")", ";", "}", "}", "setInlineTagStarted", "(", "true", ")", ";", "invalidInlineTagLineEnd", "=", "this", ".", "lineEnd", ";", "}", "else", "if", "(", "this", ".", "textStart", "!=", "-", "1", "&&", "this", ".", "textStart", "<", "invalidTagLineEnd", ")", "{", "pushText", "(", "this", ".", "textStart", ",", "invalidTagLineEnd", ")", ";", "}", "this", ".", "scanner", ".", "resetTo", "(", "this", ".", "index", ",", "this", ".", "javadocEnd", ")", ";", "this", ".", "currentTokenType", "=", "-", "1", ";", "try", "{", "if", "(", "!", "parseTag", "(", "previousPosition", ")", ")", "{", "validComment", "=", "false", ";", "if", "(", "isDomParser", ")", "{", "createTag", "(", ")", ";", "}", "this", ".", "textStart", "=", "this", ".", "tagSourceEnd", "+", "1", ";", "invalidTagLineEnd", "=", "this", ".", "lineEnd", ";", "textEndPosition", "=", "this", ".", "index", ";", "}", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "consumeToken", "(", ")", ";", "}", "}", "else", "{", "textEndPosition", "=", "this", ".", "index", ";", "if", "(", "verifText", "&&", "this", ".", "tagValue", "==", "TAG_RETURN_VALUE", "&&", "this", ".", "returnStatement", "!=", "null", ")", "{", "refreshReturnStatement", "(", ")", ";", "}", "else", "if", "(", "isFormatterParser", ")", "{", "if", "(", "this", ".", "textStart", "==", "-", "1", ")", "this", ".", "textStart", "=", "previousPosition", ";", "}", "}", "this", ".", "lineStarted", "=", "true", ";", "break", ";", "case", "'\\r'", ":", "case", "'\\n'", ":", "if", "(", "this", ".", "lineStarted", ")", "{", "if", "(", "isFormatterParser", "&&", "!", "ScannerHelper", ".", "isWhitespace", "(", "previousChar", ")", ")", "{", "textEndPosition", "=", "previousPosition", ";", "}", "if", "(", "this", ".", "textStart", "!=", "-", "1", "&&", "this", ".", "textStart", "<", "textEndPosition", ")", "{", "pushText", "(", "this", ".", "textStart", ",", "textEndPosition", ")", ";", "}", "}", "this", ".", "lineStarted", "=", "false", ";", "lineHasStar", "=", "false", ";", "this", ".", "textStart", "=", "-", "1", ";", "break", ";", "case", "'}'", ":", "if", "(", "verifText", "&&", "this", ".", "tagValue", "==", "TAG_RETURN_VALUE", "&&", "this", ".", "returnStatement", "!=", "null", ")", "{", "refreshReturnStatement", "(", ")", ";", "}", "if", "(", "this", ".", "inlineTagStarted", ")", "{", "textEndPosition", "=", "this", ".", "index", "-", "1", ";", "if", "(", "this", ".", "lineStarted", "&&", "this", ".", "textStart", "!=", "-", "1", "&&", "this", ".", "textStart", "<", "textEndPosition", ")", "{", "pushText", "(", "this", ".", "textStart", ",", "textEndPosition", ")", ";", "}", "refreshInlineTagPosition", "(", "previousPosition", ")", ";", "if", "(", "!", "isFormatterParser", ")", "this", ".", "textStart", "=", "this", ".", "index", ";", "setInlineTagStarted", "(", "false", ")", ";", "}", "else", "{", "if", "(", "!", "this", ".", "lineStarted", ")", "{", "this", ".", "textStart", "=", "previousPosition", ";", "}", "}", "this", ".", "lineStarted", "=", "true", ";", "textEndPosition", "=", "this", ".", "index", ";", "break", ";", "case", "'{'", ":", "if", "(", "verifText", "&&", "this", ".", "tagValue", "==", "TAG_RETURN_VALUE", "&&", "this", ".", "returnStatement", "!=", "null", ")", "{", "refreshReturnStatement", "(", ")", ";", "}", "if", "(", "this", ".", "inlineTagStarted", ")", "{", "setInlineTagStarted", "(", "false", ")", ";", "if", "(", "this", ".", "reportProblems", ")", "{", "int", "end", "=", "previousPosition", "<", "invalidInlineTagLineEnd", "?", "previousPosition", ":", "invalidInlineTagLineEnd", ";", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocUnterminatedInlineTag", "(", "this", ".", "inlineTagStart", ",", "end", ")", ";", "}", "if", "(", "this", ".", "lineStarted", "&&", "this", ".", "textStart", "!=", "-", "1", "&&", "this", ".", "textStart", "<", "textEndPosition", ")", "{", "pushText", "(", "this", ".", "textStart", ",", "textEndPosition", ")", ";", "}", "refreshInlineTagPosition", "(", "textEndPosition", ")", ";", "textEndPosition", "=", "this", ".", "index", ";", "}", "else", "if", "(", "peekChar", "(", ")", "!=", "'@'", ")", "{", "if", "(", "this", ".", "textStart", "==", "-", "1", ")", "this", ".", "textStart", "=", "previousPosition", ";", "textEndPosition", "=", "this", ".", "index", ";", "}", "if", "(", "!", "this", ".", "lineStarted", ")", "{", "this", ".", "textStart", "=", "previousPosition", ";", "}", "this", ".", "lineStarted", "=", "true", ";", "this", ".", "inlineTagStart", "=", "previousPosition", ";", "break", ";", "case", "'*'", ":", "lastStarPosition", "=", "previousPosition", ";", "if", "(", "previousChar", "!=", "'*'", ")", "{", "this", ".", "starPosition", "=", "previousPosition", ";", "if", "(", "isDomParser", "||", "isFormatterParser", ")", "{", "if", "(", "lineHasStar", ")", "{", "this", ".", "lineStarted", "=", "true", ";", "if", "(", "this", ".", "textStart", "==", "-", "1", ")", "{", "this", ".", "textStart", "=", "previousPosition", ";", "if", "(", "this", ".", "index", "<=", "this", ".", "javadocTextEnd", ")", "textEndPosition", "=", "this", ".", "index", ";", "}", "}", "if", "(", "!", "this", ".", "lineStarted", ")", "{", "lineHasStar", "=", "true", ";", "}", "}", "}", "break", ";", "case", "'", "'", ":", "case", "'", "'", ":", "case", "'\\t'", ":", "if", "(", "isFormatterParser", ")", "{", "if", "(", "!", "ScannerHelper", ".", "isWhitespace", "(", "previousChar", ")", ")", "{", "textEndPosition", "=", "previousPosition", ";", "}", "}", "else", "if", "(", "this", ".", "lineStarted", "&&", "isDomParser", ")", "{", "textEndPosition", "=", "this", ".", "index", ";", "}", "break", ";", "case", "'/'", ":", "if", "(", "previousChar", "==", "'*'", ")", "{", "break", ";", "}", "default", ":", "if", "(", "isFormatterParser", "&&", "nextCharacter", "==", "'<'", ")", "{", "int", "initialIndex", "=", "this", ".", "index", ";", "this", ".", "scanner", ".", "resetTo", "(", "this", ".", "index", ",", "this", ".", "javadocEnd", ")", ";", "if", "(", "!", "ScannerHelper", ".", "isWhitespace", "(", "previousChar", ")", ")", "{", "textEndPosition", "=", "previousPosition", ";", "}", "if", "(", "parseHtmlTag", "(", "previousPosition", ",", "textEndPosition", ")", ")", "{", "break", ";", "}", "if", "(", "this", ".", "abort", ")", "return", "false", ";", "this", ".", "scanner", ".", "currentPosition", "=", "initialIndex", ";", "this", ".", "index", "=", "initialIndex", ";", "}", "if", "(", "verifText", "&&", "this", ".", "tagValue", "==", "TAG_RETURN_VALUE", "&&", "this", ".", "returnStatement", "!=", "null", ")", "{", "refreshReturnStatement", "(", ")", ";", "}", "if", "(", "!", "this", ".", "lineStarted", "||", "this", ".", "textStart", "==", "-", "1", ")", "{", "this", ".", "textStart", "=", "previousPosition", ";", "}", "this", ".", "lineStarted", "=", "true", ";", "textEndPosition", "=", "this", ".", "index", ";", "break", ";", "}", "}", "this", ".", "javadocTextEnd", "=", "this", ".", "starPosition", "-", "1", ";", "if", "(", "this", ".", "inlineTagStarted", ")", "{", "if", "(", "this", ".", "reportProblems", ")", "{", "int", "end", "=", "this", ".", "javadocTextEnd", "<", "invalidInlineTagLineEnd", "?", "this", ".", "javadocTextEnd", ":", "invalidInlineTagLineEnd", ";", "if", "(", "this", ".", "index", ">=", "this", ".", "javadocEnd", ")", "end", "=", "invalidInlineTagLineEnd", ";", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocUnterminatedInlineTag", "(", "this", ".", "inlineTagStart", ",", "end", ")", ";", "}", "if", "(", "this", ".", "lineStarted", "&&", "this", ".", "textStart", "!=", "-", "1", "&&", "this", ".", "textStart", "<", "textEndPosition", ")", "{", "pushText", "(", "this", ".", "textStart", ",", "textEndPosition", ")", ";", "}", "refreshInlineTagPosition", "(", "textEndPosition", ")", ";", "setInlineTagStarted", "(", "false", ")", ";", "}", "else", "if", "(", "this", ".", "lineStarted", "&&", "this", ".", "textStart", "!=", "-", "1", "&&", "this", ".", "textStart", "<=", "textEndPosition", "&&", "(", "this", ".", "textStart", "<", "this", ".", "starPosition", "||", "this", ".", "starPosition", "==", "lastStarPosition", ")", ")", "{", "pushText", "(", "this", ".", "textStart", ",", "textEndPosition", ")", ";", "}", "updateDocComment", "(", ")", ";", "}", "catch", "(", "Exception", "ex", ")", "{", "validComment", "=", "false", ";", "}", "return", "validComment", ";", "}", "protected", "void", "consumeToken", "(", ")", "{", "this", ".", "currentTokenType", "=", "-", "1", ";", "updateLineEnd", "(", ")", ";", "}", "protected", "abstract", "Object", "createArgumentReference", "(", "char", "[", "]", "name", ",", "int", "dim", ",", "boolean", "isVarargs", ",", "Object", "typeRef", ",", "long", "[", "]", "dimPos", ",", "long", "argNamePos", ")", "throws", "InvalidInputException", ";", "protected", "boolean", "createFakeReference", "(", "int", "start", ")", "{", "return", "true", ";", "}", "protected", "abstract", "Object", "createFieldReference", "(", "Object", "receiver", ")", "throws", "InvalidInputException", ";", "protected", "abstract", "Object", "createMethodReference", "(", "Object", "receiver", ",", "List", "arguments", ")", "throws", "InvalidInputException", ";", "protected", "Object", "createReturnStatement", "(", ")", "{", "return", "null", ";", "}", "protected", "abstract", "void", "createTag", "(", ")", ";", "protected", "abstract", "Object", "createTypeReference", "(", "int", "primitiveToken", ")", ";", "private", "int", "getIndexPosition", "(", ")", "{", "if", "(", "this", ".", "index", ">", "this", ".", "lineEnd", ")", "{", "return", "this", ".", "lineEnd", ";", "}", "else", "{", "return", "this", ".", "index", "-", "1", ";", "}", "}", "private", "int", "getLineNumber", "(", "int", "position", ")", "{", "if", "(", "this", ".", "scanner", ".", "linePtr", "!=", "-", "1", ")", "{", "return", "Util", ".", "getLineNumber", "(", "position", ",", "this", ".", "scanner", ".", "lineEnds", ",", "0", ",", "this", ".", "scanner", ".", "linePtr", ")", ";", "}", "if", "(", "this", ".", "lineEnds", "==", "null", ")", "return", "1", ";", "return", "Util", ".", "getLineNumber", "(", "position", ",", "this", ".", "lineEnds", ",", "0", ",", "this", ".", "lineEnds", ".", "length", "-", "1", ")", ";", "}", "private", "int", "getTokenEndPosition", "(", ")", "{", "if", "(", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ">", "this", ".", "lineEnd", ")", "{", "return", "this", ".", "lineEnd", ";", "}", "else", "{", "return", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ";", "}", "}", "protected", "int", "getCurrentTokenType", "(", ")", "{", "return", "this", ".", "currentTokenType", ";", "}", "protected", "Object", "parseArguments", "(", "Object", "receiver", ")", "throws", "InvalidInputException", "{", "int", "modulo", "=", "0", ";", "int", "iToken", "=", "0", ";", "char", "[", "]", "argName", "=", "null", ";", "List", "arguments", "=", "new", "ArrayList", "(", "10", ")", ";", "int", "start", "=", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ";", "Object", "typeRef", "=", "null", ";", "int", "dim", "=", "0", ";", "boolean", "isVarargs", "=", "false", ";", "long", "[", "]", "dimPositions", "=", "new", "long", "[", "20", "]", ";", "char", "[", "]", "name", "=", "null", ";", "long", "argNamePos", "=", "-", "1", ";", "nextArg", ":", "while", "(", "this", ".", "index", "<", "this", ".", "scanner", ".", "eofPosition", ")", "{", "try", "{", "typeRef", "=", "parseQualifiedName", "(", "false", ")", ";", "if", "(", "this", ".", "abort", ")", "return", "null", ";", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "break", "nextArg", ";", "}", "boolean", "firstArg", "=", "modulo", "==", "0", ";", "if", "(", "firstArg", ")", "{", "if", "(", "iToken", "!=", "0", ")", "break", "nextArg", ";", "}", "else", "if", "(", "(", "iToken", "%", "modulo", ")", "!=", "0", ")", "{", "break", "nextArg", ";", "}", "if", "(", "typeRef", "==", "null", ")", "{", "if", "(", "firstArg", "&&", "this", ".", "currentTokenType", "==", "TerminalTokens", ".", "TokenNameRPAREN", ")", "{", "if", "(", "!", "verifySpaceOrEndComment", "(", ")", ")", "{", "int", "end", "=", "this", ".", "starPosition", "==", "-", "1", "?", "this", ".", "lineEnd", ":", "this", ".", "starPosition", ";", "if", "(", "this", ".", "source", "[", "end", "]", "==", "'\\n'", ")", "end", "--", ";", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocMalformedSeeReference", "(", "start", ",", "end", ")", ";", "return", "null", ";", "}", "this", ".", "lineStarted", "=", "true", ";", "return", "createMethodReference", "(", "receiver", ",", "null", ")", ";", "}", "break", "nextArg", ";", "}", "iToken", "++", ";", "dim", "=", "0", ";", "isVarargs", "=", "false", ";", "if", "(", "readToken", "(", ")", "==", "TerminalTokens", ".", "TokenNameLBRACKET", ")", "{", "int", "dimStart", "=", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ";", "while", "(", "readToken", "(", ")", "==", "TerminalTokens", ".", "TokenNameLBRACKET", ")", "{", "consumeToken", "(", ")", ";", "if", "(", "readToken", "(", ")", "!=", "TerminalTokens", ".", "TokenNameRBRACKET", ")", "{", "break", "nextArg", ";", "}", "consumeToken", "(", ")", ";", "dimPositions", "[", "dim", "++", "]", "=", "(", "(", "(", "long", ")", "dimStart", ")", "<<", "32", ")", "+", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ";", "}", "}", "else", "if", "(", "readToken", "(", ")", "==", "TerminalTokens", ".", "TokenNameELLIPSIS", ")", "{", "int", "dimStart", "=", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ";", "dimPositions", "[", "dim", "++", "]", "=", "(", "(", "(", "long", ")", "dimStart", ")", "<<", "32", ")", "+", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ";", "consumeToken", "(", ")", ";", "isVarargs", "=", "true", ";", "}", "argNamePos", "=", "-", "1", ";", "if", "(", "readToken", "(", ")", "==", "TerminalTokens", ".", "TokenNameIdentifier", ")", "{", "consumeToken", "(", ")", ";", "if", "(", "firstArg", ")", "{", "if", "(", "iToken", "!=", "1", ")", "break", "nextArg", ";", "}", "else", "if", "(", "(", "iToken", "%", "modulo", ")", "!=", "1", ")", "{", "break", "nextArg", ";", "}", "if", "(", "argName", "==", "null", ")", "{", "if", "(", "!", "firstArg", ")", "{", "break", "nextArg", ";", "}", "}", "argName", "=", "this", ".", "scanner", ".", "getCurrentIdentifierSource", "(", ")", ";", "argNamePos", "=", "(", "(", "(", "long", ")", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ")", "<<", "32", ")", "+", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ";", "iToken", "++", ";", "}", "else", "if", "(", "argName", "!=", "null", ")", "{", "break", "nextArg", ";", "}", "if", "(", "firstArg", ")", "{", "modulo", "=", "iToken", "+", "1", ";", "}", "else", "{", "if", "(", "(", "iToken", "%", "modulo", ")", "!=", "(", "modulo", "-", "1", ")", ")", "{", "break", "nextArg", ";", "}", "}", "int", "token", "=", "readToken", "(", ")", ";", "name", "=", "argName", "==", "null", "?", "CharOperation", ".", "NO_CHAR", ":", "argName", ";", "if", "(", "token", "==", "TerminalTokens", ".", "TokenNameCOMMA", ")", "{", "Object", "argument", "=", "createArgumentReference", "(", "name", ",", "dim", ",", "isVarargs", ",", "typeRef", ",", "dimPositions", ",", "argNamePos", ")", ";", "if", "(", "this", ".", "abort", ")", "return", "null", ";", "arguments", ".", "add", "(", "argument", ")", ";", "consumeToken", "(", ")", ";", "iToken", "++", ";", "}", "else", "if", "(", "token", "==", "TerminalTokens", ".", "TokenNameRPAREN", ")", "{", "if", "(", "!", "verifySpaceOrEndComment", "(", ")", ")", "{", "int", "end", "=", "this", ".", "starPosition", "==", "-", "1", "?", "this", ".", "lineEnd", ":", "this", ".", "starPosition", ";", "if", "(", "this", ".", "source", "[", "end", "]", "==", "'\\n'", ")", "end", "--", ";", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocMalformedSeeReference", "(", "start", ",", "end", ")", ";", "return", "null", ";", "}", "Object", "argument", "=", "createArgumentReference", "(", "name", ",", "dim", ",", "isVarargs", ",", "typeRef", ",", "dimPositions", ",", "argNamePos", ")", ";", "if", "(", "this", ".", "abort", ")", "return", "null", ";", "arguments", ".", "add", "(", "argument", ")", ";", "consumeToken", "(", ")", ";", "return", "createMethodReference", "(", "receiver", ",", "arguments", ")", ";", "}", "else", "{", "break", "nextArg", ";", "}", "}", "throw", "new", "InvalidInputException", "(", ")", ";", "}", "protected", "boolean", "parseHtmlTag", "(", "int", "previousPosition", ",", "int", "endTextPosition", ")", "throws", "InvalidInputException", "{", "return", "false", ";", "}", "protected", "boolean", "parseHref", "(", ")", "throws", "InvalidInputException", "{", "boolean", "skipComments", "=", "this", ".", "scanner", ".", "skipComments", ";", "this", ".", "scanner", ".", "skipComments", "=", "true", ";", "try", "{", "int", "start", "=", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ";", "char", "currentChar", "=", "readChar", "(", ")", ";", "if", "(", "currentChar", "==", "'a'", "||", "currentChar", "==", "'A'", ")", "{", "this", ".", "scanner", ".", "currentPosition", "=", "this", ".", "index", ";", "if", "(", "readToken", "(", ")", "==", "TerminalTokens", ".", "TokenNameIdentifier", ")", "{", "consumeToken", "(", ")", ";", "try", "{", "if", "(", "CharOperation", ".", "equals", "(", "this", ".", "scanner", ".", "getCurrentIdentifierSource", "(", ")", ",", "HREF_TAG", ",", "false", ")", "&&", "readToken", "(", ")", "==", "TerminalTokens", ".", "TokenNameEQUAL", ")", "{", "consumeToken", "(", ")", ";", "if", "(", "readToken", "(", ")", "==", "TerminalTokens", ".", "TokenNameStringLiteral", ")", "{", "consumeToken", "(", ")", ";", "while", "(", "this", ".", "index", "<", "this", ".", "javadocEnd", ")", "{", "while", "(", "readToken", "(", ")", "!=", "TerminalTokens", ".", "TokenNameGREATER", ")", "{", "if", "(", "this", ".", "scanner", ".", "currentPosition", ">=", "this", ".", "scanner", ".", "eofPosition", "||", "this", ".", "scanner", ".", "currentCharacter", "==", "'@'", "||", "(", "this", ".", "inlineTagStarted", "&&", "this", ".", "scanner", ".", "currentCharacter", "==", "'}'", ")", ")", "{", "this", ".", "index", "=", "this", ".", "tokenPreviousPosition", ";", "this", ".", "scanner", ".", "currentPosition", "=", "this", ".", "tokenPreviousPosition", ";", "this", ".", "currentTokenType", "=", "-", "1", ";", "if", "(", "this", ".", "tagValue", "!=", "TAG_VALUE_VALUE", ")", "{", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidSeeHref", "(", "start", ",", "this", ".", "lineEnd", ")", ";", "}", "return", "false", ";", "}", "this", ".", "currentTokenType", "=", "-", "1", ";", "}", "consumeToken", "(", ")", ";", "while", "(", "readToken", "(", ")", "!=", "TerminalTokens", ".", "TokenNameLESS", ")", "{", "if", "(", "this", ".", "scanner", ".", "currentPosition", ">=", "this", ".", "scanner", ".", "eofPosition", "||", "this", ".", "scanner", ".", "currentCharacter", "==", "'@'", "||", "(", "this", ".", "inlineTagStarted", "&&", "this", ".", "scanner", ".", "currentCharacter", "==", "'}'", ")", ")", "{", "this", ".", "index", "=", "this", ".", "tokenPreviousPosition", ";", "this", ".", "scanner", ".", "currentPosition", "=", "this", ".", "tokenPreviousPosition", ";", "this", ".", "currentTokenType", "=", "-", "1", ";", "if", "(", "this", ".", "tagValue", "!=", "TAG_VALUE_VALUE", ")", "{", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidSeeHref", "(", "start", ",", "this", ".", "lineEnd", ")", ";", "}", "return", "false", ";", "}", "consumeToken", "(", ")", ";", "}", "consumeToken", "(", ")", ";", "start", "=", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ";", "currentChar", "=", "readChar", "(", ")", ";", "if", "(", "currentChar", "==", "'/'", ")", "{", "currentChar", "=", "readChar", "(", ")", ";", "if", "(", "currentChar", "==", "'a'", "||", "currentChar", "==", "'A'", ")", "{", "currentChar", "=", "readChar", "(", ")", ";", "if", "(", "currentChar", "==", "'>'", ")", "{", "return", "true", ";", "}", "}", "}", "if", "(", "currentChar", "==", "'\\r'", "||", "currentChar", "==", "'\\n'", "||", "currentChar", "==", "'\\t'", "||", "currentChar", "==", "'", "'", ")", "{", "break", ";", "}", "}", "}", "}", "}", "catch", "(", "InvalidInputException", "ex", ")", "{", "}", "}", "}", "this", ".", "index", "=", "this", ".", "tokenPreviousPosition", ";", "this", ".", "scanner", ".", "currentPosition", "=", "this", ".", "tokenPreviousPosition", ";", "this", ".", "currentTokenType", "=", "-", "1", ";", "if", "(", "this", ".", "tagValue", "!=", "TAG_VALUE_VALUE", ")", "{", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidSeeHref", "(", "start", ",", "this", ".", "lineEnd", ")", ";", "}", "}", "finally", "{", "this", ".", "scanner", ".", "skipComments", "=", "skipComments", ";", "}", "return", "false", ";", "}", "protected", "boolean", "parseIdentifierTag", "(", "boolean", "report", ")", "{", "int", "token", "=", "readTokenSafely", "(", ")", ";", "switch", "(", "token", ")", "{", "case", "TerminalTokens", ".", "TokenNameIdentifier", ":", "pushIdentifier", "(", "true", ",", "false", ")", ";", "return", "true", ";", "}", "if", "(", "report", ")", "{", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocMissingIdentifier", "(", "this", ".", "tagSourceStart", ",", "this", ".", "tagSourceEnd", ",", "this", ".", "sourceParser", ".", "modifiers", ")", ";", "}", "return", "false", ";", "}", "protected", "Object", "parseMember", "(", "Object", "receiver", ")", "throws", "InvalidInputException", "{", "this", ".", "identifierPtr", "=", "-", "1", ";", "this", ".", "identifierLengthPtr", "=", "-", "1", ";", "int", "start", "=", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ";", "this", ".", "memberStart", "=", "start", ";", "if", "(", "readToken", "(", ")", "==", "TerminalTokens", ".", "TokenNameIdentifier", ")", "{", "if", "(", "this", ".", "scanner", ".", "currentCharacter", "==", "'.'", ")", "{", "parseQualifiedName", "(", "true", ")", ";", "}", "else", "{", "consumeToken", "(", ")", ";", "pushIdentifier", "(", "true", ",", "false", ")", ";", "}", "int", "previousPosition", "=", "this", ".", "index", ";", "if", "(", "readToken", "(", ")", "==", "TerminalTokens", ".", "TokenNameLPAREN", ")", "{", "consumeToken", "(", ")", ";", "start", "=", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ";", "try", "{", "return", "parseArguments", "(", "receiver", ")", ";", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "int", "end", "=", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", "<", "this", ".", "lineEnd", "?", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ":", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ";", "end", "=", "end", "<", "this", ".", "lineEnd", "?", "end", ":", "this", ".", "lineEnd", ";", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidSeeReferenceArgs", "(", "start", ",", "end", ")", ";", "}", "return", "null", ";", "}", "this", ".", "index", "=", "previousPosition", ";", "this", ".", "scanner", ".", "currentPosition", "=", "previousPosition", ";", "this", ".", "currentTokenType", "=", "-", "1", ";", "if", "(", "!", "verifySpaceOrEndComment", "(", ")", ")", "{", "int", "end", "=", "this", ".", "starPosition", "==", "-", "1", "?", "this", ".", "lineEnd", ":", "this", ".", "starPosition", ";", "if", "(", "this", ".", "source", "[", "end", "]", "==", "'\\n'", ")", "end", "--", ";", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocMalformedSeeReference", "(", "start", ",", "end", ")", ";", "return", "null", ";", "}", "return", "createFieldReference", "(", "receiver", ")", ";", "}", "int", "end", "=", "getTokenEndPosition", "(", ")", "-", "1", ";", "end", "=", "start", ">", "end", "?", "start", ":", "end", ";", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidReference", "(", "start", ",", "end", ")", ";", "this", ".", "index", "=", "this", ".", "tokenPreviousPosition", ";", "this", ".", "scanner", ".", "currentPosition", "=", "this", ".", "tokenPreviousPosition", ";", "this", ".", "currentTokenType", "=", "-", "1", ";", "return", "null", ";", "}", "protected", "boolean", "parseParam", "(", ")", "throws", "InvalidInputException", "{", "int", "start", "=", "this", ".", "tagSourceStart", ";", "int", "end", "=", "this", ".", "tagSourceEnd", ";", "boolean", "tokenWhiteSpace", "=", "this", ".", "scanner", ".", "tokenizeWhiteSpace", ";", "this", ".", "scanner", ".", "tokenizeWhiteSpace", "=", "true", ";", "try", "{", "boolean", "isCompletionParser", "=", "(", "this", ".", "kind", "&", "COMPLETION_PARSER", ")", "!=", "0", ";", "if", "(", "this", ".", "scanner", ".", "currentCharacter", "!=", "'", "'", "&&", "!", "ScannerHelper", ".", "isWhitespace", "(", "this", ".", "scanner", ".", "currentCharacter", ")", ")", "{", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidTag", "(", "start", ",", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ")", ";", "if", "(", "!", "isCompletionParser", ")", "{", "this", ".", "scanner", ".", "currentPosition", "=", "start", ";", "this", ".", "index", "=", "start", ";", "}", "this", ".", "currentTokenType", "=", "-", "1", ";", "return", "false", ";", "}", "this", ".", "identifierPtr", "=", "-", "1", ";", "this", ".", "identifierLengthPtr", "=", "-", "1", ";", "boolean", "hasMultiLines", "=", "this", ".", "scanner", ".", "currentPosition", ">", "(", "this", ".", "lineEnd", "+", "1", ")", ";", "boolean", "isTypeParam", "=", "false", ";", "boolean", "valid", "=", "true", ",", "empty", "=", "true", ";", "boolean", "mayBeGeneric", "=", "this", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "int", "token", "=", "-", "1", ";", "nextToken", ":", "while", "(", "true", ")", "{", "this", ".", "currentTokenType", "=", "-", "1", ";", "try", "{", "token", "=", "readToken", "(", ")", ";", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "valid", "=", "false", ";", "}", "switch", "(", "token", ")", "{", "case", "TerminalTokens", ".", "TokenNameIdentifier", ":", "if", "(", "valid", ")", "{", "pushIdentifier", "(", "true", ",", "false", ")", ";", "start", "=", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ";", "end", "=", "hasMultiLines", "?", "this", ".", "lineEnd", ":", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ";", "break", "nextToken", ";", "}", "case", "TerminalTokens", ".", "TokenNameLESS", ":", "if", "(", "valid", "&&", "mayBeGeneric", ")", "{", "pushIdentifier", "(", "true", ",", "true", ")", ";", "start", "=", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ";", "end", "=", "hasMultiLines", "?", "this", ".", "lineEnd", ":", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ";", "isTypeParam", "=", "true", ";", "break", "nextToken", ";", "}", "default", ":", "if", "(", "token", "==", "TerminalTokens", ".", "TokenNameLEFT_SHIFT", ")", "isTypeParam", "=", "true", ";", "if", "(", "valid", "&&", "!", "hasMultiLines", ")", "start", "=", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ";", "valid", "=", "false", ";", "if", "(", "!", "hasMultiLines", ")", "{", "empty", "=", "false", ";", "end", "=", "hasMultiLines", "?", "this", ".", "lineEnd", ":", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ";", "break", ";", "}", "end", "=", "this", ".", "lineEnd", ";", "case", "TerminalTokens", ".", "TokenNameWHITESPACE", ":", "if", "(", "this", ".", "scanner", ".", "currentPosition", ">", "(", "this", ".", "lineEnd", "+", "1", ")", ")", "hasMultiLines", "=", "true", ";", "if", "(", "valid", ")", "break", ";", "case", "TerminalTokens", ".", "TokenNameEOF", ":", "if", "(", "this", ".", "reportProblems", ")", "if", "(", "empty", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocMissingParamName", "(", "start", ",", "end", ",", "this", ".", "sourceParser", ".", "modifiers", ")", ";", "else", "if", "(", "mayBeGeneric", "&&", "isTypeParam", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidParamTypeParameter", "(", "start", ",", "end", ")", ";", "else", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidParamTagName", "(", "start", ",", "end", ")", ";", "if", "(", "!", "isCompletionParser", ")", "{", "this", ".", "scanner", ".", "currentPosition", "=", "start", ";", "this", ".", "index", "=", "start", ";", "}", "this", ".", "currentTokenType", "=", "-", "1", ";", "return", "false", ";", "}", "}", "if", "(", "isTypeParam", "&&", "mayBeGeneric", ")", "{", "nextToken", ":", "while", "(", "true", ")", "{", "this", ".", "currentTokenType", "=", "-", "1", ";", "try", "{", "token", "=", "readToken", "(", ")", ";", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "valid", "=", "false", ";", "}", "switch", "(", "token", ")", "{", "case", "TerminalTokens", ".", "TokenNameWHITESPACE", ":", "if", "(", "valid", "&&", "this", ".", "scanner", ".", "currentPosition", "<=", "(", "this", ".", "lineEnd", "+", "1", ")", ")", "{", "break", ";", "}", "case", "TerminalTokens", ".", "TokenNameEOF", ":", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidParamTypeParameter", "(", "start", ",", "end", ")", ";", "if", "(", "!", "isCompletionParser", ")", "{", "this", ".", "scanner", ".", "currentPosition", "=", "start", ";", "this", ".", "index", "=", "start", ";", "}", "this", ".", "currentTokenType", "=", "-", "1", ";", "return", "false", ";", "case", "TerminalTokens", ".", "TokenNameIdentifier", ":", "end", "=", "hasMultiLines", "?", "this", ".", "lineEnd", ":", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ";", "if", "(", "valid", ")", "{", "pushIdentifier", "(", "false", ",", "false", ")", ";", "break", "nextToken", ";", "}", "break", ";", "default", ":", "end", "=", "hasMultiLines", "?", "this", ".", "lineEnd", ":", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ";", "valid", "=", "false", ";", "break", ";", "}", "}", "boolean", "spaces", "=", "false", ";", "nextToken", ":", "while", "(", "true", ")", "{", "this", ".", "currentTokenType", "=", "-", "1", ";", "try", "{", "token", "=", "readToken", "(", ")", ";", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "valid", "=", "false", ";", "}", "switch", "(", "token", ")", "{", "case", "TerminalTokens", ".", "TokenNameWHITESPACE", ":", "if", "(", "this", ".", "scanner", ".", "currentPosition", ">", "(", "this", ".", "lineEnd", "+", "1", ")", ")", "{", "hasMultiLines", "=", "true", ";", "valid", "=", "false", ";", "}", "spaces", "=", "true", ";", "if", "(", "valid", ")", "break", ";", "case", "TerminalTokens", ".", "TokenNameEOF", ":", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidParamTypeParameter", "(", "start", ",", "end", ")", ";", "if", "(", "!", "isCompletionParser", ")", "{", "this", ".", "scanner", ".", "currentPosition", "=", "start", ";", "this", ".", "index", "=", "start", ";", "}", "this", ".", "currentTokenType", "=", "-", "1", ";", "return", "false", ";", "case", "TerminalTokens", ".", "TokenNameGREATER", ":", "end", "=", "hasMultiLines", "?", "this", ".", "lineEnd", ":", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ";", "if", "(", "valid", ")", "{", "pushIdentifier", "(", "false", ",", "true", ")", ";", "break", "nextToken", ";", "}", "break", ";", "default", ":", "if", "(", "!", "spaces", ")", "end", "=", "hasMultiLines", "?", "this", ".", "lineEnd", ":", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ";", "valid", "=", "false", ";", "break", ";", "}", "}", "}", "if", "(", "valid", ")", "{", "this", ".", "currentTokenType", "=", "-", "1", ";", "int", "restart", "=", "this", ".", "scanner", ".", "currentPosition", ";", "try", "{", "token", "=", "readTokenAndConsume", "(", ")", ";", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "valid", "=", "false", ";", "}", "if", "(", "token", "==", "TerminalTokens", ".", "TokenNameWHITESPACE", ")", "{", "this", ".", "scanner", ".", "resetTo", "(", "restart", ",", "this", ".", "javadocEnd", ")", ";", "this", ".", "index", "=", "restart", ";", "return", "pushParamName", "(", "isTypeParam", ")", ";", "}", "}", "this", ".", "currentTokenType", "=", "-", "1", ";", "if", "(", "isCompletionParser", ")", "return", "false", ";", "if", "(", "this", ".", "reportProblems", ")", "{", "end", "=", "hasMultiLines", "?", "this", ".", "lineEnd", ":", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ";", "try", "{", "while", "(", "(", "token", "=", "readToken", "(", ")", ")", "!=", "TerminalTokens", ".", "TokenNameWHITESPACE", "&&", "token", "!=", "TerminalTokens", ".", "TokenNameEOF", ")", "{", "this", ".", "currentTokenType", "=", "-", "1", ";", "end", "=", "hasMultiLines", "?", "this", ".", "lineEnd", ":", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ";", "}", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "end", "=", "this", ".", "lineEnd", ";", "}", "if", "(", "mayBeGeneric", "&&", "isTypeParam", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidParamTypeParameter", "(", "start", ",", "end", ")", ";", "else", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidParamTagName", "(", "start", ",", "end", ")", ";", "}", "this", ".", "scanner", ".", "currentPosition", "=", "start", ";", "this", ".", "index", "=", "start", ";", "this", ".", "currentTokenType", "=", "-", "1", ";", "return", "false", ";", "}", "finally", "{", "this", ".", "scanner", ".", "tokenizeWhiteSpace", "=", "tokenWhiteSpace", ";", "}", "}", "protected", "Object", "parseQualifiedName", "(", "boolean", "reset", ")", "throws", "InvalidInputException", "{", "if", "(", "reset", ")", "{", "this", ".", "identifierPtr", "=", "-", "1", ";", "this", ".", "identifierLengthPtr", "=", "-", "1", ";", "}", "int", "primitiveToken", "=", "-", "1", ";", "int", "parserKind", "=", "this", ".", "kind", "&", "PARSER_KIND", ";", "nextToken", ":", "for", "(", "int", "iToken", "=", "0", ";", ";", "iToken", "++", ")", "{", "int", "token", "=", "readTokenSafely", "(", ")", ";", "switch", "(", "token", ")", "{", "case", "TerminalTokens", ".", "TokenNameIdentifier", ":", "if", "(", "(", "(", "iToken", "&", "1", ")", "!=", "0", ")", ")", "{", "break", "nextToken", ";", "}", "pushIdentifier", "(", "iToken", "==", "0", ",", "false", ")", ";", "consumeToken", "(", ")", ";", "break", ";", "case", "TerminalTokens", ".", "TokenNameDOT", ":", "if", "(", "(", "iToken", "&", "1", ")", "==", "0", ")", "{", "throw", "new", "InvalidInputException", "(", ")", ";", "}", "consumeToken", "(", ")", ";", "break", ";", "case", "TerminalTokens", ".", "TokenNameabstract", ":", "case", "TerminalTokens", ".", "TokenNameassert", ":", "case", "TerminalTokens", ".", "TokenNameboolean", ":", "case", "TerminalTokens", ".", "TokenNamebreak", ":", "case", "TerminalTokens", ".", "TokenNamebyte", ":", "case", "TerminalTokens", ".", "TokenNamecase", ":", "case", "TerminalTokens", ".", "TokenNamecatch", ":", "case", "TerminalTokens", ".", "TokenNamechar", ":", "case", "TerminalTokens", ".", "TokenNameclass", ":", "case", "TerminalTokens", ".", "TokenNamecontinue", ":", "case", "TerminalTokens", ".", "TokenNamedefault", ":", "case", "TerminalTokens", ".", "TokenNamedo", ":", "case", "TerminalTokens", ".", "TokenNamedouble", ":", "case", "TerminalTokens", ".", "TokenNameelse", ":", "case", "TerminalTokens", ".", "TokenNameextends", ":", "case", "TerminalTokens", ".", "TokenNamefalse", ":", "case", "TerminalTokens", ".", "TokenNamefinal", ":", "case", "TerminalTokens", ".", "TokenNamefinally", ":", "case", "TerminalTokens", ".", "TokenNamefloat", ":", "case", "TerminalTokens", ".", "TokenNamefor", ":", "case", "TerminalTokens", ".", "TokenNameif", ":", "case", "TerminalTokens", ".", "TokenNameimplements", ":", "case", "TerminalTokens", ".", "TokenNameimport", ":", "case", "TerminalTokens", ".", "TokenNameinstanceof", ":", "case", "TerminalTokens", ".", "TokenNameint", ":", "case", "TerminalTokens", ".", "TokenNameinterface", ":", "case", "TerminalTokens", ".", "TokenNamelong", ":", "case", "TerminalTokens", ".", "TokenNamenative", ":", "case", "TerminalTokens", ".", "TokenNamenew", ":", "case", "TerminalTokens", ".", "TokenNamenull", ":", "case", "TerminalTokens", ".", "TokenNamepackage", ":", "case", "TerminalTokens", ".", "TokenNameprivate", ":", "case", "TerminalTokens", ".", "TokenNameprotected", ":", "case", "TerminalTokens", ".", "TokenNamepublic", ":", "case", "TerminalTokens", ".", "TokenNameshort", ":", "case", "TerminalTokens", ".", "TokenNamestatic", ":", "case", "TerminalTokens", ".", "TokenNamestrictfp", ":", "case", "TerminalTokens", ".", "TokenNamesuper", ":", "case", "TerminalTokens", ".", "TokenNameswitch", ":", "case", "TerminalTokens", ".", "TokenNamesynchronized", ":", "case", "TerminalTokens", ".", "TokenNamethis", ":", "case", "TerminalTokens", ".", "TokenNamethrow", ":", "case", "TerminalTokens", ".", "TokenNametransient", ":", "case", "TerminalTokens", ".", "TokenNametrue", ":", "case", "TerminalTokens", ".", "TokenNametry", ":", "case", "TerminalTokens", ".", "TokenNamevoid", ":", "case", "TerminalTokens", ".", "TokenNamevolatile", ":", "case", "TerminalTokens", ".", "TokenNamewhile", ":", "if", "(", "iToken", "==", "0", ")", "{", "pushIdentifier", "(", "true", ",", "true", ")", ";", "primitiveToken", "=", "token", ";", "consumeToken", "(", ")", ";", "break", "nextToken", ";", "}", "default", ":", "if", "(", "iToken", "==", "0", ")", "{", "if", "(", "this", ".", "identifierPtr", ">=", "0", ")", "{", "this", ".", "lastIdentifierEndPosition", "=", "(", "int", ")", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ";", "}", "return", "null", ";", "}", "if", "(", "(", "iToken", "&", "1", ")", "==", "0", ")", "{", "switch", "(", "parserKind", ")", "{", "case", "COMPLETION_PARSER", ":", "if", "(", "this", ".", "identifierPtr", ">=", "0", ")", "{", "this", ".", "lastIdentifierEndPosition", "=", "(", "int", ")", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ";", "}", "return", "syntaxRecoverQualifiedName", "(", "primitiveToken", ")", ";", "case", "DOM_PARSER", ":", "if", "(", "this", ".", "currentTokenType", "!=", "-", "1", ")", "{", "this", ".", "index", "=", "this", ".", "tokenPreviousPosition", ";", "this", ".", "scanner", ".", "currentPosition", "=", "this", ".", "tokenPreviousPosition", ";", "this", ".", "currentTokenType", "=", "-", "1", ";", "}", "default", ":", "throw", "new", "InvalidInputException", "(", ")", ";", "}", "}", "break", "nextToken", ";", "}", "}", "if", "(", "parserKind", "!=", "COMPLETION_PARSER", "&&", "this", ".", "currentTokenType", "!=", "-", "1", ")", "{", "this", ".", "index", "=", "this", ".", "tokenPreviousPosition", ";", "this", ".", "scanner", ".", "currentPosition", "=", "this", ".", "tokenPreviousPosition", ";", "this", ".", "currentTokenType", "=", "-", "1", ";", "}", "if", "(", "this", ".", "identifierPtr", ">=", "0", ")", "{", "this", ".", "lastIdentifierEndPosition", "=", "(", "int", ")", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ";", "}", "return", "createTypeReference", "(", "primitiveToken", ")", ";", "}", "protected", "boolean", "parseReference", "(", ")", "throws", "InvalidInputException", "{", "int", "currentPosition", "=", "this", ".", "scanner", ".", "currentPosition", ";", "try", "{", "Object", "typeRef", "=", "null", ";", "Object", "reference", "=", "null", ";", "int", "previousPosition", "=", "-", "1", ";", "int", "typeRefStartPosition", "=", "-", "1", ";", "nextToken", ":", "while", "(", "this", ".", "index", "<", "this", ".", "scanner", ".", "eofPosition", ")", "{", "previousPosition", "=", "this", ".", "index", ";", "int", "token", "=", "readTokenSafely", "(", ")", ";", "switch", "(", "token", ")", "{", "case", "TerminalTokens", ".", "TokenNameStringLiteral", ":", "if", "(", "typeRef", "!=", "null", ")", "break", "nextToken", ";", "consumeToken", "(", ")", ";", "int", "start", "=", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ";", "if", "(", "this", ".", "tagValue", "==", "TAG_VALUE_VALUE", ")", "{", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidValueReference", "(", "start", ",", "getTokenEndPosition", "(", ")", ",", "this", ".", "sourceParser", ".", "modifiers", ")", ";", "return", "false", ";", "}", "if", "(", "verifyEndLine", "(", "previousPosition", ")", ")", "{", "return", "createFakeReference", "(", "start", ")", ";", "}", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedText", "(", "this", ".", "scanner", ".", "currentPosition", ",", "this", ".", "lineEnd", ")", ";", "return", "false", ";", "case", "TerminalTokens", ".", "TokenNameLESS", ":", "if", "(", "typeRef", "!=", "null", ")", "break", "nextToken", ";", "consumeToken", "(", ")", ";", "start", "=", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ";", "if", "(", "parseHref", "(", ")", ")", "{", "consumeToken", "(", ")", ";", "if", "(", "this", ".", "tagValue", "==", "TAG_VALUE_VALUE", ")", "{", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidValueReference", "(", "start", ",", "getIndexPosition", "(", ")", ",", "this", ".", "sourceParser", ".", "modifiers", ")", ";", "return", "false", ";", "}", "if", "(", "verifyEndLine", "(", "previousPosition", ")", ")", "{", "return", "createFakeReference", "(", "start", ")", ";", "}", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedText", "(", "this", ".", "scanner", ".", "currentPosition", ",", "this", ".", "lineEnd", ")", ";", "}", "else", "if", "(", "this", ".", "tagValue", "==", "TAG_VALUE_VALUE", ")", "{", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidValueReference", "(", "start", ",", "getIndexPosition", "(", ")", ",", "this", ".", "sourceParser", ".", "modifiers", ")", ";", "}", "return", "false", ";", "case", "TerminalTokens", ".", "TokenNameERROR", ":", "consumeToken", "(", ")", ";", "if", "(", "this", ".", "scanner", ".", "currentCharacter", "==", "'#'", ")", "{", "reference", "=", "parseMember", "(", "typeRef", ")", ";", "if", "(", "reference", "!=", "null", ")", "{", "return", "pushSeeRef", "(", "reference", ")", ";", "}", "return", "false", ";", "}", "char", "[", "]", "currentError", "=", "this", ".", "scanner", ".", "getCurrentIdentifierSource", "(", ")", ";", "if", "(", "currentError", ".", "length", ">", "0", "&&", "currentError", "[", "0", "]", "==", "'\"'", ")", "{", "if", "(", "this", ".", "reportProblems", ")", "{", "boolean", "isUrlRef", "=", "false", ";", "if", "(", "this", ".", "tagValue", "==", "TAG_SEE_VALUE", ")", "{", "int", "length", "=", "currentError", ".", "length", ",", "i", "=", "1", ";", "while", "(", "i", "<", "length", "&&", "ScannerHelper", ".", "isLetter", "(", "currentError", "[", "i", "]", ")", ")", "{", "i", "++", ";", "}", "if", "(", "i", "<", "(", "length", "-", "2", ")", "&&", "currentError", "[", "i", "]", "==", "':'", "&&", "currentError", "[", "i", "+", "1", "]", "==", "'/'", "&&", "currentError", "[", "i", "+", "2", "]", "==", "'/'", ")", "{", "isUrlRef", "=", "true", ";", "}", "}", "if", "(", "isUrlRef", ")", "{", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidSeeUrlReference", "(", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ",", "getTokenEndPosition", "(", ")", ")", ";", "}", "else", "{", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidReference", "(", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ",", "getTokenEndPosition", "(", ")", ")", ";", "}", "}", "return", "false", ";", "}", "break", "nextToken", ";", "case", "TerminalTokens", ".", "TokenNameIdentifier", ":", "if", "(", "typeRef", "==", "null", ")", "{", "typeRefStartPosition", "=", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ";", "typeRef", "=", "parseQualifiedName", "(", "true", ")", ";", "if", "(", "this", ".", "abort", ")", "return", "false", ";", "break", ";", "}", "break", "nextToken", ";", "default", ":", "break", "nextToken", ";", "}", "}", "if", "(", "reference", "==", "null", ")", "reference", "=", "typeRef", ";", "if", "(", "reference", "==", "null", ")", "{", "this", ".", "index", "=", "this", ".", "tokenPreviousPosition", ";", "this", ".", "scanner", ".", "currentPosition", "=", "this", ".", "tokenPreviousPosition", ";", "this", ".", "currentTokenType", "=", "-", "1", ";", "if", "(", "this", ".", "tagValue", "==", "TAG_VALUE_VALUE", ")", "{", "if", "(", "(", "this", ".", "kind", "&", "DOM_PARSER", ")", "!=", "0", ")", "createTag", "(", ")", ";", "return", "true", ";", "}", "if", "(", "this", ".", "reportProblems", ")", "{", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocMissingReference", "(", "this", ".", "tagSourceStart", ",", "this", ".", "tagSourceEnd", ",", "this", ".", "sourceParser", ".", "modifiers", ")", ";", "}", "return", "false", ";", "}", "if", "(", "this", ".", "lastIdentifierEndPosition", ">", "this", ".", "javadocStart", ")", "{", "this", ".", "index", "=", "this", ".", "lastIdentifierEndPosition", "+", "1", ";", "this", ".", "scanner", ".", "currentPosition", "=", "this", ".", "index", ";", "}", "this", ".", "currentTokenType", "=", "-", "1", ";", "if", "(", "this", ".", "tagValue", "==", "TAG_VALUE_VALUE", ")", "{", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidReference", "(", "typeRefStartPosition", ",", "this", ".", "lineEnd", ")", ";", "return", "false", ";", "}", "int", "currentIndex", "=", "this", ".", "index", ";", "char", "ch", "=", "readChar", "(", ")", ";", "switch", "(", "ch", ")", "{", "case", "'('", ":", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocMissingHashCharacter", "(", "typeRefStartPosition", ",", "this", ".", "lineEnd", ",", "String", ".", "valueOf", "(", "this", ".", "source", ",", "typeRefStartPosition", ",", "this", ".", "lineEnd", "-", "typeRefStartPosition", "+", "1", ")", ")", ";", "return", "false", ";", "case", "':'", ":", "ch", "=", "readChar", "(", ")", ";", "if", "(", "ch", "==", "'/'", "&&", "ch", "==", "readChar", "(", ")", ")", "{", "if", "(", "this", ".", "reportProblems", ")", "{", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidSeeUrlReference", "(", "typeRefStartPosition", ",", "this", ".", "lineEnd", ")", ";", "return", "false", ";", "}", "}", "}", "this", ".", "index", "=", "currentIndex", ";", "if", "(", "!", "verifySpaceOrEndComment", "(", ")", ")", "{", "this", ".", "index", "=", "this", ".", "tokenPreviousPosition", ";", "this", ".", "scanner", ".", "currentPosition", "=", "this", ".", "tokenPreviousPosition", ";", "this", ".", "currentTokenType", "=", "-", "1", ";", "int", "end", "=", "this", ".", "starPosition", "==", "-", "1", "?", "this", ".", "lineEnd", ":", "this", ".", "starPosition", ";", "if", "(", "this", ".", "source", "[", "end", "]", "==", "'\\n'", ")", "end", "--", ";", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocMalformedSeeReference", "(", "typeRefStartPosition", ",", "end", ")", ";", "return", "false", ";", "}", "return", "pushSeeRef", "(", "reference", ")", ";", "}", "catch", "(", "InvalidInputException", "ex", ")", "{", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidReference", "(", "currentPosition", ",", "getTokenEndPosition", "(", ")", ")", ";", "}", "this", ".", "index", "=", "this", ".", "tokenPreviousPosition", ";", "this", ".", "scanner", ".", "currentPosition", "=", "this", ".", "tokenPreviousPosition", ";", "this", ".", "currentTokenType", "=", "-", "1", ";", "return", "false", ";", "}", "protected", "abstract", "boolean", "parseTag", "(", "int", "previousPosition", ")", "throws", "InvalidInputException", ";", "protected", "boolean", "parseThrows", "(", ")", "{", "int", "start", "=", "this", ".", "scanner", ".", "currentPosition", ";", "try", "{", "Object", "typeRef", "=", "parseQualifiedName", "(", "true", ")", ";", "if", "(", "this", ".", "abort", ")", "return", "false", ";", "if", "(", "typeRef", "==", "null", ")", "{", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocMissingThrowsClassName", "(", "this", ".", "tagSourceStart", ",", "this", ".", "tagSourceEnd", ",", "this", ".", "sourceParser", ".", "modifiers", ")", ";", "}", "else", "{", "return", "pushThrowName", "(", "typeRef", ")", ";", "}", "}", "catch", "(", "InvalidInputException", "ex", ")", "{", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidThrowsClass", "(", "start", ",", "getTokenEndPosition", "(", ")", ")", ";", "}", "return", "false", ";", "}", "protected", "char", "peekChar", "(", ")", "{", "int", "idx", "=", "this", ".", "index", ";", "char", "c", "=", "this", ".", "source", "[", "idx", "++", "]", ";", "if", "(", "c", "==", "'\\\\'", "&&", "this", ".", "source", "[", "idx", "]", "==", "'u'", ")", "{", "int", "c1", ",", "c2", ",", "c3", ",", "c4", ";", "idx", "++", ";", "while", "(", "this", ".", "source", "[", "idx", "]", "==", "'u'", ")", "idx", "++", ";", "if", "(", "!", "(", "(", "(", "c1", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "this", ".", "source", "[", "idx", "++", "]", ")", ")", ">", "15", "||", "c1", "<", "0", ")", "||", "(", "(", "c2", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "this", ".", "source", "[", "idx", "++", "]", ")", ")", ">", "15", "||", "c2", "<", "0", ")", "||", "(", "(", "c3", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "this", ".", "source", "[", "idx", "++", "]", ")", ")", ">", "15", "||", "c3", "<", "0", ")", "||", "(", "(", "c4", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "this", ".", "source", "[", "idx", "++", "]", ")", ")", ">", "15", "||", "c4", "<", "0", ")", ")", ")", "{", "c", "=", "(", "char", ")", "(", "(", "(", "c1", "*", "16", "+", "c2", ")", "*", "16", "+", "c3", ")", "*", "16", "+", "c4", ")", ";", "}", "}", "return", "c", ";", "}", "protected", "void", "pushIdentifier", "(", "boolean", "newLength", ",", "boolean", "isToken", ")", "{", "int", "stackLength", "=", "this", ".", "identifierStack", ".", "length", ";", "if", "(", "++", "this", ".", "identifierPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "identifierStack", ",", "0", ",", "this", ".", "identifierStack", "=", "new", "char", "[", "stackLength", "+", "10", "]", "[", "]", ",", "0", ",", "stackLength", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierPositionStack", ",", "0", ",", "this", ".", "identifierPositionStack", "=", "new", "long", "[", "stackLength", "+", "10", "]", ",", "0", ",", "stackLength", ")", ";", "}", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", "=", "isToken", "?", "this", ".", "scanner", ".", "getCurrentTokenSource", "(", ")", ":", "this", ".", "scanner", ".", "getCurrentIdentifierSource", "(", ")", ";", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", "=", "(", "(", "(", "long", ")", "this", ".", "scanner", ".", "startPosition", ")", "<<", "32", ")", "+", "(", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ";", "if", "(", "newLength", ")", "{", "stackLength", "=", "this", ".", "identifierLengthStack", ".", "length", ";", "if", "(", "++", "this", ".", "identifierLengthPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "identifierLengthStack", ",", "0", ",", "this", ".", "identifierLengthStack", "=", "new", "int", "[", "stackLength", "+", "10", "]", ",", "0", ",", "stackLength", ")", ";", "}", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "]", "=", "1", ";", "}", "else", "{", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "]", "++", ";", "}", "}", "protected", "void", "pushOnAstStack", "(", "Object", "node", ",", "boolean", "newLength", ")", "{", "if", "(", "node", "==", "null", ")", "{", "int", "stackLength", "=", "this", ".", "astLengthStack", ".", "length", ";", "if", "(", "++", "this", ".", "astLengthPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "astLengthStack", ",", "0", ",", "this", ".", "astLengthStack", "=", "new", "int", "[", "stackLength", "+", "AST_STACK_INCREMENT", "]", ",", "0", ",", "stackLength", ")", ";", "}", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "]", "=", "0", ";", "return", ";", "}", "int", "stackLength", "=", "this", ".", "astStack", ".", "length", ";", "if", "(", "++", "this", ".", "astPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "0", ",", "this", ".", "astStack", "=", "new", "Object", "[", "stackLength", "+", "AST_STACK_INCREMENT", "]", ",", "0", ",", "stackLength", ")", ";", "this", ".", "astPtr", "=", "stackLength", ";", "}", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", "=", "node", ";", "if", "(", "newLength", ")", "{", "stackLength", "=", "this", ".", "astLengthStack", ".", "length", ";", "if", "(", "++", "this", ".", "astLengthPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "astLengthStack", ",", "0", ",", "this", ".", "astLengthStack", "=", "new", "int", "[", "stackLength", "+", "AST_STACK_INCREMENT", "]", ",", "0", ",", "stackLength", ")", ";", "}", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "]", "=", "1", ";", "}", "else", "{", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "]", "++", ";", "}", "}", "protected", "abstract", "boolean", "pushParamName", "(", "boolean", "isTypeParam", ")", ";", "protected", "abstract", "boolean", "pushSeeRef", "(", "Object", "statement", ")", ";", "protected", "void", "pushText", "(", "int", "start", ",", "int", "end", ")", "{", "}", "protected", "abstract", "boolean", "pushThrowName", "(", "Object", "typeRef", ")", ";", "protected", "char", "readChar", "(", ")", "{", "char", "c", "=", "this", ".", "source", "[", "this", ".", "index", "++", "]", ";", "if", "(", "c", "==", "'\\\\'", "&&", "this", ".", "source", "[", "this", ".", "index", "]", "==", "'u'", ")", "{", "int", "c1", ",", "c2", ",", "c3", ",", "c4", ";", "int", "pos", "=", "this", ".", "index", ";", "this", ".", "index", "++", ";", "while", "(", "this", ".", "source", "[", "this", ".", "index", "]", "==", "'u'", ")", "this", ".", "index", "++", ";", "if", "(", "!", "(", "(", "(", "c1", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "this", ".", "source", "[", "this", ".", "index", "++", "]", ")", ")", ">", "15", "||", "c1", "<", "0", ")", "||", "(", "(", "c2", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "this", ".", "source", "[", "this", ".", "index", "++", "]", ")", ")", ">", "15", "||", "c2", "<", "0", ")", "||", "(", "(", "c3", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "this", ".", "source", "[", "this", ".", "index", "++", "]", ")", ")", ">", "15", "||", "c3", "<", "0", ")", "||", "(", "(", "c4", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "this", ".", "source", "[", "this", ".", "index", "++", "]", ")", ")", ">", "15", "||", "c4", "<", "0", ")", ")", ")", "{", "c", "=", "(", "char", ")", "(", "(", "(", "c1", "*", "16", "+", "c2", ")", "*", "16", "+", "c3", ")", "*", "16", "+", "c4", ")", ";", "}", "else", "{", "this", ".", "index", "=", "pos", ";", "}", "}", "return", "c", ";", "}", "protected", "int", "readToken", "(", ")", "throws", "InvalidInputException", "{", "if", "(", "this", ".", "currentTokenType", "<", "0", ")", "{", "this", ".", "tokenPreviousPosition", "=", "this", ".", "scanner", ".", "currentPosition", ";", "this", ".", "currentTokenType", "=", "this", ".", "scanner", ".", "getNextToken", "(", ")", ";", "if", "(", "this", ".", "scanner", ".", "currentPosition", ">", "(", "this", ".", "lineEnd", "+", "1", ")", ")", "{", "this", ".", "lineStarted", "=", "false", ";", "while", "(", "this", ".", "currentTokenType", "==", "TerminalTokens", ".", "TokenNameMULTIPLY", ")", "{", "this", ".", "currentTokenType", "=", "this", ".", "scanner", ".", "getNextToken", "(", ")", ";", "}", "}", "this", ".", "index", "=", "this", ".", "scanner", ".", "currentPosition", ";", "this", ".", "lineStarted", "=", "true", ";", "}", "return", "this", ".", "currentTokenType", ";", "}", "protected", "int", "readTokenAndConsume", "(", ")", "throws", "InvalidInputException", "{", "int", "token", "=", "readToken", "(", ")", ";", "consumeToken", "(", ")", ";", "return", "token", ";", "}", "protected", "int", "readTokenSafely", "(", ")", "{", "int", "token", "=", "TerminalTokens", ".", "TokenNameERROR", ";", "try", "{", "token", "=", "readToken", "(", ")", ";", "}", "catch", "(", "InvalidInputException", "iie", ")", "{", "}", "return", "token", ";", "}", "protected", "void", "recordInheritedPosition", "(", "long", "position", ")", "{", "if", "(", "this", ".", "inheritedPositions", "==", "null", ")", "{", "this", ".", "inheritedPositions", "=", "new", "long", "[", "INHERITED_POSITIONS_ARRAY_INCREMENT", "]", ";", "this", ".", "inheritedPositionsPtr", "=", "0", ";", "}", "else", "{", "if", "(", "this", ".", "inheritedPositionsPtr", "==", "this", ".", "inheritedPositions", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "inheritedPositions", ",", "0", ",", "this", ".", "inheritedPositions", "=", "new", "long", "[", "this", ".", "inheritedPositionsPtr", "+", "INHERITED_POSITIONS_ARRAY_INCREMENT", "]", ",", "0", ",", "this", ".", "inheritedPositionsPtr", ")", ";", "}", "}", "this", ".", "inheritedPositions", "[", "this", ".", "inheritedPositionsPtr", "++", "]", "=", "position", ";", "}", "protected", "void", "refreshInlineTagPosition", "(", "int", "previousPosition", ")", "{", "}", "protected", "void", "refreshReturnStatement", "(", ")", "{", "}", "protected", "void", "setInlineTagStarted", "(", "boolean", "started", ")", "{", "this", ".", "inlineTagStarted", "=", "started", ";", "}", "protected", "Object", "syntaxRecoverQualifiedName", "(", "int", "primitiveToken", ")", "throws", "InvalidInputException", "{", "return", "null", ";", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "int", "startPos", "=", "this", ".", "scanner", ".", "currentPosition", "<", "this", ".", "index", "?", "this", ".", "scanner", ".", "currentPosition", ":", "this", ".", "index", ";", "int", "endPos", "=", "this", ".", "scanner", ".", "currentPosition", "<", "this", ".", "index", "?", "this", ".", "index", ":", "this", ".", "scanner", ".", "currentPosition", ";", "if", "(", "startPos", "==", "this", ".", "source", ".", "length", ")", "return", "\"EOFnn\"", "+", "new", "String", "(", "this", ".", "source", ")", ";", "if", "(", "endPos", ">", "this", ".", "source", ".", "length", ")", "return", "\"\"", "+", "new", "String", "(", "this", ".", "source", ")", ";", "char", "front", "[", "]", "=", "new", "char", "[", "startPos", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "source", ",", "0", ",", "front", ",", "0", ",", "startPos", ")", ";", "int", "middleLength", "=", "(", "endPos", "-", "1", ")", "-", "startPos", "+", "1", ";", "char", "middle", "[", "]", ";", "if", "(", "middleLength", ">", "-", "1", ")", "{", "middle", "=", "new", "char", "[", "middleLength", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "source", ",", "startPos", ",", "middle", ",", "0", ",", "middleLength", ")", ";", "}", "else", "{", "middle", "=", "CharOperation", ".", "NO_CHAR", ";", "}", "char", "end", "[", "]", "=", "new", "char", "[", "this", ".", "source", ".", "length", "-", "(", "endPos", "-", "1", ")", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "source", ",", "(", "endPos", "-", "1", ")", "+", "1", ",", "end", ",", "0", ",", "this", ".", "source", ".", "length", "-", "(", "endPos", "-", "1", ")", "-", "1", ")", ";", "buffer", ".", "append", "(", "front", ")", ";", "if", "(", "this", ".", "scanner", ".", "currentPosition", "<", "this", ".", "index", ")", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "}", "else", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "}", "buffer", ".", "append", "(", "middle", ")", ";", "if", "(", "this", ".", "scanner", ".", "currentPosition", "<", "this", ".", "index", ")", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "}", "else", "{", "buffer", ".", "append", "(", "\"\"", ")", ";", "}", "buffer", ".", "append", "(", "end", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}", "protected", "abstract", "void", "updateDocComment", "(", ")", ";", "protected", "void", "updateLineEnd", "(", ")", "{", "while", "(", "this", ".", "index", ">", "(", "this", ".", "lineEnd", "+", "1", ")", ")", "{", "if", "(", "this", ".", "linePtr", "<", "this", ".", "lastLinePtr", ")", "{", "this", ".", "lineEnd", "=", "this", ".", "scanner", ".", "getLineEnd", "(", "++", "this", ".", "linePtr", ")", "-", "1", ";", "}", "else", "{", "this", ".", "lineEnd", "=", "this", ".", "javadocEnd", ";", "return", ";", "}", "}", "}", "protected", "boolean", "verifyEndLine", "(", "int", "textPosition", ")", "{", "boolean", "domParser", "=", "(", "this", ".", "kind", "&", "DOM_PARSER", ")", "!=", "0", ";", "if", "(", "this", ".", "inlineTagStarted", ")", "{", "if", "(", "peekChar", "(", ")", "==", "'}'", ")", "{", "if", "(", "domParser", ")", "{", "createTag", "(", ")", ";", "pushText", "(", "textPosition", ",", "this", ".", "starPosition", ")", ";", "}", "return", "true", ";", "}", "return", "false", ";", "}", "int", "startPosition", "=", "this", ".", "index", ";", "int", "previousPosition", "=", "this", ".", "index", ";", "this", ".", "starPosition", "=", "-", "1", ";", "char", "ch", "=", "readChar", "(", ")", ";", "nextChar", ":", "while", "(", "true", ")", "{", "switch", "(", "ch", ")", "{", "case", "'\\r'", ":", "case", "'\\n'", ":", "if", "(", "domParser", ")", "{", "createTag", "(", ")", ";", "pushText", "(", "textPosition", ",", "previousPosition", ")", ";", "}", "this", ".", "index", "=", "previousPosition", ";", "return", "true", ";", "case", "'", "'", ":", "case", "'", "'", ":", "case", "'\\t'", ":", "if", "(", "this", ".", "starPosition", ">=", "0", ")", "break", "nextChar", ";", "break", ";", "case", "'*'", ":", "this", ".", "starPosition", "=", "previousPosition", ";", "break", ";", "case", "'/'", ":", "if", "(", "this", ".", "starPosition", ">=", "textPosition", ")", "{", "if", "(", "domParser", ")", "{", "createTag", "(", ")", ";", "pushText", "(", "textPosition", ",", "this", ".", "starPosition", ")", ";", "}", "return", "true", ";", "}", "break", "nextChar", ";", "default", ":", "break", "nextChar", ";", "}", "previousPosition", "=", "this", ".", "index", ";", "ch", "=", "readChar", "(", ")", ";", "}", "this", ".", "index", "=", "startPosition", ";", "return", "false", ";", "}", "protected", "boolean", "verifySpaceOrEndComment", "(", ")", "{", "this", ".", "starPosition", "=", "-", "1", ";", "int", "startPosition", "=", "this", ".", "index", ";", "char", "ch", "=", "peekChar", "(", ")", ";", "switch", "(", "ch", ")", "{", "case", "'}'", ":", "return", "this", ".", "inlineTagStarted", ";", "default", ":", "if", "(", "ScannerHelper", ".", "isWhitespace", "(", "ch", ")", ")", "{", "return", "true", ";", "}", "}", "int", "previousPosition", "=", "this", ".", "index", ";", "ch", "=", "readChar", "(", ")", ";", "while", "(", "this", ".", "index", "<", "this", ".", "source", ".", "length", ")", "{", "switch", "(", "ch", ")", "{", "case", "'*'", ":", "this", ".", "starPosition", "=", "previousPosition", ";", "break", ";", "case", "'/'", ":", "if", "(", "this", ".", "starPosition", ">=", "startPosition", ")", "{", "return", "true", ";", "}", "default", ":", "this", ".", "index", "=", "startPosition", ";", "return", "false", ";", "}", "previousPosition", "=", "this", ".", "index", ";", "ch", "=", "readChar", "(", ")", ";", "}", "this", ".", "index", "=", "startPosition", ";", "return", "false", ";", "}", "}", "</s>" ]
3,339
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "public", "interface", "ParserBasicInformation", "{", "int", "ERROR_SYMBOL", "=", "110", ",", "MAX_NAME_LENGTH", "=", "41", ",", "NUM_STATES", "=", "1008", ",", "NT_OFFSET", "=", "110", ",", "SCOPE_UBOUND", "=", "137", ",", "SCOPE_SIZE", "=", "138", ",", "LA_STATE_OFFSET", "=", "12379", ",", "MAX_LA", "=", "1", ",", "NUM_RULES", "=", "723", ",", "NUM_TERMINALS", "=", "110", ",", "NUM_NON_TERMINALS", "=", "324", ",", "NUM_SYMBOLS", "=", "434", ",", "START_STATE", "=", "1260", ",", "EOFT_SYMBOL", "=", "69", ",", "EOLT_SYMBOL", "=", "69", ",", "ACCEPT_ACTION", "=", "12378", ",", "ERROR_ACTION", "=", "12379", ";", "}", "</s>" ]
3,340
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "public", "interface", "TerminalTokens", "{", "int", "TokenNameWHITESPACE", "=", "1000", ",", "TokenNameCOMMENT_LINE", "=", "1001", ",", "TokenNameCOMMENT_BLOCK", "=", "1002", ",", "TokenNameCOMMENT_JAVADOC", "=", "1003", ";", "int", "TokenNameIdentifier", "=", "26", ",", "TokenNameabstract", "=", "56", ",", "TokenNameassert", "=", "74", ",", "TokenNameboolean", "=", "32", ",", "TokenNamebreak", "=", "75", ",", "TokenNamebyte", "=", "33", ",", "TokenNamecase", "=", "102", ",", "TokenNamecatch", "=", "100", ",", "TokenNamechar", "=", "34", ",", "TokenNameclass", "=", "72", ",", "TokenNamecontinue", "=", "76", ",", "TokenNameconst", "=", "108", ",", "TokenNamedefault", "=", "97", ",", "TokenNamedo", "=", "77", ",", "TokenNamedouble", "=", "35", ",", "TokenNameelse", "=", "104", ",", "TokenNameenum", "=", "98", ",", "TokenNameextends", "=", "99", ",", "TokenNamefalse", "=", "44", ",", "TokenNamefinal", "=", "57", ",", "TokenNamefinally", "=", "103", ",", "TokenNamefloat", "=", "36", ",", "TokenNamefor", "=", "78", ",", "TokenNamegoto", "=", "109", ",", "TokenNameif", "=", "79", ",", "TokenNameimplements", "=", "106", ",", "TokenNameimport", "=", "101", ",", "TokenNameinstanceof", "=", "13", ",", "TokenNameint", "=", "37", ",", "TokenNameinterface", "=", "95", ",", "TokenNamelong", "=", "38", ",", "TokenNamenative", "=", "58", ",", "TokenNamenew", "=", "43", ",", "TokenNamenull", "=", "45", ",", "TokenNamepackage", "=", "96", ",", "TokenNameprivate", "=", "59", ",", "TokenNameprotected", "=", "60", ",", "TokenNamepublic", "=", "61", ",", "TokenNamereturn", "=", "80", ",", "TokenNameshort", "=", "39", ",", "TokenNamestatic", "=", "54", ",", "TokenNamestrictfp", "=", "62", ",", "TokenNamesuper", "=", "41", ",", "TokenNameswitch", "=", "81", ",", "TokenNamesynchronized", "=", "55", ",", "TokenNamethis", "=", "42", ",", "TokenNamethrow", "=", "82", ",", "TokenNamethrows", "=", "105", ",", "TokenNametransient", "=", "63", ",", "TokenNametrue", "=", "46", ",", "TokenNametry", "=", "83", ",", "TokenNamevoid", "=", "40", ",", "TokenNamevolatile", "=", "64", ",", "TokenNamewhile", "=", "73", ",", "TokenNameIntegerLiteral", "=", "47", ",", "TokenNameLongLiteral", "=", "48", ",", "TokenNameFloatingPointLiteral", "=", "49", ",", "TokenNameDoubleLiteral", "=", "50", ",", "TokenNameCharacterLiteral", "=", "51", ",", "TokenNameStringLiteral", "=", "52", ",", "TokenNamePLUS_PLUS", "=", "8", ",", "TokenNameMINUS_MINUS", "=", "9", ",", "TokenNameEQUAL_EQUAL", "=", "18", ",", "TokenNameLESS_EQUAL", "=", "14", ",", "TokenNameGREATER_EQUAL", "=", "15", ",", "TokenNameNOT_EQUAL", "=", "19", ",", "TokenNameLEFT_SHIFT", "=", "17", ",", "TokenNameRIGHT_SHIFT", "=", "10", ",", "TokenNameUNSIGNED_RIGHT_SHIFT", "=", "12", ",", "TokenNamePLUS_EQUAL", "=", "84", ",", "TokenNameMINUS_EQUAL", "=", "85", ",", "TokenNameMULTIPLY_EQUAL", "=", "86", ",", "TokenNameDIVIDE_EQUAL", "=", "87", ",", "TokenNameAND_EQUAL", "=", "88", ",", "TokenNameOR_EQUAL", "=", "89", ",", "TokenNameXOR_EQUAL", "=", "90", ",", "TokenNameREMAINDER_EQUAL", "=", "91", ",", "TokenNameLEFT_SHIFT_EQUAL", "=", "92", ",", "TokenNameRIGHT_SHIFT_EQUAL", "=", "93", ",", "TokenNameUNSIGNED_RIGHT_SHIFT_EQUAL", "=", "94", ",", "TokenNameOR_OR", "=", "25", ",", "TokenNameAND_AND", "=", "24", ",", "TokenNamePLUS", "=", "1", ",", "TokenNameMINUS", "=", "2", ",", "TokenNameNOT", "=", "66", ",", "TokenNameREMAINDER", "=", "5", ",", "TokenNameXOR", "=", "21", ",", "TokenNameAND", "=", "20", ",", "TokenNameMULTIPLY", "=", "4", ",", "TokenNameOR", "=", "22", ",", "TokenNameTWIDDLE", "=", "67", ",", "TokenNameDIVIDE", "=", "6", ",", "TokenNameGREATER", "=", "11", ",", "TokenNameLESS", "=", "7", ",", "TokenNameLPAREN", "=", "29", ",", "TokenNameRPAREN", "=", "28", ",", "TokenNameLBRACE", "=", "68", ",", "TokenNameRBRACE", "=", "31", ",", "TokenNameLBRACKET", "=", "16", ",", "TokenNameRBRACKET", "=", "70", ",", "TokenNameSEMICOLON", "=", "27", ",", "TokenNameQUESTION", "=", "23", ",", "TokenNameCOLON", "=", "65", ",", "TokenNameCOMMA", "=", "30", ",", "TokenNameDOT", "=", "3", ",", "TokenNameEQUAL", "=", "71", ",", "TokenNameAT", "=", "53", ",", "TokenNameELLIPSIS", "=", "107", ",", "TokenNameEOF", "=", "69", ",", "TokenNameERROR", "=", "110", ";", "}", "</s>" ]
3,341
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ImportReference", ";", "public", "class", "RecoveredImport", "extends", "RecoveredElement", "{", "public", "ImportReference", "importReference", ";", "public", "RecoveredImport", "(", "ImportReference", "importReference", ",", "RecoveredElement", "parent", ",", "int", "bracketBalance", ")", "{", "super", "(", "parent", ",", "bracketBalance", ")", ";", "this", ".", "importReference", "=", "importReference", ";", "}", "public", "ASTNode", "parseTree", "(", ")", "{", "return", "this", ".", "importReference", ";", "}", "public", "int", "sourceEnd", "(", ")", "{", "return", "this", ".", "importReference", ".", "declarationSourceEnd", ";", "}", "public", "String", "toString", "(", "int", "tab", ")", "{", "return", "tabString", "(", "tab", ")", "+", "\"\"", "+", "this", ".", "importReference", ".", "toString", "(", ")", ";", "}", "public", "ImportReference", "updatedImportReference", "(", ")", "{", "return", "this", ".", "importReference", ";", "}", "public", "void", "updateParseTree", "(", ")", "{", "updatedImportReference", "(", ")", ";", "}", "public", "void", "updateSourceEndIfNecessary", "(", "int", "bodyStart", ",", "int", "bodyEnd", ")", "{", "if", "(", "this", ".", "importReference", ".", "declarationSourceEnd", "==", "0", ")", "{", "this", ".", "importReference", ".", "declarationSourceEnd", "=", "bodyEnd", ";", "this", ".", "importReference", ".", "declarationEnd", "=", "bodyEnd", ";", "}", "}", "}", "</s>" ]
3,342
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "import", "java", ".", "util", ".", "HashSet", ";", "import", "java", ".", "util", ".", "Set", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "AbstractVariableDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Annotation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ArrayQualifiedTypeReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ArrayTypeReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Expression", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "FieldDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Statement", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeDeclaration", ";", "public", "class", "RecoveredField", "extends", "RecoveredElement", "{", "public", "FieldDeclaration", "fieldDeclaration", ";", "boolean", "alreadyCompletedFieldInitialization", ";", "public", "RecoveredAnnotation", "[", "]", "annotations", ";", "public", "int", "annotationCount", ";", "public", "int", "modifiers", ";", "public", "int", "modifiersStart", ";", "public", "RecoveredType", "[", "]", "anonymousTypes", ";", "public", "int", "anonymousTypeCount", ";", "public", "RecoveredField", "(", "FieldDeclaration", "fieldDeclaration", ",", "RecoveredElement", "parent", ",", "int", "bracketBalance", ")", "{", "this", "(", "fieldDeclaration", ",", "parent", ",", "bracketBalance", ",", "null", ")", ";", "}", "public", "RecoveredField", "(", "FieldDeclaration", "fieldDeclaration", ",", "RecoveredElement", "parent", ",", "int", "bracketBalance", ",", "Parser", "parser", ")", "{", "super", "(", "parent", ",", "bracketBalance", ",", "parser", ")", ";", "this", ".", "fieldDeclaration", "=", "fieldDeclaration", ";", "this", ".", "alreadyCompletedFieldInitialization", "=", "fieldDeclaration", ".", "initialization", "!=", "null", ";", "}", "public", "RecoveredElement", "add", "(", "FieldDeclaration", "addedfieldDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "resetPendingModifiers", "(", ")", ";", "if", "(", "this", ".", "parent", "==", "null", ")", "return", "this", ";", "if", "(", "this", ".", "fieldDeclaration", ".", "declarationSourceStart", "==", "addedfieldDeclaration", ".", "declarationSourceStart", ")", "{", "if", "(", "this", ".", "fieldDeclaration", ".", "initialization", "!=", "null", ")", "{", "this", ".", "updateSourceEndIfNecessary", "(", "this", ".", "fieldDeclaration", ".", "initialization", ".", "sourceEnd", ")", ";", "}", "else", "{", "this", ".", "updateSourceEndIfNecessary", "(", "this", ".", "fieldDeclaration", ".", "sourceEnd", ")", ";", "}", "}", "else", "{", "this", ".", "updateSourceEndIfNecessary", "(", "previousAvailableLineEnd", "(", "addedfieldDeclaration", ".", "declarationSourceStart", "-", "1", ")", ")", ";", "}", "return", "this", ".", "parent", ".", "add", "(", "addedfieldDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "public", "RecoveredElement", "add", "(", "Statement", "statement", ",", "int", "bracketBalanceValue", ")", "{", "if", "(", "this", ".", "alreadyCompletedFieldInitialization", "||", "!", "(", "statement", "instanceof", "Expression", ")", ")", "{", "return", "super", ".", "add", "(", "statement", ",", "bracketBalanceValue", ")", ";", "}", "else", "{", "if", "(", "statement", ".", "sourceEnd", ">", "0", ")", "this", ".", "alreadyCompletedFieldInitialization", "=", "true", ";", "this", ".", "fieldDeclaration", ".", "initialization", "=", "(", "Expression", ")", "statement", ";", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", "=", "statement", ".", "sourceEnd", ";", "this", ".", "fieldDeclaration", ".", "declarationEnd", "=", "statement", ".", "sourceEnd", ";", "return", "this", ";", "}", "}", "public", "RecoveredElement", "add", "(", "TypeDeclaration", "typeDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "if", "(", "this", ".", "alreadyCompletedFieldInitialization", "||", "(", "(", "typeDeclaration", ".", "bits", "&", "ASTNode", ".", "IsAnonymousType", ")", "==", "0", ")", "||", "(", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", "!=", "0", "&&", "typeDeclaration", ".", "sourceStart", ">", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", ")", ")", "{", "return", "super", ".", "add", "(", "typeDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "else", "{", "if", "(", "this", ".", "anonymousTypes", "==", "null", ")", "{", "this", ".", "anonymousTypes", "=", "new", "RecoveredType", "[", "5", "]", ";", "this", ".", "anonymousTypeCount", "=", "0", ";", "}", "else", "{", "if", "(", "this", ".", "anonymousTypeCount", "==", "this", ".", "anonymousTypes", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "anonymousTypes", ",", "0", ",", "(", "this", ".", "anonymousTypes", "=", "new", "RecoveredType", "[", "2", "*", "this", ".", "anonymousTypeCount", "]", ")", ",", "0", ",", "this", ".", "anonymousTypeCount", ")", ";", "}", "}", "RecoveredType", "element", "=", "new", "RecoveredType", "(", "typeDeclaration", ",", "this", ",", "bracketBalanceValue", ")", ";", "this", ".", "anonymousTypes", "[", "this", ".", "anonymousTypeCount", "++", "]", "=", "element", ";", "return", "element", ";", "}", "}", "public", "void", "attach", "(", "RecoveredAnnotation", "[", "]", "annots", ",", "int", "annotCount", ",", "int", "mods", ",", "int", "modsSourceStart", ")", "{", "if", "(", "annotCount", ">", "0", ")", "{", "Annotation", "[", "]", "existingAnnotations", "=", "this", ".", "fieldDeclaration", ".", "annotations", ";", "if", "(", "existingAnnotations", "!=", "null", ")", "{", "this", ".", "annotations", "=", "new", "RecoveredAnnotation", "[", "annotCount", "]", ";", "this", ".", "annotationCount", "=", "0", ";", "next", ":", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotCount", ";", "i", "++", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "existingAnnotations", ".", "length", ";", "j", "++", ")", "{", "if", "(", "annots", "[", "i", "]", ".", "annotation", "==", "existingAnnotations", "[", "j", "]", ")", "continue", "next", ";", "}", "this", ".", "annotations", "[", "this", ".", "annotationCount", "++", "]", "=", "annots", "[", "i", "]", ";", "}", "}", "else", "{", "this", ".", "annotations", "=", "annots", ";", "this", ".", "annotationCount", "=", "annotCount", ";", "}", "}", "if", "(", "mods", "!=", "0", ")", "{", "this", ".", "modifiers", "=", "mods", ";", "this", ".", "modifiersStart", "=", "modsSourceStart", ";", "}", "}", "public", "ASTNode", "parseTree", "(", ")", "{", "return", "this", ".", "fieldDeclaration", ";", "}", "public", "int", "sourceEnd", "(", ")", "{", "return", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", ";", "}", "public", "String", "toString", "(", "int", "tab", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "tabString", "(", "tab", ")", ")", ";", "buffer", ".", "append", "(", "\"\"", ")", ";", "this", ".", "fieldDeclaration", ".", "print", "(", "tab", "+", "1", ",", "buffer", ")", ";", "if", "(", "this", ".", "annotations", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "annotationCount", ";", "i", "++", ")", "{", "buffer", ".", "append", "(", "\"n\"", ")", ";", "buffer", ".", "append", "(", "this", ".", "annotations", "[", "i", "]", ".", "toString", "(", "tab", "+", "1", ")", ")", ";", "}", "}", "if", "(", "this", ".", "anonymousTypes", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "anonymousTypeCount", ";", "i", "++", ")", "{", "buffer", ".", "append", "(", "\"n\"", ")", ";", "buffer", ".", "append", "(", "this", ".", "anonymousTypes", "[", "i", "]", ".", "toString", "(", "tab", "+", "1", ")", ")", ";", "}", "}", "return", "buffer", ".", "toString", "(", ")", ";", "}", "public", "FieldDeclaration", "updatedFieldDeclaration", "(", "int", "depth", ",", "Set", "knownTypes", ")", "{", "if", "(", "this", ".", "modifiers", "!=", "0", ")", "{", "this", ".", "fieldDeclaration", ".", "modifiers", "|=", "this", ".", "modifiers", ";", "if", "(", "this", ".", "modifiersStart", "<", "this", ".", "fieldDeclaration", ".", "declarationSourceStart", ")", "{", "this", ".", "fieldDeclaration", ".", "declarationSourceStart", "=", "this", ".", "modifiersStart", ";", "}", "}", "if", "(", "this", ".", "annotationCount", ">", "0", ")", "{", "int", "existingCount", "=", "this", ".", "fieldDeclaration", ".", "annotations", "==", "null", "?", "0", ":", "this", ".", "fieldDeclaration", ".", "annotations", ".", "length", ";", "Annotation", "[", "]", "annotationReferences", "=", "new", "Annotation", "[", "existingCount", "+", "this", ".", "annotationCount", "]", ";", "if", "(", "existingCount", ">", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "fieldDeclaration", ".", "annotations", ",", "0", ",", "annotationReferences", ",", "this", ".", "annotationCount", ",", "existingCount", ")", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "annotationCount", ";", "i", "++", ")", "{", "annotationReferences", "[", "i", "]", "=", "this", ".", "annotations", "[", "i", "]", ".", "updatedAnnotationReference", "(", ")", ";", "}", "this", ".", "fieldDeclaration", ".", "annotations", "=", "annotationReferences", ";", "int", "start", "=", "this", ".", "annotations", "[", "0", "]", ".", "annotation", ".", "sourceStart", ";", "if", "(", "start", "<", "this", ".", "fieldDeclaration", ".", "declarationSourceStart", ")", "{", "this", ".", "fieldDeclaration", ".", "declarationSourceStart", "=", "start", ";", "}", "}", "if", "(", "this", ".", "anonymousTypes", "!=", "null", ")", "{", "if", "(", "this", ".", "fieldDeclaration", ".", "initialization", "==", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "anonymousTypeCount", ";", "i", "++", ")", "{", "RecoveredType", "recoveredType", "=", "this", ".", "anonymousTypes", "[", "i", "]", ";", "TypeDeclaration", "typeDeclaration", "=", "recoveredType", ".", "typeDeclaration", ";", "if", "(", "typeDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "{", "typeDeclaration", ".", "declarationSourceEnd", "=", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", ";", "typeDeclaration", ".", "bodyEnd", "=", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", ";", "}", "if", "(", "recoveredType", ".", "preserveContent", ")", "{", "TypeDeclaration", "anonymousType", "=", "recoveredType", ".", "updatedTypeDeclaration", "(", "depth", "+", "1", ",", "knownTypes", ")", ";", "if", "(", "anonymousType", "!=", "null", ")", "{", "this", ".", "fieldDeclaration", ".", "initialization", "=", "anonymousType", ".", "allocation", ";", "int", "end", "=", "anonymousType", ".", "declarationSourceEnd", ";", "if", "(", "end", ">", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", ")", "{", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", "=", "end", ";", "this", ".", "fieldDeclaration", ".", "declarationEnd", "=", "end", ";", "}", "}", "}", "}", "if", "(", "this", ".", "anonymousTypeCount", ">", "0", ")", "this", ".", "fieldDeclaration", ".", "bits", "|=", "ASTNode", ".", "HasLocalType", ";", "}", "else", "if", "(", "this", ".", "fieldDeclaration", ".", "getKind", "(", ")", "==", "AbstractVariableDeclaration", ".", "ENUM_CONSTANT", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "anonymousTypeCount", ";", "i", "++", ")", "{", "RecoveredType", "recoveredType", "=", "this", ".", "anonymousTypes", "[", "i", "]", ";", "TypeDeclaration", "typeDeclaration", "=", "recoveredType", ".", "typeDeclaration", ";", "if", "(", "typeDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "{", "typeDeclaration", ".", "declarationSourceEnd", "=", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", ";", "typeDeclaration", ".", "bodyEnd", "=", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", ";", "}", "recoveredType", ".", "updatedTypeDeclaration", "(", "depth", ",", "knownTypes", ")", ";", "}", "}", "}", "return", "this", ".", "fieldDeclaration", ";", "}", "public", "RecoveredElement", "updateOnClosingBrace", "(", "int", "braceStart", ",", "int", "braceEnd", ")", "{", "if", "(", "this", ".", "bracketBalance", ">", "0", ")", "{", "this", ".", "bracketBalance", "--", ";", "if", "(", "this", ".", "bracketBalance", "==", "0", ")", "{", "if", "(", "this", ".", "fieldDeclaration", ".", "getKind", "(", ")", "==", "AbstractVariableDeclaration", ".", "ENUM_CONSTANT", ")", "{", "updateSourceEndIfNecessary", "(", "braceEnd", "-", "1", ")", ";", "return", "this", ".", "parent", ";", "}", "else", "{", "if", "(", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", ">", "0", ")", "this", ".", "alreadyCompletedFieldInitialization", "=", "true", ";", "}", "}", "return", "this", ";", "}", "else", "if", "(", "this", ".", "bracketBalance", "==", "0", ")", "{", "this", ".", "alreadyCompletedFieldInitialization", "=", "true", ";", "updateSourceEndIfNecessary", "(", "braceEnd", "-", "1", ")", ";", "}", "if", "(", "this", ".", "parent", "!=", "null", ")", "{", "return", "this", ".", "parent", ".", "updateOnClosingBrace", "(", "braceStart", ",", "braceEnd", ")", ";", "}", "return", "this", ";", "}", "public", "RecoveredElement", "updateOnOpeningBrace", "(", "int", "braceStart", ",", "int", "braceEnd", ")", "{", "if", "(", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "{", "if", "(", "this", ".", "fieldDeclaration", ".", "type", "instanceof", "ArrayTypeReference", "||", "this", ".", "fieldDeclaration", ".", "type", "instanceof", "ArrayQualifiedTypeReference", ")", "{", "if", "(", "!", "this", ".", "alreadyCompletedFieldInitialization", ")", "{", "this", ".", "bracketBalance", "++", ";", "return", "null", ";", "}", "}", "else", "{", "this", ".", "bracketBalance", "++", ";", "return", "null", ";", "}", "}", "if", "(", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", "==", "0", "&&", "this", ".", "fieldDeclaration", ".", "getKind", "(", ")", "==", "AbstractVariableDeclaration", ".", "ENUM_CONSTANT", ")", "{", "this", ".", "bracketBalance", "++", ";", "return", "null", ";", "}", "this", ".", "updateSourceEndIfNecessary", "(", "braceStart", "-", "1", ",", "braceEnd", "-", "1", ")", ";", "return", "this", ".", "parent", ".", "updateOnOpeningBrace", "(", "braceStart", ",", "braceEnd", ")", ";", "}", "public", "void", "updateParseTree", "(", ")", "{", "updatedFieldDeclaration", "(", "0", ",", "new", "HashSet", "(", ")", ")", ";", "}", "public", "void", "updateSourceEndIfNecessary", "(", "int", "bodyStart", ",", "int", "bodyEnd", ")", "{", "if", "(", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "{", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", "=", "bodyEnd", ";", "this", ".", "fieldDeclaration", ".", "declarationEnd", "=", "bodyEnd", ";", "}", "}", "}", "</s>" ]
3,343
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "public", "class", "RecoveryScannerData", "{", "public", "int", "insertedTokensPtr", "=", "-", "1", ";", "public", "int", "[", "]", "[", "]", "insertedTokens", ";", "public", "int", "[", "]", "insertedTokensPosition", ";", "public", "boolean", "[", "]", "insertedTokenUsed", ";", "public", "int", "replacedTokensPtr", "=", "-", "1", ";", "public", "int", "[", "]", "[", "]", "replacedTokens", ";", "public", "int", "[", "]", "replacedTokensStart", ";", "public", "int", "[", "]", "replacedTokensEnd", ";", "public", "boolean", "[", "]", "replacedTokenUsed", ";", "public", "int", "removedTokensPtr", "=", "-", "1", ";", "public", "int", "[", "]", "removedTokensStart", ";", "public", "int", "[", "]", "removedTokensEnd", ";", "public", "boolean", "[", "]", "removedTokenUsed", ";", "public", "RecoveryScannerData", "removeUnused", "(", ")", "{", "if", "(", "this", ".", "insertedTokens", "!=", "null", ")", "{", "int", "newInsertedTokensPtr", "=", "-", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "this", ".", "insertedTokensPtr", ";", "i", "++", ")", "{", "if", "(", "this", ".", "insertedTokenUsed", "[", "i", "]", ")", "{", "newInsertedTokensPtr", "++", ";", "this", ".", "insertedTokens", "[", "newInsertedTokensPtr", "]", "=", "this", ".", "insertedTokens", "[", "i", "]", ";", "this", ".", "insertedTokensPosition", "[", "newInsertedTokensPtr", "]", "=", "this", ".", "insertedTokensPosition", "[", "i", "]", ";", "this", ".", "insertedTokenUsed", "[", "newInsertedTokensPtr", "]", "=", "this", ".", "insertedTokenUsed", "[", "i", "]", ";", "}", "}", "this", ".", "insertedTokensPtr", "=", "newInsertedTokensPtr", ";", "}", "if", "(", "this", ".", "replacedTokens", "!=", "null", ")", "{", "int", "newReplacedTokensPtr", "=", "-", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "this", ".", "replacedTokensPtr", ";", "i", "++", ")", "{", "if", "(", "this", ".", "replacedTokenUsed", "[", "i", "]", ")", "{", "newReplacedTokensPtr", "++", ";", "this", ".", "replacedTokens", "[", "newReplacedTokensPtr", "]", "=", "this", ".", "replacedTokens", "[", "i", "]", ";", "this", ".", "replacedTokensStart", "[", "newReplacedTokensPtr", "]", "=", "this", ".", "replacedTokensStart", "[", "i", "]", ";", "this", ".", "replacedTokensEnd", "[", "newReplacedTokensPtr", "]", "=", "this", ".", "replacedTokensEnd", "[", "i", "]", ";", "this", ".", "replacedTokenUsed", "[", "newReplacedTokensPtr", "]", "=", "this", ".", "replacedTokenUsed", "[", "i", "]", ";", "}", "}", "this", ".", "replacedTokensPtr", "=", "newReplacedTokensPtr", ";", "}", "if", "(", "this", ".", "removedTokensStart", "!=", "null", ")", "{", "int", "newRemovedTokensPtr", "=", "-", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "this", ".", "removedTokensPtr", ";", "i", "++", ")", "{", "if", "(", "this", ".", "removedTokenUsed", "[", "i", "]", ")", "{", "newRemovedTokensPtr", "++", ";", "this", ".", "removedTokensStart", "[", "newRemovedTokensPtr", "]", "=", "this", ".", "removedTokensStart", "[", "i", "]", ";", "this", ".", "removedTokensEnd", "[", "newRemovedTokensPtr", "]", "=", "this", ".", "removedTokensEnd", "[", "i", "]", ";", "this", ".", "removedTokenUsed", "[", "newRemovedTokensPtr", "]", "=", "this", ".", "removedTokenUsed", "[", "i", "]", ";", "}", "}", "this", ".", "removedTokensPtr", "=", "newRemovedTokensPtr", ";", "}", "return", "this", ";", "}", "}", "</s>" ]
3,344
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "InvalidInputException", ";", "public", "class", "RecoveryScanner", "extends", "Scanner", "{", "public", "static", "final", "char", "[", "]", "FAKE_IDENTIFIER", "=", "\"$missing$\"", ".", "toCharArray", "(", ")", ";", "private", "RecoveryScannerData", "data", ";", "private", "int", "[", "]", "pendingTokens", ";", "private", "int", "pendingTokensPtr", "=", "-", "1", ";", "private", "char", "[", "]", "fakeTokenSource", "=", "null", ";", "private", "boolean", "isInserted", "=", "true", ";", "private", "boolean", "precededByRemoved", "=", "false", ";", "private", "int", "skipNextInsertedTokens", "=", "-", "1", ";", "public", "boolean", "record", "=", "true", ";", "public", "RecoveryScanner", "(", "Scanner", "scanner", ",", "RecoveryScannerData", "data", ")", "{", "super", "(", "false", ",", "scanner", ".", "tokenizeWhiteSpace", ",", "scanner", ".", "checkNonExternalizedStringLiterals", ",", "scanner", ".", "sourceLevel", ",", "scanner", ".", "complianceLevel", ",", "scanner", ".", "taskTags", ",", "scanner", ".", "taskPriorities", ",", "scanner", ".", "isTaskCaseSensitive", ")", ";", "setData", "(", "data", ")", ";", "}", "public", "RecoveryScanner", "(", "boolean", "tokenizeWhiteSpace", ",", "boolean", "checkNonExternalizedStringLiterals", ",", "long", "sourceLevel", ",", "long", "complianceLevel", ",", "char", "[", "]", "[", "]", "taskTags", ",", "char", "[", "]", "[", "]", "taskPriorities", ",", "boolean", "isTaskCaseSensitive", ",", "RecoveryScannerData", "data", ")", "{", "super", "(", "false", ",", "tokenizeWhiteSpace", ",", "checkNonExternalizedStringLiterals", ",", "sourceLevel", ",", "complianceLevel", ",", "taskTags", ",", "taskPriorities", ",", "isTaskCaseSensitive", ")", ";", "setData", "(", "data", ")", ";", "}", "public", "void", "insertToken", "(", "int", "token", ",", "int", "completedToken", ",", "int", "position", ")", "{", "insertTokens", "(", "new", "int", "[", "]", "{", "token", "}", ",", "completedToken", ",", "position", ")", ";", "}", "private", "int", "[", "]", "reverse", "(", "int", "[", "]", "tokens", ")", "{", "int", "length", "=", "tokens", ".", "length", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "length", "/", "2", ";", "i", "<", "max", ";", "i", "++", ")", "{", "int", "tmp", "=", "tokens", "[", "i", "]", ";", "tokens", "[", "i", "]", "=", "tokens", "[", "length", "-", "i", "-", "1", "]", ";", "tokens", "[", "length", "-", "i", "-", "1", "]", "=", "tmp", ";", "}", "return", "tokens", ";", "}", "public", "void", "insertTokens", "(", "int", "[", "]", "tokens", ",", "int", "completedToken", ",", "int", "position", ")", "{", "if", "(", "!", "this", ".", "record", ")", "return", ";", "if", "(", "completedToken", ">", "-", "1", "&&", "Parser", ".", "statements_recovery_filter", "[", "completedToken", "]", "!=", "0", ")", "return", ";", "this", ".", "data", ".", "insertedTokensPtr", "++", ";", "if", "(", "this", ".", "data", ".", "insertedTokens", "==", "null", ")", "{", "this", ".", "data", ".", "insertedTokens", "=", "new", "int", "[", "10", "]", "[", "]", ";", "this", ".", "data", ".", "insertedTokensPosition", "=", "new", "int", "[", "10", "]", ";", "this", ".", "data", ".", "insertedTokenUsed", "=", "new", "boolean", "[", "10", "]", ";", "}", "else", "if", "(", "this", ".", "data", ".", "insertedTokens", ".", "length", "==", "this", ".", "data", ".", "insertedTokensPtr", ")", "{", "int", "length", "=", "this", ".", "data", ".", "insertedTokens", ".", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "data", ".", "insertedTokens", ",", "0", ",", "this", ".", "data", ".", "insertedTokens", "=", "new", "int", "[", "length", "*", "2", "]", "[", "]", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "data", ".", "insertedTokensPosition", ",", "0", ",", "this", ".", "data", ".", "insertedTokensPosition", "=", "new", "int", "[", "length", "*", "2", "]", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "data", ".", "insertedTokenUsed", ",", "0", ",", "this", ".", "data", ".", "insertedTokenUsed", "=", "new", "boolean", "[", "length", "*", "2", "]", ",", "0", ",", "length", ")", ";", "}", "this", ".", "data", ".", "insertedTokens", "[", "this", ".", "data", ".", "insertedTokensPtr", "]", "=", "reverse", "(", "tokens", ")", ";", "this", ".", "data", ".", "insertedTokensPosition", "[", "this", ".", "data", ".", "insertedTokensPtr", "]", "=", "position", ";", "this", ".", "data", ".", "insertedTokenUsed", "[", "this", ".", "data", ".", "insertedTokensPtr", "]", "=", "false", ";", "}", "public", "void", "replaceTokens", "(", "int", "token", ",", "int", "start", ",", "int", "end", ")", "{", "replaceTokens", "(", "new", "int", "[", "]", "{", "token", "}", ",", "start", ",", "end", ")", ";", "}", "public", "void", "replaceTokens", "(", "int", "[", "]", "tokens", ",", "int", "start", ",", "int", "end", ")", "{", "if", "(", "!", "this", ".", "record", ")", "return", ";", "this", ".", "data", ".", "replacedTokensPtr", "++", ";", "if", "(", "this", ".", "data", ".", "replacedTokensStart", "==", "null", ")", "{", "this", ".", "data", ".", "replacedTokens", "=", "new", "int", "[", "10", "]", "[", "]", ";", "this", ".", "data", ".", "replacedTokensStart", "=", "new", "int", "[", "10", "]", ";", "this", ".", "data", ".", "replacedTokensEnd", "=", "new", "int", "[", "10", "]", ";", "this", ".", "data", ".", "replacedTokenUsed", "=", "new", "boolean", "[", "10", "]", ";", "}", "else", "if", "(", "this", ".", "data", ".", "replacedTokensStart", ".", "length", "==", "this", ".", "data", ".", "replacedTokensPtr", ")", "{", "int", "length", "=", "this", ".", "data", ".", "replacedTokensStart", ".", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "data", ".", "replacedTokens", ",", "0", ",", "this", ".", "data", ".", "replacedTokens", "=", "new", "int", "[", "length", "*", "2", "]", "[", "]", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "data", ".", "replacedTokensStart", ",", "0", ",", "this", ".", "data", ".", "replacedTokensStart", "=", "new", "int", "[", "length", "*", "2", "]", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "data", ".", "replacedTokensEnd", ",", "0", ",", "this", ".", "data", ".", "replacedTokensEnd", "=", "new", "int", "[", "length", "*", "2", "]", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "data", ".", "replacedTokenUsed", ",", "0", ",", "this", ".", "data", ".", "replacedTokenUsed", "=", "new", "boolean", "[", "length", "*", "2", "]", ",", "0", ",", "length", ")", ";", "}", "this", ".", "data", ".", "replacedTokens", "[", "this", ".", "data", ".", "replacedTokensPtr", "]", "=", "reverse", "(", "tokens", ")", ";", "this", ".", "data", ".", "replacedTokensStart", "[", "this", ".", "data", ".", "replacedTokensPtr", "]", "=", "start", ";", "this", ".", "data", ".", "replacedTokensEnd", "[", "this", ".", "data", ".", "replacedTokensPtr", "]", "=", "end", ";", "this", ".", "data", ".", "replacedTokenUsed", "[", "this", ".", "data", ".", "replacedTokensPtr", "]", "=", "false", ";", "}", "public", "void", "removeTokens", "(", "int", "start", ",", "int", "end", ")", "{", "if", "(", "!", "this", ".", "record", ")", "return", ";", "this", ".", "data", ".", "removedTokensPtr", "++", ";", "if", "(", "this", ".", "data", ".", "removedTokensStart", "==", "null", ")", "{", "this", ".", "data", ".", "removedTokensStart", "=", "new", "int", "[", "10", "]", ";", "this", ".", "data", ".", "removedTokensEnd", "=", "new", "int", "[", "10", "]", ";", "this", ".", "data", ".", "removedTokenUsed", "=", "new", "boolean", "[", "10", "]", ";", "}", "else", "if", "(", "this", ".", "data", ".", "removedTokensStart", ".", "length", "==", "this", ".", "data", ".", "removedTokensPtr", ")", "{", "int", "length", "=", "this", ".", "data", ".", "removedTokensStart", ".", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "data", ".", "removedTokensStart", ",", "0", ",", "this", ".", "data", ".", "removedTokensStart", "=", "new", "int", "[", "length", "*", "2", "]", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "data", ".", "removedTokensEnd", ",", "0", ",", "this", ".", "data", ".", "removedTokensEnd", "=", "new", "int", "[", "length", "*", "2", "]", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "data", ".", "removedTokenUsed", ",", "0", ",", "this", ".", "data", ".", "removedTokenUsed", "=", "new", "boolean", "[", "length", "*", "2", "]", ",", "0", ",", "length", ")", ";", "}", "this", ".", "data", ".", "removedTokensStart", "[", "this", ".", "data", ".", "removedTokensPtr", "]", "=", "start", ";", "this", ".", "data", ".", "removedTokensEnd", "[", "this", ".", "data", ".", "removedTokensPtr", "]", "=", "end", ";", "this", ".", "data", ".", "removedTokenUsed", "[", "this", ".", "data", ".", "removedTokensPtr", "]", "=", "false", ";", "}", "public", "int", "getNextToken", "(", ")", "throws", "InvalidInputException", "{", "if", "(", "this", ".", "pendingTokensPtr", ">", "-", "1", ")", "{", "int", "nextToken", "=", "this", ".", "pendingTokens", "[", "this", ".", "pendingTokensPtr", "--", "]", ";", "if", "(", "nextToken", "==", "TerminalTokens", ".", "TokenNameIdentifier", ")", "{", "this", ".", "fakeTokenSource", "=", "FAKE_IDENTIFIER", ";", "}", "else", "{", "this", ".", "fakeTokenSource", "=", "CharOperation", ".", "NO_CHAR", ";", "}", "return", "nextToken", ";", "}", "this", ".", "fakeTokenSource", "=", "null", ";", "this", ".", "precededByRemoved", "=", "false", ";", "if", "(", "this", ".", "data", ".", "insertedTokens", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "this", ".", "data", ".", "insertedTokensPtr", ";", "i", "++", ")", "{", "if", "(", "this", ".", "data", ".", "insertedTokensPosition", "[", "i", "]", "==", "this", ".", "currentPosition", "-", "1", "&&", "i", ">", "this", ".", "skipNextInsertedTokens", ")", "{", "this", ".", "data", ".", "insertedTokenUsed", "[", "i", "]", "=", "true", ";", "this", ".", "pendingTokens", "=", "this", ".", "data", ".", "insertedTokens", "[", "i", "]", ";", "this", ".", "pendingTokensPtr", "=", "this", ".", "data", ".", "insertedTokens", "[", "i", "]", ".", "length", "-", "1", ";", "this", ".", "isInserted", "=", "true", ";", "this", ".", "startPosition", "=", "this", ".", "currentPosition", ";", "this", ".", "skipNextInsertedTokens", "=", "i", ";", "int", "nextToken", "=", "this", ".", "pendingTokens", "[", "this", ".", "pendingTokensPtr", "--", "]", ";", "if", "(", "nextToken", "==", "TerminalTokens", ".", "TokenNameIdentifier", ")", "{", "this", ".", "fakeTokenSource", "=", "FAKE_IDENTIFIER", ";", "}", "else", "{", "this", ".", "fakeTokenSource", "=", "CharOperation", ".", "NO_CHAR", ";", "}", "return", "nextToken", ";", "}", "}", "this", ".", "skipNextInsertedTokens", "=", "-", "1", ";", "}", "int", "previousLocation", "=", "this", ".", "currentPosition", ";", "int", "currentToken", "=", "super", ".", "getNextToken", "(", ")", ";", "if", "(", "this", ".", "data", ".", "replacedTokens", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "this", ".", "data", ".", "replacedTokensPtr", ";", "i", "++", ")", "{", "if", "(", "this", ".", "data", ".", "replacedTokensStart", "[", "i", "]", ">=", "previousLocation", "&&", "this", ".", "data", ".", "replacedTokensStart", "[", "i", "]", "<=", "this", ".", "startPosition", "&&", "this", ".", "data", ".", "replacedTokensEnd", "[", "i", "]", ">=", "this", ".", "currentPosition", "-", "1", ")", "{", "this", ".", "data", ".", "replacedTokenUsed", "[", "i", "]", "=", "true", ";", "this", ".", "pendingTokens", "=", "this", ".", "data", ".", "replacedTokens", "[", "i", "]", ";", "this", ".", "pendingTokensPtr", "=", "this", ".", "data", ".", "replacedTokens", "[", "i", "]", ".", "length", "-", "1", ";", "this", ".", "fakeTokenSource", "=", "FAKE_IDENTIFIER", ";", "this", ".", "isInserted", "=", "false", ";", "this", ".", "currentPosition", "=", "this", ".", "data", ".", "replacedTokensEnd", "[", "i", "]", "+", "1", ";", "int", "nextToken", "=", "this", ".", "pendingTokens", "[", "this", ".", "pendingTokensPtr", "--", "]", ";", "if", "(", "nextToken", "==", "TerminalTokens", ".", "TokenNameIdentifier", ")", "{", "this", ".", "fakeTokenSource", "=", "FAKE_IDENTIFIER", ";", "}", "else", "{", "this", ".", "fakeTokenSource", "=", "CharOperation", ".", "NO_CHAR", ";", "}", "return", "nextToken", ";", "}", "}", "}", "if", "(", "this", ".", "data", ".", "removedTokensStart", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "this", ".", "data", ".", "removedTokensPtr", ";", "i", "++", ")", "{", "if", "(", "this", ".", "data", ".", "removedTokensStart", "[", "i", "]", ">=", "previousLocation", "&&", "this", ".", "data", ".", "removedTokensStart", "[", "i", "]", "<=", "this", ".", "startPosition", "&&", "this", ".", "data", ".", "removedTokensEnd", "[", "i", "]", ">=", "this", ".", "currentPosition", "-", "1", ")", "{", "this", ".", "data", ".", "removedTokenUsed", "[", "i", "]", "=", "true", ";", "this", ".", "currentPosition", "=", "this", ".", "data", ".", "removedTokensEnd", "[", "i", "]", "+", "1", ";", "this", ".", "precededByRemoved", "=", "false", ";", "return", "getNextToken", "(", ")", ";", "}", "}", "}", "return", "currentToken", ";", "}", "public", "char", "[", "]", "getCurrentIdentifierSource", "(", ")", "{", "if", "(", "this", ".", "fakeTokenSource", "!=", "null", ")", "return", "this", ".", "fakeTokenSource", ";", "return", "super", ".", "getCurrentIdentifierSource", "(", ")", ";", "}", "public", "char", "[", "]", "getCurrentTokenSourceString", "(", ")", "{", "if", "(", "this", ".", "fakeTokenSource", "!=", "null", ")", "return", "this", ".", "fakeTokenSource", ";", "return", "super", ".", "getCurrentTokenSourceString", "(", ")", ";", "}", "public", "char", "[", "]", "getCurrentTokenSource", "(", ")", "{", "if", "(", "this", ".", "fakeTokenSource", "!=", "null", ")", "return", "this", ".", "fakeTokenSource", ";", "return", "super", ".", "getCurrentTokenSource", "(", ")", ";", "}", "public", "RecoveryScannerData", "getData", "(", ")", "{", "return", "this", ".", "data", ";", "}", "public", "boolean", "isFakeToken", "(", ")", "{", "return", "this", ".", "fakeTokenSource", "!=", "null", ";", "}", "public", "boolean", "isInsertedToken", "(", ")", "{", "return", "this", ".", "fakeTokenSource", "!=", "null", "&&", "this", ".", "isInserted", ";", "}", "public", "boolean", "isReplacedToken", "(", ")", "{", "return", "this", ".", "fakeTokenSource", "!=", "null", "&&", "!", "this", ".", "isInserted", ";", "}", "public", "boolean", "isPrecededByRemovedToken", "(", ")", "{", "return", "this", ".", "precededByRemoved", ";", "}", "public", "void", "setData", "(", "RecoveryScannerData", "data", ")", "{", "if", "(", "data", "==", "null", ")", "{", "this", ".", "data", "=", "new", "RecoveryScannerData", "(", ")", ";", "}", "else", "{", "this", ".", "data", "=", "data", ";", "}", "}", "public", "void", "setPendingTokens", "(", "int", "[", "]", "pendingTokens", ")", "{", "this", ".", "pendingTokens", "=", "pendingTokens", ";", "this", ".", "pendingTokensPtr", "=", "pendingTokens", ".", "length", "-", "1", ";", "}", "}", "</s>" ]
3,345
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "import", "java", ".", "util", ".", "HashSet", ";", "import", "java", ".", "util", ".", "Set", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "AbstractMethodDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "AbstractVariableDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Annotation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Block", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "FieldDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Initializer", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "QualifiedAllocationExpression", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Statement", ";", "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", ";", "public", "class", "RecoveredType", "extends", "RecoveredStatement", "implements", "TerminalTokens", "{", "public", "static", "final", "int", "MAX_TYPE_DEPTH", "=", "256", ";", "public", "TypeDeclaration", "typeDeclaration", ";", "public", "RecoveredAnnotation", "[", "]", "annotations", ";", "public", "int", "annotationCount", ";", "public", "int", "modifiers", ";", "public", "int", "modifiersStart", ";", "public", "RecoveredType", "[", "]", "memberTypes", ";", "public", "int", "memberTypeCount", ";", "public", "RecoveredField", "[", "]", "fields", ";", "public", "int", "fieldCount", ";", "public", "RecoveredMethod", "[", "]", "methods", ";", "public", "int", "methodCount", ";", "public", "boolean", "preserveContent", "=", "false", ";", "public", "int", "bodyEnd", ";", "public", "boolean", "insideEnumConstantPart", "=", "false", ";", "public", "TypeParameter", "[", "]", "pendingTypeParameters", ";", "public", "int", "pendingTypeParametersStart", ";", "int", "pendingModifiers", ";", "int", "pendingModifersSourceStart", "=", "-", "1", ";", "RecoveredAnnotation", "[", "]", "pendingAnnotations", ";", "int", "pendingAnnotationCount", ";", "public", "RecoveredType", "(", "TypeDeclaration", "typeDeclaration", ",", "RecoveredElement", "parent", ",", "int", "bracketBalance", ")", "{", "super", "(", "typeDeclaration", ",", "parent", ",", "bracketBalance", ")", ";", "this", ".", "typeDeclaration", "=", "typeDeclaration", ";", "if", "(", "typeDeclaration", ".", "allocation", "!=", "null", "&&", "typeDeclaration", ".", "allocation", ".", "type", "==", "null", ")", "{", "this", ".", "foundOpeningBrace", "=", "true", ";", "}", "else", "{", "this", ".", "foundOpeningBrace", "=", "!", "bodyStartsAtHeaderEnd", "(", ")", ";", "}", "this", ".", "insideEnumConstantPart", "=", "TypeDeclaration", ".", "kind", "(", "typeDeclaration", ".", "modifiers", ")", "==", "TypeDeclaration", ".", "ENUM_DECL", ";", "if", "(", "this", ".", "foundOpeningBrace", ")", "{", "this", ".", "bracketBalance", "++", ";", "}", "this", ".", "preserveContent", "=", "parser", "(", ")", ".", "methodRecoveryActivated", "||", "parser", "(", ")", ".", "statementRecoveryActivated", ";", "}", "public", "RecoveredElement", "add", "(", "AbstractMethodDeclaration", "methodDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "if", "(", "this", ".", "typeDeclaration", ".", "declarationSourceEnd", "!=", "0", "&&", "methodDeclaration", ".", "declarationSourceStart", ">", "this", ".", "typeDeclaration", ".", "declarationSourceEnd", ")", "{", "this", ".", "pendingTypeParameters", "=", "null", ";", "resetPendingModifiers", "(", ")", ";", "return", "this", ".", "parent", ".", "add", "(", "methodDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "if", "(", "this", ".", "methods", "==", "null", ")", "{", "this", ".", "methods", "=", "new", "RecoveredMethod", "[", "5", "]", ";", "this", ".", "methodCount", "=", "0", ";", "}", "else", "{", "if", "(", "this", ".", "methodCount", "==", "this", ".", "methods", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "methods", ",", "0", ",", "(", "this", ".", "methods", "=", "new", "RecoveredMethod", "[", "2", "*", "this", ".", "methodCount", "]", ")", ",", "0", ",", "this", ".", "methodCount", ")", ";", "}", "}", "RecoveredMethod", "element", "=", "new", "RecoveredMethod", "(", "methodDeclaration", ",", "this", ",", "bracketBalanceValue", ",", "this", ".", "recoveringParser", ")", ";", "this", ".", "methods", "[", "this", ".", "methodCount", "++", "]", "=", "element", ";", "if", "(", "this", ".", "pendingTypeParameters", "!=", "null", ")", "{", "element", ".", "attach", "(", "this", ".", "pendingTypeParameters", ",", "this", ".", "pendingTypeParametersStart", ")", ";", "this", ".", "pendingTypeParameters", "=", "null", ";", "}", "if", "(", "this", ".", "pendingAnnotationCount", ">", "0", ")", "{", "element", ".", "attach", "(", "this", ".", "pendingAnnotations", ",", "this", ".", "pendingAnnotationCount", ",", "this", ".", "pendingModifiers", ",", "this", ".", "pendingModifersSourceStart", ")", ";", "}", "resetPendingModifiers", "(", ")", ";", "this", ".", "insideEnumConstantPart", "=", "false", ";", "if", "(", "!", "this", ".", "foundOpeningBrace", ")", "{", "this", ".", "foundOpeningBrace", "=", "true", ";", "this", ".", "bracketBalance", "++", ";", "}", "if", "(", "methodDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "return", "element", ";", "return", "this", ";", "}", "public", "RecoveredElement", "add", "(", "Block", "nestedBlockDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "this", ".", "pendingTypeParameters", "=", "null", ";", "resetPendingModifiers", "(", ")", ";", "int", "mods", "=", "ClassFileConstants", ".", "AccDefault", ";", "if", "(", "parser", "(", ")", ".", "recoveredStaticInitializerStart", "!=", "0", ")", "{", "mods", "=", "ClassFileConstants", ".", "AccStatic", ";", "}", "return", "this", ".", "add", "(", "new", "Initializer", "(", "nestedBlockDeclaration", ",", "mods", ")", ",", "bracketBalanceValue", ")", ";", "}", "public", "RecoveredElement", "add", "(", "FieldDeclaration", "fieldDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "this", ".", "pendingTypeParameters", "=", "null", ";", "if", "(", "this", ".", "typeDeclaration", ".", "declarationSourceEnd", "!=", "0", "&&", "fieldDeclaration", ".", "declarationSourceStart", ">", "this", ".", "typeDeclaration", ".", "declarationSourceEnd", ")", "{", "resetPendingModifiers", "(", ")", ";", "return", "this", ".", "parent", ".", "add", "(", "fieldDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "if", "(", "this", ".", "fields", "==", "null", ")", "{", "this", ".", "fields", "=", "new", "RecoveredField", "[", "5", "]", ";", "this", ".", "fieldCount", "=", "0", ";", "}", "else", "{", "if", "(", "this", ".", "fieldCount", "==", "this", ".", "fields", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "fields", ",", "0", ",", "(", "this", ".", "fields", "=", "new", "RecoveredField", "[", "2", "*", "this", ".", "fieldCount", "]", ")", ",", "0", ",", "this", ".", "fieldCount", ")", ";", "}", "}", "RecoveredField", "element", ";", "switch", "(", "fieldDeclaration", ".", "getKind", "(", ")", ")", "{", "case", "AbstractVariableDeclaration", ".", "FIELD", ":", "case", "AbstractVariableDeclaration", ".", "ENUM_CONSTANT", ":", "element", "=", "new", "RecoveredField", "(", "fieldDeclaration", ",", "this", ",", "bracketBalanceValue", ")", ";", "break", ";", "case", "AbstractVariableDeclaration", ".", "INITIALIZER", ":", "element", "=", "new", "RecoveredInitializer", "(", "fieldDeclaration", ",", "this", ",", "bracketBalanceValue", ")", ";", "break", ";", "default", ":", "return", "this", ";", "}", "this", ".", "fields", "[", "this", ".", "fieldCount", "++", "]", "=", "element", ";", "if", "(", "this", ".", "pendingAnnotationCount", ">", "0", ")", "{", "element", ".", "attach", "(", "this", ".", "pendingAnnotations", ",", "this", ".", "pendingAnnotationCount", ",", "this", ".", "pendingModifiers", ",", "this", ".", "pendingModifersSourceStart", ")", ";", "}", "resetPendingModifiers", "(", ")", ";", "if", "(", "!", "this", ".", "foundOpeningBrace", ")", "{", "this", ".", "foundOpeningBrace", "=", "true", ";", "this", ".", "bracketBalance", "++", ";", "}", "if", "(", "fieldDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "return", "element", ";", "return", "this", ";", "}", "public", "RecoveredElement", "add", "(", "TypeDeclaration", "memberTypeDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "this", ".", "pendingTypeParameters", "=", "null", ";", "if", "(", "this", ".", "typeDeclaration", ".", "declarationSourceEnd", "!=", "0", "&&", "memberTypeDeclaration", ".", "declarationSourceStart", ">", "this", ".", "typeDeclaration", ".", "declarationSourceEnd", ")", "{", "resetPendingModifiers", "(", ")", ";", "return", "this", ".", "parent", ".", "add", "(", "memberTypeDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "this", ".", "insideEnumConstantPart", "=", "false", ";", "if", "(", "(", "memberTypeDeclaration", ".", "bits", "&", "ASTNode", ".", "IsAnonymousType", ")", "!=", "0", ")", "{", "if", "(", "this", ".", "methodCount", ">", "0", ")", "{", "RecoveredMethod", "lastMethod", "=", "this", ".", "methods", "[", "this", ".", "methodCount", "-", "1", "]", ";", "lastMethod", ".", "methodDeclaration", ".", "bodyEnd", "=", "0", ";", "lastMethod", ".", "methodDeclaration", ".", "declarationSourceEnd", "=", "0", ";", "lastMethod", ".", "bracketBalance", "++", ";", "resetPendingModifiers", "(", ")", ";", "return", "lastMethod", ".", "add", "(", "memberTypeDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "else", "{", "return", "this", ";", "}", "}", "if", "(", "this", ".", "memberTypes", "==", "null", ")", "{", "this", ".", "memberTypes", "=", "new", "RecoveredType", "[", "5", "]", ";", "this", ".", "memberTypeCount", "=", "0", ";", "}", "else", "{", "if", "(", "this", ".", "memberTypeCount", "==", "this", ".", "memberTypes", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "memberTypes", ",", "0", ",", "(", "this", ".", "memberTypes", "=", "new", "RecoveredType", "[", "2", "*", "this", ".", "memberTypeCount", "]", ")", ",", "0", ",", "this", ".", "memberTypeCount", ")", ";", "}", "}", "RecoveredType", "element", "=", "new", "RecoveredType", "(", "memberTypeDeclaration", ",", "this", ",", "bracketBalanceValue", ")", ";", "this", ".", "memberTypes", "[", "this", ".", "memberTypeCount", "++", "]", "=", "element", ";", "if", "(", "this", ".", "pendingAnnotationCount", ">", "0", ")", "{", "element", ".", "attach", "(", "this", ".", "pendingAnnotations", ",", "this", ".", "pendingAnnotationCount", ",", "this", ".", "pendingModifiers", ",", "this", ".", "pendingModifersSourceStart", ")", ";", "}", "resetPendingModifiers", "(", ")", ";", "if", "(", "!", "this", ".", "foundOpeningBrace", ")", "{", "this", ".", "foundOpeningBrace", "=", "true", ";", "this", ".", "bracketBalance", "++", ";", "}", "if", "(", "memberTypeDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "return", "element", ";", "return", "this", ";", "}", "public", "void", "add", "(", "TypeParameter", "[", "]", "parameters", ",", "int", "startPos", ")", "{", "this", ".", "pendingTypeParameters", "=", "parameters", ";", "this", ".", "pendingTypeParametersStart", "=", "startPos", ";", "}", "public", "RecoveredElement", "addAnnotationName", "(", "int", "identifierPtr", ",", "int", "identifierLengthPtr", ",", "int", "annotationStart", ",", "int", "bracketBalanceValue", ")", "{", "if", "(", "this", ".", "pendingAnnotations", "==", "null", ")", "{", "this", ".", "pendingAnnotations", "=", "new", "RecoveredAnnotation", "[", "5", "]", ";", "this", ".", "pendingAnnotationCount", "=", "0", ";", "}", "else", "{", "if", "(", "this", ".", "pendingAnnotationCount", "==", "this", ".", "pendingAnnotations", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "pendingAnnotations", ",", "0", ",", "(", "this", ".", "pendingAnnotations", "=", "new", "RecoveredAnnotation", "[", "2", "*", "this", ".", "pendingAnnotationCount", "]", ")", ",", "0", ",", "this", ".", "pendingAnnotationCount", ")", ";", "}", "}", "RecoveredAnnotation", "element", "=", "new", "RecoveredAnnotation", "(", "identifierPtr", ",", "identifierLengthPtr", ",", "annotationStart", ",", "this", ",", "bracketBalanceValue", ")", ";", "this", ".", "pendingAnnotations", "[", "this", ".", "pendingAnnotationCount", "++", "]", "=", "element", ";", "return", "element", ";", "}", "public", "void", "addModifier", "(", "int", "flag", ",", "int", "modifiersSourceStart", ")", "{", "this", ".", "pendingModifiers", "|=", "flag", ";", "if", "(", "this", ".", "pendingModifersSourceStart", "<", "0", ")", "{", "this", ".", "pendingModifersSourceStart", "=", "modifiersSourceStart", ";", "}", "}", "public", "void", "attach", "(", "RecoveredAnnotation", "[", "]", "annots", ",", "int", "annotCount", ",", "int", "mods", ",", "int", "modsSourceStart", ")", "{", "if", "(", "annotCount", ">", "0", ")", "{", "Annotation", "[", "]", "existingAnnotations", "=", "this", ".", "typeDeclaration", ".", "annotations", ";", "if", "(", "existingAnnotations", "!=", "null", ")", "{", "this", ".", "annotations", "=", "new", "RecoveredAnnotation", "[", "annotCount", "]", ";", "this", ".", "annotationCount", "=", "0", ";", "next", ":", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotCount", ";", "i", "++", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "existingAnnotations", ".", "length", ";", "j", "++", ")", "{", "if", "(", "annots", "[", "i", "]", ".", "annotation", "==", "existingAnnotations", "[", "j", "]", ")", "continue", "next", ";", "}", "this", ".", "annotations", "[", "this", ".", "annotationCount", "++", "]", "=", "annots", "[", "i", "]", ";", "}", "}", "else", "{", "this", ".", "annotations", "=", "annots", ";", "this", ".", "annotationCount", "=", "annotCount", ";", "}", "}", "if", "(", "mods", "!=", "0", ")", "{", "this", ".", "modifiers", "=", "mods", ";", "this", ".", "modifiersStart", "=", "modsSourceStart", ";", "}", "}", "public", "int", "bodyEnd", "(", ")", "{", "if", "(", "this", ".", "bodyEnd", "==", "0", ")", "return", "this", ".", "typeDeclaration", ".", "declarationSourceEnd", ";", "return", "this", ".", "bodyEnd", ";", "}", "public", "boolean", "bodyStartsAtHeaderEnd", "(", ")", "{", "if", "(", "this", ".", "typeDeclaration", ".", "superInterfaces", "==", "null", ")", "{", "if", "(", "this", ".", "typeDeclaration", ".", "superclass", "==", "null", ")", "{", "if", "(", "this", ".", "typeDeclaration", ".", "typeParameters", "==", "null", ")", "{", "return", "this", ".", "typeDeclaration", ".", "bodyStart", "==", "this", ".", "typeDeclaration", ".", "sourceEnd", "+", "1", ";", "}", "else", "{", "return", "this", ".", "typeDeclaration", ".", "bodyStart", "==", "this", ".", "typeDeclaration", ".", "typeParameters", "[", "this", ".", "typeDeclaration", ".", "typeParameters", ".", "length", "-", "1", "]", ".", "sourceEnd", "+", "1", ";", "}", "}", "else", "{", "return", "this", ".", "typeDeclaration", ".", "bodyStart", "==", "this", ".", "typeDeclaration", ".", "superclass", ".", "sourceEnd", "+", "1", ";", "}", "}", "else", "{", "return", "this", ".", "typeDeclaration", ".", "bodyStart", "==", "this", ".", "typeDeclaration", ".", "superInterfaces", "[", "this", ".", "typeDeclaration", ".", "superInterfaces", ".", "length", "-", "1", "]", ".", "sourceEnd", "+", "1", ";", "}", "}", "public", "RecoveredType", "enclosingType", "(", ")", "{", "RecoveredElement", "current", "=", "this", ".", "parent", ";", "while", "(", "current", "!=", "null", ")", "{", "if", "(", "current", "instanceof", "RecoveredType", ")", "{", "return", "(", "RecoveredType", ")", "current", ";", "}", "current", "=", "current", ".", "parent", ";", "}", "return", "null", ";", "}", "public", "int", "lastMemberEnd", "(", ")", "{", "int", "lastMemberEnd", "=", "this", ".", "typeDeclaration", ".", "bodyStart", ";", "if", "(", "this", ".", "fieldCount", ">", "0", ")", "{", "FieldDeclaration", "lastField", "=", "this", ".", "fields", "[", "this", ".", "fieldCount", "-", "1", "]", ".", "fieldDeclaration", ";", "if", "(", "lastMemberEnd", "<", "lastField", ".", "declarationSourceEnd", "&&", "lastField", ".", "declarationSourceEnd", "!=", "0", ")", "{", "lastMemberEnd", "=", "lastField", ".", "declarationSourceEnd", ";", "}", "}", "if", "(", "this", ".", "methodCount", ">", "0", ")", "{", "AbstractMethodDeclaration", "lastMethod", "=", "this", ".", "methods", "[", "this", ".", "methodCount", "-", "1", "]", ".", "methodDeclaration", ";", "if", "(", "lastMemberEnd", "<", "lastMethod", ".", "declarationSourceEnd", "&&", "lastMethod", ".", "declarationSourceEnd", "!=", "0", ")", "{", "lastMemberEnd", "=", "lastMethod", ".", "declarationSourceEnd", ";", "}", "}", "if", "(", "this", ".", "memberTypeCount", ">", "0", ")", "{", "TypeDeclaration", "lastType", "=", "this", ".", "memberTypes", "[", "this", ".", "memberTypeCount", "-", "1", "]", ".", "typeDeclaration", ";", "if", "(", "lastMemberEnd", "<", "lastType", ".", "declarationSourceEnd", "&&", "lastType", ".", "declarationSourceEnd", "!=", "0", ")", "{", "lastMemberEnd", "=", "lastType", ".", "declarationSourceEnd", ";", "}", "}", "return", "lastMemberEnd", ";", "}", "public", "char", "[", "]", "name", "(", ")", "{", "return", "this", ".", "typeDeclaration", ".", "name", ";", "}", "public", "ASTNode", "parseTree", "(", ")", "{", "return", "this", ".", "typeDeclaration", ";", "}", "public", "void", "resetPendingModifiers", "(", ")", "{", "this", ".", "pendingAnnotations", "=", "null", ";", "this", ".", "pendingAnnotationCount", "=", "0", ";", "this", ".", "pendingModifiers", "=", "0", ";", "this", ".", "pendingModifersSourceStart", "=", "-", "1", ";", "}", "public", "int", "sourceEnd", "(", ")", "{", "return", "this", ".", "typeDeclaration", ".", "declarationSourceEnd", ";", "}", "public", "String", "toString", "(", "int", "tab", ")", "{", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "tabString", "(", "tab", ")", ")", ";", "result", ".", "append", "(", "\"\"", ")", ";", "if", "(", "(", "this", ".", "typeDeclaration", ".", "bits", "&", "ASTNode", ".", "IsAnonymousType", ")", "!=", "0", ")", "{", "result", ".", "append", "(", "tabString", "(", "tab", ")", ")", ";", "result", ".", "append", "(", "\"", "\"", ")", ";", "}", "this", ".", "typeDeclaration", ".", "print", "(", "tab", "+", "1", ",", "result", ")", ";", "if", "(", "this", ".", "annotations", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "annotationCount", ";", "i", "++", ")", "{", "result", ".", "append", "(", "\"n\"", ")", ";", "result", ".", "append", "(", "this", ".", "annotations", "[", "i", "]", ".", "toString", "(", "tab", "+", "1", ")", ")", ";", "}", "}", "if", "(", "this", ".", "memberTypes", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "memberTypeCount", ";", "i", "++", ")", "{", "result", ".", "append", "(", "\"n\"", ")", ";", "result", ".", "append", "(", "this", ".", "memberTypes", "[", "i", "]", ".", "toString", "(", "tab", "+", "1", ")", ")", ";", "}", "}", "if", "(", "this", ".", "fields", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "fieldCount", ";", "i", "++", ")", "{", "result", ".", "append", "(", "\"n\"", ")", ";", "result", ".", "append", "(", "this", ".", "fields", "[", "i", "]", ".", "toString", "(", "tab", "+", "1", ")", ")", ";", "}", "}", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "methodCount", ";", "i", "++", ")", "{", "result", ".", "append", "(", "\"n\"", ")", ";", "result", ".", "append", "(", "this", ".", "methods", "[", "i", "]", ".", "toString", "(", "tab", "+", "1", ")", ")", ";", "}", "}", "return", "result", ".", "toString", "(", ")", ";", "}", "public", "void", "updateBodyStart", "(", "int", "bodyStart", ")", "{", "this", ".", "foundOpeningBrace", "=", "true", ";", "this", ".", "typeDeclaration", ".", "bodyStart", "=", "bodyStart", ";", "}", "public", "Statement", "updatedStatement", "(", "int", "depth", ",", "Set", "knownTypes", ")", "{", "if", "(", "(", "this", ".", "typeDeclaration", ".", "bits", "&", "ASTNode", ".", "IsAnonymousType", ")", "!=", "0", "&&", "!", "this", ".", "preserveContent", ")", "{", "return", "null", ";", "}", "TypeDeclaration", "updatedType", "=", "updatedTypeDeclaration", "(", "depth", "+", "1", ",", "knownTypes", ")", ";", "if", "(", "updatedType", "!=", "null", "&&", "(", "updatedType", ".", "bits", "&", "ASTNode", ".", "IsAnonymousType", ")", "!=", "0", ")", "{", "QualifiedAllocationExpression", "allocation", "=", "updatedType", ".", "allocation", ";", "if", "(", "allocation", ".", "statementEnd", "==", "-", "1", ")", "{", "allocation", ".", "statementEnd", "=", "updatedType", ".", "declarationSourceEnd", ";", "}", "return", "allocation", ";", "}", "return", "updatedType", ";", "}", "public", "TypeDeclaration", "updatedTypeDeclaration", "(", "int", "depth", ",", "Set", "knownTypes", ")", "{", "if", "(", "depth", ">=", "MAX_TYPE_DEPTH", ")", "return", "null", ";", "if", "(", "knownTypes", ".", "contains", "(", "this", ".", "typeDeclaration", ")", ")", "return", "null", ";", "knownTypes", ".", "add", "(", "this", ".", "typeDeclaration", ")", ";", "int", "lastEnd", "=", "this", ".", "typeDeclaration", ".", "bodyStart", ";", "if", "(", "this", ".", "modifiers", "!=", "0", ")", "{", "this", ".", "typeDeclaration", ".", "modifiers", "|=", "this", ".", "modifiers", ";", "if", "(", "this", ".", "modifiersStart", "<", "this", ".", "typeDeclaration", ".", "declarationSourceStart", ")", "{", "this", ".", "typeDeclaration", ".", "declarationSourceStart", "=", "this", ".", "modifiersStart", ";", "}", "}", "if", "(", "this", ".", "annotationCount", ">", "0", ")", "{", "int", "existingCount", "=", "this", ".", "typeDeclaration", ".", "annotations", "==", "null", "?", "0", ":", "this", ".", "typeDeclaration", ".", "annotations", ".", "length", ";", "Annotation", "[", "]", "annotationReferences", "=", "new", "Annotation", "[", "existingCount", "+", "this", ".", "annotationCount", "]", ";", "if", "(", "existingCount", ">", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "typeDeclaration", ".", "annotations", ",", "0", ",", "annotationReferences", ",", "this", ".", "annotationCount", ",", "existingCount", ")", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "annotationCount", ";", "i", "++", ")", "{", "annotationReferences", "[", "i", "]", "=", "this", ".", "annotations", "[", "i", "]", ".", "updatedAnnotationReference", "(", ")", ";", "}", "this", ".", "typeDeclaration", ".", "annotations", "=", "annotationReferences", ";", "int", "start", "=", "this", ".", "annotations", "[", "0", "]", ".", "annotation", ".", "sourceStart", ";", "if", "(", "start", "<", "this", ".", "typeDeclaration", ".", "declarationSourceStart", ")", "{", "this", ".", "typeDeclaration", ".", "declarationSourceStart", "=", "start", ";", "}", "}", "if", "(", "this", ".", "memberTypeCount", ">", "0", ")", "{", "int", "existingCount", "=", "this", ".", "typeDeclaration", ".", "memberTypes", "==", "null", "?", "0", ":", "this", ".", "typeDeclaration", ".", "memberTypes", ".", "length", ";", "TypeDeclaration", "[", "]", "memberTypeDeclarations", "=", "new", "TypeDeclaration", "[", "existingCount", "+", "this", ".", "memberTypeCount", "]", ";", "if", "(", "existingCount", ">", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "typeDeclaration", ".", "memberTypes", ",", "0", ",", "memberTypeDeclarations", ",", "0", ",", "existingCount", ")", ";", "}", "if", "(", "this", ".", "memberTypes", "[", "this", ".", "memberTypeCount", "-", "1", "]", ".", "typeDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "{", "int", "bodyEndValue", "=", "bodyEnd", "(", ")", ";", "this", ".", "memberTypes", "[", "this", ".", "memberTypeCount", "-", "1", "]", ".", "typeDeclaration", ".", "declarationSourceEnd", "=", "bodyEndValue", ";", "this", ".", "memberTypes", "[", "this", ".", "memberTypeCount", "-", "1", "]", ".", "typeDeclaration", ".", "bodyEnd", "=", "bodyEndValue", ";", "}", "int", "updatedCount", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "memberTypeCount", ";", "i", "++", ")", "{", "TypeDeclaration", "updatedTypeDeclaration", "=", "this", ".", "memberTypes", "[", "i", "]", ".", "updatedTypeDeclaration", "(", "depth", "+", "1", ",", "knownTypes", ")", ";", "if", "(", "updatedTypeDeclaration", "!=", "null", ")", "{", "memberTypeDeclarations", "[", "existingCount", "+", "(", "updatedCount", "++", ")", "]", "=", "updatedTypeDeclaration", ";", "}", "}", "if", "(", "updatedCount", "<", "this", ".", "memberTypeCount", ")", "{", "int", "length", "=", "existingCount", "+", "updatedCount", ";", "System", ".", "arraycopy", "(", "memberTypeDeclarations", ",", "0", ",", "memberTypeDeclarations", "=", "new", "TypeDeclaration", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "if", "(", "memberTypeDeclarations", ".", "length", ">", "0", ")", "{", "this", ".", "typeDeclaration", ".", "memberTypes", "=", "memberTypeDeclarations", ";", "if", "(", "memberTypeDeclarations", "[", "memberTypeDeclarations", ".", "length", "-", "1", "]", ".", "declarationSourceEnd", ">", "lastEnd", ")", "{", "lastEnd", "=", "memberTypeDeclarations", "[", "memberTypeDeclarations", ".", "length", "-", "1", "]", ".", "declarationSourceEnd", ";", "}", "}", "}", "if", "(", "this", ".", "fieldCount", ">", "0", ")", "{", "int", "existingCount", "=", "this", ".", "typeDeclaration", ".", "fields", "==", "null", "?", "0", ":", "this", ".", "typeDeclaration", ".", "fields", ".", "length", ";", "FieldDeclaration", "[", "]", "fieldDeclarations", "=", "new", "FieldDeclaration", "[", "existingCount", "+", "this", ".", "fieldCount", "]", ";", "if", "(", "existingCount", ">", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "typeDeclaration", ".", "fields", ",", "0", ",", "fieldDeclarations", ",", "0", ",", "existingCount", ")", ";", "}", "if", "(", "this", ".", "fields", "[", "this", ".", "fieldCount", "-", "1", "]", ".", "fieldDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "{", "int", "temp", "=", "bodyEnd", "(", ")", ";", "this", ".", "fields", "[", "this", ".", "fieldCount", "-", "1", "]", ".", "fieldDeclaration", ".", "declarationSourceEnd", "=", "temp", ";", "this", ".", "fields", "[", "this", ".", "fieldCount", "-", "1", "]", ".", "fieldDeclaration", ".", "declarationEnd", "=", "temp", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "fieldCount", ";", "i", "++", ")", "{", "fieldDeclarations", "[", "existingCount", "+", "i", "]", "=", "this", ".", "fields", "[", "i", "]", ".", "updatedFieldDeclaration", "(", "depth", ",", "knownTypes", ")", ";", "}", "for", "(", "int", "i", "=", "this", ".", "fieldCount", "-", "1", ";", "0", "<", "i", ";", "i", "--", ")", "{", "if", "(", "fieldDeclarations", "[", "existingCount", "+", "i", "-", "1", "]", ".", "declarationSourceStart", "==", "fieldDeclarations", "[", "existingCount", "+", "i", "]", ".", "declarationSourceStart", ")", "{", "fieldDeclarations", "[", "existingCount", "+", "i", "-", "1", "]", ".", "declarationSourceEnd", "=", "fieldDeclarations", "[", "existingCount", "+", "i", "]", ".", "declarationSourceEnd", ";", "fieldDeclarations", "[", "existingCount", "+", "i", "-", "1", "]", ".", "declarationEnd", "=", "fieldDeclarations", "[", "existingCount", "+", "i", "]", ".", "declarationEnd", ";", "}", "}", "this", ".", "typeDeclaration", ".", "fields", "=", "fieldDeclarations", ";", "if", "(", "fieldDeclarations", "[", "fieldDeclarations", ".", "length", "-", "1", "]", ".", "declarationSourceEnd", ">", "lastEnd", ")", "{", "lastEnd", "=", "fieldDeclarations", "[", "fieldDeclarations", ".", "length", "-", "1", "]", ".", "declarationSourceEnd", ";", "}", "}", "int", "existingCount", "=", "this", ".", "typeDeclaration", ".", "methods", "==", "null", "?", "0", ":", "this", ".", "typeDeclaration", ".", "methods", ".", "length", ";", "boolean", "hasConstructor", "=", "false", ",", "hasRecoveredConstructor", "=", "false", ";", "boolean", "hasAbstractMethods", "=", "false", ";", "int", "defaultConstructorIndex", "=", "-", "1", ";", "if", "(", "this", ".", "methodCount", ">", "0", ")", "{", "AbstractMethodDeclaration", "[", "]", "methodDeclarations", "=", "new", "AbstractMethodDeclaration", "[", "existingCount", "+", "this", ".", "methodCount", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "existingCount", ";", "i", "++", ")", "{", "AbstractMethodDeclaration", "m", "=", "this", ".", "typeDeclaration", ".", "methods", "[", "i", "]", ";", "if", "(", "m", ".", "isDefaultConstructor", "(", ")", ")", "defaultConstructorIndex", "=", "i", ";", "if", "(", "m", ".", "isAbstract", "(", ")", ")", "hasAbstractMethods", "=", "true", ";", "methodDeclarations", "[", "i", "]", "=", "m", ";", "}", "if", "(", "this", ".", "methods", "[", "this", ".", "methodCount", "-", "1", "]", ".", "methodDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "{", "int", "bodyEndValue", "=", "bodyEnd", "(", ")", ";", "this", ".", "methods", "[", "this", ".", "methodCount", "-", "1", "]", ".", "methodDeclaration", ".", "declarationSourceEnd", "=", "bodyEndValue", ";", "this", ".", "methods", "[", "this", ".", "methodCount", "-", "1", "]", ".", "methodDeclaration", ".", "bodyEnd", "=", "bodyEndValue", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "methodCount", ";", "i", "++", ")", "{", "AbstractMethodDeclaration", "updatedMethod", "=", "this", ".", "methods", "[", "i", "]", ".", "updatedMethodDeclaration", "(", "depth", ",", "knownTypes", ")", ";", "if", "(", "updatedMethod", ".", "isConstructor", "(", ")", ")", "hasRecoveredConstructor", "=", "true", ";", "if", "(", "updatedMethod", ".", "isAbstract", "(", ")", ")", "hasAbstractMethods", "=", "true", ";", "methodDeclarations", "[", "existingCount", "+", "i", "]", "=", "updatedMethod", ";", "}", "this", ".", "typeDeclaration", ".", "methods", "=", "methodDeclarations", ";", "if", "(", "methodDeclarations", "[", "methodDeclarations", ".", "length", "-", "1", "]", ".", "declarationSourceEnd", ">", "lastEnd", ")", "{", "lastEnd", "=", "methodDeclarations", "[", "methodDeclarations", ".", "length", "-", "1", "]", ".", "declarationSourceEnd", ";", "}", "if", "(", "hasAbstractMethods", ")", "this", ".", "typeDeclaration", ".", "bits", "|=", "ASTNode", ".", "HasAbstractMethods", ";", "hasConstructor", "=", "this", ".", "typeDeclaration", ".", "checkConstructors", "(", "parser", "(", ")", ")", ";", "}", "else", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "existingCount", ";", "i", "++", ")", "{", "if", "(", "this", ".", "typeDeclaration", ".", "methods", "[", "i", "]", ".", "isConstructor", "(", ")", ")", "hasConstructor", "=", "true", ";", "}", "}", "if", "(", "this", ".", "typeDeclaration", ".", "needClassInitMethod", "(", ")", ")", "{", "boolean", "alreadyHasClinit", "=", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "existingCount", ";", "i", "++", ")", "{", "if", "(", "this", ".", "typeDeclaration", ".", "methods", "[", "i", "]", ".", "isClinit", "(", ")", ")", "{", "alreadyHasClinit", "=", "true", ";", "break", ";", "}", "}", "if", "(", "!", "alreadyHasClinit", ")", "this", ".", "typeDeclaration", ".", "addClinit", "(", ")", ";", "}", "if", "(", "defaultConstructorIndex", ">=", "0", "&&", "hasRecoveredConstructor", ")", "{", "AbstractMethodDeclaration", "[", "]", "methodDeclarations", "=", "new", "AbstractMethodDeclaration", "[", "this", ".", "typeDeclaration", ".", "methods", ".", "length", "-", "1", "]", ";", "if", "(", "defaultConstructorIndex", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "typeDeclaration", ".", "methods", ",", "0", ",", "methodDeclarations", ",", "0", ",", "defaultConstructorIndex", ")", ";", "}", "if", "(", "defaultConstructorIndex", "!=", "this", ".", "typeDeclaration", ".", "methods", ".", "length", "-", "1", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "typeDeclaration", ".", "methods", ",", "defaultConstructorIndex", "+", "1", ",", "methodDeclarations", ",", "defaultConstructorIndex", ",", "this", ".", "typeDeclaration", ".", "methods", ".", "length", "-", "defaultConstructorIndex", "-", "1", ")", ";", "}", "this", ".", "typeDeclaration", ".", "methods", "=", "methodDeclarations", ";", "}", "else", "{", "int", "kind", "=", "TypeDeclaration", ".", "kind", "(", "this", ".", "typeDeclaration", ".", "modifiers", ")", ";", "if", "(", "!", "hasConstructor", "&&", "kind", "!=", "TypeDeclaration", ".", "INTERFACE_DECL", "&&", "kind", "!=", "TypeDeclaration", ".", "ANNOTATION_TYPE_DECL", "&&", "this", ".", "typeDeclaration", ".", "allocation", "==", "null", ")", "{", "boolean", "insideFieldInitializer", "=", "false", ";", "RecoveredElement", "parentElement", "=", "this", ".", "parent", ";", "while", "(", "parentElement", "!=", "null", ")", "{", "if", "(", "parentElement", "instanceof", "RecoveredField", ")", "{", "insideFieldInitializer", "=", "true", ";", "break", ";", "}", "parentElement", "=", "parentElement", ".", "parent", ";", "}", "this", ".", "typeDeclaration", ".", "createDefaultConstructor", "(", "!", "parser", "(", ")", ".", "diet", "||", "insideFieldInitializer", ",", "true", ")", ";", "}", "}", "if", "(", "this", ".", "parent", "instanceof", "RecoveredType", ")", "{", "this", ".", "typeDeclaration", ".", "bits", "|=", "ASTNode", ".", "IsMemberType", ";", "}", "else", "if", "(", "this", ".", "parent", "instanceof", "RecoveredMethod", ")", "{", "this", ".", "typeDeclaration", ".", "bits", "|=", "ASTNode", ".", "IsLocalType", ";", "}", "if", "(", "this", ".", "typeDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "{", "this", ".", "typeDeclaration", ".", "declarationSourceEnd", "=", "lastEnd", ";", "this", ".", "typeDeclaration", ".", "bodyEnd", "=", "lastEnd", ";", "}", "return", "this", ".", "typeDeclaration", ";", "}", "public", "void", "updateFromParserState", "(", ")", "{", "if", "(", "bodyStartsAtHeaderEnd", "(", ")", "&&", "this", ".", "typeDeclaration", ".", "allocation", "==", "null", ")", "{", "Parser", "parser", "=", "parser", "(", ")", ";", "if", "(", "parser", ".", "listLength", ">", "0", "&&", "parser", ".", "astLengthPtr", ">", "0", ")", "{", "int", "length", "=", "parser", ".", "astLengthStack", "[", "parser", ".", "astLengthPtr", "]", ";", "int", "astPtr", "=", "parser", ".", "astPtr", "-", "length", ";", "boolean", "canConsume", "=", "astPtr", ">=", "0", ";", "if", "(", "canConsume", ")", "{", "if", "(", "(", "!", "(", "parser", ".", "astStack", "[", "astPtr", "]", "instanceof", "TypeDeclaration", ")", ")", ")", "{", "canConsume", "=", "false", ";", "}", "for", "(", "int", "i", "=", "1", ",", "max", "=", "length", "+", "1", ";", "i", "<", "max", ";", "i", "++", ")", "{", "if", "(", "!", "(", "parser", ".", "astStack", "[", "astPtr", "+", "i", "]", "instanceof", "TypeReference", ")", ")", "{", "canConsume", "=", "false", ";", "}", "}", "}", "if", "(", "canConsume", ")", "{", "parser", ".", "consumeClassHeaderImplements", "(", ")", ";", "}", "}", "else", "if", "(", "parser", ".", "listTypeParameterLength", ">", "0", ")", "{", "int", "length", "=", "parser", ".", "listTypeParameterLength", ";", "int", "genericsPtr", "=", "parser", ".", "genericsPtr", ";", "boolean", "canConsume", "=", "genericsPtr", "+", "1", ">=", "length", "&&", "parser", ".", "astPtr", ">", "-", "1", ";", "if", "(", "canConsume", ")", "{", "if", "(", "!", "(", "parser", ".", "astStack", "[", "parser", ".", "astPtr", "]", "instanceof", "TypeDeclaration", ")", ")", "{", "canConsume", "=", "false", ";", "}", "while", "(", "genericsPtr", "+", "1", ">", "length", "&&", "!", "(", "parser", ".", "genericsStack", "[", "genericsPtr", "]", "instanceof", "TypeParameter", ")", ")", "{", "genericsPtr", "--", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "!", "(", "parser", ".", "genericsStack", "[", "genericsPtr", "-", "i", "]", "instanceof", "TypeParameter", ")", ")", "{", "canConsume", "=", "false", ";", "}", "}", "}", "if", "(", "canConsume", ")", "{", "TypeDeclaration", "typeDecl", "=", "(", "TypeDeclaration", ")", "parser", ".", "astStack", "[", "parser", ".", "astPtr", "]", ";", "System", ".", "arraycopy", "(", "parser", ".", "genericsStack", ",", "genericsPtr", "-", "length", "+", "1", ",", "typeDecl", ".", "typeParameters", "=", "new", "TypeParameter", "[", "length", "]", ",", "0", ",", "length", ")", ";", "typeDecl", ".", "bodyStart", "=", "typeDecl", ".", "typeParameters", "[", "length", "-", "1", "]", ".", "declarationSourceEnd", "+", "1", ";", "parser", ".", "listTypeParameterLength", "=", "0", ";", "parser", ".", "lastCheckPoint", "=", "typeDecl", ".", "bodyStart", ";", "}", "}", "}", "}", "public", "RecoveredElement", "updateOnClosingBrace", "(", "int", "braceStart", ",", "int", "braceEnd", ")", "{", "if", "(", "(", "--", "this", ".", "bracketBalance", "<=", "0", ")", "&&", "(", "this", ".", "parent", "!=", "null", ")", ")", "{", "this", ".", "updateSourceEndIfNecessary", "(", "braceStart", ",", "braceEnd", ")", ";", "this", ".", "bodyEnd", "=", "braceStart", "-", "1", ";", "return", "this", ".", "parent", ";", "}", "return", "this", ";", "}", "public", "RecoveredElement", "updateOnOpeningBrace", "(", "int", "braceStart", ",", "int", "braceEnd", ")", "{", "if", "(", "this", ".", "bracketBalance", "==", "0", ")", "{", "Parser", "parser", "=", "parser", "(", ")", ";", "switch", "(", "parser", ".", "lastIgnoredToken", ")", "{", "case", "-", "1", ":", "case", "TokenNameextends", ":", "case", "TokenNameimplements", ":", "case", "TokenNameGREATER", ":", "case", "TokenNameRIGHT_SHIFT", ":", "case", "TokenNameUNSIGNED_RIGHT_SHIFT", ":", "if", "(", "parser", ".", "recoveredStaticInitializerStart", "==", "0", ")", "break", ";", "default", ":", "this", ".", "foundOpeningBrace", "=", "true", ";", "this", ".", "bracketBalance", "=", "1", ";", "}", "}", "if", "(", "this", ".", "bracketBalance", "==", "1", ")", "{", "Block", "block", "=", "new", "Block", "(", "0", ")", ";", "Parser", "parser", "=", "parser", "(", ")", ";", "block", ".", "sourceStart", "=", "parser", ".", "scanner", ".", "startPosition", ";", "Initializer", "init", ";", "if", "(", "parser", ".", "recoveredStaticInitializerStart", "==", "0", ")", "{", "init", "=", "new", "Initializer", "(", "block", ",", "ClassFileConstants", ".", "AccDefault", ")", ";", "}", "else", "{", "init", "=", "new", "Initializer", "(", "block", ",", "ClassFileConstants", ".", "AccStatic", ")", ";", "init", ".", "declarationSourceStart", "=", "parser", ".", "recoveredStaticInitializerStart", ";", "}", "init", ".", "bodyStart", "=", "parser", ".", "scanner", ".", "currentPosition", ";", "return", "this", ".", "add", "(", "init", ",", "1", ")", ";", "}", "return", "super", ".", "updateOnOpeningBrace", "(", "braceStart", ",", "braceEnd", ")", ";", "}", "public", "void", "updateParseTree", "(", ")", "{", "updatedTypeDeclaration", "(", "0", ",", "new", "HashSet", "(", ")", ")", ";", "}", "public", "void", "updateSourceEndIfNecessary", "(", "int", "start", ",", "int", "end", ")", "{", "if", "(", "this", ".", "typeDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "{", "this", ".", "bodyEnd", "=", "0", ";", "this", ".", "typeDeclaration", ".", "declarationSourceEnd", "=", "end", ";", "this", ".", "typeDeclaration", ".", "bodyEnd", "=", "end", ";", "}", "}", "public", "void", "annotationsConsumed", "(", "Annotation", "[", "]", "consumedAnnotations", ")", "{", "RecoveredAnnotation", "[", "]", "keep", "=", "new", "RecoveredAnnotation", "[", "this", ".", "pendingAnnotationCount", "]", ";", "int", "numKeep", "=", "0", ";", "int", "pendingCount", "=", "this", ".", "pendingAnnotationCount", ";", "int", "consumedLength", "=", "consumedAnnotations", ".", "length", ";", "outerLoop", ":", "for", "(", "int", "i", "=", "0", ";", "i", "<", "pendingCount", ";", "i", "++", ")", "{", "Annotation", "pendingAnnotationAST", "=", "this", ".", "pendingAnnotations", "[", "i", "]", ".", "annotation", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "consumedLength", ";", "j", "++", ")", "{", "if", "(", "consumedAnnotations", "[", "j", "]", "==", "pendingAnnotationAST", ")", "continue", "outerLoop", ";", "}", "keep", "[", "numKeep", "++", "]", "=", "this", ".", "pendingAnnotations", "[", "i", "]", ";", "}", "if", "(", "numKeep", "!=", "this", ".", "pendingAnnotationCount", ")", "{", "this", ".", "pendingAnnotations", "=", "keep", ";", "this", ".", "pendingAnnotationCount", "=", "numKeep", ";", "}", "}", "}", "</s>" ]
3,346
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "import", "java", ".", "io", ".", "*", ";", "import", "java", ".", "util", ".", "ArrayList", ";", "import", "java", ".", "util", ".", "Collections", ";", "import", "java", ".", "util", ".", "Iterator", ";", "import", "java", ".", "util", ".", "List", ";", "import", "java", ".", "util", ".", "Properties", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "InvalidInputException", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "CompilationResult", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ".", "ICompilationUnit", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "CompilerOptions", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "ReferenceContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ClassScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Binding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ExtraCompilerModifiers", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MethodScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "diagnose", ".", "DiagnoseParser", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "AbortCompilation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "AbortCompilationUnit", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "ProblemReporter", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "ProblemSeverities", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Messages", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "class", "Parser", "implements", "ParserBasicInformation", ",", "TerminalTokens", ",", "OperatorIds", ",", "TypeIds", "{", "protected", "static", "final", "int", "THIS_CALL", "=", "ExplicitConstructorCall", ".", "This", ";", "protected", "static", "final", "int", "SUPER_CALL", "=", "ExplicitConstructorCall", ".", "Super", ";", "public", "static", "final", "char", "[", "]", "FALL_THROUGH_TAG", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "char", "[", "]", "CASES_OMITTED_TAG", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "public", "static", "char", "asb", "[", "]", "=", "null", ";", "public", "static", "char", "asr", "[", "]", "=", "null", ";", "protected", "final", "static", "int", "AstStackIncrement", "=", "100", ";", "public", "static", "char", "base_action", "[", "]", "=", "null", ";", "public", "static", "final", "int", "BracketKinds", "=", "3", ";", "public", "static", "short", "check_table", "[", "]", "=", "null", ";", "public", "static", "final", "int", "CurlyBracket", "=", "2", ";", "private", "static", "final", "boolean", "DEBUG", "=", "false", ";", "private", "static", "final", "boolean", "DEBUG_AUTOMATON", "=", "false", ";", "private", "static", "final", "String", "EOF_TOKEN", "=", "\"$eof\"", ";", "private", "static", "final", "String", "ERROR_TOKEN", "=", "\"$error\"", ";", "protected", "final", "static", "int", "ExpressionStackIncrement", "=", "100", ";", "protected", "final", "static", "int", "GenericsStackIncrement", "=", "10", ";", "private", "final", "static", "String", "FILEPREFIX", "=", "\"parser\"", ";", "public", "static", "char", "in_symb", "[", "]", "=", "null", ";", "private", "static", "final", "String", "INVALID_CHARACTER", "=", "\"\"", ";", "public", "static", "char", "lhs", "[", "]", "=", "null", ";", "public", "static", "String", "name", "[", "]", "=", "null", ";", "public", "static", "char", "nasb", "[", "]", "=", "null", ";", "public", "static", "char", "nasr", "[", "]", "=", "null", ";", "public", "static", "char", "non_terminal_index", "[", "]", "=", "null", ";", "private", "final", "static", "String", "READABLE_NAMES_FILE", "=", "\"\"", ";", "public", "static", "String", "readableName", "[", "]", "=", "null", ";", "public", "static", "byte", "rhs", "[", "]", "=", "null", ";", "public", "static", "int", "[", "]", "reverse_index", "=", "null", ";", "public", "static", "char", "[", "]", "recovery_templates_index", "=", "null", ";", "public", "static", "char", "[", "]", "recovery_templates", "=", "null", ";", "public", "static", "char", "[", "]", "statements_recovery_filter", "=", "null", ";", "public", "static", "long", "rules_compliance", "[", "]", "=", "null", ";", "public", "static", "final", "int", "RoundBracket", "=", "0", ";", "public", "static", "byte", "scope_la", "[", "]", "=", "null", ";", "public", "static", "char", "scope_lhs", "[", "]", "=", "null", ";", "public", "static", "char", "scope_prefix", "[", "]", "=", "null", ";", "public", "static", "char", "scope_rhs", "[", "]", "=", "null", ";", "public", "static", "char", "scope_state", "[", "]", "=", "null", ";", "public", "static", "char", "scope_state_set", "[", "]", "=", "null", ";", "public", "static", "char", "scope_suffix", "[", "]", "=", "null", ";", "public", "static", "final", "int", "SquareBracket", "=", "1", ";", "protected", "final", "static", "int", "StackIncrement", "=", "255", ";", "public", "static", "char", "term_action", "[", "]", "=", "null", ";", "public", "static", "byte", "term_check", "[", "]", "=", "null", ";", "public", "static", "char", "terminal_index", "[", "]", "=", "null", ";", "private", "static", "final", "String", "UNEXPECTED_EOF", "=", "\"\"", ";", "public", "static", "boolean", "VERBOSE_RECOVERY", "=", "false", ";", "static", "{", "try", "{", "initTables", "(", ")", ";", "}", "catch", "(", "java", ".", "io", ".", "IOException", "ex", ")", "{", "throw", "new", "ExceptionInInitializerError", "(", "ex", ".", "getMessage", "(", ")", ")", ";", "}", "}", "public", "static", "int", "asi", "(", "int", "state", ")", "{", "return", "asb", "[", "original_state", "(", "state", ")", "]", ";", "}", "public", "final", "static", "short", "base_check", "(", "int", "i", ")", "{", "return", "check_table", "[", "i", "-", "(", "NUM_RULES", "+", "1", ")", "]", ";", "}", "private", "final", "static", "void", "buildFile", "(", "String", "filename", ",", "List", "listToDump", ")", "{", "BufferedWriter", "writer", "=", "null", ";", "try", "{", "writer", "=", "new", "BufferedWriter", "(", "new", "FileWriter", "(", "filename", ")", ")", ";", "for", "(", "Iterator", "iterator", "=", "listToDump", ".", "iterator", "(", ")", ";", "iterator", ".", "hasNext", "(", ")", ";", ")", "{", "writer", ".", "write", "(", "String", ".", "valueOf", "(", "iterator", ".", "next", "(", ")", ")", ")", ";", "}", "writer", ".", "flush", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "}", "finally", "{", "if", "(", "writer", "!=", "null", ")", "{", "try", "{", "writer", ".", "close", "(", ")", ";", "}", "catch", "(", "IOException", "e1", ")", "{", "}", "}", "}", "System", ".", "out", ".", "println", "(", "filename", "+", "\"\"", ")", ";", "}", "private", "static", "void", "buildFileForCompliance", "(", "String", "file", ",", "int", "length", ",", "String", "[", "]", "tokens", ")", "{", "byte", "[", "]", "result", "=", "new", "byte", "[", "length", "*", "8", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "tokens", ".", "length", ";", "i", "=", "i", "+", "3", ")", "{", "if", "(", "\"2\"", ".", "equals", "(", "tokens", "[", "i", "]", ")", ")", "{", "int", "index", "=", "Integer", ".", "parseInt", "(", "tokens", "[", "i", "+", "1", "]", ")", ";", "String", "token", "=", "tokens", "[", "i", "+", "2", "]", ".", "trim", "(", ")", ";", "long", "compliance", "=", "0", ";", "if", "(", "\"1.4\"", ".", "equals", "(", "token", ")", ")", "{", "compliance", "=", "ClassFileConstants", ".", "JDK1_4", ";", "}", "else", "if", "(", "\"1.5\"", ".", "equals", "(", "token", ")", ")", "{", "compliance", "=", "ClassFileConstants", ".", "JDK1_5", ";", "}", "else", "if", "(", "\"recovery\"", ".", "equals", "(", "token", ")", ")", "{", "compliance", "=", "ClassFileConstants", ".", "JDK_DEFERRED", ";", "}", "int", "j", "=", "index", "*", "8", ";", "result", "[", "j", "]", "=", "(", "byte", ")", "(", "compliance", ">>>", "56", ")", ";", "result", "[", "j", "+", "1", "]", "=", "(", "byte", ")", "(", "compliance", ">>>", "48", ")", ";", "result", "[", "j", "+", "2", "]", "=", "(", "byte", ")", "(", "compliance", ">>>", "40", ")", ";", "result", "[", "j", "+", "3", "]", "=", "(", "byte", ")", "(", "compliance", ">>>", "32", ")", ";", "result", "[", "j", "+", "4", "]", "=", "(", "byte", ")", "(", "compliance", ">>>", "24", ")", ";", "result", "[", "j", "+", "5", "]", "=", "(", "byte", ")", "(", "compliance", ">>>", "16", ")", ";", "result", "[", "j", "+", "6", "]", "=", "(", "byte", ")", "(", "compliance", ">>>", "8", ")", ";", "result", "[", "j", "+", "7", "]", "=", "(", "byte", ")", "(", "compliance", ")", ";", "}", "}", "buildFileForTable", "(", "file", ",", "result", ")", ";", "}", "private", "final", "static", "String", "[", "]", "buildFileForName", "(", "String", "filename", ",", "String", "contents", ")", "{", "String", "[", "]", "result", "=", "new", "String", "[", "contents", ".", "length", "(", ")", "]", ";", "result", "[", "0", "]", "=", "null", ";", "int", "resultCount", "=", "1", ";", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "int", "start", "=", "contents", ".", "indexOf", "(", "\"name[]\"", ")", ";", "start", "=", "contents", ".", "indexOf", "(", "'\\\"'", ",", "start", ")", ";", "int", "end", "=", "contents", ".", "indexOf", "(", "\"};\"", ",", "start", ")", ";", "contents", "=", "contents", ".", "substring", "(", "start", ",", "end", ")", ";", "boolean", "addLineSeparator", "=", "false", ";", "int", "tokenStart", "=", "-", "1", ";", "StringBuffer", "currentToken", "=", "new", "StringBuffer", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "contents", ".", "length", "(", ")", ";", "i", "++", ")", "{", "char", "c", "=", "contents", ".", "charAt", "(", "i", ")", ";", "if", "(", "c", "==", "'\\\"'", ")", "{", "if", "(", "tokenStart", "==", "-", "1", ")", "{", "tokenStart", "=", "i", "+", "1", ";", "}", "else", "{", "if", "(", "addLineSeparator", ")", "{", "buffer", ".", "append", "(", "'\\n'", ")", ";", "result", "[", "resultCount", "++", "]", "=", "currentToken", ".", "toString", "(", ")", ";", "currentToken", "=", "new", "StringBuffer", "(", ")", ";", "}", "String", "token", "=", "contents", ".", "substring", "(", "tokenStart", ",", "i", ")", ";", "if", "(", "token", ".", "equals", "(", "ERROR_TOKEN", ")", ")", "{", "token", "=", "INVALID_CHARACTER", ";", "}", "else", "if", "(", "token", ".", "equals", "(", "EOF_TOKEN", ")", ")", "{", "token", "=", "UNEXPECTED_EOF", ";", "}", "buffer", ".", "append", "(", "token", ")", ";", "currentToken", ".", "append", "(", "token", ")", ";", "addLineSeparator", "=", "true", ";", "tokenStart", "=", "-", "1", ";", "}", "}", "if", "(", "tokenStart", "==", "-", "1", "&&", "c", "==", "'+'", ")", "{", "addLineSeparator", "=", "false", ";", "}", "}", "if", "(", "currentToken", ".", "length", "(", ")", ">", "0", ")", "{", "result", "[", "resultCount", "++", "]", "=", "currentToken", ".", "toString", "(", ")", ";", "}", "buildFileForTable", "(", "filename", ",", "buffer", ".", "toString", "(", ")", ".", "toCharArray", "(", ")", ")", ";", "System", ".", "arraycopy", "(", "result", ",", "0", ",", "result", "=", "new", "String", "[", "resultCount", "]", ",", "0", ",", "resultCount", ")", ";", "return", "result", ";", "}", "private", "static", "void", "buildFileForReadableName", "(", "String", "file", ",", "char", "[", "]", "newLhs", ",", "char", "[", "]", "newNonTerminalIndex", ",", "String", "[", "]", "newName", ",", "String", "[", "]", "tokens", ")", "{", "ArrayList", "entries", "=", "new", "ArrayList", "(", ")", ";", "boolean", "[", "]", "alreadyAdded", "=", "new", "boolean", "[", "newName", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "tokens", ".", "length", ";", "i", "=", "i", "+", "3", ")", "{", "if", "(", "\"1\"", ".", "equals", "(", "tokens", "[", "i", "]", ")", ")", "{", "int", "index", "=", "newNonTerminalIndex", "[", "newLhs", "[", "Integer", ".", "parseInt", "(", "tokens", "[", "i", "+", "1", "]", ")", "]", "]", ";", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "if", "(", "!", "alreadyAdded", "[", "index", "]", ")", "{", "alreadyAdded", "[", "index", "]", "=", "true", ";", "buffer", ".", "append", "(", "newName", "[", "index", "]", ")", ";", "buffer", ".", "append", "(", "'='", ")", ";", "buffer", ".", "append", "(", "tokens", "[", "i", "+", "2", "]", ".", "trim", "(", ")", ")", ";", "buffer", ".", "append", "(", "'\\n'", ")", ";", "entries", ".", "add", "(", "String", ".", "valueOf", "(", "buffer", ")", ")", ";", "}", "}", "}", "int", "i", "=", "1", ";", "while", "(", "!", "INVALID_CHARACTER", ".", "equals", "(", "newName", "[", "i", "]", ")", ")", "i", "++", ";", "i", "++", ";", "for", "(", ";", "i", "<", "alreadyAdded", ".", "length", ";", "i", "++", ")", "{", "if", "(", "!", "alreadyAdded", "[", "i", "]", ")", "{", "System", ".", "out", ".", "println", "(", "newName", "[", "i", "]", "+", "\"\"", ")", ";", "}", "}", "Collections", ".", "sort", "(", "entries", ")", ";", "buildFile", "(", "file", ",", "entries", ")", ";", "}", "private", "final", "static", "void", "buildFileForTable", "(", "String", "filename", ",", "byte", "[", "]", "bytes", ")", "{", "java", ".", "io", ".", "FileOutputStream", "stream", "=", "null", ";", "try", "{", "stream", "=", "new", "java", ".", "io", ".", "FileOutputStream", "(", "filename", ")", ";", "stream", ".", "write", "(", "bytes", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "}", "finally", "{", "if", "(", "stream", "!=", "null", ")", "{", "try", "{", "stream", ".", "close", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "}", "}", "}", "System", ".", "out", ".", "println", "(", "filename", "+", "\"\"", ")", ";", "}", "private", "final", "static", "void", "buildFileForTable", "(", "String", "filename", ",", "char", "[", "]", "chars", ")", "{", "byte", "[", "]", "bytes", "=", "new", "byte", "[", "chars", ".", "length", "*", "2", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "chars", ".", "length", ";", "i", "++", ")", "{", "bytes", "[", "2", "*", "i", "]", "=", "(", "byte", ")", "(", "chars", "[", "i", "]", ">>>", "8", ")", ";", "bytes", "[", "2", "*", "i", "+", "1", "]", "=", "(", "byte", ")", "(", "chars", "[", "i", "]", "&", "0xFF", ")", ";", "}", "java", ".", "io", ".", "FileOutputStream", "stream", "=", "null", ";", "try", "{", "stream", "=", "new", "java", ".", "io", ".", "FileOutputStream", "(", "filename", ")", ";", "stream", ".", "write", "(", "bytes", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "}", "finally", "{", "if", "(", "stream", "!=", "null", ")", "{", "try", "{", "stream", ".", "close", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "}", "}", "}", "System", ".", "out", ".", "println", "(", "filename", "+", "\"\"", ")", ";", "}", "private", "final", "static", "byte", "[", "]", "buildFileOfByteFor", "(", "String", "filename", ",", "String", "tag", ",", "String", "[", "]", "tokens", ")", "{", "int", "i", "=", "0", ";", "while", "(", "!", "tokens", "[", "i", "++", "]", ".", "equals", "(", "tag", ")", ")", "{", "}", "byte", "[", "]", "bytes", "=", "new", "byte", "[", "tokens", ".", "length", "]", ";", "int", "ic", "=", "0", ";", "String", "token", ";", "while", "(", "!", "(", "token", "=", "tokens", "[", "i", "++", "]", ")", ".", "equals", "(", "\"}\"", ")", ")", "{", "int", "c", "=", "Integer", ".", "parseInt", "(", "token", ")", ";", "bytes", "[", "ic", "++", "]", "=", "(", "byte", ")", "c", ";", "}", "System", ".", "arraycopy", "(", "bytes", ",", "0", ",", "bytes", "=", "new", "byte", "[", "ic", "]", ",", "0", ",", "ic", ")", ";", "buildFileForTable", "(", "filename", ",", "bytes", ")", ";", "return", "bytes", ";", "}", "private", "final", "static", "char", "[", "]", "buildFileOfIntFor", "(", "String", "filename", ",", "String", "tag", ",", "String", "[", "]", "tokens", ")", "{", "int", "i", "=", "0", ";", "while", "(", "!", "tokens", "[", "i", "++", "]", ".", "equals", "(", "tag", ")", ")", "{", "}", "char", "[", "]", "chars", "=", "new", "char", "[", "tokens", ".", "length", "]", ";", "int", "ic", "=", "0", ";", "String", "token", ";", "while", "(", "!", "(", "token", "=", "tokens", "[", "i", "++", "]", ")", ".", "equals", "(", "\"}\"", ")", ")", "{", "int", "c", "=", "Integer", ".", "parseInt", "(", "token", ")", ";", "chars", "[", "ic", "++", "]", "=", "(", "char", ")", "c", ";", "}", "System", ".", "arraycopy", "(", "chars", ",", "0", ",", "chars", "=", "new", "char", "[", "ic", "]", ",", "0", ",", "ic", ")", ";", "buildFileForTable", "(", "filename", ",", "chars", ")", ";", "return", "chars", ";", "}", "private", "final", "static", "void", "buildFileOfShortFor", "(", "String", "filename", ",", "String", "tag", ",", "String", "[", "]", "tokens", ")", "{", "int", "i", "=", "0", ";", "while", "(", "!", "tokens", "[", "i", "++", "]", ".", "equals", "(", "tag", ")", ")", "{", "}", "char", "[", "]", "chars", "=", "new", "char", "[", "tokens", ".", "length", "]", ";", "int", "ic", "=", "0", ";", "String", "token", ";", "while", "(", "!", "(", "token", "=", "tokens", "[", "i", "++", "]", ")", ".", "equals", "(", "\"}\"", ")", ")", "{", "int", "c", "=", "Integer", ".", "parseInt", "(", "token", ")", ";", "chars", "[", "ic", "++", "]", "=", "(", "char", ")", "(", "c", "+", "32768", ")", ";", "}", "System", ".", "arraycopy", "(", "chars", ",", "0", ",", "chars", "=", "new", "char", "[", "ic", "]", ",", "0", ",", "ic", ")", ";", "buildFileForTable", "(", "filename", ",", "chars", ")", ";", "}", "private", "static", "void", "buildFilesForRecoveryTemplates", "(", "String", "indexFilename", ",", "String", "templatesFilename", ",", "char", "[", "]", "newTerminalIndex", ",", "char", "[", "]", "newNonTerminalIndex", ",", "String", "[", "]", "newName", ",", "char", "[", "]", "newLhs", ",", "String", "[", "]", "tokens", ")", "{", "int", "[", "]", "newReverse", "=", "computeReverseTable", "(", "newTerminalIndex", ",", "newNonTerminalIndex", ",", "newName", ")", ";", "char", "[", "]", "newRecoveyTemplatesIndex", "=", "new", "char", "[", "newNonTerminalIndex", ".", "length", "]", ";", "char", "[", "]", "newRecoveyTemplates", "=", "new", "char", "[", "newNonTerminalIndex", ".", "length", "]", ";", "int", "newRecoveyTemplatesPtr", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "tokens", ".", "length", ";", "i", "=", "i", "+", "3", ")", "{", "if", "(", "\"3\"", ".", "equals", "(", "tokens", "[", "i", "]", ")", ")", "{", "int", "length", "=", "newRecoveyTemplates", ".", "length", ";", "if", "(", "length", "==", "newRecoveyTemplatesPtr", "+", "1", ")", "{", "System", ".", "arraycopy", "(", "newRecoveyTemplates", ",", "0", ",", "newRecoveyTemplates", "=", "new", "char", "[", "length", "*", "2", "]", ",", "0", ",", "length", ")", ";", "}", "newRecoveyTemplates", "[", "newRecoveyTemplatesPtr", "++", "]", "=", "0", ";", "int", "index", "=", "newLhs", "[", "Integer", ".", "parseInt", "(", "tokens", "[", "i", "+", "1", "]", ")", "]", ";", "newRecoveyTemplatesIndex", "[", "index", "]", "=", "(", "char", ")", "newRecoveyTemplatesPtr", ";", "String", "token", "=", "tokens", "[", "i", "+", "2", "]", ".", "trim", "(", ")", ";", "java", ".", "util", ".", "StringTokenizer", "st", "=", "new", "java", ".", "util", ".", "StringTokenizer", "(", "token", ",", "\"", "\"", ")", ";", "String", "[", "]", "terminalNames", "=", "new", "String", "[", "st", ".", "countTokens", "(", ")", "]", ";", "int", "t", "=", "0", ";", "while", "(", "st", ".", "hasMoreTokens", "(", ")", ")", "{", "terminalNames", "[", "t", "++", "]", "=", "st", ".", "nextToken", "(", ")", ";", "}", "for", "(", "int", "j", "=", "0", ";", "j", "<", "terminalNames", ".", "length", ";", "j", "++", ")", "{", "int", "symbol", "=", "getSymbol", "(", "terminalNames", "[", "j", "]", ",", "newName", ",", "newReverse", ")", ";", "if", "(", "symbol", ">", "-", "1", ")", "{", "length", "=", "newRecoveyTemplates", ".", "length", ";", "if", "(", "length", "==", "newRecoveyTemplatesPtr", "+", "1", ")", "{", "System", ".", "arraycopy", "(", "newRecoveyTemplates", ",", "0", ",", "newRecoveyTemplates", "=", "new", "char", "[", "length", "*", "2", "]", ",", "0", ",", "length", ")", ";", "}", "newRecoveyTemplates", "[", "newRecoveyTemplatesPtr", "++", "]", "=", "(", "char", ")", "symbol", ";", "}", "}", "}", "}", "newRecoveyTemplates", "[", "newRecoveyTemplatesPtr", "++", "]", "=", "0", ";", "System", ".", "arraycopy", "(", "newRecoveyTemplates", ",", "0", ",", "newRecoveyTemplates", "=", "new", "char", "[", "newRecoveyTemplatesPtr", "]", ",", "0", ",", "newRecoveyTemplatesPtr", ")", ";", "buildFileForTable", "(", "indexFilename", ",", "newRecoveyTemplatesIndex", ")", ";", "buildFileForTable", "(", "templatesFilename", ",", "newRecoveyTemplates", ")", ";", "}", "private", "static", "void", "buildFilesForStatementsRecoveryFilter", "(", "String", "filename", ",", "char", "[", "]", "newNonTerminalIndex", ",", "char", "[", "]", "newLhs", ",", "String", "[", "]", "tokens", ")", "{", "char", "[", "]", "newStatementsRecoveryFilter", "=", "new", "char", "[", "newNonTerminalIndex", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "tokens", ".", "length", ";", "i", "=", "i", "+", "3", ")", "{", "if", "(", "\"4\"", ".", "equals", "(", "tokens", "[", "i", "]", ")", ")", "{", "int", "index", "=", "newLhs", "[", "Integer", ".", "parseInt", "(", "tokens", "[", "i", "+", "1", "]", ")", "]", ";", "newStatementsRecoveryFilter", "[", "index", "]", "=", "1", ";", "}", "}", "buildFileForTable", "(", "filename", ",", "newStatementsRecoveryFilter", ")", ";", "}", "public", "final", "static", "void", "buildFilesFromLPG", "(", "String", "dataFilename", ",", "String", "dataFilename2", ")", "{", "char", "[", "]", "contents", "=", "CharOperation", ".", "NO_CHAR", ";", "try", "{", "contents", "=", "Util", ".", "getFileCharContent", "(", "new", "File", "(", "dataFilename", ")", ",", "null", ")", ";", "}", "catch", "(", "IOException", "ex", ")", "{", "System", ".", "out", ".", "println", "(", "Messages", ".", "parser_incorrectPath", ")", ";", "return", ";", "}", "java", ".", "util", ".", "StringTokenizer", "st", "=", "new", "java", ".", "util", ".", "StringTokenizer", "(", "new", "String", "(", "contents", ")", ",", "\"", "tnr[]={,;\"", ")", ";", "String", "[", "]", "tokens", "=", "new", "String", "[", "st", ".", "countTokens", "(", ")", "]", ";", "int", "j", "=", "0", ";", "while", "(", "st", ".", "hasMoreTokens", "(", ")", ")", "{", "tokens", "[", "j", "++", "]", "=", "st", ".", "nextToken", "(", ")", ";", "}", "final", "String", "prefix", "=", "FILEPREFIX", ";", "int", "i", "=", "0", ";", "char", "[", "]", "newLhs", "=", "buildFileOfIntFor", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "\"lhs\"", ",", "tokens", ")", ";", "buildFileOfShortFor", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "\"check_table\"", ",", "tokens", ")", ";", "buildFileOfIntFor", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "\"asb\"", ",", "tokens", ")", ";", "buildFileOfIntFor", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "\"asr\"", ",", "tokens", ")", ";", "buildFileOfIntFor", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "\"nasb\"", ",", "tokens", ")", ";", "buildFileOfIntFor", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "\"nasr\"", ",", "tokens", ")", ";", "char", "[", "]", "newTerminalIndex", "=", "buildFileOfIntFor", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "\"\"", ",", "tokens", ")", ";", "char", "[", "]", "newNonTerminalIndex", "=", "buildFileOfIntFor", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "\"\"", ",", "tokens", ")", ";", "buildFileOfIntFor", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "\"term_action\"", ",", "tokens", ")", ";", "buildFileOfIntFor", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "\"scope_prefix\"", ",", "tokens", ")", ";", "buildFileOfIntFor", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "\"scope_suffix\"", ",", "tokens", ")", ";", "buildFileOfIntFor", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "\"scope_lhs\"", ",", "tokens", ")", ";", "buildFileOfIntFor", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "\"\"", ",", "tokens", ")", ";", "buildFileOfIntFor", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "\"scope_rhs\"", ",", "tokens", ")", ";", "buildFileOfIntFor", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "\"scope_state\"", ",", "tokens", ")", ";", "buildFileOfIntFor", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "\"in_symb\"", ",", "tokens", ")", ";", "byte", "[", "]", "newRhs", "=", "buildFileOfByteFor", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "\"rhs\"", ",", "tokens", ")", ";", "buildFileOfByteFor", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "\"term_check\"", ",", "tokens", ")", ";", "buildFileOfByteFor", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "\"scope_la\"", ",", "tokens", ")", ";", "String", "[", "]", "newName", "=", "buildFileForName", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "new", "String", "(", "contents", ")", ")", ";", "contents", "=", "CharOperation", ".", "NO_CHAR", ";", "try", "{", "contents", "=", "Util", ".", "getFileCharContent", "(", "new", "File", "(", "dataFilename2", ")", ",", "null", ")", ";", "}", "catch", "(", "IOException", "ex", ")", "{", "System", ".", "out", ".", "println", "(", "Messages", ".", "parser_incorrectPath", ")", ";", "return", ";", "}", "st", "=", "new", "java", ".", "util", ".", "StringTokenizer", "(", "new", "String", "(", "contents", ")", ",", "\"tnr#\"", ")", ";", "tokens", "=", "new", "String", "[", "st", ".", "countTokens", "(", ")", "]", ";", "j", "=", "0", ";", "while", "(", "st", ".", "hasMoreTokens", "(", ")", ")", "{", "tokens", "[", "j", "++", "]", "=", "st", ".", "nextToken", "(", ")", ";", "}", "buildFileForCompliance", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "newRhs", ".", "length", ",", "tokens", ")", ";", "buildFileForReadableName", "(", "READABLE_NAMES_FILE", "+", "\".props\"", ",", "newLhs", ",", "newNonTerminalIndex", ",", "newName", ",", "tokens", ")", ";", "buildFilesForRecoveryTemplates", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "newTerminalIndex", ",", "newNonTerminalIndex", ",", "newName", ",", "newLhs", ",", "tokens", ")", ";", "buildFilesForStatementsRecoveryFilter", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ",", "newNonTerminalIndex", ",", "newLhs", ",", "tokens", ")", ";", "System", ".", "out", ".", "println", "(", "Messages", ".", "parser_moveFiles", ")", ";", "}", "protected", "static", "int", "[", "]", "computeReverseTable", "(", "char", "[", "]", "newTerminalIndex", ",", "char", "[", "]", "newNonTerminalIndex", ",", "String", "[", "]", "newName", ")", "{", "int", "[", "]", "newReverseTable", "=", "new", "int", "[", "newName", ".", "length", "]", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "newName", ".", "length", ";", "j", "++", ")", "{", "found", ":", "{", "for", "(", "int", "k", "=", "0", ";", "k", "<", "newTerminalIndex", ".", "length", ";", "k", "++", ")", "{", "if", "(", "newTerminalIndex", "[", "k", "]", "==", "j", ")", "{", "newReverseTable", "[", "j", "]", "=", "k", ";", "break", "found", ";", "}", "}", "for", "(", "int", "k", "=", "0", ";", "k", "<", "newNonTerminalIndex", ".", "length", ";", "k", "++", ")", "{", "if", "(", "newNonTerminalIndex", "[", "k", "]", "==", "j", ")", "{", "newReverseTable", "[", "j", "]", "=", "-", "k", ";", "break", "found", ";", "}", "}", "}", "}", "return", "newReverseTable", ";", "}", "private", "static", "int", "getSymbol", "(", "String", "terminalName", ",", "String", "[", "]", "newName", ",", "int", "[", "]", "newReverse", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "newName", ".", "length", ";", "j", "++", ")", "{", "if", "(", "terminalName", ".", "equals", "(", "newName", "[", "j", "]", ")", ")", "{", "return", "newReverse", "[", "j", "]", ";", "}", "}", "return", "-", "1", ";", "}", "public", "static", "int", "in_symbol", "(", "int", "state", ")", "{", "return", "in_symb", "[", "original_state", "(", "state", ")", "]", ";", "}", "public", "final", "static", "void", "initTables", "(", ")", "throws", "java", ".", "io", ".", "IOException", "{", "final", "String", "prefix", "=", "FILEPREFIX", ";", "int", "i", "=", "0", ";", "lhs", "=", "readTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "char", "[", "]", "chars", "=", "readTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "check_table", "=", "new", "short", "[", "chars", ".", "length", "]", ";", "for", "(", "int", "c", "=", "chars", ".", "length", ";", "c", "--", ">", "0", ";", ")", "{", "check_table", "[", "c", "]", "=", "(", "short", ")", "(", "chars", "[", "c", "]", "-", "32768", ")", ";", "}", "asb", "=", "readTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "asr", "=", "readTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "nasb", "=", "readTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "nasr", "=", "readTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "terminal_index", "=", "readTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "non_terminal_index", "=", "readTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "term_action", "=", "readTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "scope_prefix", "=", "readTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "scope_suffix", "=", "readTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "scope_lhs", "=", "readTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "scope_state_set", "=", "readTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "scope_rhs", "=", "readTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "scope_state", "=", "readTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "in_symb", "=", "readTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "rhs", "=", "readByteTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "term_check", "=", "readByteTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "scope_la", "=", "readByteTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "name", "=", "readNameTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "rules_compliance", "=", "readLongTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "readableName", "=", "readReadableNameTable", "(", "READABLE_NAMES_FILE", "+", "\".props\"", ")", ";", "reverse_index", "=", "computeReverseTable", "(", "terminal_index", ",", "non_terminal_index", ",", "name", ")", ";", "recovery_templates_index", "=", "readTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "recovery_templates", "=", "readTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "statements_recovery_filter", "=", "readTable", "(", "prefix", "+", "(", "++", "i", ")", "+", "\".rsc\"", ")", ";", "base_action", "=", "lhs", ";", "}", "public", "static", "int", "nasi", "(", "int", "state", ")", "{", "return", "nasb", "[", "original_state", "(", "state", ")", "]", ";", "}", "public", "static", "int", "ntAction", "(", "int", "state", ",", "int", "sym", ")", "{", "return", "base_action", "[", "state", "+", "sym", "]", ";", "}", "protected", "static", "int", "original_state", "(", "int", "state", ")", "{", "return", "-", "base_check", "(", "state", ")", ";", "}", "protected", "static", "byte", "[", "]", "readByteTable", "(", "String", "filename", ")", "throws", "java", ".", "io", ".", "IOException", "{", "InputStream", "stream", "=", "Parser", ".", "class", ".", "getResourceAsStream", "(", "filename", ")", ";", "if", "(", "stream", "==", "null", ")", "{", "throw", "new", "java", ".", "io", ".", "IOException", "(", "Messages", ".", "bind", "(", "Messages", ".", "parser_missingFile", ",", "filename", ")", ")", ";", "}", "byte", "[", "]", "bytes", "=", "null", ";", "try", "{", "stream", "=", "new", "BufferedInputStream", "(", "stream", ")", ";", "bytes", "=", "Util", ".", "getInputStreamAsByteArray", "(", "stream", ",", "-", "1", ")", ";", "}", "finally", "{", "try", "{", "stream", ".", "close", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "}", "}", "return", "bytes", ";", "}", "protected", "static", "long", "[", "]", "readLongTable", "(", "String", "filename", ")", "throws", "java", ".", "io", ".", "IOException", "{", "InputStream", "stream", "=", "Parser", ".", "class", ".", "getResourceAsStream", "(", "filename", ")", ";", "if", "(", "stream", "==", "null", ")", "{", "throw", "new", "java", ".", "io", ".", "IOException", "(", "Messages", ".", "bind", "(", "Messages", ".", "parser_missingFile", ",", "filename", ")", ")", ";", "}", "byte", "[", "]", "bytes", "=", "null", ";", "try", "{", "stream", "=", "new", "BufferedInputStream", "(", "stream", ")", ";", "bytes", "=", "Util", ".", "getInputStreamAsByteArray", "(", "stream", ",", "-", "1", ")", ";", "}", "finally", "{", "try", "{", "stream", ".", "close", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "}", "}", "int", "length", "=", "bytes", ".", "length", ";", "if", "(", "length", "%", "8", "!=", "0", ")", "throw", "new", "java", ".", "io", ".", "IOException", "(", "Messages", ".", "bind", "(", "Messages", ".", "parser_corruptedFile", ",", "filename", ")", ")", ";", "long", "[", "]", "longs", "=", "new", "long", "[", "length", "/", "8", "]", ";", "int", "i", "=", "0", ";", "int", "longIndex", "=", "0", ";", "while", "(", "true", ")", "{", "longs", "[", "longIndex", "++", "]", "=", "(", "(", "(", "long", ")", "(", "bytes", "[", "i", "++", "]", "&", "0xFF", ")", ")", "<<", "56", ")", "+", "(", "(", "(", "long", ")", "(", "bytes", "[", "i", "++", "]", "&", "0xFF", ")", ")", "<<", "48", ")", "+", "(", "(", "(", "long", ")", "(", "bytes", "[", "i", "++", "]", "&", "0xFF", ")", ")", "<<", "40", ")", "+", "(", "(", "(", "long", ")", "(", "bytes", "[", "i", "++", "]", "&", "0xFF", ")", ")", "<<", "32", ")", "+", "(", "(", "(", "long", ")", "(", "bytes", "[", "i", "++", "]", "&", "0xFF", ")", ")", "<<", "24", ")", "+", "(", "(", "(", "long", ")", "(", "bytes", "[", "i", "++", "]", "&", "0xFF", ")", ")", "<<", "16", ")", "+", "(", "(", "(", "long", ")", "(", "bytes", "[", "i", "++", "]", "&", "0xFF", ")", ")", "<<", "8", ")", "+", "(", "bytes", "[", "i", "++", "]", "&", "0xFF", ")", ";", "if", "(", "i", "==", "length", ")", "break", ";", "}", "return", "longs", ";", "}", "protected", "static", "String", "[", "]", "readNameTable", "(", "String", "filename", ")", "throws", "java", ".", "io", ".", "IOException", "{", "char", "[", "]", "contents", "=", "readTable", "(", "filename", ")", ";", "char", "[", "]", "[", "]", "nameAsChar", "=", "CharOperation", ".", "splitOn", "(", "'\\n'", ",", "contents", ")", ";", "String", "[", "]", "result", "=", "new", "String", "[", "nameAsChar", ".", "length", "+", "1", "]", ";", "result", "[", "0", "]", "=", "null", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "nameAsChar", ".", "length", ";", "i", "++", ")", "{", "result", "[", "i", "+", "1", "]", "=", "new", "String", "(", "nameAsChar", "[", "i", "]", ")", ";", "}", "return", "result", ";", "}", "protected", "static", "String", "[", "]", "readReadableNameTable", "(", "String", "filename", ")", "{", "String", "[", "]", "result", "=", "new", "String", "[", "name", ".", "length", "]", ";", "InputStream", "is", "=", "Parser", ".", "class", ".", "getResourceAsStream", "(", "filename", ")", ";", "Properties", "props", "=", "new", "Properties", "(", ")", ";", "try", "{", "props", ".", "load", "(", "is", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "result", "=", "name", ";", "return", "result", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "NT_OFFSET", "+", "1", ";", "i", "++", ")", "{", "result", "[", "i", "]", "=", "name", "[", "i", "]", ";", "}", "for", "(", "int", "i", "=", "NT_OFFSET", ";", "i", "<", "name", ".", "length", ";", "i", "++", ")", "{", "String", "n", "=", "props", ".", "getProperty", "(", "name", "[", "i", "]", ")", ";", "if", "(", "n", "!=", "null", "&&", "n", ".", "length", "(", ")", ">", "0", ")", "{", "result", "[", "i", "]", "=", "n", ";", "}", "else", "{", "result", "[", "i", "]", "=", "name", "[", "i", "]", ";", "}", "}", "return", "result", ";", "}", "protected", "static", "char", "[", "]", "readTable", "(", "String", "filename", ")", "throws", "java", ".", "io", ".", "IOException", "{", "InputStream", "stream", "=", "Parser", ".", "class", ".", "getResourceAsStream", "(", "filename", ")", ";", "if", "(", "stream", "==", "null", ")", "{", "throw", "new", "java", ".", "io", ".", "IOException", "(", "Messages", ".", "bind", "(", "Messages", ".", "parser_missingFile", ",", "filename", ")", ")", ";", "}", "byte", "[", "]", "bytes", "=", "null", ";", "try", "{", "stream", "=", "new", "BufferedInputStream", "(", "stream", ")", ";", "bytes", "=", "Util", ".", "getInputStreamAsByteArray", "(", "stream", ",", "-", "1", ")", ";", "}", "finally", "{", "try", "{", "stream", ".", "close", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "}", "}", "int", "length", "=", "bytes", ".", "length", ";", "if", "(", "(", "length", "&", "1", ")", "!=", "0", ")", "throw", "new", "java", ".", "io", ".", "IOException", "(", "Messages", ".", "bind", "(", "Messages", ".", "parser_corruptedFile", ",", "filename", ")", ")", ";", "char", "[", "]", "chars", "=", "new", "char", "[", "length", "/", "2", "]", ";", "int", "i", "=", "0", ";", "int", "charIndex", "=", "0", ";", "while", "(", "true", ")", "{", "chars", "[", "charIndex", "++", "]", "=", "(", "char", ")", "(", "(", "(", "bytes", "[", "i", "++", "]", "&", "0xFF", ")", "<<", "8", ")", "+", "(", "bytes", "[", "i", "++", "]", "&", "0xFF", ")", ")", ";", "if", "(", "i", "==", "length", ")", "break", ";", "}", "return", "chars", ";", "}", "public", "static", "int", "tAction", "(", "int", "state", ",", "int", "sym", ")", "{", "return", "term_action", "[", "term_check", "[", "base_action", "[", "state", "]", "+", "sym", "]", "==", "sym", "?", "base_action", "[", "state", "]", "+", "sym", ":", "base_action", "[", "state", "]", "]", ";", "}", "protected", "int", "astLengthPtr", ";", "protected", "int", "[", "]", "astLengthStack", ";", "protected", "int", "astPtr", ";", "protected", "ASTNode", "[", "]", "astStack", "=", "new", "ASTNode", "[", "AstStackIncrement", "]", ";", "public", "CompilationUnitDeclaration", "compilationUnit", ";", "protected", "RecoveredElement", "currentElement", ";", "public", "int", "currentToken", ";", "protected", "boolean", "diet", "=", "false", ";", "protected", "int", "dietInt", "=", "0", ";", "protected", "int", "endPosition", ";", "protected", "int", "endStatementPosition", ";", "protected", "int", "expressionLengthPtr", ";", "protected", "int", "[", "]", "expressionLengthStack", ";", "protected", "int", "expressionPtr", ";", "protected", "Expression", "[", "]", "expressionStack", "=", "new", "Expression", "[", "ExpressionStackIncrement", "]", ";", "public", "int", "firstToken", ";", "protected", "int", "genericsIdentifiersLengthPtr", ";", "protected", "int", "[", "]", "genericsIdentifiersLengthStack", "=", "new", "int", "[", "GenericsStackIncrement", "]", ";", "protected", "int", "genericsLengthPtr", ";", "protected", "int", "[", "]", "genericsLengthStack", "=", "new", "int", "[", "GenericsStackIncrement", "]", ";", "protected", "int", "genericsPtr", ";", "protected", "ASTNode", "[", "]", "genericsStack", "=", "new", "ASTNode", "[", "GenericsStackIncrement", "]", ";", "protected", "boolean", "hasError", ";", "protected", "boolean", "hasReportedError", ";", "protected", "int", "identifierLengthPtr", ";", "protected", "int", "[", "]", "identifierLengthStack", ";", "protected", "long", "[", "]", "identifierPositionStack", ";", "protected", "int", "identifierPtr", ";", "protected", "char", "[", "]", "[", "]", "identifierStack", ";", "protected", "boolean", "ignoreNextOpeningBrace", ";", "protected", "int", "intPtr", ";", "protected", "int", "[", "]", "intStack", ";", "public", "int", "lastAct", ";", "protected", "int", "lastCheckPoint", ";", "protected", "int", "lastErrorEndPosition", ";", "protected", "int", "lastErrorEndPositionBeforeRecovery", "=", "-", "1", ";", "protected", "int", "lastIgnoredToken", ",", "nextIgnoredToken", ";", "protected", "int", "listLength", ";", "protected", "int", "listTypeParameterLength", ";", "protected", "int", "lParenPos", ",", "rParenPos", ";", "protected", "int", "modifiers", ";", "protected", "int", "modifiersSourceStart", ";", "protected", "int", "[", "]", "nestedMethod", ";", "protected", "int", "nestedType", ",", "dimensions", ";", "ASTNode", "[", "]", "noAstNodes", "=", "new", "ASTNode", "[", "AstStackIncrement", "]", ";", "Expression", "[", "]", "noExpressions", "=", "new", "Expression", "[", "ExpressionStackIncrement", "]", ";", "protected", "boolean", "optimizeStringLiterals", "=", "true", ";", "protected", "CompilerOptions", "options", ";", "protected", "ProblemReporter", "problemReporter", ";", "protected", "int", "rBraceStart", ",", "rBraceEnd", ",", "rBraceSuccessorStart", ";", "protected", "int", "realBlockPtr", ";", "protected", "int", "[", "]", "realBlockStack", ";", "protected", "int", "recoveredStaticInitializerStart", ";", "public", "ReferenceContext", "referenceContext", ";", "public", "boolean", "reportOnlyOneSyntaxError", "=", "false", ";", "public", "boolean", "reportSyntaxErrorIsRequired", "=", "true", ";", "protected", "boolean", "restartRecovery", ";", "protected", "boolean", "annotationRecoveryActivated", "=", "true", ";", "protected", "int", "lastPosistion", ";", "public", "boolean", "methodRecoveryActivated", "=", "false", ";", "protected", "boolean", "statementRecoveryActivated", "=", "false", ";", "protected", "TypeDeclaration", "[", "]", "recoveredTypes", ";", "protected", "int", "recoveredTypePtr", ";", "protected", "int", "nextTypeStart", ";", "protected", "TypeDeclaration", "pendingRecoveredType", ";", "public", "RecoveryScanner", "recoveryScanner", ";", "public", "Scanner", "scanner", ";", "protected", "int", "[", "]", "stack", "=", "new", "int", "[", "StackIncrement", "]", ";", "protected", "int", "stateStackTop", ";", "protected", "int", "synchronizedBlockSourceStart", ";", "protected", "int", "[", "]", "variablesCounter", ";", "protected", "boolean", "checkExternalizeStrings", ";", "protected", "boolean", "recordStringLiterals", ";", "public", "Javadoc", "javadoc", ";", "public", "JavadocParser", "javadocParser", ";", "protected", "int", "lastJavadocEnd", ";", "public", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ReadManager", "readManager", ";", "private", "boolean", "shouldDeferRecovery", "=", "false", ";", "public", "Parser", "(", "ProblemReporter", "problemReporter", ",", "boolean", "optimizeStringLiterals", ")", "{", "this", ".", "problemReporter", "=", "problemReporter", ";", "this", ".", "options", "=", "problemReporter", ".", "options", ";", "this", ".", "optimizeStringLiterals", "=", "optimizeStringLiterals", ";", "initializeScanner", "(", ")", ";", "this", ".", "astLengthStack", "=", "new", "int", "[", "50", "]", ";", "this", ".", "expressionLengthStack", "=", "new", "int", "[", "30", "]", ";", "this", ".", "intStack", "=", "new", "int", "[", "50", "]", ";", "this", ".", "identifierStack", "=", "new", "char", "[", "30", "]", "[", "]", ";", "this", ".", "identifierLengthStack", "=", "new", "int", "[", "30", "]", ";", "this", ".", "nestedMethod", "=", "new", "int", "[", "30", "]", ";", "this", ".", "realBlockStack", "=", "new", "int", "[", "30", "]", ";", "this", ".", "identifierPositionStack", "=", "new", "long", "[", "30", "]", ";", "this", ".", "variablesCounter", "=", "new", "int", "[", "30", "]", ";", "this", ".", "javadocParser", "=", "createJavadocParser", "(", ")", ";", "}", "protected", "void", "annotationRecoveryCheckPoint", "(", "int", "start", ",", "int", "end", ")", "{", "if", "(", "this", ".", "lastCheckPoint", "<", "end", ")", "{", "this", ".", "lastCheckPoint", "=", "end", "+", "1", ";", "}", "}", "public", "void", "arrayInitializer", "(", "int", "length", ")", "{", "ArrayInitializer", "ai", "=", "new", "ArrayInitializer", "(", ")", ";", "if", "(", "length", "!=", "0", ")", "{", "this", ".", "expressionPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "this", ".", "expressionPtr", "+", "1", ",", "ai", ".", "expressions", "=", "new", "Expression", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "pushOnExpressionStack", "(", "ai", ")", ";", "ai", ".", "sourceEnd", "=", "this", ".", "endStatementPosition", ";", "ai", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "}", "protected", "void", "blockReal", "(", ")", "{", "this", ".", "realBlockStack", "[", "this", ".", "realBlockPtr", "]", "++", ";", "}", "public", "RecoveredElement", "buildInitialRecoveryState", "(", ")", "{", "this", ".", "lastCheckPoint", "=", "0", ";", "this", ".", "lastErrorEndPositionBeforeRecovery", "=", "this", ".", "scanner", ".", "currentPosition", ";", "RecoveredElement", "element", "=", "null", ";", "if", "(", "this", ".", "referenceContext", "instanceof", "CompilationUnitDeclaration", ")", "{", "element", "=", "new", "RecoveredUnit", "(", "this", ".", "compilationUnit", ",", "0", ",", "this", ")", ";", "this", ".", "compilationUnit", ".", "currentPackage", "=", "null", ";", "this", ".", "compilationUnit", ".", "imports", "=", "null", ";", "this", ".", "compilationUnit", ".", "types", "=", "null", ";", "this", ".", "currentToken", "=", "0", ";", "this", ".", "listLength", "=", "0", ";", "this", ".", "listTypeParameterLength", "=", "0", ";", "this", ".", "endPosition", "=", "0", ";", "this", ".", "endStatementPosition", "=", "0", ";", "return", "element", ";", "}", "else", "{", "if", "(", "this", ".", "referenceContext", "instanceof", "AbstractMethodDeclaration", ")", "{", "element", "=", "new", "RecoveredMethod", "(", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ",", "null", ",", "0", ",", "this", ")", ";", "this", ".", "lastCheckPoint", "=", "(", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ")", ".", "bodyStart", ";", "if", "(", "this", ".", "statementRecoveryActivated", ")", "{", "element", "=", "element", ".", "add", "(", "new", "Block", "(", "0", ")", ",", "0", ")", ";", "}", "}", "else", "{", "if", "(", "this", ".", "referenceContext", "instanceof", "TypeDeclaration", ")", "{", "TypeDeclaration", "type", "=", "(", "TypeDeclaration", ")", "this", ".", "referenceContext", ";", "FieldDeclaration", "[", "]", "fieldDeclarations", "=", "type", ".", "fields", ";", "int", "length", "=", "fieldDeclarations", "==", "null", "?", "0", ":", "fieldDeclarations", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "FieldDeclaration", "field", "=", "fieldDeclarations", "[", "i", "]", ";", "if", "(", "field", "!=", "null", "&&", "field", ".", "getKind", "(", ")", "==", "AbstractVariableDeclaration", ".", "INITIALIZER", "&&", "(", "(", "Initializer", ")", "field", ")", ".", "block", "!=", "null", "&&", "field", ".", "declarationSourceStart", "<=", "this", ".", "scanner", ".", "initialPosition", "&&", "this", ".", "scanner", ".", "initialPosition", "<=", "field", ".", "declarationSourceEnd", "&&", "this", ".", "scanner", ".", "eofPosition", "<=", "field", ".", "declarationSourceEnd", "+", "1", ")", "{", "element", "=", "new", "RecoveredInitializer", "(", "field", ",", "null", ",", "1", ",", "this", ")", ";", "this", ".", "lastCheckPoint", "=", "field", ".", "declarationSourceStart", ";", "break", ";", "}", "}", "}", "}", "}", "if", "(", "element", "==", "null", ")", "return", "element", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "this", ".", "astPtr", ";", "i", "++", ")", "{", "ASTNode", "node", "=", "this", ".", "astStack", "[", "i", "]", ";", "if", "(", "node", "instanceof", "AbstractMethodDeclaration", ")", "{", "AbstractMethodDeclaration", "method", "=", "(", "AbstractMethodDeclaration", ")", "node", ";", "if", "(", "method", ".", "declarationSourceEnd", "==", "0", ")", "{", "element", "=", "element", ".", "add", "(", "method", ",", "0", ")", ";", "this", ".", "lastCheckPoint", "=", "method", ".", "bodyStart", ";", "}", "else", "{", "element", "=", "element", ".", "add", "(", "method", ",", "0", ")", ";", "this", ".", "lastCheckPoint", "=", "method", ".", "declarationSourceEnd", "+", "1", ";", "}", "continue", ";", "}", "if", "(", "node", "instanceof", "Initializer", ")", "{", "Initializer", "initializer", "=", "(", "Initializer", ")", "node", ";", "if", "(", "initializer", ".", "block", "==", "null", ")", "continue", ";", "if", "(", "initializer", ".", "declarationSourceEnd", "==", "0", ")", "{", "element", "=", "element", ".", "add", "(", "initializer", ",", "1", ")", ";", "this", ".", "lastCheckPoint", "=", "initializer", ".", "sourceStart", ";", "}", "else", "{", "element", "=", "element", ".", "add", "(", "initializer", ",", "0", ")", ";", "this", ".", "lastCheckPoint", "=", "initializer", ".", "declarationSourceEnd", "+", "1", ";", "}", "continue", ";", "}", "if", "(", "node", "instanceof", "FieldDeclaration", ")", "{", "FieldDeclaration", "field", "=", "(", "FieldDeclaration", ")", "node", ";", "if", "(", "field", ".", "declarationSourceEnd", "==", "0", ")", "{", "element", "=", "element", ".", "add", "(", "field", ",", "0", ")", ";", "if", "(", "field", ".", "initialization", "==", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "field", ".", "sourceEnd", "+", "1", ";", "}", "else", "{", "this", ".", "lastCheckPoint", "=", "field", ".", "initialization", ".", "sourceEnd", "+", "1", ";", "}", "}", "else", "{", "element", "=", "element", ".", "add", "(", "field", ",", "0", ")", ";", "this", ".", "lastCheckPoint", "=", "field", ".", "declarationSourceEnd", "+", "1", ";", "}", "continue", ";", "}", "if", "(", "node", "instanceof", "TypeDeclaration", ")", "{", "TypeDeclaration", "type", "=", "(", "TypeDeclaration", ")", "node", ";", "if", "(", "(", "type", ".", "modifiers", "&", "ClassFileConstants", ".", "AccEnum", ")", "!=", "0", ")", "{", "continue", ";", "}", "if", "(", "type", ".", "declarationSourceEnd", "==", "0", ")", "{", "element", "=", "element", ".", "add", "(", "type", ",", "0", ")", ";", "this", ".", "lastCheckPoint", "=", "type", ".", "bodyStart", ";", "}", "else", "{", "element", "=", "element", ".", "add", "(", "type", ",", "0", ")", ";", "this", ".", "lastCheckPoint", "=", "type", ".", "declarationSourceEnd", "+", "1", ";", "}", "continue", ";", "}", "if", "(", "node", "instanceof", "ImportReference", ")", "{", "ImportReference", "importRef", "=", "(", "ImportReference", ")", "node", ";", "element", "=", "element", ".", "add", "(", "importRef", ",", "0", ")", ";", "this", ".", "lastCheckPoint", "=", "importRef", ".", "declarationSourceEnd", "+", "1", ";", "}", "if", "(", "this", ".", "statementRecoveryActivated", ")", "{", "if", "(", "node", "instanceof", "Block", ")", "{", "Block", "block", "=", "(", "Block", ")", "node", ";", "element", "=", "element", ".", "add", "(", "block", ",", "0", ")", ";", "this", ".", "lastCheckPoint", "=", "block", ".", "sourceEnd", "+", "1", ";", "}", "else", "if", "(", "node", "instanceof", "LocalDeclaration", ")", "{", "LocalDeclaration", "statement", "=", "(", "LocalDeclaration", ")", "node", ";", "element", "=", "element", ".", "add", "(", "statement", ",", "0", ")", ";", "this", ".", "lastCheckPoint", "=", "statement", ".", "sourceEnd", "+", "1", ";", "}", "else", "if", "(", "node", "instanceof", "Expression", ")", "{", "if", "(", "node", "instanceof", "Assignment", "||", "node", "instanceof", "PrefixExpression", "||", "node", "instanceof", "PostfixExpression", "||", "node", "instanceof", "MessageSend", "||", "node", "instanceof", "AllocationExpression", ")", "{", "Expression", "statement", "=", "(", "Expression", ")", "node", ";", "element", "=", "element", ".", "add", "(", "statement", ",", "0", ")", ";", "if", "(", "statement", ".", "statementEnd", "!=", "-", "1", ")", "{", "this", ".", "lastCheckPoint", "=", "statement", ".", "statementEnd", "+", "1", ";", "}", "else", "{", "this", ".", "lastCheckPoint", "=", "statement", ".", "sourceEnd", "+", "1", ";", "}", "}", "}", "else", "if", "(", "node", "instanceof", "Statement", ")", "{", "Statement", "statement", "=", "(", "Statement", ")", "node", ";", "element", "=", "element", ".", "add", "(", "statement", ",", "0", ")", ";", "this", ".", "lastCheckPoint", "=", "statement", ".", "sourceEnd", "+", "1", ";", "}", "}", "}", "if", "(", "this", ".", "statementRecoveryActivated", ")", "{", "if", "(", "this", ".", "pendingRecoveredType", "!=", "null", "&&", "this", ".", "scanner", ".", "startPosition", "-", "1", "<=", "this", ".", "pendingRecoveredType", ".", "declarationSourceEnd", ")", "{", "element", "=", "element", ".", "add", "(", "this", ".", "pendingRecoveredType", ",", "0", ")", ";", "this", ".", "lastCheckPoint", "=", "this", ".", "pendingRecoveredType", ".", "declarationSourceEnd", "+", "1", ";", "this", ".", "pendingRecoveredType", "=", "null", ";", "}", "}", "return", "element", ";", "}", "protected", "void", "checkAndSetModifiers", "(", "int", "flag", ")", "{", "if", "(", "(", "this", ".", "modifiers", "&", "flag", ")", "!=", "0", ")", "{", "this", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccAlternateModifierProblem", ";", "}", "this", ".", "modifiers", "|=", "flag", ";", "if", "(", "this", ".", "modifiersSourceStart", "<", "0", ")", "this", ".", "modifiersSourceStart", "=", "this", ".", "scanner", ".", "startPosition", ";", "if", "(", "this", ".", "currentElement", "!=", "null", "&&", "this", ".", "annotationRecoveryActivated", ")", "{", "this", ".", "currentElement", ".", "addModifier", "(", "flag", ",", "this", ".", "modifiersSourceStart", ")", ";", "}", "}", "public", "void", "checkComment", "(", ")", "{", "if", "(", "!", "(", "this", ".", "diet", "&&", "this", ".", "dietInt", "==", "0", ")", "&&", "this", ".", "scanner", ".", "commentPtr", ">=", "0", ")", "{", "flushCommentsDefinedPriorTo", "(", "this", ".", "endStatementPosition", ")", ";", "}", "int", "lastComment", "=", "this", ".", "scanner", ".", "commentPtr", ";", "if", "(", "this", ".", "modifiersSourceStart", ">=", "0", ")", "{", "while", "(", "lastComment", ">=", "0", ")", "{", "int", "commentSourceStart", "=", "this", ".", "scanner", ".", "commentStarts", "[", "lastComment", "]", ";", "if", "(", "commentSourceStart", "<", "0", ")", "commentSourceStart", "=", "-", "commentSourceStart", ";", "if", "(", "commentSourceStart", "<=", "this", ".", "modifiersSourceStart", ")", "break", ";", "lastComment", "--", ";", "}", "}", "if", "(", "lastComment", ">=", "0", ")", "{", "this", ".", "modifiersSourceStart", "=", "this", ".", "scanner", ".", "commentStarts", "[", "0", "]", ";", "if", "(", "this", ".", "modifiersSourceStart", "<", "0", ")", "this", ".", "modifiersSourceStart", "=", "-", "this", ".", "modifiersSourceStart", ";", "while", "(", "lastComment", ">=", "0", "&&", "this", ".", "scanner", ".", "commentStops", "[", "lastComment", "]", "<", "0", ")", "lastComment", "--", ";", "if", "(", "lastComment", ">=", "0", "&&", "this", ".", "javadocParser", "!=", "null", ")", "{", "int", "commentEnd", "=", "this", ".", "scanner", ".", "commentStops", "[", "lastComment", "]", "-", "1", ";", "if", "(", "this", ".", "javadocParser", ".", "shouldReportProblems", ")", "{", "this", ".", "javadocParser", ".", "reportProblems", "=", "this", ".", "currentElement", "==", "null", "||", "commentEnd", ">", "this", ".", "lastJavadocEnd", ";", "}", "else", "{", "this", ".", "javadocParser", ".", "reportProblems", "=", "false", ";", "}", "if", "(", "this", ".", "javadocParser", ".", "checkDeprecation", "(", "lastComment", ")", ")", "{", "checkAndSetModifiers", "(", "ClassFileConstants", ".", "AccDeprecated", ")", ";", "}", "this", ".", "javadoc", "=", "this", ".", "javadocParser", ".", "docComment", ";", "if", "(", "this", ".", "currentElement", "==", "null", ")", "this", ".", "lastJavadocEnd", "=", "commentEnd", ";", "}", "}", "}", "protected", "void", "checkNonNLSAfterBodyEnd", "(", "int", "declarationEnd", ")", "{", "if", "(", "this", ".", "scanner", ".", "currentPosition", "-", "1", "<=", "declarationEnd", ")", "{", "this", ".", "scanner", ".", "eofPosition", "=", "declarationEnd", "<", "Integer", ".", "MAX_VALUE", "?", "declarationEnd", "+", "1", ":", "declarationEnd", ";", "try", "{", "while", "(", "this", ".", "scanner", ".", "getNextToken", "(", ")", "!=", "TokenNameEOF", ")", "{", "}", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "}", "}", "}", "protected", "void", "classInstanceCreation", "(", "boolean", "isQualified", ")", "{", "AllocationExpression", "alloc", ";", "int", "length", ";", "if", "(", "(", "(", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", "==", "1", ")", "&&", "(", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", "==", "null", ")", ")", "{", "this", ".", "astPtr", "--", ";", "if", "(", "isQualified", ")", "{", "alloc", "=", "new", "QualifiedAllocationExpression", "(", ")", ";", "}", "else", "{", "alloc", "=", "new", "AllocationExpression", "(", ")", ";", "}", "alloc", ".", "sourceEnd", "=", "this", ".", "endPosition", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "this", ".", "expressionPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "this", ".", "expressionPtr", "+", "1", ",", "alloc", ".", "arguments", "=", "new", "Expression", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "alloc", ".", "type", "=", "getTypeReference", "(", "0", ")", ";", "checkForDiamond", "(", "alloc", ".", "type", ")", ";", "alloc", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "pushOnExpressionStack", "(", "alloc", ")", ";", "}", "else", "{", "dispatchDeclarationInto", "(", "length", ")", ";", "TypeDeclaration", "anonymousTypeDeclaration", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "anonymousTypeDeclaration", ".", "declarationSourceEnd", "=", "this", ".", "endStatementPosition", ";", "anonymousTypeDeclaration", ".", "bodyEnd", "=", "this", ".", "endStatementPosition", ";", "if", "(", "anonymousTypeDeclaration", ".", "allocation", "!=", "null", ")", "{", "anonymousTypeDeclaration", ".", "allocation", ".", "sourceEnd", "=", "this", ".", "endStatementPosition", ";", "checkForDiamond", "(", "anonymousTypeDeclaration", ".", "allocation", ".", "type", ")", ";", "}", "if", "(", "length", "==", "0", "&&", "!", "containsComment", "(", "anonymousTypeDeclaration", ".", "bodyStart", ",", "anonymousTypeDeclaration", ".", "bodyEnd", ")", ")", "{", "anonymousTypeDeclaration", ".", "bits", "|=", "ASTNode", ".", "UndocumentedEmptyBlock", ";", "}", "this", ".", "astPtr", "--", ";", "this", ".", "astLengthPtr", "--", ";", "}", "}", "protected", "void", "checkForDiamond", "(", "TypeReference", "allocType", ")", "{", "if", "(", "allocType", "instanceof", "ParameterizedSingleTypeReference", ")", "{", "ParameterizedSingleTypeReference", "type", "=", "(", "ParameterizedSingleTypeReference", ")", "allocType", ";", "if", "(", "type", ".", "typeArguments", "==", "TypeReference", ".", "NO_TYPE_ARGUMENTS", ")", "{", "if", "(", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_7", ")", "{", "problemReporter", "(", ")", ".", "diamondNotBelow17", "(", "allocType", ")", ";", "}", "if", "(", "this", ".", "options", ".", "sourceLevel", ">", "ClassFileConstants", ".", "JDK1_4", ")", "{", "type", ".", "bits", "|=", "ASTNode", ".", "IsDiamond", ";", "}", "}", "}", "else", "if", "(", "allocType", "instanceof", "ParameterizedQualifiedTypeReference", ")", "{", "ParameterizedQualifiedTypeReference", "type", "=", "(", "ParameterizedQualifiedTypeReference", ")", "allocType", ";", "if", "(", "type", ".", "typeArguments", "[", "type", ".", "typeArguments", ".", "length", "-", "1", "]", "==", "TypeReference", ".", "NO_TYPE_ARGUMENTS", ")", "{", "if", "(", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_7", ")", "{", "problemReporter", "(", ")", ".", "diamondNotBelow17", "(", "allocType", ",", "type", ".", "typeArguments", ".", "length", "-", "1", ")", ";", "}", "if", "(", "this", ".", "options", ".", "sourceLevel", ">", "ClassFileConstants", ".", "JDK1_4", ")", "{", "type", ".", "bits", "|=", "ASTNode", ".", "IsDiamond", ";", "}", "}", "}", "}", "protected", "ParameterizedQualifiedTypeReference", "computeQualifiedGenericsFromRightSide", "(", "TypeReference", "rightSide", ",", "int", "dim", ")", "{", "int", "nameSize", "=", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "]", ";", "int", "tokensSize", "=", "nameSize", ";", "if", "(", "rightSide", "instanceof", "ParameterizedSingleTypeReference", ")", "{", "tokensSize", "++", ";", "}", "else", "if", "(", "rightSide", "instanceof", "SingleTypeReference", ")", "{", "tokensSize", "++", ";", "}", "else", "if", "(", "rightSide", "instanceof", "ParameterizedQualifiedTypeReference", ")", "{", "tokensSize", "+=", "(", "(", "QualifiedTypeReference", ")", "rightSide", ")", ".", "tokens", ".", "length", ";", "}", "else", "if", "(", "rightSide", "instanceof", "QualifiedTypeReference", ")", "{", "tokensSize", "+=", "(", "(", "QualifiedTypeReference", ")", "rightSide", ")", ".", "tokens", ".", "length", ";", "}", "TypeReference", "[", "]", "[", "]", "typeArguments", "=", "new", "TypeReference", "[", "tokensSize", "]", "[", "]", ";", "char", "[", "]", "[", "]", "tokens", "=", "new", "char", "[", "tokensSize", "]", "[", "]", ";", "long", "[", "]", "positions", "=", "new", "long", "[", "tokensSize", "]", ";", "if", "(", "rightSide", "instanceof", "ParameterizedSingleTypeReference", ")", "{", "ParameterizedSingleTypeReference", "singleParameterizedTypeReference", "=", "(", "ParameterizedSingleTypeReference", ")", "rightSide", ";", "tokens", "[", "nameSize", "]", "=", "singleParameterizedTypeReference", ".", "token", ";", "positions", "[", "nameSize", "]", "=", "(", "(", "(", "long", ")", "singleParameterizedTypeReference", ".", "sourceStart", ")", "<<", "32", ")", "+", "singleParameterizedTypeReference", ".", "sourceEnd", ";", "typeArguments", "[", "nameSize", "]", "=", "singleParameterizedTypeReference", ".", "typeArguments", ";", "}", "else", "if", "(", "rightSide", "instanceof", "SingleTypeReference", ")", "{", "SingleTypeReference", "singleTypeReference", "=", "(", "SingleTypeReference", ")", "rightSide", ";", "tokens", "[", "nameSize", "]", "=", "singleTypeReference", ".", "token", ";", "positions", "[", "nameSize", "]", "=", "(", "(", "(", "long", ")", "singleTypeReference", ".", "sourceStart", ")", "<<", "32", ")", "+", "singleTypeReference", ".", "sourceEnd", ";", "}", "else", "if", "(", "rightSide", "instanceof", "ParameterizedQualifiedTypeReference", ")", "{", "ParameterizedQualifiedTypeReference", "parameterizedTypeReference", "=", "(", "ParameterizedQualifiedTypeReference", ")", "rightSide", ";", "TypeReference", "[", "]", "[", "]", "rightSideTypeArguments", "=", "parameterizedTypeReference", ".", "typeArguments", ";", "System", ".", "arraycopy", "(", "rightSideTypeArguments", ",", "0", ",", "typeArguments", ",", "nameSize", ",", "rightSideTypeArguments", ".", "length", ")", ";", "char", "[", "]", "[", "]", "rightSideTokens", "=", "parameterizedTypeReference", ".", "tokens", ";", "System", ".", "arraycopy", "(", "rightSideTokens", ",", "0", ",", "tokens", ",", "nameSize", ",", "rightSideTokens", ".", "length", ")", ";", "long", "[", "]", "rightSidePositions", "=", "parameterizedTypeReference", ".", "sourcePositions", ";", "System", ".", "arraycopy", "(", "rightSidePositions", ",", "0", ",", "positions", ",", "nameSize", ",", "rightSidePositions", ".", "length", ")", ";", "}", "else", "if", "(", "rightSide", "instanceof", "QualifiedTypeReference", ")", "{", "QualifiedTypeReference", "qualifiedTypeReference", "=", "(", "QualifiedTypeReference", ")", "rightSide", ";", "char", "[", "]", "[", "]", "rightSideTokens", "=", "qualifiedTypeReference", ".", "tokens", ";", "System", ".", "arraycopy", "(", "rightSideTokens", ",", "0", ",", "tokens", ",", "nameSize", ",", "rightSideTokens", ".", "length", ")", ";", "long", "[", "]", "rightSidePositions", "=", "qualifiedTypeReference", ".", "sourcePositions", ";", "System", ".", "arraycopy", "(", "rightSidePositions", ",", "0", ",", "positions", ",", "nameSize", ",", "rightSidePositions", ".", "length", ")", ";", "}", "int", "currentTypeArgumentsLength", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "--", "]", ";", "TypeReference", "[", "]", "currentTypeArguments", "=", "new", "TypeReference", "[", "currentTypeArgumentsLength", "]", ";", "this", ".", "genericsPtr", "-=", "currentTypeArgumentsLength", ";", "System", ".", "arraycopy", "(", "this", ".", "genericsStack", ",", "this", ".", "genericsPtr", "+", "1", ",", "currentTypeArguments", ",", "0", ",", "currentTypeArgumentsLength", ")", ";", "if", "(", "nameSize", "==", "1", ")", "{", "tokens", "[", "0", "]", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", ";", "positions", "[", "0", "]", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "typeArguments", "[", "0", "]", "=", "currentTypeArguments", ";", "}", "else", "{", "this", ".", "identifierPtr", "-=", "nameSize", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierStack", ",", "this", ".", "identifierPtr", "+", "1", ",", "tokens", ",", "0", ",", "nameSize", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierPositionStack", ",", "this", ".", "identifierPtr", "+", "1", ",", "positions", ",", "0", ",", "nameSize", ")", ";", "typeArguments", "[", "nameSize", "-", "1", "]", "=", "currentTypeArguments", ";", "}", "this", ".", "identifierLengthPtr", "--", ";", "return", "new", "ParameterizedQualifiedTypeReference", "(", "tokens", ",", "typeArguments", ",", "dim", ",", "positions", ")", ";", "}", "protected", "void", "concatExpressionLists", "(", ")", "{", "this", ".", "expressionLengthStack", "[", "--", "this", ".", "expressionLengthPtr", "]", "++", ";", "}", "protected", "void", "concatGenericsLists", "(", ")", "{", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "-", "1", "]", "+=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "--", "]", ";", "}", "protected", "void", "concatNodeLists", "(", ")", "{", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "-", "1", "]", "+=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ";", "}", "protected", "void", "consumeAdditionalBound", "(", ")", "{", "pushOnGenericsStack", "(", "getTypeReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ")", ";", "}", "protected", "void", "consumeAdditionalBound1", "(", ")", "{", "}", "protected", "void", "consumeAdditionalBoundList", "(", ")", "{", "concatGenericsLists", "(", ")", ";", "}", "protected", "void", "consumeAdditionalBoundList1", "(", ")", "{", "concatGenericsLists", "(", ")", ";", "}", "protected", "void", "consumeAllocationHeader", "(", ")", "{", "if", "(", "this", ".", "currentElement", "==", "null", ")", "{", "return", ";", "}", "if", "(", "this", ".", "currentToken", "==", "TokenNameLBRACE", ")", "{", "TypeDeclaration", "anonymousType", "=", "new", "TypeDeclaration", "(", "this", ".", "compilationUnit", ".", "compilationResult", ")", ";", "anonymousType", ".", "name", "=", "CharOperation", ".", "NO_CHAR", ";", "anonymousType", ".", "bits", "|=", "(", "ASTNode", ".", "IsAnonymousType", "|", "ASTNode", ".", "IsLocalType", ")", ";", "anonymousType", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "anonymousType", ".", "declarationSourceStart", "=", "anonymousType", ".", "sourceStart", ";", "anonymousType", ".", "sourceEnd", "=", "this", ".", "rParenPos", ";", "QualifiedAllocationExpression", "alloc", "=", "new", "QualifiedAllocationExpression", "(", "anonymousType", ")", ";", "alloc", ".", "type", "=", "getTypeReference", "(", "0", ")", ";", "alloc", ".", "sourceStart", "=", "anonymousType", ".", "sourceStart", ";", "alloc", ".", "sourceEnd", "=", "anonymousType", ".", "sourceEnd", ";", "this", ".", "lastCheckPoint", "=", "anonymousType", ".", "bodyStart", "=", "this", ".", "scanner", ".", "currentPosition", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "anonymousType", ",", "0", ")", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "this", ".", "currentToken", "=", "0", ";", "return", ";", "}", "this", ".", "lastCheckPoint", "=", "this", ".", "scanner", ".", "startPosition", ";", "this", ".", "restartRecovery", "=", "true", ";", "}", "protected", "void", "consumeAnnotationAsModifier", "(", ")", "{", "Expression", "expression", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ";", "int", "sourceStart", "=", "expression", ".", "sourceStart", ";", "if", "(", "this", ".", "modifiersSourceStart", "<", "0", ")", "{", "this", ".", "modifiersSourceStart", "=", "sourceStart", ";", "}", "}", "protected", "void", "consumeAnnotationName", "(", ")", "{", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "int", "start", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "]", ";", "int", "end", "=", "(", "int", ")", "(", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", "&", "0x00000000FFFFFFFFL", ")", ";", "annotationRecoveryCheckPoint", "(", "start", ",", "end", ")", ";", "if", "(", "this", ".", "annotationRecoveryActivated", ")", "{", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "addAnnotationName", "(", "this", ".", "identifierPtr", ",", "this", ".", "identifierLengthPtr", ",", "start", ",", "0", ")", ";", "}", "}", "this", ".", "recordStringLiterals", "=", "false", ";", "}", "protected", "void", "consumeAnnotationTypeDeclaration", "(", ")", "{", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "dispatchDeclarationInto", "(", "length", ")", ";", "}", "TypeDeclaration", "typeDecl", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "typeDecl", ".", "checkConstructors", "(", "this", ")", ";", "if", "(", "this", ".", "scanner", ".", "containsAssertKeyword", ")", "{", "typeDecl", ".", "bits", "|=", "ASTNode", ".", "ContainsAssertion", ";", "}", "typeDecl", ".", "addClinit", "(", ")", ";", "typeDecl", ".", "bodyEnd", "=", "this", ".", "endStatementPosition", ";", "if", "(", "length", "==", "0", "&&", "!", "containsComment", "(", "typeDecl", ".", "bodyStart", ",", "typeDecl", ".", "bodyEnd", ")", ")", "{", "typeDecl", ".", "bits", "|=", "ASTNode", ".", "UndocumentedEmptyBlock", ";", "}", "typeDecl", ".", "declarationSourceEnd", "=", "flushCommentsDefinedPriorTo", "(", "this", ".", "endStatementPosition", ")", ";", "}", "protected", "void", "consumeAnnotationTypeDeclarationHeader", "(", ")", "{", "TypeDeclaration", "annotationTypeDeclaration", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "if", "(", "this", ".", "currentToken", "==", "TokenNameLBRACE", ")", "{", "annotationTypeDeclaration", ".", "bodyStart", "=", "this", ".", "scanner", ".", "currentPosition", ";", "}", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "restartRecovery", "=", "true", ";", "}", "this", ".", "scanner", ".", "commentPtr", "=", "-", "1", ";", "}", "protected", "void", "consumeAnnotationTypeDeclarationHeaderName", "(", ")", "{", "TypeDeclaration", "annotationTypeDeclaration", "=", "new", "TypeDeclaration", "(", "this", ".", "compilationUnit", ".", "compilationResult", ")", ";", "if", "(", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "==", "0", ")", "{", "if", "(", "this", ".", "nestedType", "!=", "0", ")", "{", "annotationTypeDeclaration", ".", "bits", "|=", "ASTNode", ".", "IsMemberType", ";", "}", "}", "else", "{", "annotationTypeDeclaration", ".", "bits", "|=", "ASTNode", ".", "IsLocalType", ";", "markEnclosingMemberWithLocalType", "(", ")", ";", "blockReal", "(", ")", ";", "}", "long", "pos", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ";", "annotationTypeDeclaration", ".", "sourceEnd", "=", "(", "int", ")", "pos", ";", "annotationTypeDeclaration", ".", "sourceStart", "=", "(", "int", ")", "(", "pos", ">>>", "32", ")", ";", "annotationTypeDeclaration", ".", "name", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "this", ".", "identifierLengthPtr", "--", ";", "this", ".", "intPtr", "--", ";", "this", ".", "intPtr", "--", ";", "annotationTypeDeclaration", ".", "modifiersSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "annotationTypeDeclaration", ".", "modifiers", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", "|", "ClassFileConstants", ".", "AccAnnotation", "|", "ClassFileConstants", ".", "AccInterface", ";", "if", "(", "annotationTypeDeclaration", ".", "modifiersSourceStart", ">=", "0", ")", "{", "annotationTypeDeclaration", ".", "declarationSourceStart", "=", "annotationTypeDeclaration", ".", "modifiersSourceStart", ";", "this", ".", "intPtr", "--", ";", "}", "else", "{", "int", "atPosition", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "annotationTypeDeclaration", ".", "declarationSourceStart", "=", "atPosition", ";", "}", "if", "(", "(", "annotationTypeDeclaration", ".", "bits", "&", "ASTNode", ".", "IsMemberType", ")", "==", "0", "&&", "(", "annotationTypeDeclaration", ".", "bits", "&", "ASTNode", ".", "IsLocalType", ")", "==", "0", ")", "{", "if", "(", "this", ".", "compilationUnit", "!=", "null", "&&", "!", "CharOperation", ".", "equals", "(", "annotationTypeDeclaration", ".", "name", ",", "this", ".", "compilationUnit", ".", "getMainTypeName", "(", ")", ")", ")", "{", "annotationTypeDeclaration", ".", "bits", "|=", "ASTNode", ".", "IsSecondaryType", ";", "}", "}", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "(", "this", ".", "expressionPtr", "-=", "length", ")", "+", "1", ",", "annotationTypeDeclaration", ".", "annotations", "=", "new", "Annotation", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "annotationTypeDeclaration", ".", "bodyStart", "=", "annotationTypeDeclaration", ".", "sourceEnd", "+", "1", ";", "annotationTypeDeclaration", ".", "javadoc", "=", "this", ".", "javadoc", ";", "this", ".", "javadoc", "=", "null", ";", "pushOnAstStack", "(", "annotationTypeDeclaration", ")", ";", "if", "(", "!", "this", ".", "statementRecoveryActivated", "&&", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", "&&", "this", ".", "lastErrorEndPositionBeforeRecovery", "<", "this", ".", "scanner", ".", "currentPosition", ")", "{", "problemReporter", "(", ")", ".", "invalidUsageOfAnnotationDeclarations", "(", "annotationTypeDeclaration", ")", ";", "}", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "annotationTypeDeclaration", ".", "bodyStart", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "annotationTypeDeclaration", ",", "0", ")", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "}", "}", "protected", "void", "consumeAnnotationTypeDeclarationHeaderNameWithTypeParameters", "(", ")", "{", "TypeDeclaration", "annotationTypeDeclaration", "=", "new", "TypeDeclaration", "(", "this", ".", "compilationUnit", ".", "compilationResult", ")", ";", "int", "length", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "--", "]", ";", "this", ".", "genericsPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "genericsStack", ",", "this", ".", "genericsPtr", "+", "1", ",", "annotationTypeDeclaration", ".", "typeParameters", "=", "new", "TypeParameter", "[", "length", "]", ",", "0", ",", "length", ")", ";", "problemReporter", "(", ")", ".", "invalidUsageOfTypeParametersForAnnotationDeclaration", "(", "annotationTypeDeclaration", ")", ";", "annotationTypeDeclaration", ".", "bodyStart", "=", "annotationTypeDeclaration", ".", "typeParameters", "[", "length", "-", "1", "]", ".", "declarationSourceEnd", "+", "1", ";", "this", ".", "listTypeParameterLength", "=", "0", ";", "if", "(", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "==", "0", ")", "{", "if", "(", "this", ".", "nestedType", "!=", "0", ")", "{", "annotationTypeDeclaration", ".", "bits", "|=", "ASTNode", ".", "IsMemberType", ";", "}", "}", "else", "{", "annotationTypeDeclaration", ".", "bits", "|=", "ASTNode", ".", "IsLocalType", ";", "markEnclosingMemberWithLocalType", "(", ")", ";", "blockReal", "(", ")", ";", "}", "long", "pos", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ";", "annotationTypeDeclaration", ".", "sourceEnd", "=", "(", "int", ")", "pos", ";", "annotationTypeDeclaration", ".", "sourceStart", "=", "(", "int", ")", "(", "pos", ">>>", "32", ")", ";", "annotationTypeDeclaration", ".", "name", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "this", ".", "identifierLengthPtr", "--", ";", "this", ".", "intPtr", "--", ";", "this", ".", "intPtr", "--", ";", "annotationTypeDeclaration", ".", "modifiersSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "annotationTypeDeclaration", ".", "modifiers", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", "|", "ClassFileConstants", ".", "AccAnnotation", "|", "ClassFileConstants", ".", "AccInterface", ";", "if", "(", "annotationTypeDeclaration", ".", "modifiersSourceStart", ">=", "0", ")", "{", "annotationTypeDeclaration", ".", "declarationSourceStart", "=", "annotationTypeDeclaration", ".", "modifiersSourceStart", ";", "this", ".", "intPtr", "--", ";", "}", "else", "{", "int", "atPosition", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "annotationTypeDeclaration", ".", "declarationSourceStart", "=", "atPosition", ";", "}", "if", "(", "(", "annotationTypeDeclaration", ".", "bits", "&", "ASTNode", ".", "IsMemberType", ")", "==", "0", "&&", "(", "annotationTypeDeclaration", ".", "bits", "&", "ASTNode", ".", "IsLocalType", ")", "==", "0", ")", "{", "if", "(", "this", ".", "compilationUnit", "!=", "null", "&&", "!", "CharOperation", ".", "equals", "(", "annotationTypeDeclaration", ".", "name", ",", "this", ".", "compilationUnit", ".", "getMainTypeName", "(", ")", ")", ")", "{", "annotationTypeDeclaration", ".", "bits", "|=", "ASTNode", ".", "IsSecondaryType", ";", "}", "}", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "(", "this", ".", "expressionPtr", "-=", "length", ")", "+", "1", ",", "annotationTypeDeclaration", ".", "annotations", "=", "new", "Annotation", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "annotationTypeDeclaration", ".", "javadoc", "=", "this", ".", "javadoc", ";", "this", ".", "javadoc", "=", "null", ";", "pushOnAstStack", "(", "annotationTypeDeclaration", ")", ";", "if", "(", "!", "this", ".", "statementRecoveryActivated", "&&", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", "&&", "this", ".", "lastErrorEndPositionBeforeRecovery", "<", "this", ".", "scanner", ".", "currentPosition", ")", "{", "problemReporter", "(", ")", ".", "invalidUsageOfAnnotationDeclarations", "(", "annotationTypeDeclaration", ")", ";", "}", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "annotationTypeDeclaration", ".", "bodyStart", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "annotationTypeDeclaration", ",", "0", ")", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "}", "}", "protected", "void", "consumeAnnotationTypeMemberDeclaration", "(", ")", "{", "AnnotationMethodDeclaration", "annotationTypeMemberDeclaration", "=", "(", "AnnotationMethodDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "annotationTypeMemberDeclaration", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccSemicolonBody", ";", "int", "declarationEndPosition", "=", "flushCommentsDefinedPriorTo", "(", "this", ".", "endStatementPosition", ")", ";", "annotationTypeMemberDeclaration", ".", "bodyStart", "=", "this", ".", "endStatementPosition", ";", "annotationTypeMemberDeclaration", ".", "bodyEnd", "=", "declarationEndPosition", ";", "annotationTypeMemberDeclaration", ".", "declarationSourceEnd", "=", "declarationEndPosition", ";", "}", "protected", "void", "consumeAnnotationTypeMemberDeclarations", "(", ")", "{", "concatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeAnnotationTypeMemberDeclarationsopt", "(", ")", "{", "this", ".", "nestedType", "--", ";", "}", "protected", "void", "consumeArgumentList", "(", ")", "{", "concatExpressionLists", "(", ")", ";", "}", "protected", "void", "consumeArguments", "(", ")", "{", "pushOnIntStack", "(", "this", ".", "rParenPos", ")", ";", "}", "protected", "void", "consumeArrayAccess", "(", "boolean", "unspecifiedReference", ")", "{", "Expression", "exp", ";", "if", "(", "unspecifiedReference", ")", "{", "exp", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "ArrayReference", "(", "getUnspecifiedReferenceOptimized", "(", ")", ",", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ")", ";", "}", "else", "{", "this", ".", "expressionPtr", "--", ";", "this", ".", "expressionLengthPtr", "--", ";", "exp", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "ArrayReference", "(", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ",", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "+", "1", "]", ")", ";", "}", "exp", ".", "sourceEnd", "=", "this", ".", "endStatementPosition", ";", "}", "protected", "void", "consumeArrayCreationExpressionWithInitializer", "(", ")", "{", "int", "length", ";", "ArrayAllocationExpression", "arrayAllocation", "=", "new", "ArrayAllocationExpression", "(", ")", ";", "this", ".", "expressionLengthPtr", "--", ";", "arrayAllocation", ".", "initializer", "=", "(", "ArrayInitializer", ")", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ";", "arrayAllocation", ".", "type", "=", "getTypeReference", "(", "0", ")", ";", "arrayAllocation", ".", "type", ".", "bits", "|=", "ASTNode", ".", "IgnoreRawTypeCheck", ";", "length", "=", "(", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", ";", "this", ".", "expressionPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "this", ".", "expressionPtr", "+", "1", ",", "arrayAllocation", ".", "dimensions", "=", "new", "Expression", "[", "length", "]", ",", "0", ",", "length", ")", ";", "arrayAllocation", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "if", "(", "arrayAllocation", ".", "initializer", "==", "null", ")", "{", "arrayAllocation", ".", "sourceEnd", "=", "this", ".", "endStatementPosition", ";", "}", "else", "{", "arrayAllocation", ".", "sourceEnd", "=", "arrayAllocation", ".", "initializer", ".", "sourceEnd", ";", "}", "pushOnExpressionStack", "(", "arrayAllocation", ")", ";", "}", "protected", "void", "consumeArrayCreationExpressionWithoutInitializer", "(", ")", "{", "int", "length", ";", "ArrayAllocationExpression", "arrayAllocation", "=", "new", "ArrayAllocationExpression", "(", ")", ";", "arrayAllocation", ".", "type", "=", "getTypeReference", "(", "0", ")", ";", "arrayAllocation", ".", "type", ".", "bits", "|=", "ASTNode", ".", "IgnoreRawTypeCheck", ";", "length", "=", "(", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", ";", "this", ".", "expressionPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "this", ".", "expressionPtr", "+", "1", ",", "arrayAllocation", ".", "dimensions", "=", "new", "Expression", "[", "length", "]", ",", "0", ",", "length", ")", ";", "arrayAllocation", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "if", "(", "arrayAllocation", ".", "initializer", "==", "null", ")", "{", "arrayAllocation", ".", "sourceEnd", "=", "this", ".", "endStatementPosition", ";", "}", "else", "{", "arrayAllocation", ".", "sourceEnd", "=", "arrayAllocation", ".", "initializer", ".", "sourceEnd", ";", "}", "pushOnExpressionStack", "(", "arrayAllocation", ")", ";", "}", "protected", "void", "consumeArrayCreationHeader", "(", ")", "{", "}", "protected", "void", "consumeArrayInitializer", "(", ")", "{", "arrayInitializer", "(", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", ";", "}", "protected", "void", "consumeArrayTypeWithTypeArgumentsName", "(", ")", "{", "this", ".", "genericsIdentifiersLengthStack", "[", "this", ".", "genericsIdentifiersLengthPtr", "]", "+=", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "]", ";", "pushOnGenericsLengthStack", "(", "0", ")", ";", "}", "protected", "void", "consumeAssertStatement", "(", ")", "{", "this", ".", "expressionLengthPtr", "-=", "2", ";", "pushOnAstStack", "(", "new", "AssertStatement", "(", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ",", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ")", ";", "}", "protected", "void", "consumeAssignment", "(", ")", "{", "int", "op", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "this", ".", "expressionPtr", "--", ";", "this", ".", "expressionLengthPtr", "--", ";", "Expression", "expression", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "+", "1", "]", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "(", "op", "!=", "EQUAL", ")", "?", "new", "CompoundAssignment", "(", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ",", "expression", ",", "op", ",", "expression", ".", "sourceEnd", ")", ":", "new", "Assignment", "(", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ",", "expression", ",", "expression", ".", "sourceEnd", ")", ";", "if", "(", "this", ".", "pendingRecoveredType", "!=", "null", ")", "{", "if", "(", "this", ".", "pendingRecoveredType", ".", "allocation", "!=", "null", "&&", "this", ".", "scanner", ".", "startPosition", "-", "1", "<=", "this", ".", "pendingRecoveredType", ".", "declarationSourceEnd", ")", "{", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "this", ".", "pendingRecoveredType", ".", "allocation", ";", "this", ".", "pendingRecoveredType", "=", "null", ";", "return", ";", "}", "this", ".", "pendingRecoveredType", "=", "null", ";", "}", "}", "protected", "void", "consumeAssignmentOperator", "(", "int", "pos", ")", "{", "pushOnIntStack", "(", "pos", ")", ";", "}", "protected", "void", "consumeBinaryExpression", "(", "int", "op", ")", "{", "this", ".", "expressionPtr", "--", ";", "this", ".", "expressionLengthPtr", "--", ";", "Expression", "expr1", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ";", "Expression", "expr2", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "+", "1", "]", ";", "switch", "(", "op", ")", "{", "case", "OR_OR", ":", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "OR_OR_Expression", "(", "expr1", ",", "expr2", ",", "op", ")", ";", "break", ";", "case", "AND_AND", ":", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "AND_AND_Expression", "(", "expr1", ",", "expr2", ",", "op", ")", ";", "break", ";", "case", "PLUS", ":", "if", "(", "this", ".", "optimizeStringLiterals", ")", "{", "if", "(", "expr1", "instanceof", "StringLiteral", ")", "{", "if", "(", "(", "(", "expr1", ".", "bits", "&", "ASTNode", ".", "ParenthesizedMASK", ")", ">>", "ASTNode", ".", "ParenthesizedSHIFT", ")", "==", "0", ")", "{", "if", "(", "expr2", "instanceof", "CharLiteral", ")", "{", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "(", "(", "StringLiteral", ")", "expr1", ")", ".", "extendWith", "(", "(", "CharLiteral", ")", "expr2", ")", ";", "}", "else", "if", "(", "expr2", "instanceof", "StringLiteral", ")", "{", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "(", "(", "StringLiteral", ")", "expr1", ")", ".", "extendWith", "(", "(", "StringLiteral", ")", "expr2", ")", ";", "}", "else", "{", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "BinaryExpression", "(", "expr1", ",", "expr2", ",", "PLUS", ")", ";", "}", "}", "else", "{", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "BinaryExpression", "(", "expr1", ",", "expr2", ",", "PLUS", ")", ";", "}", "}", "else", "if", "(", "expr1", "instanceof", "CombinedBinaryExpression", ")", "{", "CombinedBinaryExpression", "cursor", ";", "if", "(", "(", "cursor", "=", "(", "CombinedBinaryExpression", ")", "expr1", ")", ".", "arity", "<", "cursor", ".", "arityMax", ")", "{", "cursor", ".", "left", "=", "new", "BinaryExpression", "(", "cursor", ")", ";", "cursor", ".", "arity", "++", ";", "}", "else", "{", "cursor", ".", "left", "=", "new", "CombinedBinaryExpression", "(", "cursor", ")", ";", "cursor", ".", "arity", "=", "0", ";", "cursor", ".", "tuneArityMax", "(", ")", ";", "}", "cursor", ".", "right", "=", "expr2", ";", "cursor", ".", "sourceEnd", "=", "expr2", ".", "sourceEnd", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "cursor", ";", "}", "else", "if", "(", "expr1", "instanceof", "BinaryExpression", "&&", "(", "(", "expr1", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ")", "==", "OperatorIds", ".", "PLUS", ")", "{", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "CombinedBinaryExpression", "(", "expr1", ",", "expr2", ",", "PLUS", ",", "1", ")", ";", "}", "else", "{", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "BinaryExpression", "(", "expr1", ",", "expr2", ",", "PLUS", ")", ";", "}", "}", "else", "if", "(", "expr1", "instanceof", "StringLiteral", ")", "{", "if", "(", "expr2", "instanceof", "StringLiteral", "&&", "(", "(", "expr1", ".", "bits", "&", "ASTNode", ".", "ParenthesizedMASK", ")", ">>", "ASTNode", ".", "ParenthesizedSHIFT", ")", "==", "0", ")", "{", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "(", "(", "StringLiteral", ")", "expr1", ")", ".", "extendsWith", "(", "(", "StringLiteral", ")", "expr2", ")", ";", "}", "else", "{", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "BinaryExpression", "(", "expr1", ",", "expr2", ",", "PLUS", ")", ";", "}", "}", "else", "if", "(", "expr1", "instanceof", "CombinedBinaryExpression", ")", "{", "CombinedBinaryExpression", "cursor", ";", "if", "(", "(", "cursor", "=", "(", "CombinedBinaryExpression", ")", "expr1", ")", ".", "arity", "<", "cursor", ".", "arityMax", ")", "{", "cursor", ".", "left", "=", "new", "BinaryExpression", "(", "cursor", ")", ";", "cursor", ".", "bits", "&=", "~", "ASTNode", ".", "ParenthesizedMASK", ";", "cursor", ".", "arity", "++", ";", "}", "else", "{", "cursor", ".", "left", "=", "new", "CombinedBinaryExpression", "(", "cursor", ")", ";", "cursor", ".", "bits", "&=", "~", "ASTNode", ".", "ParenthesizedMASK", ";", "cursor", ".", "arity", "=", "0", ";", "cursor", ".", "tuneArityMax", "(", ")", ";", "}", "cursor", ".", "right", "=", "expr2", ";", "cursor", ".", "sourceEnd", "=", "expr2", ".", "sourceEnd", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "cursor", ";", "}", "else", "if", "(", "expr1", "instanceof", "BinaryExpression", "&&", "(", "(", "expr1", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ")", "==", "OperatorIds", ".", "PLUS", ")", "{", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "CombinedBinaryExpression", "(", "expr1", ",", "expr2", ",", "PLUS", ",", "1", ")", ";", "}", "else", "{", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "BinaryExpression", "(", "expr1", ",", "expr2", ",", "PLUS", ")", ";", "}", "break", ";", "case", "LESS", ":", "case", "MULTIPLY", ":", "this", ".", "intPtr", "--", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "BinaryExpression", "(", "expr1", ",", "expr2", ",", "op", ")", ";", "break", ";", "default", ":", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "BinaryExpression", "(", "expr1", ",", "expr2", ",", "op", ")", ";", "}", "}", "protected", "void", "consumeBinaryExpressionWithName", "(", "int", "op", ")", "{", "pushOnExpressionStack", "(", "getUnspecifiedReferenceOptimized", "(", ")", ")", ";", "this", ".", "expressionPtr", "--", ";", "this", ".", "expressionLengthPtr", "--", ";", "Expression", "expr1", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "+", "1", "]", ";", "Expression", "expr2", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ";", "switch", "(", "op", ")", "{", "case", "OR_OR", ":", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "OR_OR_Expression", "(", "expr1", ",", "expr2", ",", "op", ")", ";", "break", ";", "case", "AND_AND", ":", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "AND_AND_Expression", "(", "expr1", ",", "expr2", ",", "op", ")", ";", "break", ";", "case", "PLUS", ":", "if", "(", "this", ".", "optimizeStringLiterals", ")", "{", "if", "(", "expr1", "instanceof", "StringLiteral", "&&", "(", "(", "expr1", ".", "bits", "&", "ASTNode", ".", "ParenthesizedMASK", ")", ">>", "ASTNode", ".", "ParenthesizedSHIFT", ")", "==", "0", ")", "{", "if", "(", "expr2", "instanceof", "CharLiteral", ")", "{", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "(", "(", "StringLiteral", ")", "expr1", ")", ".", "extendWith", "(", "(", "CharLiteral", ")", "expr2", ")", ";", "}", "else", "if", "(", "expr2", "instanceof", "StringLiteral", ")", "{", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "(", "(", "StringLiteral", ")", "expr1", ")", ".", "extendWith", "(", "(", "StringLiteral", ")", "expr2", ")", ";", "}", "else", "{", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "BinaryExpression", "(", "expr1", ",", "expr2", ",", "PLUS", ")", ";", "}", "}", "else", "{", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "BinaryExpression", "(", "expr1", ",", "expr2", ",", "PLUS", ")", ";", "}", "}", "else", "if", "(", "expr1", "instanceof", "StringLiteral", ")", "{", "if", "(", "expr2", "instanceof", "StringLiteral", "&&", "(", "(", "expr1", ".", "bits", "&", "ASTNode", ".", "ParenthesizedMASK", ")", ">>", "ASTNode", ".", "ParenthesizedSHIFT", ")", "==", "0", ")", "{", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "(", "(", "StringLiteral", ")", "expr1", ")", ".", "extendsWith", "(", "(", "StringLiteral", ")", "expr2", ")", ";", "}", "else", "{", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "BinaryExpression", "(", "expr1", ",", "expr2", ",", "op", ")", ";", "}", "}", "else", "{", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "BinaryExpression", "(", "expr1", ",", "expr2", ",", "op", ")", ";", "}", "break", ";", "case", "LESS", ":", "case", "MULTIPLY", ":", "this", ".", "intPtr", "--", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "BinaryExpression", "(", "expr1", ",", "expr2", ",", "op", ")", ";", "break", ";", "default", ":", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "BinaryExpression", "(", "expr1", ",", "expr2", ",", "op", ")", ";", "}", "}", "protected", "void", "consumeBlock", "(", ")", "{", "int", "statementsLength", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ";", "Block", "block", ";", "if", "(", "statementsLength", "==", "0", ")", "{", "block", "=", "new", "Block", "(", "0", ")", ";", "block", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "block", ".", "sourceEnd", "=", "this", ".", "endStatementPosition", ";", "if", "(", "!", "containsComment", "(", "block", ".", "sourceStart", ",", "block", ".", "sourceEnd", ")", ")", "{", "block", ".", "bits", "|=", "ASTNode", ".", "UndocumentedEmptyBlock", ";", "}", "this", ".", "realBlockPtr", "--", ";", "}", "else", "{", "block", "=", "new", "Block", "(", "this", ".", "realBlockStack", "[", "this", ".", "realBlockPtr", "--", "]", ")", ";", "this", ".", "astPtr", "-=", "statementsLength", ";", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "this", ".", "astPtr", "+", "1", ",", "block", ".", "statements", "=", "new", "Statement", "[", "statementsLength", "]", ",", "0", ",", "statementsLength", ")", ";", "block", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "block", ".", "sourceEnd", "=", "this", ".", "endStatementPosition", ";", "}", "pushOnAstStack", "(", "block", ")", ";", "}", "protected", "void", "consumeBlockStatements", "(", ")", "{", "concatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeCaseLabel", "(", ")", "{", "this", ".", "expressionLengthPtr", "--", ";", "Expression", "expression", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ";", "CaseStatement", "caseStatement", "=", "new", "CaseStatement", "(", "expression", ",", "expression", ".", "sourceEnd", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ";", "if", "(", "hasLeadingTagComment", "(", "FALL_THROUGH_TAG", ",", "caseStatement", ".", "sourceStart", ")", ")", "{", "caseStatement", ".", "bits", "|=", "ASTNode", ".", "DocumentedFallthrough", ";", "}", "pushOnAstStack", "(", "caseStatement", ")", ";", "}", "protected", "void", "consumeCastExpressionLL1", "(", ")", "{", "Expression", "cast", ";", "Expression", "exp", ";", "this", ".", "expressionPtr", "--", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "cast", "=", "new", "CastExpression", "(", "exp", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "+", "1", "]", ",", "(", "TypeReference", ")", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ")", ";", "this", ".", "expressionLengthPtr", "--", ";", "updateSourcePosition", "(", "cast", ")", ";", "cast", ".", "sourceEnd", "=", "exp", ".", "sourceEnd", ";", "}", "protected", "void", "consumeCastExpressionWithGenericsArray", "(", ")", "{", "Expression", "exp", ";", "Expression", "cast", ";", "TypeReference", "castType", ";", "int", "end", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "int", "dim", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "pushOnGenericsIdentifiersLengthStack", "(", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "]", ")", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "cast", "=", "new", "CastExpression", "(", "exp", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ",", "castType", "=", "getTypeReference", "(", "dim", ")", ")", ";", "this", ".", "intPtr", "--", ";", "castType", ".", "sourceEnd", "=", "end", "-", "1", ";", "castType", ".", "sourceStart", "=", "(", "cast", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", "+", "1", ";", "cast", ".", "sourceEnd", "=", "exp", ".", "sourceEnd", ";", "}", "protected", "void", "consumeCastExpressionWithNameArray", "(", ")", "{", "Expression", "exp", ";", "Expression", "cast", ";", "TypeReference", "castType", ";", "int", "end", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "pushOnGenericsLengthStack", "(", "0", ")", ";", "pushOnGenericsIdentifiersLengthStack", "(", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "]", ")", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "cast", "=", "new", "CastExpression", "(", "exp", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ",", "castType", "=", "getTypeReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ")", ";", "castType", ".", "sourceEnd", "=", "end", "-", "1", ";", "castType", ".", "sourceStart", "=", "(", "cast", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", "+", "1", ";", "cast", ".", "sourceEnd", "=", "exp", ".", "sourceEnd", ";", "}", "protected", "void", "consumeCastExpressionWithPrimitiveType", "(", ")", "{", "Expression", "exp", ";", "Expression", "cast", ";", "TypeReference", "castType", ";", "int", "end", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "cast", "=", "new", "CastExpression", "(", "exp", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ",", "castType", "=", "getTypeReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ")", ";", "castType", ".", "sourceEnd", "=", "end", "-", "1", ";", "castType", ".", "sourceStart", "=", "(", "cast", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", "+", "1", ";", "cast", ".", "sourceEnd", "=", "exp", ".", "sourceEnd", ";", "}", "protected", "void", "consumeCastExpressionWithQualifiedGenericsArray", "(", ")", "{", "Expression", "exp", ";", "Expression", "cast", ";", "TypeReference", "castType", ";", "int", "end", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "int", "dim", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "TypeReference", "rightSide", "=", "getTypeReference", "(", "0", ")", ";", "ParameterizedQualifiedTypeReference", "qualifiedParameterizedTypeReference", "=", "computeQualifiedGenericsFromRightSide", "(", "rightSide", ",", "dim", ")", ";", "this", ".", "intPtr", "--", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "cast", "=", "new", "CastExpression", "(", "exp", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ",", "castType", "=", "qualifiedParameterizedTypeReference", ")", ";", "castType", ".", "sourceEnd", "=", "end", "-", "1", ";", "castType", ".", "sourceStart", "=", "(", "cast", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", "+", "1", ";", "cast", ".", "sourceEnd", "=", "exp", ".", "sourceEnd", ";", "}", "protected", "void", "consumeCatches", "(", ")", "{", "optimizedConcatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeCatchFormalParameter", "(", ")", "{", "this", ".", "identifierLengthPtr", "--", ";", "char", "[", "]", "identifierName", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", ";", "long", "namePositions", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "int", "extendedDimensions", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "TypeReference", "type", "=", "(", "TypeReference", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "--", "]", ";", "if", "(", "extendedDimensions", ">", "0", ")", "{", "type", "=", "type", ".", "copyDims", "(", "type", ".", "dimensions", "(", ")", "+", "extendedDimensions", ")", ";", "type", ".", "sourceEnd", "=", "this", ".", "endPosition", ";", "}", "this", ".", "astLengthPtr", "--", ";", "int", "modifierPositions", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "this", ".", "intPtr", "--", ";", "Argument", "arg", "=", "new", "Argument", "(", "identifierName", ",", "namePositions", ",", "type", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "+", "1", "]", "&", "~", "ClassFileConstants", ".", "AccDeprecated", ")", ";", "arg", ".", "bits", "&=", "~", "ASTNode", ".", "IsArgument", ";", "arg", ".", "declarationSourceStart", "=", "modifierPositions", ";", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "(", "this", ".", "expressionPtr", "-=", "length", ")", "+", "1", ",", "arg", ".", "annotations", "=", "new", "Annotation", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "pushOnAstStack", "(", "arg", ")", ";", "this", ".", "listLength", "++", ";", "}", "protected", "void", "consumeCatchHeader", "(", ")", "{", "if", "(", "this", ".", "currentElement", "==", "null", ")", "{", "return", ";", "}", "if", "(", "!", "(", "this", ".", "currentElement", "instanceof", "RecoveredBlock", ")", ")", "{", "if", "(", "!", "(", "this", ".", "currentElement", "instanceof", "RecoveredMethod", ")", ")", "{", "return", ";", "}", "RecoveredMethod", "rMethod", "=", "(", "RecoveredMethod", ")", "this", ".", "currentElement", ";", "if", "(", "!", "(", "rMethod", ".", "methodBody", "==", "null", "&&", "rMethod", ".", "bracketBalance", ">", "0", ")", ")", "{", "return", ";", "}", "}", "Argument", "arg", "=", "(", "Argument", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "--", "]", ";", "LocalDeclaration", "localDeclaration", "=", "new", "LocalDeclaration", "(", "arg", ".", "name", ",", "arg", ".", "sourceStart", ",", "arg", ".", "sourceEnd", ")", ";", "localDeclaration", ".", "type", "=", "arg", ".", "type", ";", "localDeclaration", ".", "declarationSourceStart", "=", "arg", ".", "declarationSourceStart", ";", "localDeclaration", ".", "declarationSourceEnd", "=", "arg", ".", "declarationSourceEnd", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "localDeclaration", ",", "0", ")", ";", "this", ".", "lastCheckPoint", "=", "this", ".", "scanner", ".", "startPosition", ";", "this", ".", "restartRecovery", "=", "true", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "}", "protected", "void", "consumeCatchType", "(", ")", "{", "int", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ";", "if", "(", "length", "!=", "1", ")", "{", "TypeReference", "[", "]", "typeReferences", ";", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "(", "this", ".", "astPtr", "-=", "length", ")", "+", "1", ",", "(", "typeReferences", "=", "new", "TypeReference", "[", "length", "]", ")", ",", "0", ",", "length", ")", ";", "UnionTypeReference", "typeReference", "=", "new", "UnionTypeReference", "(", "typeReferences", ")", ";", "pushOnAstStack", "(", "typeReference", ")", ";", "if", "(", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_7", ")", "{", "problemReporter", "(", ")", ".", "multiCatchNotBelow17", "(", "typeReference", ")", ";", "}", "}", "else", "{", "pushOnAstLengthStack", "(", "1", ")", ";", "}", "}", "protected", "void", "consumeClassBodyDeclaration", "(", ")", "{", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "--", ";", "Block", "block", "=", "(", "Block", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "--", "]", ";", "this", ".", "astLengthPtr", "--", ";", "if", "(", "this", ".", "diet", ")", "block", ".", "bits", "&=", "~", "ASTNode", ".", "UndocumentedEmptyBlock", ";", "Initializer", "initializer", "=", "(", "Initializer", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "initializer", ".", "declarationSourceStart", "=", "initializer", ".", "sourceStart", "=", "block", ".", "sourceStart", ";", "initializer", ".", "block", "=", "block", ";", "this", ".", "intPtr", "--", ";", "initializer", ".", "bodyStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "this", ".", "realBlockPtr", "--", ";", "int", "javadocCommentStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "if", "(", "javadocCommentStart", "!=", "-", "1", ")", "{", "initializer", ".", "declarationSourceStart", "=", "javadocCommentStart", ";", "initializer", ".", "javadoc", "=", "this", ".", "javadoc", ";", "this", ".", "javadoc", "=", "null", ";", "}", "initializer", ".", "bodyEnd", "=", "this", ".", "endPosition", ";", "initializer", ".", "sourceEnd", "=", "this", ".", "endStatementPosition", ";", "initializer", ".", "declarationSourceEnd", "=", "flushCommentsDefinedPriorTo", "(", "this", ".", "endStatementPosition", ")", ";", "}", "protected", "void", "consumeClassBodyDeclarations", "(", ")", "{", "concatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeClassBodyDeclarationsopt", "(", ")", "{", "this", ".", "nestedType", "--", ";", "}", "protected", "void", "consumeClassBodyopt", "(", ")", "{", "pushOnAstStack", "(", "null", ")", ";", "this", ".", "endPosition", "=", "this", ".", "rParenPos", ";", "this", ".", "shouldDeferRecovery", "=", "false", ";", "}", "protected", "void", "consumeClassDeclaration", "(", ")", "{", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "dispatchDeclarationInto", "(", "length", ")", ";", "}", "TypeDeclaration", "typeDecl", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "boolean", "hasConstructor", "=", "typeDecl", ".", "checkConstructors", "(", "this", ")", ";", "if", "(", "!", "hasConstructor", ")", "{", "switch", "(", "TypeDeclaration", ".", "kind", "(", "typeDecl", ".", "modifiers", ")", ")", "{", "case", "TypeDeclaration", ".", "CLASS_DECL", ":", "case", "TypeDeclaration", ".", "ENUM_DECL", ":", "boolean", "insideFieldInitializer", "=", "false", ";", "if", "(", "this", ".", "diet", ")", "{", "for", "(", "int", "i", "=", "this", ".", "nestedType", ";", "i", ">", "0", ";", "i", "--", ")", "{", "if", "(", "this", ".", "variablesCounter", "[", "i", "]", ">", "0", ")", "{", "insideFieldInitializer", "=", "true", ";", "break", ";", "}", "}", "}", "typeDecl", ".", "createDefaultConstructor", "(", "!", "this", ".", "diet", "||", "insideFieldInitializer", ",", "true", ")", ";", "}", "}", "if", "(", "this", ".", "scanner", ".", "containsAssertKeyword", ")", "{", "typeDecl", ".", "bits", "|=", "ASTNode", ".", "ContainsAssertion", ";", "}", "typeDecl", ".", "addClinit", "(", ")", ";", "typeDecl", ".", "bodyEnd", "=", "this", ".", "endStatementPosition", ";", "if", "(", "length", "==", "0", "&&", "!", "containsComment", "(", "typeDecl", ".", "bodyStart", ",", "typeDecl", ".", "bodyEnd", ")", ")", "{", "typeDecl", ".", "bits", "|=", "ASTNode", ".", "UndocumentedEmptyBlock", ";", "}", "typeDecl", ".", "declarationSourceEnd", "=", "flushCommentsDefinedPriorTo", "(", "this", ".", "endStatementPosition", ")", ";", "}", "protected", "void", "consumeClassHeader", "(", ")", "{", "TypeDeclaration", "typeDecl", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "if", "(", "this", ".", "currentToken", "==", "TokenNameLBRACE", ")", "{", "typeDecl", ".", "bodyStart", "=", "this", ".", "scanner", ".", "currentPosition", ";", "}", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "restartRecovery", "=", "true", ";", "}", "this", ".", "scanner", ".", "commentPtr", "=", "-", "1", ";", "}", "protected", "void", "consumeClassHeaderExtends", "(", ")", "{", "TypeReference", "superClass", "=", "getTypeReference", "(", "0", ")", ";", "TypeDeclaration", "typeDecl", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "typeDecl", ".", "superclass", "=", "superClass", ";", "superClass", ".", "bits", "|=", "ASTNode", ".", "IsSuperType", ";", "typeDecl", ".", "bodyStart", "=", "typeDecl", ".", "superclass", ".", "sourceEnd", "+", "1", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "typeDecl", ".", "bodyStart", ";", "}", "}", "protected", "void", "consumeClassHeaderImplements", "(", ")", "{", "int", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ";", "this", ".", "astPtr", "-=", "length", ";", "TypeDeclaration", "typeDecl", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "this", ".", "astPtr", "+", "1", ",", "typeDecl", ".", "superInterfaces", "=", "new", "TypeReference", "[", "length", "]", ",", "0", ",", "length", ")", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "typeDecl", ".", "superInterfaces", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "typeDecl", ".", "superInterfaces", "[", "i", "]", ".", "bits", "|=", "ASTNode", ".", "IsSuperType", ";", "}", "typeDecl", ".", "bodyStart", "=", "typeDecl", ".", "superInterfaces", "[", "length", "-", "1", "]", ".", "sourceEnd", "+", "1", ";", "this", ".", "listLength", "=", "0", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "typeDecl", ".", "bodyStart", ";", "}", "}", "protected", "void", "consumeClassHeaderName1", "(", ")", "{", "TypeDeclaration", "typeDecl", "=", "new", "TypeDeclaration", "(", "this", ".", "compilationUnit", ".", "compilationResult", ")", ";", "if", "(", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "==", "0", ")", "{", "if", "(", "this", ".", "nestedType", "!=", "0", ")", "{", "typeDecl", ".", "bits", "|=", "ASTNode", ".", "IsMemberType", ";", "}", "}", "else", "{", "typeDecl", ".", "bits", "|=", "ASTNode", ".", "IsLocalType", ";", "markEnclosingMemberWithLocalType", "(", ")", ";", "blockReal", "(", ")", ";", "}", "long", "pos", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ";", "typeDecl", ".", "sourceEnd", "=", "(", "int", ")", "pos", ";", "typeDecl", ".", "sourceStart", "=", "(", "int", ")", "(", "pos", ">>>", "32", ")", ";", "typeDecl", ".", "name", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "this", ".", "identifierLengthPtr", "--", ";", "typeDecl", ".", "declarationSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "this", ".", "intPtr", "--", ";", "typeDecl", ".", "modifiersSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "typeDecl", ".", "modifiers", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "if", "(", "typeDecl", ".", "modifiersSourceStart", ">=", "0", ")", "{", "typeDecl", ".", "declarationSourceStart", "=", "typeDecl", ".", "modifiersSourceStart", ";", "}", "if", "(", "(", "typeDecl", ".", "bits", "&", "ASTNode", ".", "IsMemberType", ")", "==", "0", "&&", "(", "typeDecl", ".", "bits", "&", "ASTNode", ".", "IsLocalType", ")", "==", "0", ")", "{", "if", "(", "this", ".", "compilationUnit", "!=", "null", "&&", "!", "CharOperation", ".", "equals", "(", "typeDecl", ".", "name", ",", "this", ".", "compilationUnit", ".", "getMainTypeName", "(", ")", ")", ")", "{", "typeDecl", ".", "bits", "|=", "ASTNode", ".", "IsSecondaryType", ";", "}", "}", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "(", "this", ".", "expressionPtr", "-=", "length", ")", "+", "1", ",", "typeDecl", ".", "annotations", "=", "new", "Annotation", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "typeDecl", ".", "bodyStart", "=", "typeDecl", ".", "sourceEnd", "+", "1", ";", "pushOnAstStack", "(", "typeDecl", ")", ";", "this", ".", "listLength", "=", "0", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "typeDecl", ".", "bodyStart", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "typeDecl", ",", "0", ")", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "}", "typeDecl", ".", "javadoc", "=", "this", ".", "javadoc", ";", "this", ".", "javadoc", "=", "null", ";", "}", "protected", "void", "consumeClassInstanceCreationExpression", "(", ")", "{", "classInstanceCreation", "(", "false", ")", ";", "}", "protected", "void", "consumeClassInstanceCreationExpressionName", "(", ")", "{", "pushOnExpressionStack", "(", "getUnspecifiedReferenceOptimized", "(", ")", ")", ";", "}", "protected", "void", "consumeClassInstanceCreationExpressionQualified", "(", ")", "{", "classInstanceCreation", "(", "true", ")", ";", "QualifiedAllocationExpression", "qae", "=", "(", "QualifiedAllocationExpression", ")", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ";", "if", "(", "qae", ".", "anonymousType", "==", "null", ")", "{", "this", ".", "expressionLengthPtr", "--", ";", "this", ".", "expressionPtr", "--", ";", "qae", ".", "enclosingInstance", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "qae", ";", "}", "qae", ".", "sourceStart", "=", "qae", ".", "enclosingInstance", ".", "sourceStart", ";", "}", "protected", "void", "consumeClassInstanceCreationExpressionQualifiedWithTypeArguments", "(", ")", "{", "QualifiedAllocationExpression", "alloc", ";", "int", "length", ";", "if", "(", "(", "(", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", "==", "1", ")", "&&", "(", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", "==", "null", ")", ")", "{", "this", ".", "astPtr", "--", ";", "alloc", "=", "new", "QualifiedAllocationExpression", "(", ")", ";", "alloc", ".", "sourceEnd", "=", "this", ".", "endPosition", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "this", ".", "expressionPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "this", ".", "expressionPtr", "+", "1", ",", "alloc", ".", "arguments", "=", "new", "Expression", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "alloc", ".", "type", "=", "getTypeReference", "(", "0", ")", ";", "checkForDiamond", "(", "alloc", ".", "type", ")", ";", "length", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "--", "]", ";", "this", ".", "genericsPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "genericsStack", ",", "this", ".", "genericsPtr", "+", "1", ",", "alloc", ".", "typeArguments", "=", "new", "TypeReference", "[", "length", "]", ",", "0", ",", "length", ")", ";", "this", ".", "intPtr", "--", ";", "alloc", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "pushOnExpressionStack", "(", "alloc", ")", ";", "}", "else", "{", "dispatchDeclarationInto", "(", "length", ")", ";", "TypeDeclaration", "anonymousTypeDeclaration", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "anonymousTypeDeclaration", ".", "declarationSourceEnd", "=", "this", ".", "endStatementPosition", ";", "anonymousTypeDeclaration", ".", "bodyEnd", "=", "this", ".", "endStatementPosition", ";", "if", "(", "length", "==", "0", "&&", "!", "containsComment", "(", "anonymousTypeDeclaration", ".", "bodyStart", ",", "anonymousTypeDeclaration", ".", "bodyEnd", ")", ")", "{", "anonymousTypeDeclaration", ".", "bits", "|=", "ASTNode", ".", "UndocumentedEmptyBlock", ";", "}", "this", ".", "astPtr", "--", ";", "this", ".", "astLengthPtr", "--", ";", "QualifiedAllocationExpression", "allocationExpression", "=", "anonymousTypeDeclaration", ".", "allocation", ";", "if", "(", "allocationExpression", "!=", "null", ")", "{", "allocationExpression", ".", "sourceEnd", "=", "this", ".", "endStatementPosition", ";", "length", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "--", "]", ";", "this", ".", "genericsPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "genericsStack", ",", "this", ".", "genericsPtr", "+", "1", ",", "allocationExpression", ".", "typeArguments", "=", "new", "TypeReference", "[", "length", "]", ",", "0", ",", "length", ")", ";", "allocationExpression", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "checkForDiamond", "(", "allocationExpression", ".", "type", ")", ";", "}", "}", "QualifiedAllocationExpression", "qae", "=", "(", "QualifiedAllocationExpression", ")", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ";", "if", "(", "qae", ".", "anonymousType", "==", "null", ")", "{", "this", ".", "expressionLengthPtr", "--", ";", "this", ".", "expressionPtr", "--", ";", "qae", ".", "enclosingInstance", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "qae", ";", "}", "qae", ".", "sourceStart", "=", "qae", ".", "enclosingInstance", ".", "sourceStart", ";", "}", "protected", "void", "consumeClassInstanceCreationExpressionWithTypeArguments", "(", ")", "{", "AllocationExpression", "alloc", ";", "int", "length", ";", "if", "(", "(", "(", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", "==", "1", ")", "&&", "(", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", "==", "null", ")", ")", "{", "this", ".", "astPtr", "--", ";", "alloc", "=", "new", "AllocationExpression", "(", ")", ";", "alloc", ".", "sourceEnd", "=", "this", ".", "endPosition", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "this", ".", "expressionPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "this", ".", "expressionPtr", "+", "1", ",", "alloc", ".", "arguments", "=", "new", "Expression", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "alloc", ".", "type", "=", "getTypeReference", "(", "0", ")", ";", "checkForDiamond", "(", "alloc", ".", "type", ")", ";", "length", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "--", "]", ";", "this", ".", "genericsPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "genericsStack", ",", "this", ".", "genericsPtr", "+", "1", ",", "alloc", ".", "typeArguments", "=", "new", "TypeReference", "[", "length", "]", ",", "0", ",", "length", ")", ";", "this", ".", "intPtr", "--", ";", "alloc", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "pushOnExpressionStack", "(", "alloc", ")", ";", "}", "else", "{", "dispatchDeclarationInto", "(", "length", ")", ";", "TypeDeclaration", "anonymousTypeDeclaration", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "anonymousTypeDeclaration", ".", "declarationSourceEnd", "=", "this", ".", "endStatementPosition", ";", "anonymousTypeDeclaration", ".", "bodyEnd", "=", "this", ".", "endStatementPosition", ";", "if", "(", "length", "==", "0", "&&", "!", "containsComment", "(", "anonymousTypeDeclaration", ".", "bodyStart", ",", "anonymousTypeDeclaration", ".", "bodyEnd", ")", ")", "{", "anonymousTypeDeclaration", ".", "bits", "|=", "ASTNode", ".", "UndocumentedEmptyBlock", ";", "}", "this", ".", "astPtr", "--", ";", "this", ".", "astLengthPtr", "--", ";", "QualifiedAllocationExpression", "allocationExpression", "=", "anonymousTypeDeclaration", ".", "allocation", ";", "if", "(", "allocationExpression", "!=", "null", ")", "{", "allocationExpression", ".", "sourceEnd", "=", "this", ".", "endStatementPosition", ";", "length", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "--", "]", ";", "this", ".", "genericsPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "genericsStack", ",", "this", ".", "genericsPtr", "+", "1", ",", "allocationExpression", ".", "typeArguments", "=", "new", "TypeReference", "[", "length", "]", ",", "0", ",", "length", ")", ";", "allocationExpression", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "checkForDiamond", "(", "allocationExpression", ".", "type", ")", ";", "}", "}", "}", "protected", "void", "consumeClassOrInterface", "(", ")", "{", "this", ".", "genericsIdentifiersLengthStack", "[", "this", ".", "genericsIdentifiersLengthPtr", "]", "+=", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "]", ";", "pushOnGenericsLengthStack", "(", "0", ")", ";", "}", "protected", "void", "consumeClassOrInterfaceName", "(", ")", "{", "pushOnGenericsIdentifiersLengthStack", "(", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "]", ")", ";", "pushOnGenericsLengthStack", "(", "0", ")", ";", "}", "protected", "void", "consumeClassTypeElt", "(", ")", "{", "pushOnAstStack", "(", "getTypeReference", "(", "0", ")", ")", ";", "this", ".", "listLength", "++", ";", "}", "protected", "void", "consumeClassTypeList", "(", ")", "{", "optimizedConcatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeCompilationUnit", "(", ")", "{", "}", "protected", "void", "consumeConditionalExpression", "(", "int", "op", ")", "{", "this", ".", "intPtr", "-=", "2", ";", "this", ".", "expressionPtr", "-=", "2", ";", "this", ".", "expressionLengthPtr", "-=", "2", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "ConditionalExpression", "(", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ",", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "+", "1", "]", ",", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "+", "2", "]", ")", ";", "}", "protected", "void", "consumeConditionalExpressionWithName", "(", "int", "op", ")", "{", "this", ".", "intPtr", "-=", "2", ";", "pushOnExpressionStack", "(", "getUnspecifiedReferenceOptimized", "(", ")", ")", ";", "this", ".", "expressionPtr", "-=", "2", ";", "this", ".", "expressionLengthPtr", "-=", "2", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "ConditionalExpression", "(", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "+", "2", "]", ",", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ",", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "+", "1", "]", ")", ";", "}", "protected", "void", "consumeConstructorBlockStatements", "(", ")", "{", "concatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeConstructorBody", "(", ")", "{", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "--", ";", "}", "protected", "void", "consumeConstructorDeclaration", "(", ")", "{", "int", "length", ";", "this", ".", "intPtr", "--", ";", "this", ".", "intPtr", "--", ";", "this", ".", "realBlockPtr", "--", ";", "ExplicitConstructorCall", "constructorCall", "=", "null", ";", "Statement", "[", "]", "statements", "=", "null", ";", "if", "(", "(", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "this", ".", "astPtr", "-=", "length", ";", "if", "(", "!", "this", ".", "options", ".", "ignoreMethodBodies", ")", "{", "if", "(", "this", ".", "astStack", "[", "this", ".", "astPtr", "+", "1", "]", "instanceof", "ExplicitConstructorCall", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "this", ".", "astPtr", "+", "2", ",", "statements", "=", "new", "Statement", "[", "length", "-", "1", "]", ",", "0", ",", "length", "-", "1", ")", ";", "constructorCall", "=", "(", "ExplicitConstructorCall", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "+", "1", "]", ";", "}", "else", "{", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "this", ".", "astPtr", "+", "1", ",", "statements", "=", "new", "Statement", "[", "length", "]", ",", "0", ",", "length", ")", ";", "constructorCall", "=", "SuperReference", ".", "implicitSuperConstructorCall", "(", ")", ";", "}", "}", "}", "else", "{", "boolean", "insideFieldInitializer", "=", "false", ";", "if", "(", "this", ".", "diet", ")", "{", "for", "(", "int", "i", "=", "this", ".", "nestedType", ";", "i", ">", "0", ";", "i", "--", ")", "{", "if", "(", "this", ".", "variablesCounter", "[", "i", "]", ">", "0", ")", "{", "insideFieldInitializer", "=", "true", ";", "break", ";", "}", "}", "}", "if", "(", "!", "this", ".", "diet", "||", "insideFieldInitializer", ")", "{", "constructorCall", "=", "SuperReference", ".", "implicitSuperConstructorCall", "(", ")", ";", "}", "}", "ConstructorDeclaration", "cd", "=", "(", "ConstructorDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "cd", ".", "constructorCall", "=", "constructorCall", ";", "cd", ".", "statements", "=", "statements", ";", "if", "(", "constructorCall", "!=", "null", "&&", "cd", ".", "constructorCall", ".", "sourceEnd", "==", "0", ")", "{", "cd", ".", "constructorCall", ".", "sourceEnd", "=", "cd", ".", "sourceEnd", ";", "cd", ".", "constructorCall", ".", "sourceStart", "=", "cd", ".", "sourceStart", ";", "}", "if", "(", "!", "(", "this", ".", "diet", "&&", "this", ".", "dietInt", "==", "0", ")", "&&", "statements", "==", "null", "&&", "(", "constructorCall", "==", "null", "||", "constructorCall", ".", "isImplicitSuper", "(", ")", ")", "&&", "!", "containsComment", "(", "cd", ".", "bodyStart", ",", "this", ".", "endPosition", ")", ")", "{", "cd", ".", "bits", "|=", "ASTNode", ".", "UndocumentedEmptyBlock", ";", "}", "cd", ".", "bodyEnd", "=", "this", ".", "endPosition", ";", "cd", ".", "declarationSourceEnd", "=", "flushCommentsDefinedPriorTo", "(", "this", ".", "endStatementPosition", ")", ";", "}", "protected", "void", "consumeConstructorHeader", "(", ")", "{", "AbstractMethodDeclaration", "method", "=", "(", "AbstractMethodDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "if", "(", "this", ".", "currentToken", "==", "TokenNameLBRACE", ")", "{", "method", ".", "bodyStart", "=", "this", ".", "scanner", ".", "currentPosition", ";", "}", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "if", "(", "this", ".", "currentToken", "==", "TokenNameSEMICOLON", ")", "{", "method", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccSemicolonBody", ";", "method", ".", "declarationSourceEnd", "=", "this", ".", "scanner", ".", "currentPosition", "-", "1", ";", "method", ".", "bodyEnd", "=", "this", ".", "scanner", ".", "currentPosition", "-", "1", ";", "if", "(", "this", ".", "currentElement", ".", "parseTree", "(", ")", "==", "method", "&&", "this", ".", "currentElement", ".", "parent", "!=", "null", ")", "{", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "parent", ";", "}", "}", "this", ".", "restartRecovery", "=", "true", ";", "}", "}", "protected", "void", "consumeConstructorHeaderName", "(", ")", "{", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "if", "(", "this", ".", "lastIgnoredToken", "==", "TokenNamenew", ")", "{", "this", ".", "lastCheckPoint", "=", "this", ".", "scanner", ".", "startPosition", ";", "this", ".", "restartRecovery", "=", "true", ";", "return", ";", "}", "}", "ConstructorDeclaration", "cd", "=", "new", "ConstructorDeclaration", "(", "this", ".", "compilationUnit", ".", "compilationResult", ")", ";", "cd", ".", "selector", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", ";", "long", "selectorSource", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "this", ".", "identifierLengthPtr", "--", ";", "cd", ".", "declarationSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "cd", ".", "modifiers", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "(", "this", ".", "expressionPtr", "-=", "length", ")", "+", "1", ",", "cd", ".", "annotations", "=", "new", "Annotation", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "cd", ".", "javadoc", "=", "this", ".", "javadoc", ";", "this", ".", "javadoc", "=", "null", ";", "cd", ".", "sourceStart", "=", "(", "int", ")", "(", "selectorSource", ">>>", "32", ")", ";", "pushOnAstStack", "(", "cd", ")", ";", "cd", ".", "sourceEnd", "=", "this", ".", "lParenPos", ";", "cd", ".", "bodyStart", "=", "this", ".", "lParenPos", "+", "1", ";", "this", ".", "listLength", "=", "0", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "cd", ".", "bodyStart", ";", "if", "(", "(", "this", ".", "currentElement", "instanceof", "RecoveredType", "&&", "this", ".", "lastIgnoredToken", "!=", "TokenNameDOT", ")", "||", "cd", ".", "modifiers", "!=", "0", ")", "{", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "cd", ",", "0", ")", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "}", "}", "}", "protected", "void", "consumeConstructorHeaderNameWithTypeParameters", "(", ")", "{", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "if", "(", "this", ".", "lastIgnoredToken", "==", "TokenNamenew", ")", "{", "this", ".", "lastCheckPoint", "=", "this", ".", "scanner", ".", "startPosition", ";", "this", ".", "restartRecovery", "=", "true", ";", "return", ";", "}", "}", "ConstructorDeclaration", "cd", "=", "new", "ConstructorDeclaration", "(", "this", ".", "compilationUnit", ".", "compilationResult", ")", ";", "cd", ".", "selector", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", ";", "long", "selectorSource", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "this", ".", "identifierLengthPtr", "--", ";", "int", "length", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "--", "]", ";", "this", ".", "genericsPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "genericsStack", ",", "this", ".", "genericsPtr", "+", "1", ",", "cd", ".", "typeParameters", "=", "new", "TypeParameter", "[", "length", "]", ",", "0", ",", "length", ")", ";", "cd", ".", "declarationSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "cd", ".", "modifiers", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "(", "this", ".", "expressionPtr", "-=", "length", ")", "+", "1", ",", "cd", ".", "annotations", "=", "new", "Annotation", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "cd", ".", "javadoc", "=", "this", ".", "javadoc", ";", "this", ".", "javadoc", "=", "null", ";", "cd", ".", "sourceStart", "=", "(", "int", ")", "(", "selectorSource", ">>>", "32", ")", ";", "pushOnAstStack", "(", "cd", ")", ";", "cd", ".", "sourceEnd", "=", "this", ".", "lParenPos", ";", "cd", ".", "bodyStart", "=", "this", ".", "lParenPos", "+", "1", ";", "this", ".", "listLength", "=", "0", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "cd", ".", "bodyStart", ";", "if", "(", "(", "this", ".", "currentElement", "instanceof", "RecoveredType", "&&", "this", ".", "lastIgnoredToken", "!=", "TokenNameDOT", ")", "||", "cd", ".", "modifiers", "!=", "0", ")", "{", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "cd", ",", "0", ")", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "}", "}", "}", "protected", "void", "consumeCreateInitializer", "(", ")", "{", "pushOnAstStack", "(", "new", "Initializer", "(", "null", ",", "0", ")", ")", ";", "}", "protected", "void", "consumeDefaultLabel", "(", ")", "{", "CaseStatement", "defaultStatement", "=", "new", "CaseStatement", "(", "null", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ";", "if", "(", "hasLeadingTagComment", "(", "FALL_THROUGH_TAG", ",", "defaultStatement", ".", "sourceStart", ")", ")", "{", "defaultStatement", ".", "bits", "|=", "ASTNode", ".", "DocumentedFallthrough", ";", "}", "if", "(", "hasLeadingTagComment", "(", "CASES_OMITTED_TAG", ",", "defaultStatement", ".", "sourceStart", ")", ")", "{", "defaultStatement", ".", "bits", "|=", "ASTNode", ".", "DocumentedCasesOmitted", ";", "}", "pushOnAstStack", "(", "defaultStatement", ")", ";", "}", "protected", "void", "consumeDefaultModifiers", "(", ")", "{", "checkComment", "(", ")", ";", "pushOnIntStack", "(", "this", ".", "modifiers", ")", ";", "pushOnIntStack", "(", "this", ".", "modifiersSourceStart", ">=", "0", "?", "this", ".", "modifiersSourceStart", ":", "this", ".", "scanner", ".", "startPosition", ")", ";", "resetModifiers", "(", ")", ";", "pushOnExpressionStackLengthStack", "(", "0", ")", ";", "}", "protected", "void", "consumeDiet", "(", ")", "{", "checkComment", "(", ")", ";", "pushOnIntStack", "(", "this", ".", "modifiersSourceStart", ")", ";", "resetModifiers", "(", ")", ";", "jumpOverMethodBody", "(", ")", ";", "}", "protected", "void", "consumeDims", "(", ")", "{", "pushOnIntStack", "(", "this", ".", "dimensions", ")", ";", "this", ".", "dimensions", "=", "0", ";", "}", "protected", "void", "consumeDimWithOrWithOutExpr", "(", ")", "{", "pushOnExpressionStack", "(", "null", ")", ";", "if", "(", "this", ".", "currentElement", "!=", "null", "&&", "this", ".", "currentToken", "==", "TokenNameLBRACE", ")", "{", "this", ".", "ignoreNextOpeningBrace", "=", "true", ";", "this", ".", "currentElement", ".", "bracketBalance", "++", ";", "}", "}", "protected", "void", "consumeDimWithOrWithOutExprs", "(", ")", "{", "concatExpressionLists", "(", ")", ";", "}", "protected", "void", "consumeUnionType", "(", ")", "{", "pushOnAstStack", "(", "getTypeReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ")", ";", "optimizedConcatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeUnionTypeAsClassType", "(", ")", "{", "pushOnAstStack", "(", "getTypeReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ")", ";", "}", "protected", "void", "consumeEmptyAnnotationTypeMemberDeclarationsopt", "(", ")", "{", "pushOnAstLengthStack", "(", "0", ")", ";", "}", "protected", "void", "consumeEmptyArgumentListopt", "(", ")", "{", "pushOnExpressionStackLengthStack", "(", "0", ")", ";", "}", "protected", "void", "consumeEmptyArguments", "(", ")", "{", "final", "FieldDeclaration", "fieldDeclaration", "=", "(", "FieldDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "pushOnIntStack", "(", "fieldDeclaration", ".", "sourceEnd", ")", ";", "pushOnExpressionStackLengthStack", "(", "0", ")", ";", "}", "protected", "void", "consumeEmptyArrayInitializer", "(", ")", "{", "arrayInitializer", "(", "0", ")", ";", "}", "protected", "void", "consumeEmptyArrayInitializeropt", "(", ")", "{", "pushOnExpressionStackLengthStack", "(", "0", ")", ";", "}", "protected", "void", "consumeEmptyBlockStatementsopt", "(", ")", "{", "pushOnAstLengthStack", "(", "0", ")", ";", "}", "protected", "void", "consumeEmptyCatchesopt", "(", ")", "{", "pushOnAstLengthStack", "(", "0", ")", ";", "}", "protected", "void", "consumeEmptyClassBodyDeclarationsopt", "(", ")", "{", "pushOnAstLengthStack", "(", "0", ")", ";", "}", "protected", "void", "consumeEmptyDimsopt", "(", ")", "{", "pushOnIntStack", "(", "0", ")", ";", "}", "protected", "void", "consumeEmptyEnumDeclarations", "(", ")", "{", "pushOnAstLengthStack", "(", "0", ")", ";", "}", "protected", "void", "consumeEmptyExpression", "(", ")", "{", "pushOnExpressionStackLengthStack", "(", "0", ")", ";", "}", "protected", "void", "consumeEmptyForInitopt", "(", ")", "{", "pushOnAstLengthStack", "(", "0", ")", ";", "}", "protected", "void", "consumeEmptyForUpdateopt", "(", ")", "{", "pushOnExpressionStackLengthStack", "(", "0", ")", ";", "}", "protected", "void", "consumeEmptyInterfaceMemberDeclarationsopt", "(", ")", "{", "pushOnAstLengthStack", "(", "0", ")", ";", "}", "protected", "void", "consumeEmptyInternalCompilationUnit", "(", ")", "{", "if", "(", "this", ".", "compilationUnit", ".", "isPackageInfo", "(", ")", ")", "{", "this", ".", "compilationUnit", ".", "types", "=", "new", "TypeDeclaration", "[", "1", "]", ";", "this", ".", "compilationUnit", ".", "createPackageInfoType", "(", ")", ";", "}", "}", "protected", "void", "consumeEmptyMemberValueArrayInitializer", "(", ")", "{", "arrayInitializer", "(", "0", ")", ";", "}", "protected", "void", "consumeEmptyMemberValuePairsopt", "(", ")", "{", "pushOnAstLengthStack", "(", "0", ")", ";", "}", "protected", "void", "consumeEmptyMethodHeaderDefaultValue", "(", ")", "{", "AbstractMethodDeclaration", "method", "=", "(", "AbstractMethodDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "if", "(", "method", ".", "isAnnotationMethod", "(", ")", ")", "{", "pushOnExpressionStackLengthStack", "(", "0", ")", ";", "}", "this", ".", "recordStringLiterals", "=", "true", ";", "}", "protected", "void", "consumeEmptyStatement", "(", ")", "{", "char", "[", "]", "source", "=", "this", ".", "scanner", ".", "source", ";", "if", "(", "source", "[", "this", ".", "endStatementPosition", "]", "==", "';'", ")", "{", "pushOnAstStack", "(", "new", "EmptyStatement", "(", "this", ".", "endStatementPosition", ",", "this", ".", "endStatementPosition", ")", ")", ";", "}", "else", "{", "if", "(", "source", ".", "length", ">", "5", ")", "{", "int", "c1", "=", "0", ",", "c2", "=", "0", ",", "c3", "=", "0", ",", "c4", "=", "0", ";", "int", "pos", "=", "this", ".", "endStatementPosition", "-", "4", ";", "while", "(", "source", "[", "pos", "]", "==", "'u'", ")", "{", "pos", "--", ";", "}", "if", "(", "source", "[", "pos", "]", "==", "'\\\\'", "&&", "!", "(", "(", "c1", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "source", "[", "this", ".", "endStatementPosition", "-", "3", "]", ")", ")", ">", "15", "||", "c1", "<", "0", "||", "(", "c2", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "source", "[", "this", ".", "endStatementPosition", "-", "2", "]", ")", ")", ">", "15", "||", "c2", "<", "0", "||", "(", "c3", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "source", "[", "this", ".", "endStatementPosition", "-", "1", "]", ")", ")", ">", "15", "||", "c3", "<", "0", "||", "(", "c4", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "source", "[", "this", ".", "endStatementPosition", "]", ")", ")", ">", "15", "||", "c4", "<", "0", ")", "&&", "(", "(", "char", ")", "(", "(", "(", "c1", "*", "16", "+", "c2", ")", "*", "16", "+", "c3", ")", "*", "16", "+", "c4", ")", ")", "==", "';'", ")", "{", "pushOnAstStack", "(", "new", "EmptyStatement", "(", "pos", ",", "this", ".", "endStatementPosition", ")", ")", ";", "return", ";", "}", "}", "pushOnAstStack", "(", "new", "EmptyStatement", "(", "this", ".", "endPosition", "+", "1", ",", "this", ".", "endStatementPosition", ")", ")", ";", "}", "}", "protected", "void", "consumeEmptySwitchBlock", "(", ")", "{", "pushOnAstLengthStack", "(", "0", ")", ";", "}", "protected", "void", "consumeEmptyTypeDeclaration", "(", ")", "{", "pushOnAstLengthStack", "(", "0", ")", ";", "if", "(", "!", "this", ".", "statementRecoveryActivated", ")", "problemReporter", "(", ")", ".", "superfluousSemicolon", "(", "this", ".", "endPosition", "+", "1", ",", "this", ".", "endStatementPosition", ")", ";", "flushCommentsDefinedPriorTo", "(", "this", ".", "endStatementPosition", ")", ";", "}", "protected", "void", "consumeEnhancedForStatement", "(", ")", "{", "this", ".", "astLengthPtr", "--", ";", "Statement", "statement", "=", "(", "Statement", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "--", "]", ";", "ForeachStatement", "foreachStatement", "=", "(", "ForeachStatement", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "foreachStatement", ".", "action", "=", "statement", ";", "if", "(", "statement", "instanceof", "EmptyStatement", ")", "statement", ".", "bits", "|=", "ASTNode", ".", "IsUsefulEmptyStatement", ";", "foreachStatement", ".", "sourceEnd", "=", "this", ".", "endStatementPosition", ";", "}", "protected", "void", "consumeEnhancedForStatementHeader", "(", ")", "{", "final", "ForeachStatement", "statement", "=", "(", "ForeachStatement", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "this", ".", "expressionLengthPtr", "--", ";", "final", "Expression", "collection", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ";", "statement", ".", "collection", "=", "collection", ";", "statement", ".", "sourceEnd", "=", "this", ".", "rParenPos", ";", "if", "(", "!", "this", ".", "statementRecoveryActivated", "&&", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", "&&", "this", ".", "lastErrorEndPositionBeforeRecovery", "<", "this", ".", "scanner", ".", "currentPosition", ")", "{", "problemReporter", "(", ")", ".", "invalidUsageOfForeachStatements", "(", "statement", ".", "elementVariable", ",", "collection", ")", ";", "}", "}", "protected", "void", "consumeEnhancedForStatementHeaderInit", "(", "boolean", "hasModifiers", ")", "{", "TypeReference", "type", ";", "char", "[", "]", "identifierName", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", ";", "long", "namePosition", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ";", "LocalDeclaration", "localDeclaration", "=", "createLocalDeclaration", "(", "identifierName", ",", "(", "int", ")", "(", "namePosition", ">>>", "32", ")", ",", "(", "int", ")", "namePosition", ")", ";", "localDeclaration", ".", "declarationSourceEnd", "=", "localDeclaration", ".", "declarationEnd", ";", "int", "extraDims", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "this", ".", "identifierPtr", "--", ";", "this", ".", "identifierLengthPtr", "--", ";", "int", "declarationSourceStart", "=", "0", ";", "int", "modifiersValue", "=", "0", ";", "if", "(", "hasModifiers", ")", "{", "declarationSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "modifiersValue", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "}", "else", "{", "this", ".", "intPtr", "-=", "2", ";", "}", "type", "=", "getTypeReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", "+", "extraDims", ")", ";", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "(", "this", ".", "expressionPtr", "-=", "length", ")", "+", "1", ",", "localDeclaration", ".", "annotations", "=", "new", "Annotation", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "if", "(", "hasModifiers", ")", "{", "localDeclaration", ".", "declarationSourceStart", "=", "declarationSourceStart", ";", "localDeclaration", ".", "modifiers", "=", "modifiersValue", ";", "}", "else", "{", "localDeclaration", ".", "declarationSourceStart", "=", "type", ".", "sourceStart", ";", "}", "localDeclaration", ".", "type", "=", "type", ";", "ForeachStatement", "iteratorForStatement", "=", "new", "ForeachStatement", "(", "localDeclaration", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ";", "pushOnAstStack", "(", "iteratorForStatement", ")", ";", "iteratorForStatement", ".", "sourceEnd", "=", "localDeclaration", ".", "declarationSourceEnd", ";", "}", "protected", "void", "consumeEnterAnonymousClassBody", "(", "boolean", "qualified", ")", "{", "this", ".", "shouldDeferRecovery", "=", "false", ";", "TypeReference", "typeReference", "=", "getTypeReference", "(", "0", ")", ";", "TypeDeclaration", "anonymousType", "=", "new", "TypeDeclaration", "(", "this", ".", "compilationUnit", ".", "compilationResult", ")", ";", "anonymousType", ".", "name", "=", "CharOperation", ".", "NO_CHAR", ";", "anonymousType", ".", "bits", "|=", "(", "ASTNode", ".", "IsAnonymousType", "|", "ASTNode", ".", "IsLocalType", ")", ";", "QualifiedAllocationExpression", "alloc", "=", "new", "QualifiedAllocationExpression", "(", "anonymousType", ")", ";", "markEnclosingMemberWithLocalType", "(", ")", ";", "pushOnAstStack", "(", "anonymousType", ")", ";", "alloc", ".", "sourceEnd", "=", "this", ".", "rParenPos", ";", "int", "argumentLength", ";", "if", "(", "(", "argumentLength", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "this", ".", "expressionPtr", "-=", "argumentLength", ";", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "this", ".", "expressionPtr", "+", "1", ",", "alloc", ".", "arguments", "=", "new", "Expression", "[", "argumentLength", "]", ",", "0", ",", "argumentLength", ")", ";", "}", "if", "(", "qualified", ")", "{", "this", ".", "expressionLengthPtr", "--", ";", "alloc", ".", "enclosingInstance", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ";", "}", "alloc", ".", "type", "=", "typeReference", ";", "anonymousType", ".", "sourceEnd", "=", "alloc", ".", "sourceEnd", ";", "anonymousType", ".", "sourceStart", "=", "anonymousType", ".", "declarationSourceStart", "=", "alloc", ".", "type", ".", "sourceStart", ";", "alloc", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "pushOnExpressionStack", "(", "alloc", ")", ";", "anonymousType", ".", "bodyStart", "=", "this", ".", "scanner", ".", "currentPosition", ";", "this", ".", "listLength", "=", "0", ";", "this", ".", "scanner", ".", "commentPtr", "=", "-", "1", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "anonymousType", ".", "bodyStart", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "anonymousType", ",", "0", ")", ";", "if", "(", "!", "(", "this", ".", "currentElement", "instanceof", "RecoveredAnnotation", ")", ")", "{", "this", ".", "currentToken", "=", "0", ";", "}", "else", "{", "this", ".", "ignoreNextOpeningBrace", "=", "true", ";", "this", ".", "currentElement", ".", "bracketBalance", "++", ";", "}", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "}", "}", "protected", "void", "consumeEnterCompilationUnit", "(", ")", "{", "}", "protected", "void", "consumeEnterMemberValue", "(", ")", "{", "if", "(", "this", ".", "currentElement", "!=", "null", "&&", "this", ".", "currentElement", "instanceof", "RecoveredAnnotation", ")", "{", "RecoveredAnnotation", "recoveredAnnotation", "=", "(", "RecoveredAnnotation", ")", "this", ".", "currentElement", ";", "recoveredAnnotation", ".", "hasPendingMemberValueName", "=", "true", ";", "}", "}", "protected", "void", "consumeEnterMemberValueArrayInitializer", "(", ")", "{", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "ignoreNextOpeningBrace", "=", "true", ";", "this", ".", "currentElement", ".", "bracketBalance", "++", ";", "}", "}", "protected", "void", "consumeEnterVariable", "(", ")", "{", "char", "[", "]", "identifierName", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", ";", "long", "namePosition", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ";", "int", "extendedDimension", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "AbstractVariableDeclaration", "declaration", ";", "boolean", "isLocalDeclaration", "=", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "!=", "0", ";", "if", "(", "isLocalDeclaration", ")", "{", "declaration", "=", "createLocalDeclaration", "(", "identifierName", ",", "(", "int", ")", "(", "namePosition", ">>>", "32", ")", ",", "(", "int", ")", "namePosition", ")", ";", "}", "else", "{", "declaration", "=", "createFieldDeclaration", "(", "identifierName", ",", "(", "int", ")", "(", "namePosition", ">>>", "32", ")", ",", "(", "int", ")", "namePosition", ")", ";", "}", "this", ".", "identifierPtr", "--", ";", "this", ".", "identifierLengthPtr", "--", ";", "TypeReference", "type", ";", "int", "variableIndex", "=", "this", ".", "variablesCounter", "[", "this", ".", "nestedType", "]", ";", "int", "typeDim", "=", "0", ";", "if", "(", "variableIndex", "==", "0", ")", "{", "if", "(", "isLocalDeclaration", ")", "{", "declaration", ".", "declarationSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "declaration", ".", "modifiers", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "(", "this", ".", "expressionPtr", "-=", "length", ")", "+", "1", ",", "declaration", ".", "annotations", "=", "new", "Annotation", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "type", "=", "getTypeReference", "(", "typeDim", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ";", "if", "(", "declaration", ".", "declarationSourceStart", "==", "-", "1", ")", "{", "declaration", ".", "declarationSourceStart", "=", "type", ".", "sourceStart", ";", "}", "pushOnAstStack", "(", "type", ")", ";", "}", "else", "{", "type", "=", "getTypeReference", "(", "typeDim", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ";", "pushOnAstStack", "(", "type", ")", ";", "declaration", ".", "declarationSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "declaration", ".", "modifiers", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "(", "this", ".", "expressionPtr", "-=", "length", ")", "+", "1", ",", "declaration", ".", "annotations", "=", "new", "Annotation", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "FieldDeclaration", "fieldDeclaration", "=", "(", "FieldDeclaration", ")", "declaration", ";", "fieldDeclaration", ".", "javadoc", "=", "this", ".", "javadoc", ";", "}", "this", ".", "javadoc", "=", "null", ";", "}", "else", "{", "type", "=", "(", "TypeReference", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "-", "variableIndex", "]", ";", "typeDim", "=", "type", ".", "dimensions", "(", ")", ";", "AbstractVariableDeclaration", "previousVariable", "=", "(", "AbstractVariableDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "declaration", ".", "declarationSourceStart", "=", "previousVariable", ".", "declarationSourceStart", ";", "declaration", ".", "modifiers", "=", "previousVariable", ".", "modifiers", ";", "final", "Annotation", "[", "]", "annotations", "=", "previousVariable", ".", "annotations", ";", "if", "(", "annotations", "!=", "null", ")", "{", "final", "int", "annotationsLength", "=", "annotations", ".", "length", ";", "System", ".", "arraycopy", "(", "annotations", ",", "0", ",", "declaration", ".", "annotations", "=", "new", "Annotation", "[", "annotationsLength", "]", ",", "0", ",", "annotationsLength", ")", ";", "}", "}", "if", "(", "extendedDimension", "==", "0", ")", "{", "declaration", ".", "type", "=", "type", ";", "}", "else", "{", "int", "dimension", "=", "typeDim", "+", "extendedDimension", ";", "declaration", ".", "type", "=", "copyDims", "(", "type", ",", "dimension", ")", ";", "}", "this", ".", "variablesCounter", "[", "this", ".", "nestedType", "]", "++", ";", "pushOnAstStack", "(", "declaration", ")", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "if", "(", "!", "(", "this", ".", "currentElement", "instanceof", "RecoveredType", ")", "&&", "(", "this", ".", "currentToken", "==", "TokenNameDOT", "||", "(", "Util", ".", "getLineNumber", "(", "declaration", ".", "type", ".", "sourceStart", ",", "this", ".", "scanner", ".", "lineEnds", ",", "0", ",", "this", ".", "scanner", ".", "linePtr", ")", "!=", "Util", ".", "getLineNumber", "(", "(", "int", ")", "(", "namePosition", ">>>", "32", ")", ",", "this", ".", "scanner", ".", "lineEnds", ",", "0", ",", "this", ".", "scanner", ".", "linePtr", ")", ")", ")", ")", "{", "this", ".", "lastCheckPoint", "=", "(", "int", ")", "(", "namePosition", ">>>", "32", ")", ";", "this", ".", "restartRecovery", "=", "true", ";", "return", ";", "}", "if", "(", "isLocalDeclaration", ")", "{", "LocalDeclaration", "localDecl", "=", "(", "LocalDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "this", ".", "lastCheckPoint", "=", "localDecl", ".", "sourceEnd", "+", "1", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "localDecl", ",", "0", ")", ";", "}", "else", "{", "FieldDeclaration", "fieldDecl", "=", "(", "FieldDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "this", ".", "lastCheckPoint", "=", "fieldDecl", ".", "sourceEnd", "+", "1", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "fieldDecl", ",", "0", ")", ";", "}", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "}", "}", "protected", "void", "consumeEnumBodyNoConstants", "(", ")", "{", "}", "protected", "void", "consumeEnumBodyWithConstants", "(", ")", "{", "concatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeEnumConstantHeader", "(", ")", "{", "FieldDeclaration", "enumConstant", "=", "(", "FieldDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "boolean", "foundOpeningBrace", "=", "this", ".", "currentToken", "==", "TokenNameLBRACE", ";", "if", "(", "foundOpeningBrace", ")", "{", "TypeDeclaration", "anonymousType", "=", "new", "TypeDeclaration", "(", "this", ".", "compilationUnit", ".", "compilationResult", ")", ";", "anonymousType", ".", "name", "=", "CharOperation", ".", "NO_CHAR", ";", "anonymousType", ".", "bits", "|=", "(", "ASTNode", ".", "IsAnonymousType", "|", "ASTNode", ".", "IsLocalType", ")", ";", "final", "int", "start", "=", "this", ".", "scanner", ".", "startPosition", ";", "anonymousType", ".", "declarationSourceStart", "=", "start", ";", "anonymousType", ".", "sourceStart", "=", "start", ";", "anonymousType", ".", "sourceEnd", "=", "start", ";", "anonymousType", ".", "modifiers", "=", "0", ";", "anonymousType", ".", "bodyStart", "=", "this", ".", "scanner", ".", "currentPosition", ";", "markEnclosingMemberWithLocalType", "(", ")", ";", "consumeNestedType", "(", ")", ";", "this", ".", "variablesCounter", "[", "this", ".", "nestedType", "]", "++", ";", "pushOnAstStack", "(", "anonymousType", ")", ";", "QualifiedAllocationExpression", "allocationExpression", "=", "new", "QualifiedAllocationExpression", "(", "anonymousType", ")", ";", "allocationExpression", ".", "enumConstant", "=", "enumConstant", ";", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "this", ".", "expressionPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "this", ".", "expressionPtr", "+", "1", ",", "allocationExpression", ".", "arguments", "=", "new", "Expression", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "enumConstant", ".", "initialization", "=", "allocationExpression", ";", "}", "else", "{", "AllocationExpression", "allocationExpression", "=", "new", "AllocationExpression", "(", ")", ";", "allocationExpression", ".", "enumConstant", "=", "enumConstant", ";", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "this", ".", "expressionPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "this", ".", "expressionPtr", "+", "1", ",", "allocationExpression", ".", "arguments", "=", "new", "Expression", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "enumConstant", ".", "initialization", "=", "allocationExpression", ";", "}", "enumConstant", ".", "initialization", ".", "sourceStart", "=", "enumConstant", ".", "declarationSourceStart", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "if", "(", "foundOpeningBrace", ")", "{", "TypeDeclaration", "anonymousType", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "anonymousType", ",", "0", ")", ";", "this", ".", "lastCheckPoint", "=", "anonymousType", ".", "bodyStart", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "this", ".", "currentToken", "=", "0", ";", "}", "else", "{", "if", "(", "this", ".", "currentToken", "==", "TokenNameSEMICOLON", ")", "{", "RecoveredType", "currentType", "=", "currentRecoveryType", "(", ")", ";", "if", "(", "currentType", "!=", "null", ")", "{", "currentType", ".", "insideEnumConstantPart", "=", "false", ";", "}", "}", "this", ".", "lastCheckPoint", "=", "this", ".", "scanner", ".", "startPosition", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "this", ".", "restartRecovery", "=", "true", ";", "}", "}", "}", "protected", "void", "consumeEnumConstantHeaderName", "(", ")", "{", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "if", "(", "!", "(", "this", ".", "currentElement", "instanceof", "RecoveredType", "||", "(", "this", ".", "currentElement", "instanceof", "RecoveredField", "&&", "(", "(", "RecoveredField", ")", "this", ".", "currentElement", ")", ".", "fieldDeclaration", ".", "type", "==", "null", ")", ")", "||", "(", "this", ".", "lastIgnoredToken", "==", "TokenNameDOT", ")", ")", "{", "this", ".", "lastCheckPoint", "=", "this", ".", "scanner", ".", "startPosition", ";", "this", ".", "restartRecovery", "=", "true", ";", "return", ";", "}", "}", "long", "namePosition", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ";", "char", "[", "]", "constantName", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", ";", "final", "int", "sourceEnd", "=", "(", "int", ")", "namePosition", ";", "FieldDeclaration", "enumConstant", "=", "createFieldDeclaration", "(", "constantName", ",", "(", "int", ")", "(", "namePosition", ">>>", "32", ")", ",", "sourceEnd", ")", ";", "this", ".", "identifierPtr", "--", ";", "this", ".", "identifierLengthPtr", "--", ";", "enumConstant", ".", "modifiersSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "enumConstant", ".", "modifiers", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "enumConstant", ".", "declarationSourceStart", "=", "enumConstant", ".", "modifiersSourceStart", ";", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "(", "this", ".", "expressionPtr", "-=", "length", ")", "+", "1", ",", "enumConstant", ".", "annotations", "=", "new", "Annotation", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "pushOnAstStack", "(", "enumConstant", ")", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "enumConstant", ".", "sourceEnd", "+", "1", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "enumConstant", ",", "0", ")", ";", "}", "enumConstant", ".", "javadoc", "=", "this", ".", "javadoc", ";", "this", ".", "javadoc", "=", "null", ";", "}", "protected", "void", "consumeEnumConstantNoClassBody", "(", ")", "{", "int", "endOfEnumConstant", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "final", "FieldDeclaration", "fieldDeclaration", "=", "(", "FieldDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "fieldDeclaration", ".", "declarationEnd", "=", "endOfEnumConstant", ";", "fieldDeclaration", ".", "declarationSourceEnd", "=", "endOfEnumConstant", ";", "ASTNode", "initialization", "=", "fieldDeclaration", ".", "initialization", ";", "if", "(", "initialization", "!=", "null", ")", "{", "initialization", ".", "sourceEnd", "=", "endOfEnumConstant", ";", "}", "}", "protected", "void", "consumeEnumConstants", "(", ")", "{", "concatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeEnumConstantWithClassBody", "(", ")", "{", "dispatchDeclarationInto", "(", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", ";", "TypeDeclaration", "anonymousType", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "--", "]", ";", "this", ".", "astLengthPtr", "--", ";", "anonymousType", ".", "bodyEnd", "=", "this", ".", "endPosition", ";", "anonymousType", ".", "declarationSourceEnd", "=", "flushCommentsDefinedPriorTo", "(", "this", ".", "endStatementPosition", ")", ";", "final", "FieldDeclaration", "fieldDeclaration", "=", "(", "(", "FieldDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ")", ";", "fieldDeclaration", ".", "declarationEnd", "=", "this", ".", "endStatementPosition", ";", "int", "declarationSourceEnd", "=", "anonymousType", ".", "declarationSourceEnd", ";", "fieldDeclaration", ".", "declarationSourceEnd", "=", "declarationSourceEnd", ";", "this", ".", "intPtr", "--", ";", "this", ".", "variablesCounter", "[", "this", ".", "nestedType", "]", "=", "0", ";", "this", ".", "nestedType", "--", ";", "ASTNode", "initialization", "=", "fieldDeclaration", ".", "initialization", ";", "if", "(", "initialization", "!=", "null", ")", "{", "initialization", ".", "sourceEnd", "=", "declarationSourceEnd", ";", "}", "}", "protected", "void", "consumeEnumDeclaration", "(", ")", "{", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "dispatchDeclarationIntoEnumDeclaration", "(", "length", ")", ";", "}", "TypeDeclaration", "enumDeclaration", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "boolean", "hasConstructor", "=", "enumDeclaration", ".", "checkConstructors", "(", "this", ")", ";", "if", "(", "!", "hasConstructor", ")", "{", "boolean", "insideFieldInitializer", "=", "false", ";", "if", "(", "this", ".", "diet", ")", "{", "for", "(", "int", "i", "=", "this", ".", "nestedType", ";", "i", ">", "0", ";", "i", "--", ")", "{", "if", "(", "this", ".", "variablesCounter", "[", "i", "]", ">", "0", ")", "{", "insideFieldInitializer", "=", "true", ";", "break", ";", "}", "}", "}", "enumDeclaration", ".", "createDefaultConstructor", "(", "!", "this", ".", "diet", "||", "insideFieldInitializer", ",", "true", ")", ";", "}", "if", "(", "this", ".", "scanner", ".", "containsAssertKeyword", ")", "{", "enumDeclaration", ".", "bits", "|=", "ASTNode", ".", "ContainsAssertion", ";", "}", "enumDeclaration", ".", "addClinit", "(", ")", ";", "enumDeclaration", ".", "bodyEnd", "=", "this", ".", "endStatementPosition", ";", "if", "(", "length", "==", "0", "&&", "!", "containsComment", "(", "enumDeclaration", ".", "bodyStart", ",", "enumDeclaration", ".", "bodyEnd", ")", ")", "{", "enumDeclaration", ".", "bits", "|=", "ASTNode", ".", "UndocumentedEmptyBlock", ";", "}", "enumDeclaration", ".", "declarationSourceEnd", "=", "flushCommentsDefinedPriorTo", "(", "this", ".", "endStatementPosition", ")", ";", "}", "protected", "void", "consumeEnumDeclarations", "(", ")", "{", "}", "protected", "void", "consumeEnumHeader", "(", ")", "{", "TypeDeclaration", "typeDecl", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "if", "(", "this", ".", "currentToken", "==", "TokenNameLBRACE", ")", "{", "typeDecl", ".", "bodyStart", "=", "this", ".", "scanner", ".", "currentPosition", ";", "}", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "restartRecovery", "=", "true", ";", "}", "this", ".", "scanner", ".", "commentPtr", "=", "-", "1", ";", "}", "protected", "void", "consumeEnumHeaderName", "(", ")", "{", "TypeDeclaration", "enumDeclaration", "=", "new", "TypeDeclaration", "(", "this", ".", "compilationUnit", ".", "compilationResult", ")", ";", "if", "(", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "==", "0", ")", "{", "if", "(", "this", ".", "nestedType", "!=", "0", ")", "{", "enumDeclaration", ".", "bits", "|=", "ASTNode", ".", "IsMemberType", ";", "}", "}", "else", "{", "blockReal", "(", ")", ";", "}", "long", "pos", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ";", "enumDeclaration", ".", "sourceEnd", "=", "(", "int", ")", "pos", ";", "enumDeclaration", ".", "sourceStart", "=", "(", "int", ")", "(", "pos", ">>>", "32", ")", ";", "enumDeclaration", ".", "name", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "this", ".", "identifierLengthPtr", "--", ";", "enumDeclaration", ".", "declarationSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "this", ".", "intPtr", "--", ";", "enumDeclaration", ".", "modifiersSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "enumDeclaration", ".", "modifiers", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", "|", "ClassFileConstants", ".", "AccEnum", ";", "if", "(", "enumDeclaration", ".", "modifiersSourceStart", ">=", "0", ")", "{", "enumDeclaration", ".", "declarationSourceStart", "=", "enumDeclaration", ".", "modifiersSourceStart", ";", "}", "if", "(", "(", "enumDeclaration", ".", "bits", "&", "ASTNode", ".", "IsMemberType", ")", "==", "0", "&&", "(", "enumDeclaration", ".", "bits", "&", "ASTNode", ".", "IsLocalType", ")", "==", "0", ")", "{", "if", "(", "this", ".", "compilationUnit", "!=", "null", "&&", "!", "CharOperation", ".", "equals", "(", "enumDeclaration", ".", "name", ",", "this", ".", "compilationUnit", ".", "getMainTypeName", "(", ")", ")", ")", "{", "enumDeclaration", ".", "bits", "|=", "ASTNode", ".", "IsSecondaryType", ";", "}", "}", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "(", "this", ".", "expressionPtr", "-=", "length", ")", "+", "1", ",", "enumDeclaration", ".", "annotations", "=", "new", "Annotation", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "enumDeclaration", ".", "bodyStart", "=", "enumDeclaration", ".", "sourceEnd", "+", "1", ";", "pushOnAstStack", "(", "enumDeclaration", ")", ";", "this", ".", "listLength", "=", "0", ";", "if", "(", "!", "this", ".", "statementRecoveryActivated", "&&", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", "&&", "this", ".", "lastErrorEndPositionBeforeRecovery", "<", "this", ".", "scanner", ".", "currentPosition", ")", "{", "problemReporter", "(", ")", ".", "invalidUsageOfEnumDeclarations", "(", "enumDeclaration", ")", ";", "}", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "enumDeclaration", ".", "bodyStart", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "enumDeclaration", ",", "0", ")", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "}", "enumDeclaration", ".", "javadoc", "=", "this", ".", "javadoc", ";", "this", ".", "javadoc", "=", "null", ";", "}", "protected", "void", "consumeEnumHeaderNameWithTypeParameters", "(", ")", "{", "TypeDeclaration", "enumDeclaration", "=", "new", "TypeDeclaration", "(", "this", ".", "compilationUnit", ".", "compilationResult", ")", ";", "int", "length", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "--", "]", ";", "this", ".", "genericsPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "genericsStack", ",", "this", ".", "genericsPtr", "+", "1", ",", "enumDeclaration", ".", "typeParameters", "=", "new", "TypeParameter", "[", "length", "]", ",", "0", ",", "length", ")", ";", "problemReporter", "(", ")", ".", "invalidUsageOfTypeParametersForEnumDeclaration", "(", "enumDeclaration", ")", ";", "enumDeclaration", ".", "bodyStart", "=", "enumDeclaration", ".", "typeParameters", "[", "length", "-", "1", "]", ".", "declarationSourceEnd", "+", "1", ";", "this", ".", "listTypeParameterLength", "=", "0", ";", "if", "(", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "==", "0", ")", "{", "if", "(", "this", ".", "nestedType", "!=", "0", ")", "{", "enumDeclaration", ".", "bits", "|=", "ASTNode", ".", "IsMemberType", ";", "}", "}", "else", "{", "blockReal", "(", ")", ";", "}", "long", "pos", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ";", "enumDeclaration", ".", "sourceEnd", "=", "(", "int", ")", "pos", ";", "enumDeclaration", ".", "sourceStart", "=", "(", "int", ")", "(", "pos", ">>>", "32", ")", ";", "enumDeclaration", ".", "name", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "this", ".", "identifierLengthPtr", "--", ";", "enumDeclaration", ".", "declarationSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "this", ".", "intPtr", "--", ";", "enumDeclaration", ".", "modifiersSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "enumDeclaration", ".", "modifiers", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", "|", "ClassFileConstants", ".", "AccEnum", ";", "if", "(", "enumDeclaration", ".", "modifiersSourceStart", ">=", "0", ")", "{", "enumDeclaration", ".", "declarationSourceStart", "=", "enumDeclaration", ".", "modifiersSourceStart", ";", "}", "if", "(", "(", "enumDeclaration", ".", "bits", "&", "ASTNode", ".", "IsMemberType", ")", "==", "0", "&&", "(", "enumDeclaration", ".", "bits", "&", "ASTNode", ".", "IsLocalType", ")", "==", "0", ")", "{", "if", "(", "this", ".", "compilationUnit", "!=", "null", "&&", "!", "CharOperation", ".", "equals", "(", "enumDeclaration", ".", "name", ",", "this", ".", "compilationUnit", ".", "getMainTypeName", "(", ")", ")", ")", "{", "enumDeclaration", ".", "bits", "|=", "ASTNode", ".", "IsSecondaryType", ";", "}", "}", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "(", "this", ".", "expressionPtr", "-=", "length", ")", "+", "1", ",", "enumDeclaration", ".", "annotations", "=", "new", "Annotation", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "enumDeclaration", ".", "bodyStart", "=", "enumDeclaration", ".", "sourceEnd", "+", "1", ";", "pushOnAstStack", "(", "enumDeclaration", ")", ";", "this", ".", "listLength", "=", "0", ";", "if", "(", "!", "this", ".", "statementRecoveryActivated", "&&", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", "&&", "this", ".", "lastErrorEndPositionBeforeRecovery", "<", "this", ".", "scanner", ".", "currentPosition", ")", "{", "problemReporter", "(", ")", ".", "invalidUsageOfEnumDeclarations", "(", "enumDeclaration", ")", ";", "}", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "enumDeclaration", ".", "bodyStart", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "enumDeclaration", ",", "0", ")", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "}", "enumDeclaration", ".", "javadoc", "=", "this", ".", "javadoc", ";", "this", ".", "javadoc", "=", "null", ";", "}", "protected", "void", "consumeEqualityExpression", "(", "int", "op", ")", "{", "this", ".", "expressionPtr", "--", ";", "this", ".", "expressionLengthPtr", "--", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "EqualExpression", "(", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ",", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "+", "1", "]", ",", "op", ")", ";", "}", "protected", "void", "consumeEqualityExpressionWithName", "(", "int", "op", ")", "{", "pushOnExpressionStack", "(", "getUnspecifiedReferenceOptimized", "(", ")", ")", ";", "this", ".", "expressionPtr", "--", ";", "this", ".", "expressionLengthPtr", "--", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "EqualExpression", "(", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "+", "1", "]", ",", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ",", "op", ")", ";", "}", "protected", "void", "consumeExitMemberValue", "(", ")", "{", "if", "(", "this", ".", "currentElement", "!=", "null", "&&", "this", ".", "currentElement", "instanceof", "RecoveredAnnotation", ")", "{", "RecoveredAnnotation", "recoveredAnnotation", "=", "(", "RecoveredAnnotation", ")", "this", ".", "currentElement", ";", "recoveredAnnotation", ".", "hasPendingMemberValueName", "=", "false", ";", "recoveredAnnotation", ".", "memberValuPairEqualEnd", "=", "-", "1", ";", "}", "}", "protected", "void", "consumeExitTryBlock", "(", ")", "{", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "restartRecovery", "=", "true", ";", "}", "}", "protected", "void", "consumeExitVariableWithInitialization", "(", ")", "{", "this", ".", "expressionLengthPtr", "--", ";", "AbstractVariableDeclaration", "variableDecl", "=", "(", "AbstractVariableDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "variableDecl", ".", "initialization", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ";", "variableDecl", ".", "declarationSourceEnd", "=", "variableDecl", ".", "initialization", ".", "sourceEnd", ";", "variableDecl", ".", "declarationEnd", "=", "variableDecl", ".", "initialization", ".", "sourceEnd", ";", "recoveryExitFromVariable", "(", ")", ";", "}", "protected", "void", "consumeExitVariableWithoutInitialization", "(", ")", "{", "AbstractVariableDeclaration", "variableDecl", "=", "(", "AbstractVariableDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "variableDecl", ".", "declarationSourceEnd", "=", "variableDecl", ".", "declarationEnd", ";", "if", "(", "this", ".", "currentElement", "!=", "null", "&&", "this", ".", "currentElement", "instanceof", "RecoveredField", ")", "{", "if", "(", "this", ".", "endStatementPosition", ">", "variableDecl", ".", "sourceEnd", ")", "{", "this", ".", "currentElement", ".", "updateSourceEndIfNecessary", "(", "this", ".", "endStatementPosition", ")", ";", "}", "}", "recoveryExitFromVariable", "(", ")", ";", "}", "protected", "void", "consumeExplicitConstructorInvocation", "(", "int", "flag", ",", "int", "recFlag", ")", "{", "int", "startPosition", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "ExplicitConstructorCall", "ecc", "=", "new", "ExplicitConstructorCall", "(", "recFlag", ")", ";", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "this", ".", "expressionPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "this", ".", "expressionPtr", "+", "1", ",", "ecc", ".", "arguments", "=", "new", "Expression", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "switch", "(", "flag", ")", "{", "case", "0", ":", "ecc", ".", "sourceStart", "=", "startPosition", ";", "break", ";", "case", "1", ":", "this", ".", "expressionLengthPtr", "--", ";", "ecc", ".", "sourceStart", "=", "(", "ecc", ".", "qualification", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ")", ".", "sourceStart", ";", "break", ";", "case", "2", ":", "ecc", ".", "sourceStart", "=", "(", "ecc", ".", "qualification", "=", "getUnspecifiedReferenceOptimized", "(", ")", ")", ".", "sourceStart", ";", "break", ";", "}", "pushOnAstStack", "(", "ecc", ")", ";", "ecc", ".", "sourceEnd", "=", "this", ".", "endStatementPosition", ";", "}", "protected", "void", "consumeExplicitConstructorInvocationWithTypeArguments", "(", "int", "flag", ",", "int", "recFlag", ")", "{", "int", "startPosition", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "ExplicitConstructorCall", "ecc", "=", "new", "ExplicitConstructorCall", "(", "recFlag", ")", ";", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "this", ".", "expressionPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "this", ".", "expressionPtr", "+", "1", ",", "ecc", ".", "arguments", "=", "new", "Expression", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "length", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "--", "]", ";", "this", ".", "genericsPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "genericsStack", ",", "this", ".", "genericsPtr", "+", "1", ",", "ecc", ".", "typeArguments", "=", "new", "TypeReference", "[", "length", "]", ",", "0", ",", "length", ")", ";", "ecc", ".", "typeArgumentsSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "switch", "(", "flag", ")", "{", "case", "0", ":", "ecc", ".", "sourceStart", "=", "startPosition", ";", "break", ";", "case", "1", ":", "this", ".", "expressionLengthPtr", "--", ";", "ecc", ".", "sourceStart", "=", "(", "ecc", ".", "qualification", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ")", ".", "sourceStart", ";", "break", ";", "case", "2", ":", "ecc", ".", "sourceStart", "=", "(", "ecc", ".", "qualification", "=", "getUnspecifiedReferenceOptimized", "(", ")", ")", ".", "sourceStart", ";", "break", ";", "}", "pushOnAstStack", "(", "ecc", ")", ";", "ecc", ".", "sourceEnd", "=", "this", ".", "endStatementPosition", ";", "}", "protected", "void", "consumeExpressionStatement", "(", ")", "{", "this", ".", "expressionLengthPtr", "--", ";", "Expression", "expression", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ";", "expression", ".", "statementEnd", "=", "this", ".", "endStatementPosition", ";", "expression", ".", "bits", "|=", "ASTNode", ".", "InsideExpressionStatement", ";", "pushOnAstStack", "(", "expression", ")", ";", "}", "protected", "void", "consumeFieldAccess", "(", "boolean", "isSuperAccess", ")", "{", "FieldReference", "fr", "=", "new", "FieldReference", "(", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", ",", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "--", "]", ")", ";", "this", ".", "identifierLengthPtr", "--", ";", "if", "(", "isSuperAccess", ")", "{", "fr", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "fr", ".", "receiver", "=", "new", "SuperReference", "(", "fr", ".", "sourceStart", ",", "this", ".", "endPosition", ")", ";", "pushOnExpressionStack", "(", "fr", ")", ";", "}", "else", "{", "fr", ".", "receiver", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ";", "fr", ".", "sourceStart", "=", "fr", ".", "receiver", ".", "sourceStart", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "fr", ";", "}", "}", "protected", "void", "consumeFieldDeclaration", "(", ")", "{", "int", "variableDeclaratorsCounter", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "]", ";", "for", "(", "int", "i", "=", "variableDeclaratorsCounter", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "FieldDeclaration", "fieldDeclaration", "=", "(", "FieldDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "-", "i", "]", ";", "fieldDeclaration", ".", "declarationSourceEnd", "=", "this", ".", "endStatementPosition", ";", "fieldDeclaration", ".", "declarationEnd", "=", "this", ".", "endStatementPosition", ";", "}", "updateSourceDeclarationParts", "(", "variableDeclaratorsCounter", ")", ";", "int", "endPos", "=", "flushCommentsDefinedPriorTo", "(", "this", ".", "endStatementPosition", ")", ";", "if", "(", "endPos", "!=", "this", ".", "endStatementPosition", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "variableDeclaratorsCounter", ";", "i", "++", ")", "{", "FieldDeclaration", "fieldDeclaration", "=", "(", "FieldDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "-", "i", "]", ";", "fieldDeclaration", ".", "declarationSourceEnd", "=", "endPos", ";", "}", "}", "int", "startIndex", "=", "this", ".", "astPtr", "-", "this", ".", "variablesCounter", "[", "this", ".", "nestedType", "]", "+", "1", ";", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "startIndex", ",", "this", ".", "astStack", ",", "startIndex", "-", "1", ",", "variableDeclaratorsCounter", ")", ";", "this", ".", "astPtr", "--", ";", "this", ".", "astLengthStack", "[", "--", "this", ".", "astLengthPtr", "]", "=", "variableDeclaratorsCounter", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "endPos", "+", "1", ";", "if", "(", "this", ".", "currentElement", ".", "parent", "!=", "null", "&&", "this", ".", "currentElement", "instanceof", "RecoveredField", ")", "{", "if", "(", "!", "(", "this", ".", "currentElement", "instanceof", "RecoveredInitializer", ")", ")", "{", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "parent", ";", "}", "}", "this", ".", "restartRecovery", "=", "true", ";", "}", "this", ".", "variablesCounter", "[", "this", ".", "nestedType", "]", "=", "0", ";", "}", "protected", "void", "consumeForceNoDiet", "(", ")", "{", "this", ".", "dietInt", "++", ";", "}", "protected", "void", "consumeForInit", "(", ")", "{", "pushOnAstLengthStack", "(", "-", "1", ")", ";", "}", "protected", "void", "consumeFormalParameter", "(", "boolean", "isVarArgs", ")", "{", "this", ".", "identifierLengthPtr", "--", ";", "char", "[", "]", "identifierName", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", ";", "long", "namePositions", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "int", "extendedDimensions", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "int", "endOfEllipsis", "=", "0", ";", "if", "(", "isVarArgs", ")", "{", "endOfEllipsis", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "}", "int", "firstDimensions", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "final", "int", "typeDimensions", "=", "firstDimensions", "+", "extendedDimensions", ";", "TypeReference", "type", "=", "getTypeReference", "(", "typeDimensions", ")", ";", "if", "(", "isVarArgs", ")", "{", "type", "=", "copyDims", "(", "type", ",", "typeDimensions", "+", "1", ")", ";", "if", "(", "extendedDimensions", "==", "0", ")", "{", "type", ".", "sourceEnd", "=", "endOfEllipsis", ";", "}", "type", ".", "bits", "|=", "ASTNode", ".", "IsVarArgs", ";", "}", "int", "modifierPositions", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "this", ".", "intPtr", "--", ";", "Argument", "arg", "=", "new", "Argument", "(", "identifierName", ",", "namePositions", ",", "type", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "+", "1", "]", "&", "~", "ClassFileConstants", ".", "AccDeprecated", ")", ";", "arg", ".", "declarationSourceStart", "=", "modifierPositions", ";", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "(", "this", ".", "expressionPtr", "-=", "length", ")", "+", "1", ",", "arg", ".", "annotations", "=", "new", "Annotation", "[", "length", "]", ",", "0", ",", "length", ")", ";", "RecoveredType", "currentRecoveryType", "=", "this", ".", "currentRecoveryType", "(", ")", ";", "if", "(", "currentRecoveryType", "!=", "null", ")", "currentRecoveryType", ".", "annotationsConsumed", "(", "arg", ".", "annotations", ")", ";", "}", "pushOnAstStack", "(", "arg", ")", ";", "this", ".", "listLength", "++", ";", "if", "(", "isVarArgs", ")", "{", "if", "(", "!", "this", ".", "statementRecoveryActivated", "&&", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", "&&", "this", ".", "lastErrorEndPositionBeforeRecovery", "<", "this", ".", "scanner", ".", "currentPosition", ")", "{", "problemReporter", "(", ")", ".", "invalidUsageOfVarargs", "(", "arg", ")", ";", "}", "else", "if", "(", "!", "this", ".", "statementRecoveryActivated", "&&", "extendedDimensions", ">", "0", ")", "{", "problemReporter", "(", ")", ".", "illegalExtendedDimensions", "(", "arg", ")", ";", "}", "}", "}", "protected", "void", "consumeFormalParameterList", "(", ")", "{", "optimizedConcatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeFormalParameterListopt", "(", ")", "{", "pushOnAstLengthStack", "(", "0", ")", ";", "}", "protected", "void", "consumeGenericType", "(", ")", "{", "}", "protected", "void", "consumeGenericTypeArrayType", "(", ")", "{", "}", "protected", "void", "consumeGenericTypeNameArrayType", "(", ")", "{", "}", "protected", "void", "consumeGenericTypeWithDiamond", "(", ")", "{", "pushOnGenericsLengthStack", "(", "-", "1", ")", ";", "concatGenericsLists", "(", ")", ";", "this", ".", "intPtr", "--", ";", "}", "protected", "void", "consumeImportDeclaration", "(", ")", "{", "ImportReference", "impt", "=", "(", "ImportReference", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "impt", ".", "declarationEnd", "=", "this", ".", "endStatementPosition", ";", "impt", ".", "declarationSourceEnd", "=", "flushCommentsDefinedPriorTo", "(", "impt", ".", "declarationSourceEnd", ")", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "impt", ".", "declarationSourceEnd", "+", "1", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "impt", ",", "0", ")", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "this", ".", "restartRecovery", "=", "true", ";", "}", "}", "protected", "void", "consumeImportDeclarations", "(", ")", "{", "optimizedConcatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeInsideCastExpression", "(", ")", "{", "}", "protected", "void", "consumeInsideCastExpressionLL1", "(", ")", "{", "pushOnGenericsLengthStack", "(", "0", ")", ";", "pushOnGenericsIdentifiersLengthStack", "(", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "]", ")", ";", "pushOnExpressionStack", "(", "getTypeReference", "(", "0", ")", ")", ";", "}", "protected", "void", "consumeInsideCastExpressionWithQualifiedGenerics", "(", ")", "{", "}", "protected", "void", "consumeInstanceOfExpression", "(", ")", "{", "Expression", "exp", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "exp", "=", "new", "InstanceOfExpression", "(", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ",", "getTypeReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ")", ";", "if", "(", "exp", ".", "sourceEnd", "==", "0", ")", "{", "exp", ".", "sourceEnd", "=", "this", ".", "scanner", ".", "startPosition", "-", "1", ";", "}", "}", "protected", "void", "consumeInstanceOfExpressionWithName", "(", ")", "{", "TypeReference", "reference", "=", "getTypeReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ";", "pushOnExpressionStack", "(", "getUnspecifiedReferenceOptimized", "(", ")", ")", ";", "Expression", "exp", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "exp", "=", "new", "InstanceOfExpression", "(", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ",", "reference", ")", ";", "if", "(", "exp", ".", "sourceEnd", "==", "0", ")", "{", "exp", ".", "sourceEnd", "=", "this", ".", "scanner", ".", "startPosition", "-", "1", ";", "}", "}", "protected", "void", "consumeInterfaceDeclaration", "(", ")", "{", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "dispatchDeclarationInto", "(", "length", ")", ";", "}", "TypeDeclaration", "typeDecl", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "typeDecl", ".", "checkConstructors", "(", "this", ")", ";", "FieldDeclaration", "[", "]", "fields", "=", "typeDecl", ".", "fields", ";", "int", "fieldCount", "=", "fields", "==", "null", "?", "0", ":", "fields", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "fieldCount", ";", "i", "++", ")", "{", "FieldDeclaration", "field", "=", "fields", "[", "i", "]", ";", "if", "(", "field", "instanceof", "Initializer", ")", "{", "problemReporter", "(", ")", ".", "interfaceCannotHaveInitializers", "(", "typeDecl", ".", "name", ",", "field", ")", ";", "}", "}", "if", "(", "this", ".", "scanner", ".", "containsAssertKeyword", ")", "{", "typeDecl", ".", "bits", "|=", "ASTNode", ".", "ContainsAssertion", ";", "}", "typeDecl", ".", "addClinit", "(", ")", ";", "typeDecl", ".", "bodyEnd", "=", "this", ".", "endStatementPosition", ";", "if", "(", "length", "==", "0", "&&", "!", "containsComment", "(", "typeDecl", ".", "bodyStart", ",", "typeDecl", ".", "bodyEnd", ")", ")", "{", "typeDecl", ".", "bits", "|=", "ASTNode", ".", "UndocumentedEmptyBlock", ";", "}", "typeDecl", ".", "declarationSourceEnd", "=", "flushCommentsDefinedPriorTo", "(", "this", ".", "endStatementPosition", ")", ";", "}", "protected", "void", "consumeInterfaceHeader", "(", ")", "{", "TypeDeclaration", "typeDecl", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "if", "(", "this", ".", "currentToken", "==", "TokenNameLBRACE", ")", "{", "typeDecl", ".", "bodyStart", "=", "this", ".", "scanner", ".", "currentPosition", ";", "}", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "restartRecovery", "=", "true", ";", "}", "this", ".", "scanner", ".", "commentPtr", "=", "-", "1", ";", "}", "protected", "void", "consumeInterfaceHeaderExtends", "(", ")", "{", "int", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ";", "this", ".", "astPtr", "-=", "length", ";", "TypeDeclaration", "typeDecl", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "this", ".", "astPtr", "+", "1", ",", "typeDecl", ".", "superInterfaces", "=", "new", "TypeReference", "[", "length", "]", ",", "0", ",", "length", ")", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "typeDecl", ".", "superInterfaces", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "typeDecl", ".", "superInterfaces", "[", "i", "]", ".", "bits", "|=", "ASTNode", ".", "IsSuperType", ";", "}", "typeDecl", ".", "bodyStart", "=", "typeDecl", ".", "superInterfaces", "[", "length", "-", "1", "]", ".", "sourceEnd", "+", "1", ";", "this", ".", "listLength", "=", "0", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "typeDecl", ".", "bodyStart", ";", "}", "}", "protected", "void", "consumeInterfaceHeaderName1", "(", ")", "{", "TypeDeclaration", "typeDecl", "=", "new", "TypeDeclaration", "(", "this", ".", "compilationUnit", ".", "compilationResult", ")", ";", "if", "(", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "==", "0", ")", "{", "if", "(", "this", ".", "nestedType", "!=", "0", ")", "{", "typeDecl", ".", "bits", "|=", "ASTNode", ".", "IsMemberType", ";", "}", "}", "else", "{", "typeDecl", ".", "bits", "|=", "ASTNode", ".", "IsLocalType", ";", "markEnclosingMemberWithLocalType", "(", ")", ";", "blockReal", "(", ")", ";", "}", "long", "pos", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ";", "typeDecl", ".", "sourceEnd", "=", "(", "int", ")", "pos", ";", "typeDecl", ".", "sourceStart", "=", "(", "int", ")", "(", "pos", ">>>", "32", ")", ";", "typeDecl", ".", "name", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "this", ".", "identifierLengthPtr", "--", ";", "typeDecl", ".", "declarationSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "this", ".", "intPtr", "--", ";", "typeDecl", ".", "modifiersSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "typeDecl", ".", "modifiers", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", "|", "ClassFileConstants", ".", "AccInterface", ";", "if", "(", "typeDecl", ".", "modifiersSourceStart", ">=", "0", ")", "{", "typeDecl", ".", "declarationSourceStart", "=", "typeDecl", ".", "modifiersSourceStart", ";", "}", "if", "(", "(", "typeDecl", ".", "bits", "&", "ASTNode", ".", "IsMemberType", ")", "==", "0", "&&", "(", "typeDecl", ".", "bits", "&", "ASTNode", ".", "IsLocalType", ")", "==", "0", ")", "{", "if", "(", "this", ".", "compilationUnit", "!=", "null", "&&", "!", "CharOperation", ".", "equals", "(", "typeDecl", ".", "name", ",", "this", ".", "compilationUnit", ".", "getMainTypeName", "(", ")", ")", ")", "{", "typeDecl", ".", "bits", "|=", "ASTNode", ".", "IsSecondaryType", ";", "}", "}", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "(", "this", ".", "expressionPtr", "-=", "length", ")", "+", "1", ",", "typeDecl", ".", "annotations", "=", "new", "Annotation", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "typeDecl", ".", "bodyStart", "=", "typeDecl", ".", "sourceEnd", "+", "1", ";", "pushOnAstStack", "(", "typeDecl", ")", ";", "this", ".", "listLength", "=", "0", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "typeDecl", ".", "bodyStart", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "typeDecl", ",", "0", ")", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "}", "typeDecl", ".", "javadoc", "=", "this", ".", "javadoc", ";", "this", ".", "javadoc", "=", "null", ";", "}", "protected", "void", "consumeInterfaceMemberDeclarations", "(", ")", "{", "concatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeInterfaceMemberDeclarationsopt", "(", ")", "{", "this", ".", "nestedType", "--", ";", "}", "protected", "void", "consumeInterfaceType", "(", ")", "{", "pushOnAstStack", "(", "getTypeReference", "(", "0", ")", ")", ";", "this", ".", "listLength", "++", ";", "}", "protected", "void", "consumeInterfaceTypeList", "(", ")", "{", "optimizedConcatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeInternalCompilationUnit", "(", ")", "{", "if", "(", "this", ".", "compilationUnit", ".", "isPackageInfo", "(", ")", ")", "{", "this", ".", "compilationUnit", ".", "types", "=", "new", "TypeDeclaration", "[", "1", "]", ";", "this", ".", "compilationUnit", ".", "createPackageInfoType", "(", ")", ";", "}", "}", "protected", "void", "consumeInternalCompilationUnitWithTypes", "(", ")", "{", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "if", "(", "this", ".", "compilationUnit", ".", "isPackageInfo", "(", ")", ")", "{", "this", ".", "compilationUnit", ".", "types", "=", "new", "TypeDeclaration", "[", "length", "+", "1", "]", ";", "this", ".", "astPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "this", ".", "astPtr", "+", "1", ",", "this", ".", "compilationUnit", ".", "types", ",", "1", ",", "length", ")", ";", "this", ".", "compilationUnit", ".", "createPackageInfoType", "(", ")", ";", "}", "else", "{", "this", ".", "compilationUnit", ".", "types", "=", "new", "TypeDeclaration", "[", "length", "]", ";", "this", ".", "astPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "this", ".", "astPtr", "+", "1", ",", "this", ".", "compilationUnit", ".", "types", ",", "0", ",", "length", ")", ";", "}", "}", "}", "protected", "void", "consumeInvalidAnnotationTypeDeclaration", "(", ")", "{", "TypeDeclaration", "typeDecl", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "if", "(", "!", "this", ".", "statementRecoveryActivated", ")", "problemReporter", "(", ")", ".", "illegalLocalTypeDeclaration", "(", "typeDecl", ")", ";", "this", ".", "astPtr", "--", ";", "pushOnAstLengthStack", "(", "-", "1", ")", ";", "concatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeInvalidConstructorDeclaration", "(", ")", "{", "ConstructorDeclaration", "cd", "=", "(", "ConstructorDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "cd", ".", "bodyEnd", "=", "this", ".", "endPosition", ";", "cd", ".", "declarationSourceEnd", "=", "flushCommentsDefinedPriorTo", "(", "this", ".", "endStatementPosition", ")", ";", "cd", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccSemicolonBody", ";", "}", "protected", "void", "consumeInvalidConstructorDeclaration", "(", "boolean", "hasBody", ")", "{", "if", "(", "hasBody", ")", "{", "this", ".", "intPtr", "--", ";", "}", "if", "(", "hasBody", ")", "{", "this", ".", "realBlockPtr", "--", ";", "}", "int", "length", ";", "if", "(", "hasBody", "&&", "(", "(", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", "!=", "0", ")", ")", "{", "this", ".", "astPtr", "-=", "length", ";", "}", "ConstructorDeclaration", "constructorDeclaration", "=", "(", "ConstructorDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "constructorDeclaration", ".", "bodyEnd", "=", "this", ".", "endStatementPosition", ";", "constructorDeclaration", ".", "declarationSourceEnd", "=", "flushCommentsDefinedPriorTo", "(", "this", ".", "endStatementPosition", ")", ";", "if", "(", "!", "hasBody", ")", "{", "constructorDeclaration", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccSemicolonBody", ";", "}", "}", "protected", "void", "consumeInvalidEnumDeclaration", "(", ")", "{", "TypeDeclaration", "typeDecl", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "if", "(", "!", "this", ".", "statementRecoveryActivated", ")", "problemReporter", "(", ")", ".", "illegalLocalTypeDeclaration", "(", "typeDecl", ")", ";", "this", ".", "astPtr", "--", ";", "pushOnAstLengthStack", "(", "-", "1", ")", ";", "concatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeInvalidInterfaceDeclaration", "(", ")", "{", "TypeDeclaration", "typeDecl", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "if", "(", "!", "this", ".", "statementRecoveryActivated", ")", "problemReporter", "(", ")", ".", "illegalLocalTypeDeclaration", "(", "typeDecl", ")", ";", "this", ".", "astPtr", "--", ";", "pushOnAstLengthStack", "(", "-", "1", ")", ";", "concatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeInvalidMethodDeclaration", "(", ")", "{", "this", ".", "intPtr", "--", ";", "this", ".", "realBlockPtr", "--", ";", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "this", ".", "astPtr", "-=", "length", ";", "}", "MethodDeclaration", "md", "=", "(", "MethodDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "md", ".", "bodyEnd", "=", "this", ".", "endPosition", ";", "md", ".", "declarationSourceEnd", "=", "flushCommentsDefinedPriorTo", "(", "this", ".", "endStatementPosition", ")", ";", "if", "(", "!", "this", ".", "statementRecoveryActivated", ")", "problemReporter", "(", ")", ".", "abstractMethodNeedingNoBody", "(", "md", ")", ";", "}", "protected", "void", "consumeLabel", "(", ")", "{", "}", "protected", "void", "consumeLeftParen", "(", ")", "{", "pushOnIntStack", "(", "this", ".", "lParenPos", ")", ";", "}", "protected", "void", "consumeLocalVariableDeclaration", "(", ")", "{", "int", "variableDeclaratorsCounter", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "]", ";", "int", "startIndex", "=", "this", ".", "astPtr", "-", "this", ".", "variablesCounter", "[", "this", ".", "nestedType", "]", "+", "1", ";", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "startIndex", ",", "this", ".", "astStack", ",", "startIndex", "-", "1", ",", "variableDeclaratorsCounter", ")", ";", "this", ".", "astPtr", "--", ";", "this", ".", "astLengthStack", "[", "--", "this", ".", "astLengthPtr", "]", "=", "variableDeclaratorsCounter", ";", "this", ".", "variablesCounter", "[", "this", ".", "nestedType", "]", "=", "0", ";", "}", "protected", "void", "consumeLocalVariableDeclarationStatement", "(", ")", "{", "this", ".", "realBlockStack", "[", "this", ".", "realBlockPtr", "]", "++", ";", "int", "variableDeclaratorsCounter", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "]", ";", "for", "(", "int", "i", "=", "variableDeclaratorsCounter", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "LocalDeclaration", "localDeclaration", "=", "(", "LocalDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "-", "i", "]", ";", "localDeclaration", ".", "declarationSourceEnd", "=", "this", ".", "endStatementPosition", ";", "localDeclaration", ".", "declarationEnd", "=", "this", ".", "endStatementPosition", ";", "}", "}", "protected", "void", "consumeMarkerAnnotation", "(", ")", "{", "MarkerAnnotation", "markerAnnotation", "=", "null", ";", "int", "oldIndex", "=", "this", ".", "identifierPtr", ";", "TypeReference", "typeReference", "=", "getAnnotationType", "(", ")", ";", "markerAnnotation", "=", "new", "MarkerAnnotation", "(", "typeReference", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ";", "markerAnnotation", ".", "declarationSourceEnd", "=", "markerAnnotation", ".", "sourceEnd", ";", "pushOnExpressionStack", "(", "markerAnnotation", ")", ";", "if", "(", "!", "this", ".", "statementRecoveryActivated", "&&", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", "&&", "this", ".", "lastErrorEndPositionBeforeRecovery", "<", "this", ".", "scanner", ".", "currentPosition", ")", "{", "problemReporter", "(", ")", ".", "invalidUsageOfAnnotation", "(", "markerAnnotation", ")", ";", "}", "this", ".", "recordStringLiterals", "=", "true", ";", "if", "(", "this", ".", "currentElement", "!=", "null", "&&", "this", ".", "currentElement", "instanceof", "RecoveredAnnotation", ")", "{", "this", ".", "currentElement", "=", "(", "(", "RecoveredAnnotation", ")", "this", ".", "currentElement", ")", ".", "addAnnotation", "(", "markerAnnotation", ",", "oldIndex", ")", ";", "}", "}", "protected", "void", "consumeMemberValueArrayInitializer", "(", ")", "{", "arrayInitializer", "(", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", ";", "}", "protected", "void", "consumeMemberValueAsName", "(", ")", "{", "pushOnExpressionStack", "(", "getUnspecifiedReferenceOptimized", "(", ")", ")", ";", "}", "protected", "void", "consumeMemberValuePair", "(", ")", "{", "char", "[", "]", "simpleName", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", ";", "long", "position", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "this", ".", "identifierLengthPtr", "--", ";", "int", "end", "=", "(", "int", ")", "position", ";", "int", "start", "=", "(", "int", ")", "(", "position", ">>>", "32", ")", ";", "Expression", "value", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ";", "this", ".", "expressionLengthPtr", "--", ";", "MemberValuePair", "memberValuePair", "=", "new", "MemberValuePair", "(", "simpleName", ",", "start", ",", "end", ",", "value", ")", ";", "pushOnAstStack", "(", "memberValuePair", ")", ";", "if", "(", "this", ".", "currentElement", "!=", "null", "&&", "this", ".", "currentElement", "instanceof", "RecoveredAnnotation", ")", "{", "RecoveredAnnotation", "recoveredAnnotation", "=", "(", "RecoveredAnnotation", ")", "this", ".", "currentElement", ";", "recoveredAnnotation", ".", "setKind", "(", "RecoveredAnnotation", ".", "NORMAL", ")", ";", "}", "}", "protected", "void", "consumeMemberValuePairs", "(", ")", "{", "concatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeMemberValues", "(", ")", "{", "concatExpressionLists", "(", ")", ";", "}", "protected", "void", "consumeMethodBody", "(", ")", "{", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "--", ";", "}", "protected", "void", "consumeMethodDeclaration", "(", "boolean", "isNotAbstract", ")", "{", "int", "length", ";", "if", "(", "isNotAbstract", ")", "{", "this", ".", "intPtr", "--", ";", "this", ".", "intPtr", "--", ";", "}", "int", "explicitDeclarations", "=", "0", ";", "Statement", "[", "]", "statements", "=", "null", ";", "if", "(", "isNotAbstract", ")", "{", "explicitDeclarations", "=", "this", ".", "realBlockStack", "[", "this", ".", "realBlockPtr", "--", "]", ";", "if", "(", "!", "this", ".", "options", ".", "ignoreMethodBodies", ")", "{", "if", "(", "(", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "(", "this", ".", "astPtr", "-=", "length", ")", "+", "1", ",", "statements", "=", "new", "Statement", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "}", "else", "{", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ";", "this", ".", "astPtr", "-=", "length", ";", "}", "}", "MethodDeclaration", "md", "=", "(", "MethodDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "md", ".", "statements", "=", "statements", ";", "md", ".", "explicitDeclarations", "=", "explicitDeclarations", ";", "if", "(", "!", "isNotAbstract", ")", "{", "md", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccSemicolonBody", ";", "}", "else", "if", "(", "!", "(", "this", ".", "diet", "&&", "this", ".", "dietInt", "==", "0", ")", "&&", "statements", "==", "null", "&&", "!", "containsComment", "(", "md", ".", "bodyStart", ",", "this", ".", "endPosition", ")", ")", "{", "md", ".", "bits", "|=", "ASTNode", ".", "UndocumentedEmptyBlock", ";", "}", "md", ".", "bodyEnd", "=", "this", ".", "endPosition", ";", "md", ".", "declarationSourceEnd", "=", "flushCommentsDefinedPriorTo", "(", "this", ".", "endStatementPosition", ")", ";", "}", "protected", "void", "consumeMethodHeader", "(", ")", "{", "AbstractMethodDeclaration", "method", "=", "(", "AbstractMethodDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "if", "(", "this", ".", "currentToken", "==", "TokenNameLBRACE", ")", "{", "method", ".", "bodyStart", "=", "this", ".", "scanner", ".", "currentPosition", ";", "}", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "if", "(", "this", ".", "currentToken", "==", "TokenNameSEMICOLON", ")", "{", "method", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccSemicolonBody", ";", "method", ".", "declarationSourceEnd", "=", "this", ".", "scanner", ".", "currentPosition", "-", "1", ";", "method", ".", "bodyEnd", "=", "this", ".", "scanner", ".", "currentPosition", "-", "1", ";", "if", "(", "this", ".", "currentElement", ".", "parseTree", "(", ")", "==", "method", "&&", "this", ".", "currentElement", ".", "parent", "!=", "null", ")", "{", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "parent", ";", "}", "}", "else", "if", "(", "this", ".", "currentToken", "==", "TokenNameLBRACE", ")", "{", "if", "(", "this", ".", "currentElement", "instanceof", "RecoveredMethod", "&&", "(", "(", "RecoveredMethod", ")", "this", ".", "currentElement", ")", ".", "methodDeclaration", "!=", "method", ")", "{", "this", ".", "ignoreNextOpeningBrace", "=", "true", ";", "this", ".", "currentElement", ".", "bracketBalance", "++", ";", "}", "}", "this", ".", "restartRecovery", "=", "true", ";", "}", "}", "protected", "void", "consumeMethodHeaderDefaultValue", "(", ")", "{", "MethodDeclaration", "md", "=", "(", "MethodDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "int", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ";", "if", "(", "length", "==", "1", ")", "{", "this", ".", "intPtr", "--", ";", "this", ".", "intPtr", "--", ";", "if", "(", "md", ".", "isAnnotationMethod", "(", ")", ")", "{", "(", "(", "AnnotationMethodDeclaration", ")", "md", ")", ".", "defaultValue", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ";", "md", ".", "modifiers", "|=", "ClassFileConstants", ".", "AccAnnotationDefault", ";", "}", "this", ".", "expressionPtr", "--", ";", "this", ".", "recordStringLiterals", "=", "true", ";", "}", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "if", "(", "md", ".", "isAnnotationMethod", "(", ")", ")", "{", "this", ".", "currentElement", ".", "updateSourceEndIfNecessary", "(", "(", "(", "AnnotationMethodDeclaration", ")", "md", ")", ".", "defaultValue", ".", "sourceEnd", ")", ";", "}", "}", "}", "protected", "void", "consumeMethodHeaderExtendedDims", "(", ")", "{", "MethodDeclaration", "md", "=", "(", "MethodDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "int", "extendedDims", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "if", "(", "md", ".", "isAnnotationMethod", "(", ")", ")", "{", "(", "(", "AnnotationMethodDeclaration", ")", "md", ")", ".", "extendedDimensions", "=", "extendedDims", ";", "}", "if", "(", "extendedDims", "!=", "0", ")", "{", "TypeReference", "returnType", "=", "md", ".", "returnType", ";", "md", ".", "sourceEnd", "=", "this", ".", "endPosition", ";", "int", "dims", "=", "returnType", ".", "dimensions", "(", ")", "+", "extendedDims", ";", "md", ".", "returnType", "=", "copyDims", "(", "returnType", ",", "dims", ")", ";", "if", "(", "this", ".", "currentToken", "==", "TokenNameLBRACE", ")", "{", "md", ".", "bodyStart", "=", "this", ".", "endPosition", "+", "1", ";", "}", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "md", ".", "bodyStart", ";", "}", "}", "}", "protected", "void", "consumeMethodHeaderName", "(", "boolean", "isAnnotationMethod", ")", "{", "MethodDeclaration", "md", "=", "null", ";", "if", "(", "isAnnotationMethod", ")", "{", "md", "=", "new", "AnnotationMethodDeclaration", "(", "this", ".", "compilationUnit", ".", "compilationResult", ")", ";", "this", ".", "recordStringLiterals", "=", "false", ";", "}", "else", "{", "md", "=", "new", "MethodDeclaration", "(", "this", ".", "compilationUnit", ".", "compilationResult", ")", ";", "}", "md", ".", "selector", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", ";", "long", "selectorSource", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "this", ".", "identifierLengthPtr", "--", ";", "md", ".", "returnType", "=", "getTypeReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ";", "md", ".", "declarationSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "md", ".", "modifiers", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "(", "this", ".", "expressionPtr", "-=", "length", ")", "+", "1", ",", "md", ".", "annotations", "=", "new", "Annotation", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "md", ".", "javadoc", "=", "this", ".", "javadoc", ";", "this", ".", "javadoc", "=", "null", ";", "md", ".", "sourceStart", "=", "(", "int", ")", "(", "selectorSource", ">>>", "32", ")", ";", "pushOnAstStack", "(", "md", ")", ";", "md", ".", "sourceEnd", "=", "this", ".", "lParenPos", ";", "md", ".", "bodyStart", "=", "this", ".", "lParenPos", "+", "1", ";", "this", ".", "listLength", "=", "0", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "if", "(", "this", ".", "currentElement", "instanceof", "RecoveredType", "||", "(", "Util", ".", "getLineNumber", "(", "md", ".", "returnType", ".", "sourceStart", ",", "this", ".", "scanner", ".", "lineEnds", ",", "0", ",", "this", ".", "scanner", ".", "linePtr", ")", "==", "Util", ".", "getLineNumber", "(", "md", ".", "sourceStart", ",", "this", ".", "scanner", ".", "lineEnds", ",", "0", ",", "this", ".", "scanner", ".", "linePtr", ")", ")", ")", "{", "this", ".", "lastCheckPoint", "=", "md", ".", "bodyStart", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "md", ",", "0", ")", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "}", "else", "{", "this", ".", "lastCheckPoint", "=", "md", ".", "sourceStart", ";", "this", ".", "restartRecovery", "=", "true", ";", "}", "}", "}", "protected", "void", "consumeMethodHeaderNameWithTypeParameters", "(", "boolean", "isAnnotationMethod", ")", "{", "MethodDeclaration", "md", "=", "null", ";", "if", "(", "isAnnotationMethod", ")", "{", "md", "=", "new", "AnnotationMethodDeclaration", "(", "this", ".", "compilationUnit", ".", "compilationResult", ")", ";", "this", ".", "recordStringLiterals", "=", "false", ";", "}", "else", "{", "md", "=", "new", "MethodDeclaration", "(", "this", ".", "compilationUnit", ".", "compilationResult", ")", ";", "}", "md", ".", "selector", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", ";", "long", "selectorSource", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "this", ".", "identifierLengthPtr", "--", ";", "md", ".", "returnType", "=", "getTypeReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ";", "int", "length", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "--", "]", ";", "this", ".", "genericsPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "genericsStack", ",", "this", ".", "genericsPtr", "+", "1", ",", "md", ".", "typeParameters", "=", "new", "TypeParameter", "[", "length", "]", ",", "0", ",", "length", ")", ";", "md", ".", "declarationSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "md", ".", "modifiers", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "(", "this", ".", "expressionPtr", "-=", "length", ")", "+", "1", ",", "md", ".", "annotations", "=", "new", "Annotation", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "md", ".", "javadoc", "=", "this", ".", "javadoc", ";", "this", ".", "javadoc", "=", "null", ";", "md", ".", "sourceStart", "=", "(", "int", ")", "(", "selectorSource", ">>>", "32", ")", ";", "pushOnAstStack", "(", "md", ")", ";", "md", ".", "sourceEnd", "=", "this", ".", "lParenPos", ";", "md", ".", "bodyStart", "=", "this", ".", "lParenPos", "+", "1", ";", "this", ".", "listLength", "=", "0", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "boolean", "isType", ";", "if", "(", "(", "isType", "=", "this", ".", "currentElement", "instanceof", "RecoveredType", ")", "||", "(", "Util", ".", "getLineNumber", "(", "md", ".", "returnType", ".", "sourceStart", ",", "this", ".", "scanner", ".", "lineEnds", ",", "0", ",", "this", ".", "scanner", ".", "linePtr", ")", "==", "Util", ".", "getLineNumber", "(", "md", ".", "sourceStart", ",", "this", ".", "scanner", ".", "lineEnds", ",", "0", ",", "this", ".", "scanner", ".", "linePtr", ")", ")", ")", "{", "if", "(", "isType", ")", "{", "(", "(", "RecoveredType", ")", "this", ".", "currentElement", ")", ".", "pendingTypeParameters", "=", "null", ";", "}", "this", ".", "lastCheckPoint", "=", "md", ".", "bodyStart", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "md", ",", "0", ")", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "}", "else", "{", "this", ".", "lastCheckPoint", "=", "md", ".", "sourceStart", ";", "this", ".", "restartRecovery", "=", "true", ";", "}", "}", "}", "protected", "void", "consumeMethodHeaderRightParen", "(", ")", "{", "int", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ";", "this", ".", "astPtr", "-=", "length", ";", "AbstractMethodDeclaration", "md", "=", "(", "AbstractMethodDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "md", ".", "sourceEnd", "=", "this", ".", "rParenPos", ";", "if", "(", "length", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "this", ".", "astPtr", "+", "1", ",", "md", ".", "arguments", "=", "new", "Argument", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "md", ".", "bodyStart", "=", "this", ".", "rParenPos", "+", "1", ";", "this", ".", "listLength", "=", "0", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "md", ".", "bodyStart", ";", "if", "(", "this", ".", "currentElement", ".", "parseTree", "(", ")", "==", "md", ")", "return", ";", "if", "(", "md", ".", "isConstructor", "(", ")", ")", "{", "if", "(", "(", "length", "!=", "0", ")", "||", "(", "this", ".", "currentToken", "==", "TokenNameLBRACE", ")", "||", "(", "this", ".", "currentToken", "==", "TokenNamethrows", ")", ")", "{", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "md", ",", "0", ")", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "}", "}", "}", "}", "protected", "void", "consumeMethodHeaderThrowsClause", "(", ")", "{", "int", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ";", "this", ".", "astPtr", "-=", "length", ";", "AbstractMethodDeclaration", "md", "=", "(", "AbstractMethodDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "this", ".", "astPtr", "+", "1", ",", "md", ".", "thrownExceptions", "=", "new", "TypeReference", "[", "length", "]", ",", "0", ",", "length", ")", ";", "md", ".", "sourceEnd", "=", "md", ".", "thrownExceptions", "[", "length", "-", "1", "]", ".", "sourceEnd", ";", "md", ".", "bodyStart", "=", "md", ".", "thrownExceptions", "[", "length", "-", "1", "]", ".", "sourceEnd", "+", "1", ";", "this", ".", "listLength", "=", "0", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "md", ".", "bodyStart", ";", "}", "}", "protected", "void", "consumeMethodInvocationName", "(", ")", "{", "MessageSend", "m", "=", "newMessageSend", "(", ")", ";", "m", ".", "sourceEnd", "=", "this", ".", "rParenPos", ";", "m", ".", "sourceStart", "=", "(", "int", ")", "(", "(", "m", ".", "nameSourcePosition", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ")", ">>>", "32", ")", ";", "m", ".", "selector", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "if", "(", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "]", "==", "1", ")", "{", "m", ".", "receiver", "=", "ThisReference", ".", "implicitThis", "(", ")", ";", "this", ".", "identifierLengthPtr", "--", ";", "}", "else", "{", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "]", "--", ";", "m", ".", "receiver", "=", "getUnspecifiedReference", "(", ")", ";", "m", ".", "sourceStart", "=", "m", ".", "receiver", ".", "sourceStart", ";", "}", "pushOnExpressionStack", "(", "m", ")", ";", "}", "protected", "void", "consumeMethodInvocationNameWithTypeArguments", "(", ")", "{", "MessageSend", "m", "=", "newMessageSendWithTypeArguments", "(", ")", ";", "m", ".", "sourceEnd", "=", "this", ".", "rParenPos", ";", "m", ".", "sourceStart", "=", "(", "int", ")", "(", "(", "m", ".", "nameSourcePosition", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ")", ">>>", "32", ")", ";", "m", ".", "selector", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "this", ".", "identifierLengthPtr", "--", ";", "int", "length", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "--", "]", ";", "this", ".", "genericsPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "genericsStack", ",", "this", ".", "genericsPtr", "+", "1", ",", "m", ".", "typeArguments", "=", "new", "TypeReference", "[", "length", "]", ",", "0", ",", "length", ")", ";", "this", ".", "intPtr", "--", ";", "m", ".", "receiver", "=", "getUnspecifiedReference", "(", ")", ";", "m", ".", "sourceStart", "=", "m", ".", "receiver", ".", "sourceStart", ";", "pushOnExpressionStack", "(", "m", ")", ";", "}", "protected", "void", "consumeMethodInvocationPrimary", "(", ")", "{", "MessageSend", "m", "=", "newMessageSend", "(", ")", ";", "m", ".", "sourceStart", "=", "(", "int", ")", "(", "(", "m", ".", "nameSourcePosition", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ")", ">>>", "32", ")", ";", "m", ".", "selector", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "this", ".", "identifierLengthPtr", "--", ";", "m", ".", "receiver", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ";", "m", ".", "sourceStart", "=", "m", ".", "receiver", ".", "sourceStart", ";", "m", ".", "sourceEnd", "=", "this", ".", "rParenPos", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "m", ";", "}", "protected", "void", "consumeMethodInvocationPrimaryWithTypeArguments", "(", ")", "{", "MessageSend", "m", "=", "newMessageSendWithTypeArguments", "(", ")", ";", "m", ".", "sourceStart", "=", "(", "int", ")", "(", "(", "m", ".", "nameSourcePosition", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ")", ">>>", "32", ")", ";", "m", ".", "selector", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "this", ".", "identifierLengthPtr", "--", ";", "int", "length", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "--", "]", ";", "this", ".", "genericsPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "genericsStack", ",", "this", ".", "genericsPtr", "+", "1", ",", "m", ".", "typeArguments", "=", "new", "TypeReference", "[", "length", "]", ",", "0", ",", "length", ")", ";", "this", ".", "intPtr", "--", ";", "m", ".", "receiver", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ";", "m", ".", "sourceStart", "=", "m", ".", "receiver", ".", "sourceStart", ";", "m", ".", "sourceEnd", "=", "this", ".", "rParenPos", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "m", ";", "}", "protected", "void", "consumeMethodInvocationSuper", "(", ")", "{", "MessageSend", "m", "=", "newMessageSend", "(", ")", ";", "m", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "m", ".", "sourceEnd", "=", "this", ".", "rParenPos", ";", "m", ".", "nameSourcePosition", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ";", "m", ".", "selector", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "this", ".", "identifierLengthPtr", "--", ";", "m", ".", "receiver", "=", "new", "SuperReference", "(", "m", ".", "sourceStart", ",", "this", ".", "endPosition", ")", ";", "pushOnExpressionStack", "(", "m", ")", ";", "}", "protected", "void", "consumeMethodInvocationSuperWithTypeArguments", "(", ")", "{", "MessageSend", "m", "=", "newMessageSendWithTypeArguments", "(", ")", ";", "this", ".", "intPtr", "--", ";", "m", ".", "sourceEnd", "=", "this", ".", "rParenPos", ";", "m", ".", "nameSourcePosition", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ";", "m", ".", "selector", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "this", ".", "identifierLengthPtr", "--", ";", "int", "length", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "--", "]", ";", "this", ".", "genericsPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "genericsStack", ",", "this", ".", "genericsPtr", "+", "1", ",", "m", ".", "typeArguments", "=", "new", "TypeReference", "[", "length", "]", ",", "0", ",", "length", ")", ";", "m", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "m", ".", "receiver", "=", "new", "SuperReference", "(", "m", ".", "sourceStart", ",", "this", ".", "endPosition", ")", ";", "pushOnExpressionStack", "(", "m", ")", ";", "}", "protected", "void", "consumeModifiers", "(", ")", "{", "int", "savedModifiersSourceStart", "=", "this", ".", "modifiersSourceStart", ";", "checkComment", "(", ")", ";", "pushOnIntStack", "(", "this", ".", "modifiers", ")", ";", "if", "(", "this", ".", "modifiersSourceStart", ">=", "savedModifiersSourceStart", ")", "{", "this", ".", "modifiersSourceStart", "=", "savedModifiersSourceStart", ";", "}", "pushOnIntStack", "(", "this", ".", "modifiersSourceStart", ")", ";", "resetModifiers", "(", ")", ";", "}", "protected", "void", "consumeModifiers2", "(", ")", "{", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "-", "1", "]", "+=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ";", "}", "protected", "void", "consumeMultipleResources", "(", ")", "{", "concatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeNameArrayType", "(", ")", "{", "pushOnGenericsLengthStack", "(", "0", ")", ";", "pushOnGenericsIdentifiersLengthStack", "(", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "]", ")", ";", "}", "protected", "void", "consumeNestedMethod", "(", ")", "{", "jumpOverMethodBody", "(", ")", ";", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "++", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "currentPosition", ")", ";", "consumeOpenBlock", "(", ")", ";", "}", "protected", "void", "consumeNestedType", "(", ")", "{", "int", "length", "=", "this", ".", "nestedMethod", ".", "length", ";", "if", "(", "++", "this", ".", "nestedType", ">=", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "nestedMethod", ",", "0", ",", "this", ".", "nestedMethod", "=", "new", "int", "[", "length", "+", "30", "]", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "variablesCounter", ",", "0", ",", "this", ".", "variablesCounter", "=", "new", "int", "[", "length", "+", "30", "]", ",", "0", ",", "length", ")", ";", "}", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "=", "0", ";", "this", ".", "variablesCounter", "[", "this", ".", "nestedType", "]", "=", "0", ";", "}", "protected", "void", "consumeNormalAnnotation", "(", ")", "{", "NormalAnnotation", "normalAnnotation", "=", "null", ";", "int", "oldIndex", "=", "this", ".", "identifierPtr", ";", "TypeReference", "typeReference", "=", "getAnnotationType", "(", ")", ";", "normalAnnotation", "=", "new", "NormalAnnotation", "(", "typeReference", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ";", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "(", "this", ".", "astPtr", "-=", "length", ")", "+", "1", ",", "normalAnnotation", ".", "memberValuePairs", "=", "new", "MemberValuePair", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "normalAnnotation", ".", "declarationSourceEnd", "=", "this", ".", "rParenPos", ";", "pushOnExpressionStack", "(", "normalAnnotation", ")", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "annotationRecoveryCheckPoint", "(", "normalAnnotation", ".", "sourceStart", ",", "normalAnnotation", ".", "declarationSourceEnd", ")", ";", "if", "(", "this", ".", "currentElement", "instanceof", "RecoveredAnnotation", ")", "{", "this", ".", "currentElement", "=", "(", "(", "RecoveredAnnotation", ")", "this", ".", "currentElement", ")", ".", "addAnnotation", "(", "normalAnnotation", ",", "oldIndex", ")", ";", "}", "}", "if", "(", "!", "this", ".", "statementRecoveryActivated", "&&", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", "&&", "this", ".", "lastErrorEndPositionBeforeRecovery", "<", "this", ".", "scanner", ".", "currentPosition", ")", "{", "problemReporter", "(", ")", ".", "invalidUsageOfAnnotation", "(", "normalAnnotation", ")", ";", "}", "this", ".", "recordStringLiterals", "=", "true", ";", "}", "protected", "void", "consumeOneDimLoop", "(", ")", "{", "this", ".", "dimensions", "++", ";", "}", "protected", "void", "consumeOnlySynchronized", "(", ")", "{", "pushOnIntStack", "(", "this", ".", "synchronizedBlockSourceStart", ")", ";", "resetModifiers", "(", ")", ";", "this", ".", "expressionLengthPtr", "--", ";", "}", "protected", "void", "consumeOnlyTypeArguments", "(", ")", "{", "if", "(", "!", "this", ".", "statementRecoveryActivated", "&&", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", "&&", "this", ".", "lastErrorEndPositionBeforeRecovery", "<", "this", ".", "scanner", ".", "currentPosition", ")", "{", "int", "length", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "]", ";", "problemReporter", "(", ")", ".", "invalidUsageOfTypeArguments", "(", "(", "TypeReference", ")", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "-", "length", "+", "1", "]", ",", "(", "TypeReference", ")", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "]", ")", ";", "}", "}", "protected", "void", "consumeOnlyTypeArgumentsForCastExpression", "(", ")", "{", "}", "protected", "void", "consumeOpenBlock", "(", ")", "{", "pushOnIntStack", "(", "this", ".", "scanner", ".", "startPosition", ")", ";", "int", "stackLength", "=", "this", ".", "realBlockStack", ".", "length", ";", "if", "(", "++", "this", ".", "realBlockPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "realBlockStack", ",", "0", ",", "this", ".", "realBlockStack", "=", "new", "int", "[", "stackLength", "+", "StackIncrement", "]", ",", "0", ",", "stackLength", ")", ";", "}", "this", ".", "realBlockStack", "[", "this", ".", "realBlockPtr", "]", "=", "0", ";", "}", "protected", "void", "consumePackageComment", "(", ")", "{", "if", "(", "this", ".", "options", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "checkComment", "(", ")", ";", "resetModifiers", "(", ")", ";", "}", "}", "protected", "void", "consumePackageDeclaration", "(", ")", "{", "ImportReference", "impt", "=", "this", ".", "compilationUnit", ".", "currentPackage", ";", "this", ".", "compilationUnit", ".", "javadoc", "=", "this", ".", "javadoc", ";", "this", ".", "javadoc", "=", "null", ";", "impt", ".", "declarationEnd", "=", "this", ".", "endStatementPosition", ";", "impt", ".", "declarationSourceEnd", "=", "flushCommentsDefinedPriorTo", "(", "impt", ".", "declarationSourceEnd", ")", ";", "}", "protected", "void", "consumePackageDeclarationName", "(", ")", "{", "ImportReference", "impt", ";", "int", "length", ";", "char", "[", "]", "[", "]", "tokens", "=", "new", "char", "[", "length", "=", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "--", "]", "]", "[", "]", ";", "this", ".", "identifierPtr", "-=", "length", ";", "long", "[", "]", "positions", "=", "new", "long", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierStack", ",", "++", "this", ".", "identifierPtr", ",", "tokens", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierPositionStack", ",", "this", ".", "identifierPtr", "--", ",", "positions", ",", "0", ",", "length", ")", ";", "impt", "=", "new", "ImportReference", "(", "tokens", ",", "positions", ",", "false", ",", "ClassFileConstants", ".", "AccDefault", ")", ";", "this", ".", "compilationUnit", ".", "currentPackage", "=", "impt", ";", "if", "(", "this", ".", "currentToken", "==", "TokenNameSEMICOLON", ")", "{", "impt", ".", "declarationSourceEnd", "=", "this", ".", "scanner", ".", "currentPosition", "-", "1", ";", "}", "else", "{", "impt", ".", "declarationSourceEnd", "=", "impt", ".", "sourceEnd", ";", "}", "impt", ".", "declarationEnd", "=", "impt", ".", "declarationSourceEnd", ";", "impt", ".", "declarationSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "if", "(", "this", ".", "javadoc", "!=", "null", ")", "{", "impt", ".", "declarationSourceStart", "=", "this", ".", "javadoc", ".", "sourceStart", ";", "}", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "impt", ".", "declarationSourceEnd", "+", "1", ";", "this", ".", "restartRecovery", "=", "true", ";", "}", "}", "protected", "void", "consumePackageDeclarationNameWithModifiers", "(", ")", "{", "ImportReference", "impt", ";", "int", "length", ";", "char", "[", "]", "[", "]", "tokens", "=", "new", "char", "[", "length", "=", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "--", "]", "]", "[", "]", ";", "this", ".", "identifierPtr", "-=", "length", ";", "long", "[", "]", "positions", "=", "new", "long", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierStack", ",", "++", "this", ".", "identifierPtr", ",", "tokens", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierPositionStack", ",", "this", ".", "identifierPtr", "--", ",", "positions", ",", "0", ",", "length", ")", ";", "int", "packageModifiersSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "int", "packageModifiers", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "impt", "=", "new", "ImportReference", "(", "tokens", ",", "positions", ",", "false", ",", "packageModifiers", ")", ";", "this", ".", "compilationUnit", ".", "currentPackage", "=", "impt", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "(", "this", ".", "expressionPtr", "-=", "length", ")", "+", "1", ",", "impt", ".", "annotations", "=", "new", "Annotation", "[", "length", "]", ",", "0", ",", "length", ")", ";", "impt", ".", "declarationSourceStart", "=", "packageModifiersSourceStart", ";", "this", ".", "intPtr", "--", ";", "}", "else", "{", "impt", ".", "declarationSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "if", "(", "this", ".", "javadoc", "!=", "null", ")", "{", "impt", ".", "declarationSourceStart", "=", "this", ".", "javadoc", ".", "sourceStart", ";", "}", "}", "if", "(", "this", ".", "currentToken", "==", "TokenNameSEMICOLON", ")", "{", "impt", ".", "declarationSourceEnd", "=", "this", ".", "scanner", ".", "currentPosition", "-", "1", ";", "}", "else", "{", "impt", ".", "declarationSourceEnd", "=", "impt", ".", "sourceEnd", ";", "}", "impt", ".", "declarationEnd", "=", "impt", ".", "declarationSourceEnd", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "impt", ".", "declarationSourceEnd", "+", "1", ";", "this", ".", "restartRecovery", "=", "true", ";", "}", "}", "protected", "void", "consumePostfixExpression", "(", ")", "{", "pushOnExpressionStack", "(", "getUnspecifiedReferenceOptimized", "(", ")", ")", ";", "}", "protected", "void", "consumePrimaryNoNewArray", "(", ")", "{", "final", "Expression", "parenthesizedExpression", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ";", "updateSourcePosition", "(", "parenthesizedExpression", ")", ";", "int", "numberOfParenthesis", "=", "(", "parenthesizedExpression", ".", "bits", "&", "ASTNode", ".", "ParenthesizedMASK", ")", ">>", "ASTNode", ".", "ParenthesizedSHIFT", ";", "parenthesizedExpression", ".", "bits", "&=", "~", "ASTNode", ".", "ParenthesizedMASK", ";", "parenthesizedExpression", ".", "bits", "|=", "(", "numberOfParenthesis", "+", "1", ")", "<<", "ASTNode", ".", "ParenthesizedSHIFT", ";", "}", "protected", "void", "consumePrimaryNoNewArrayArrayType", "(", ")", "{", "this", ".", "intPtr", "--", ";", "pushOnGenericsIdentifiersLengthStack", "(", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "]", ")", ";", "pushOnGenericsLengthStack", "(", "0", ")", ";", "pushOnExpressionStack", "(", "new", "ClassLiteralAccess", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "getTypeReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ")", ")", ";", "}", "protected", "void", "consumePrimaryNoNewArrayName", "(", ")", "{", "this", ".", "intPtr", "--", ";", "pushOnGenericsIdentifiersLengthStack", "(", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "]", ")", ";", "pushOnGenericsLengthStack", "(", "0", ")", ";", "TypeReference", "typeReference", "=", "getTypeReference", "(", "0", ")", ";", "pushOnExpressionStack", "(", "new", "ClassLiteralAccess", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "typeReference", ")", ")", ";", "}", "protected", "void", "consumePrimaryNoNewArrayNameSuper", "(", ")", "{", "pushOnGenericsIdentifiersLengthStack", "(", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "]", ")", ";", "pushOnGenericsLengthStack", "(", "0", ")", ";", "TypeReference", "typeReference", "=", "getTypeReference", "(", "0", ")", ";", "pushOnExpressionStack", "(", "new", "QualifiedSuperReference", "(", "typeReference", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "this", ".", "endPosition", ")", ")", ";", "}", "protected", "void", "consumePrimaryNoNewArrayNameThis", "(", ")", "{", "pushOnGenericsIdentifiersLengthStack", "(", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "]", ")", ";", "pushOnGenericsLengthStack", "(", "0", ")", ";", "TypeReference", "typeReference", "=", "getTypeReference", "(", "0", ")", ";", "pushOnExpressionStack", "(", "new", "QualifiedThisReference", "(", "typeReference", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "this", ".", "endPosition", ")", ")", ";", "}", "protected", "void", "consumePrimaryNoNewArrayPrimitiveArrayType", "(", ")", "{", "this", ".", "intPtr", "--", ";", "pushOnExpressionStack", "(", "new", "ClassLiteralAccess", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "getTypeReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ")", ")", ";", "}", "protected", "void", "consumePrimaryNoNewArrayPrimitiveType", "(", ")", "{", "this", ".", "intPtr", "--", ";", "pushOnExpressionStack", "(", "new", "ClassLiteralAccess", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "getTypeReference", "(", "0", ")", ")", ")", ";", "}", "protected", "void", "consumePrimaryNoNewArrayThis", "(", ")", "{", "pushOnExpressionStack", "(", "new", "ThisReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "this", ".", "endPosition", ")", ")", ";", "}", "protected", "void", "consumePrimaryNoNewArrayWithName", "(", ")", "{", "pushOnExpressionStack", "(", "getUnspecifiedReferenceOptimized", "(", ")", ")", ";", "final", "Expression", "parenthesizedExpression", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ";", "updateSourcePosition", "(", "parenthesizedExpression", ")", ";", "int", "numberOfParenthesis", "=", "(", "parenthesizedExpression", ".", "bits", "&", "ASTNode", ".", "ParenthesizedMASK", ")", ">>", "ASTNode", ".", "ParenthesizedSHIFT", ";", "parenthesizedExpression", ".", "bits", "&=", "~", "ASTNode", ".", "ParenthesizedMASK", ";", "parenthesizedExpression", ".", "bits", "|=", "(", "numberOfParenthesis", "+", "1", ")", "<<", "ASTNode", ".", "ParenthesizedSHIFT", ";", "}", "protected", "void", "consumePrimitiveArrayType", "(", ")", "{", "}", "protected", "void", "consumePrimitiveType", "(", ")", "{", "pushOnIntStack", "(", "0", ")", ";", "}", "protected", "void", "consumePushLeftBrace", "(", ")", "{", "pushOnIntStack", "(", "this", ".", "endPosition", ")", ";", "}", "protected", "void", "consumePushModifiers", "(", ")", "{", "pushOnIntStack", "(", "this", ".", "modifiers", ")", ";", "pushOnIntStack", "(", "this", ".", "modifiersSourceStart", ")", ";", "resetModifiers", "(", ")", ";", "pushOnExpressionStackLengthStack", "(", "0", ")", ";", "}", "protected", "void", "consumePushModifiersForHeader", "(", ")", "{", "checkComment", "(", ")", ";", "pushOnIntStack", "(", "this", ".", "modifiers", ")", ";", "pushOnIntStack", "(", "this", ".", "modifiersSourceStart", ")", ";", "resetModifiers", "(", ")", ";", "pushOnExpressionStackLengthStack", "(", "0", ")", ";", "}", "protected", "void", "consumePushPosition", "(", ")", "{", "pushOnIntStack", "(", "this", ".", "endPosition", ")", ";", "}", "protected", "void", "consumePushRealModifiers", "(", ")", "{", "checkComment", "(", ")", ";", "pushOnIntStack", "(", "this", ".", "modifiers", ")", ";", "pushOnIntStack", "(", "this", ".", "modifiersSourceStart", ")", ";", "resetModifiers", "(", ")", ";", "}", "protected", "void", "consumeQualifiedName", "(", ")", "{", "this", ".", "identifierLengthStack", "[", "--", "this", ".", "identifierLengthPtr", "]", "++", ";", "}", "protected", "void", "consumeRecoveryMethodHeaderName", "(", ")", "{", "boolean", "isAnnotationMethod", "=", "false", ";", "if", "(", "this", ".", "currentElement", "instanceof", "RecoveredType", ")", "{", "isAnnotationMethod", "=", "(", "(", "(", "RecoveredType", ")", "this", ".", "currentElement", ")", ".", "typeDeclaration", ".", "modifiers", "&", "ClassFileConstants", ".", "AccAnnotation", ")", "!=", "0", ";", "}", "else", "{", "RecoveredType", "recoveredType", "=", "this", ".", "currentElement", ".", "enclosingType", "(", ")", ";", "if", "(", "recoveredType", "!=", "null", ")", "{", "isAnnotationMethod", "=", "(", "recoveredType", ".", "typeDeclaration", ".", "modifiers", "&", "ClassFileConstants", ".", "AccAnnotation", ")", "!=", "0", ";", "}", "}", "consumeMethodHeaderName", "(", "isAnnotationMethod", ")", ";", "}", "protected", "void", "consumeRecoveryMethodHeaderNameWithTypeParameters", "(", ")", "{", "boolean", "isAnnotationMethod", "=", "false", ";", "if", "(", "this", ".", "currentElement", "instanceof", "RecoveredType", ")", "{", "isAnnotationMethod", "=", "(", "(", "(", "RecoveredType", ")", "this", ".", "currentElement", ")", ".", "typeDeclaration", ".", "modifiers", "&", "ClassFileConstants", ".", "AccAnnotation", ")", "!=", "0", ";", "}", "else", "{", "RecoveredType", "recoveredType", "=", "this", ".", "currentElement", ".", "enclosingType", "(", ")", ";", "if", "(", "recoveredType", "!=", "null", ")", "{", "isAnnotationMethod", "=", "(", "recoveredType", ".", "typeDeclaration", ".", "modifiers", "&", "ClassFileConstants", ".", "AccAnnotation", ")", "!=", "0", ";", "}", "}", "consumeMethodHeaderNameWithTypeParameters", "(", "isAnnotationMethod", ")", ";", "}", "protected", "void", "consumeReduceImports", "(", ")", "{", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "this", ".", "astPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "this", ".", "astPtr", "+", "1", ",", "this", ".", "compilationUnit", ".", "imports", "=", "new", "ImportReference", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "}", "protected", "void", "consumeReferenceType", "(", ")", "{", "pushOnIntStack", "(", "0", ")", ";", "}", "protected", "void", "consumeReferenceType1", "(", ")", "{", "pushOnGenericsStack", "(", "getTypeReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ")", ";", "}", "protected", "void", "consumeReferenceType2", "(", ")", "{", "pushOnGenericsStack", "(", "getTypeReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ")", ";", "}", "protected", "void", "consumeReferenceType3", "(", ")", "{", "pushOnGenericsStack", "(", "getTypeReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ")", ";", "}", "protected", "void", "consumeResourceAsLocalVariableDeclaration", "(", ")", "{", "consumeLocalVariableDeclaration", "(", ")", ";", "}", "protected", "void", "consumeResourceSpecification", "(", ")", "{", "}", "protected", "void", "consumeResourceOptionalTrailingSemiColon", "(", "boolean", "punctuated", ")", "{", "LocalDeclaration", "localDeclaration", "=", "(", "LocalDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "if", "(", "punctuated", ")", "{", "localDeclaration", ".", "declarationSourceEnd", "=", "this", ".", "endStatementPosition", ";", "}", "}", "protected", "void", "consumeRestoreDiet", "(", ")", "{", "this", ".", "dietInt", "--", ";", "}", "protected", "void", "consumeRightParen", "(", ")", "{", "pushOnIntStack", "(", "this", ".", "rParenPos", ")", ";", "}", "protected", "void", "consumeRule", "(", "int", "act", ")", "{", "switch", "(", "act", ")", "{", "case", "30", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePrimitiveType", "(", ")", ";", "break", ";", "case", "44", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeReferenceType", "(", ")", ";", "break", ";", "case", "48", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassOrInterfaceName", "(", ")", ";", "break", ";", "case", "49", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassOrInterface", "(", ")", ";", "break", ";", "case", "50", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeGenericType", "(", ")", ";", "break", ";", "case", "51", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeGenericTypeWithDiamond", "(", ")", ";", "break", ";", "case", "52", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArrayTypeWithTypeArgumentsName", "(", ")", ";", "break", ";", "case", "53", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePrimitiveArrayType", "(", ")", ";", "break", ";", "case", "54", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeNameArrayType", "(", ")", ";", "break", ";", "case", "55", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeGenericTypeNameArrayType", "(", ")", ";", "break", ";", "case", "56", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeGenericTypeArrayType", "(", ")", ";", "break", ";", "case", "61", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeQualifiedName", "(", ")", ";", "break", ";", "case", "62", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeCompilationUnit", "(", ")", ";", "break", ";", "case", "63", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInternalCompilationUnit", "(", ")", ";", "break", ";", "case", "64", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInternalCompilationUnit", "(", ")", ";", "break", ";", "case", "65", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInternalCompilationUnitWithTypes", "(", ")", ";", "break", ";", "case", "66", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInternalCompilationUnitWithTypes", "(", ")", ";", "break", ";", "case", "67", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInternalCompilationUnit", "(", ")", ";", "break", ";", "case", "68", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInternalCompilationUnitWithTypes", "(", ")", ";", "break", ";", "case", "69", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInternalCompilationUnitWithTypes", "(", ")", ";", "break", ";", "case", "70", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyInternalCompilationUnit", "(", ")", ";", "break", ";", "case", "71", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeReduceImports", "(", ")", ";", "break", ";", "case", "72", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnterCompilationUnit", "(", ")", ";", "break", ";", "case", "88", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeCatchHeader", "(", ")", ";", "break", ";", "case", "90", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeImportDeclarations", "(", ")", ";", "break", ";", "case", "92", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeDeclarations", "(", ")", ";", "break", ";", "case", "93", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePackageDeclaration", "(", ")", ";", "break", ";", "case", "94", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePackageDeclarationNameWithModifiers", "(", ")", ";", "break", ";", "case", "95", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePackageDeclarationName", "(", ")", ";", "break", ";", "case", "96", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePackageComment", "(", ")", ";", "break", ";", "case", "101", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeImportDeclaration", "(", ")", ";", "break", ";", "case", "102", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeSingleTypeImportDeclarationName", "(", ")", ";", "break", ";", "case", "103", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeImportDeclaration", "(", ")", ";", "break", ";", "case", "104", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeImportOnDemandDeclarationName", "(", ")", ";", "break", ";", "case", "107", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyTypeDeclaration", "(", ")", ";", "break", ";", "case", "111", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeModifiers2", "(", ")", ";", "break", ";", "case", "123", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAnnotationAsModifier", "(", ")", ";", "break", ";", "case", "124", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassDeclaration", "(", ")", ";", "break", ";", "case", "125", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassHeader", "(", ")", ";", "break", ";", "case", "126", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeHeaderNameWithTypeParameters", "(", ")", ";", "break", ";", "case", "128", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassHeaderName1", "(", ")", ";", "break", ";", "case", "129", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassHeaderExtends", "(", ")", ";", "break", ";", "case", "130", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassHeaderImplements", "(", ")", ";", "break", ";", "case", "132", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInterfaceTypeList", "(", ")", ";", "break", ";", "case", "133", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInterfaceType", "(", ")", ";", "break", ";", "case", "136", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassBodyDeclarations", "(", ")", ";", "break", ";", "case", "140", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassBodyDeclaration", "(", ")", ";", "break", ";", "case", "141", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"Diet", "::=\"", ")", ";", "}", "consumeDiet", "(", ")", ";", "break", ";", "case", "142", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassBodyDeclaration", "(", ")", ";", "break", ";", "case", "143", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeCreateInitializer", "(", ")", ";", "break", ";", "case", "150", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyTypeDeclaration", "(", ")", ";", "break", ";", "case", "153", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeFieldDeclaration", "(", ")", ";", "break", ";", "case", "155", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeVariableDeclarators", "(", ")", ";", "break", ";", "case", "158", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnterVariable", "(", ")", ";", "break", ";", "case", "159", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeExitVariableWithInitialization", "(", ")", ";", "break", ";", "case", "160", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeExitVariableWithoutInitialization", "(", ")", ";", "break", ";", "case", "161", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeForceNoDiet", "(", ")", ";", "break", ";", "case", "162", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeRestoreDiet", "(", ")", ";", "break", ";", "case", "167", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodDeclaration", "(", "true", ")", ";", "break", ";", "case", "168", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodDeclaration", "(", "false", ")", ";", "break", ";", "case", "169", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodHeader", "(", ")", ";", "break", ";", "case", "170", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodHeaderNameWithTypeParameters", "(", "false", ")", ";", "break", ";", "case", "171", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodHeaderName", "(", "false", ")", ";", "break", ";", "case", "172", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodHeaderRightParen", "(", ")", ";", "break", ";", "case", "173", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodHeaderExtendedDims", "(", ")", ";", "break", ";", "case", "174", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodHeaderThrowsClause", "(", ")", ";", "break", ";", "case", "175", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeConstructorHeader", "(", ")", ";", "break", ";", "case", "176", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeConstructorHeaderNameWithTypeParameters", "(", ")", ";", "break", ";", "case", "177", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeConstructorHeaderName", "(", ")", ";", "break", ";", "case", "179", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeFormalParameterList", "(", ")", ";", "break", ";", "case", "180", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeFormalParameter", "(", "false", ")", ";", "break", ";", "case", "181", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeFormalParameter", "(", "true", ")", ";", "break", ";", "case", "182", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeCatchFormalParameter", "(", ")", ";", "break", ";", "case", "183", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeCatchType", "(", ")", ";", "break", ";", "case", "184", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnionTypeAsClassType", "(", ")", ";", "break", ";", "case", "185", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnionType", "(", ")", ";", "break", ";", "case", "187", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassTypeList", "(", ")", ";", "break", ";", "case", "188", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassTypeElt", "(", ")", ";", "break", ";", "case", "189", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodBody", "(", ")", ";", "break", ";", "case", "190", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeNestedMethod", "(", ")", ";", "break", ";", "case", "191", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStaticInitializer", "(", ")", ";", "break", ";", "case", "192", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStaticOnly", "(", ")", ";", "break", ";", "case", "193", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeConstructorDeclaration", "(", ")", ";", "break", ";", "case", "194", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInvalidConstructorDeclaration", "(", ")", ";", "break", ";", "case", "195", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeExplicitConstructorInvocation", "(", "0", ",", "THIS_CALL", ")", ";", "break", ";", "case", "196", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeExplicitConstructorInvocationWithTypeArguments", "(", "0", ",", "THIS_CALL", ")", ";", "break", ";", "case", "197", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeExplicitConstructorInvocation", "(", "0", ",", "SUPER_CALL", ")", ";", "break", ";", "case", "198", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeExplicitConstructorInvocationWithTypeArguments", "(", "0", ",", "SUPER_CALL", ")", ";", "break", ";", "case", "199", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeExplicitConstructorInvocation", "(", "1", ",", "SUPER_CALL", ")", ";", "break", ";", "case", "200", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeExplicitConstructorInvocationWithTypeArguments", "(", "1", ",", "SUPER_CALL", ")", ";", "break", ";", "case", "201", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeExplicitConstructorInvocation", "(", "2", ",", "SUPER_CALL", ")", ";", "break", ";", "case", "202", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeExplicitConstructorInvocationWithTypeArguments", "(", "2", ",", "SUPER_CALL", ")", ";", "break", ";", "case", "203", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeExplicitConstructorInvocation", "(", "1", ",", "THIS_CALL", ")", ";", "break", ";", "case", "204", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeExplicitConstructorInvocationWithTypeArguments", "(", "1", ",", "THIS_CALL", ")", ";", "break", ";", "case", "205", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeExplicitConstructorInvocation", "(", "2", ",", "THIS_CALL", ")", ";", "break", ";", "case", "206", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeExplicitConstructorInvocationWithTypeArguments", "(", "2", ",", "THIS_CALL", ")", ";", "break", ";", "case", "207", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInterfaceDeclaration", "(", ")", ";", "break", ";", "case", "208", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInterfaceHeader", "(", ")", ";", "break", ";", "case", "209", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeHeaderNameWithTypeParameters", "(", ")", ";", "break", ";", "case", "211", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInterfaceHeaderName1", "(", ")", ";", "break", ";", "case", "212", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInterfaceHeaderExtends", "(", ")", ";", "break", ";", "case", "215", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInterfaceMemberDeclarations", "(", ")", ";", "break", ";", "case", "216", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyTypeDeclaration", "(", ")", ";", "break", ";", "case", "218", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInvalidMethodDeclaration", "(", ")", ";", "break", ";", "case", "219", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInvalidConstructorDeclaration", "(", "true", ")", ";", "break", ";", "case", "220", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInvalidConstructorDeclaration", "(", "false", ")", ";", "break", ";", "case", "231", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePushLeftBrace", "(", ")", ";", "break", ";", "case", "232", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyArrayInitializer", "(", ")", ";", "break", ";", "case", "233", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArrayInitializer", "(", ")", ";", "break", ";", "case", "234", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArrayInitializer", "(", ")", ";", "break", ";", "case", "236", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeVariableInitializers", "(", ")", ";", "break", ";", "case", "237", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBlock", "(", ")", ";", "break", ";", "case", "238", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeOpenBlock", "(", ")", ";", "break", ";", "case", "240", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBlockStatements", "(", ")", ";", "break", ";", "case", "244", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInvalidInterfaceDeclaration", "(", ")", ";", "break", ";", "case", "245", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInvalidAnnotationTypeDeclaration", "(", ")", ";", "break", ";", "case", "246", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInvalidEnumDeclaration", "(", ")", ";", "break", ";", "case", "247", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeLocalVariableDeclarationStatement", "(", ")", ";", "break", ";", "case", "248", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeLocalVariableDeclaration", "(", ")", ";", "break", ";", "case", "249", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeLocalVariableDeclaration", "(", ")", ";", "break", ";", "case", "250", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePushModifiers", "(", ")", ";", "break", ";", "case", "251", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePushModifiersForHeader", "(", ")", ";", "break", ";", "case", "252", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePushRealModifiers", "(", ")", ";", "break", ";", "case", "279", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyStatement", "(", ")", ";", "break", ";", "case", "280", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementLabel", "(", ")", ";", "break", ";", "case", "281", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementLabel", "(", ")", ";", "break", ";", "case", "282", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeLabel", "(", ")", ";", "break", ";", "case", "283", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeExpressionStatement", "(", ")", ";", "break", ";", "case", "292", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementIfNoElse", "(", ")", ";", "break", ";", "case", "293", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementIfWithElse", "(", ")", ";", "break", ";", "case", "294", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementIfWithElse", "(", ")", ";", "break", ";", "case", "295", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementSwitch", "(", ")", ";", "break", ";", "case", "296", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptySwitchBlock", "(", ")", ";", "break", ";", "case", "299", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeSwitchBlock", "(", ")", ";", "break", ";", "case", "301", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeSwitchBlockStatements", "(", ")", ";", "break", ";", "case", "302", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeSwitchBlockStatement", "(", ")", ";", "break", ";", "case", "304", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeSwitchLabels", "(", ")", ";", "break", ";", "case", "305", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeCaseLabel", "(", ")", ";", "break", ";", "case", "306", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeDefaultLabel", "(", ")", ";", "break", ";", "case", "307", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementWhile", "(", ")", ";", "break", ";", "case", "308", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementWhile", "(", ")", ";", "break", ";", "case", "309", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementDo", "(", ")", ";", "break", ";", "case", "310", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementFor", "(", ")", ";", "break", ";", "case", "311", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementFor", "(", ")", ";", "break", ";", "case", "312", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeForInit", "(", ")", ";", "break", ";", "case", "316", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementExpressionList", "(", ")", ";", "break", ";", "case", "317", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeSimpleAssertStatement", "(", ")", ";", "break", ";", "case", "318", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssertStatement", "(", ")", ";", "break", ";", "case", "319", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementBreak", "(", ")", ";", "break", ";", "case", "320", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementBreakWithLabel", "(", ")", ";", "break", ";", "case", "321", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementContinue", "(", ")", ";", "break", ";", "case", "322", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementContinueWithLabel", "(", ")", ";", "break", ";", "case", "323", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementReturn", "(", ")", ";", "break", ";", "case", "324", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementThrow", "(", ")", ";", "break", ";", "case", "325", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementSynchronized", "(", ")", ";", "break", ";", "case", "326", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeOnlySynchronized", "(", ")", ";", "break", ";", "case", "327", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementTry", "(", "false", ",", "false", ")", ";", "break", ";", "case", "328", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementTry", "(", "true", ",", "false", ")", ";", "break", ";", "case", "329", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementTry", "(", "false", ",", "true", ")", ";", "break", ";", "case", "330", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementTry", "(", "true", ",", "true", ")", ";", "break", ";", "case", "331", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeResourceSpecification", "(", ")", ";", "break", ";", "case", "332", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\";opt", "::=\"", ")", ";", "}", "consumeResourceOptionalTrailingSemiColon", "(", "false", ")", ";", "break", ";", "case", "333", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeResourceOptionalTrailingSemiColon", "(", "true", ")", ";", "break", ";", "case", "334", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeSingleResource", "(", ")", ";", "break", ";", "case", "335", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMultipleResources", "(", ")", ";", "break", ";", "case", "336", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeResourceOptionalTrailingSemiColon", "(", "true", ")", ";", "break", ";", "case", "337", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeResourceAsLocalVariableDeclaration", "(", ")", ";", "break", ";", "case", "338", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeResourceAsLocalVariableDeclaration", "(", ")", ";", "break", ";", "case", "340", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeExitTryBlock", "(", ")", ";", "break", ";", "case", "342", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeCatches", "(", ")", ";", "break", ";", "case", "343", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStatementCatch", "(", ")", ";", "break", ";", "case", "345", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeLeftParen", "(", ")", ";", "break", ";", "case", "346", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeRightParen", "(", ")", ";", "break", ";", "case", "351", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePrimaryNoNewArrayThis", "(", ")", ";", "break", ";", "case", "352", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePrimaryNoNewArray", "(", ")", ";", "break", ";", "case", "353", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePrimaryNoNewArrayWithName", "(", ")", ";", "break", ";", "case", "356", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePrimaryNoNewArrayNameThis", "(", ")", ";", "break", ";", "case", "357", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePrimaryNoNewArrayNameSuper", "(", ")", ";", "break", ";", "case", "358", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePrimaryNoNewArrayName", "(", ")", ";", "break", ";", "case", "359", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePrimaryNoNewArrayArrayType", "(", ")", ";", "break", ";", "case", "360", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePrimaryNoNewArrayPrimitiveArrayType", "(", ")", ";", "break", ";", "case", "361", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePrimaryNoNewArrayPrimitiveType", "(", ")", ";", "break", ";", "case", "364", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAllocationHeader", "(", ")", ";", "break", ";", "case", "365", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassInstanceCreationExpressionWithTypeArguments", "(", ")", ";", "break", ";", "case", "366", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassInstanceCreationExpression", "(", ")", ";", "break", ";", "case", "367", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassInstanceCreationExpressionQualifiedWithTypeArguments", "(", ")", ";", "break", ";", "case", "368", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassInstanceCreationExpressionQualified", "(", ")", ";", "break", ";", "case", "369", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassInstanceCreationExpressionQualified", "(", ")", ";", "break", ";", "case", "370", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassInstanceCreationExpressionQualifiedWithTypeArguments", "(", ")", ";", "break", ";", "case", "371", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnterInstanceCreationArgumentList", "(", ")", ";", "break", ";", "case", "372", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassInstanceCreationExpressionName", "(", ")", ";", "break", ";", "case", "373", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassBodyopt", "(", ")", ";", "break", ";", "case", "375", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnterAnonymousClassBody", "(", "false", ")", ";", "break", ";", "case", "376", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassBodyopt", "(", ")", ";", "break", ";", "case", "378", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnterAnonymousClassBody", "(", "true", ")", ";", "break", ";", "case", "380", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArgumentList", "(", ")", ";", "break", ";", "case", "381", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArrayCreationHeader", "(", ")", ";", "break", ";", "case", "382", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArrayCreationHeader", "(", ")", ";", "break", ";", "case", "383", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArrayCreationExpressionWithoutInitializer", "(", ")", ";", "break", ";", "case", "384", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArrayCreationExpressionWithInitializer", "(", ")", ";", "break", ";", "case", "385", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArrayCreationExpressionWithoutInitializer", "(", ")", ";", "break", ";", "case", "386", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArrayCreationExpressionWithInitializer", "(", ")", ";", "break", ";", "case", "388", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeDimWithOrWithOutExprs", "(", ")", ";", "break", ";", "case", "390", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeDimWithOrWithOutExpr", "(", ")", ";", "break", ";", "case", "391", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeDims", "(", ")", ";", "break", ";", "case", "394", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeOneDimLoop", "(", ")", ";", "break", ";", "case", "395", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeFieldAccess", "(", "false", ")", ";", "break", ";", "case", "396", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeFieldAccess", "(", "true", ")", ";", "break", ";", "case", "397", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodInvocationName", "(", ")", ";", "break", ";", "case", "398", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodInvocationNameWithTypeArguments", "(", ")", ";", "break", ";", "case", "399", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodInvocationPrimaryWithTypeArguments", "(", ")", ";", "break", ";", "case", "400", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodInvocationPrimary", "(", ")", ";", "break", ";", "case", "401", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodInvocationSuperWithTypeArguments", "(", ")", ";", "break", ";", "case", "402", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodInvocationSuper", "(", ")", ";", "break", ";", "case", "403", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArrayAccess", "(", "true", ")", ";", "break", ";", "case", "404", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArrayAccess", "(", "false", ")", ";", "break", ";", "case", "405", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArrayAccess", "(", "false", ")", ";", "break", ";", "case", "407", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePostfixExpression", "(", ")", ";", "break", ";", "case", "410", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "PLUS", ",", "true", ")", ";", "break", ";", "case", "411", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "MINUS", ",", "true", ")", ";", "break", ";", "case", "412", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePushPosition", "(", ")", ";", "break", ";", "case", "415", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "PLUS", ")", ";", "break", ";", "case", "416", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "MINUS", ")", ";", "break", ";", "case", "418", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "PLUS", ",", "false", ")", ";", "break", ";", "case", "419", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "MINUS", ",", "false", ")", ";", "break", ";", "case", "421", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "TWIDDLE", ")", ";", "break", ";", "case", "422", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "NOT", ")", ";", "break", ";", "case", "424", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeCastExpressionWithPrimitiveType", "(", ")", ";", "break", ";", "case", "425", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeCastExpressionWithGenericsArray", "(", ")", ";", "break", ";", "case", "426", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeCastExpressionWithQualifiedGenericsArray", "(", ")", ";", "break", ";", "case", "427", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeCastExpressionLL1", "(", ")", ";", "break", ";", "case", "428", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeCastExpressionWithNameArray", "(", ")", ";", "break", ";", "case", "429", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeOnlyTypeArgumentsForCastExpression", "(", ")", ";", "break", ";", "case", "430", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInsideCastExpression", "(", ")", ";", "break", ";", "case", "431", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInsideCastExpressionLL1", "(", ")", ";", "break", ";", "case", "432", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInsideCastExpressionWithQualifiedGenerics", "(", ")", ";", "break", ";", "case", "434", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "MULTIPLY", ")", ";", "break", ";", "case", "435", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "DIVIDE", ")", ";", "break", ";", "case", "436", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "REMAINDER", ")", ";", "break", ";", "case", "438", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "PLUS", ")", ";", "break", ";", "case", "439", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "MINUS", ")", ";", "break", ";", "case", "441", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "LEFT_SHIFT", ")", ";", "break", ";", "case", "442", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "RIGHT_SHIFT", ")", ";", "break", ";", "case", "443", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "UNSIGNED_RIGHT_SHIFT", ")", ";", "break", ";", "case", "445", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "LESS", ")", ";", "break", ";", "case", "446", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "GREATER", ")", ";", "break", ";", "case", "447", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "LESS_EQUAL", ")", ";", "break", ";", "case", "448", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "GREATER_EQUAL", ")", ";", "break", ";", "case", "450", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInstanceOfExpression", "(", ")", ";", "break", ";", "case", "452", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEqualityExpression", "(", "OperatorIds", ".", "EQUAL_EQUAL", ")", ";", "break", ";", "case", "453", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEqualityExpression", "(", "OperatorIds", ".", "NOT_EQUAL", ")", ";", "break", ";", "case", "455", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "AND", ")", ";", "break", ";", "case", "457", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "XOR", ")", ";", "break", ";", "case", "459", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "OR", ")", ";", "break", ";", "case", "461", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "AND_AND", ")", ";", "break", ";", "case", "463", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "OR_OR", ")", ";", "break", ";", "case", "465", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeConditionalExpression", "(", "OperatorIds", ".", "QUESTIONCOLON", ")", ";", "break", ";", "case", "468", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignment", "(", ")", ";", "break", ";", "case", "470", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "ignoreExpressionAssignment", "(", ")", ";", "break", ";", "case", "471", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "EQUAL", ")", ";", "break", ";", "case", "472", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "MULTIPLY", ")", ";", "break", ";", "case", "473", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "DIVIDE", ")", ";", "break", ";", "case", "474", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "REMAINDER", ")", ";", "break", ";", "case", "475", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "PLUS", ")", ";", "break", ";", "case", "476", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "MINUS", ")", ";", "break", ";", "case", "477", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "LEFT_SHIFT", ")", ";", "break", ";", "case", "478", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "RIGHT_SHIFT", ")", ";", "break", ";", "case", "479", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "UNSIGNED_RIGHT_SHIFT", ")", ";", "break", ";", "case", "480", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "AND", ")", ";", "break", ";", "case", "481", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "XOR", ")", ";", "break", ";", "case", "482", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "OR", ")", ";", "break", ";", "case", "486", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyExpression", "(", ")", ";", "break", ";", "case", "491", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyClassBodyDeclarationsopt", "(", ")", ";", "break", ";", "case", "492", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassBodyDeclarationsopt", "(", ")", ";", "break", ";", "case", "493", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeDefaultModifiers", "(", ")", ";", "break", ";", "case", "494", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeModifiers", "(", ")", ";", "break", ";", "case", "495", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyBlockStatementsopt", "(", ")", ";", "break", ";", "case", "497", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"Dimsopt", "::=\"", ")", ";", "}", "consumeEmptyDimsopt", "(", ")", ";", "break", ";", "case", "499", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyArgumentListopt", "(", ")", ";", "break", ";", "case", "503", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeFormalParameterListopt", "(", ")", ";", "break", ";", "case", "507", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyInterfaceMemberDeclarationsopt", "(", ")", ";", "break", ";", "case", "508", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInterfaceMemberDeclarationsopt", "(", ")", ";", "break", ";", "case", "509", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeNestedType", "(", ")", ";", "break", ";", "case", "510", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyForInitopt", "(", ")", ";", "break", ";", "case", "512", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyForUpdateopt", "(", ")", ";", "break", ";", "case", "516", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyCatchesopt", "(", ")", ";", "break", ";", "case", "518", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumDeclaration", "(", ")", ";", "break", ";", "case", "519", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumHeader", "(", ")", ";", "break", ";", "case", "520", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumHeaderName", "(", ")", ";", "break", ";", "case", "521", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumHeaderNameWithTypeParameters", "(", ")", ";", "break", ";", "case", "522", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumBodyNoConstants", "(", ")", ";", "break", ";", "case", "523", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumBodyNoConstants", "(", ")", ";", "break", ";", "case", "524", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumBodyWithConstants", "(", ")", ";", "break", ";", "case", "525", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumBodyWithConstants", "(", ")", ";", "break", ";", "case", "527", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumConstants", "(", ")", ";", "break", ";", "case", "528", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumConstantHeaderName", "(", ")", ";", "break", ";", "case", "529", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumConstantHeader", "(", ")", ";", "break", ";", "case", "530", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumConstantWithClassBody", "(", ")", ";", "break", ";", "case", "531", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumConstantNoClassBody", "(", ")", ";", "break", ";", "case", "532", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArguments", "(", ")", ";", "break", ";", "case", "533", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyArguments", "(", ")", ";", "break", ";", "case", "535", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumDeclarations", "(", ")", ";", "break", ";", "case", "536", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyEnumDeclarations", "(", ")", ";", "break", ";", "case", "538", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnhancedForStatement", "(", ")", ";", "break", ";", "case", "539", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnhancedForStatement", "(", ")", ";", "break", ";", "case", "540", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnhancedForStatementHeaderInit", "(", "false", ")", ";", "break", ";", "case", "541", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnhancedForStatementHeaderInit", "(", "true", ")", ";", "break", ";", "case", "542", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnhancedForStatementHeader", "(", ")", ";", "break", ";", "case", "543", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeImportDeclaration", "(", ")", ";", "break", ";", "case", "544", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeSingleStaticImportDeclarationName", "(", ")", ";", "break", ";", "case", "545", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeImportDeclaration", "(", ")", ";", "break", ";", "case", "546", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStaticImportOnDemandDeclarationName", "(", ")", ";", "break", ";", "case", "547", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeArguments", "(", ")", ";", "break", ";", "case", "548", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeOnlyTypeArguments", "(", ")", ";", "break", ";", "case", "550", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeArgumentList1", "(", ")", ";", "break", ";", "case", "552", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeArgumentList", "(", ")", ";", "break", ";", "case", "553", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeArgument", "(", ")", ";", "break", ";", "case", "557", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeReferenceType1", "(", ")", ";", "break", ";", "case", "558", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeArgumentReferenceType1", "(", ")", ";", "break", ";", "case", "560", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeArgumentList2", "(", ")", ";", "break", ";", "case", "563", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeReferenceType2", "(", ")", ";", "break", ";", "case", "564", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeArgumentReferenceType2", "(", ")", ";", "break", ";", "case", "566", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeArgumentList3", "(", ")", ";", "break", ";", "case", "569", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeReferenceType3", "(", ")", ";", "break", ";", "case", "570", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcard", "(", ")", ";", "break", ";", "case", "571", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcardWithBounds", "(", ")", ";", "break", ";", "case", "572", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcardBoundsExtends", "(", ")", ";", "break", ";", "case", "573", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcardBoundsSuper", "(", ")", ";", "break", ";", "case", "574", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcard1", "(", ")", ";", "break", ";", "case", "575", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcard1WithBounds", "(", ")", ";", "break", ";", "case", "576", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcardBounds1Extends", "(", ")", ";", "break", ";", "case", "577", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcardBounds1Super", "(", ")", ";", "break", ";", "case", "578", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcard2", "(", ")", ";", "break", ";", "case", "579", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcard2WithBounds", "(", ")", ";", "break", ";", "case", "580", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcardBounds2Extends", "(", ")", ";", "break", ";", "case", "581", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcardBounds2Super", "(", ")", ";", "break", ";", "case", "582", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcard3", "(", ")", ";", "break", ";", "case", "583", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcard3WithBounds", "(", ")", ";", "break", ";", "case", "584", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcardBounds3Extends", "(", ")", ";", "break", ";", "case", "585", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcardBounds3Super", "(", ")", ";", "break", ";", "case", "586", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeParameterHeader", "(", ")", ";", "break", ";", "case", "587", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeParameters", "(", ")", ";", "break", ";", "case", "589", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeParameterList", "(", ")", ";", "break", ";", "case", "591", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeParameterWithExtends", "(", ")", ";", "break", ";", "case", "592", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeParameterWithExtendsAndBounds", "(", ")", ";", "break", ";", "case", "594", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAdditionalBoundList", "(", ")", ";", "break", ";", "case", "595", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAdditionalBound", "(", ")", ";", "break", ";", "case", "597", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeParameterList1", "(", ")", ";", "break", ";", "case", "598", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeParameter1", "(", ")", ";", "break", ";", "case", "599", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeParameter1WithExtends", "(", ")", ";", "break", ";", "case", "600", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeParameter1WithExtendsAndBounds", "(", ")", ";", "break", ";", "case", "602", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAdditionalBoundList1", "(", ")", ";", "break", ";", "case", "603", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAdditionalBound1", "(", ")", ";", "break", ";", "case", "609", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "PLUS", ")", ";", "break", ";", "case", "610", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "MINUS", ")", ";", "break", ";", "case", "613", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "TWIDDLE", ")", ";", "break", ";", "case", "614", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "NOT", ")", ";", "break", ";", "case", "617", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "MULTIPLY", ")", ";", "break", ";", "case", "618", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "MULTIPLY", ")", ";", "break", ";", "case", "619", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "DIVIDE", ")", ";", "break", ";", "case", "620", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "DIVIDE", ")", ";", "break", ";", "case", "621", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "REMAINDER", ")", ";", "break", ";", "case", "622", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "REMAINDER", ")", ";", "break", ";", "case", "624", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "PLUS", ")", ";", "break", ";", "case", "625", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "PLUS", ")", ";", "break", ";", "case", "626", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "MINUS", ")", ";", "break", ";", "case", "627", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "MINUS", ")", ";", "break", ";", "case", "629", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "LEFT_SHIFT", ")", ";", "break", ";", "case", "630", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "LEFT_SHIFT", ")", ";", "break", ";", "case", "631", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "RIGHT_SHIFT", ")", ";", "break", ";", "case", "632", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "RIGHT_SHIFT", ")", ";", "break", ";", "case", "633", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "UNSIGNED_RIGHT_SHIFT", ")", ";", "break", ";", "case", "634", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "UNSIGNED_RIGHT_SHIFT", ")", ";", "break", ";", "case", "636", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "LESS", ")", ";", "break", ";", "case", "637", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "LESS", ")", ";", "break", ";", "case", "638", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "GREATER", ")", ";", "break", ";", "case", "639", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "GREATER", ")", ";", "break", ";", "case", "640", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "LESS_EQUAL", ")", ";", "break", ";", "case", "641", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "LESS_EQUAL", ")", ";", "break", ";", "case", "642", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "GREATER_EQUAL", ")", ";", "break", ";", "case", "643", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "GREATER_EQUAL", ")", ";", "break", ";", "case", "645", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInstanceOfExpressionWithName", "(", ")", ";", "break", ";", "case", "646", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInstanceOfExpression", "(", ")", ";", "break", ";", "case", "648", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEqualityExpression", "(", "OperatorIds", ".", "EQUAL_EQUAL", ")", ";", "break", ";", "case", "649", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEqualityExpressionWithName", "(", "OperatorIds", ".", "EQUAL_EQUAL", ")", ";", "break", ";", "case", "650", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEqualityExpression", "(", "OperatorIds", ".", "NOT_EQUAL", ")", ";", "break", ";", "case", "651", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEqualityExpressionWithName", "(", "OperatorIds", ".", "NOT_EQUAL", ")", ";", "break", ";", "case", "653", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "AND", ")", ";", "break", ";", "case", "654", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "AND", ")", ";", "break", ";", "case", "656", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "XOR", ")", ";", "break", ";", "case", "657", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "XOR", ")", ";", "break", ";", "case", "659", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "OR", ")", ";", "break", ";", "case", "660", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "OR", ")", ";", "break", ";", "case", "662", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "AND_AND", ")", ";", "break", ";", "case", "663", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "AND_AND", ")", ";", "break", ";", "case", "665", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "OR_OR", ")", ";", "break", ";", "case", "666", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "OR_OR", ")", ";", "break", ";", "case", "668", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeConditionalExpression", "(", "OperatorIds", ".", "QUESTIONCOLON", ")", ";", "break", ";", "case", "669", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeConditionalExpressionWithName", "(", "OperatorIds", ".", "QUESTIONCOLON", ")", ";", "break", ";", "case", "673", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAnnotationTypeDeclarationHeaderName", "(", ")", ";", "break", ";", "case", "674", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAnnotationTypeDeclarationHeaderNameWithTypeParameters", "(", ")", ";", "break", ";", "case", "675", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAnnotationTypeDeclarationHeaderNameWithTypeParameters", "(", ")", ";", "break", ";", "case", "676", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAnnotationTypeDeclarationHeaderName", "(", ")", ";", "break", ";", "case", "677", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAnnotationTypeDeclarationHeader", "(", ")", ";", "break", ";", "case", "678", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAnnotationTypeDeclaration", "(", ")", ";", "break", ";", "case", "680", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyAnnotationTypeMemberDeclarationsopt", "(", ")", ";", "break", ";", "case", "681", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAnnotationTypeMemberDeclarationsopt", "(", ")", ";", "break", ";", "case", "683", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAnnotationTypeMemberDeclarations", "(", ")", ";", "break", ";", "case", "684", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodHeaderNameWithTypeParameters", "(", "true", ")", ";", "break", ";", "case", "685", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodHeaderName", "(", "true", ")", ";", "break", ";", "case", "686", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyMethodHeaderDefaultValue", "(", ")", ";", "break", ";", "case", "687", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodHeaderDefaultValue", "(", ")", ";", "break", ";", "case", "688", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodHeader", "(", ")", ";", "break", ";", "case", "689", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAnnotationTypeMemberDeclaration", "(", ")", ";", "break", ";", "case", "697", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAnnotationName", "(", ")", ";", "break", ";", "case", "698", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeNormalAnnotation", "(", ")", ";", "break", ";", "case", "699", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyMemberValuePairsopt", "(", ")", ";", "break", ";", "case", "702", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMemberValuePairs", "(", ")", ";", "break", ";", "case", "703", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMemberValuePair", "(", ")", ";", "break", ";", "case", "704", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnterMemberValue", "(", ")", ";", "break", ";", "case", "705", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeExitMemberValue", "(", ")", ";", "break", ";", "case", "707", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMemberValueAsName", "(", ")", ";", "break", ";", "case", "710", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMemberValueArrayInitializer", "(", ")", ";", "break", ";", "case", "711", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMemberValueArrayInitializer", "(", ")", ";", "break", ";", "case", "712", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyMemberValueArrayInitializer", "(", ")", ";", "break", ";", "case", "713", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyMemberValueArrayInitializer", "(", ")", ";", "break", ";", "case", "714", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnterMemberValueArrayInitializer", "(", ")", ";", "break", ";", "case", "716", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMemberValues", "(", ")", ";", "break", ";", "case", "717", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMarkerAnnotation", "(", ")", ";", "break", ";", "case", "718", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeSingleMemberAnnotationMemberValue", "(", ")", ";", "break", ";", "case", "719", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeSingleMemberAnnotation", "(", ")", ";", "break", ";", "case", "720", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeRecoveryMethodHeaderNameWithTypeParameters", "(", ")", ";", "break", ";", "case", "721", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeRecoveryMethodHeaderName", "(", ")", ";", "break", ";", "case", "722", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodHeader", "(", ")", ";", "break", ";", "case", "723", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodHeader", "(", ")", ";", "break", ";", "}", "}", "protected", "void", "consumeEnterInstanceCreationArgumentList", "(", ")", "{", "this", ".", "shouldDeferRecovery", "=", "true", ";", "}", "protected", "void", "consumeSimpleAssertStatement", "(", ")", "{", "this", ".", "expressionLengthPtr", "--", ";", "pushOnAstStack", "(", "new", "AssertStatement", "(", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ")", ";", "}", "protected", "void", "consumeSingleMemberAnnotation", "(", ")", "{", "SingleMemberAnnotation", "singleMemberAnnotation", "=", "null", ";", "int", "oldIndex", "=", "this", ".", "identifierPtr", ";", "TypeReference", "typeReference", "=", "getAnnotationType", "(", ")", ";", "singleMemberAnnotation", "=", "new", "SingleMemberAnnotation", "(", "typeReference", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ";", "singleMemberAnnotation", ".", "memberValue", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ";", "this", ".", "expressionLengthPtr", "--", ";", "singleMemberAnnotation", ".", "declarationSourceEnd", "=", "this", ".", "rParenPos", ";", "pushOnExpressionStack", "(", "singleMemberAnnotation", ")", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "annotationRecoveryCheckPoint", "(", "singleMemberAnnotation", ".", "sourceStart", ",", "singleMemberAnnotation", ".", "declarationSourceEnd", ")", ";", "if", "(", "this", ".", "currentElement", "instanceof", "RecoveredAnnotation", ")", "{", "this", ".", "currentElement", "=", "(", "(", "RecoveredAnnotation", ")", "this", ".", "currentElement", ")", ".", "addAnnotation", "(", "singleMemberAnnotation", ",", "oldIndex", ")", ";", "}", "}", "if", "(", "!", "this", ".", "statementRecoveryActivated", "&&", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", "&&", "this", ".", "lastErrorEndPositionBeforeRecovery", "<", "this", ".", "scanner", ".", "currentPosition", ")", "{", "problemReporter", "(", ")", ".", "invalidUsageOfAnnotation", "(", "singleMemberAnnotation", ")", ";", "}", "this", ".", "recordStringLiterals", "=", "true", ";", "}", "protected", "void", "consumeSingleMemberAnnotationMemberValue", "(", ")", "{", "if", "(", "this", ".", "currentElement", "!=", "null", "&&", "this", ".", "currentElement", "instanceof", "RecoveredAnnotation", ")", "{", "RecoveredAnnotation", "recoveredAnnotation", "=", "(", "RecoveredAnnotation", ")", "this", ".", "currentElement", ";", "recoveredAnnotation", ".", "setKind", "(", "RecoveredAnnotation", ".", "SINGLE_MEMBER", ")", ";", "}", "}", "protected", "void", "consumeSingleResource", "(", ")", "{", "}", "protected", "void", "consumeSingleStaticImportDeclarationName", "(", ")", "{", "ImportReference", "impt", ";", "int", "length", ";", "char", "[", "]", "[", "]", "tokens", "=", "new", "char", "[", "length", "=", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "--", "]", "]", "[", "]", ";", "this", ".", "identifierPtr", "-=", "length", ";", "long", "[", "]", "positions", "=", "new", "long", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierStack", ",", "this", ".", "identifierPtr", "+", "1", ",", "tokens", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierPositionStack", ",", "this", ".", "identifierPtr", "+", "1", ",", "positions", ",", "0", ",", "length", ")", ";", "pushOnAstStack", "(", "impt", "=", "new", "ImportReference", "(", "tokens", ",", "positions", ",", "false", ",", "ClassFileConstants", ".", "AccStatic", ")", ")", ";", "this", ".", "modifiers", "=", "ClassFileConstants", ".", "AccDefault", ";", "this", ".", "modifiersSourceStart", "=", "-", "1", ";", "if", "(", "this", ".", "currentToken", "==", "TokenNameSEMICOLON", ")", "{", "impt", ".", "declarationSourceEnd", "=", "this", ".", "scanner", ".", "currentPosition", "-", "1", ";", "}", "else", "{", "impt", ".", "declarationSourceEnd", "=", "impt", ".", "sourceEnd", ";", "}", "impt", ".", "declarationEnd", "=", "impt", ".", "declarationSourceEnd", ";", "impt", ".", "declarationSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "if", "(", "!", "this", ".", "statementRecoveryActivated", "&&", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", "&&", "this", ".", "lastErrorEndPositionBeforeRecovery", "<", "this", ".", "scanner", ".", "currentPosition", ")", "{", "impt", ".", "modifiers", "=", "ClassFileConstants", ".", "AccDefault", ";", "problemReporter", "(", ")", ".", "invalidUsageOfStaticImports", "(", "impt", ")", ";", "}", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "impt", ".", "declarationSourceEnd", "+", "1", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "impt", ",", "0", ")", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "this", ".", "restartRecovery", "=", "true", ";", "}", "}", "protected", "void", "consumeSingleTypeImportDeclarationName", "(", ")", "{", "ImportReference", "impt", ";", "int", "length", ";", "char", "[", "]", "[", "]", "tokens", "=", "new", "char", "[", "length", "=", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "--", "]", "]", "[", "]", ";", "this", ".", "identifierPtr", "-=", "length", ";", "long", "[", "]", "positions", "=", "new", "long", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierStack", ",", "this", ".", "identifierPtr", "+", "1", ",", "tokens", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierPositionStack", ",", "this", ".", "identifierPtr", "+", "1", ",", "positions", ",", "0", ",", "length", ")", ";", "pushOnAstStack", "(", "impt", "=", "new", "ImportReference", "(", "tokens", ",", "positions", ",", "false", ",", "ClassFileConstants", ".", "AccDefault", ")", ")", ";", "if", "(", "this", ".", "currentToken", "==", "TokenNameSEMICOLON", ")", "{", "impt", ".", "declarationSourceEnd", "=", "this", ".", "scanner", ".", "currentPosition", "-", "1", ";", "}", "else", "{", "impt", ".", "declarationSourceEnd", "=", "impt", ".", "sourceEnd", ";", "}", "impt", ".", "declarationEnd", "=", "impt", ".", "declarationSourceEnd", ";", "impt", ".", "declarationSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "impt", ".", "declarationSourceEnd", "+", "1", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "impt", ",", "0", ")", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "this", ".", "restartRecovery", "=", "true", ";", "}", "}", "protected", "void", "consumeStatementBreak", "(", ")", "{", "pushOnAstStack", "(", "new", "BreakStatement", "(", "null", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "this", ".", "endStatementPosition", ")", ")", ";", "if", "(", "this", ".", "pendingRecoveredType", "!=", "null", ")", "{", "if", "(", "this", ".", "pendingRecoveredType", ".", "allocation", "==", "null", "&&", "this", ".", "endPosition", "<=", "this", ".", "pendingRecoveredType", ".", "declarationSourceEnd", ")", "{", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", "=", "this", ".", "pendingRecoveredType", ";", "this", ".", "pendingRecoveredType", "=", "null", ";", "return", ";", "}", "this", ".", "pendingRecoveredType", "=", "null", ";", "}", "}", "protected", "void", "consumeStatementBreakWithLabel", "(", ")", "{", "pushOnAstStack", "(", "new", "BreakStatement", "(", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "--", "]", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "this", ".", "endStatementPosition", ")", ")", ";", "this", ".", "identifierLengthPtr", "--", ";", "}", "protected", "void", "consumeStatementCatch", "(", ")", "{", "this", ".", "astLengthPtr", "--", ";", "this", ".", "listLength", "=", "0", ";", "}", "protected", "void", "consumeStatementContinue", "(", ")", "{", "pushOnAstStack", "(", "new", "ContinueStatement", "(", "null", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "this", ".", "endStatementPosition", ")", ")", ";", "}", "protected", "void", "consumeStatementContinueWithLabel", "(", ")", "{", "pushOnAstStack", "(", "new", "ContinueStatement", "(", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "--", "]", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "this", ".", "endStatementPosition", ")", ")", ";", "this", ".", "identifierLengthPtr", "--", ";", "}", "protected", "void", "consumeStatementDo", "(", ")", "{", "this", ".", "intPtr", "--", ";", "Statement", "statement", "=", "(", "Statement", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "this", ".", "expressionLengthPtr", "--", ";", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", "=", "new", "DoStatement", "(", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ",", "statement", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "this", ".", "endStatementPosition", ")", ";", "}", "protected", "void", "consumeStatementExpressionList", "(", ")", "{", "concatExpressionLists", "(", ")", ";", "}", "protected", "void", "consumeStatementFor", "(", ")", "{", "int", "length", ";", "Expression", "cond", "=", "null", ";", "Statement", "[", "]", "inits", ",", "updates", ";", "boolean", "scope", "=", "true", ";", "this", ".", "astLengthPtr", "--", ";", "Statement", "statement", "=", "(", "Statement", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "--", "]", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "==", "0", ")", "{", "updates", "=", "null", ";", "}", "else", "{", "this", ".", "expressionPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "this", ".", "expressionPtr", "+", "1", ",", "updates", "=", "new", "Statement", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "if", "(", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", "!=", "0", ")", "cond", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ";", "if", "(", "(", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", "==", "0", ")", "{", "inits", "=", "null", ";", "scope", "=", "false", ";", "}", "else", "{", "if", "(", "length", "==", "-", "1", ")", "{", "scope", "=", "false", ";", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ";", "this", ".", "expressionPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "this", ".", "expressionPtr", "+", "1", ",", "inits", "=", "new", "Statement", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "else", "{", "this", ".", "astPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "this", ".", "astPtr", "+", "1", ",", "inits", "=", "new", "Statement", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "}", "pushOnAstStack", "(", "new", "ForStatement", "(", "inits", ",", "cond", ",", "updates", ",", "statement", ",", "scope", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "this", ".", "endStatementPosition", ")", ")", ";", "}", "protected", "void", "consumeStatementIfNoElse", "(", ")", "{", "this", ".", "expressionLengthPtr", "--", ";", "Statement", "thenStatement", "=", "(", "Statement", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", "=", "new", "IfStatement", "(", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ",", "thenStatement", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "this", ".", "endStatementPosition", ")", ";", "}", "protected", "void", "consumeStatementIfWithElse", "(", ")", "{", "this", ".", "expressionLengthPtr", "--", ";", "this", ".", "astLengthPtr", "--", ";", "this", ".", "astStack", "[", "--", "this", ".", "astPtr", "]", "=", "new", "IfStatement", "(", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ",", "(", "Statement", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ",", "(", "Statement", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "+", "1", "]", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "this", ".", "endStatementPosition", ")", ";", "}", "protected", "void", "consumeStatementLabel", "(", ")", "{", "Statement", "statement", "=", "(", "Statement", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", "=", "new", "LabeledStatement", "(", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", ",", "statement", ",", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "--", "]", ",", "this", ".", "endStatementPosition", ")", ";", "this", ".", "identifierLengthPtr", "--", ";", "}", "protected", "void", "consumeStatementReturn", "(", ")", "{", "if", "(", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", "!=", "0", ")", "{", "pushOnAstStack", "(", "new", "ReturnStatement", "(", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "this", ".", "endStatementPosition", ")", ")", ";", "}", "else", "{", "pushOnAstStack", "(", "new", "ReturnStatement", "(", "null", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "this", ".", "endStatementPosition", ")", ")", ";", "}", "}", "protected", "void", "consumeStatementSwitch", "(", ")", "{", "int", "length", ";", "SwitchStatement", "switchStatement", "=", "new", "SwitchStatement", "(", ")", ";", "this", ".", "expressionLengthPtr", "--", ";", "switchStatement", ".", "expression", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ";", "if", "(", "(", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "this", ".", "astPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "this", ".", "astPtr", "+", "1", ",", "switchStatement", ".", "statements", "=", "new", "Statement", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "switchStatement", ".", "explicitDeclarations", "=", "this", ".", "realBlockStack", "[", "this", ".", "realBlockPtr", "--", "]", ";", "pushOnAstStack", "(", "switchStatement", ")", ";", "switchStatement", ".", "blockStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "switchStatement", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "switchStatement", ".", "sourceEnd", "=", "this", ".", "endStatementPosition", ";", "if", "(", "length", "==", "0", "&&", "!", "containsComment", "(", "switchStatement", ".", "blockStart", ",", "switchStatement", ".", "sourceEnd", ")", ")", "{", "switchStatement", ".", "bits", "|=", "ASTNode", ".", "UndocumentedEmptyBlock", ";", "}", "}", "protected", "void", "consumeStatementSynchronized", "(", ")", "{", "if", "(", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "]", "==", "0", ")", "{", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "]", "=", "1", ";", "this", ".", "expressionLengthPtr", "--", ";", "this", ".", "astStack", "[", "++", "this", ".", "astPtr", "]", "=", "new", "SynchronizedStatement", "(", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ",", "null", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "this", ".", "endStatementPosition", ")", ";", "}", "else", "{", "this", ".", "expressionLengthPtr", "--", ";", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", "=", "new", "SynchronizedStatement", "(", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ",", "(", "Block", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "this", ".", "endStatementPosition", ")", ";", "}", "resetModifiers", "(", ")", ";", "}", "protected", "void", "consumeStatementThrow", "(", ")", "{", "this", ".", "expressionLengthPtr", "--", ";", "pushOnAstStack", "(", "new", "ThrowStatement", "(", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "this", ".", "endStatementPosition", ")", ")", ";", "}", "protected", "void", "consumeStatementTry", "(", "boolean", "withFinally", ",", "boolean", "hasResources", ")", "{", "int", "length", ";", "TryStatement", "tryStmt", "=", "new", "TryStatement", "(", ")", ";", "if", "(", "withFinally", ")", "{", "this", ".", "astLengthPtr", "--", ";", "tryStmt", ".", "finallyBlock", "=", "(", "Block", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "--", "]", ";", "}", "if", "(", "(", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "if", "(", "length", "==", "1", ")", "{", "tryStmt", ".", "catchBlocks", "=", "new", "Block", "[", "]", "{", "(", "Block", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "--", "]", "}", ";", "tryStmt", ".", "catchArguments", "=", "new", "Argument", "[", "]", "{", "(", "Argument", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "--", "]", "}", ";", "}", "else", "{", "Block", "[", "]", "bks", "=", "(", "tryStmt", ".", "catchBlocks", "=", "new", "Block", "[", "length", "]", ")", ";", "Argument", "[", "]", "args", "=", "(", "tryStmt", ".", "catchArguments", "=", "new", "Argument", "[", "length", "]", ")", ";", "while", "(", "length", "--", ">", "0", ")", "{", "bks", "[", "length", "]", "=", "(", "Block", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "--", "]", ";", "args", "[", "length", "]", "=", "(", "Argument", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "--", "]", ";", "}", "}", "}", "this", ".", "astLengthPtr", "--", ";", "tryStmt", ".", "tryBlock", "=", "(", "Block", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "--", "]", ";", "if", "(", "hasResources", ")", "{", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ";", "LocalDeclaration", "[", "]", "resources", "=", "new", "LocalDeclaration", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "(", "this", ".", "astPtr", "-=", "length", ")", "+", "1", ",", "resources", ",", "0", ",", "length", ")", ";", "tryStmt", ".", "resources", "=", "resources", ";", "if", "(", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_7", ")", "{", "problemReporter", "(", ")", ".", "autoManagedResourcesNotBelow17", "(", "resources", ")", ";", "}", "}", "tryStmt", ".", "sourceEnd", "=", "this", ".", "endStatementPosition", ";", "tryStmt", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "pushOnAstStack", "(", "tryStmt", ")", ";", "}", "protected", "void", "consumeStatementWhile", "(", ")", "{", "this", ".", "expressionLengthPtr", "--", ";", "Statement", "statement", "=", "(", "Statement", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", "=", "new", "WhileStatement", "(", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ",", "statement", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ",", "this", ".", "endStatementPosition", ")", ";", "}", "protected", "void", "consumeStaticImportOnDemandDeclarationName", "(", ")", "{", "ImportReference", "impt", ";", "int", "length", ";", "char", "[", "]", "[", "]", "tokens", "=", "new", "char", "[", "length", "=", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "--", "]", "]", "[", "]", ";", "this", ".", "identifierPtr", "-=", "length", ";", "long", "[", "]", "positions", "=", "new", "long", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierStack", ",", "this", ".", "identifierPtr", "+", "1", ",", "tokens", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierPositionStack", ",", "this", ".", "identifierPtr", "+", "1", ",", "positions", ",", "0", ",", "length", ")", ";", "pushOnAstStack", "(", "impt", "=", "new", "ImportReference", "(", "tokens", ",", "positions", ",", "true", ",", "ClassFileConstants", ".", "AccStatic", ")", ")", ";", "impt", ".", "trailingStarPosition", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "this", ".", "modifiers", "=", "ClassFileConstants", ".", "AccDefault", ";", "this", ".", "modifiersSourceStart", "=", "-", "1", ";", "if", "(", "this", ".", "currentToken", "==", "TokenNameSEMICOLON", ")", "{", "impt", ".", "declarationSourceEnd", "=", "this", ".", "scanner", ".", "currentPosition", "-", "1", ";", "}", "else", "{", "impt", ".", "declarationSourceEnd", "=", "impt", ".", "sourceEnd", ";", "}", "impt", ".", "declarationEnd", "=", "impt", ".", "declarationSourceEnd", ";", "impt", ".", "declarationSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "if", "(", "!", "this", ".", "statementRecoveryActivated", "&&", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", "&&", "this", ".", "lastErrorEndPositionBeforeRecovery", "<", "this", ".", "scanner", ".", "currentPosition", ")", "{", "impt", ".", "modifiers", "=", "ClassFileConstants", ".", "AccDefault", ";", "problemReporter", "(", ")", ".", "invalidUsageOfStaticImports", "(", "impt", ")", ";", "}", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "impt", ".", "declarationSourceEnd", "+", "1", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "impt", ",", "0", ")", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "this", ".", "restartRecovery", "=", "true", ";", "}", "}", "protected", "void", "consumeStaticInitializer", "(", ")", "{", "Block", "block", "=", "(", "Block", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "if", "(", "this", ".", "diet", ")", "block", ".", "bits", "&=", "~", "ASTNode", ".", "UndocumentedEmptyBlock", ";", "Initializer", "initializer", "=", "new", "Initializer", "(", "block", ",", "ClassFileConstants", ".", "AccStatic", ")", ";", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", "=", "initializer", ";", "initializer", ".", "sourceEnd", "=", "this", ".", "endStatementPosition", ";", "initializer", ".", "declarationSourceEnd", "=", "flushCommentsDefinedPriorTo", "(", "this", ".", "endStatementPosition", ")", ";", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "--", ";", "initializer", ".", "declarationSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "initializer", ".", "bodyStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "initializer", ".", "bodyEnd", "=", "this", ".", "endPosition", ";", "initializer", ".", "javadoc", "=", "this", ".", "javadoc", ";", "this", ".", "javadoc", "=", "null", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "initializer", ".", "declarationSourceEnd", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "initializer", ",", "0", ")", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "}", "}", "protected", "void", "consumeStaticOnly", "(", ")", "{", "int", "savedModifiersSourceStart", "=", "this", ".", "modifiersSourceStart", ";", "checkComment", "(", ")", ";", "if", "(", "this", ".", "modifiersSourceStart", ">=", "savedModifiersSourceStart", ")", "{", "this", ".", "modifiersSourceStart", "=", "savedModifiersSourceStart", ";", "}", "pushOnIntStack", "(", "this", ".", "scanner", ".", "currentPosition", ")", ";", "pushOnIntStack", "(", "this", ".", "modifiersSourceStart", ">=", "0", "?", "this", ".", "modifiersSourceStart", ":", "this", ".", "scanner", ".", "startPosition", ")", ";", "jumpOverMethodBody", "(", ")", ";", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "++", ";", "resetModifiers", "(", ")", ";", "this", ".", "expressionLengthPtr", "--", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "recoveredStaticInitializerStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "]", ";", "}", "}", "protected", "void", "consumeSwitchBlock", "(", ")", "{", "concatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeSwitchBlockStatement", "(", ")", "{", "concatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeSwitchBlockStatements", "(", ")", "{", "concatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeSwitchLabels", "(", ")", "{", "optimizedConcatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeToken", "(", "int", "type", ")", "{", "switch", "(", "type", ")", "{", "case", "TokenNameIdentifier", ":", "pushIdentifier", "(", ")", ";", "if", "(", "this", ".", "scanner", ".", "useAssertAsAnIndentifier", "&&", "this", ".", "lastErrorEndPositionBeforeRecovery", "<", "this", ".", "scanner", ".", "currentPosition", ")", "{", "long", "positions", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ";", "if", "(", "!", "this", ".", "statementRecoveryActivated", ")", "problemReporter", "(", ")", ".", "useAssertAsAnIdentifier", "(", "(", "int", ")", "(", "positions", ">>>", "32", ")", ",", "(", "int", ")", "positions", ")", ";", "}", "if", "(", "this", ".", "scanner", ".", "useEnumAsAnIndentifier", "&&", "this", ".", "lastErrorEndPositionBeforeRecovery", "<", "this", ".", "scanner", ".", "currentPosition", ")", "{", "long", "positions", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ";", "if", "(", "!", "this", ".", "statementRecoveryActivated", ")", "problemReporter", "(", ")", ".", "useEnumAsAnIdentifier", "(", "(", "int", ")", "(", "positions", ">>>", "32", ")", ",", "(", "int", ")", "positions", ")", ";", "}", "break", ";", "case", "TokenNameinterface", ":", "pushOnIntStack", "(", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "startPosition", ")", ";", "break", ";", "case", "TokenNameabstract", ":", "checkAndSetModifiers", "(", "ClassFileConstants", ".", "AccAbstract", ")", ";", "pushOnExpressionStackLengthStack", "(", "0", ")", ";", "break", ";", "case", "TokenNamestrictfp", ":", "checkAndSetModifiers", "(", "ClassFileConstants", ".", "AccStrictfp", ")", ";", "pushOnExpressionStackLengthStack", "(", "0", ")", ";", "break", ";", "case", "TokenNamefinal", ":", "checkAndSetModifiers", "(", "ClassFileConstants", ".", "AccFinal", ")", ";", "pushOnExpressionStackLengthStack", "(", "0", ")", ";", "break", ";", "case", "TokenNamenative", ":", "checkAndSetModifiers", "(", "ClassFileConstants", ".", "AccNative", ")", ";", "pushOnExpressionStackLengthStack", "(", "0", ")", ";", "break", ";", "case", "TokenNameprivate", ":", "checkAndSetModifiers", "(", "ClassFileConstants", ".", "AccPrivate", ")", ";", "pushOnExpressionStackLengthStack", "(", "0", ")", ";", "break", ";", "case", "TokenNameprotected", ":", "checkAndSetModifiers", "(", "ClassFileConstants", ".", "AccProtected", ")", ";", "pushOnExpressionStackLengthStack", "(", "0", ")", ";", "break", ";", "case", "TokenNamepublic", ":", "checkAndSetModifiers", "(", "ClassFileConstants", ".", "AccPublic", ")", ";", "pushOnExpressionStackLengthStack", "(", "0", ")", ";", "break", ";", "case", "TokenNametransient", ":", "checkAndSetModifiers", "(", "ClassFileConstants", ".", "AccTransient", ")", ";", "pushOnExpressionStackLengthStack", "(", "0", ")", ";", "break", ";", "case", "TokenNamevolatile", ":", "checkAndSetModifiers", "(", "ClassFileConstants", ".", "AccVolatile", ")", ";", "pushOnExpressionStackLengthStack", "(", "0", ")", ";", "break", ";", "case", "TokenNamestatic", ":", "checkAndSetModifiers", "(", "ClassFileConstants", ".", "AccStatic", ")", ";", "pushOnExpressionStackLengthStack", "(", "0", ")", ";", "break", ";", "case", "TokenNamesynchronized", ":", "this", ".", "synchronizedBlockSourceStart", "=", "this", ".", "scanner", ".", "startPosition", ";", "checkAndSetModifiers", "(", "ClassFileConstants", ".", "AccSynchronized", ")", ";", "pushOnExpressionStackLengthStack", "(", "0", ")", ";", "break", ";", "case", "TokenNamevoid", ":", "pushIdentifier", "(", "-", "T_void", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "startPosition", ")", ";", "break", ";", "case", "TokenNameboolean", ":", "pushIdentifier", "(", "-", "T_boolean", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "startPosition", ")", ";", "break", ";", "case", "TokenNamebyte", ":", "pushIdentifier", "(", "-", "T_byte", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "startPosition", ")", ";", "break", ";", "case", "TokenNamechar", ":", "pushIdentifier", "(", "-", "T_char", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "startPosition", ")", ";", "break", ";", "case", "TokenNamedouble", ":", "pushIdentifier", "(", "-", "T_double", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "startPosition", ")", ";", "break", ";", "case", "TokenNamefloat", ":", "pushIdentifier", "(", "-", "T_float", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "startPosition", ")", ";", "break", ";", "case", "TokenNameint", ":", "pushIdentifier", "(", "-", "T_int", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "startPosition", ")", ";", "break", ";", "case", "TokenNamelong", ":", "pushIdentifier", "(", "-", "T_long", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "startPosition", ")", ";", "break", ";", "case", "TokenNameshort", ":", "pushIdentifier", "(", "-", "T_short", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "startPosition", ")", ";", "break", ";", "case", "TokenNameIntegerLiteral", ":", "pushOnExpressionStack", "(", "IntLiteral", ".", "buildIntLiteral", "(", "this", ".", "scanner", ".", "getCurrentTokenSource", "(", ")", ",", "this", ".", "scanner", ".", "startPosition", ",", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ")", ";", "break", ";", "case", "TokenNameLongLiteral", ":", "pushOnExpressionStack", "(", "LongLiteral", ".", "buildLongLiteral", "(", "this", ".", "scanner", ".", "getCurrentTokenSource", "(", ")", ",", "this", ".", "scanner", ".", "startPosition", ",", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ")", ";", "break", ";", "case", "TokenNameFloatingPointLiteral", ":", "pushOnExpressionStack", "(", "new", "FloatLiteral", "(", "this", ".", "scanner", ".", "getCurrentTokenSource", "(", ")", ",", "this", ".", "scanner", ".", "startPosition", ",", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ")", ";", "break", ";", "case", "TokenNameDoubleLiteral", ":", "pushOnExpressionStack", "(", "new", "DoubleLiteral", "(", "this", ".", "scanner", ".", "getCurrentTokenSource", "(", ")", ",", "this", ".", "scanner", ".", "startPosition", ",", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ")", ";", "break", ";", "case", "TokenNameCharacterLiteral", ":", "pushOnExpressionStack", "(", "new", "CharLiteral", "(", "this", ".", "scanner", ".", "getCurrentTokenSource", "(", ")", ",", "this", ".", "scanner", ".", "startPosition", ",", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ")", ";", "break", ";", "case", "TokenNameStringLiteral", ":", "StringLiteral", "stringLiteral", ";", "if", "(", "this", ".", "recordStringLiterals", "&&", "this", ".", "checkExternalizeStrings", "&&", "this", ".", "lastPosistion", "<", "this", ".", "scanner", ".", "currentPosition", "&&", "!", "this", ".", "statementRecoveryActivated", ")", "{", "stringLiteral", "=", "createStringLiteral", "(", "this", ".", "scanner", ".", "getCurrentTokenSourceString", "(", ")", ",", "this", ".", "scanner", ".", "startPosition", ",", "this", ".", "scanner", ".", "currentPosition", "-", "1", ",", "Util", ".", "getLineNumber", "(", "this", ".", "scanner", ".", "startPosition", ",", "this", ".", "scanner", ".", "lineEnds", ",", "0", ",", "this", ".", "scanner", ".", "linePtr", ")", ")", ";", "this", ".", "compilationUnit", ".", "recordStringLiteral", "(", "stringLiteral", ",", "this", ".", "currentElement", "!=", "null", ")", ";", "}", "else", "{", "stringLiteral", "=", "createStringLiteral", "(", "this", ".", "scanner", ".", "getCurrentTokenSourceString", "(", ")", ",", "this", ".", "scanner", ".", "startPosition", ",", "this", ".", "scanner", ".", "currentPosition", "-", "1", ",", "0", ")", ";", "}", "pushOnExpressionStack", "(", "stringLiteral", ")", ";", "break", ";", "case", "TokenNamefalse", ":", "pushOnExpressionStack", "(", "new", "FalseLiteral", "(", "this", ".", "scanner", ".", "startPosition", ",", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ")", ";", "break", ";", "case", "TokenNametrue", ":", "pushOnExpressionStack", "(", "new", "TrueLiteral", "(", "this", ".", "scanner", ".", "startPosition", ",", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ")", ";", "break", ";", "case", "TokenNamenull", ":", "pushOnExpressionStack", "(", "new", "NullLiteral", "(", "this", ".", "scanner", ".", "startPosition", ",", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ")", ";", "break", ";", "case", "TokenNamesuper", ":", "case", "TokenNamethis", ":", "this", ".", "endPosition", "=", "this", ".", "scanner", ".", "currentPosition", "-", "1", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "startPosition", ")", ";", "break", ";", "case", "TokenNameassert", ":", "case", "TokenNameimport", ":", "case", "TokenNamepackage", ":", "case", "TokenNamethrow", ":", "case", "TokenNamedo", ":", "case", "TokenNameif", ":", "case", "TokenNamefor", ":", "case", "TokenNameswitch", ":", "case", "TokenNametry", ":", "case", "TokenNamewhile", ":", "case", "TokenNamebreak", ":", "case", "TokenNamecontinue", ":", "case", "TokenNamereturn", ":", "case", "TokenNamecase", ":", "pushOnIntStack", "(", "this", ".", "scanner", ".", "startPosition", ")", ";", "break", ";", "case", "TokenNamenew", ":", "resetModifiers", "(", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "startPosition", ")", ";", "break", ";", "case", "TokenNameclass", ":", "pushOnIntStack", "(", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "startPosition", ")", ";", "break", ";", "case", "TokenNameenum", ":", "pushOnIntStack", "(", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "startPosition", ")", ";", "break", ";", "case", "TokenNamedefault", ":", "pushOnIntStack", "(", "this", ".", "scanner", ".", "startPosition", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ";", "break", ";", "case", "TokenNameRBRACKET", ":", "this", ".", "endPosition", "=", "this", ".", "scanner", ".", "startPosition", ";", "this", ".", "endStatementPosition", "=", "this", ".", "scanner", ".", "currentPosition", "-", "1", ";", "break", ";", "case", "TokenNameLBRACE", ":", "this", ".", "endStatementPosition", "=", "this", ".", "scanner", ".", "currentPosition", "-", "1", ";", "case", "TokenNamePLUS", ":", "case", "TokenNameMINUS", ":", "case", "TokenNameNOT", ":", "case", "TokenNameTWIDDLE", ":", "this", ".", "endPosition", "=", "this", ".", "scanner", ".", "startPosition", ";", "break", ";", "case", "TokenNamePLUS_PLUS", ":", "case", "TokenNameMINUS_MINUS", ":", "this", ".", "endPosition", "=", "this", ".", "scanner", ".", "startPosition", ";", "this", ".", "endStatementPosition", "=", "this", ".", "scanner", ".", "currentPosition", "-", "1", ";", "break", ";", "case", "TokenNameRBRACE", ":", "case", "TokenNameSEMICOLON", ":", "this", ".", "endStatementPosition", "=", "this", ".", "scanner", ".", "currentPosition", "-", "1", ";", "this", ".", "endPosition", "=", "this", ".", "scanner", ".", "startPosition", "-", "1", ";", "break", ";", "case", "TokenNameRPAREN", ":", "this", ".", "rParenPos", "=", "this", ".", "scanner", ".", "currentPosition", "-", "1", ";", "break", ";", "case", "TokenNameLPAREN", ":", "this", ".", "lParenPos", "=", "this", ".", "scanner", ".", "startPosition", ";", "break", ";", "case", "TokenNameAT", ":", "pushOnIntStack", "(", "this", ".", "scanner", ".", "startPosition", ")", ";", "break", ";", "case", "TokenNameQUESTION", ":", "pushOnIntStack", "(", "this", ".", "scanner", ".", "startPosition", ")", ";", "pushOnIntStack", "(", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ";", "break", ";", "case", "TokenNameLESS", ":", "pushOnIntStack", "(", "this", ".", "scanner", ".", "startPosition", ")", ";", "break", ";", "case", "TokenNameELLIPSIS", ":", "pushOnIntStack", "(", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ";", "break", ";", "case", "TokenNameEQUAL", ":", "if", "(", "this", ".", "currentElement", "!=", "null", "&&", "this", ".", "currentElement", "instanceof", "RecoveredAnnotation", ")", "{", "RecoveredAnnotation", "recoveredAnnotation", "=", "(", "RecoveredAnnotation", ")", "this", ".", "currentElement", ";", "if", "(", "recoveredAnnotation", ".", "memberValuPairEqualEnd", "==", "-", "1", ")", "{", "recoveredAnnotation", ".", "memberValuPairEqualEnd", "=", "this", ".", "scanner", ".", "currentPosition", "-", "1", ";", "}", "}", "break", ";", "case", "TokenNameMULTIPLY", ":", "pushOnIntStack", "(", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ";", "break", ";", "}", "}", "protected", "void", "consumeTypeArgument", "(", ")", "{", "pushOnGenericsStack", "(", "getTypeReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ")", ";", "}", "protected", "void", "consumeTypeArgumentList", "(", ")", "{", "concatGenericsLists", "(", ")", ";", "}", "protected", "void", "consumeTypeArgumentList1", "(", ")", "{", "concatGenericsLists", "(", ")", ";", "}", "protected", "void", "consumeTypeArgumentList2", "(", ")", "{", "concatGenericsLists", "(", ")", ";", "}", "protected", "void", "consumeTypeArgumentList3", "(", ")", "{", "concatGenericsLists", "(", ")", ";", "}", "protected", "void", "consumeTypeArgumentReferenceType1", "(", ")", "{", "concatGenericsLists", "(", ")", ";", "pushOnGenericsStack", "(", "getTypeReference", "(", "0", ")", ")", ";", "this", ".", "intPtr", "--", ";", "}", "protected", "void", "consumeTypeArgumentReferenceType2", "(", ")", "{", "concatGenericsLists", "(", ")", ";", "pushOnGenericsStack", "(", "getTypeReference", "(", "0", ")", ")", ";", "this", ".", "intPtr", "--", ";", "}", "protected", "void", "consumeTypeArguments", "(", ")", "{", "concatGenericsLists", "(", ")", ";", "this", ".", "intPtr", "--", ";", "if", "(", "!", "this", ".", "statementRecoveryActivated", "&&", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", "&&", "this", ".", "lastErrorEndPositionBeforeRecovery", "<", "this", ".", "scanner", ".", "currentPosition", ")", "{", "int", "length", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "]", ";", "problemReporter", "(", ")", ".", "invalidUsageOfTypeArguments", "(", "(", "TypeReference", ")", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "-", "length", "+", "1", "]", ",", "(", "TypeReference", ")", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "]", ")", ";", "}", "}", "protected", "void", "consumeTypeDeclarations", "(", ")", "{", "concatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeTypeHeaderNameWithTypeParameters", "(", ")", "{", "TypeDeclaration", "typeDecl", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "int", "length", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "--", "]", ";", "this", ".", "genericsPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "genericsStack", ",", "this", ".", "genericsPtr", "+", "1", ",", "typeDecl", ".", "typeParameters", "=", "new", "TypeParameter", "[", "length", "]", ",", "0", ",", "length", ")", ";", "typeDecl", ".", "bodyStart", "=", "typeDecl", ".", "typeParameters", "[", "length", "-", "1", "]", ".", "declarationSourceEnd", "+", "1", ";", "this", ".", "listTypeParameterLength", "=", "0", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "if", "(", "this", ".", "currentElement", "instanceof", "RecoveredType", ")", "{", "RecoveredType", "recoveredType", "=", "(", "RecoveredType", ")", "this", ".", "currentElement", ";", "recoveredType", ".", "pendingTypeParameters", "=", "null", ";", "this", ".", "lastCheckPoint", "=", "typeDecl", ".", "bodyStart", ";", "}", "else", "{", "this", ".", "lastCheckPoint", "=", "typeDecl", ".", "bodyStart", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "typeDecl", ",", "0", ")", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "}", "}", "}", "protected", "void", "consumeTypeImportOnDemandDeclarationName", "(", ")", "{", "ImportReference", "impt", ";", "int", "length", ";", "char", "[", "]", "[", "]", "tokens", "=", "new", "char", "[", "length", "=", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "--", "]", "]", "[", "]", ";", "this", ".", "identifierPtr", "-=", "length", ";", "long", "[", "]", "positions", "=", "new", "long", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierStack", ",", "this", ".", "identifierPtr", "+", "1", ",", "tokens", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierPositionStack", ",", "this", ".", "identifierPtr", "+", "1", ",", "positions", ",", "0", ",", "length", ")", ";", "pushOnAstStack", "(", "impt", "=", "new", "ImportReference", "(", "tokens", ",", "positions", ",", "true", ",", "ClassFileConstants", ".", "AccDefault", ")", ")", ";", "impt", ".", "trailingStarPosition", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "if", "(", "this", ".", "currentToken", "==", "TokenNameSEMICOLON", ")", "{", "impt", ".", "declarationSourceEnd", "=", "this", ".", "scanner", ".", "currentPosition", "-", "1", ";", "}", "else", "{", "impt", ".", "declarationSourceEnd", "=", "impt", ".", "sourceEnd", ";", "}", "impt", ".", "declarationEnd", "=", "impt", ".", "declarationSourceEnd", ";", "impt", ".", "declarationSourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "this", ".", "lastCheckPoint", "=", "impt", ".", "declarationSourceEnd", "+", "1", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "impt", ",", "0", ")", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "this", ".", "restartRecovery", "=", "true", ";", "}", "}", "protected", "void", "consumeTypeParameter1", "(", ")", "{", "}", "protected", "void", "consumeTypeParameter1WithExtends", "(", ")", "{", "TypeReference", "superType", "=", "(", "TypeReference", ")", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "--", "]", ";", "this", ".", "genericsLengthPtr", "--", ";", "TypeParameter", "typeParameter", "=", "(", "TypeParameter", ")", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "]", ";", "typeParameter", ".", "declarationSourceEnd", "=", "superType", ".", "sourceEnd", ";", "typeParameter", ".", "type", "=", "superType", ";", "superType", ".", "bits", "|=", "ASTNode", ".", "IsSuperType", ";", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "]", "=", "typeParameter", ";", "}", "protected", "void", "consumeTypeParameter1WithExtendsAndBounds", "(", ")", "{", "int", "additionalBoundsLength", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "--", "]", ";", "TypeReference", "[", "]", "bounds", "=", "new", "TypeReference", "[", "additionalBoundsLength", "]", ";", "this", ".", "genericsPtr", "-=", "additionalBoundsLength", ";", "System", ".", "arraycopy", "(", "this", ".", "genericsStack", ",", "this", ".", "genericsPtr", "+", "1", ",", "bounds", ",", "0", ",", "additionalBoundsLength", ")", ";", "TypeReference", "superType", "=", "getTypeReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ";", "TypeParameter", "typeParameter", "=", "(", "TypeParameter", ")", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "]", ";", "typeParameter", ".", "declarationSourceEnd", "=", "bounds", "[", "additionalBoundsLength", "-", "1", "]", ".", "sourceEnd", ";", "typeParameter", ".", "type", "=", "superType", ";", "superType", ".", "bits", "|=", "ASTNode", ".", "IsSuperType", ";", "typeParameter", ".", "bounds", "=", "bounds", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "bounds", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "bounds", "[", "i", "]", ".", "bits", "|=", "ASTNode", ".", "IsSuperType", ";", "}", "}", "protected", "void", "consumeTypeParameterHeader", "(", ")", "{", "TypeParameter", "typeParameter", "=", "new", "TypeParameter", "(", ")", ";", "long", "pos", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ";", "final", "int", "end", "=", "(", "int", ")", "pos", ";", "typeParameter", ".", "declarationSourceEnd", "=", "end", ";", "typeParameter", ".", "sourceEnd", "=", "end", ";", "final", "int", "start", "=", "(", "int", ")", "(", "pos", ">>>", "32", ")", ";", "typeParameter", ".", "declarationSourceStart", "=", "start", ";", "typeParameter", ".", "sourceStart", "=", "start", ";", "typeParameter", ".", "name", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "this", ".", "identifierLengthPtr", "--", ";", "pushOnGenericsStack", "(", "typeParameter", ")", ";", "this", ".", "listTypeParameterLength", "++", ";", "}", "protected", "void", "consumeTypeParameterList", "(", ")", "{", "concatGenericsLists", "(", ")", ";", "}", "protected", "void", "consumeTypeParameterList1", "(", ")", "{", "concatGenericsLists", "(", ")", ";", "}", "protected", "void", "consumeTypeParameters", "(", ")", "{", "int", "startPos", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "if", "(", "this", ".", "currentElement", "instanceof", "RecoveredType", ")", "{", "RecoveredType", "recoveredType", "=", "(", "RecoveredType", ")", "this", ".", "currentElement", ";", "int", "length", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "]", ";", "TypeParameter", "[", "]", "typeParameters", "=", "new", "TypeParameter", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "genericsStack", ",", "this", ".", "genericsPtr", "-", "length", "+", "1", ",", "typeParameters", ",", "0", ",", "length", ")", ";", "recoveredType", ".", "add", "(", "typeParameters", ",", "startPos", ")", ";", "}", "}", "if", "(", "!", "this", ".", "statementRecoveryActivated", "&&", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", "&&", "this", ".", "lastErrorEndPositionBeforeRecovery", "<", "this", ".", "scanner", ".", "currentPosition", ")", "{", "int", "length", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "]", ";", "problemReporter", "(", ")", ".", "invalidUsageOfTypeParameters", "(", "(", "TypeParameter", ")", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "-", "length", "+", "1", "]", ",", "(", "TypeParameter", ")", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "]", ")", ";", "}", "}", "protected", "void", "consumeTypeParameterWithExtends", "(", ")", "{", "TypeReference", "superType", "=", "getTypeReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ";", "TypeParameter", "typeParameter", "=", "(", "TypeParameter", ")", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "]", ";", "typeParameter", ".", "declarationSourceEnd", "=", "superType", ".", "sourceEnd", ";", "typeParameter", ".", "type", "=", "superType", ";", "superType", ".", "bits", "|=", "ASTNode", ".", "IsSuperType", ";", "}", "protected", "void", "consumeTypeParameterWithExtendsAndBounds", "(", ")", "{", "int", "additionalBoundsLength", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "--", "]", ";", "TypeReference", "[", "]", "bounds", "=", "new", "TypeReference", "[", "additionalBoundsLength", "]", ";", "this", ".", "genericsPtr", "-=", "additionalBoundsLength", ";", "System", ".", "arraycopy", "(", "this", ".", "genericsStack", ",", "this", ".", "genericsPtr", "+", "1", ",", "bounds", ",", "0", ",", "additionalBoundsLength", ")", ";", "TypeReference", "superType", "=", "getTypeReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ";", "TypeParameter", "typeParameter", "=", "(", "TypeParameter", ")", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "]", ";", "typeParameter", ".", "type", "=", "superType", ";", "superType", ".", "bits", "|=", "ASTNode", ".", "IsSuperType", ";", "typeParameter", ".", "bounds", "=", "bounds", ";", "typeParameter", ".", "declarationSourceEnd", "=", "bounds", "[", "additionalBoundsLength", "-", "1", "]", ".", "sourceEnd", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "bounds", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "bounds", "[", "i", "]", ".", "bits", "|=", "ASTNode", ".", "IsSuperType", ";", "}", "}", "protected", "void", "consumeUnaryExpression", "(", "int", "op", ")", "{", "Expression", "r", ",", "exp", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ";", "if", "(", "op", "==", "MINUS", ")", "{", "if", "(", "exp", "instanceof", "IntLiteral", ")", "{", "IntLiteral", "intLiteral", "=", "(", "IntLiteral", ")", "exp", ";", "IntLiteral", "convertToMinValue", "=", "intLiteral", ".", "convertToMinValue", "(", ")", ";", "if", "(", "convertToMinValue", "==", "intLiteral", ")", "{", "r", "=", "new", "UnaryExpression", "(", "exp", ",", "op", ")", ";", "}", "else", "{", "r", "=", "convertToMinValue", ";", "}", "}", "else", "if", "(", "exp", "instanceof", "LongLiteral", ")", "{", "LongLiteral", "longLiteral", "=", "(", "LongLiteral", ")", "exp", ";", "LongLiteral", "convertToMinValue", "=", "longLiteral", ".", "convertToMinValue", "(", ")", ";", "if", "(", "convertToMinValue", "==", "longLiteral", ")", "{", "r", "=", "new", "UnaryExpression", "(", "exp", ",", "op", ")", ";", "}", "else", "{", "r", "=", "convertToMinValue", ";", "}", "}", "else", "{", "r", "=", "new", "UnaryExpression", "(", "exp", ",", "op", ")", ";", "}", "}", "else", "{", "r", "=", "new", "UnaryExpression", "(", "exp", ",", "op", ")", ";", "}", "r", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "r", ".", "sourceEnd", "=", "exp", ".", "sourceEnd", ";", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "r", ";", "}", "protected", "void", "consumeUnaryExpression", "(", "int", "op", ",", "boolean", "post", ")", "{", "Expression", "leftHandSide", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ";", "if", "(", "leftHandSide", "instanceof", "Reference", ")", "{", "if", "(", "post", ")", "{", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "PostfixExpression", "(", "leftHandSide", ",", "IntLiteral", ".", "One", ",", "op", ",", "this", ".", "endStatementPosition", ")", ";", "}", "else", "{", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "new", "PrefixExpression", "(", "leftHandSide", ",", "IntLiteral", ".", "One", ",", "op", ",", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ";", "}", "}", "else", "{", "if", "(", "!", "post", ")", "{", "this", ".", "intPtr", "--", ";", "}", "if", "(", "!", "this", ".", "statementRecoveryActivated", ")", "problemReporter", "(", ")", ".", "invalidUnaryExpression", "(", "leftHandSide", ")", ";", "}", "}", "protected", "void", "consumeVariableDeclarators", "(", ")", "{", "optimizedConcatNodeLists", "(", ")", ";", "}", "protected", "void", "consumeVariableInitializers", "(", ")", "{", "concatExpressionLists", "(", ")", ";", "}", "protected", "void", "consumeWildcard", "(", ")", "{", "final", "Wildcard", "wildcard", "=", "new", "Wildcard", "(", "Wildcard", ".", "UNBOUND", ")", ";", "wildcard", ".", "sourceEnd", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "wildcard", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "pushOnGenericsStack", "(", "wildcard", ")", ";", "}", "protected", "void", "consumeWildcard1", "(", ")", "{", "final", "Wildcard", "wildcard", "=", "new", "Wildcard", "(", "Wildcard", ".", "UNBOUND", ")", ";", "wildcard", ".", "sourceEnd", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "wildcard", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "pushOnGenericsStack", "(", "wildcard", ")", ";", "}", "protected", "void", "consumeWildcard1WithBounds", "(", ")", "{", "}", "protected", "void", "consumeWildcard2", "(", ")", "{", "final", "Wildcard", "wildcard", "=", "new", "Wildcard", "(", "Wildcard", ".", "UNBOUND", ")", ";", "wildcard", ".", "sourceEnd", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "wildcard", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "pushOnGenericsStack", "(", "wildcard", ")", ";", "}", "protected", "void", "consumeWildcard2WithBounds", "(", ")", "{", "}", "protected", "void", "consumeWildcard3", "(", ")", "{", "final", "Wildcard", "wildcard", "=", "new", "Wildcard", "(", "Wildcard", ".", "UNBOUND", ")", ";", "wildcard", ".", "sourceEnd", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "wildcard", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "pushOnGenericsStack", "(", "wildcard", ")", ";", "}", "protected", "void", "consumeWildcard3WithBounds", "(", ")", "{", "}", "protected", "void", "consumeWildcardBounds1Extends", "(", ")", "{", "Wildcard", "wildcard", "=", "new", "Wildcard", "(", "Wildcard", ".", "EXTENDS", ")", ";", "wildcard", ".", "bound", "=", "(", "TypeReference", ")", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "]", ";", "wildcard", ".", "sourceEnd", "=", "wildcard", ".", "bound", ".", "sourceEnd", ";", "this", ".", "intPtr", "--", ";", "wildcard", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "]", "=", "wildcard", ";", "}", "protected", "void", "consumeWildcardBounds1Super", "(", ")", "{", "Wildcard", "wildcard", "=", "new", "Wildcard", "(", "Wildcard", ".", "SUPER", ")", ";", "wildcard", ".", "bound", "=", "(", "TypeReference", ")", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "]", ";", "this", ".", "intPtr", "--", ";", "wildcard", ".", "sourceEnd", "=", "wildcard", ".", "bound", ".", "sourceEnd", ";", "this", ".", "intPtr", "--", ";", "wildcard", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "]", "=", "wildcard", ";", "}", "protected", "void", "consumeWildcardBounds2Extends", "(", ")", "{", "Wildcard", "wildcard", "=", "new", "Wildcard", "(", "Wildcard", ".", "EXTENDS", ")", ";", "wildcard", ".", "bound", "=", "(", "TypeReference", ")", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "]", ";", "wildcard", ".", "sourceEnd", "=", "wildcard", ".", "bound", ".", "sourceEnd", ";", "this", ".", "intPtr", "--", ";", "wildcard", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "]", "=", "wildcard", ";", "}", "protected", "void", "consumeWildcardBounds2Super", "(", ")", "{", "Wildcard", "wildcard", "=", "new", "Wildcard", "(", "Wildcard", ".", "SUPER", ")", ";", "wildcard", ".", "bound", "=", "(", "TypeReference", ")", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "]", ";", "this", ".", "intPtr", "--", ";", "wildcard", ".", "sourceEnd", "=", "wildcard", ".", "bound", ".", "sourceEnd", ";", "this", ".", "intPtr", "--", ";", "wildcard", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "]", "=", "wildcard", ";", "}", "protected", "void", "consumeWildcardBounds3Extends", "(", ")", "{", "Wildcard", "wildcard", "=", "new", "Wildcard", "(", "Wildcard", ".", "EXTENDS", ")", ";", "wildcard", ".", "bound", "=", "(", "TypeReference", ")", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "]", ";", "wildcard", ".", "sourceEnd", "=", "wildcard", ".", "bound", ".", "sourceEnd", ";", "this", ".", "intPtr", "--", ";", "wildcard", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "]", "=", "wildcard", ";", "}", "protected", "void", "consumeWildcardBounds3Super", "(", ")", "{", "Wildcard", "wildcard", "=", "new", "Wildcard", "(", "Wildcard", ".", "SUPER", ")", ";", "wildcard", ".", "bound", "=", "(", "TypeReference", ")", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "]", ";", "this", ".", "intPtr", "--", ";", "wildcard", ".", "sourceEnd", "=", "wildcard", ".", "bound", ".", "sourceEnd", ";", "this", ".", "intPtr", "--", ";", "wildcard", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "]", "=", "wildcard", ";", "}", "protected", "void", "consumeWildcardBoundsExtends", "(", ")", "{", "Wildcard", "wildcard", "=", "new", "Wildcard", "(", "Wildcard", ".", "EXTENDS", ")", ";", "wildcard", ".", "bound", "=", "getTypeReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ";", "wildcard", ".", "sourceEnd", "=", "wildcard", ".", "bound", ".", "sourceEnd", ";", "this", ".", "intPtr", "--", ";", "wildcard", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "pushOnGenericsStack", "(", "wildcard", ")", ";", "}", "protected", "void", "consumeWildcardBoundsSuper", "(", ")", "{", "Wildcard", "wildcard", "=", "new", "Wildcard", "(", "Wildcard", ".", "SUPER", ")", ";", "wildcard", ".", "bound", "=", "getTypeReference", "(", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ")", ";", "this", ".", "intPtr", "--", ";", "wildcard", ".", "sourceEnd", "=", "wildcard", ".", "bound", ".", "sourceEnd", ";", "this", ".", "intPtr", "--", ";", "wildcard", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "pushOnGenericsStack", "(", "wildcard", ")", ";", "}", "protected", "void", "consumeWildcardWithBounds", "(", ")", "{", "}", "public", "boolean", "containsComment", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "int", "iComment", "=", "this", ".", "scanner", ".", "commentPtr", ";", "for", "(", ";", "iComment", ">=", "0", ";", "iComment", "--", ")", "{", "int", "commentStart", "=", "this", ".", "scanner", ".", "commentStarts", "[", "iComment", "]", ";", "if", "(", "commentStart", "<", "0", ")", "commentStart", "=", "-", "commentStart", ";", "if", "(", "commentStart", "<", "sourceStart", ")", "continue", ";", "if", "(", "commentStart", ">", "sourceEnd", ")", "continue", ";", "return", "true", ";", "}", "return", "false", ";", "}", "public", "MethodDeclaration", "convertToMethodDeclaration", "(", "ConstructorDeclaration", "c", ",", "CompilationResult", "compilationResult", ")", "{", "MethodDeclaration", "m", "=", "new", "MethodDeclaration", "(", "compilationResult", ")", ";", "m", ".", "typeParameters", "=", "c", ".", "typeParameters", ";", "m", ".", "sourceStart", "=", "c", ".", "sourceStart", ";", "m", ".", "sourceEnd", "=", "c", ".", "sourceEnd", ";", "m", ".", "bodyStart", "=", "c", ".", "bodyStart", ";", "m", ".", "bodyEnd", "=", "c", ".", "bodyEnd", ";", "m", ".", "declarationSourceEnd", "=", "c", ".", "declarationSourceEnd", ";", "m", ".", "declarationSourceStart", "=", "c", ".", "declarationSourceStart", ";", "m", ".", "selector", "=", "c", ".", "selector", ";", "m", ".", "statements", "=", "c", ".", "statements", ";", "m", ".", "modifiers", "=", "c", ".", "modifiers", ";", "m", ".", "annotations", "=", "c", ".", "annotations", ";", "m", ".", "arguments", "=", "c", ".", "arguments", ";", "m", ".", "thrownExceptions", "=", "c", ".", "thrownExceptions", ";", "m", ".", "explicitDeclarations", "=", "c", ".", "explicitDeclarations", ";", "m", ".", "returnType", "=", "null", ";", "m", ".", "javadoc", "=", "c", ".", "javadoc", ";", "return", "m", ";", "}", "protected", "TypeReference", "copyDims", "(", "TypeReference", "typeRef", ",", "int", "dim", ")", "{", "return", "typeRef", ".", "copyDims", "(", "dim", ")", ";", "}", "protected", "FieldDeclaration", "createFieldDeclaration", "(", "char", "[", "]", "fieldDeclarationName", ",", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "return", "new", "FieldDeclaration", "(", "fieldDeclarationName", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "protected", "JavadocParser", "createJavadocParser", "(", ")", "{", "return", "new", "JavadocParser", "(", "this", ")", ";", "}", "protected", "LocalDeclaration", "createLocalDeclaration", "(", "char", "[", "]", "localDeclarationName", ",", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "return", "new", "LocalDeclaration", "(", "localDeclarationName", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "protected", "StringLiteral", "createStringLiteral", "(", "char", "[", "]", "token", ",", "int", "start", ",", "int", "end", ",", "int", "lineNumber", ")", "{", "return", "new", "StringLiteral", "(", "token", ",", "start", ",", "end", ",", "lineNumber", ")", ";", "}", "protected", "RecoveredType", "currentRecoveryType", "(", ")", "{", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "if", "(", "this", ".", "currentElement", "instanceof", "RecoveredType", ")", "{", "return", "(", "RecoveredType", ")", "this", ".", "currentElement", ";", "}", "else", "{", "return", "this", ".", "currentElement", ".", "enclosingType", "(", ")", ";", "}", "}", "return", "null", ";", "}", "public", "CompilationUnitDeclaration", "dietParse", "(", "ICompilationUnit", "sourceUnit", ",", "CompilationResult", "compilationResult", ")", "{", "CompilationUnitDeclaration", "parsedUnit", ";", "boolean", "old", "=", "this", ".", "diet", ";", "try", "{", "this", ".", "diet", "=", "true", ";", "parsedUnit", "=", "parse", "(", "sourceUnit", ",", "compilationResult", ")", ";", "}", "finally", "{", "this", ".", "diet", "=", "old", ";", "}", "return", "parsedUnit", ";", "}", "protected", "void", "dispatchDeclarationInto", "(", "int", "length", ")", "{", "if", "(", "length", "==", "0", ")", "return", ";", "int", "[", "]", "flag", "=", "new", "int", "[", "length", "+", "1", "]", ";", "int", "size1", "=", "0", ",", "size2", "=", "0", ",", "size3", "=", "0", ";", "boolean", "hasAbstractMethods", "=", "false", ";", "for", "(", "int", "i", "=", "length", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "ASTNode", "astNode", "=", "this", ".", "astStack", "[", "this", ".", "astPtr", "--", "]", ";", "if", "(", "astNode", "instanceof", "AbstractMethodDeclaration", ")", "{", "flag", "[", "i", "]", "=", "2", ";", "size2", "++", ";", "if", "(", "(", "(", "AbstractMethodDeclaration", ")", "astNode", ")", ".", "isAbstract", "(", ")", ")", "{", "hasAbstractMethods", "=", "true", ";", "}", "}", "else", "if", "(", "astNode", "instanceof", "TypeDeclaration", ")", "{", "flag", "[", "i", "]", "=", "3", ";", "size3", "++", ";", "}", "else", "{", "flag", "[", "i", "]", "=", "1", ";", "size1", "++", ";", "}", "}", "TypeDeclaration", "typeDecl", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "if", "(", "size1", "!=", "0", ")", "{", "typeDecl", ".", "fields", "=", "new", "FieldDeclaration", "[", "size1", "]", ";", "}", "if", "(", "size2", "!=", "0", ")", "{", "typeDecl", ".", "methods", "=", "new", "AbstractMethodDeclaration", "[", "size2", "]", ";", "if", "(", "hasAbstractMethods", ")", "typeDecl", ".", "bits", "|=", "ASTNode", ".", "HasAbstractMethods", ";", "}", "if", "(", "size3", "!=", "0", ")", "{", "typeDecl", ".", "memberTypes", "=", "new", "TypeDeclaration", "[", "size3", "]", ";", "}", "size1", "=", "size2", "=", "size3", "=", "0", ";", "int", "flagI", "=", "flag", "[", "0", "]", ",", "start", "=", "0", ";", "int", "length2", ";", "for", "(", "int", "end", "=", "0", ";", "end", "<=", "length", ";", "end", "++", ")", "{", "if", "(", "flagI", "!=", "flag", "[", "end", "]", ")", "{", "switch", "(", "flagI", ")", "{", "case", "1", ":", "size1", "+=", "(", "length2", "=", "end", "-", "start", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "this", ".", "astPtr", "+", "start", "+", "1", ",", "typeDecl", ".", "fields", ",", "size1", "-", "length2", ",", "length2", ")", ";", "break", ";", "case", "2", ":", "size2", "+=", "(", "length2", "=", "end", "-", "start", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "this", ".", "astPtr", "+", "start", "+", "1", ",", "typeDecl", ".", "methods", ",", "size2", "-", "length2", ",", "length2", ")", ";", "break", ";", "case", "3", ":", "size3", "+=", "(", "length2", "=", "end", "-", "start", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "this", ".", "astPtr", "+", "start", "+", "1", ",", "typeDecl", ".", "memberTypes", ",", "size3", "-", "length2", ",", "length2", ")", ";", "break", ";", "}", "flagI", "=", "flag", "[", "start", "=", "end", "]", ";", "}", "}", "if", "(", "typeDecl", ".", "memberTypes", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "typeDecl", ".", "memberTypes", ".", "length", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "typeDecl", ".", "memberTypes", "[", "i", "]", ".", "enclosingType", "=", "typeDecl", ";", "}", "}", "}", "protected", "void", "dispatchDeclarationIntoEnumDeclaration", "(", "int", "length", ")", "{", "if", "(", "length", "==", "0", ")", "return", ";", "int", "[", "]", "flag", "=", "new", "int", "[", "length", "+", "1", "]", ";", "int", "size1", "=", "0", ",", "size2", "=", "0", ",", "size3", "=", "0", ";", "TypeDeclaration", "enumDeclaration", "=", "(", "TypeDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "-", "length", "]", ";", "boolean", "hasAbstractMethods", "=", "false", ";", "int", "enumConstantsCounter", "=", "0", ";", "for", "(", "int", "i", "=", "length", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "ASTNode", "astNode", "=", "this", ".", "astStack", "[", "this", ".", "astPtr", "--", "]", ";", "if", "(", "astNode", "instanceof", "AbstractMethodDeclaration", ")", "{", "flag", "[", "i", "]", "=", "2", ";", "size2", "++", ";", "if", "(", "(", "(", "AbstractMethodDeclaration", ")", "astNode", ")", ".", "isAbstract", "(", ")", ")", "{", "hasAbstractMethods", "=", "true", ";", "}", "}", "else", "if", "(", "astNode", "instanceof", "TypeDeclaration", ")", "{", "flag", "[", "i", "]", "=", "3", ";", "size3", "++", ";", "}", "else", "if", "(", "astNode", "instanceof", "FieldDeclaration", ")", "{", "flag", "[", "i", "]", "=", "1", ";", "size1", "++", ";", "if", "(", "(", "(", "FieldDeclaration", ")", "astNode", ")", ".", "getKind", "(", ")", "==", "AbstractVariableDeclaration", ".", "ENUM_CONSTANT", ")", "{", "enumConstantsCounter", "++", ";", "}", "}", "}", "if", "(", "size1", "!=", "0", ")", "{", "enumDeclaration", ".", "fields", "=", "new", "FieldDeclaration", "[", "size1", "]", ";", "}", "if", "(", "size2", "!=", "0", ")", "{", "enumDeclaration", ".", "methods", "=", "new", "AbstractMethodDeclaration", "[", "size2", "]", ";", "if", "(", "hasAbstractMethods", ")", "enumDeclaration", ".", "bits", "|=", "ASTNode", ".", "HasAbstractMethods", ";", "}", "if", "(", "size3", "!=", "0", ")", "{", "enumDeclaration", ".", "memberTypes", "=", "new", "TypeDeclaration", "[", "size3", "]", ";", "}", "size1", "=", "size2", "=", "size3", "=", "0", ";", "int", "flagI", "=", "flag", "[", "0", "]", ",", "start", "=", "0", ";", "int", "length2", ";", "for", "(", "int", "end", "=", "0", ";", "end", "<=", "length", ";", "end", "++", ")", "{", "if", "(", "flagI", "!=", "flag", "[", "end", "]", ")", "{", "switch", "(", "flagI", ")", "{", "case", "1", ":", "size1", "+=", "(", "length2", "=", "end", "-", "start", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "this", ".", "astPtr", "+", "start", "+", "1", ",", "enumDeclaration", ".", "fields", ",", "size1", "-", "length2", ",", "length2", ")", ";", "break", ";", "case", "2", ":", "size2", "+=", "(", "length2", "=", "end", "-", "start", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "this", ".", "astPtr", "+", "start", "+", "1", ",", "enumDeclaration", ".", "methods", ",", "size2", "-", "length2", ",", "length2", ")", ";", "break", ";", "case", "3", ":", "size3", "+=", "(", "length2", "=", "end", "-", "start", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "this", ".", "astPtr", "+", "start", "+", "1", ",", "enumDeclaration", ".", "memberTypes", ",", "size3", "-", "length2", ",", "length2", ")", ";", "break", ";", "}", "flagI", "=", "flag", "[", "start", "=", "end", "]", ";", "}", "}", "if", "(", "enumDeclaration", ".", "memberTypes", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "enumDeclaration", ".", "memberTypes", ".", "length", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "enumDeclaration", ".", "memberTypes", "[", "i", "]", ".", "enclosingType", "=", "enumDeclaration", ";", "}", "}", "enumDeclaration", ".", "enumConstantsCounter", "=", "enumConstantsCounter", ";", "}", "protected", "CompilationUnitDeclaration", "endParse", "(", "int", "act", ")", "{", "this", ".", "lastAct", "=", "act", ";", "if", "(", "this", ".", "statementRecoveryActivated", ")", "{", "RecoveredElement", "recoveredElement", "=", "buildInitialRecoveryState", "(", ")", ";", "if", "(", "recoveredElement", "!=", "null", ")", "{", "recoveredElement", ".", "topElement", "(", ")", ".", "updateParseTree", "(", ")", ";", "}", "if", "(", "this", ".", "hasError", ")", "resetStacks", "(", ")", ";", "}", "else", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "if", "(", "VERBOSE_RECOVERY", ")", "{", "System", ".", "out", ".", "print", "(", "Messages", ".", "parser_syntaxRecovery", ")", ";", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "System", ".", "out", ".", "println", "(", "this", ".", "compilationUnit", ")", ";", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "this", ".", "currentElement", ".", "topElement", "(", ")", ".", "updateParseTree", "(", ")", ";", "}", "else", "{", "if", "(", "this", ".", "diet", "&", "VERBOSE_RECOVERY", ")", "{", "System", ".", "out", ".", "print", "(", "Messages", ".", "parser_regularParse", ")", ";", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "System", ".", "out", ".", "println", "(", "this", ".", "compilationUnit", ")", ";", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "}", "persistLineSeparatorPositions", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "scanner", ".", "foundTaskCount", ";", "i", "++", ")", "{", "if", "(", "!", "this", ".", "statementRecoveryActivated", ")", "problemReporter", "(", ")", ".", "task", "(", "new", "String", "(", "this", ".", "scanner", ".", "foundTaskTags", "[", "i", "]", ")", ",", "new", "String", "(", "this", ".", "scanner", ".", "foundTaskMessages", "[", "i", "]", ")", ",", "this", ".", "scanner", ".", "foundTaskPriorities", "[", "i", "]", "==", "null", "?", "null", ":", "new", "String", "(", "this", ".", "scanner", ".", "foundTaskPriorities", "[", "i", "]", ")", ",", "this", ".", "scanner", ".", "foundTaskPositions", "[", "i", "]", "[", "0", "]", ",", "this", ".", "scanner", ".", "foundTaskPositions", "[", "i", "]", "[", "1", "]", ")", ";", "}", "return", "this", ".", "compilationUnit", ";", "}", "public", "int", "flushCommentsDefinedPriorTo", "(", "int", "position", ")", "{", "int", "lastCommentIndex", "=", "this", ".", "scanner", ".", "commentPtr", ";", "if", "(", "lastCommentIndex", "<", "0", ")", "return", "position", ";", "int", "index", "=", "lastCommentIndex", ";", "int", "validCount", "=", "0", ";", "while", "(", "index", ">=", "0", ")", "{", "int", "commentEnd", "=", "this", ".", "scanner", ".", "commentStops", "[", "index", "]", ";", "if", "(", "commentEnd", "<", "0", ")", "commentEnd", "=", "-", "commentEnd", ";", "if", "(", "commentEnd", "<=", "position", ")", "{", "break", ";", "}", "index", "--", ";", "validCount", "++", ";", "}", "if", "(", "validCount", ">", "0", ")", "{", "int", "immediateCommentEnd", "=", "-", "this", ".", "scanner", ".", "commentStops", "[", "index", "+", "1", "]", ";", "if", "(", "immediateCommentEnd", ">", "0", ")", "{", "immediateCommentEnd", "--", ";", "if", "(", "Util", ".", "getLineNumber", "(", "position", ",", "this", ".", "scanner", ".", "lineEnds", ",", "0", ",", "this", ".", "scanner", ".", "linePtr", ")", "==", "Util", ".", "getLineNumber", "(", "immediateCommentEnd", ",", "this", ".", "scanner", ".", "lineEnds", ",", "0", ",", "this", ".", "scanner", ".", "linePtr", ")", ")", "{", "position", "=", "immediateCommentEnd", ";", "validCount", "--", ";", "index", "++", ";", "}", "}", "}", "if", "(", "index", "<", "0", ")", "return", "position", ";", "switch", "(", "validCount", ")", "{", "case", "0", ":", "break", ";", "case", "2", ":", "this", ".", "scanner", ".", "commentStarts", "[", "0", "]", "=", "this", ".", "scanner", ".", "commentStarts", "[", "index", "+", "1", "]", ";", "this", ".", "scanner", ".", "commentStops", "[", "0", "]", "=", "this", ".", "scanner", ".", "commentStops", "[", "index", "+", "1", "]", ";", "this", ".", "scanner", ".", "commentTagStarts", "[", "0", "]", "=", "this", ".", "scanner", ".", "commentTagStarts", "[", "index", "+", "1", "]", ";", "this", ".", "scanner", ".", "commentStarts", "[", "1", "]", "=", "this", ".", "scanner", ".", "commentStarts", "[", "index", "+", "2", "]", ";", "this", ".", "scanner", ".", "commentStops", "[", "1", "]", "=", "this", ".", "scanner", ".", "commentStops", "[", "index", "+", "2", "]", ";", "this", ".", "scanner", ".", "commentTagStarts", "[", "1", "]", "=", "this", ".", "scanner", ".", "commentTagStarts", "[", "index", "+", "2", "]", ";", "break", ";", "case", "1", ":", "this", ".", "scanner", ".", "commentStarts", "[", "0", "]", "=", "this", ".", "scanner", ".", "commentStarts", "[", "index", "+", "1", "]", ";", "this", ".", "scanner", ".", "commentStops", "[", "0", "]", "=", "this", ".", "scanner", ".", "commentStops", "[", "index", "+", "1", "]", ";", "this", ".", "scanner", ".", "commentTagStarts", "[", "0", "]", "=", "this", ".", "scanner", ".", "commentTagStarts", "[", "index", "+", "1", "]", ";", "break", ";", "default", ":", "System", ".", "arraycopy", "(", "this", ".", "scanner", ".", "commentStarts", ",", "index", "+", "1", ",", "this", ".", "scanner", ".", "commentStarts", ",", "0", ",", "validCount", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "scanner", ".", "commentStops", ",", "index", "+", "1", ",", "this", ".", "scanner", ".", "commentStops", ",", "0", ",", "validCount", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "scanner", ".", "commentTagStarts", ",", "index", "+", "1", ",", "this", ".", "scanner", ".", "commentTagStarts", ",", "0", ",", "validCount", ")", ";", "}", "this", ".", "scanner", ".", "commentPtr", "=", "validCount", "-", "1", ";", "return", "position", ";", "}", "protected", "TypeReference", "getAnnotationType", "(", ")", "{", "int", "length", "=", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "--", "]", ";", "if", "(", "length", "==", "1", ")", "{", "return", "new", "SingleTypeReference", "(", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", ",", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "--", "]", ")", ";", "}", "else", "{", "char", "[", "]", "[", "]", "tokens", "=", "new", "char", "[", "length", "]", "[", "]", ";", "this", ".", "identifierPtr", "-=", "length", ";", "long", "[", "]", "positions", "=", "new", "long", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierStack", ",", "this", ".", "identifierPtr", "+", "1", ",", "tokens", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierPositionStack", ",", "this", ".", "identifierPtr", "+", "1", ",", "positions", ",", "0", ",", "length", ")", ";", "return", "new", "QualifiedTypeReference", "(", "tokens", ",", "positions", ")", ";", "}", "}", "public", "int", "getFirstToken", "(", ")", "{", "return", "this", ".", "firstToken", ";", "}", "public", "int", "[", "]", "getJavaDocPositions", "(", ")", "{", "int", "javadocCount", "=", "0", ";", "int", "max", "=", "this", ".", "scanner", ".", "commentPtr", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "max", ";", "i", "++", ")", "{", "if", "(", "this", ".", "scanner", ".", "commentStarts", "[", "i", "]", ">=", "0", "&&", "this", ".", "scanner", ".", "commentStops", "[", "i", "]", ">", "0", ")", "{", "javadocCount", "++", ";", "}", "}", "if", "(", "javadocCount", "==", "0", ")", "return", "null", ";", "int", "[", "]", "positions", "=", "new", "int", "[", "2", "*", "javadocCount", "]", ";", "int", "index", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "max", ";", "i", "++", ")", "{", "int", "commentStart", "=", "this", ".", "scanner", ".", "commentStarts", "[", "i", "]", ";", "if", "(", "commentStart", ">=", "0", ")", "{", "int", "commentStop", "=", "this", ".", "scanner", ".", "commentStops", "[", "i", "]", ";", "if", "(", "commentStop", ">", "0", ")", "{", "positions", "[", "index", "++", "]", "=", "commentStart", ";", "positions", "[", "index", "++", "]", "=", "commentStop", "-", "1", ";", "}", "}", "}", "return", "positions", ";", "}", "public", "void", "getMethodBodies", "(", "CompilationUnitDeclaration", "unit", ")", "{", "if", "(", "unit", "==", "null", ")", "return", ";", "if", "(", "unit", ".", "ignoreMethodBodies", ")", "{", "unit", ".", "ignoreFurtherInvestigation", "=", "true", ";", "return", ";", "}", "if", "(", "(", "unit", ".", "bits", "&", "ASTNode", ".", "HasAllMethodBodies", ")", "!=", "0", ")", "return", ";", "int", "[", "]", "oldLineEnds", "=", "this", ".", "scanner", ".", "lineEnds", ";", "int", "oldLinePtr", "=", "this", ".", "scanner", ".", "linePtr", ";", "CompilationResult", "compilationResult", "=", "unit", ".", "compilationResult", ";", "char", "[", "]", "contents", "=", "this", ".", "readManager", "!=", "null", "?", "this", ".", "readManager", ".", "getContents", "(", "compilationResult", ".", "compilationUnit", ")", ":", "compilationResult", ".", "compilationUnit", ".", "getContents", "(", ")", ";", "this", ".", "scanner", ".", "setSource", "(", "contents", ",", "compilationResult", ")", ";", "if", "(", "this", ".", "javadocParser", "!=", "null", "&&", "this", ".", "javadocParser", ".", "checkDocComment", ")", "{", "this", ".", "javadocParser", ".", "scanner", ".", "setSource", "(", "contents", ")", ";", "}", "if", "(", "unit", ".", "types", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "unit", ".", "types", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "unit", ".", "types", "[", "i", "]", ".", "parseMethods", "(", "this", ",", "unit", ")", ";", "}", "unit", ".", "bits", "|=", "ASTNode", ".", "HasAllMethodBodies", ";", "this", ".", "scanner", ".", "lineEnds", "=", "oldLineEnds", ";", "this", ".", "scanner", ".", "linePtr", "=", "oldLinePtr", ";", "}", "protected", "char", "getNextCharacter", "(", "char", "[", "]", "comment", ",", "int", "[", "]", "index", ")", "{", "char", "nextCharacter", "=", "comment", "[", "index", "[", "0", "]", "++", "]", ";", "switch", "(", "nextCharacter", ")", "{", "case", "'\\\\'", ":", "int", "c1", ",", "c2", ",", "c3", ",", "c4", ";", "index", "[", "0", "]", "++", ";", "while", "(", "comment", "[", "index", "[", "0", "]", "]", "==", "'u'", ")", "index", "[", "0", "]", "++", ";", "if", "(", "!", "(", "(", "(", "c1", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "comment", "[", "index", "[", "0", "]", "++", "]", ")", ")", ">", "15", "||", "c1", "<", "0", ")", "||", "(", "(", "c2", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "comment", "[", "index", "[", "0", "]", "++", "]", ")", ")", ">", "15", "||", "c2", "<", "0", ")", "||", "(", "(", "c3", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "comment", "[", "index", "[", "0", "]", "++", "]", ")", ")", ">", "15", "||", "c3", "<", "0", ")", "||", "(", "(", "c4", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "comment", "[", "index", "[", "0", "]", "++", "]", ")", ")", ">", "15", "||", "c4", "<", "0", ")", ")", ")", "{", "nextCharacter", "=", "(", "char", ")", "(", "(", "(", "c1", "*", "16", "+", "c2", ")", "*", "16", "+", "c3", ")", "*", "16", "+", "c4", ")", ";", "}", "break", ";", "}", "return", "nextCharacter", ";", "}", "protected", "Expression", "getTypeReference", "(", "Expression", "exp", ")", "{", "exp", ".", "bits", "&=", "~", "ASTNode", ".", "RestrictiveFlagMASK", ";", "exp", ".", "bits", "|=", "Binding", ".", "TYPE", ";", "return", "exp", ";", "}", "protected", "TypeReference", "getTypeReference", "(", "int", "dim", ")", "{", "TypeReference", "ref", ";", "int", "length", "=", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "--", "]", ";", "if", "(", "length", "<", "0", ")", "{", "ref", "=", "TypeReference", ".", "baseTypeReference", "(", "-", "length", ",", "dim", ")", ";", "ref", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "if", "(", "dim", "==", "0", ")", "{", "ref", ".", "sourceEnd", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "}", "else", "{", "this", ".", "intPtr", "--", ";", "ref", ".", "sourceEnd", "=", "this", ".", "endPosition", ";", "}", "}", "else", "{", "int", "numberOfIdentifiers", "=", "this", ".", "genericsIdentifiersLengthStack", "[", "this", ".", "genericsIdentifiersLengthPtr", "--", "]", ";", "if", "(", "length", "!=", "numberOfIdentifiers", "||", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "]", "!=", "0", ")", "{", "ref", "=", "getTypeReferenceForGenericType", "(", "dim", ",", "length", ",", "numberOfIdentifiers", ")", ";", "}", "else", "if", "(", "length", "==", "1", ")", "{", "this", ".", "genericsLengthPtr", "--", ";", "if", "(", "dim", "==", "0", ")", "{", "ref", "=", "new", "SingleTypeReference", "(", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", ",", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "--", "]", ")", ";", "}", "else", "{", "ref", "=", "new", "ArrayTypeReference", "(", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", ",", "dim", ",", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "--", "]", ")", ";", "ref", ".", "sourceEnd", "=", "this", ".", "endPosition", ";", "}", "}", "else", "{", "this", ".", "genericsLengthPtr", "--", ";", "char", "[", "]", "[", "]", "tokens", "=", "new", "char", "[", "length", "]", "[", "]", ";", "this", ".", "identifierPtr", "-=", "length", ";", "long", "[", "]", "positions", "=", "new", "long", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierStack", ",", "this", ".", "identifierPtr", "+", "1", ",", "tokens", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierPositionStack", ",", "this", ".", "identifierPtr", "+", "1", ",", "positions", ",", "0", ",", "length", ")", ";", "if", "(", "dim", "==", "0", ")", "{", "ref", "=", "new", "QualifiedTypeReference", "(", "tokens", ",", "positions", ")", ";", "}", "else", "{", "ref", "=", "new", "ArrayQualifiedTypeReference", "(", "tokens", ",", "dim", ",", "positions", ")", ";", "ref", ".", "sourceEnd", "=", "this", ".", "endPosition", ";", "}", "}", "}", "return", "ref", ";", "}", "protected", "TypeReference", "getTypeReferenceForGenericType", "(", "int", "dim", ",", "int", "identifierLength", ",", "int", "numberOfIdentifiers", ")", "{", "if", "(", "identifierLength", "==", "1", "&&", "numberOfIdentifiers", "==", "1", ")", "{", "int", "currentTypeArgumentsLength", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "--", "]", ";", "TypeReference", "[", "]", "typeArguments", "=", "null", ";", "if", "(", "currentTypeArgumentsLength", "<", "0", ")", "{", "typeArguments", "=", "TypeReference", ".", "NO_TYPE_ARGUMENTS", ";", "}", "else", "{", "typeArguments", "=", "new", "TypeReference", "[", "currentTypeArgumentsLength", "]", ";", "this", ".", "genericsPtr", "-=", "currentTypeArgumentsLength", ";", "System", ".", "arraycopy", "(", "this", ".", "genericsStack", ",", "this", ".", "genericsPtr", "+", "1", ",", "typeArguments", ",", "0", ",", "currentTypeArgumentsLength", ")", ";", "}", "ParameterizedSingleTypeReference", "parameterizedSingleTypeReference", "=", "new", "ParameterizedSingleTypeReference", "(", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", ",", "typeArguments", ",", "dim", ",", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "--", "]", ")", ";", "if", "(", "dim", "!=", "0", ")", "{", "parameterizedSingleTypeReference", ".", "sourceEnd", "=", "this", ".", "endStatementPosition", ";", "}", "return", "parameterizedSingleTypeReference", ";", "}", "else", "{", "TypeReference", "[", "]", "[", "]", "typeArguments", "=", "new", "TypeReference", "[", "numberOfIdentifiers", "]", "[", "]", ";", "char", "[", "]", "[", "]", "tokens", "=", "new", "char", "[", "numberOfIdentifiers", "]", "[", "]", ";", "long", "[", "]", "positions", "=", "new", "long", "[", "numberOfIdentifiers", "]", ";", "int", "index", "=", "numberOfIdentifiers", ";", "int", "currentIdentifiersLength", "=", "identifierLength", ";", "while", "(", "index", ">", "0", ")", "{", "int", "currentTypeArgumentsLength", "=", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "--", "]", ";", "if", "(", "currentTypeArgumentsLength", ">", "0", ")", "{", "this", ".", "genericsPtr", "-=", "currentTypeArgumentsLength", ";", "System", ".", "arraycopy", "(", "this", ".", "genericsStack", ",", "this", ".", "genericsPtr", "+", "1", ",", "typeArguments", "[", "index", "-", "1", "]", "=", "new", "TypeReference", "[", "currentTypeArgumentsLength", "]", ",", "0", ",", "currentTypeArgumentsLength", ")", ";", "}", "else", "if", "(", "currentTypeArgumentsLength", "<", "0", ")", "{", "typeArguments", "[", "index", "-", "1", "]", "=", "TypeReference", ".", "NO_TYPE_ARGUMENTS", ";", "}", "switch", "(", "currentIdentifiersLength", ")", "{", "case", "1", ":", "tokens", "[", "index", "-", "1", "]", "=", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", ";", "positions", "[", "index", "-", "1", "]", "=", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "--", "]", ";", "break", ";", "default", ":", "this", ".", "identifierPtr", "-=", "currentIdentifiersLength", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierStack", ",", "this", ".", "identifierPtr", "+", "1", ",", "tokens", ",", "index", "-", "currentIdentifiersLength", ",", "currentIdentifiersLength", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierPositionStack", ",", "this", ".", "identifierPtr", "+", "1", ",", "positions", ",", "index", "-", "currentIdentifiersLength", ",", "currentIdentifiersLength", ")", ";", "}", "index", "-=", "currentIdentifiersLength", ";", "if", "(", "index", ">", "0", ")", "{", "currentIdentifiersLength", "=", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "--", "]", ";", "}", "}", "ParameterizedQualifiedTypeReference", "parameterizedQualifiedTypeReference", "=", "new", "ParameterizedQualifiedTypeReference", "(", "tokens", ",", "typeArguments", ",", "dim", ",", "positions", ")", ";", "if", "(", "dim", "!=", "0", ")", "{", "parameterizedQualifiedTypeReference", ".", "sourceEnd", "=", "this", ".", "endStatementPosition", ";", "}", "return", "parameterizedQualifiedTypeReference", ";", "}", "}", "protected", "NameReference", "getUnspecifiedReference", "(", ")", "{", "int", "length", ";", "NameReference", "ref", ";", "if", "(", "(", "length", "=", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "--", "]", ")", "==", "1", ")", "ref", "=", "new", "SingleNameReference", "(", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", ",", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "--", "]", ")", ";", "else", "{", "char", "[", "]", "[", "]", "tokens", "=", "new", "char", "[", "length", "]", "[", "]", ";", "this", ".", "identifierPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierStack", ",", "this", ".", "identifierPtr", "+", "1", ",", "tokens", ",", "0", ",", "length", ")", ";", "long", "[", "]", "positions", "=", "new", "long", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierPositionStack", ",", "this", ".", "identifierPtr", "+", "1", ",", "positions", ",", "0", ",", "length", ")", ";", "ref", "=", "new", "QualifiedNameReference", "(", "tokens", ",", "positions", ",", "(", "int", ")", "(", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "+", "1", "]", ">>", "32", ")", ",", "(", "int", ")", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "+", "length", "]", ")", ";", "}", "return", "ref", ";", "}", "protected", "NameReference", "getUnspecifiedReferenceOptimized", "(", ")", "{", "int", "length", ";", "NameReference", "ref", ";", "if", "(", "(", "length", "=", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "--", "]", ")", "==", "1", ")", "{", "ref", "=", "new", "SingleNameReference", "(", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", ",", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "--", "]", ")", ";", "ref", ".", "bits", "&=", "~", "ASTNode", ".", "RestrictiveFlagMASK", ";", "ref", ".", "bits", "|=", "Binding", ".", "LOCAL", "|", "Binding", ".", "FIELD", ";", "return", "ref", ";", "}", "char", "[", "]", "[", "]", "tokens", "=", "new", "char", "[", "length", "]", "[", "]", ";", "this", ".", "identifierPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierStack", ",", "this", ".", "identifierPtr", "+", "1", ",", "tokens", ",", "0", ",", "length", ")", ";", "long", "[", "]", "positions", "=", "new", "long", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierPositionStack", ",", "this", ".", "identifierPtr", "+", "1", ",", "positions", ",", "0", ",", "length", ")", ";", "ref", "=", "new", "QualifiedNameReference", "(", "tokens", ",", "positions", ",", "(", "int", ")", "(", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "+", "1", "]", ">>", "32", ")", ",", "(", "int", ")", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "+", "length", "]", ")", ";", "ref", ".", "bits", "&=", "~", "ASTNode", ".", "RestrictiveFlagMASK", ";", "ref", ".", "bits", "|=", "Binding", ".", "LOCAL", "|", "Binding", ".", "FIELD", ";", "return", "ref", ";", "}", "public", "void", "goForBlockStatementsopt", "(", ")", "{", "this", ".", "firstToken", "=", "TokenNameTWIDDLE", ";", "this", ".", "scanner", ".", "recordLineSeparator", "=", "false", ";", "}", "public", "void", "goForBlockStatementsOrCatchHeader", "(", ")", "{", "this", ".", "firstToken", "=", "TokenNameMULTIPLY", ";", "this", ".", "scanner", ".", "recordLineSeparator", "=", "false", ";", "}", "public", "void", "goForClassBodyDeclarations", "(", ")", "{", "this", ".", "firstToken", "=", "TokenNameAND", ";", "this", ".", "scanner", ".", "recordLineSeparator", "=", "true", ";", "}", "public", "void", "goForCompilationUnit", "(", ")", "{", "this", ".", "firstToken", "=", "TokenNamePLUS_PLUS", ";", "this", ".", "scanner", ".", "foundTaskCount", "=", "0", ";", "this", ".", "scanner", ".", "recordLineSeparator", "=", "true", ";", "}", "public", "void", "goForExpression", "(", ")", "{", "this", ".", "firstToken", "=", "TokenNameREMAINDER", ";", "this", ".", "scanner", ".", "recordLineSeparator", "=", "true", ";", "}", "public", "void", "goForFieldDeclaration", "(", ")", "{", "this", ".", "firstToken", "=", "TokenNameAND_AND", ";", "this", ".", "scanner", ".", "recordLineSeparator", "=", "true", ";", "}", "public", "void", "goForGenericMethodDeclaration", "(", ")", "{", "this", ".", "firstToken", "=", "TokenNameDIVIDE", ";", "this", ".", "scanner", ".", "recordLineSeparator", "=", "true", ";", "}", "public", "void", "goForHeaders", "(", ")", "{", "RecoveredType", "currentType", "=", "currentRecoveryType", "(", ")", ";", "if", "(", "currentType", "!=", "null", "&&", "currentType", ".", "insideEnumConstantPart", ")", "{", "this", ".", "firstToken", "=", "TokenNameNOT", ";", "}", "else", "{", "this", ".", "firstToken", "=", "TokenNameUNSIGNED_RIGHT_SHIFT", ";", "}", "this", ".", "scanner", ".", "recordLineSeparator", "=", "true", ";", "}", "public", "void", "goForImportDeclaration", "(", ")", "{", "this", ".", "firstToken", "=", "TokenNameOR_OR", ";", "this", ".", "scanner", ".", "recordLineSeparator", "=", "true", ";", "}", "public", "void", "goForInitializer", "(", ")", "{", "this", ".", "firstToken", "=", "TokenNameRIGHT_SHIFT", ";", "this", ".", "scanner", ".", "recordLineSeparator", "=", "false", ";", "}", "public", "void", "goForMemberValue", "(", ")", "{", "this", ".", "firstToken", "=", "TokenNameOR_OR", ";", "this", ".", "scanner", ".", "recordLineSeparator", "=", "true", ";", "}", "public", "void", "goForMethodBody", "(", ")", "{", "this", ".", "firstToken", "=", "TokenNameMINUS_MINUS", ";", "this", ".", "scanner", ".", "recordLineSeparator", "=", "false", ";", "}", "public", "void", "goForPackageDeclaration", "(", ")", "{", "this", ".", "firstToken", "=", "TokenNameQUESTION", ";", "this", ".", "scanner", ".", "recordLineSeparator", "=", "true", ";", "}", "public", "void", "goForTypeDeclaration", "(", ")", "{", "this", ".", "firstToken", "=", "TokenNamePLUS", ";", "this", ".", "scanner", ".", "recordLineSeparator", "=", "true", ";", "}", "public", "boolean", "hasLeadingTagComment", "(", "char", "[", "]", "commentPrefixTag", ",", "int", "rangeEnd", ")", "{", "int", "iComment", "=", "this", ".", "scanner", ".", "commentPtr", ";", "if", "(", "iComment", "<", "0", ")", "return", "false", ";", "int", "iStatement", "=", "this", ".", "astLengthPtr", ";", "if", "(", "iStatement", "<", "0", "||", "this", ".", "astLengthStack", "[", "iStatement", "]", "<=", "1", ")", "return", "false", ";", "ASTNode", "lastNode", "=", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ";", "int", "rangeStart", "=", "lastNode", ".", "sourceEnd", ";", "previousComment", ":", "for", "(", ";", "iComment", ">=", "0", ";", "iComment", "--", ")", "{", "int", "commentStart", "=", "this", ".", "scanner", ".", "commentStarts", "[", "iComment", "]", ";", "if", "(", "commentStart", "<", "0", ")", "commentStart", "=", "-", "commentStart", ";", "if", "(", "commentStart", "<", "rangeStart", ")", "return", "false", ";", "if", "(", "commentStart", ">", "rangeEnd", ")", "continue", "previousComment", ";", "char", "[", "]", "source", "=", "this", ".", "scanner", ".", "source", ";", "int", "charPos", "=", "commentStart", "+", "2", ";", "for", "(", ";", "charPos", "<", "rangeEnd", ";", "charPos", "++", ")", "{", "char", "c", "=", "source", "[", "charPos", "]", ";", "if", "(", "c", ">=", "ScannerHelper", ".", "MAX_OBVIOUS", "||", "(", "ScannerHelper", ".", "OBVIOUS_IDENT_CHAR_NATURES", "[", "c", "]", "&", "ScannerHelper", ".", "C_JLS_SPACE", ")", "==", "0", ")", "{", "break", ";", "}", "}", "for", "(", "int", "iTag", "=", "0", ",", "length", "=", "commentPrefixTag", ".", "length", ";", "iTag", "<", "length", ";", "iTag", "++", ",", "charPos", "++", ")", "{", "if", "(", "charPos", ">=", "rangeEnd", "||", "source", "[", "charPos", "]", "!=", "commentPrefixTag", "[", "iTag", "]", ")", "{", "if", "(", "iTag", "==", "0", ")", "{", "return", "false", ";", "}", "else", "{", "continue", "previousComment", ";", "}", "}", "}", "return", "true", ";", "}", "return", "false", ";", "}", "protected", "void", "ignoreExpressionAssignment", "(", ")", "{", "this", ".", "intPtr", "--", ";", "ArrayInitializer", "arrayInitializer", "=", "(", "ArrayInitializer", ")", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "--", "]", ";", "this", ".", "expressionLengthPtr", "--", ";", "if", "(", "!", "this", ".", "statementRecoveryActivated", ")", "problemReporter", "(", ")", ".", "arrayConstantsOnlyInArrayInitializers", "(", "arrayInitializer", ".", "sourceStart", ",", "arrayInitializer", ".", "sourceEnd", ")", ";", "}", "public", "void", "initialize", "(", ")", "{", "this", ".", "initialize", "(", "false", ")", ";", "}", "public", "void", "initialize", "(", "boolean", "initializeNLS", ")", "{", "this", ".", "astPtr", "=", "-", "1", ";", "this", ".", "astLengthPtr", "=", "-", "1", ";", "this", ".", "expressionPtr", "=", "-", "1", ";", "this", ".", "expressionLengthPtr", "=", "-", "1", ";", "this", ".", "identifierPtr", "=", "-", "1", ";", "this", ".", "identifierLengthPtr", "=", "-", "1", ";", "this", ".", "intPtr", "=", "-", "1", ";", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "=", "0", "]", "=", "0", ";", "this", ".", "variablesCounter", "[", "this", ".", "nestedType", "]", "=", "0", ";", "this", ".", "dimensions", "=", "0", ";", "this", ".", "realBlockPtr", "=", "-", "1", ";", "this", ".", "compilationUnit", "=", "null", ";", "this", ".", "referenceContext", "=", "null", ";", "this", ".", "endStatementPosition", "=", "0", ";", "int", "astLength", "=", "this", ".", "astStack", ".", "length", ";", "if", "(", "this", ".", "noAstNodes", ".", "length", "<", "astLength", ")", "{", "this", ".", "noAstNodes", "=", "new", "ASTNode", "[", "astLength", "]", ";", "}", "System", ".", "arraycopy", "(", "this", ".", "noAstNodes", ",", "0", ",", "this", ".", "astStack", ",", "0", ",", "astLength", ")", ";", "int", "expressionLength", "=", "this", ".", "expressionStack", ".", "length", ";", "if", "(", "this", ".", "noExpressions", ".", "length", "<", "expressionLength", ")", "{", "this", ".", "noExpressions", "=", "new", "Expression", "[", "expressionLength", "]", ";", "}", "System", ".", "arraycopy", "(", "this", ".", "noExpressions", ",", "0", ",", "this", ".", "expressionStack", ",", "0", ",", "expressionLength", ")", ";", "this", ".", "scanner", ".", "commentPtr", "=", "-", "1", ";", "this", ".", "scanner", ".", "foundTaskCount", "=", "0", ";", "this", ".", "scanner", ".", "eofPosition", "=", "Integer", ".", "MAX_VALUE", ";", "this", ".", "recordStringLiterals", "=", "true", ";", "final", "boolean", "checkNLS", "=", "this", ".", "options", ".", "getSeverity", "(", "CompilerOptions", ".", "NonExternalizedString", ")", "!=", "ProblemSeverities", ".", "Ignore", ";", "this", ".", "checkExternalizeStrings", "=", "checkNLS", ";", "this", ".", "scanner", ".", "checkNonExternalizedStringLiterals", "=", "initializeNLS", "&&", "checkNLS", ";", "this", ".", "scanner", ".", "lastPosition", "=", "-", "1", ";", "resetModifiers", "(", ")", ";", "this", ".", "lastCheckPoint", "=", "-", "1", ";", "this", ".", "currentElement", "=", "null", ";", "this", ".", "restartRecovery", "=", "false", ";", "this", ".", "hasReportedError", "=", "false", ";", "this", ".", "recoveredStaticInitializerStart", "=", "0", ";", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "this", ".", "lastErrorEndPosition", "=", "-", "1", ";", "this", ".", "lastErrorEndPositionBeforeRecovery", "=", "-", "1", ";", "this", ".", "lastJavadocEnd", "=", "-", "1", ";", "this", ".", "listLength", "=", "0", ";", "this", ".", "listTypeParameterLength", "=", "0", ";", "this", ".", "lastPosistion", "=", "-", "1", ";", "this", ".", "rBraceStart", "=", "0", ";", "this", ".", "rBraceEnd", "=", "0", ";", "this", ".", "rBraceSuccessorStart", "=", "0", ";", "this", ".", "genericsIdentifiersLengthPtr", "=", "-", "1", ";", "this", ".", "genericsLengthPtr", "=", "-", "1", ";", "this", ".", "genericsPtr", "=", "-", "1", ";", "}", "public", "void", "initializeScanner", "(", ")", "{", "this", ".", "scanner", "=", "new", "Scanner", "(", "false", ",", "false", ",", "false", ",", "this", ".", "options", ".", "sourceLevel", ",", "this", ".", "options", ".", "complianceLevel", ",", "this", ".", "options", ".", "taskTags", ",", "this", ".", "options", ".", "taskPriorities", ",", "this", ".", "options", ".", "isTaskCaseSensitive", ")", ";", "this", ".", "options", ".", "taskPriorities", "=", "scanner", ".", "taskPriorities", ";", "}", "public", "void", "jumpOverMethodBody", "(", ")", "{", "if", "(", "this", ".", "diet", "&&", "(", "this", ".", "dietInt", "==", "0", ")", ")", "this", ".", "scanner", ".", "diet", "=", "true", ";", "}", "private", "void", "jumpOverType", "(", ")", "{", "if", "(", "this", ".", "recoveredTypes", "!=", "null", "&&", "this", ".", "nextTypeStart", ">", "-", "1", "&&", "this", ".", "nextTypeStart", "<", "this", ".", "scanner", ".", "currentPosition", ")", "{", "if", "(", "DEBUG_AUTOMATON", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "TypeDeclaration", "typeDeclaration", "=", "this", ".", "recoveredTypes", "[", "this", ".", "recoveredTypePtr", "]", ";", "boolean", "isAnonymous", "=", "typeDeclaration", ".", "allocation", "!=", "null", ";", "this", ".", "scanner", ".", "startPosition", "=", "typeDeclaration", ".", "declarationSourceEnd", "+", "1", ";", "this", ".", "scanner", ".", "currentPosition", "=", "typeDeclaration", ".", "declarationSourceEnd", "+", "1", ";", "this", ".", "scanner", ".", "diet", "=", "false", ";", "if", "(", "!", "isAnonymous", ")", "{", "(", "(", "RecoveryScanner", ")", "this", ".", "scanner", ")", ".", "setPendingTokens", "(", "new", "int", "[", "]", "{", "TokenNameSEMICOLON", ",", "TokenNamebreak", "}", ")", ";", "}", "else", "{", "(", "(", "RecoveryScanner", ")", "this", ".", "scanner", ")", ".", "setPendingTokens", "(", "new", "int", "[", "]", "{", "TokenNameIdentifier", ",", "TokenNameEQUAL", ",", "TokenNameIdentifier", "}", ")", ";", "}", "this", ".", "pendingRecoveredType", "=", "typeDeclaration", ";", "try", "{", "this", ".", "currentToken", "=", "this", ".", "scanner", ".", "getNextToken", "(", ")", ";", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "}", "if", "(", "++", "this", ".", "recoveredTypePtr", "<", "this", ".", "recoveredTypes", ".", "length", ")", "{", "TypeDeclaration", "nextTypeDeclaration", "=", "this", ".", "recoveredTypes", "[", "this", ".", "recoveredTypePtr", "]", ";", "this", ".", "nextTypeStart", "=", "nextTypeDeclaration", ".", "allocation", "==", "null", "?", "nextTypeDeclaration", ".", "declarationSourceStart", ":", "nextTypeDeclaration", ".", "allocation", ".", "sourceStart", ";", "}", "else", "{", "this", ".", "nextTypeStart", "=", "Integer", ".", "MAX_VALUE", ";", "}", "}", "}", "protected", "void", "markEnclosingMemberWithLocalType", "(", ")", "{", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "return", ";", "for", "(", "int", "i", "=", "this", ".", "astPtr", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "ASTNode", "node", "=", "this", ".", "astStack", "[", "i", "]", ";", "if", "(", "node", "instanceof", "AbstractMethodDeclaration", "||", "node", "instanceof", "FieldDeclaration", "||", "(", "node", "instanceof", "TypeDeclaration", "&&", "(", "(", "TypeDeclaration", ")", "node", ")", ".", "declarationSourceEnd", "==", "0", ")", ")", "{", "node", ".", "bits", "|=", "ASTNode", ".", "HasLocalType", ";", "return", ";", "}", "}", "if", "(", "this", ".", "referenceContext", "instanceof", "AbstractMethodDeclaration", "||", "this", ".", "referenceContext", "instanceof", "TypeDeclaration", ")", "{", "(", "(", "ASTNode", ")", "this", ".", "referenceContext", ")", ".", "bits", "|=", "ASTNode", ".", "HasLocalType", ";", "}", "}", "protected", "boolean", "moveRecoveryCheckpoint", "(", ")", "{", "int", "pos", "=", "this", ".", "lastCheckPoint", ";", "this", ".", "scanner", ".", "startPosition", "=", "pos", ";", "this", ".", "scanner", ".", "currentPosition", "=", "pos", ";", "this", ".", "scanner", ".", "diet", "=", "false", ";", "if", "(", "this", ".", "restartRecovery", ")", "{", "this", ".", "lastIgnoredToken", "=", "-", "1", ";", "this", ".", "scanner", ".", "insideRecovery", "=", "true", ";", "return", "true", ";", "}", "this", ".", "lastIgnoredToken", "=", "this", ".", "nextIgnoredToken", ";", "this", ".", "nextIgnoredToken", "=", "-", "1", ";", "do", "{", "try", "{", "this", ".", "nextIgnoredToken", "=", "this", ".", "scanner", ".", "getNextToken", "(", ")", ";", "if", "(", "this", ".", "scanner", ".", "currentPosition", "==", "this", ".", "scanner", ".", "startPosition", ")", "{", "this", ".", "scanner", ".", "currentPosition", "++", ";", "this", ".", "nextIgnoredToken", "=", "-", "1", ";", "}", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "pos", "=", "this", ".", "scanner", ".", "currentPosition", ";", "}", "}", "while", "(", "this", ".", "nextIgnoredToken", "<", "0", ")", ";", "if", "(", "this", ".", "nextIgnoredToken", "==", "TokenNameEOF", ")", "{", "if", "(", "this", ".", "currentToken", "==", "TokenNameEOF", ")", "{", "return", "false", ";", "}", "}", "this", ".", "lastCheckPoint", "=", "this", ".", "scanner", ".", "currentPosition", ";", "this", ".", "scanner", ".", "startPosition", "=", "pos", ";", "this", ".", "scanner", ".", "currentPosition", "=", "pos", ";", "this", ".", "scanner", ".", "commentPtr", "=", "-", "1", ";", "this", ".", "scanner", ".", "foundTaskCount", "=", "0", ";", "return", "true", ";", "}", "protected", "MessageSend", "newMessageSend", "(", ")", "{", "MessageSend", "m", "=", "new", "MessageSend", "(", ")", ";", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "this", ".", "expressionPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "this", ".", "expressionPtr", "+", "1", ",", "m", ".", "arguments", "=", "new", "Expression", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "return", "m", ";", "}", "protected", "MessageSend", "newMessageSendWithTypeArguments", "(", ")", "{", "MessageSend", "m", "=", "new", "MessageSend", "(", ")", ";", "int", "length", ";", "if", "(", "(", "length", "=", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "this", ".", "expressionPtr", "-=", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "this", ".", "expressionPtr", "+", "1", ",", "m", ".", "arguments", "=", "new", "Expression", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "return", "m", ";", "}", "protected", "void", "optimizedConcatNodeLists", "(", ")", "{", "this", ".", "astLengthStack", "[", "--", "this", ".", "astLengthPtr", "]", "++", ";", "}", "protected", "void", "parse", "(", ")", "{", "if", "(", "DEBUG", ")", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "if", "(", "DEBUG_AUTOMATON", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "boolean", "isDietParse", "=", "this", ".", "diet", ";", "int", "oldFirstToken", "=", "getFirstToken", "(", ")", ";", "this", ".", "hasError", "=", "false", ";", "this", ".", "hasReportedError", "=", "false", ";", "int", "act", "=", "START_STATE", ";", "this", ".", "stateStackTop", "=", "-", "1", ";", "this", ".", "currentToken", "=", "getFirstToken", "(", ")", ";", "ProcessTerminals", ":", "for", "(", ";", ";", ")", "{", "int", "stackLength", "=", "this", ".", "stack", ".", "length", ";", "if", "(", "++", "this", ".", "stateStackTop", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "stack", ",", "0", ",", "this", ".", "stack", "=", "new", "int", "[", "stackLength", "+", "StackIncrement", "]", ",", "0", ",", "stackLength", ")", ";", "}", "this", ".", "stack", "[", "this", ".", "stateStackTop", "]", "=", "act", ";", "act", "=", "tAction", "(", "act", ",", "this", ".", "currentToken", ")", ";", "if", "(", "act", "==", "ERROR_ACTION", "||", "(", "this", ".", "restartRecovery", "&&", "!", "this", ".", "shouldDeferRecovery", ")", ")", "{", "this", ".", "shouldDeferRecovery", "=", "false", ";", "if", "(", "DEBUG_AUTOMATON", ")", "{", "if", "(", "this", ".", "restartRecovery", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "else", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "}", "int", "errorPos", "=", "this", ".", "scanner", ".", "currentPosition", "-", "1", ";", "if", "(", "!", "this", ".", "hasReportedError", ")", "{", "this", ".", "hasError", "=", "true", ";", "}", "int", "previousToken", "=", "this", ".", "currentToken", ";", "if", "(", "resumeOnSyntaxError", "(", ")", ")", "{", "if", "(", "act", "==", "ERROR_ACTION", "&&", "previousToken", "!=", "0", ")", "this", ".", "lastErrorEndPosition", "=", "errorPos", ";", "act", "=", "START_STATE", ";", "this", ".", "stateStackTop", "=", "-", "1", ";", "this", ".", "currentToken", "=", "getFirstToken", "(", ")", ";", "continue", "ProcessTerminals", ";", "}", "act", "=", "ERROR_ACTION", ";", "break", "ProcessTerminals", ";", "}", "if", "(", "act", "<=", "NUM_RULES", ")", "{", "this", ".", "stateStackTop", "--", ";", "if", "(", "DEBUG_AUTOMATON", ")", "{", "System", ".", "out", ".", "print", "(", "\"\"", ")", ";", "}", "}", "else", "if", "(", "act", ">", "ERROR_ACTION", ")", "{", "consumeToken", "(", "this", ".", "currentToken", ")", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "boolean", "oldValue", "=", "this", ".", "recordStringLiterals", ";", "this", ".", "recordStringLiterals", "=", "false", ";", "recoveryTokenCheck", "(", ")", ";", "this", ".", "recordStringLiterals", "=", "oldValue", ";", "}", "try", "{", "this", ".", "currentToken", "=", "this", ".", "scanner", ".", "getNextToken", "(", ")", ";", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "if", "(", "!", "this", ".", "hasReportedError", ")", "{", "problemReporter", "(", ")", ".", "scannerError", "(", "this", ",", "e", ".", "getMessage", "(", ")", ")", ";", "this", ".", "hasReportedError", "=", "true", ";", "}", "this", ".", "lastCheckPoint", "=", "this", ".", "scanner", ".", "currentPosition", ";", "this", ".", "currentToken", "=", "0", ";", "this", ".", "restartRecovery", "=", "true", ";", "}", "if", "(", "this", ".", "statementRecoveryActivated", ")", "{", "jumpOverType", "(", ")", ";", "}", "act", "-=", "ERROR_ACTION", ";", "if", "(", "DEBUG_AUTOMATON", ")", "{", "System", ".", "out", ".", "print", "(", "\"\"", "+", "name", "[", "terminal_index", "[", "this", ".", "currentToken", "]", "]", "+", "\")", "\"", ")", ";", "}", "}", "else", "{", "if", "(", "act", "<", "ACCEPT_ACTION", ")", "{", "consumeToken", "(", "this", ".", "currentToken", ")", ";", "if", "(", "this", ".", "currentElement", "!=", "null", ")", "{", "boolean", "oldValue", "=", "this", ".", "recordStringLiterals", ";", "this", ".", "recordStringLiterals", "=", "false", ";", "recoveryTokenCheck", "(", ")", ";", "this", ".", "recordStringLiterals", "=", "oldValue", ";", "}", "try", "{", "this", ".", "currentToken", "=", "this", ".", "scanner", ".", "getNextToken", "(", ")", ";", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "if", "(", "!", "this", ".", "hasReportedError", ")", "{", "problemReporter", "(", ")", ".", "scannerError", "(", "this", ",", "e", ".", "getMessage", "(", ")", ")", ";", "this", ".", "hasReportedError", "=", "true", ";", "}", "this", ".", "lastCheckPoint", "=", "this", ".", "scanner", ".", "currentPosition", ";", "this", ".", "currentToken", "=", "0", ";", "this", ".", "restartRecovery", "=", "true", ";", "}", "if", "(", "this", ".", "statementRecoveryActivated", ")", "{", "jumpOverType", "(", ")", ";", "}", "if", "(", "DEBUG_AUTOMATON", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", "+", "name", "[", "terminal_index", "[", "this", ".", "currentToken", "]", "]", "+", "\")\"", ")", ";", "}", "continue", "ProcessTerminals", ";", "}", "break", "ProcessTerminals", ";", "}", "do", "{", "if", "(", "DEBUG_AUTOMATON", ")", "{", "System", ".", "out", ".", "println", "(", "name", "[", "non_terminal_index", "[", "lhs", "[", "act", "]", "]", "]", ")", ";", "}", "consumeRule", "(", "act", ")", ";", "this", ".", "stateStackTop", "-=", "(", "rhs", "[", "act", "]", "-", "1", ")", ";", "act", "=", "ntAction", "(", "this", ".", "stack", "[", "this", ".", "stateStackTop", "]", ",", "lhs", "[", "act", "]", ")", ";", "if", "(", "DEBUG_AUTOMATON", ")", "{", "if", "(", "act", "<=", "NUM_RULES", ")", "{", "System", ".", "out", ".", "print", "(", "\"\"", ")", ";", "}", "}", "}", "while", "(", "act", "<=", "NUM_RULES", ")", ";", "if", "(", "DEBUG_AUTOMATON", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "}", "if", "(", "DEBUG_AUTOMATON", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "endParse", "(", "act", ")", ";", "final", "NLSTag", "[", "]", "tags", "=", "this", ".", "scanner", ".", "getNLSTags", "(", ")", ";", "if", "(", "tags", "!=", "null", ")", "{", "this", ".", "compilationUnit", ".", "nlsTags", "=", "tags", ";", "}", "this", ".", "scanner", ".", "checkNonExternalizedStringLiterals", "=", "false", ";", "if", "(", "this", ".", "reportSyntaxErrorIsRequired", "&&", "this", ".", "hasError", "&&", "!", "this", ".", "statementRecoveryActivated", ")", "{", "if", "(", "!", "this", ".", "options", ".", "performStatementsRecovery", ")", "{", "reportSyntaxErrors", "(", "isDietParse", ",", "oldFirstToken", ")", ";", "}", "else", "{", "RecoveryScannerData", "data", "=", "this", ".", "referenceContext", ".", "compilationResult", "(", ")", ".", "recoveryScannerData", ";", "if", "(", "this", ".", "recoveryScanner", "==", "null", ")", "{", "this", ".", "recoveryScanner", "=", "new", "RecoveryScanner", "(", "this", ".", "scanner", ",", "data", ")", ";", "}", "else", "{", "this", ".", "recoveryScanner", ".", "setData", "(", "data", ")", ";", "}", "this", ".", "recoveryScanner", ".", "setSource", "(", "this", ".", "scanner", ".", "source", ")", ";", "this", ".", "recoveryScanner", ".", "lineEnds", "=", "this", ".", "scanner", ".", "lineEnds", ";", "this", ".", "recoveryScanner", ".", "linePtr", "=", "this", ".", "scanner", ".", "linePtr", ";", "reportSyntaxErrors", "(", "isDietParse", ",", "oldFirstToken", ")", ";", "if", "(", "data", "==", "null", ")", "{", "this", ".", "referenceContext", ".", "compilationResult", "(", ")", ".", "recoveryScannerData", "=", "this", ".", "recoveryScanner", ".", "getData", "(", ")", ";", "}", "if", "(", "this", ".", "methodRecoveryActivated", "&&", "this", ".", "options", ".", "performStatementsRecovery", ")", "{", "this", ".", "methodRecoveryActivated", "=", "false", ";", "recoverStatements", "(", ")", ";", "this", ".", "methodRecoveryActivated", "=", "true", ";", "this", ".", "lastAct", "=", "ERROR_ACTION", ";", "}", "}", "}", "if", "(", "DEBUG", ")", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "public", "void", "parse", "(", "ConstructorDeclaration", "cd", ",", "CompilationUnitDeclaration", "unit", ",", "boolean", "recordLineSeparator", ")", "{", "boolean", "oldMethodRecoveryActivated", "=", "this", ".", "methodRecoveryActivated", ";", "if", "(", "this", ".", "options", ".", "performMethodsFullRecovery", ")", "{", "this", ".", "methodRecoveryActivated", "=", "true", ";", "this", ".", "ignoreNextOpeningBrace", "=", "true", ";", "}", "initialize", "(", ")", ";", "goForBlockStatementsopt", "(", ")", ";", "if", "(", "recordLineSeparator", ")", "{", "this", ".", "scanner", ".", "recordLineSeparator", "=", "true", ";", "}", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "++", ";", "pushOnRealBlockStack", "(", "0", ")", ";", "this", ".", "referenceContext", "=", "cd", ";", "this", ".", "compilationUnit", "=", "unit", ";", "this", ".", "scanner", ".", "resetTo", "(", "cd", ".", "bodyStart", ",", "cd", ".", "bodyEnd", ")", ";", "try", "{", "parse", "(", ")", ";", "}", "catch", "(", "AbortCompilation", "ex", ")", "{", "this", ".", "lastAct", "=", "ERROR_ACTION", ";", "}", "finally", "{", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "--", ";", "if", "(", "this", ".", "options", ".", "performStatementsRecovery", ")", "{", "this", ".", "methodRecoveryActivated", "=", "oldMethodRecoveryActivated", ";", "}", "}", "checkNonNLSAfterBodyEnd", "(", "cd", ".", "declarationSourceEnd", ")", ";", "if", "(", "this", ".", "lastAct", "==", "ERROR_ACTION", ")", "{", "cd", ".", "bits", "|=", "ASTNode", ".", "HasSyntaxErrors", ";", "initialize", "(", ")", ";", "return", ";", "}", "cd", ".", "explicitDeclarations", "=", "this", ".", "realBlockStack", "[", "this", ".", "realBlockPtr", "--", "]", ";", "int", "length", ";", "if", "(", "this", ".", "astLengthPtr", ">", "-", "1", "&&", "(", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "this", ".", "astPtr", "-=", "length", ";", "if", "(", "!", "this", ".", "options", ".", "ignoreMethodBodies", ")", "{", "if", "(", "this", ".", "astStack", "[", "this", ".", "astPtr", "+", "1", "]", "instanceof", "ExplicitConstructorCall", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "this", ".", "astPtr", "+", "2", ",", "cd", ".", "statements", "=", "new", "Statement", "[", "length", "-", "1", "]", ",", "0", ",", "length", "-", "1", ")", ";", "cd", ".", "constructorCall", "=", "(", "ExplicitConstructorCall", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "+", "1", "]", ";", "}", "else", "{", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "this", ".", "astPtr", "+", "1", ",", "cd", ".", "statements", "=", "new", "Statement", "[", "length", "]", ",", "0", ",", "length", ")", ";", "cd", ".", "constructorCall", "=", "SuperReference", ".", "implicitSuperConstructorCall", "(", ")", ";", "}", "}", "}", "else", "{", "if", "(", "!", "this", ".", "options", ".", "ignoreMethodBodies", ")", "{", "cd", ".", "constructorCall", "=", "SuperReference", ".", "implicitSuperConstructorCall", "(", ")", ";", "}", "if", "(", "!", "containsComment", "(", "cd", ".", "bodyStart", ",", "cd", ".", "bodyEnd", ")", ")", "{", "cd", ".", "bits", "|=", "ASTNode", ".", "UndocumentedEmptyBlock", ";", "}", "}", "ExplicitConstructorCall", "explicitConstructorCall", "=", "cd", ".", "constructorCall", ";", "if", "(", "explicitConstructorCall", "!=", "null", "&&", "explicitConstructorCall", ".", "sourceEnd", "==", "0", ")", "{", "explicitConstructorCall", ".", "sourceEnd", "=", "cd", ".", "sourceEnd", ";", "explicitConstructorCall", ".", "sourceStart", "=", "cd", ".", "sourceStart", ";", "}", "}", "public", "void", "parse", "(", "FieldDeclaration", "field", ",", "TypeDeclaration", "type", ",", "CompilationUnitDeclaration", "unit", ",", "char", "[", "]", "initializationSource", ")", "{", "initialize", "(", ")", ";", "goForExpression", "(", ")", ";", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "++", ";", "this", ".", "referenceContext", "=", "type", ";", "this", ".", "compilationUnit", "=", "unit", ";", "this", ".", "scanner", ".", "setSource", "(", "initializationSource", ")", ";", "this", ".", "scanner", ".", "resetTo", "(", "0", ",", "initializationSource", ".", "length", "-", "1", ")", ";", "try", "{", "parse", "(", ")", ";", "}", "catch", "(", "AbortCompilation", "ex", ")", "{", "this", ".", "lastAct", "=", "ERROR_ACTION", ";", "}", "finally", "{", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "--", ";", "}", "if", "(", "this", ".", "lastAct", "==", "ERROR_ACTION", ")", "{", "field", ".", "bits", "|=", "ASTNode", ".", "HasSyntaxErrors", ";", "return", ";", "}", "field", ".", "initialization", "=", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ";", "if", "(", "(", "type", ".", "bits", "&", "ASTNode", ".", "HasLocalType", ")", "!=", "0", ")", "{", "field", ".", "bits", "|=", "ASTNode", ".", "HasLocalType", ";", "}", "}", "public", "CompilationUnitDeclaration", "parse", "(", "ICompilationUnit", "sourceUnit", ",", "CompilationResult", "compilationResult", ")", "{", "return", "parse", "(", "sourceUnit", ",", "compilationResult", ",", "-", "1", ",", "-", "1", ")", ";", "}", "public", "CompilationUnitDeclaration", "parse", "(", "ICompilationUnit", "sourceUnit", ",", "CompilationResult", "compilationResult", ",", "int", "start", ",", "int", "end", ")", "{", "CompilationUnitDeclaration", "unit", ";", "try", "{", "initialize", "(", "true", ")", ";", "goForCompilationUnit", "(", ")", ";", "this", ".", "referenceContext", "=", "this", ".", "compilationUnit", "=", "new", "CompilationUnitDeclaration", "(", "this", ".", "problemReporter", ",", "compilationResult", ",", "0", ")", ";", "char", "[", "]", "contents", ";", "try", "{", "contents", "=", "this", ".", "readManager", "!=", "null", "?", "this", ".", "readManager", ".", "getContents", "(", "sourceUnit", ")", ":", "sourceUnit", ".", "getContents", "(", ")", ";", "}", "catch", "(", "AbortCompilationUnit", "abortException", ")", "{", "problemReporter", "(", ")", ".", "cannotReadSource", "(", "this", ".", "compilationUnit", ",", "abortException", ",", "this", ".", "options", ".", "verbose", ")", ";", "contents", "=", "CharOperation", ".", "NO_CHAR", ";", "}", "this", ".", "scanner", ".", "setSource", "(", "contents", ")", ";", "this", ".", "compilationUnit", ".", "sourceEnd", "=", "this", ".", "scanner", ".", "source", ".", "length", "-", "1", ";", "if", "(", "end", "!=", "-", "1", ")", "this", ".", "scanner", ".", "resetTo", "(", "start", ",", "end", ")", ";", "if", "(", "this", ".", "javadocParser", "!=", "null", "&&", "this", ".", "javadocParser", ".", "checkDocComment", ")", "{", "this", ".", "javadocParser", ".", "scanner", ".", "setSource", "(", "contents", ")", ";", "if", "(", "end", "!=", "-", "1", ")", "{", "this", ".", "javadocParser", ".", "scanner", ".", "resetTo", "(", "start", ",", "end", ")", ";", "}", "}", "parse", "(", ")", ";", "}", "finally", "{", "unit", "=", "this", ".", "compilationUnit", ";", "this", ".", "compilationUnit", "=", "null", ";", "if", "(", "!", "this", ".", "diet", ")", "unit", ".", "bits", "|=", "ASTNode", ".", "HasAllMethodBodies", ";", "}", "return", "unit", ";", "}", "public", "void", "parse", "(", "Initializer", "initializer", ",", "TypeDeclaration", "type", ",", "CompilationUnitDeclaration", "unit", ")", "{", "boolean", "oldMethodRecoveryActivated", "=", "this", ".", "methodRecoveryActivated", ";", "if", "(", "this", ".", "options", ".", "performMethodsFullRecovery", ")", "{", "this", ".", "methodRecoveryActivated", "=", "true", ";", "}", "initialize", "(", ")", ";", "goForBlockStatementsopt", "(", ")", ";", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "++", ";", "pushOnRealBlockStack", "(", "0", ")", ";", "this", ".", "referenceContext", "=", "type", ";", "this", ".", "compilationUnit", "=", "unit", ";", "this", ".", "scanner", ".", "resetTo", "(", "initializer", ".", "bodyStart", ",", "initializer", ".", "bodyEnd", ")", ";", "try", "{", "parse", "(", ")", ";", "}", "catch", "(", "AbortCompilation", "ex", ")", "{", "this", ".", "lastAct", "=", "ERROR_ACTION", ";", "}", "finally", "{", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "--", ";", "if", "(", "this", ".", "options", ".", "performStatementsRecovery", ")", "{", "this", ".", "methodRecoveryActivated", "=", "oldMethodRecoveryActivated", ";", "}", "}", "checkNonNLSAfterBodyEnd", "(", "initializer", ".", "declarationSourceEnd", ")", ";", "if", "(", "this", ".", "lastAct", "==", "ERROR_ACTION", ")", "{", "initializer", ".", "bits", "|=", "ASTNode", ".", "HasSyntaxErrors", ";", "return", ";", "}", "initializer", ".", "block", ".", "explicitDeclarations", "=", "this", ".", "realBlockStack", "[", "this", ".", "realBlockPtr", "--", "]", ";", "int", "length", ";", "if", "(", "this", ".", "astLengthPtr", ">", "-", "1", "&&", "(", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", ">", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "(", "this", ".", "astPtr", "-=", "length", ")", "+", "1", ",", "initializer", ".", "block", ".", "statements", "=", "new", "Statement", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "else", "{", "if", "(", "!", "containsComment", "(", "initializer", ".", "block", ".", "sourceStart", ",", "initializer", ".", "block", ".", "sourceEnd", ")", ")", "{", "initializer", ".", "block", ".", "bits", "|=", "ASTNode", ".", "UndocumentedEmptyBlock", ";", "}", "}", "if", "(", "(", "type", ".", "bits", "&", "ASTNode", ".", "HasLocalType", ")", "!=", "0", ")", "{", "initializer", ".", "bits", "|=", "ASTNode", ".", "HasLocalType", ";", "}", "}", "public", "void", "parse", "(", "MethodDeclaration", "md", ",", "CompilationUnitDeclaration", "unit", ")", "{", "if", "(", "md", ".", "isAbstract", "(", ")", ")", "return", ";", "if", "(", "md", ".", "isNative", "(", ")", ")", "return", ";", "if", "(", "(", "md", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccSemicolonBody", ")", "!=", "0", ")", "return", ";", "boolean", "oldMethodRecoveryActivated", "=", "this", ".", "methodRecoveryActivated", ";", "if", "(", "this", ".", "options", ".", "performMethodsFullRecovery", ")", "{", "this", ".", "ignoreNextOpeningBrace", "=", "true", ";", "this", ".", "methodRecoveryActivated", "=", "true", ";", "this", ".", "rParenPos", "=", "md", ".", "sourceEnd", ";", "}", "initialize", "(", ")", ";", "goForBlockStatementsopt", "(", ")", ";", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "++", ";", "pushOnRealBlockStack", "(", "0", ")", ";", "this", ".", "referenceContext", "=", "md", ";", "this", ".", "compilationUnit", "=", "unit", ";", "this", ".", "scanner", ".", "resetTo", "(", "md", ".", "bodyStart", ",", "md", ".", "bodyEnd", ")", ";", "try", "{", "parse", "(", ")", ";", "}", "catch", "(", "AbortCompilation", "ex", ")", "{", "this", ".", "lastAct", "=", "ERROR_ACTION", ";", "}", "finally", "{", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "--", ";", "if", "(", "this", ".", "options", ".", "performStatementsRecovery", ")", "{", "this", ".", "methodRecoveryActivated", "=", "oldMethodRecoveryActivated", ";", "}", "}", "checkNonNLSAfterBodyEnd", "(", "md", ".", "declarationSourceEnd", ")", ";", "if", "(", "this", ".", "lastAct", "==", "ERROR_ACTION", ")", "{", "md", ".", "bits", "|=", "ASTNode", ".", "HasSyntaxErrors", ";", "return", ";", "}", "md", ".", "explicitDeclarations", "=", "this", ".", "realBlockStack", "[", "this", ".", "realBlockPtr", "--", "]", ";", "int", "length", ";", "if", "(", "this", ".", "astLengthPtr", ">", "-", "1", "&&", "(", "length", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "if", "(", "this", ".", "options", ".", "ignoreMethodBodies", ")", "{", "this", ".", "astPtr", "-=", "length", ";", "}", "else", "{", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "(", "this", ".", "astPtr", "-=", "length", ")", "+", "1", ",", "md", ".", "statements", "=", "new", "Statement", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "}", "else", "{", "if", "(", "!", "containsComment", "(", "md", ".", "bodyStart", ",", "md", ".", "bodyEnd", ")", ")", "{", "md", ".", "bits", "|=", "ASTNode", ".", "UndocumentedEmptyBlock", ";", "}", "}", "}", "public", "ASTNode", "[", "]", "parseClassBodyDeclarations", "(", "char", "[", "]", "source", ",", "int", "offset", ",", "int", "length", ",", "CompilationUnitDeclaration", "unit", ")", "{", "boolean", "oldDiet", "=", "this", ".", "diet", ";", "initialize", "(", ")", ";", "goForClassBodyDeclarations", "(", ")", ";", "this", ".", "scanner", ".", "setSource", "(", "source", ")", ";", "this", ".", "scanner", ".", "resetTo", "(", "offset", ",", "offset", "+", "length", "-", "1", ")", ";", "if", "(", "this", ".", "javadocParser", "!=", "null", "&&", "this", ".", "javadocParser", ".", "checkDocComment", ")", "{", "this", ".", "javadocParser", ".", "scanner", ".", "setSource", "(", "source", ")", ";", "this", ".", "javadocParser", ".", "scanner", ".", "resetTo", "(", "offset", ",", "offset", "+", "length", "-", "1", ")", ";", "}", "this", ".", "nestedType", "=", "1", ";", "TypeDeclaration", "referenceContextTypeDeclaration", "=", "new", "TypeDeclaration", "(", "unit", ".", "compilationResult", ")", ";", "referenceContextTypeDeclaration", ".", "name", "=", "Util", ".", "EMPTY_STRING", ".", "toCharArray", "(", ")", ";", "referenceContextTypeDeclaration", ".", "fields", "=", "new", "FieldDeclaration", "[", "0", "]", ";", "this", ".", "compilationUnit", "=", "unit", ";", "unit", ".", "types", "=", "new", "TypeDeclaration", "[", "1", "]", ";", "unit", ".", "types", "[", "0", "]", "=", "referenceContextTypeDeclaration", ";", "this", ".", "referenceContext", "=", "unit", ";", "try", "{", "this", ".", "diet", "=", "true", ";", "parse", "(", ")", ";", "}", "catch", "(", "AbortCompilation", "ex", ")", "{", "this", ".", "lastAct", "=", "ERROR_ACTION", ";", "}", "finally", "{", "this", ".", "diet", "=", "oldDiet", ";", "}", "ASTNode", "[", "]", "result", "=", "null", ";", "if", "(", "this", ".", "lastAct", "==", "ERROR_ACTION", ")", "{", "if", "(", "!", "this", ".", "options", ".", "performMethodsFullRecovery", "&&", "!", "this", ".", "options", ".", "performStatementsRecovery", ")", "{", "return", "null", ";", "}", "final", "List", "bodyDeclarations", "=", "new", "ArrayList", "(", ")", ";", "ASTVisitor", "visitor", "=", "new", "ASTVisitor", "(", ")", "{", "public", "boolean", "visit", "(", "MethodDeclaration", "methodDeclaration", ",", "ClassScope", "scope", ")", "{", "if", "(", "!", "methodDeclaration", ".", "isDefaultConstructor", "(", ")", ")", "{", "bodyDeclarations", ".", "add", "(", "methodDeclaration", ")", ";", "}", "return", "false", ";", "}", "public", "boolean", "visit", "(", "FieldDeclaration", "fieldDeclaration", ",", "MethodScope", "scope", ")", "{", "bodyDeclarations", ".", "add", "(", "fieldDeclaration", ")", ";", "return", "false", ";", "}", "public", "boolean", "visit", "(", "TypeDeclaration", "memberTypeDeclaration", ",", "ClassScope", "scope", ")", "{", "bodyDeclarations", ".", "add", "(", "memberTypeDeclaration", ")", ";", "return", "false", ";", "}", "}", ";", "unit", ".", "ignoreFurtherInvestigation", "=", "false", ";", "unit", ".", "traverse", "(", "visitor", ",", "unit", ".", "scope", ")", ";", "unit", ".", "ignoreFurtherInvestigation", "=", "true", ";", "result", "=", "(", "ASTNode", "[", "]", ")", "bodyDeclarations", ".", "toArray", "(", "new", "ASTNode", "[", "bodyDeclarations", ".", "size", "(", ")", "]", ")", ";", "}", "else", "{", "int", "astLength", ";", "if", "(", "this", ".", "astLengthPtr", ">", "-", "1", "&&", "(", "astLength", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ")", "!=", "0", ")", "{", "result", "=", "new", "ASTNode", "[", "astLength", "]", ";", "this", ".", "astPtr", "-=", "astLength", ";", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "this", ".", "astPtr", "+", "1", ",", "result", ",", "0", ",", "astLength", ")", ";", "}", "else", "{", "result", "=", "new", "ASTNode", "[", "0", "]", ";", "}", "}", "boolean", "containsInitializers", "=", "false", ";", "TypeDeclaration", "typeDeclaration", "=", "null", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "result", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "ASTNode", "node", "=", "result", "[", "i", "]", ";", "if", "(", "node", "instanceof", "TypeDeclaration", ")", "{", "(", "(", "TypeDeclaration", ")", "node", ")", ".", "parseMethods", "(", "this", ",", "unit", ")", ";", "}", "else", "if", "(", "node", "instanceof", "AbstractMethodDeclaration", ")", "{", "(", "(", "AbstractMethodDeclaration", ")", "node", ")", ".", "parseStatements", "(", "this", ",", "unit", ")", ";", "}", "else", "if", "(", "node", "instanceof", "FieldDeclaration", ")", "{", "FieldDeclaration", "fieldDeclaration", "=", "(", "FieldDeclaration", ")", "node", ";", "switch", "(", "fieldDeclaration", ".", "getKind", "(", ")", ")", "{", "case", "AbstractVariableDeclaration", ".", "INITIALIZER", ":", "containsInitializers", "=", "true", ";", "if", "(", "typeDeclaration", "==", "null", ")", "{", "typeDeclaration", "=", "referenceContextTypeDeclaration", ";", "}", "if", "(", "typeDeclaration", ".", "fields", "==", "null", ")", "{", "typeDeclaration", ".", "fields", "=", "new", "FieldDeclaration", "[", "1", "]", ";", "typeDeclaration", ".", "fields", "[", "0", "]", "=", "fieldDeclaration", ";", "}", "else", "{", "int", "length2", "=", "typeDeclaration", ".", "fields", ".", "length", ";", "FieldDeclaration", "[", "]", "temp", "=", "new", "FieldDeclaration", "[", "length2", "+", "1", "]", ";", "System", ".", "arraycopy", "(", "typeDeclaration", ".", "fields", ",", "0", ",", "temp", ",", "0", ",", "length2", ")", ";", "temp", "[", "length2", "]", "=", "fieldDeclaration", ";", "typeDeclaration", ".", "fields", "=", "temp", ";", "}", "break", ";", "}", "}", "if", "(", "(", "(", "node", ".", "bits", "&", "ASTNode", ".", "HasSyntaxErrors", ")", "!=", "0", ")", "&&", "(", "!", "this", ".", "options", ".", "performMethodsFullRecovery", "&&", "!", "this", ".", "options", ".", "performStatementsRecovery", ")", ")", "{", "return", "null", ";", "}", "}", "if", "(", "containsInitializers", ")", "{", "FieldDeclaration", "[", "]", "fieldDeclarations", "=", "typeDeclaration", ".", "fields", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "fieldDeclarations", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "Initializer", "initializer", "=", "(", "Initializer", ")", "fieldDeclarations", "[", "i", "]", ";", "initializer", ".", "parseStatements", "(", "this", ",", "typeDeclaration", ",", "unit", ")", ";", "if", "(", "(", "(", "initializer", ".", "bits", "&", "ASTNode", ".", "HasSyntaxErrors", ")", "!=", "0", ")", "&&", "(", "!", "this", ".", "options", ".", "performMethodsFullRecovery", "&&", "!", "this", ".", "options", ".", "performStatementsRecovery", ")", ")", "{", "return", "null", ";", "}", "}", "}", "return", "result", ";", "}", "public", "Expression", "parseExpression", "(", "char", "[", "]", "source", ",", "int", "offset", ",", "int", "length", ",", "CompilationUnitDeclaration", "unit", ")", "{", "initialize", "(", ")", ";", "goForExpression", "(", ")", ";", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "++", ";", "this", ".", "referenceContext", "=", "unit", ";", "this", ".", "compilationUnit", "=", "unit", ";", "this", ".", "scanner", ".", "setSource", "(", "source", ")", ";", "this", ".", "scanner", ".", "resetTo", "(", "offset", ",", "offset", "+", "length", "-", "1", ")", ";", "try", "{", "parse", "(", ")", ";", "}", "catch", "(", "AbortCompilation", "ex", ")", "{", "this", ".", "lastAct", "=", "ERROR_ACTION", ";", "}", "finally", "{", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "--", ";", "}", "if", "(", "this", ".", "lastAct", "==", "ERROR_ACTION", ")", "{", "return", "null", ";", "}", "return", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ";", "}", "public", "Expression", "parseMemberValue", "(", "char", "[", "]", "source", ",", "int", "offset", ",", "int", "length", ",", "CompilationUnitDeclaration", "unit", ")", "{", "initialize", "(", ")", ";", "goForMemberValue", "(", ")", ";", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "++", ";", "this", ".", "referenceContext", "=", "unit", ";", "this", ".", "compilationUnit", "=", "unit", ";", "this", ".", "scanner", ".", "setSource", "(", "source", ")", ";", "this", ".", "scanner", ".", "resetTo", "(", "offset", ",", "offset", "+", "length", "-", "1", ")", ";", "try", "{", "parse", "(", ")", ";", "}", "catch", "(", "AbortCompilation", "ex", ")", "{", "this", ".", "lastAct", "=", "ERROR_ACTION", ";", "}", "finally", "{", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "--", ";", "}", "if", "(", "this", ".", "lastAct", "==", "ERROR_ACTION", ")", "{", "return", "null", ";", "}", "return", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", ";", "}", "public", "void", "parseStatements", "(", "ReferenceContext", "rc", ",", "int", "start", ",", "int", "end", ",", "TypeDeclaration", "[", "]", "types", ",", "CompilationUnitDeclaration", "unit", ")", "{", "boolean", "oldStatementRecoveryEnabled", "=", "this", ".", "statementRecoveryActivated", ";", "this", ".", "statementRecoveryActivated", "=", "true", ";", "initialize", "(", ")", ";", "goForBlockStatementsopt", "(", ")", ";", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "++", ";", "pushOnRealBlockStack", "(", "0", ")", ";", "pushOnAstLengthStack", "(", "0", ")", ";", "this", ".", "referenceContext", "=", "rc", ";", "this", ".", "compilationUnit", "=", "unit", ";", "this", ".", "pendingRecoveredType", "=", "null", ";", "if", "(", "types", "!=", "null", "&&", "types", ".", "length", ">", "0", ")", "{", "this", ".", "recoveredTypes", "=", "types", ";", "this", ".", "recoveredTypePtr", "=", "0", ";", "this", ".", "nextTypeStart", "=", "this", ".", "recoveredTypes", "[", "0", "]", ".", "allocation", "==", "null", "?", "this", ".", "recoveredTypes", "[", "0", "]", ".", "declarationSourceStart", ":", "this", ".", "recoveredTypes", "[", "0", "]", ".", "allocation", ".", "sourceStart", ";", "}", "else", "{", "this", ".", "recoveredTypes", "=", "null", ";", "this", ".", "recoveredTypePtr", "=", "-", "1", ";", "this", ".", "nextTypeStart", "=", "-", "1", ";", "}", "this", ".", "scanner", ".", "resetTo", "(", "start", ",", "end", ")", ";", "this", ".", "lastCheckPoint", "=", "this", ".", "scanner", ".", "initialPosition", ";", "this", ".", "stateStackTop", "=", "-", "1", ";", "try", "{", "parse", "(", ")", ";", "}", "catch", "(", "AbortCompilation", "ex", ")", "{", "this", ".", "lastAct", "=", "ERROR_ACTION", ";", "}", "finally", "{", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "]", "--", ";", "this", ".", "recoveredTypes", "=", "null", ";", "this", ".", "statementRecoveryActivated", "=", "oldStatementRecoveryEnabled", ";", "}", "checkNonNLSAfterBodyEnd", "(", "end", ")", ";", "}", "public", "void", "persistLineSeparatorPositions", "(", ")", "{", "if", "(", "this", ".", "scanner", ".", "recordLineSeparator", ")", "{", "this", ".", "compilationUnit", ".", "compilationResult", ".", "lineSeparatorPositions", "=", "this", ".", "scanner", ".", "getLineEnds", "(", ")", ";", "}", "}", "protected", "void", "prepareForBlockStatements", "(", ")", "{", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "=", "0", "]", "=", "1", ";", "this", ".", "variablesCounter", "[", "this", ".", "nestedType", "]", "=", "0", ";", "this", ".", "realBlockStack", "[", "this", ".", "realBlockPtr", "=", "1", "]", "=", "0", ";", "}", "public", "ProblemReporter", "problemReporter", "(", ")", "{", "if", "(", "this", ".", "scanner", ".", "recordLineSeparator", ")", "{", "this", ".", "compilationUnit", ".", "compilationResult", ".", "lineSeparatorPositions", "=", "this", ".", "scanner", ".", "getLineEnds", "(", ")", ";", "}", "this", ".", "problemReporter", ".", "referenceContext", "=", "this", ".", "referenceContext", ";", "return", "this", ".", "problemReporter", ";", "}", "protected", "void", "pushIdentifier", "(", ")", "{", "int", "stackLength", "=", "this", ".", "identifierStack", ".", "length", ";", "if", "(", "++", "this", ".", "identifierPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "identifierStack", ",", "0", ",", "this", ".", "identifierStack", "=", "new", "char", "[", "stackLength", "+", "20", "]", "[", "]", ",", "0", ",", "stackLength", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierPositionStack", ",", "0", ",", "this", ".", "identifierPositionStack", "=", "new", "long", "[", "stackLength", "+", "20", "]", ",", "0", ",", "stackLength", ")", ";", "}", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", "=", "this", ".", "scanner", ".", "getCurrentIdentifierSource", "(", ")", ";", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", "=", "(", "(", "(", "long", ")", "this", ".", "scanner", ".", "startPosition", ")", "<<", "32", ")", "+", "(", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ";", "stackLength", "=", "this", ".", "identifierLengthStack", ".", "length", ";", "if", "(", "++", "this", ".", "identifierLengthPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "identifierLengthStack", ",", "0", ",", "this", ".", "identifierLengthStack", "=", "new", "int", "[", "stackLength", "+", "10", "]", ",", "0", ",", "stackLength", ")", ";", "}", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "]", "=", "1", ";", "}", "protected", "void", "pushIdentifier", "(", "int", "flag", ")", "{", "int", "stackLength", "=", "this", ".", "identifierLengthStack", ".", "length", ";", "if", "(", "++", "this", ".", "identifierLengthPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "identifierLengthStack", ",", "0", ",", "this", ".", "identifierLengthStack", "=", "new", "int", "[", "stackLength", "+", "10", "]", ",", "0", ",", "stackLength", ")", ";", "}", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "]", "=", "flag", ";", "}", "protected", "void", "pushOnAstLengthStack", "(", "int", "pos", ")", "{", "int", "stackLength", "=", "this", ".", "astLengthStack", ".", "length", ";", "if", "(", "++", "this", ".", "astLengthPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "astLengthStack", ",", "0", ",", "this", ".", "astLengthStack", "=", "new", "int", "[", "stackLength", "+", "StackIncrement", "]", ",", "0", ",", "stackLength", ")", ";", "}", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "]", "=", "pos", ";", "}", "protected", "void", "pushOnAstStack", "(", "ASTNode", "node", ")", "{", "int", "stackLength", "=", "this", ".", "astStack", ".", "length", ";", "if", "(", "++", "this", ".", "astPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "astStack", ",", "0", ",", "this", ".", "astStack", "=", "new", "ASTNode", "[", "stackLength", "+", "AstStackIncrement", "]", ",", "0", ",", "stackLength", ")", ";", "this", ".", "astPtr", "=", "stackLength", ";", "}", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", "=", "node", ";", "stackLength", "=", "this", ".", "astLengthStack", ".", "length", ";", "if", "(", "++", "this", ".", "astLengthPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "astLengthStack", ",", "0", ",", "this", ".", "astLengthStack", "=", "new", "int", "[", "stackLength", "+", "AstStackIncrement", "]", ",", "0", ",", "stackLength", ")", ";", "}", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "]", "=", "1", ";", "}", "protected", "void", "pushOnExpressionStack", "(", "Expression", "expr", ")", "{", "int", "stackLength", "=", "this", ".", "expressionStack", ".", "length", ";", "if", "(", "++", "this", ".", "expressionPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "expressionStack", ",", "0", ",", "this", ".", "expressionStack", "=", "new", "Expression", "[", "stackLength", "+", "ExpressionStackIncrement", "]", ",", "0", ",", "stackLength", ")", ";", "}", "this", ".", "expressionStack", "[", "this", ".", "expressionPtr", "]", "=", "expr", ";", "stackLength", "=", "this", ".", "expressionLengthStack", ".", "length", ";", "if", "(", "++", "this", ".", "expressionLengthPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "expressionLengthStack", ",", "0", ",", "this", ".", "expressionLengthStack", "=", "new", "int", "[", "stackLength", "+", "ExpressionStackIncrement", "]", ",", "0", ",", "stackLength", ")", ";", "}", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "]", "=", "1", ";", "}", "protected", "void", "pushOnExpressionStackLengthStack", "(", "int", "pos", ")", "{", "int", "stackLength", "=", "this", ".", "expressionLengthStack", ".", "length", ";", "if", "(", "++", "this", ".", "expressionLengthPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "expressionLengthStack", ",", "0", ",", "this", ".", "expressionLengthStack", "=", "new", "int", "[", "stackLength", "+", "StackIncrement", "]", ",", "0", ",", "stackLength", ")", ";", "}", "this", ".", "expressionLengthStack", "[", "this", ".", "expressionLengthPtr", "]", "=", "pos", ";", "}", "protected", "void", "pushOnGenericsIdentifiersLengthStack", "(", "int", "pos", ")", "{", "int", "stackLength", "=", "this", ".", "genericsIdentifiersLengthStack", ".", "length", ";", "if", "(", "++", "this", ".", "genericsIdentifiersLengthPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "genericsIdentifiersLengthStack", ",", "0", ",", "this", ".", "genericsIdentifiersLengthStack", "=", "new", "int", "[", "stackLength", "+", "GenericsStackIncrement", "]", ",", "0", ",", "stackLength", ")", ";", "}", "this", ".", "genericsIdentifiersLengthStack", "[", "this", ".", "genericsIdentifiersLengthPtr", "]", "=", "pos", ";", "}", "protected", "void", "pushOnGenericsLengthStack", "(", "int", "pos", ")", "{", "int", "stackLength", "=", "this", ".", "genericsLengthStack", ".", "length", ";", "if", "(", "++", "this", ".", "genericsLengthPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "genericsLengthStack", ",", "0", ",", "this", ".", "genericsLengthStack", "=", "new", "int", "[", "stackLength", "+", "GenericsStackIncrement", "]", ",", "0", ",", "stackLength", ")", ";", "}", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "]", "=", "pos", ";", "}", "protected", "void", "pushOnGenericsStack", "(", "ASTNode", "node", ")", "{", "int", "stackLength", "=", "this", ".", "genericsStack", ".", "length", ";", "if", "(", "++", "this", ".", "genericsPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "genericsStack", ",", "0", ",", "this", ".", "genericsStack", "=", "new", "ASTNode", "[", "stackLength", "+", "GenericsStackIncrement", "]", ",", "0", ",", "stackLength", ")", ";", "}", "this", ".", "genericsStack", "[", "this", ".", "genericsPtr", "]", "=", "node", ";", "stackLength", "=", "this", ".", "genericsLengthStack", ".", "length", ";", "if", "(", "++", "this", ".", "genericsLengthPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "genericsLengthStack", ",", "0", ",", "this", ".", "genericsLengthStack", "=", "new", "int", "[", "stackLength", "+", "GenericsStackIncrement", "]", ",", "0", ",", "stackLength", ")", ";", "}", "this", ".", "genericsLengthStack", "[", "this", ".", "genericsLengthPtr", "]", "=", "1", ";", "}", "protected", "void", "pushOnIntStack", "(", "int", "pos", ")", "{", "int", "stackLength", "=", "this", ".", "intStack", ".", "length", ";", "if", "(", "++", "this", ".", "intPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "intStack", ",", "0", ",", "this", ".", "intStack", "=", "new", "int", "[", "stackLength", "+", "StackIncrement", "]", ",", "0", ",", "stackLength", ")", ";", "}", "this", ".", "intStack", "[", "this", ".", "intPtr", "]", "=", "pos", ";", "}", "protected", "void", "pushOnRealBlockStack", "(", "int", "i", ")", "{", "int", "stackLength", "=", "this", ".", "realBlockStack", ".", "length", ";", "if", "(", "++", "this", ".", "realBlockPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "realBlockStack", ",", "0", ",", "this", ".", "realBlockStack", "=", "new", "int", "[", "stackLength", "+", "StackIncrement", "]", ",", "0", ",", "stackLength", ")", ";", "}", "this", ".", "realBlockStack", "[", "this", ".", "realBlockPtr", "]", "=", "i", ";", "}", "protected", "void", "recoverStatements", "(", ")", "{", "class", "MethodVisitor", "extends", "ASTVisitor", "{", "public", "ASTVisitor", "typeVisitor", ";", "TypeDeclaration", "enclosingType", ";", "TypeDeclaration", "[", "]", "types", "=", "new", "TypeDeclaration", "[", "0", "]", ";", "int", "typePtr", "=", "-", "1", ";", "public", "void", "endVisit", "(", "ConstructorDeclaration", "constructorDeclaration", ",", "ClassScope", "scope", ")", "{", "endVisitMethod", "(", "constructorDeclaration", ",", "scope", ")", ";", "}", "public", "void", "endVisit", "(", "Initializer", "initializer", ",", "MethodScope", "scope", ")", "{", "if", "(", "initializer", ".", "block", "==", "null", ")", "return", ";", "TypeDeclaration", "[", "]", "foundTypes", "=", "null", ";", "int", "length", "=", "0", ";", "if", "(", "this", ".", "typePtr", ">", "-", "1", ")", "{", "length", "=", "this", ".", "typePtr", "+", "1", ";", "foundTypes", "=", "new", "TypeDeclaration", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "types", ",", "0", ",", "foundTypes", ",", "0", ",", "length", ")", ";", "}", "ReferenceContext", "oldContext", "=", "Parser", ".", "this", ".", "referenceContext", ";", "Parser", ".", "this", ".", "recoveryScanner", ".", "resetTo", "(", "initializer", ".", "bodyStart", ",", "initializer", ".", "bodyEnd", ")", ";", "Scanner", "oldScanner", "=", "Parser", ".", "this", ".", "scanner", ";", "Parser", ".", "this", ".", "scanner", "=", "Parser", ".", "this", ".", "recoveryScanner", ";", "parseStatements", "(", "this", ".", "enclosingType", ",", "initializer", ".", "bodyStart", ",", "initializer", ".", "bodyEnd", ",", "foundTypes", ",", "Parser", ".", "this", ".", "compilationUnit", ")", ";", "Parser", ".", "this", ".", "scanner", "=", "oldScanner", ";", "Parser", ".", "this", ".", "referenceContext", "=", "oldContext", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "foundTypes", "[", "i", "]", ".", "traverse", "(", "this", ".", "typeVisitor", ",", "scope", ")", ";", "}", "}", "public", "void", "endVisit", "(", "MethodDeclaration", "methodDeclaration", ",", "ClassScope", "scope", ")", "{", "endVisitMethod", "(", "methodDeclaration", ",", "scope", ")", ";", "}", "private", "void", "endVisitMethod", "(", "AbstractMethodDeclaration", "methodDeclaration", ",", "ClassScope", "scope", ")", "{", "TypeDeclaration", "[", "]", "foundTypes", "=", "null", ";", "int", "length", "=", "0", ";", "if", "(", "this", ".", "typePtr", ">", "-", "1", ")", "{", "length", "=", "this", ".", "typePtr", "+", "1", ";", "foundTypes", "=", "new", "TypeDeclaration", "[", "length", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "types", ",", "0", ",", "foundTypes", ",", "0", ",", "length", ")", ";", "}", "ReferenceContext", "oldContext", "=", "Parser", ".", "this", ".", "referenceContext", ";", "Parser", ".", "this", ".", "recoveryScanner", ".", "resetTo", "(", "methodDeclaration", ".", "bodyStart", ",", "methodDeclaration", ".", "bodyEnd", ")", ";", "Scanner", "oldScanner", "=", "Parser", ".", "this", ".", "scanner", ";", "Parser", ".", "this", ".", "scanner", "=", "Parser", ".", "this", ".", "recoveryScanner", ";", "parseStatements", "(", "methodDeclaration", ",", "methodDeclaration", ".", "bodyStart", ",", "methodDeclaration", ".", "bodyEnd", ",", "foundTypes", ",", "Parser", ".", "this", ".", "compilationUnit", ")", ";", "Parser", ".", "this", ".", "scanner", "=", "oldScanner", ";", "Parser", ".", "this", ".", "referenceContext", "=", "oldContext", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "foundTypes", "[", "i", "]", ".", "traverse", "(", "this", ".", "typeVisitor", ",", "scope", ")", ";", "}", "}", "public", "boolean", "visit", "(", "ConstructorDeclaration", "constructorDeclaration", ",", "ClassScope", "scope", ")", "{", "this", ".", "typePtr", "=", "-", "1", ";", "return", "true", ";", "}", "public", "boolean", "visit", "(", "Initializer", "initializer", ",", "MethodScope", "scope", ")", "{", "this", ".", "typePtr", "=", "-", "1", ";", "if", "(", "initializer", ".", "block", "==", "null", ")", "return", "false", ";", "return", "true", ";", "}", "public", "boolean", "visit", "(", "MethodDeclaration", "methodDeclaration", ",", "ClassScope", "scope", ")", "{", "this", ".", "typePtr", "=", "-", "1", ";", "return", "true", ";", "}", "private", "boolean", "visit", "(", "TypeDeclaration", "typeDeclaration", ")", "{", "if", "(", "this", ".", "types", ".", "length", "<=", "++", "this", ".", "typePtr", ")", "{", "int", "length", "=", "this", ".", "typePtr", ";", "System", ".", "arraycopy", "(", "this", ".", "types", ",", "0", ",", "this", ".", "types", "=", "new", "TypeDeclaration", "[", "length", "*", "2", "+", "1", "]", ",", "0", ",", "length", ")", ";", "}", "this", ".", "types", "[", "this", ".", "typePtr", "]", "=", "typeDeclaration", ";", "return", "false", ";", "}", "public", "boolean", "visit", "(", "TypeDeclaration", "typeDeclaration", ",", "BlockScope", "scope", ")", "{", "return", "this", ".", "visit", "(", "typeDeclaration", ")", ";", "}", "public", "boolean", "visit", "(", "TypeDeclaration", "typeDeclaration", ",", "ClassScope", "scope", ")", "{", "return", "this", ".", "visit", "(", "typeDeclaration", ")", ";", "}", "}", "class", "TypeVisitor", "extends", "ASTVisitor", "{", "public", "MethodVisitor", "methodVisitor", ";", "TypeDeclaration", "[", "]", "types", "=", "new", "TypeDeclaration", "[", "0", "]", ";", "int", "typePtr", "=", "-", "1", ";", "public", "void", "endVisit", "(", "TypeDeclaration", "typeDeclaration", ",", "BlockScope", "scope", ")", "{", "endVisitType", "(", ")", ";", "}", "public", "void", "endVisit", "(", "TypeDeclaration", "typeDeclaration", ",", "ClassScope", "scope", ")", "{", "endVisitType", "(", ")", ";", "}", "private", "void", "endVisitType", "(", ")", "{", "this", ".", "typePtr", "--", ";", "}", "public", "boolean", "visit", "(", "ConstructorDeclaration", "constructorDeclaration", ",", "ClassScope", "scope", ")", "{", "if", "(", "constructorDeclaration", ".", "isDefaultConstructor", "(", ")", ")", "return", "false", ";", "constructorDeclaration", ".", "traverse", "(", "this", ".", "methodVisitor", ",", "scope", ")", ";", "return", "false", ";", "}", "public", "boolean", "visit", "(", "Initializer", "initializer", ",", "MethodScope", "scope", ")", "{", "if", "(", "initializer", ".", "block", "==", "null", ")", "return", "false", ";", "this", ".", "methodVisitor", ".", "enclosingType", "=", "this", ".", "types", "[", "this", ".", "typePtr", "]", ";", "initializer", ".", "traverse", "(", "this", ".", "methodVisitor", ",", "scope", ")", ";", "return", "false", ";", "}", "public", "boolean", "visit", "(", "MethodDeclaration", "methodDeclaration", ",", "ClassScope", "scope", ")", "{", "methodDeclaration", ".", "traverse", "(", "this", ".", "methodVisitor", ",", "scope", ")", ";", "return", "false", ";", "}", "private", "boolean", "visit", "(", "TypeDeclaration", "typeDeclaration", ")", "{", "if", "(", "this", ".", "types", ".", "length", "<=", "++", "this", ".", "typePtr", ")", "{", "int", "length", "=", "this", ".", "typePtr", ";", "System", ".", "arraycopy", "(", "this", ".", "types", ",", "0", ",", "this", ".", "types", "=", "new", "TypeDeclaration", "[", "length", "*", "2", "+", "1", "]", ",", "0", ",", "length", ")", ";", "}", "this", ".", "types", "[", "this", ".", "typePtr", "]", "=", "typeDeclaration", ";", "return", "true", ";", "}", "public", "boolean", "visit", "(", "TypeDeclaration", "typeDeclaration", ",", "BlockScope", "scope", ")", "{", "return", "this", ".", "visit", "(", "typeDeclaration", ")", ";", "}", "public", "boolean", "visit", "(", "TypeDeclaration", "typeDeclaration", ",", "ClassScope", "scope", ")", "{", "return", "this", ".", "visit", "(", "typeDeclaration", ")", ";", "}", "}", "MethodVisitor", "methodVisitor", "=", "new", "MethodVisitor", "(", ")", ";", "TypeVisitor", "typeVisitor", "=", "new", "TypeVisitor", "(", ")", ";", "methodVisitor", ".", "typeVisitor", "=", "typeVisitor", ";", "typeVisitor", ".", "methodVisitor", "=", "methodVisitor", ";", "if", "(", "this", ".", "referenceContext", "instanceof", "AbstractMethodDeclaration", ")", "{", "(", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ")", ".", "traverse", "(", "methodVisitor", ",", "(", "ClassScope", ")", "null", ")", ";", "}", "else", "if", "(", "this", ".", "referenceContext", "instanceof", "TypeDeclaration", ")", "{", "TypeDeclaration", "typeContext", "=", "(", "TypeDeclaration", ")", "this", ".", "referenceContext", ";", "int", "length", "=", "typeContext", ".", "fields", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "final", "FieldDeclaration", "fieldDeclaration", "=", "typeContext", ".", "fields", "[", "i", "]", ";", "switch", "(", "fieldDeclaration", ".", "getKind", "(", ")", ")", "{", "case", "AbstractVariableDeclaration", ".", "INITIALIZER", ":", "Initializer", "initializer", "=", "(", "Initializer", ")", "fieldDeclaration", ";", "if", "(", "initializer", ".", "block", "==", "null", ")", "break", ";", "methodVisitor", ".", "enclosingType", "=", "typeContext", ";", "initializer", ".", "traverse", "(", "methodVisitor", ",", "(", "MethodScope", ")", "null", ")", ";", "break", ";", "}", "}", "}", "}", "public", "void", "recoveryExitFromVariable", "(", ")", "{", "if", "(", "this", ".", "currentElement", "!=", "null", "&&", "this", ".", "currentElement", ".", "parent", "!=", "null", ")", "{", "if", "(", "this", ".", "currentElement", "instanceof", "RecoveredLocalVariable", ")", "{", "int", "end", "=", "(", "(", "RecoveredLocalVariable", ")", "this", ".", "currentElement", ")", ".", "localDeclaration", ".", "sourceEnd", ";", "this", ".", "currentElement", ".", "updateSourceEndIfNecessary", "(", "end", ")", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "parent", ";", "}", "else", "if", "(", "this", ".", "currentElement", "instanceof", "RecoveredField", "&&", "!", "(", "this", ".", "currentElement", "instanceof", "RecoveredInitializer", ")", ")", "{", "if", "(", "this", ".", "currentElement", ".", "bracketBalance", "<=", "0", ")", "{", "int", "end", "=", "(", "(", "RecoveredField", ")", "this", ".", "currentElement", ")", ".", "fieldDeclaration", ".", "sourceEnd", ";", "this", ".", "currentElement", ".", "updateSourceEndIfNecessary", "(", "end", ")", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "parent", ";", "}", "}", "}", "}", "public", "void", "recoveryTokenCheck", "(", ")", "{", "switch", "(", "this", ".", "currentToken", ")", "{", "case", "TokenNameStringLiteral", ":", "if", "(", "this", ".", "recordStringLiterals", "&&", "this", ".", "checkExternalizeStrings", "&&", "this", ".", "lastPosistion", "<", "this", ".", "scanner", ".", "currentPosition", "&&", "!", "this", ".", "statementRecoveryActivated", ")", "{", "StringLiteral", "stringLiteral", "=", "createStringLiteral", "(", "this", ".", "scanner", ".", "getCurrentTokenSourceString", "(", ")", ",", "this", ".", "scanner", ".", "startPosition", ",", "this", ".", "scanner", ".", "currentPosition", "-", "1", ",", "Util", ".", "getLineNumber", "(", "this", ".", "scanner", ".", "startPosition", ",", "this", ".", "scanner", ".", "lineEnds", ",", "0", ",", "this", ".", "scanner", ".", "linePtr", ")", ")", ";", "this", ".", "compilationUnit", ".", "recordStringLiteral", "(", "stringLiteral", ",", "this", ".", "currentElement", "!=", "null", ")", ";", "}", "break", ";", "case", "TokenNameLBRACE", ":", "RecoveredElement", "newElement", "=", "null", ";", "if", "(", "!", "this", ".", "ignoreNextOpeningBrace", ")", "{", "newElement", "=", "this", ".", "currentElement", ".", "updateOnOpeningBrace", "(", "this", ".", "scanner", ".", "startPosition", "-", "1", ",", "this", ".", "scanner", ".", "currentPosition", "-", "1", ")", ";", "}", "this", ".", "lastCheckPoint", "=", "this", ".", "scanner", ".", "currentPosition", ";", "if", "(", "newElement", "!=", "null", ")", "{", "this", ".", "restartRecovery", "=", "true", ";", "this", ".", "currentElement", "=", "newElement", ";", "}", "break", ";", "case", "TokenNameRBRACE", ":", "this", ".", "rBraceStart", "=", "this", ".", "scanner", ".", "startPosition", "-", "1", ";", "this", ".", "rBraceEnd", "=", "this", ".", "scanner", ".", "currentPosition", "-", "1", ";", "this", ".", "endPosition", "=", "flushCommentsDefinedPriorTo", "(", "this", ".", "rBraceEnd", ")", ";", "newElement", "=", "this", ".", "currentElement", ".", "updateOnClosingBrace", "(", "this", ".", "scanner", ".", "startPosition", ",", "this", ".", "rBraceEnd", ")", ";", "this", ".", "lastCheckPoint", "=", "this", ".", "scanner", ".", "currentPosition", ";", "if", "(", "newElement", "!=", "this", ".", "currentElement", ")", "{", "this", ".", "currentElement", "=", "newElement", ";", "}", "break", ";", "case", "TokenNameSEMICOLON", ":", "this", ".", "endStatementPosition", "=", "this", ".", "scanner", ".", "currentPosition", "-", "1", ";", "this", ".", "endPosition", "=", "this", ".", "scanner", ".", "startPosition", "-", "1", ";", "RecoveredType", "currentType", "=", "currentRecoveryType", "(", ")", ";", "if", "(", "currentType", "!=", "null", ")", "{", "currentType", ".", "insideEnumConstantPart", "=", "false", ";", "}", "default", ":", "{", "if", "(", "this", ".", "rBraceEnd", ">", "this", ".", "rBraceSuccessorStart", "&&", "this", ".", "scanner", ".", "currentPosition", "!=", "this", ".", "scanner", ".", "startPosition", ")", "{", "this", ".", "rBraceSuccessorStart", "=", "this", ".", "scanner", ".", "startPosition", ";", "}", "break", ";", "}", "}", "this", ".", "ignoreNextOpeningBrace", "=", "false", ";", "}", "protected", "void", "reportSyntaxErrors", "(", "boolean", "isDietParse", ",", "int", "oldFirstToken", ")", "{", "if", "(", "this", ".", "referenceContext", "instanceof", "MethodDeclaration", ")", "{", "MethodDeclaration", "methodDeclaration", "=", "(", "MethodDeclaration", ")", "this", ".", "referenceContext", ";", "if", "(", "(", "methodDeclaration", ".", "bits", "&", "ASTNode", ".", "ErrorInSignature", ")", "!=", "0", ")", "{", "return", ";", "}", "}", "this", ".", "compilationUnit", ".", "compilationResult", ".", "lineSeparatorPositions", "=", "this", ".", "scanner", ".", "getLineEnds", "(", ")", ";", "this", ".", "scanner", ".", "recordLineSeparator", "=", "false", ";", "int", "start", "=", "this", ".", "scanner", ".", "initialPosition", ";", "int", "end", "=", "this", ".", "scanner", ".", "eofPosition", "==", "Integer", ".", "MAX_VALUE", "?", "this", ".", "scanner", ".", "eofPosition", ":", "this", ".", "scanner", ".", "eofPosition", "-", "1", ";", "if", "(", "isDietParse", ")", "{", "TypeDeclaration", "[", "]", "types", "=", "this", ".", "compilationUnit", ".", "types", ";", "int", "[", "]", "[", "]", "intervalToSkip", "=", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "diagnose", ".", "RangeUtil", ".", "computeDietRange", "(", "types", ")", ";", "DiagnoseParser", "diagnoseParser", "=", "new", "DiagnoseParser", "(", "this", ",", "oldFirstToken", ",", "start", ",", "end", ",", "intervalToSkip", "[", "0", "]", ",", "intervalToSkip", "[", "1", "]", ",", "intervalToSkip", "[", "2", "]", ",", "this", ".", "options", ")", ";", "diagnoseParser", ".", "diagnoseParse", "(", "false", ")", ";", "reportSyntaxErrorsForSkippedMethod", "(", "types", ")", ";", "this", ".", "scanner", ".", "resetTo", "(", "start", ",", "end", ")", ";", "}", "else", "{", "DiagnoseParser", "diagnoseParser", "=", "new", "DiagnoseParser", "(", "this", ",", "oldFirstToken", ",", "start", ",", "end", ",", "this", ".", "options", ")", ";", "diagnoseParser", ".", "diagnoseParse", "(", "this", ".", "options", ".", "performStatementsRecovery", ")", ";", "}", "}", "private", "void", "reportSyntaxErrorsForSkippedMethod", "(", "TypeDeclaration", "[", "]", "types", ")", "{", "if", "(", "types", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "types", ".", "length", ";", "i", "++", ")", "{", "TypeDeclaration", "[", "]", "memberTypes", "=", "types", "[", "i", "]", ".", "memberTypes", ";", "if", "(", "memberTypes", "!=", "null", ")", "{", "reportSyntaxErrorsForSkippedMethod", "(", "memberTypes", ")", ";", "}", "AbstractMethodDeclaration", "[", "]", "methods", "=", "types", "[", "i", "]", ".", "methods", ";", "if", "(", "methods", "!=", "null", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "methods", ".", "length", ";", "j", "++", ")", "{", "AbstractMethodDeclaration", "method", "=", "methods", "[", "j", "]", ";", "if", "(", "(", "method", ".", "bits", "&", "ASTNode", ".", "ErrorInSignature", ")", "!=", "0", ")", "{", "if", "(", "method", ".", "isAnnotationMethod", "(", ")", ")", "{", "DiagnoseParser", "diagnoseParser", "=", "new", "DiagnoseParser", "(", "this", ",", "TokenNameQUESTION", ",", "method", ".", "declarationSourceStart", ",", "method", ".", "declarationSourceEnd", ",", "this", ".", "options", ")", ";", "diagnoseParser", ".", "diagnoseParse", "(", "this", ".", "options", ".", "performStatementsRecovery", ")", ";", "}", "else", "{", "DiagnoseParser", "diagnoseParser", "=", "new", "DiagnoseParser", "(", "this", ",", "TokenNameDIVIDE", ",", "method", ".", "declarationSourceStart", ",", "method", ".", "declarationSourceEnd", ",", "this", ".", "options", ")", ";", "diagnoseParser", ".", "diagnoseParse", "(", "this", ".", "options", ".", "performStatementsRecovery", ")", ";", "}", "}", "}", "}", "FieldDeclaration", "[", "]", "fields", "=", "types", "[", "i", "]", ".", "fields", ";", "if", "(", "fields", "!=", "null", ")", "{", "int", "length", "=", "fields", ".", "length", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "length", ";", "j", "++", ")", "{", "if", "(", "fields", "[", "j", "]", "instanceof", "Initializer", ")", "{", "Initializer", "initializer", "=", "(", "Initializer", ")", "fields", "[", "j", "]", ";", "if", "(", "(", "initializer", ".", "bits", "&", "ASTNode", ".", "ErrorInSignature", ")", "!=", "0", ")", "{", "DiagnoseParser", "diagnoseParser", "=", "new", "DiagnoseParser", "(", "this", ",", "TokenNameRIGHT_SHIFT", ",", "initializer", ".", "declarationSourceStart", ",", "initializer", ".", "declarationSourceEnd", ",", "this", ".", "options", ")", ";", "diagnoseParser", ".", "diagnoseParse", "(", "this", ".", "options", ".", "performStatementsRecovery", ")", ";", "}", "}", "}", "}", "}", "}", "}", "protected", "void", "resetModifiers", "(", ")", "{", "this", ".", "modifiers", "=", "ClassFileConstants", ".", "AccDefault", ";", "this", ".", "modifiersSourceStart", "=", "-", "1", ";", "this", ".", "scanner", ".", "commentPtr", "=", "-", "1", ";", "}", "protected", "void", "resetStacks", "(", ")", "{", "this", ".", "astPtr", "=", "-", "1", ";", "this", ".", "astLengthPtr", "=", "-", "1", ";", "this", ".", "expressionPtr", "=", "-", "1", ";", "this", ".", "expressionLengthPtr", "=", "-", "1", ";", "this", ".", "identifierPtr", "=", "-", "1", ";", "this", ".", "identifierLengthPtr", "=", "-", "1", ";", "this", ".", "intPtr", "=", "-", "1", ";", "this", ".", "nestedMethod", "[", "this", ".", "nestedType", "=", "0", "]", "=", "0", ";", "this", ".", "variablesCounter", "[", "this", ".", "nestedType", "]", "=", "0", ";", "this", ".", "dimensions", "=", "0", ";", "this", ".", "realBlockStack", "[", "this", ".", "realBlockPtr", "=", "0", "]", "=", "0", ";", "this", ".", "recoveredStaticInitializerStart", "=", "0", ";", "this", ".", "listLength", "=", "0", ";", "this", ".", "listTypeParameterLength", "=", "0", ";", "this", ".", "genericsIdentifiersLengthPtr", "=", "-", "1", ";", "this", ".", "genericsLengthPtr", "=", "-", "1", ";", "this", ".", "genericsPtr", "=", "-", "1", ";", "}", "protected", "boolean", "resumeAfterRecovery", "(", ")", "{", "if", "(", "!", "this", ".", "methodRecoveryActivated", "&&", "!", "this", ".", "statementRecoveryActivated", ")", "{", "resetStacks", "(", ")", ";", "resetModifiers", "(", ")", ";", "if", "(", "!", "moveRecoveryCheckpoint", "(", ")", ")", "{", "return", "false", ";", "}", "if", "(", "this", ".", "referenceContext", "instanceof", "CompilationUnitDeclaration", ")", "{", "goForHeaders", "(", ")", ";", "this", ".", "diet", "=", "true", ";", "return", "true", ";", "}", "return", "false", ";", "}", "else", "if", "(", "!", "this", ".", "statementRecoveryActivated", ")", "{", "resetStacks", "(", ")", ";", "resetModifiers", "(", ")", ";", "if", "(", "!", "moveRecoveryCheckpoint", "(", ")", ")", "{", "return", "false", ";", "}", "goForHeaders", "(", ")", ";", "return", "true", ";", "}", "else", "{", "return", "false", ";", "}", "}", "protected", "boolean", "resumeOnSyntaxError", "(", ")", "{", "if", "(", "this", ".", "currentElement", "==", "null", ")", "{", "this", ".", "javadoc", "=", "null", ";", "if", "(", "this", ".", "statementRecoveryActivated", ")", "return", "false", ";", "this", ".", "currentElement", "=", "buildInitialRecoveryState", "(", ")", ";", "}", "if", "(", "this", ".", "currentElement", "==", "null", ")", "return", "false", ";", "if", "(", "this", ".", "restartRecovery", ")", "{", "this", ".", "restartRecovery", "=", "false", ";", "}", "updateRecoveryState", "(", ")", ";", "if", "(", "getFirstToken", "(", ")", "==", "TokenNameAND", ")", "{", "if", "(", "this", ".", "referenceContext", "instanceof", "CompilationUnitDeclaration", ")", "{", "TypeDeclaration", "typeDeclaration", "=", "new", "TypeDeclaration", "(", "this", ".", "referenceContext", ".", "compilationResult", "(", ")", ")", ";", "typeDeclaration", ".", "name", "=", "Util", ".", "EMPTY_STRING", ".", "toCharArray", "(", ")", ";", "this", ".", "currentElement", "=", "this", ".", "currentElement", ".", "add", "(", "typeDeclaration", ",", "0", ")", ";", "}", "}", "if", "(", "this", ".", "lastPosistion", "<", "this", ".", "scanner", ".", "currentPosition", ")", "{", "this", ".", "lastPosistion", "=", "this", ".", "scanner", ".", "currentPosition", ";", "this", ".", "scanner", ".", "lastPosition", "=", "this", ".", "scanner", ".", "currentPosition", ";", "}", "return", "resumeAfterRecovery", "(", ")", ";", "}", "public", "void", "setMethodsFullRecovery", "(", "boolean", "enabled", ")", "{", "this", ".", "options", ".", "performMethodsFullRecovery", "=", "enabled", ";", "}", "public", "void", "setStatementsRecovery", "(", "boolean", "enabled", ")", "{", "if", "(", "enabled", ")", "this", ".", "options", ".", "performMethodsFullRecovery", "=", "true", ";", "this", ".", "options", ".", "performStatementsRecovery", "=", "enabled", ";", "}", "public", "String", "toString", "(", ")", "{", "String", "s", "=", "\"\"", "+", "String", ".", "valueOf", "(", "this", ".", "lastCheckPoint", ")", "+", "\"n\"", ";", "s", "=", "s", "+", "\"\"", "+", "(", "this", ".", "identifierPtr", "+", "1", ")", "+", "\"][]", "=", "{\"", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "this", ".", "identifierPtr", ";", "i", "++", ")", "{", "s", "=", "s", "+", "\"\\\"\"", "+", "String", ".", "valueOf", "(", "this", ".", "identifierStack", "[", "i", "]", ")", "+", "\"\\\",\"", ";", "}", "s", "=", "s", "+", "\"}n\"", ";", "s", "=", "s", "+", "\"\"", "+", "(", "this", ".", "identifierLengthPtr", "+", "1", ")", "+", "\"]", "=", "{\"", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "this", ".", "identifierLengthPtr", ";", "i", "++", ")", "{", "s", "=", "s", "+", "this", ".", "identifierLengthStack", "[", "i", "]", "+", "\",\"", ";", "}", "s", "=", "s", "+", "\"}n\"", ";", "s", "=", "s", "+", "\"\"", "+", "(", "this", ".", "astLengthPtr", "+", "1", ")", "+", "\"]", "=", "{\"", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "this", ".", "astLengthPtr", ";", "i", "++", ")", "{", "s", "=", "s", "+", "this", ".", "astLengthStack", "[", "i", "]", "+", "\",\"", ";", "}", "s", "=", "s", "+", "\"}n\"", ";", "s", "=", "s", "+", "\"\"", "+", "String", ".", "valueOf", "(", "this", ".", "astPtr", ")", "+", "\"n\"", ";", "s", "=", "s", "+", "\"\"", "+", "(", "this", ".", "intPtr", "+", "1", ")", "+", "\"]", "=", "{\"", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "this", ".", "intPtr", ";", "i", "++", ")", "{", "s", "=", "s", "+", "this", ".", "intStack", "[", "i", "]", "+", "\",\"", ";", "}", "s", "=", "s", "+", "\"}n\"", ";", "s", "=", "s", "+", "\"\"", "+", "(", "this", ".", "expressionLengthPtr", "+", "1", ")", "+", "\"]", "=", "{\"", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "this", ".", "expressionLengthPtr", ";", "i", "++", ")", "{", "s", "=", "s", "+", "this", ".", "expressionLengthStack", "[", "i", "]", "+", "\",\"", ";", "}", "s", "=", "s", "+", "\"}n\"", ";", "s", "=", "s", "+", "\"\"", "+", "String", ".", "valueOf", "(", "this", ".", "expressionPtr", ")", "+", "\"n\"", ";", "s", "=", "s", "+", "\"\"", "+", "(", "this", ".", "genericsIdentifiersLengthPtr", "+", "1", ")", "+", "\"]", "=", "{\"", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "this", ".", "genericsIdentifiersLengthPtr", ";", "i", "++", ")", "{", "s", "=", "s", "+", "this", ".", "genericsIdentifiersLengthStack", "[", "i", "]", "+", "\",\"", ";", "}", "s", "=", "s", "+", "\"}n\"", ";", "s", "=", "s", "+", "\"\"", "+", "(", "this", ".", "genericsLengthPtr", "+", "1", ")", "+", "\"]", "=", "{\"", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "this", ".", "genericsLengthPtr", ";", "i", "++", ")", "{", "s", "=", "s", "+", "this", ".", "genericsLengthStack", "[", "i", "]", "+", "\",\"", ";", "}", "s", "=", "s", "+", "\"}n\"", ";", "s", "=", "s", "+", "\"\"", "+", "String", ".", "valueOf", "(", "this", ".", "genericsPtr", ")", "+", "\"n\"", ";", "s", "=", "s", "+", "\"\"", "+", "this", ".", "scanner", ".", "toString", "(", ")", ";", "return", "s", ";", "}", "protected", "void", "updateRecoveryState", "(", ")", "{", "this", ".", "currentElement", ".", "updateFromParserState", "(", ")", ";", "recoveryTokenCheck", "(", ")", ";", "}", "protected", "void", "updateSourceDeclarationParts", "(", "int", "variableDeclaratorsCounter", ")", "{", "FieldDeclaration", "field", ";", "int", "endTypeDeclarationPosition", "=", "-", "1", "+", "this", ".", "astStack", "[", "this", ".", "astPtr", "-", "variableDeclaratorsCounter", "+", "1", "]", ".", "sourceStart", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "variableDeclaratorsCounter", "-", "1", ";", "i", "++", ")", "{", "field", "=", "(", "FieldDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "-", "i", "-", "1", "]", ";", "field", ".", "endPart1Position", "=", "endTypeDeclarationPosition", ";", "field", ".", "endPart2Position", "=", "-", "1", "+", "this", ".", "astStack", "[", "this", ".", "astPtr", "-", "i", "]", ".", "sourceStart", ";", "}", "(", "field", "=", "(", "FieldDeclaration", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "]", ")", ".", "endPart1Position", "=", "endTypeDeclarationPosition", ";", "field", ".", "endPart2Position", "=", "field", ".", "declarationSourceEnd", ";", "}", "protected", "void", "updateSourcePosition", "(", "Expression", "exp", ")", "{", "exp", ".", "sourceEnd", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "exp", ".", "sourceStart", "=", "this", ".", "intStack", "[", "this", ".", "intPtr", "--", "]", ";", "}", "public", "void", "reset", "(", ")", "{", "}", "}", "</s>" ]
3,347
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "import", "java", ".", "util", ".", "Set", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Block", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "FieldDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Initializer", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "LocalDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Statement", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "public", "class", "RecoveredInitializer", "extends", "RecoveredField", "implements", "TerminalTokens", "{", "public", "RecoveredType", "[", "]", "localTypes", ";", "public", "int", "localTypeCount", ";", "public", "RecoveredBlock", "initializerBody", ";", "int", "pendingModifiers", ";", "int", "pendingModifersSourceStart", "=", "-", "1", ";", "RecoveredAnnotation", "[", "]", "pendingAnnotations", ";", "int", "pendingAnnotationCount", ";", "public", "RecoveredInitializer", "(", "FieldDeclaration", "fieldDeclaration", ",", "RecoveredElement", "parent", ",", "int", "bracketBalance", ")", "{", "this", "(", "fieldDeclaration", ",", "parent", ",", "bracketBalance", ",", "null", ")", ";", "}", "public", "RecoveredInitializer", "(", "FieldDeclaration", "fieldDeclaration", ",", "RecoveredElement", "parent", ",", "int", "bracketBalance", ",", "Parser", "parser", ")", "{", "super", "(", "fieldDeclaration", ",", "parent", ",", "bracketBalance", ",", "parser", ")", ";", "this", ".", "foundOpeningBrace", "=", "true", ";", "}", "public", "RecoveredElement", "add", "(", "Block", "nestedBlockDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "if", "(", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", ">", "0", "&&", "nestedBlockDeclaration", ".", "sourceStart", ">", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", ")", "{", "resetPendingModifiers", "(", ")", ";", "if", "(", "this", ".", "parent", "==", "null", ")", "return", "this", ";", "return", "this", ".", "parent", ".", "add", "(", "nestedBlockDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "if", "(", "!", "this", ".", "foundOpeningBrace", ")", "{", "this", ".", "foundOpeningBrace", "=", "true", ";", "this", ".", "bracketBalance", "++", ";", "}", "this", ".", "initializerBody", "=", "new", "RecoveredBlock", "(", "nestedBlockDeclaration", ",", "this", ",", "bracketBalanceValue", ")", ";", "if", "(", "nestedBlockDeclaration", ".", "sourceEnd", "==", "0", ")", "return", "this", ".", "initializerBody", ";", "return", "this", ";", "}", "public", "RecoveredElement", "add", "(", "FieldDeclaration", "newFieldDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "resetPendingModifiers", "(", ")", ";", "char", "[", "]", "[", "]", "fieldTypeName", ";", "if", "(", "(", "newFieldDeclaration", ".", "modifiers", "&", "~", "ClassFileConstants", ".", "AccFinal", ")", "!=", "0", "||", "(", "newFieldDeclaration", ".", "type", "==", "null", ")", "||", "(", "(", "fieldTypeName", "=", "newFieldDeclaration", ".", "type", ".", "getTypeName", "(", ")", ")", ".", "length", "==", "1", "&&", "CharOperation", ".", "equals", "(", "fieldTypeName", "[", "0", "]", ",", "TypeBinding", ".", "VOID", ".", "sourceName", "(", ")", ")", ")", ")", "{", "if", "(", "this", ".", "parent", "==", "null", ")", "return", "this", ";", "this", ".", "updateSourceEndIfNecessary", "(", "previousAvailableLineEnd", "(", "newFieldDeclaration", ".", "declarationSourceStart", "-", "1", ")", ")", ";", "return", "this", ".", "parent", ".", "add", "(", "newFieldDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "if", "(", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", ">", "0", "&&", "newFieldDeclaration", ".", "declarationSourceStart", ">", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", ")", "{", "if", "(", "this", ".", "parent", "==", "null", ")", "return", "this", ";", "return", "this", ".", "parent", ".", "add", "(", "newFieldDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "return", "this", ";", "}", "public", "RecoveredElement", "add", "(", "LocalDeclaration", "localDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "if", "(", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", "!=", "0", "&&", "localDeclaration", ".", "declarationSourceStart", ">", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", ")", "{", "resetPendingModifiers", "(", ")", ";", "if", "(", "this", ".", "parent", "==", "null", ")", "return", "this", ";", "return", "this", ".", "parent", ".", "add", "(", "localDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "Block", "block", "=", "new", "Block", "(", "0", ")", ";", "block", ".", "sourceStart", "=", "(", "(", "Initializer", ")", "this", ".", "fieldDeclaration", ")", ".", "sourceStart", ";", "RecoveredElement", "element", "=", "this", ".", "add", "(", "block", ",", "1", ")", ";", "if", "(", "this", ".", "initializerBody", "!=", "null", ")", "{", "this", ".", "initializerBody", ".", "attachPendingModifiers", "(", "this", ".", "pendingAnnotations", ",", "this", ".", "pendingAnnotationCount", ",", "this", ".", "pendingModifiers", ",", "this", ".", "pendingModifersSourceStart", ")", ";", "}", "resetPendingModifiers", "(", ")", ";", "return", "element", ".", "add", "(", "localDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "public", "RecoveredElement", "add", "(", "Statement", "statement", ",", "int", "bracketBalanceValue", ")", "{", "if", "(", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", "!=", "0", "&&", "statement", ".", "sourceStart", ">", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", ")", "{", "resetPendingModifiers", "(", ")", ";", "if", "(", "this", ".", "parent", "==", "null", ")", "return", "this", ";", "return", "this", ".", "parent", ".", "add", "(", "statement", ",", "bracketBalanceValue", ")", ";", "}", "Block", "block", "=", "new", "Block", "(", "0", ")", ";", "block", ".", "sourceStart", "=", "(", "(", "Initializer", ")", "this", ".", "fieldDeclaration", ")", ".", "sourceStart", ";", "RecoveredElement", "element", "=", "this", ".", "add", "(", "block", ",", "1", ")", ";", "if", "(", "this", ".", "initializerBody", "!=", "null", ")", "{", "this", ".", "initializerBody", ".", "attachPendingModifiers", "(", "this", ".", "pendingAnnotations", ",", "this", ".", "pendingAnnotationCount", ",", "this", ".", "pendingModifiers", ",", "this", ".", "pendingModifersSourceStart", ")", ";", "}", "resetPendingModifiers", "(", ")", ";", "return", "element", ".", "add", "(", "statement", ",", "bracketBalanceValue", ")", ";", "}", "public", "RecoveredElement", "add", "(", "TypeDeclaration", "typeDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "if", "(", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", "!=", "0", "&&", "typeDeclaration", ".", "declarationSourceStart", ">", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", ")", "{", "resetPendingModifiers", "(", ")", ";", "if", "(", "this", ".", "parent", "==", "null", ")", "return", "this", ";", "return", "this", ".", "parent", ".", "add", "(", "typeDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "if", "(", "(", "typeDeclaration", ".", "bits", "&", "ASTNode", ".", "IsLocalType", ")", "!=", "0", "||", "parser", "(", ")", ".", "methodRecoveryActivated", "||", "parser", "(", ")", ".", "statementRecoveryActivated", ")", "{", "Block", "block", "=", "new", "Block", "(", "0", ")", ";", "block", ".", "sourceStart", "=", "(", "(", "Initializer", ")", "this", ".", "fieldDeclaration", ")", ".", "sourceStart", ";", "RecoveredElement", "element", "=", "this", ".", "add", "(", "block", ",", "1", ")", ";", "if", "(", "this", ".", "initializerBody", "!=", "null", ")", "{", "this", ".", "initializerBody", ".", "attachPendingModifiers", "(", "this", ".", "pendingAnnotations", ",", "this", ".", "pendingAnnotationCount", ",", "this", ".", "pendingModifiers", ",", "this", ".", "pendingModifersSourceStart", ")", ";", "}", "resetPendingModifiers", "(", ")", ";", "return", "element", ".", "add", "(", "typeDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "if", "(", "this", ".", "localTypes", "==", "null", ")", "{", "this", ".", "localTypes", "=", "new", "RecoveredType", "[", "5", "]", ";", "this", ".", "localTypeCount", "=", "0", ";", "}", "else", "{", "if", "(", "this", ".", "localTypeCount", "==", "this", ".", "localTypes", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "localTypes", ",", "0", ",", "(", "this", ".", "localTypes", "=", "new", "RecoveredType", "[", "2", "*", "this", ".", "localTypeCount", "]", ")", ",", "0", ",", "this", ".", "localTypeCount", ")", ";", "}", "}", "RecoveredType", "element", "=", "new", "RecoveredType", "(", "typeDeclaration", ",", "this", ",", "bracketBalanceValue", ")", ";", "this", ".", "localTypes", "[", "this", ".", "localTypeCount", "++", "]", "=", "element", ";", "if", "(", "this", ".", "pendingAnnotationCount", ">", "0", ")", "{", "element", ".", "attach", "(", "this", ".", "pendingAnnotations", ",", "this", ".", "pendingAnnotationCount", ",", "this", ".", "pendingModifiers", ",", "this", ".", "pendingModifersSourceStart", ")", ";", "}", "resetPendingModifiers", "(", ")", ";", "if", "(", "!", "this", ".", "foundOpeningBrace", ")", "{", "this", ".", "foundOpeningBrace", "=", "true", ";", "this", ".", "bracketBalance", "++", ";", "}", "return", "element", ";", "}", "public", "RecoveredElement", "addAnnotationName", "(", "int", "identifierPtr", ",", "int", "identifierLengthPtr", ",", "int", "annotationStart", ",", "int", "bracketBalanceValue", ")", "{", "if", "(", "this", ".", "pendingAnnotations", "==", "null", ")", "{", "this", ".", "pendingAnnotations", "=", "new", "RecoveredAnnotation", "[", "5", "]", ";", "this", ".", "pendingAnnotationCount", "=", "0", ";", "}", "else", "{", "if", "(", "this", ".", "pendingAnnotationCount", "==", "this", ".", "pendingAnnotations", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "pendingAnnotations", ",", "0", ",", "(", "this", ".", "pendingAnnotations", "=", "new", "RecoveredAnnotation", "[", "2", "*", "this", ".", "pendingAnnotationCount", "]", ")", ",", "0", ",", "this", ".", "pendingAnnotationCount", ")", ";", "}", "}", "RecoveredAnnotation", "element", "=", "new", "RecoveredAnnotation", "(", "identifierPtr", ",", "identifierLengthPtr", ",", "annotationStart", ",", "this", ",", "bracketBalanceValue", ")", ";", "this", ".", "pendingAnnotations", "[", "this", ".", "pendingAnnotationCount", "++", "]", "=", "element", ";", "return", "element", ";", "}", "public", "void", "addModifier", "(", "int", "flag", ",", "int", "modifiersSourceStart", ")", "{", "this", ".", "pendingModifiers", "|=", "flag", ";", "if", "(", "this", ".", "pendingModifersSourceStart", "<", "0", ")", "{", "this", ".", "pendingModifersSourceStart", "=", "modifiersSourceStart", ";", "}", "}", "public", "void", "resetPendingModifiers", "(", ")", "{", "this", ".", "pendingAnnotations", "=", "null", ";", "this", ".", "pendingAnnotationCount", "=", "0", ";", "this", ".", "pendingModifiers", "=", "0", ";", "this", ".", "pendingModifersSourceStart", "=", "-", "1", ";", "}", "public", "String", "toString", "(", "int", "tab", ")", "{", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "tabString", "(", "tab", ")", ")", ";", "result", ".", "append", "(", "\"\"", ")", ";", "this", ".", "fieldDeclaration", ".", "print", "(", "tab", "+", "1", ",", "result", ")", ";", "if", "(", "this", ".", "annotations", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "annotationCount", ";", "i", "++", ")", "{", "result", ".", "append", "(", "\"n\"", ")", ";", "result", ".", "append", "(", "this", ".", "annotations", "[", "i", "]", ".", "toString", "(", "tab", "+", "1", ")", ")", ";", "}", "}", "if", "(", "this", ".", "initializerBody", "!=", "null", ")", "{", "result", ".", "append", "(", "\"n\"", ")", ";", "result", ".", "append", "(", "this", ".", "initializerBody", ".", "toString", "(", "tab", "+", "1", ")", ")", ";", "}", "return", "result", ".", "toString", "(", ")", ";", "}", "public", "FieldDeclaration", "updatedFieldDeclaration", "(", "int", "depth", ",", "Set", "knownTypes", ")", "{", "if", "(", "this", ".", "initializerBody", "!=", "null", ")", "{", "Block", "block", "=", "this", ".", "initializerBody", ".", "updatedBlock", "(", "depth", ",", "knownTypes", ")", ";", "if", "(", "block", "!=", "null", ")", "{", "Initializer", "initializer", "=", "(", "Initializer", ")", "this", ".", "fieldDeclaration", ";", "initializer", ".", "block", "=", "block", ";", "if", "(", "initializer", ".", "declarationSourceEnd", "==", "0", ")", "{", "initializer", ".", "declarationSourceEnd", "=", "block", ".", "sourceEnd", ";", "initializer", ".", "bodyEnd", "=", "block", ".", "sourceEnd", ";", "}", "}", "if", "(", "this", ".", "localTypeCount", ">", "0", ")", "this", ".", "fieldDeclaration", ".", "bits", "|=", "ASTNode", ".", "HasLocalType", ";", "}", "if", "(", "this", ".", "fieldDeclaration", ".", "sourceEnd", "==", "0", ")", "{", "this", ".", "fieldDeclaration", ".", "sourceEnd", "=", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", ";", "}", "return", "this", ".", "fieldDeclaration", ";", "}", "public", "RecoveredElement", "updateOnClosingBrace", "(", "int", "braceStart", ",", "int", "braceEnd", ")", "{", "if", "(", "(", "--", "this", ".", "bracketBalance", "<=", "0", ")", "&&", "(", "this", ".", "parent", "!=", "null", ")", ")", "{", "this", ".", "updateSourceEndIfNecessary", "(", "braceStart", ",", "braceEnd", ")", ";", "return", "this", ".", "parent", ";", "}", "return", "this", ";", "}", "public", "RecoveredElement", "updateOnOpeningBrace", "(", "int", "braceStart", ",", "int", "braceEnd", ")", "{", "this", ".", "bracketBalance", "++", ";", "return", "this", ";", "}", "public", "void", "updateSourceEndIfNecessary", "(", "int", "braceStart", ",", "int", "braceEnd", ")", "{", "if", "(", "this", ".", "fieldDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "{", "Initializer", "initializer", "=", "(", "Initializer", ")", "this", ".", "fieldDeclaration", ";", "if", "(", "parser", "(", ")", ".", "rBraceSuccessorStart", ">=", "braceEnd", ")", "{", "if", "(", "initializer", ".", "bodyStart", "<", "parser", "(", ")", ".", "rBraceEnd", ")", "{", "initializer", ".", "declarationSourceEnd", "=", "parser", "(", ")", ".", "rBraceEnd", ";", "}", "else", "{", "initializer", ".", "declarationSourceEnd", "=", "initializer", ".", "bodyStart", ";", "}", "if", "(", "initializer", ".", "bodyStart", "<", "parser", "(", ")", ".", "rBraceStart", ")", "{", "initializer", ".", "bodyEnd", "=", "parser", "(", ")", ".", "rBraceStart", ";", "}", "else", "{", "initializer", ".", "bodyEnd", "=", "initializer", ".", "bodyStart", ";", "}", "}", "else", "{", "initializer", ".", "declarationSourceEnd", "=", "braceEnd", ";", "initializer", ".", "bodyEnd", "=", "braceStart", "-", "1", ";", "}", "if", "(", "initializer", ".", "block", "!=", "null", ")", "{", "initializer", ".", "block", ".", "sourceEnd", "=", "initializer", ".", "declarationSourceEnd", ";", "}", "}", "}", "}", "</s>" ]
3,348
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "import", "java", ".", "util", ".", "HashSet", ";", "import", "java", ".", "util", ".", "Set", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Annotation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ArrayQualifiedTypeReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ArrayTypeReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Expression", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "LocalDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Statement", ";", "public", "class", "RecoveredLocalVariable", "extends", "RecoveredStatement", "{", "public", "RecoveredAnnotation", "[", "]", "annotations", ";", "public", "int", "annotationCount", ";", "public", "int", "modifiers", ";", "public", "int", "modifiersStart", ";", "public", "LocalDeclaration", "localDeclaration", ";", "boolean", "alreadyCompletedLocalInitialization", ";", "public", "RecoveredLocalVariable", "(", "LocalDeclaration", "localDeclaration", ",", "RecoveredElement", "parent", ",", "int", "bracketBalance", ")", "{", "super", "(", "localDeclaration", ",", "parent", ",", "bracketBalance", ")", ";", "this", ".", "localDeclaration", "=", "localDeclaration", ";", "this", ".", "alreadyCompletedLocalInitialization", "=", "localDeclaration", ".", "initialization", "!=", "null", ";", "}", "public", "RecoveredElement", "add", "(", "Statement", "stmt", ",", "int", "bracketBalanceValue", ")", "{", "if", "(", "this", ".", "alreadyCompletedLocalInitialization", "||", "!", "(", "stmt", "instanceof", "Expression", ")", ")", "{", "return", "super", ".", "add", "(", "stmt", ",", "bracketBalanceValue", ")", ";", "}", "else", "{", "this", ".", "alreadyCompletedLocalInitialization", "=", "true", ";", "this", ".", "localDeclaration", ".", "initialization", "=", "(", "Expression", ")", "stmt", ";", "this", ".", "localDeclaration", ".", "declarationSourceEnd", "=", "stmt", ".", "sourceEnd", ";", "this", ".", "localDeclaration", ".", "declarationEnd", "=", "stmt", ".", "sourceEnd", ";", "return", "this", ";", "}", "}", "public", "void", "attach", "(", "RecoveredAnnotation", "[", "]", "annots", ",", "int", "annotCount", ",", "int", "mods", ",", "int", "modsSourceStart", ")", "{", "if", "(", "annotCount", ">", "0", ")", "{", "Annotation", "[", "]", "existingAnnotations", "=", "this", ".", "localDeclaration", ".", "annotations", ";", "if", "(", "existingAnnotations", "!=", "null", ")", "{", "this", ".", "annotations", "=", "new", "RecoveredAnnotation", "[", "annotCount", "]", ";", "this", ".", "annotationCount", "=", "0", ";", "next", ":", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotCount", ";", "i", "++", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "existingAnnotations", ".", "length", ";", "j", "++", ")", "{", "if", "(", "annots", "[", "i", "]", ".", "annotation", "==", "existingAnnotations", "[", "j", "]", ")", "continue", "next", ";", "}", "this", ".", "annotations", "[", "this", ".", "annotationCount", "++", "]", "=", "annots", "[", "i", "]", ";", "}", "}", "else", "{", "this", ".", "annotations", "=", "annots", ";", "this", ".", "annotationCount", "=", "annotCount", ";", "}", "}", "if", "(", "mods", "!=", "0", ")", "{", "this", ".", "modifiers", "=", "mods", ";", "this", ".", "modifiersStart", "=", "modsSourceStart", ";", "}", "}", "public", "ASTNode", "parseTree", "(", ")", "{", "return", "this", ".", "localDeclaration", ";", "}", "public", "int", "sourceEnd", "(", ")", "{", "return", "this", ".", "localDeclaration", ".", "declarationSourceEnd", ";", "}", "public", "String", "toString", "(", "int", "tab", ")", "{", "return", "tabString", "(", "tab", ")", "+", "\"\"", "+", "this", ".", "localDeclaration", ".", "print", "(", "tab", "+", "1", ",", "new", "StringBuffer", "(", "10", ")", ")", ";", "}", "public", "Statement", "updatedStatement", "(", "int", "depth", ",", "Set", "knownTypes", ")", "{", "if", "(", "this", ".", "modifiers", "!=", "0", ")", "{", "this", ".", "localDeclaration", ".", "modifiers", "|=", "this", ".", "modifiers", ";", "if", "(", "this", ".", "modifiersStart", "<", "this", ".", "localDeclaration", ".", "declarationSourceStart", ")", "{", "this", ".", "localDeclaration", ".", "declarationSourceStart", "=", "this", ".", "modifiersStart", ";", "}", "}", "if", "(", "this", ".", "annotationCount", ">", "0", ")", "{", "int", "existingCount", "=", "this", ".", "localDeclaration", ".", "annotations", "==", "null", "?", "0", ":", "this", ".", "localDeclaration", ".", "annotations", ".", "length", ";", "Annotation", "[", "]", "annotationReferences", "=", "new", "Annotation", "[", "existingCount", "+", "this", ".", "annotationCount", "]", ";", "if", "(", "existingCount", ">", "0", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "localDeclaration", ".", "annotations", ",", "0", ",", "annotationReferences", ",", "this", ".", "annotationCount", ",", "existingCount", ")", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "annotationCount", ";", "i", "++", ")", "{", "annotationReferences", "[", "i", "]", "=", "this", ".", "annotations", "[", "i", "]", ".", "updatedAnnotationReference", "(", ")", ";", "}", "this", ".", "localDeclaration", ".", "annotations", "=", "annotationReferences", ";", "int", "start", "=", "this", ".", "annotations", "[", "0", "]", ".", "annotation", ".", "sourceStart", ";", "if", "(", "start", "<", "this", ".", "localDeclaration", ".", "declarationSourceStart", ")", "{", "this", ".", "localDeclaration", ".", "declarationSourceStart", "=", "start", ";", "}", "}", "return", "this", ".", "localDeclaration", ";", "}", "public", "RecoveredElement", "updateOnClosingBrace", "(", "int", "braceStart", ",", "int", "braceEnd", ")", "{", "if", "(", "this", ".", "bracketBalance", ">", "0", ")", "{", "this", ".", "bracketBalance", "--", ";", "if", "(", "this", ".", "bracketBalance", "==", "0", ")", "this", ".", "alreadyCompletedLocalInitialization", "=", "true", ";", "return", "this", ";", "}", "if", "(", "this", ".", "parent", "!=", "null", ")", "{", "return", "this", ".", "parent", ".", "updateOnClosingBrace", "(", "braceStart", ",", "braceEnd", ")", ";", "}", "return", "this", ";", "}", "public", "RecoveredElement", "updateOnOpeningBrace", "(", "int", "braceStart", ",", "int", "braceEnd", ")", "{", "if", "(", "this", ".", "localDeclaration", ".", "declarationSourceEnd", "==", "0", "&&", "(", "this", ".", "localDeclaration", ".", "type", "instanceof", "ArrayTypeReference", "||", "this", ".", "localDeclaration", ".", "type", "instanceof", "ArrayQualifiedTypeReference", ")", "&&", "!", "this", ".", "alreadyCompletedLocalInitialization", ")", "{", "this", ".", "bracketBalance", "++", ";", "return", "null", ";", "}", "this", ".", "updateSourceEndIfNecessary", "(", "braceStart", "-", "1", ",", "braceEnd", "-", "1", ")", ";", "return", "this", ".", "parent", ".", "updateOnOpeningBrace", "(", "braceStart", ",", "braceEnd", ")", ";", "}", "public", "void", "updateParseTree", "(", ")", "{", "updatedStatement", "(", "0", ",", "new", "HashSet", "(", ")", ")", ";", "}", "public", "void", "updateSourceEndIfNecessary", "(", "int", "bodyStart", ",", "int", "bodyEnd", ")", "{", "if", "(", "this", ".", "localDeclaration", ".", "declarationSourceEnd", "==", "0", ")", "{", "this", ".", "localDeclaration", ".", "declarationSourceEnd", "=", "bodyEnd", ";", "this", ".", "localDeclaration", ".", "declarationEnd", "=", "bodyEnd", ";", "}", "}", "}", "</s>" ]
3,349
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "import", "java", ".", "util", ".", "List", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "InvalidInputException", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "class", "JavadocParser", "extends", "AbstractCommentParser", "{", "public", "Javadoc", "docComment", ";", "private", "int", "invalidParamReferencesPtr", "=", "-", "1", ";", "private", "ASTNode", "[", "]", "invalidParamReferencesStack", ";", "private", "long", "validValuePositions", ",", "invalidValuePositions", ";", "public", "boolean", "shouldReportProblems", "=", "true", ";", "private", "int", "tagWaitingForDescription", ";", "public", "JavadocParser", "(", "Parser", "sourceParser", ")", "{", "super", "(", "sourceParser", ")", ";", "this", ".", "kind", "=", "COMPIL_PARSER", "|", "TEXT_VERIF", ";", "if", "(", "sourceParser", "!=", "null", "&&", "sourceParser", ".", "options", "!=", "null", ")", "{", "this", ".", "setJavadocPositions", "=", "sourceParser", ".", "options", ".", "processAnnotations", ";", "}", "}", "public", "boolean", "checkDeprecation", "(", "int", "commentPtr", ")", "{", "this", ".", "javadocStart", "=", "this", ".", "sourceParser", ".", "scanner", ".", "commentStarts", "[", "commentPtr", "]", ";", "this", ".", "javadocEnd", "=", "this", ".", "sourceParser", ".", "scanner", ".", "commentStops", "[", "commentPtr", "]", "-", "1", ";", "this", ".", "firstTagPosition", "=", "this", ".", "sourceParser", ".", "scanner", ".", "commentTagStarts", "[", "commentPtr", "]", ";", "this", ".", "validValuePositions", "=", "-", "1", ";", "this", ".", "invalidValuePositions", "=", "-", "1", ";", "this", ".", "tagWaitingForDescription", "=", "NO_TAG_VALUE", ";", "if", "(", "this", ".", "checkDocComment", ")", "{", "this", ".", "docComment", "=", "new", "Javadoc", "(", "this", ".", "javadocStart", ",", "this", ".", "javadocEnd", ")", ";", "}", "else", "if", "(", "this", ".", "setJavadocPositions", ")", "{", "this", ".", "docComment", "=", "new", "Javadoc", "(", "this", ".", "javadocStart", ",", "this", ".", "javadocEnd", ")", ";", "this", ".", "docComment", ".", "bits", "&=", "~", "ASTNode", ".", "ResolveJavadoc", ";", "}", "else", "{", "this", ".", "docComment", "=", "null", ";", "}", "if", "(", "this", ".", "firstTagPosition", "==", "0", ")", "{", "switch", "(", "this", ".", "kind", "&", "PARSER_KIND", ")", "{", "case", "COMPIL_PARSER", ":", "case", "SOURCE_PARSER", ":", "return", "false", ";", "}", "}", "try", "{", "this", ".", "source", "=", "this", ".", "sourceParser", ".", "scanner", ".", "source", ";", "if", "(", "this", ".", "checkDocComment", ")", "{", "this", ".", "scanner", ".", "lineEnds", "=", "this", ".", "sourceParser", ".", "scanner", ".", "lineEnds", ";", "this", ".", "scanner", ".", "linePtr", "=", "this", ".", "sourceParser", ".", "scanner", ".", "linePtr", ";", "this", ".", "lineEnds", "=", "this", ".", "scanner", ".", "lineEnds", ";", "commentParse", "(", ")", ";", "}", "else", "{", "Scanner", "sourceScanner", "=", "this", ".", "sourceParser", ".", "scanner", ";", "int", "firstLineNumber", "=", "Util", ".", "getLineNumber", "(", "this", ".", "javadocStart", ",", "sourceScanner", ".", "lineEnds", ",", "0", ",", "sourceScanner", ".", "linePtr", ")", ";", "int", "lastLineNumber", "=", "Util", ".", "getLineNumber", "(", "this", ".", "javadocEnd", ",", "sourceScanner", ".", "lineEnds", ",", "0", ",", "sourceScanner", ".", "linePtr", ")", ";", "this", ".", "index", "=", "this", ".", "javadocStart", "+", "3", ";", "this", ".", "deprecated", "=", "false", ";", "nextLine", ":", "for", "(", "int", "line", "=", "firstLineNumber", ";", "line", "<=", "lastLineNumber", ";", "line", "++", ")", "{", "int", "lineStart", "=", "line", "==", "firstLineNumber", "?", "this", ".", "javadocStart", "+", "3", ":", "this", ".", "sourceParser", ".", "scanner", ".", "getLineStart", "(", "line", ")", ";", "this", ".", "index", "=", "lineStart", ";", "this", ".", "lineEnd", "=", "line", "==", "lastLineNumber", "?", "this", ".", "javadocEnd", "-", "2", ":", "this", ".", "sourceParser", ".", "scanner", ".", "getLineEnd", "(", "line", ")", ";", "nextCharacter", ":", "while", "(", "this", ".", "index", "<", "this", ".", "lineEnd", ")", "{", "char", "c", "=", "readChar", "(", ")", ";", "switch", "(", "c", ")", "{", "case", "'*'", ":", "case", "'", "'", ":", "case", "'", "'", ":", "case", "'\\t'", ":", "case", "'\\n'", ":", "case", "'\\r'", ":", "continue", "nextCharacter", ";", "case", "'@'", ":", "parseSimpleTag", "(", ")", ";", "if", "(", "this", ".", "tagValue", "==", "TAG_DEPRECATED_VALUE", ")", "{", "if", "(", "this", ".", "abort", ")", "break", "nextCharacter", ";", "}", "}", "continue", "nextLine", ";", "}", "}", "return", "this", ".", "deprecated", ";", "}", "}", "finally", "{", "this", ".", "source", "=", "null", ";", "}", "return", "this", ".", "deprecated", ";", "}", "protected", "Object", "createArgumentReference", "(", "char", "[", "]", "name", ",", "int", "dim", ",", "boolean", "isVarargs", ",", "Object", "typeRef", ",", "long", "[", "]", "dimPositions", ",", "long", "argNamePos", ")", "throws", "InvalidInputException", "{", "try", "{", "TypeReference", "argTypeRef", "=", "(", "TypeReference", ")", "typeRef", ";", "if", "(", "dim", ">", "0", ")", "{", "long", "pos", "=", "(", "(", "(", "long", ")", "argTypeRef", ".", "sourceStart", ")", "<<", "32", ")", "+", "argTypeRef", ".", "sourceEnd", ";", "if", "(", "typeRef", "instanceof", "JavadocSingleTypeReference", ")", "{", "JavadocSingleTypeReference", "singleRef", "=", "(", "JavadocSingleTypeReference", ")", "typeRef", ";", "argTypeRef", "=", "new", "JavadocArraySingleTypeReference", "(", "singleRef", ".", "token", ",", "dim", ",", "pos", ")", ";", "}", "else", "{", "JavadocQualifiedTypeReference", "qualifRef", "=", "(", "JavadocQualifiedTypeReference", ")", "typeRef", ";", "argTypeRef", "=", "new", "JavadocArrayQualifiedTypeReference", "(", "qualifRef", ",", "dim", ")", ";", "}", "}", "int", "argEnd", "=", "argTypeRef", ".", "sourceEnd", ";", "if", "(", "dim", ">", "0", ")", "{", "argEnd", "=", "(", "int", ")", "dimPositions", "[", "dim", "-", "1", "]", ";", "if", "(", "isVarargs", ")", "{", "argTypeRef", ".", "bits", "|=", "ASTNode", ".", "IsVarArgs", ";", "}", "}", "if", "(", "argNamePos", ">=", "0", ")", "argEnd", "=", "(", "int", ")", "argNamePos", ";", "return", "new", "JavadocArgumentExpression", "(", "name", ",", "argTypeRef", ".", "sourceStart", ",", "argEnd", ",", "argTypeRef", ")", ";", "}", "catch", "(", "ClassCastException", "ex", ")", "{", "throw", "new", "InvalidInputException", "(", ")", ";", "}", "}", "protected", "Object", "createFieldReference", "(", "Object", "receiver", ")", "throws", "InvalidInputException", "{", "try", "{", "TypeReference", "typeRef", "=", "(", "TypeReference", ")", "receiver", ";", "if", "(", "typeRef", "==", "null", ")", "{", "char", "[", "]", "name", "=", "this", ".", "sourceParser", ".", "compilationUnit", ".", "getMainTypeName", "(", ")", ";", "typeRef", "=", "new", "JavadocImplicitTypeReference", "(", "name", ",", "this", ".", "memberStart", ")", ";", "}", "JavadocFieldReference", "field", "=", "new", "JavadocFieldReference", "(", "this", ".", "identifierStack", "[", "0", "]", ",", "this", ".", "identifierPositionStack", "[", "0", "]", ")", ";", "field", ".", "receiver", "=", "typeRef", ";", "field", ".", "tagSourceStart", "=", "this", ".", "tagSourceStart", ";", "field", ".", "tagSourceEnd", "=", "this", ".", "tagSourceEnd", ";", "field", ".", "tagValue", "=", "this", ".", "tagValue", ";", "return", "field", ";", "}", "catch", "(", "ClassCastException", "ex", ")", "{", "throw", "new", "InvalidInputException", "(", ")", ";", "}", "}", "protected", "Object", "createMethodReference", "(", "Object", "receiver", ",", "List", "arguments", ")", "throws", "InvalidInputException", "{", "try", "{", "TypeReference", "typeRef", "=", "(", "TypeReference", ")", "receiver", ";", "boolean", "isConstructor", "=", "false", ";", "int", "length", "=", "this", ".", "identifierLengthStack", "[", "0", "]", ";", "if", "(", "typeRef", "==", "null", ")", "{", "char", "[", "]", "name", "=", "this", ".", "sourceParser", ".", "compilationUnit", ".", "getMainTypeName", "(", ")", ";", "TypeDeclaration", "typeDecl", "=", "getParsedTypeDeclaration", "(", ")", ";", "if", "(", "typeDecl", "!=", "null", ")", "{", "name", "=", "typeDecl", ".", "name", ";", "}", "isConstructor", "=", "CharOperation", ".", "equals", "(", "this", ".", "identifierStack", "[", "length", "-", "1", "]", ",", "name", ")", ";", "typeRef", "=", "new", "JavadocImplicitTypeReference", "(", "name", ",", "this", ".", "memberStart", ")", ";", "}", "else", "{", "if", "(", "typeRef", "instanceof", "JavadocSingleTypeReference", ")", "{", "char", "[", "]", "name", "=", "(", "(", "JavadocSingleTypeReference", ")", "typeRef", ")", ".", "token", ";", "isConstructor", "=", "CharOperation", ".", "equals", "(", "this", ".", "identifierStack", "[", "length", "-", "1", "]", ",", "name", ")", ";", "}", "else", "if", "(", "typeRef", "instanceof", "JavadocQualifiedTypeReference", ")", "{", "char", "[", "]", "[", "]", "tokens", "=", "(", "(", "JavadocQualifiedTypeReference", ")", "typeRef", ")", ".", "tokens", ";", "int", "last", "=", "tokens", ".", "length", "-", "1", ";", "isConstructor", "=", "CharOperation", ".", "equals", "(", "this", ".", "identifierStack", "[", "length", "-", "1", "]", ",", "tokens", "[", "last", "]", ")", ";", "if", "(", "isConstructor", ")", "{", "boolean", "valid", "=", "true", ";", "if", "(", "valid", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", "-", "1", "&&", "valid", ";", "i", "++", ")", "{", "valid", "=", "CharOperation", ".", "equals", "(", "this", ".", "identifierStack", "[", "i", "]", ",", "tokens", "[", "i", "]", ")", ";", "}", "}", "if", "(", "!", "valid", ")", "{", "if", "(", "this", ".", "reportProblems", ")", "{", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidMemberTypeQualification", "(", "(", "int", ")", "(", "this", ".", "identifierPositionStack", "[", "0", "]", ">>>", "32", ")", ",", "(", "int", ")", "this", ".", "identifierPositionStack", "[", "length", "-", "1", "]", ",", "-", "1", ")", ";", "}", "return", "null", ";", "}", "}", "}", "else", "{", "throw", "new", "InvalidInputException", "(", ")", ";", "}", "}", "if", "(", "arguments", "==", "null", ")", "{", "if", "(", "isConstructor", ")", "{", "JavadocAllocationExpression", "allocation", "=", "new", "JavadocAllocationExpression", "(", "this", ".", "identifierPositionStack", "[", "length", "-", "1", "]", ")", ";", "allocation", ".", "type", "=", "typeRef", ";", "allocation", ".", "tagValue", "=", "this", ".", "tagValue", ";", "allocation", ".", "sourceEnd", "=", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ";", "if", "(", "length", "==", "1", ")", "{", "allocation", ".", "qualification", "=", "new", "char", "[", "]", "[", "]", "{", "this", ".", "identifierStack", "[", "0", "]", "}", ";", "}", "else", "{", "System", ".", "arraycopy", "(", "this", ".", "identifierStack", ",", "0", ",", "allocation", ".", "qualification", "=", "new", "char", "[", "length", "]", "[", "]", ",", "0", ",", "length", ")", ";", "allocation", ".", "sourceStart", "=", "(", "int", ")", "(", "this", ".", "identifierPositionStack", "[", "0", "]", ">>>", "32", ")", ";", "}", "allocation", ".", "memberStart", "=", "this", ".", "memberStart", ";", "return", "allocation", ";", "}", "else", "{", "JavadocMessageSend", "msg", "=", "new", "JavadocMessageSend", "(", "this", ".", "identifierStack", "[", "length", "-", "1", "]", ",", "this", ".", "identifierPositionStack", "[", "length", "-", "1", "]", ")", ";", "msg", ".", "receiver", "=", "typeRef", ";", "msg", ".", "tagValue", "=", "this", ".", "tagValue", ";", "msg", ".", "sourceEnd", "=", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ";", "return", "msg", ";", "}", "}", "else", "{", "JavadocArgumentExpression", "[", "]", "expressions", "=", "new", "JavadocArgumentExpression", "[", "arguments", ".", "size", "(", ")", "]", ";", "arguments", ".", "toArray", "(", "expressions", ")", ";", "if", "(", "isConstructor", ")", "{", "JavadocAllocationExpression", "allocation", "=", "new", "JavadocAllocationExpression", "(", "this", ".", "identifierPositionStack", "[", "length", "-", "1", "]", ")", ";", "allocation", ".", "arguments", "=", "expressions", ";", "allocation", ".", "type", "=", "typeRef", ";", "allocation", ".", "tagValue", "=", "this", ".", "tagValue", ";", "allocation", ".", "sourceEnd", "=", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ";", "if", "(", "length", "==", "1", ")", "{", "allocation", ".", "qualification", "=", "new", "char", "[", "]", "[", "]", "{", "this", ".", "identifierStack", "[", "0", "]", "}", ";", "}", "else", "{", "System", ".", "arraycopy", "(", "this", ".", "identifierStack", ",", "0", ",", "allocation", ".", "qualification", "=", "new", "char", "[", "length", "]", "[", "]", ",", "0", ",", "length", ")", ";", "allocation", ".", "sourceStart", "=", "(", "int", ")", "(", "this", ".", "identifierPositionStack", "[", "0", "]", ">>>", "32", ")", ";", "}", "allocation", ".", "memberStart", "=", "this", ".", "memberStart", ";", "return", "allocation", ";", "}", "else", "{", "JavadocMessageSend", "msg", "=", "new", "JavadocMessageSend", "(", "this", ".", "identifierStack", "[", "length", "-", "1", "]", ",", "this", ".", "identifierPositionStack", "[", "length", "-", "1", "]", ",", "expressions", ")", ";", "msg", ".", "receiver", "=", "typeRef", ";", "msg", ".", "tagValue", "=", "this", ".", "tagValue", ";", "msg", ".", "sourceEnd", "=", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ";", "return", "msg", ";", "}", "}", "}", "catch", "(", "ClassCastException", "ex", ")", "{", "throw", "new", "InvalidInputException", "(", ")", ";", "}", "}", "protected", "Object", "createReturnStatement", "(", ")", "{", "return", "new", "JavadocReturnStatement", "(", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ",", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ")", ";", "}", "protected", "void", "createTag", "(", ")", "{", "this", ".", "tagValue", "=", "TAG_OTHERS_VALUE", ";", "}", "protected", "Object", "createTypeReference", "(", "int", "primitiveToken", ")", "{", "TypeReference", "typeRef", "=", "null", ";", "int", "size", "=", "this", ".", "identifierLengthStack", "[", "this", ".", "identifierLengthPtr", "]", ";", "if", "(", "size", "==", "1", ")", "{", "typeRef", "=", "new", "JavadocSingleTypeReference", "(", "this", ".", "identifierStack", "[", "this", ".", "identifierPtr", "]", ",", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ",", "this", ".", "tagSourceStart", ",", "this", ".", "tagSourceEnd", ")", ";", "}", "else", "if", "(", "size", ">", "1", ")", "{", "char", "[", "]", "[", "]", "tokens", "=", "new", "char", "[", "size", "]", "[", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierStack", ",", "this", ".", "identifierPtr", "-", "size", "+", "1", ",", "tokens", ",", "0", ",", "size", ")", ";", "long", "[", "]", "positions", "=", "new", "long", "[", "size", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "identifierPositionStack", ",", "this", ".", "identifierPtr", "-", "size", "+", "1", ",", "positions", ",", "0", ",", "size", ")", ";", "typeRef", "=", "new", "JavadocQualifiedTypeReference", "(", "tokens", ",", "positions", ",", "this", ".", "tagSourceStart", ",", "this", ".", "tagSourceEnd", ")", ";", "}", "return", "typeRef", ";", "}", "protected", "TypeDeclaration", "getParsedTypeDeclaration", "(", ")", "{", "int", "ptr", "=", "this", ".", "sourceParser", ".", "astPtr", ";", "while", "(", "ptr", ">=", "0", ")", "{", "Object", "node", "=", "this", ".", "sourceParser", ".", "astStack", "[", "ptr", "]", ";", "if", "(", "node", "instanceof", "TypeDeclaration", ")", "{", "TypeDeclaration", "typeDecl", "=", "(", "TypeDeclaration", ")", "node", ";", "if", "(", "typeDecl", ".", "bodyEnd", "==", "0", ")", "{", "return", "typeDecl", ";", "}", "}", "ptr", "--", ";", "}", "return", "null", ";", "}", "protected", "boolean", "parseThrows", "(", ")", "{", "boolean", "valid", "=", "super", ".", "parseThrows", "(", ")", ";", "this", ".", "tagWaitingForDescription", "=", "valid", "&&", "this", ".", "reportProblems", "?", "TAG_THROWS_VALUE", ":", "NO_TAG_VALUE", ";", "return", "valid", ";", "}", "protected", "boolean", "parseReturn", "(", ")", "{", "if", "(", "this", ".", "returnStatement", "==", "null", ")", "{", "this", ".", "returnStatement", "=", "createReturnStatement", "(", ")", ";", "return", "true", ";", "}", "if", "(", "this", ".", "reportProblems", ")", "{", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocDuplicatedReturnTag", "(", "this", ".", "scanner", ".", "getCurrentTokenStartPosition", "(", ")", ",", "this", ".", "scanner", ".", "getCurrentTokenEndPosition", "(", ")", ")", ";", "}", "return", "false", ";", "}", "protected", "void", "parseSimpleTag", "(", ")", "{", "char", "first", "=", "this", ".", "source", "[", "this", ".", "index", "++", "]", ";", "if", "(", "first", "==", "'\\\\'", "&&", "this", ".", "source", "[", "this", ".", "index", "]", "==", "'u'", ")", "{", "int", "c1", ",", "c2", ",", "c3", ",", "c4", ";", "int", "pos", "=", "this", ".", "index", ";", "this", ".", "index", "++", ";", "while", "(", "this", ".", "source", "[", "this", ".", "index", "]", "==", "'u'", ")", "this", ".", "index", "++", ";", "if", "(", "!", "(", "(", "(", "c1", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "this", ".", "source", "[", "this", ".", "index", "++", "]", ")", ")", ">", "15", "||", "c1", "<", "0", ")", "||", "(", "(", "c2", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "this", ".", "source", "[", "this", ".", "index", "++", "]", ")", ")", ">", "15", "||", "c2", "<", "0", ")", "||", "(", "(", "c3", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "this", ".", "source", "[", "this", ".", "index", "++", "]", ")", ")", ">", "15", "||", "c3", "<", "0", ")", "||", "(", "(", "c4", "=", "ScannerHelper", ".", "getHexadecimalValue", "(", "this", ".", "source", "[", "this", ".", "index", "++", "]", ")", ")", ">", "15", "||", "c4", "<", "0", ")", ")", ")", "{", "first", "=", "(", "char", ")", "(", "(", "(", "c1", "*", "16", "+", "c2", ")", "*", "16", "+", "c3", ")", "*", "16", "+", "c4", ")", ";", "}", "else", "{", "this", ".", "index", "=", "pos", ";", "}", "}", "switch", "(", "first", ")", "{", "case", "'d'", ":", "if", "(", "(", "readChar", "(", ")", "==", "'e'", ")", "&&", "(", "readChar", "(", ")", "==", "'p'", ")", "&&", "(", "readChar", "(", ")", "==", "'r'", ")", "&&", "(", "readChar", "(", ")", "==", "'e'", ")", "&&", "(", "readChar", "(", ")", "==", "'c'", ")", "&&", "(", "readChar", "(", ")", "==", "'a'", ")", "&&", "(", "readChar", "(", ")", "==", "'t'", ")", "&&", "(", "readChar", "(", ")", "==", "'e'", ")", "&&", "(", "readChar", "(", ")", "==", "'d'", ")", ")", "{", "char", "c", "=", "readChar", "(", ")", ";", "if", "(", "ScannerHelper", ".", "isWhitespace", "(", "c", ")", "||", "c", "==", "'*'", ")", "{", "this", ".", "abort", "=", "true", ";", "this", ".", "deprecated", "=", "true", ";", "this", ".", "tagValue", "=", "TAG_DEPRECATED_VALUE", ";", "}", "}", "break", ";", "}", "}", "protected", "boolean", "parseTag", "(", "int", "previousPosition", ")", "throws", "InvalidInputException", "{", "switch", "(", "this", ".", "tagWaitingForDescription", ")", "{", "case", "TAG_PARAM_VALUE", ":", "case", "TAG_THROWS_VALUE", ":", "if", "(", "!", "this", ".", "inlineTagStarted", ")", "{", "int", "start", "=", "(", "int", ")", "(", "this", ".", "identifierPositionStack", "[", "0", "]", ">>>", "32", ")", ";", "int", "end", "=", "(", "int", ")", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ";", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocMissingTagDescriptionAfterReference", "(", "start", ",", "end", ",", "this", ".", "sourceParser", ".", "modifiers", ")", ";", "}", "break", ";", "case", "NO_TAG_VALUE", ":", "break", ";", "default", ":", "if", "(", "!", "this", ".", "inlineTagStarted", ")", "{", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocMissingTagDescription", "(", "TAG_NAMES", "[", "this", ".", "tagWaitingForDescription", "]", ",", "this", ".", "tagSourceStart", ",", "this", ".", "tagSourceEnd", ",", "this", ".", "sourceParser", ".", "modifiers", ")", ";", "}", "break", ";", "}", "this", ".", "tagWaitingForDescription", "=", "NO_TAG_VALUE", ";", "this", ".", "tagSourceStart", "=", "this", ".", "index", ";", "this", ".", "tagSourceEnd", "=", "previousPosition", ";", "this", ".", "scanner", ".", "startPosition", "=", "this", ".", "index", ";", "int", "currentPosition", "=", "this", ".", "index", ";", "char", "firstChar", "=", "readChar", "(", ")", ";", "switch", "(", "firstChar", ")", "{", "case", "'", "'", ":", "case", "'*'", ":", "case", "'}'", ":", "case", "'#'", ":", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidTag", "(", "previousPosition", ",", "currentPosition", ")", ";", "if", "(", "this", ".", "textStart", "==", "-", "1", ")", "this", ".", "textStart", "=", "currentPosition", ";", "this", ".", "scanner", ".", "currentCharacter", "=", "firstChar", ";", "return", "false", ";", "default", ":", "if", "(", "ScannerHelper", ".", "isWhitespace", "(", "firstChar", ")", ")", "{", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidTag", "(", "previousPosition", ",", "currentPosition", ")", ";", "if", "(", "this", ".", "textStart", "==", "-", "1", ")", "this", ".", "textStart", "=", "currentPosition", ";", "this", ".", "scanner", ".", "currentCharacter", "=", "firstChar", ";", "return", "false", ";", "}", "break", ";", "}", "char", "[", "]", "tagName", "=", "new", "char", "[", "32", "]", ";", "int", "length", "=", "0", ";", "char", "currentChar", "=", "firstChar", ";", "int", "tagNameLength", "=", "tagName", ".", "length", ";", "boolean", "validTag", "=", "true", ";", "tagLoop", ":", "while", "(", "true", ")", "{", "if", "(", "length", "==", "tagNameLength", ")", "{", "System", ".", "arraycopy", "(", "tagName", ",", "0", ",", "tagName", "=", "new", "char", "[", "tagNameLength", "+", "32", "]", ",", "0", ",", "tagNameLength", ")", ";", "tagNameLength", "=", "tagName", ".", "length", ";", "}", "tagName", "[", "length", "++", "]", "=", "currentChar", ";", "currentPosition", "=", "this", ".", "index", ";", "currentChar", "=", "readChar", "(", ")", ";", "switch", "(", "currentChar", ")", "{", "case", "'", "'", ":", "case", "'*'", ":", "case", "'}'", ":", "break", "tagLoop", ";", "case", "'#'", ":", "validTag", "=", "false", ";", "break", ";", "default", ":", "if", "(", "ScannerHelper", ".", "isWhitespace", "(", "currentChar", ")", ")", "{", "break", "tagLoop", ";", "}", "break", ";", "}", "}", "this", ".", "tagSourceEnd", "=", "currentPosition", "-", "1", ";", "this", ".", "scanner", ".", "currentCharacter", "=", "currentChar", ";", "this", ".", "scanner", ".", "currentPosition", "=", "currentPosition", ";", "this", ".", "index", "=", "this", ".", "tagSourceEnd", "+", "1", ";", "if", "(", "!", "validTag", ")", "{", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocInvalidTag", "(", "this", ".", "tagSourceStart", ",", "this", ".", "tagSourceEnd", ")", ";", "if", "(", "this", ".", "textStart", "==", "-", "1", ")", "this", ".", "textStart", "=", "this", ".", "index", ";", "this", ".", "scanner", ".", "currentCharacter", "=", "currentChar", ";", "return", "false", ";", "}", "this", ".", "tagValue", "=", "TAG_OTHERS_VALUE", ";", "boolean", "valid", "=", "false", ";", "switch", "(", "firstChar", ")", "{", "case", "'a'", ":", "if", "(", "length", "==", "TAG_AUTHOR_LENGTH", "&&", "CharOperation", ".", "equals", "(", "TAG_AUTHOR", ",", "tagName", ",", "0", ",", "length", ")", ")", "{", "this", ".", "tagValue", "=", "TAG_AUTHOR_VALUE", ";", "this", ".", "tagWaitingForDescription", "=", "this", ".", "tagValue", ";", "}", "break", ";", "case", "'c'", ":", "if", "(", "length", "==", "TAG_CATEGORY_LENGTH", "&&", "CharOperation", ".", "equals", "(", "TAG_CATEGORY", ",", "tagName", ",", "0", ",", "length", ")", ")", "{", "this", ".", "tagValue", "=", "TAG_CATEGORY_VALUE", ";", "if", "(", "!", "this", ".", "inlineTagStarted", ")", "{", "valid", "=", "parseIdentifierTag", "(", "false", ")", ";", "}", "}", "else", "if", "(", "length", "==", "TAG_CODE_LENGTH", "&&", "this", ".", "inlineTagStarted", "&&", "CharOperation", ".", "equals", "(", "TAG_CODE", ",", "tagName", ",", "0", ",", "length", ")", ")", "{", "this", ".", "tagValue", "=", "TAG_CODE_VALUE", ";", "this", ".", "tagWaitingForDescription", "=", "this", ".", "tagValue", ";", "}", "break", ";", "case", "'d'", ":", "if", "(", "length", "==", "TAG_DEPRECATED_LENGTH", "&&", "CharOperation", ".", "equals", "(", "TAG_DEPRECATED", ",", "tagName", ",", "0", ",", "length", ")", ")", "{", "this", ".", "deprecated", "=", "true", ";", "valid", "=", "true", ";", "this", ".", "tagValue", "=", "TAG_DEPRECATED_VALUE", ";", "this", ".", "tagWaitingForDescription", "=", "this", ".", "tagValue", ";", "}", "else", "if", "(", "length", "==", "TAG_DOC_ROOT_LENGTH", "&&", "CharOperation", ".", "equals", "(", "TAG_DOC_ROOT", ",", "tagName", ",", "0", ",", "length", ")", ")", "{", "valid", "=", "true", ";", "this", ".", "tagValue", "=", "TAG_DOC_ROOT_VALUE", ";", "}", "break", ";", "case", "'e'", ":", "if", "(", "length", "==", "TAG_EXCEPTION_LENGTH", "&&", "CharOperation", ".", "equals", "(", "TAG_EXCEPTION", ",", "tagName", ",", "0", ",", "length", ")", ")", "{", "this", ".", "tagValue", "=", "TAG_EXCEPTION_VALUE", ";", "if", "(", "!", "this", ".", "inlineTagStarted", ")", "{", "valid", "=", "parseThrows", "(", ")", ";", "}", "}", "break", ";", "case", "'i'", ":", "if", "(", "length", "==", "TAG_INHERITDOC_LENGTH", "&&", "CharOperation", ".", "equals", "(", "TAG_INHERITDOC", ",", "tagName", ",", "0", ",", "length", ")", ")", "{", "switch", "(", "this", ".", "lastBlockTagValue", ")", "{", "case", "TAG_RETURN_VALUE", ":", "case", "TAG_THROWS_VALUE", ":", "case", "TAG_EXCEPTION_VALUE", ":", "case", "TAG_PARAM_VALUE", ":", "case", "NO_TAG_VALUE", ":", "valid", "=", "true", ";", "if", "(", "this", ".", "reportProblems", ")", "{", "recordInheritedPosition", "(", "(", "(", "(", "long", ")", "this", ".", "tagSourceStart", ")", "<<", "32", ")", "+", "this", ".", "tagSourceEnd", ")", ";", "}", "if", "(", "this", ".", "inlineTagStarted", ")", "{", "parseInheritDocTag", "(", ")", ";", "}", "break", ";", "default", ":", "valid", "=", "false", ";", "if", "(", "this", ".", "reportProblems", ")", "{", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "this", ".", "tagSourceStart", ",", "this", ".", "tagSourceEnd", ")", ";", "}", "}", "this", ".", "tagValue", "=", "TAG_INHERITDOC_VALUE", ";", "}", "break", ";", "case", "'l'", ":", "if", "(", "length", "==", "TAG_LINK_LENGTH", "&&", "CharOperation", ".", "equals", "(", "TAG_LINK", ",", "tagName", ",", "0", ",", "length", ")", ")", "{", "this", ".", "tagValue", "=", "TAG_LINK_VALUE", ";", "if", "(", "this", ".", "inlineTagStarted", "||", "(", "this", ".", "kind", "&", "COMPLETION_PARSER", ")", "!=", "0", ")", "{", "valid", "=", "parseReference", "(", ")", ";", "}", "}", "else", "if", "(", "length", "==", "TAG_LINKPLAIN_LENGTH", "&&", "CharOperation", ".", "equals", "(", "TAG_LINKPLAIN", ",", "tagName", ",", "0", ",", "length", ")", ")", "{", "this", ".", "tagValue", "=", "TAG_LINKPLAIN_VALUE", ";", "if", "(", "this", ".", "inlineTagStarted", ")", "{", "valid", "=", "parseReference", "(", ")", ";", "}", "}", "else", "if", "(", "length", "==", "TAG_LITERAL_LENGTH", "&&", "this", ".", "inlineTagStarted", "&&", "CharOperation", ".", "equals", "(", "TAG_LITERAL", ",", "tagName", ",", "0", ",", "length", ")", ")", "{", "this", ".", "tagValue", "=", "TAG_LITERAL_VALUE", ";", "this", ".", "tagWaitingForDescription", "=", "this", ".", "tagValue", ";", "}", "break", ";", "case", "'p'", ":", "if", "(", "length", "==", "TAG_PARAM_LENGTH", "&&", "CharOperation", ".", "equals", "(", "TAG_PARAM", ",", "tagName", ",", "0", ",", "length", ")", ")", "{", "this", ".", "tagValue", "=", "TAG_PARAM_VALUE", ";", "if", "(", "!", "this", ".", "inlineTagStarted", ")", "{", "valid", "=", "parseParam", "(", ")", ";", "}", "}", "break", ";", "case", "'r'", ":", "if", "(", "length", "==", "TAG_RETURN_LENGTH", "&&", "CharOperation", ".", "equals", "(", "TAG_RETURN", ",", "tagName", ",", "0", ",", "length", ")", ")", "{", "this", ".", "tagValue", "=", "TAG_RETURN_VALUE", ";", "if", "(", "!", "this", ".", "inlineTagStarted", ")", "{", "valid", "=", "parseReturn", "(", ")", ";", "}", "}", "break", ";", "case", "'s'", ":", "if", "(", "length", "==", "TAG_SEE_LENGTH", "&&", "CharOperation", ".", "equals", "(", "TAG_SEE", ",", "tagName", ",", "0", ",", "length", ")", ")", "{", "this", ".", "tagValue", "=", "TAG_SEE_VALUE", ";", "if", "(", "!", "this", ".", "inlineTagStarted", ")", "{", "valid", "=", "parseReference", "(", ")", ";", "}", "}", "else", "if", "(", "length", "==", "TAG_SERIAL_LENGTH", "&&", "CharOperation", ".", "equals", "(", "TAG_SERIAL", ",", "tagName", ",", "0", ",", "length", ")", ")", "{", "this", ".", "tagValue", "=", "TAG_SERIAL_VALUE", ";", "this", ".", "tagWaitingForDescription", "=", "this", ".", "tagValue", ";", "}", "else", "if", "(", "length", "==", "TAG_SERIAL_DATA_LENGTH", "&&", "CharOperation", ".", "equals", "(", "TAG_SERIAL_DATA", ",", "tagName", ",", "0", ",", "length", ")", ")", "{", "this", ".", "tagValue", "=", "TAG_SERIAL_DATA_VALUE", ";", "this", ".", "tagWaitingForDescription", "=", "this", ".", "tagValue", ";", "}", "else", "if", "(", "length", "==", "TAG_SERIAL_FIELD_LENGTH", "&&", "CharOperation", ".", "equals", "(", "TAG_SERIAL_FIELD", ",", "tagName", ",", "0", ",", "length", ")", ")", "{", "this", ".", "tagValue", "=", "TAG_SERIAL_FIELD_VALUE", ";", "this", ".", "tagWaitingForDescription", "=", "this", ".", "tagValue", ";", "}", "else", "if", "(", "length", "==", "TAG_SINCE_LENGTH", "&&", "CharOperation", ".", "equals", "(", "TAG_SINCE", ",", "tagName", ",", "0", ",", "length", ")", ")", "{", "this", ".", "tagValue", "=", "TAG_SINCE_VALUE", ";", "this", ".", "tagWaitingForDescription", "=", "this", ".", "tagValue", ";", "}", "break", ";", "case", "'t'", ":", "if", "(", "length", "==", "TAG_THROWS_LENGTH", "&&", "CharOperation", ".", "equals", "(", "TAG_THROWS", ",", "tagName", ",", "0", ",", "length", ")", ")", "{", "this", ".", "tagValue", "=", "TAG_THROWS_VALUE", ";", "if", "(", "!", "this", ".", "inlineTagStarted", ")", "{", "valid", "=", "parseThrows", "(", ")", ";", "}", "}", "break", ";", "case", "'v'", ":", "if", "(", "length", "==", "TAG_VALUE_LENGTH", "&&", "CharOperation", ".", "equals", "(", "TAG_VALUE", ",", "tagName", ",", "0", ",", "length", ")", ")", "{", "this", ".", "tagValue", "=", "TAG_VALUE_VALUE", ";", "if", "(", "this", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "if", "(", "this", ".", "inlineTagStarted", ")", "{", "valid", "=", "parseReference", "(", ")", ";", "}", "}", "else", "{", "if", "(", "this", ".", "validValuePositions", "==", "-", "1", ")", "{", "if", "(", "this", ".", "invalidValuePositions", "!=", "-", "1", ")", "{", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "(", "int", ")", "(", "this", ".", "invalidValuePositions", ">>>", "32", ")", ",", "(", "int", ")", "this", ".", "invalidValuePositions", ")", ";", "}", "if", "(", "valid", ")", "{", "this", ".", "validValuePositions", "=", "(", "(", "(", "long", ")", "this", ".", "tagSourceStart", ")", "<<", "32", ")", "+", "this", ".", "tagSourceEnd", ";", "this", ".", "invalidValuePositions", "=", "-", "1", ";", "}", "else", "{", "this", ".", "invalidValuePositions", "=", "(", "(", "(", "long", ")", "this", ".", "tagSourceStart", ")", "<<", "32", ")", "+", "this", ".", "tagSourceEnd", ";", "}", "}", "else", "{", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "this", ".", "tagSourceStart", ",", "this", ".", "tagSourceEnd", ")", ";", "}", "}", "}", "else", "if", "(", "length", "==", "TAG_VERSION_LENGTH", "&&", "CharOperation", ".", "equals", "(", "TAG_VERSION", ",", "tagName", ",", "0", ",", "length", ")", ")", "{", "this", ".", "tagValue", "=", "TAG_VERSION_VALUE", ";", "this", ".", "tagWaitingForDescription", "=", "this", ".", "tagValue", ";", "}", "else", "{", "createTag", "(", ")", ";", "}", "break", ";", "default", ":", "createTag", "(", ")", ";", "break", ";", "}", "this", ".", "textStart", "=", "this", ".", "index", ";", "if", "(", "this", ".", "tagValue", "!=", "TAG_OTHERS_VALUE", ")", "{", "if", "(", "!", "this", ".", "inlineTagStarted", ")", "{", "this", ".", "lastBlockTagValue", "=", "this", ".", "tagValue", ";", "}", "if", "(", "(", "this", ".", "inlineTagStarted", "&&", "JAVADOC_TAG_TYPE", "[", "this", ".", "tagValue", "]", "==", "TAG_TYPE_BLOCK", ")", "||", "(", "!", "this", ".", "inlineTagStarted", "&&", "JAVADOC_TAG_TYPE", "[", "this", ".", "tagValue", "]", "==", "TAG_TYPE_INLINE", ")", ")", "{", "valid", "=", "false", ";", "this", ".", "tagValue", "=", "TAG_OTHERS_VALUE", ";", "this", ".", "tagWaitingForDescription", "=", "NO_TAG_VALUE", ";", "if", "(", "this", ".", "reportProblems", ")", "{", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "this", ".", "tagSourceStart", ",", "this", ".", "tagSourceEnd", ")", ";", "}", "}", "}", "return", "valid", ";", "}", "protected", "void", "parseInheritDocTag", "(", ")", "{", "}", "protected", "boolean", "parseParam", "(", ")", "throws", "InvalidInputException", "{", "boolean", "valid", "=", "super", ".", "parseParam", "(", ")", ";", "this", ".", "tagWaitingForDescription", "=", "valid", "&&", "this", ".", "reportProblems", "?", "TAG_PARAM_VALUE", ":", "NO_TAG_VALUE", ";", "return", "valid", ";", "}", "protected", "boolean", "pushParamName", "(", "boolean", "isTypeParam", ")", "{", "ASTNode", "nameRef", "=", "null", ";", "if", "(", "isTypeParam", ")", "{", "JavadocSingleTypeReference", "ref", "=", "new", "JavadocSingleTypeReference", "(", "this", ".", "identifierStack", "[", "1", "]", ",", "this", ".", "identifierPositionStack", "[", "1", "]", ",", "this", ".", "tagSourceStart", ",", "this", ".", "tagSourceEnd", ")", ";", "nameRef", "=", "ref", ";", "}", "else", "{", "JavadocSingleNameReference", "ref", "=", "new", "JavadocSingleNameReference", "(", "this", ".", "identifierStack", "[", "0", "]", ",", "this", ".", "identifierPositionStack", "[", "0", "]", ",", "this", ".", "tagSourceStart", ",", "this", ".", "tagSourceEnd", ")", ";", "nameRef", "=", "ref", ";", "}", "if", "(", "this", ".", "astLengthPtr", "==", "-", "1", ")", "{", "pushOnAstStack", "(", "nameRef", ",", "true", ")", ";", "}", "else", "{", "if", "(", "!", "isTypeParam", ")", "{", "for", "(", "int", "i", "=", "THROWS_TAG_EXPECTED_ORDER", ";", "i", "<=", "this", ".", "astLengthPtr", ";", "i", "+=", "ORDERED_TAGS_NUMBER", ")", "{", "if", "(", "this", ".", "astLengthStack", "[", "i", "]", "!=", "0", ")", "{", "if", "(", "this", ".", "reportProblems", ")", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "this", ".", "tagSourceStart", ",", "this", ".", "tagSourceEnd", ")", ";", "if", "(", "this", ".", "invalidParamReferencesPtr", "==", "-", "1l", ")", "{", "this", ".", "invalidParamReferencesStack", "=", "new", "JavadocSingleNameReference", "[", "10", "]", ";", "}", "int", "stackLength", "=", "this", ".", "invalidParamReferencesStack", ".", "length", ";", "if", "(", "++", "this", ".", "invalidParamReferencesPtr", ">=", "stackLength", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "invalidParamReferencesStack", ",", "0", ",", "this", ".", "invalidParamReferencesStack", "=", "new", "JavadocSingleNameReference", "[", "stackLength", "+", "AST_STACK_INCREMENT", "]", ",", "0", ",", "stackLength", ")", ";", "}", "this", ".", "invalidParamReferencesStack", "[", "this", ".", "invalidParamReferencesPtr", "]", "=", "nameRef", ";", "return", "false", ";", "}", "}", "}", "switch", "(", "this", ".", "astLengthPtr", "%", "ORDERED_TAGS_NUMBER", ")", "{", "case", "PARAM_TAG_EXPECTED_ORDER", ":", "pushOnAstStack", "(", "nameRef", ",", "false", ")", ";", "break", ";", "case", "SEE_TAG_EXPECTED_ORDER", ":", "pushOnAstStack", "(", "nameRef", ",", "true", ")", ";", "break", ";", "default", ":", "return", "false", ";", "}", "}", "return", "true", ";", "}", "protected", "boolean", "pushSeeRef", "(", "Object", "statement", ")", "{", "if", "(", "this", ".", "astLengthPtr", "==", "-", "1", ")", "{", "pushOnAstStack", "(", "null", ",", "true", ")", ";", "pushOnAstStack", "(", "null", ",", "true", ")", ";", "pushOnAstStack", "(", "statement", ",", "true", ")", ";", "}", "else", "{", "switch", "(", "this", ".", "astLengthPtr", "%", "ORDERED_TAGS_NUMBER", ")", "{", "case", "PARAM_TAG_EXPECTED_ORDER", ":", "pushOnAstStack", "(", "null", ",", "true", ")", ";", "pushOnAstStack", "(", "statement", ",", "true", ")", ";", "break", ";", "case", "THROWS_TAG_EXPECTED_ORDER", ":", "pushOnAstStack", "(", "statement", ",", "true", ")", ";", "break", ";", "case", "SEE_TAG_EXPECTED_ORDER", ":", "pushOnAstStack", "(", "statement", ",", "false", ")", ";", "break", ";", "default", ":", "return", "false", ";", "}", "}", "return", "true", ";", "}", "protected", "void", "pushText", "(", "int", "start", ",", "int", "end", ")", "{", "this", ".", "tagWaitingForDescription", "=", "NO_TAG_VALUE", ";", "}", "protected", "boolean", "pushThrowName", "(", "Object", "typeRef", ")", "{", "if", "(", "this", ".", "astLengthPtr", "==", "-", "1", ")", "{", "pushOnAstStack", "(", "null", ",", "true", ")", ";", "pushOnAstStack", "(", "typeRef", ",", "true", ")", ";", "}", "else", "{", "switch", "(", "this", ".", "astLengthPtr", "%", "ORDERED_TAGS_NUMBER", ")", "{", "case", "PARAM_TAG_EXPECTED_ORDER", ":", "pushOnAstStack", "(", "typeRef", ",", "true", ")", ";", "break", ";", "case", "THROWS_TAG_EXPECTED_ORDER", ":", "pushOnAstStack", "(", "typeRef", ",", "false", ")", ";", "break", ";", "case", "SEE_TAG_EXPECTED_ORDER", ":", "pushOnAstStack", "(", "null", ",", "true", ")", ";", "pushOnAstStack", "(", "typeRef", ",", "true", ")", ";", "break", ";", "default", ":", "return", "false", ";", "}", "}", "return", "true", ";", "}", "protected", "void", "refreshInlineTagPosition", "(", "int", "previousPosition", ")", "{", "if", "(", "this", ".", "tagWaitingForDescription", "!=", "NO_TAG_VALUE", ")", "{", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocMissingTagDescription", "(", "TAG_NAMES", "[", "this", ".", "tagWaitingForDescription", "]", ",", "this", ".", "tagSourceStart", ",", "this", ".", "tagSourceEnd", ",", "this", ".", "sourceParser", ".", "modifiers", ")", ";", "this", ".", "tagWaitingForDescription", "=", "NO_TAG_VALUE", ";", "}", "}", "protected", "void", "refreshReturnStatement", "(", ")", "{", "(", "(", "JavadocReturnStatement", ")", "this", ".", "returnStatement", ")", ".", "bits", "&=", "~", "ASTNode", ".", "Empty", ";", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "buffer", ".", "append", "(", "\"\"", ")", ".", "append", "(", "this", ".", "checkDocComment", ")", ".", "append", "(", "\"n\"", ")", ";", "buffer", ".", "append", "(", "\"javadoc:", "\"", ")", ".", "append", "(", "this", ".", "docComment", ")", ".", "append", "(", "\"n\"", ")", ";", "buffer", ".", "append", "(", "super", ".", "toString", "(", ")", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}", "protected", "void", "updateDocComment", "(", ")", "{", "switch", "(", "this", ".", "tagWaitingForDescription", ")", "{", "case", "TAG_PARAM_VALUE", ":", "case", "TAG_THROWS_VALUE", ":", "if", "(", "!", "this", ".", "inlineTagStarted", ")", "{", "int", "start", "=", "(", "int", ")", "(", "this", ".", "identifierPositionStack", "[", "0", "]", ">>>", "32", ")", ";", "int", "end", "=", "(", "int", ")", "this", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ";", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocMissingTagDescriptionAfterReference", "(", "start", ",", "end", ",", "this", ".", "sourceParser", ".", "modifiers", ")", ";", "}", "break", ";", "case", "NO_TAG_VALUE", ":", "break", ";", "default", ":", "if", "(", "!", "this", ".", "inlineTagStarted", ")", "{", "this", ".", "sourceParser", ".", "problemReporter", "(", ")", ".", "javadocMissingTagDescription", "(", "TAG_NAMES", "[", "this", ".", "tagWaitingForDescription", "]", ",", "this", ".", "tagSourceStart", ",", "this", ".", "tagSourceEnd", ",", "this", ".", "sourceParser", ".", "modifiers", ")", ";", "}", "break", ";", "}", "this", ".", "tagWaitingForDescription", "=", "NO_TAG_VALUE", ";", "if", "(", "this", ".", "inheritedPositions", "!=", "null", "&&", "this", ".", "inheritedPositionsPtr", "!=", "this", ".", "inheritedPositions", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "inheritedPositions", ",", "0", ",", "this", ".", "inheritedPositions", "=", "new", "long", "[", "this", ".", "inheritedPositionsPtr", "]", ",", "0", ",", "this", ".", "inheritedPositionsPtr", ")", ";", "}", "this", ".", "docComment", ".", "inheritedPositions", "=", "this", ".", "inheritedPositions", ";", "this", ".", "docComment", ".", "valuePositions", "=", "this", ".", "validValuePositions", "!=", "-", "1", "?", "this", ".", "validValuePositions", ":", "this", ".", "invalidValuePositions", ";", "if", "(", "this", ".", "returnStatement", "!=", "null", ")", "{", "this", ".", "docComment", ".", "returnStatement", "=", "(", "JavadocReturnStatement", ")", "this", ".", "returnStatement", ";", "}", "if", "(", "this", ".", "invalidParamReferencesPtr", ">=", "0", ")", "{", "this", ".", "docComment", ".", "invalidParameters", "=", "new", "JavadocSingleNameReference", "[", "this", ".", "invalidParamReferencesPtr", "+", "1", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "invalidParamReferencesStack", ",", "0", ",", "this", ".", "docComment", ".", "invalidParameters", ",", "0", ",", "this", ".", "invalidParamReferencesPtr", "+", "1", ")", ";", "}", "if", "(", "this", ".", "astLengthPtr", "==", "-", "1", ")", "{", "return", ";", "}", "int", "[", "]", "sizes", "=", "new", "int", "[", "ORDERED_TAGS_NUMBER", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "this", ".", "astLengthPtr", ";", "i", "++", ")", "{", "sizes", "[", "i", "%", "ORDERED_TAGS_NUMBER", "]", "+=", "this", ".", "astLengthStack", "[", "i", "]", ";", "}", "this", ".", "docComment", ".", "seeReferences", "=", "new", "Expression", "[", "sizes", "[", "SEE_TAG_EXPECTED_ORDER", "]", "]", ";", "this", ".", "docComment", ".", "exceptionReferences", "=", "new", "TypeReference", "[", "sizes", "[", "THROWS_TAG_EXPECTED_ORDER", "]", "]", ";", "int", "paramRefPtr", "=", "sizes", "[", "PARAM_TAG_EXPECTED_ORDER", "]", ";", "this", ".", "docComment", ".", "paramReferences", "=", "new", "JavadocSingleNameReference", "[", "paramRefPtr", "]", ";", "int", "paramTypeParamPtr", "=", "sizes", "[", "PARAM_TAG_EXPECTED_ORDER", "]", ";", "this", ".", "docComment", ".", "paramTypeParameters", "=", "new", "JavadocSingleTypeReference", "[", "paramTypeParamPtr", "]", ";", "while", "(", "this", ".", "astLengthPtr", ">=", "0", ")", "{", "int", "ptr", "=", "this", ".", "astLengthPtr", "%", "ORDERED_TAGS_NUMBER", ";", "switch", "(", "ptr", ")", "{", "case", "SEE_TAG_EXPECTED_ORDER", ":", "int", "size", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "++", ")", "{", "this", ".", "docComment", ".", "seeReferences", "[", "--", "sizes", "[", "ptr", "]", "]", "=", "(", "Expression", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "--", "]", ";", "}", "break", ";", "case", "THROWS_TAG_EXPECTED_ORDER", ":", "size", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "++", ")", "{", "this", ".", "docComment", ".", "exceptionReferences", "[", "--", "sizes", "[", "ptr", "]", "]", "=", "(", "TypeReference", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "--", "]", ";", "}", "break", ";", "case", "PARAM_TAG_EXPECTED_ORDER", ":", "size", "=", "this", ".", "astLengthStack", "[", "this", ".", "astLengthPtr", "--", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "++", ")", "{", "Expression", "reference", "=", "(", "Expression", ")", "this", ".", "astStack", "[", "this", ".", "astPtr", "--", "]", ";", "if", "(", "reference", "instanceof", "JavadocSingleNameReference", ")", "this", ".", "docComment", ".", "paramReferences", "[", "--", "paramRefPtr", "]", "=", "(", "JavadocSingleNameReference", ")", "reference", ";", "else", "if", "(", "reference", "instanceof", "JavadocSingleTypeReference", ")", "this", ".", "docComment", ".", "paramTypeParameters", "[", "--", "paramTypeParamPtr", "]", "=", "(", "JavadocSingleTypeReference", ")", "reference", ";", "}", "break", ";", "}", "}", "if", "(", "paramRefPtr", "==", "0", ")", "{", "this", ".", "docComment", ".", "paramTypeParameters", "=", "null", ";", "}", "else", "if", "(", "paramTypeParamPtr", "==", "0", ")", "{", "this", ".", "docComment", ".", "paramReferences", "=", "null", ";", "}", "else", "{", "int", "size", "=", "sizes", "[", "PARAM_TAG_EXPECTED_ORDER", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "docComment", ".", "paramReferences", ",", "paramRefPtr", ",", "this", ".", "docComment", ".", "paramReferences", "=", "new", "JavadocSingleNameReference", "[", "size", "-", "paramRefPtr", "]", ",", "0", ",", "size", "-", "paramRefPtr", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "docComment", ".", "paramTypeParameters", ",", "paramTypeParamPtr", ",", "this", ".", "docComment", ".", "paramTypeParameters", "=", "new", "JavadocSingleTypeReference", "[", "size", "-", "paramTypeParamPtr", "]", ",", "0", ",", "size", "-", "paramTypeParamPtr", ")", ";", "}", "}", "}", "</s>" ]
3,350
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "AbstractMethodDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Block", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "FieldDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ImportReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "LocalDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Statement", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "class", "RecoveredElement", "{", "public", "RecoveredElement", "parent", ";", "public", "int", "bracketBalance", ";", "public", "boolean", "foundOpeningBrace", ";", "protected", "Parser", "recoveringParser", ";", "public", "RecoveredElement", "(", "RecoveredElement", "parent", ",", "int", "bracketBalance", ")", "{", "this", "(", "parent", ",", "bracketBalance", ",", "null", ")", ";", "}", "public", "RecoveredElement", "(", "RecoveredElement", "parent", ",", "int", "bracketBalance", ",", "Parser", "parser", ")", "{", "this", ".", "parent", "=", "parent", ";", "this", ".", "bracketBalance", "=", "bracketBalance", ";", "this", ".", "recoveringParser", "=", "parser", ";", "}", "public", "RecoveredElement", "addAnnotationName", "(", "int", "identifierPtr", ",", "int", "identifierLengthPtr", ",", "int", "annotationStart", ",", "int", "bracketBalanceValue", ")", "{", "resetPendingModifiers", "(", ")", ";", "if", "(", "this", ".", "parent", "==", "null", ")", "return", "this", ";", "this", ".", "updateSourceEndIfNecessary", "(", "previousAvailableLineEnd", "(", "annotationStart", "-", "1", ")", ")", ";", "return", "this", ".", "parent", ".", "addAnnotationName", "(", "identifierPtr", ",", "identifierLengthPtr", ",", "annotationStart", ",", "bracketBalanceValue", ")", ";", "}", "public", "RecoveredElement", "add", "(", "AbstractMethodDeclaration", "methodDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "resetPendingModifiers", "(", ")", ";", "if", "(", "this", ".", "parent", "==", "null", ")", "return", "this", ";", "this", ".", "updateSourceEndIfNecessary", "(", "previousAvailableLineEnd", "(", "methodDeclaration", ".", "declarationSourceStart", "-", "1", ")", ")", ";", "return", "this", ".", "parent", ".", "add", "(", "methodDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "public", "RecoveredElement", "add", "(", "Block", "nestedBlockDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "resetPendingModifiers", "(", ")", ";", "if", "(", "this", ".", "parent", "==", "null", ")", "return", "this", ";", "this", ".", "updateSourceEndIfNecessary", "(", "previousAvailableLineEnd", "(", "nestedBlockDeclaration", ".", "sourceStart", "-", "1", ")", ")", ";", "return", "this", ".", "parent", ".", "add", "(", "nestedBlockDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "public", "RecoveredElement", "add", "(", "FieldDeclaration", "fieldDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "resetPendingModifiers", "(", ")", ";", "if", "(", "this", ".", "parent", "==", "null", ")", "return", "this", ";", "this", ".", "updateSourceEndIfNecessary", "(", "previousAvailableLineEnd", "(", "fieldDeclaration", ".", "declarationSourceStart", "-", "1", ")", ")", ";", "return", "this", ".", "parent", ".", "add", "(", "fieldDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "public", "RecoveredElement", "add", "(", "ImportReference", "importReference", ",", "int", "bracketBalanceValue", ")", "{", "resetPendingModifiers", "(", ")", ";", "if", "(", "this", ".", "parent", "==", "null", ")", "return", "this", ";", "this", ".", "updateSourceEndIfNecessary", "(", "previousAvailableLineEnd", "(", "importReference", ".", "declarationSourceStart", "-", "1", ")", ")", ";", "return", "this", ".", "parent", ".", "add", "(", "importReference", ",", "bracketBalanceValue", ")", ";", "}", "public", "RecoveredElement", "add", "(", "LocalDeclaration", "localDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "resetPendingModifiers", "(", ")", ";", "if", "(", "this", ".", "parent", "==", "null", ")", "return", "this", ";", "this", ".", "updateSourceEndIfNecessary", "(", "previousAvailableLineEnd", "(", "localDeclaration", ".", "declarationSourceStart", "-", "1", ")", ")", ";", "return", "this", ".", "parent", ".", "add", "(", "localDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "public", "RecoveredElement", "add", "(", "Statement", "statement", ",", "int", "bracketBalanceValue", ")", "{", "resetPendingModifiers", "(", ")", ";", "if", "(", "this", ".", "parent", "==", "null", ")", "return", "this", ";", "if", "(", "this", "instanceof", "RecoveredType", ")", "{", "TypeDeclaration", "typeDeclaration", "=", "(", "(", "RecoveredType", ")", "this", ")", ".", "typeDeclaration", ";", "if", "(", "typeDeclaration", "!=", "null", "&&", "(", "typeDeclaration", ".", "bits", "&", "ASTNode", ".", "IsAnonymousType", ")", "!=", "0", ")", "{", "if", "(", "statement", ".", "sourceStart", ">", "typeDeclaration", ".", "sourceStart", "&&", "statement", ".", "sourceEnd", "<", "typeDeclaration", ".", "sourceEnd", ")", "{", "return", "this", ";", "}", "}", "}", "this", ".", "updateSourceEndIfNecessary", "(", "previousAvailableLineEnd", "(", "statement", ".", "sourceStart", "-", "1", ")", ")", ";", "return", "this", ".", "parent", ".", "add", "(", "statement", ",", "bracketBalanceValue", ")", ";", "}", "public", "RecoveredElement", "add", "(", "TypeDeclaration", "typeDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "resetPendingModifiers", "(", ")", ";", "if", "(", "this", ".", "parent", "==", "null", ")", "return", "this", ";", "this", ".", "updateSourceEndIfNecessary", "(", "previousAvailableLineEnd", "(", "typeDeclaration", ".", "declarationSourceStart", "-", "1", ")", ")", ";", "return", "this", ".", "parent", ".", "add", "(", "typeDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "protected", "void", "addBlockStatement", "(", "RecoveredBlock", "recoveredBlock", ")", "{", "Block", "block", "=", "recoveredBlock", ".", "blockDeclaration", ";", "if", "(", "block", ".", "statements", "!=", "null", ")", "{", "Statement", "[", "]", "statements", "=", "block", ".", "statements", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "statements", ".", "length", ";", "i", "++", ")", "{", "recoveredBlock", ".", "add", "(", "statements", "[", "i", "]", ",", "0", ")", ";", "}", "}", "}", "public", "void", "addModifier", "(", "int", "flag", ",", "int", "modifiersSourceStart", ")", "{", "}", "public", "int", "depth", "(", ")", "{", "int", "depth", "=", "0", ";", "RecoveredElement", "current", "=", "this", ";", "while", "(", "(", "current", "=", "current", ".", "parent", ")", "!=", "null", ")", "depth", "++", ";", "return", "depth", ";", "}", "public", "RecoveredInitializer", "enclosingInitializer", "(", ")", "{", "RecoveredElement", "current", "=", "this", ";", "while", "(", "current", "!=", "null", ")", "{", "if", "(", "current", "instanceof", "RecoveredInitializer", ")", "{", "return", "(", "RecoveredInitializer", ")", "current", ";", "}", "current", "=", "current", ".", "parent", ";", "}", "return", "null", ";", "}", "public", "RecoveredMethod", "enclosingMethod", "(", ")", "{", "RecoveredElement", "current", "=", "this", ";", "while", "(", "current", "!=", "null", ")", "{", "if", "(", "current", "instanceof", "RecoveredMethod", ")", "{", "return", "(", "RecoveredMethod", ")", "current", ";", "}", "current", "=", "current", ".", "parent", ";", "}", "return", "null", ";", "}", "public", "RecoveredType", "enclosingType", "(", ")", "{", "RecoveredElement", "current", "=", "this", ";", "while", "(", "current", "!=", "null", ")", "{", "if", "(", "current", "instanceof", "RecoveredType", ")", "{", "return", "(", "RecoveredType", ")", "current", ";", "}", "current", "=", "current", ".", "parent", ";", "}", "return", "null", ";", "}", "public", "Parser", "parser", "(", ")", "{", "RecoveredElement", "current", "=", "this", ";", "while", "(", "current", "!=", "null", ")", "{", "if", "(", "current", ".", "recoveringParser", "!=", "null", ")", "{", "return", "current", ".", "recoveringParser", ";", "}", "current", "=", "current", ".", "parent", ";", "}", "return", "null", ";", "}", "public", "ASTNode", "parseTree", "(", ")", "{", "return", "null", ";", "}", "public", "void", "resetPendingModifiers", "(", ")", "{", "}", "public", "void", "preserveEnclosingBlocks", "(", ")", "{", "RecoveredElement", "current", "=", "this", ";", "while", "(", "current", "!=", "null", ")", "{", "if", "(", "current", "instanceof", "RecoveredBlock", ")", "{", "(", "(", "RecoveredBlock", ")", "current", ")", ".", "preserveContent", "=", "true", ";", "}", "if", "(", "current", "instanceof", "RecoveredType", ")", "{", "(", "(", "RecoveredType", ")", "current", ")", ".", "preserveContent", "=", "true", ";", "}", "current", "=", "current", ".", "parent", ";", "}", "}", "public", "int", "previousAvailableLineEnd", "(", "int", "position", ")", "{", "Parser", "parser", "=", "parser", "(", ")", ";", "if", "(", "parser", "==", "null", ")", "return", "position", ";", "Scanner", "scanner", "=", "parser", ".", "scanner", ";", "if", "(", "scanner", ".", "lineEnds", "==", "null", ")", "return", "position", ";", "int", "index", "=", "Util", ".", "getLineNumber", "(", "position", ",", "scanner", ".", "lineEnds", ",", "0", ",", "scanner", ".", "linePtr", ")", ";", "if", "(", "index", "<", "2", ")", "return", "position", ";", "int", "previousLineEnd", "=", "scanner", ".", "lineEnds", "[", "index", "-", "2", "]", ";", "char", "[", "]", "source", "=", "scanner", ".", "source", ";", "for", "(", "int", "i", "=", "previousLineEnd", "+", "1", ";", "i", "<", "position", ";", "i", "++", ")", "{", "if", "(", "!", "(", "source", "[", "i", "]", "==", "'", "'", "||", "source", "[", "i", "]", "==", "'\\t'", ")", ")", "return", "position", ";", "}", "return", "previousLineEnd", ";", "}", "public", "int", "sourceEnd", "(", ")", "{", "return", "0", ";", "}", "protected", "String", "tabString", "(", "int", "tab", ")", "{", "StringBuffer", "result", "=", "new", "StringBuffer", "(", ")", ";", "for", "(", "int", "i", "=", "tab", ";", "i", ">", "0", ";", "i", "--", ")", "{", "result", ".", "append", "(", "\"", "\"", ")", ";", "}", "return", "result", ".", "toString", "(", ")", ";", "}", "public", "RecoveredElement", "topElement", "(", ")", "{", "RecoveredElement", "current", "=", "this", ";", "while", "(", "current", ".", "parent", "!=", "null", ")", "{", "current", "=", "current", ".", "parent", ";", "}", "return", "current", ";", "}", "public", "String", "toString", "(", ")", "{", "return", "toString", "(", "0", ")", ";", "}", "public", "String", "toString", "(", "int", "tab", ")", "{", "return", "super", ".", "toString", "(", ")", ";", "}", "public", "RecoveredType", "type", "(", ")", "{", "RecoveredElement", "current", "=", "this", ";", "while", "(", "current", "!=", "null", ")", "{", "if", "(", "current", "instanceof", "RecoveredType", ")", "{", "return", "(", "RecoveredType", ")", "current", ";", "}", "current", "=", "current", ".", "parent", ";", "}", "return", "null", ";", "}", "public", "void", "updateBodyStart", "(", "int", "bodyStart", ")", "{", "this", ".", "foundOpeningBrace", "=", "true", ";", "}", "public", "void", "updateFromParserState", "(", ")", "{", "}", "public", "RecoveredElement", "updateOnClosingBrace", "(", "int", "braceStart", ",", "int", "braceEnd", ")", "{", "if", "(", "(", "--", "this", ".", "bracketBalance", "<=", "0", ")", "&&", "(", "this", ".", "parent", "!=", "null", ")", ")", "{", "this", ".", "updateSourceEndIfNecessary", "(", "braceStart", ",", "braceEnd", ")", ";", "return", "this", ".", "parent", ";", "}", "return", "this", ";", "}", "public", "RecoveredElement", "updateOnOpeningBrace", "(", "int", "braceStart", ",", "int", "braceEnd", ")", "{", "if", "(", "this", ".", "bracketBalance", "++", "==", "0", ")", "{", "updateBodyStart", "(", "braceEnd", "+", "1", ")", ";", "return", "this", ";", "}", "return", "null", ";", "}", "public", "void", "updateParseTree", "(", ")", "{", "}", "public", "void", "updateSourceEndIfNecessary", "(", "int", "braceStart", ",", "int", "braceEnd", ")", "{", "}", "public", "void", "updateSourceEndIfNecessary", "(", "int", "sourceEnd", ")", "{", "this", ".", "updateSourceEndIfNecessary", "(", "sourceEnd", "+", "1", ",", "sourceEnd", ")", ";", "}", "}", "</s>" ]
3,351
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "public", "interface", "JavadocTagConstants", "{", "public", "static", "final", "char", "[", "]", "TAG_DEPRECATED", "=", "\"deprecated\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "char", "[", "]", "TAG_PARAM", "=", "\"param\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "char", "[", "]", "TAG_RETURN", "=", "\"return\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "char", "[", "]", "TAG_THROWS", "=", "\"throws\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "char", "[", "]", "TAG_EXCEPTION", "=", "\"exception\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "char", "[", "]", "TAG_SEE", "=", "\"see\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "char", "[", "]", "TAG_LINK", "=", "\"link\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "char", "[", "]", "TAG_LINKPLAIN", "=", "\"linkplain\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "char", "[", "]", "TAG_INHERITDOC", "=", "\"inheritDoc\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "char", "[", "]", "TAG_VALUE", "=", "\"value\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "char", "[", "]", "TAG_AUTHOR", "=", "\"author\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "char", "[", "]", "TAG_CODE", "=", "\"code\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "char", "[", "]", "TAG_DOC_ROOT", "=", "\"docRoot\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "char", "[", "]", "TAG_LITERAL", "=", "\"literal\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "char", "[", "]", "TAG_SERIAL", "=", "\"serial\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "char", "[", "]", "TAG_SERIAL_DATA", "=", "\"serialData\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "char", "[", "]", "TAG_SERIAL_FIELD", "=", "\"serialField\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "char", "[", "]", "TAG_SINCE", "=", "\"since\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "char", "[", "]", "TAG_VERSION", "=", "\"version\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "char", "[", "]", "TAG_CATEGORY", "=", "\"category\"", ".", "toCharArray", "(", ")", ";", "public", "static", "final", "int", "TAG_DEPRECATED_LENGTH", "=", "TAG_DEPRECATED", ".", "length", ";", "public", "static", "final", "int", "TAG_PARAM_LENGTH", "=", "TAG_PARAM", ".", "length", ";", "public", "static", "final", "int", "TAG_RETURN_LENGTH", "=", "TAG_RETURN", ".", "length", ";", "public", "static", "final", "int", "TAG_THROWS_LENGTH", "=", "TAG_THROWS", ".", "length", ";", "public", "static", "final", "int", "TAG_EXCEPTION_LENGTH", "=", "TAG_EXCEPTION", ".", "length", ";", "public", "static", "final", "int", "TAG_SEE_LENGTH", "=", "TAG_SEE", ".", "length", ";", "public", "static", "final", "int", "TAG_LINK_LENGTH", "=", "TAG_LINK", ".", "length", ";", "public", "static", "final", "int", "TAG_LINKPLAIN_LENGTH", "=", "TAG_LINKPLAIN", ".", "length", ";", "public", "static", "final", "int", "TAG_INHERITDOC_LENGTH", "=", "TAG_INHERITDOC", ".", "length", ";", "public", "static", "final", "int", "TAG_VALUE_LENGTH", "=", "TAG_VALUE", ".", "length", ";", "public", "static", "final", "int", "TAG_CATEGORY_LENGTH", "=", "TAG_CATEGORY", ".", "length", ";", "public", "static", "final", "int", "TAG_AUTHOR_LENGTH", "=", "TAG_AUTHOR", ".", "length", ";", "public", "static", "final", "int", "TAG_SERIAL_LENGTH", "=", "TAG_SERIAL", ".", "length", ";", "public", "static", "final", "int", "TAG_SERIAL_DATA_LENGTH", "=", "TAG_SERIAL_DATA", ".", "length", ";", "public", "static", "final", "int", "TAG_SERIAL_FIELD_LENGTH", "=", "TAG_SERIAL_FIELD", ".", "length", ";", "public", "static", "final", "int", "TAG_SINCE_LENGTH", "=", "TAG_SINCE", ".", "length", ";", "public", "static", "final", "int", "TAG_VERSION_LENGTH", "=", "TAG_VERSION", ".", "length", ";", "public", "static", "final", "int", "TAG_CODE_LENGTH", "=", "TAG_CODE", ".", "length", ";", "public", "static", "final", "int", "TAG_LITERAL_LENGTH", "=", "TAG_LITERAL", ".", "length", ";", "public", "static", "final", "int", "TAG_DOC_ROOT_LENGTH", "=", "TAG_DOC_ROOT", ".", "length", ";", "public", "static", "final", "int", "NO_TAG_VALUE", "=", "0", ";", "public", "static", "final", "int", "TAG_DEPRECATED_VALUE", "=", "1", ";", "public", "static", "final", "int", "TAG_PARAM_VALUE", "=", "2", ";", "public", "static", "final", "int", "TAG_RETURN_VALUE", "=", "3", ";", "public", "static", "final", "int", "TAG_THROWS_VALUE", "=", "4", ";", "public", "static", "final", "int", "TAG_EXCEPTION_VALUE", "=", "5", ";", "public", "static", "final", "int", "TAG_SEE_VALUE", "=", "6", ";", "public", "static", "final", "int", "TAG_LINK_VALUE", "=", "7", ";", "public", "static", "final", "int", "TAG_LINKPLAIN_VALUE", "=", "8", ";", "public", "static", "final", "int", "TAG_INHERITDOC_VALUE", "=", "9", ";", "public", "static", "final", "int", "TAG_VALUE_VALUE", "=", "10", ";", "public", "static", "final", "int", "TAG_CATEGORY_VALUE", "=", "11", ";", "public", "static", "final", "int", "TAG_AUTHOR_VALUE", "=", "12", ";", "public", "static", "final", "int", "TAG_SERIAL_VALUE", "=", "13", ";", "public", "static", "final", "int", "TAG_SERIAL_DATA_VALUE", "=", "14", ";", "public", "static", "final", "int", "TAG_SERIAL_FIELD_VALUE", "=", "15", ";", "public", "static", "final", "int", "TAG_SINCE_VALUE", "=", "16", ";", "public", "static", "final", "int", "TAG_VERSION_VALUE", "=", "17", ";", "public", "static", "final", "int", "TAG_CODE_VALUE", "=", "18", ";", "public", "static", "final", "int", "TAG_LITERAL_VALUE", "=", "19", ";", "public", "static", "final", "int", "TAG_DOC_ROOT_VALUE", "=", "20", ";", "public", "static", "final", "int", "TAG_OTHERS_VALUE", "=", "100", ";", "public", "static", "final", "char", "[", "]", "[", "]", "TAG_NAMES", "=", "{", "CharOperation", ".", "NO_CHAR", ",", "TAG_DEPRECATED", ",", "TAG_PARAM", ",", "TAG_RETURN", ",", "TAG_THROWS", ",", "TAG_EXCEPTION", ",", "TAG_SEE", ",", "TAG_LINK", ",", "TAG_LINKPLAIN", ",", "TAG_INHERITDOC", ",", "TAG_VALUE", ",", "TAG_CATEGORY", ",", "TAG_AUTHOR", ",", "TAG_SERIAL", ",", "TAG_SERIAL_DATA", ",", "TAG_SERIAL_FIELD", ",", "TAG_SINCE", ",", "TAG_VERSION", ",", "TAG_CODE", ",", "TAG_LITERAL", ",", "TAG_DOC_ROOT", ",", "}", ";", "public", "final", "static", "int", "ORDERED_TAGS_NUMBER", "=", "3", ";", "public", "final", "static", "int", "PARAM_TAG_EXPECTED_ORDER", "=", "0", ";", "public", "final", "static", "int", "THROWS_TAG_EXPECTED_ORDER", "=", "1", ";", "public", "final", "static", "int", "SEE_TAG_EXPECTED_ORDER", "=", "2", ";", "public", "final", "static", "int", "BLOCK_IDX", "=", "0", ";", "public", "final", "static", "int", "INLINE_IDX", "=", "1", ";", "public", "final", "static", "char", "[", "]", "HREF_TAG", "=", "{", "'h'", ",", "'r'", ",", "'e'", ",", "'f'", "}", ";", "public", "static", "final", "char", "[", "]", "[", "]", "[", "]", "BLOCK_TAGS", "=", "{", "{", "TAG_AUTHOR", ",", "TAG_DEPRECATED", ",", "TAG_EXCEPTION", ",", "TAG_PARAM", ",", "TAG_RETURN", ",", "TAG_SEE", ",", "TAG_VERSION", ",", "TAG_CATEGORY", "}", ",", "{", "TAG_SINCE", "}", ",", "{", "TAG_SERIAL", ",", "TAG_SERIAL_DATA", ",", "TAG_SERIAL_FIELD", ",", "TAG_THROWS", "}", ",", "{", "}", ",", "{", "}", ",", "{", "}", ",", "{", "}", ",", "{", "}", ",", "}", ";", "public", "static", "final", "char", "[", "]", "[", "]", "[", "]", "INLINE_TAGS", "=", "{", "{", "}", ",", "{", "}", ",", "{", "TAG_LINK", "}", ",", "{", "TAG_DOC_ROOT", "}", ",", "{", "TAG_INHERITDOC", ",", "TAG_LINKPLAIN", ",", "TAG_VALUE", "}", ",", "{", "TAG_CODE", ",", "TAG_LITERAL", "}", ",", "{", "}", ",", "{", "}", ",", "}", ";", "public", "final", "static", "int", "INLINE_TAGS_LENGTH", "=", "INLINE_TAGS", ".", "length", ";", "public", "final", "static", "int", "BLOCK_TAGS_LENGTH", "=", "BLOCK_TAGS", ".", "length", ";", "public", "final", "static", "int", "ALL_TAGS_LENGTH", "=", "BLOCK_TAGS_LENGTH", "+", "INLINE_TAGS_LENGTH", ";", "public", "final", "static", "short", "TAG_TYPE_NONE", "=", "0", ";", "public", "final", "static", "short", "TAG_TYPE_INLINE", "=", "1", ";", "public", "final", "static", "short", "TAG_TYPE_BLOCK", "=", "2", ";", "public", "static", "final", "short", "[", "]", "JAVADOC_TAG_TYPE", "=", "{", "TAG_TYPE_NONE", ",", "TAG_TYPE_BLOCK", ",", "TAG_TYPE_BLOCK", ",", "TAG_TYPE_BLOCK", ",", "TAG_TYPE_BLOCK", ",", "TAG_TYPE_BLOCK", ",", "TAG_TYPE_BLOCK", ",", "TAG_TYPE_INLINE", ",", "TAG_TYPE_INLINE", ",", "TAG_TYPE_INLINE", ",", "TAG_TYPE_INLINE", ",", "TAG_TYPE_BLOCK", ",", "TAG_TYPE_BLOCK", ",", "TAG_TYPE_BLOCK", ",", "TAG_TYPE_BLOCK", ",", "TAG_TYPE_BLOCK", ",", "TAG_TYPE_BLOCK", ",", "TAG_TYPE_BLOCK", ",", "TAG_TYPE_INLINE", ",", "TAG_TYPE_INLINE", ",", "TAG_TYPE_INLINE", "}", ";", "public", "static", "final", "char", "[", "]", "[", "]", "PACKAGE_TAGS", "=", "{", "TAG_SEE", ",", "TAG_SINCE", ",", "TAG_SERIAL", ",", "TAG_AUTHOR", ",", "TAG_VERSION", ",", "TAG_CATEGORY", ",", "TAG_LINK", ",", "TAG_LINKPLAIN", ",", "TAG_DOC_ROOT", ",", "TAG_VALUE", ",", "}", ";", "public", "static", "final", "char", "[", "]", "[", "]", "COMPILATION_UNIT_TAGS", "=", "{", "}", ";", "public", "static", "final", "char", "[", "]", "[", "]", "CLASS_TAGS", "=", "{", "TAG_SEE", ",", "TAG_SINCE", ",", "TAG_DEPRECATED", ",", "TAG_SERIAL", ",", "TAG_AUTHOR", ",", "TAG_VERSION", ",", "TAG_PARAM", ",", "TAG_CATEGORY", ",", "TAG_LINK", ",", "TAG_LINKPLAIN", ",", "TAG_DOC_ROOT", ",", "TAG_VALUE", ",", "TAG_CODE", ",", "TAG_LITERAL", "}", ";", "public", "static", "final", "char", "[", "]", "[", "]", "FIELD_TAGS", "=", "{", "TAG_SEE", ",", "TAG_SINCE", ",", "TAG_DEPRECATED", ",", "TAG_SERIAL", ",", "TAG_SERIAL_FIELD", ",", "TAG_CATEGORY", ",", "TAG_LINK", ",", "TAG_LINKPLAIN", ",", "TAG_DOC_ROOT", ",", "TAG_VALUE", ",", "TAG_CODE", ",", "TAG_LITERAL", "}", ";", "public", "static", "final", "char", "[", "]", "[", "]", "METHOD_TAGS", "=", "{", "TAG_SEE", ",", "TAG_SINCE", ",", "TAG_DEPRECATED", ",", "TAG_PARAM", ",", "TAG_RETURN", ",", "TAG_THROWS", ",", "TAG_EXCEPTION", ",", "TAG_SERIAL_DATA", ",", "TAG_CATEGORY", ",", "TAG_LINK", ",", "TAG_LINKPLAIN", ",", "TAG_INHERITDOC", ",", "TAG_DOC_ROOT", ",", "TAG_VALUE", ",", "TAG_CODE", ",", "TAG_LITERAL", "}", ";", "}", "</s>" ]
3,352
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Annotation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Expression", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "MarkerAnnotation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "MemberValuePair", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "NormalAnnotation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "SingleMemberAnnotation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "SingleNameReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeReference", ";", "public", "class", "RecoveredAnnotation", "extends", "RecoveredElement", "{", "public", "static", "final", "int", "MARKER", "=", "0", ";", "public", "static", "final", "int", "NORMAL", "=", "1", ";", "public", "static", "final", "int", "SINGLE_MEMBER", "=", "2", ";", "private", "int", "kind", ";", "private", "int", "identifierPtr", ";", "private", "int", "identifierLengthPtr", ";", "private", "int", "sourceStart", ";", "public", "boolean", "hasPendingMemberValueName", ";", "public", "int", "memberValuPairEqualEnd", "=", "-", "1", ";", "public", "Annotation", "annotation", ";", "public", "RecoveredAnnotation", "(", "int", "identifierPtr", ",", "int", "identifierLengthPtr", ",", "int", "sourceStart", ",", "RecoveredElement", "parent", ",", "int", "bracketBalance", ")", "{", "super", "(", "parent", ",", "bracketBalance", ")", ";", "this", ".", "kind", "=", "MARKER", ";", "this", ".", "identifierPtr", "=", "identifierPtr", ";", "this", ".", "identifierLengthPtr", "=", "identifierLengthPtr", ";", "this", ".", "sourceStart", "=", "sourceStart", ";", "}", "public", "RecoveredElement", "add", "(", "TypeDeclaration", "typeDeclaration", ",", "int", "bracketBalanceValue", ")", "{", "if", "(", "this", ".", "annotation", "==", "null", "&&", "(", "typeDeclaration", ".", "bits", "&", "ASTNode", ".", "IsAnonymousType", ")", "!=", "0", ")", "{", "return", "this", ";", "}", "return", "super", ".", "add", "(", "typeDeclaration", ",", "bracketBalanceValue", ")", ";", "}", "public", "RecoveredElement", "addAnnotationName", "(", "int", "identPtr", ",", "int", "identLengthPtr", ",", "int", "annotationStart", ",", "int", "bracketBalanceValue", ")", "{", "RecoveredAnnotation", "element", "=", "new", "RecoveredAnnotation", "(", "identPtr", ",", "identLengthPtr", ",", "annotationStart", ",", "this", ",", "bracketBalanceValue", ")", ";", "return", "element", ";", "}", "public", "RecoveredElement", "addAnnotation", "(", "Annotation", "annot", ",", "int", "index", ")", "{", "this", ".", "annotation", "=", "annot", ";", "if", "(", "this", ".", "parent", "!=", "null", ")", "return", "this", ".", "parent", ";", "return", "this", ";", "}", "public", "void", "updateFromParserState", "(", ")", "{", "Parser", "parser", "=", "parser", "(", ")", ";", "if", "(", "this", ".", "annotation", "==", "null", "&&", "this", ".", "identifierPtr", "<=", "parser", ".", "identifierPtr", ")", "{", "Annotation", "annot", "=", "null", ";", "boolean", "needUpdateRParenPos", "=", "false", ";", "MemberValuePair", "pendingMemberValueName", "=", "null", ";", "if", "(", "this", ".", "hasPendingMemberValueName", "&&", "this", ".", "identifierPtr", "<", "parser", ".", "identifierPtr", ")", "{", "char", "[", "]", "memberValueName", "=", "parser", ".", "identifierStack", "[", "this", ".", "identifierPtr", "+", "1", "]", ";", "long", "pos", "=", "parser", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "+", "1", "]", ";", "int", "start", "=", "(", "int", ")", "(", "pos", ">>>", "32", ")", ";", "int", "end", "=", "(", "int", ")", "pos", ";", "int", "valueEnd", "=", "this", ".", "memberValuPairEqualEnd", ">", "-", "1", "?", "this", ".", "memberValuPairEqualEnd", ":", "end", ";", "SingleNameReference", "fakeExpression", "=", "new", "SingleNameReference", "(", "RecoveryScanner", ".", "FAKE_IDENTIFIER", ",", "(", "(", "(", "long", ")", "valueEnd", "+", "1", ")", "<<", "32", ")", "+", "(", "valueEnd", ")", ")", ";", "pendingMemberValueName", "=", "new", "MemberValuePair", "(", "memberValueName", ",", "start", ",", "end", ",", "fakeExpression", ")", ";", "}", "parser", ".", "identifierPtr", "=", "this", ".", "identifierPtr", ";", "parser", ".", "identifierLengthPtr", "=", "this", ".", "identifierLengthPtr", ";", "TypeReference", "typeReference", "=", "parser", ".", "getAnnotationType", "(", ")", ";", "switch", "(", "this", ".", "kind", ")", "{", "case", "NORMAL", ":", "if", "(", "parser", ".", "astPtr", ">", "-", "1", "&&", "parser", ".", "astStack", "[", "parser", ".", "astPtr", "]", "instanceof", "MemberValuePair", ")", "{", "MemberValuePair", "[", "]", "memberValuePairs", "=", "null", ";", "int", "argLength", "=", "parser", ".", "astLengthStack", "[", "parser", ".", "astLengthPtr", "]", ";", "int", "argStart", "=", "parser", ".", "astPtr", "-", "argLength", "+", "1", ";", "if", "(", "argLength", ">", "0", ")", "{", "int", "annotationEnd", ";", "if", "(", "pendingMemberValueName", "!=", "null", ")", "{", "memberValuePairs", "=", "new", "MemberValuePair", "[", "argLength", "+", "1", "]", ";", "System", ".", "arraycopy", "(", "parser", ".", "astStack", ",", "argStart", ",", "memberValuePairs", ",", "0", ",", "argLength", ")", ";", "parser", ".", "astLengthPtr", "--", ";", "parser", ".", "astPtr", "-=", "argLength", ";", "memberValuePairs", "[", "argLength", "]", "=", "pendingMemberValueName", ";", "annotationEnd", "=", "pendingMemberValueName", ".", "sourceEnd", ";", "}", "else", "{", "memberValuePairs", "=", "new", "MemberValuePair", "[", "argLength", "]", ";", "System", ".", "arraycopy", "(", "parser", ".", "astStack", ",", "argStart", ",", "memberValuePairs", ",", "0", ",", "argLength", ")", ";", "parser", ".", "astLengthPtr", "--", ";", "parser", ".", "astPtr", "-=", "argLength", ";", "MemberValuePair", "lastMemberValuePair", "=", "memberValuePairs", "[", "memberValuePairs", ".", "length", "-", "1", "]", ";", "annotationEnd", "=", "lastMemberValuePair", ".", "value", "!=", "null", "?", "lastMemberValuePair", ".", "value", "instanceof", "Annotation", "?", "(", "(", "Annotation", ")", "lastMemberValuePair", ".", "value", ")", ".", "declarationSourceEnd", ":", "lastMemberValuePair", ".", "value", ".", "sourceEnd", ":", "lastMemberValuePair", ".", "sourceEnd", ";", "}", "NormalAnnotation", "normalAnnotation", "=", "new", "NormalAnnotation", "(", "typeReference", ",", "this", ".", "sourceStart", ")", ";", "normalAnnotation", ".", "memberValuePairs", "=", "memberValuePairs", ";", "normalAnnotation", ".", "declarationSourceEnd", "=", "annotationEnd", ";", "normalAnnotation", ".", "bits", "|=", "ASTNode", ".", "IsRecovered", ";", "annot", "=", "normalAnnotation", ";", "needUpdateRParenPos", "=", "true", ";", "}", "}", "break", ";", "case", "SINGLE_MEMBER", ":", "if", "(", "parser", ".", "expressionPtr", ">", "-", "1", ")", "{", "Expression", "memberValue", "=", "parser", ".", "expressionStack", "[", "parser", ".", "expressionPtr", "--", "]", ";", "SingleMemberAnnotation", "singleMemberAnnotation", "=", "new", "SingleMemberAnnotation", "(", "typeReference", ",", "this", ".", "sourceStart", ")", ";", "singleMemberAnnotation", ".", "memberValue", "=", "memberValue", ";", "singleMemberAnnotation", ".", "declarationSourceEnd", "=", "memberValue", ".", "sourceEnd", ";", "singleMemberAnnotation", ".", "bits", "|=", "ASTNode", ".", "IsRecovered", ";", "annot", "=", "singleMemberAnnotation", ";", "needUpdateRParenPos", "=", "true", ";", "}", "break", ";", "}", "if", "(", "!", "needUpdateRParenPos", ")", "{", "if", "(", "pendingMemberValueName", "!=", "null", ")", "{", "NormalAnnotation", "normalAnnotation", "=", "new", "NormalAnnotation", "(", "typeReference", ",", "this", ".", "sourceStart", ")", ";", "normalAnnotation", ".", "memberValuePairs", "=", "new", "MemberValuePair", "[", "]", "{", "pendingMemberValueName", "}", ";", "normalAnnotation", ".", "declarationSourceEnd", "=", "pendingMemberValueName", ".", "value", ".", "sourceEnd", ";", "normalAnnotation", ".", "bits", "|=", "ASTNode", ".", "IsRecovered", ";", "annot", "=", "normalAnnotation", ";", "}", "else", "{", "MarkerAnnotation", "markerAnnotation", "=", "new", "MarkerAnnotation", "(", "typeReference", ",", "this", ".", "sourceStart", ")", ";", "markerAnnotation", ".", "declarationSourceEnd", "=", "markerAnnotation", ".", "sourceEnd", ";", "markerAnnotation", ".", "bits", "|=", "ASTNode", ".", "IsRecovered", ";", "annot", "=", "markerAnnotation", ";", "}", "}", "parser", ".", "currentElement", "=", "addAnnotation", "(", "annot", ",", "this", ".", "identifierPtr", ")", ";", "parser", ".", "annotationRecoveryCheckPoint", "(", "annot", ".", "sourceStart", ",", "annot", ".", "declarationSourceEnd", ")", ";", "if", "(", "this", ".", "parent", "!=", "null", ")", "{", "this", ".", "parent", ".", "updateFromParserState", "(", ")", ";", "}", "}", "}", "public", "ASTNode", "parseTree", "(", ")", "{", "return", "this", ".", "annotation", ";", "}", "public", "void", "resetPendingModifiers", "(", ")", "{", "if", "(", "this", ".", "parent", "!=", "null", ")", "this", ".", "parent", ".", "resetPendingModifiers", "(", ")", ";", "}", "public", "void", "setKind", "(", "int", "kind", ")", "{", "this", ".", "kind", "=", "kind", ";", "}", "public", "int", "sourceEnd", "(", ")", "{", "if", "(", "this", ".", "annotation", "==", "null", ")", "{", "Parser", "parser", "=", "parser", "(", ")", ";", "if", "(", "this", ".", "identifierPtr", "<", "parser", ".", "identifierPositionStack", ".", "length", ")", "{", "return", "(", "int", ")", "parser", ".", "identifierPositionStack", "[", "this", ".", "identifierPtr", "]", ";", "}", "else", "{", "return", "this", ".", "sourceStart", ";", "}", "}", "return", "this", ".", "annotation", ".", "declarationSourceEnd", ";", "}", "public", "String", "toString", "(", "int", "tab", ")", "{", "if", "(", "this", ".", "annotation", "!=", "null", ")", "{", "return", "tabString", "(", "tab", ")", "+", "\"\"", "+", "this", ".", "annotation", ".", "print", "(", "tab", "+", "1", ",", "new", "StringBuffer", "(", "10", ")", ")", ";", "}", "else", "{", "return", "tabString", "(", "tab", ")", "+", "\"\"", "+", "this", ".", "identifierPtr", "+", "\"\"", "+", "this", ".", "identifierLengthPtr", "+", "\"n\"", ";", "}", "}", "public", "Annotation", "updatedAnnotationReference", "(", ")", "{", "return", "this", ".", "annotation", ";", "}", "public", "RecoveredElement", "updateOnClosingBrace", "(", "int", "braceStart", ",", "int", "braceEnd", ")", "{", "if", "(", "this", ".", "bracketBalance", ">", "0", ")", "{", "this", ".", "bracketBalance", "--", ";", "return", "this", ";", "}", "if", "(", "this", ".", "parent", "!=", "null", ")", "{", "return", "this", ".", "parent", ".", "updateOnClosingBrace", "(", "braceStart", ",", "braceEnd", ")", ";", "}", "return", "this", ";", "}", "public", "void", "updateParseTree", "(", ")", "{", "updatedAnnotationReference", "(", ")", ";", "}", "}", "</s>" ]
3,353
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ";", "import", "java", ".", "io", ".", "PrintWriter", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "CompilationUnitDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ".", "ICompilationUnit", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "public", "abstract", "class", "AbstractAnnotationProcessorManager", "{", "public", "abstract", "void", "configure", "(", "Object", "batchCompiler", ",", "String", "[", "]", "options", ")", ";", "public", "abstract", "void", "configureFromPlatform", "(", "Compiler", "compiler", ",", "Object", "compilationUnitLocator", ",", "Object", "javaProject", ")", ";", "public", "abstract", "void", "setOut", "(", "PrintWriter", "out", ")", ";", "public", "abstract", "void", "setErr", "(", "PrintWriter", "err", ")", ";", "public", "abstract", "ICompilationUnit", "[", "]", "getNewUnits", "(", ")", ";", "public", "abstract", "ReferenceBinding", "[", "]", "getNewClassFiles", "(", ")", ";", "public", "abstract", "ICompilationUnit", "[", "]", "getDeletedUnits", "(", ")", ";", "public", "abstract", "void", "reset", "(", ")", ";", "public", "abstract", "void", "processAnnotations", "(", "CompilationUnitDeclaration", "[", "]", "units", ",", "ReferenceBinding", "[", "]", "referenceBindings", ",", "boolean", "isLastRound", ")", ";", "public", "abstract", "void", "setProcessors", "(", "Object", "[", "]", "processors", ")", ";", "}", "</s>" ]
3,354
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ";", "import", "java", ".", "io", ".", "IOException", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CategorizedProblem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "CompilationResult", ";", "public", "class", "AbortCompilationUnit", "extends", "AbortCompilation", "{", "private", "static", "final", "long", "serialVersionUID", "=", "-", "4253893529982226734L", ";", "public", "String", "encoding", ";", "public", "AbortCompilationUnit", "(", "CompilationResult", "compilationResult", ",", "CategorizedProblem", "problem", ")", "{", "super", "(", "compilationResult", ",", "problem", ")", ";", "}", "public", "AbortCompilationUnit", "(", "CompilationResult", "compilationResult", ",", "IOException", "exception", ",", "String", "encoding", ")", "{", "super", "(", "compilationResult", ",", "exception", ")", ";", "this", ".", "encoding", "=", "encoding", ";", "}", "}", "</s>" ]
3,355
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ";", "public", "class", "ShouldNotImplement", "extends", "RuntimeException", "{", "private", "static", "final", "long", "serialVersionUID", "=", "2669970476264283736L", ";", "public", "ShouldNotImplement", "(", "String", "message", ")", "{", "super", "(", "message", ")", ";", "}", "}", "</s>" ]
3,356
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ";", "import", "java", ".", "io", ".", "CharConversionException", ";", "import", "java", ".", "io", ".", "PrintWriter", ";", "import", "java", ".", "io", ".", "StringWriter", ";", "import", "java", ".", "util", ".", "Iterator", ";", "import", "java", ".", "util", ".", "List", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CategorizedProblem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "IProblem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "InvalidInputException", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "CompilationResult", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "IErrorHandlingPolicy", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "IProblemFactory", ";", "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", ".", "AllocationExpression", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Annotation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "AnnotationMethodDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Argument", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ArrayAllocationExpression", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ArrayQualifiedTypeReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ArrayReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ArrayTypeReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Assignment", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "BinaryExpression", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Block", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "BranchStatement", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "CaseStatement", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "CastExpression", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "CompilationUnitDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "CompoundAssignment", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ConditionalExpression", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ConstructorDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "EqualExpression", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ExplicitConstructorCall", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Expression", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "FakedTrackingVariable", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "FieldDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "FieldReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ImportReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Initializer", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "InstanceOfExpression", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "LabeledStatement", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Literal", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "LocalDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "MemberValuePair", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "MessageSend", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "MethodDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "NameReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ParameterizedQualifiedTypeReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ParameterizedSingleTypeReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "QualifiedAllocationExpression", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "QualifiedNameReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "QualifiedTypeReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Reference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ReturnStatement", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "SingleNameReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Statement", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "SwitchStatement", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ThisReference", ";", "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", ".", "ast", ".", "UnaryExpression", ";", "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", ".", "ICompilationUnit", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "CompilerOptions", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "ReferenceContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ArrayBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Binding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ExtraCompilerModifiers", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "FieldBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "InvocationSite", ";", "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", ".", "PackageBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ParameterizedGenericMethodBinding", ";", "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", ".", "ReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Scope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "SourceTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "SyntheticArgumentBinding", ";", "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", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeVariableBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "WildcardBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "JavadocTagConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "Parser", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "RecoveryScanner", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "Scanner", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "TerminalTokens", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Messages", ";", "public", "class", "ProblemReporter", "extends", "ProblemHandler", "{", "public", "ReferenceContext", "referenceContext", ";", "private", "Scanner", "positionScanner", ";", "private", "final", "static", "byte", "FIELD_ACCESS", "=", "0x4", ",", "CONSTRUCTOR_ACCESS", "=", "0x8", ",", "METHOD_ACCESS", "=", "0xC", ";", "public", "ProblemReporter", "(", "IErrorHandlingPolicy", "policy", ",", "CompilerOptions", "options", ",", "IProblemFactory", "problemFactory", ")", "{", "super", "(", "policy", ",", "options", ",", "problemFactory", ")", ";", "}", "private", "static", "int", "getElaborationId", "(", "int", "leadProblemId", ",", "byte", "elaborationVariant", ")", "{", "return", "leadProblemId", "<<", "8", "|", "elaborationVariant", ";", "}", "public", "static", "int", "getIrritant", "(", "int", "problemID", ")", "{", "switch", "(", "problemID", ")", "{", "case", "IProblem", ".", "MaskedCatch", ":", "return", "CompilerOptions", ".", "MaskedCatchBlock", ";", "case", "IProblem", ".", "UnusedImport", ":", "return", "CompilerOptions", ".", "UnusedImport", ";", "case", "IProblem", ".", "MethodButWithConstructorName", ":", "return", "CompilerOptions", ".", "MethodWithConstructorName", ";", "case", "IProblem", ".", "OverridingNonVisibleMethod", ":", "return", "CompilerOptions", ".", "OverriddenPackageDefaultMethod", ";", "case", "IProblem", ".", "IncompatibleReturnTypeForNonInheritedInterfaceMethod", ":", "case", "IProblem", ".", "IncompatibleExceptionInThrowsClauseForNonInheritedInterfaceMethod", ":", "return", "CompilerOptions", ".", "IncompatibleNonInheritedInterfaceMethod", ";", "case", "IProblem", ".", "OverridingDeprecatedMethod", ":", "case", "IProblem", ".", "UsingDeprecatedType", ":", "case", "IProblem", ".", "UsingDeprecatedMethod", ":", "case", "IProblem", ".", "UsingDeprecatedConstructor", ":", "case", "IProblem", ".", "UsingDeprecatedField", ":", "return", "CompilerOptions", ".", "UsingDeprecatedAPI", ";", "case", "IProblem", ".", "LocalVariableIsNeverUsed", ":", "return", "CompilerOptions", ".", "UnusedLocalVariable", ";", "case", "IProblem", ".", "ArgumentIsNeverUsed", ":", "return", "CompilerOptions", ".", "UnusedArgument", ";", "case", "IProblem", ".", "NoImplicitStringConversionForCharArrayExpression", ":", "return", "CompilerOptions", ".", "NoImplicitStringConversion", ";", "case", "IProblem", ".", "NeedToEmulateFieldReadAccess", ":", "case", "IProblem", ".", "NeedToEmulateFieldWriteAccess", ":", "case", "IProblem", ".", "NeedToEmulateMethodAccess", ":", "case", "IProblem", ".", "NeedToEmulateConstructorAccess", ":", "return", "CompilerOptions", ".", "AccessEmulation", ";", "case", "IProblem", ".", "NonExternalizedStringLiteral", ":", "case", "IProblem", ".", "UnnecessaryNLSTag", ":", "return", "CompilerOptions", ".", "NonExternalizedString", ";", "case", "IProblem", ".", "UseAssertAsAnIdentifier", ":", "return", "CompilerOptions", ".", "AssertUsedAsAnIdentifier", ";", "case", "IProblem", ".", "UseEnumAsAnIdentifier", ":", "return", "CompilerOptions", ".", "EnumUsedAsAnIdentifier", ";", "case", "IProblem", ".", "NonStaticAccessToStaticMethod", ":", "case", "IProblem", ".", "NonStaticAccessToStaticField", ":", "return", "CompilerOptions", ".", "NonStaticAccessToStatic", ";", "case", "IProblem", ".", "IndirectAccessToStaticMethod", ":", "case", "IProblem", ".", "IndirectAccessToStaticField", ":", "case", "IProblem", ".", "IndirectAccessToStaticType", ":", "return", "CompilerOptions", ".", "IndirectStaticAccess", ";", "case", "IProblem", ".", "AssignmentHasNoEffect", ":", "return", "CompilerOptions", ".", "NoEffectAssignment", ";", "case", "IProblem", ".", "UnusedPrivateConstructor", ":", "case", "IProblem", ".", "UnusedPrivateMethod", ":", "case", "IProblem", ".", "UnusedPrivateField", ":", "case", "IProblem", ".", "UnusedPrivateType", ":", "return", "CompilerOptions", ".", "UnusedPrivateMember", ";", "case", "IProblem", ".", "LocalVariableHidingLocalVariable", ":", "case", "IProblem", ".", "LocalVariableHidingField", ":", "case", "IProblem", ".", "ArgumentHidingLocalVariable", ":", "case", "IProblem", ".", "ArgumentHidingField", ":", "return", "CompilerOptions", ".", "LocalVariableHiding", ";", "case", "IProblem", ".", "FieldHidingLocalVariable", ":", "case", "IProblem", ".", "FieldHidingField", ":", "return", "CompilerOptions", ".", "FieldHiding", ";", "case", "IProblem", ".", "TypeParameterHidingType", ":", "case", "IProblem", ".", "TypeHidingTypeParameterFromType", ":", "case", "IProblem", ".", "TypeHidingTypeParameterFromMethod", ":", "case", "IProblem", ".", "TypeHidingType", ":", "return", "CompilerOptions", ".", "TypeHiding", ";", "case", "IProblem", ".", "PossibleAccidentalBooleanAssignment", ":", "return", "CompilerOptions", ".", "AccidentalBooleanAssign", ";", "case", "IProblem", ".", "SuperfluousSemicolon", ":", "case", "IProblem", ".", "EmptyControlFlowStatement", ":", "return", "CompilerOptions", ".", "EmptyStatement", ";", "case", "IProblem", ".", "UndocumentedEmptyBlock", ":", "return", "CompilerOptions", ".", "UndocumentedEmptyBlock", ";", "case", "IProblem", ".", "UnnecessaryCast", ":", "case", "IProblem", ".", "UnnecessaryInstanceof", ":", "return", "CompilerOptions", ".", "UnnecessaryTypeCheck", ";", "case", "IProblem", ".", "FinallyMustCompleteNormally", ":", "return", "CompilerOptions", ".", "FinallyBlockNotCompleting", ";", "case", "IProblem", ".", "UnusedMethodDeclaredThrownException", ":", "case", "IProblem", ".", "UnusedConstructorDeclaredThrownException", ":", "return", "CompilerOptions", ".", "UnusedDeclaredThrownException", ";", "case", "IProblem", ".", "UnqualifiedFieldAccess", ":", "return", "CompilerOptions", ".", "UnqualifiedFieldAccess", ";", "case", "IProblem", ".", "UnnecessaryElse", ":", "return", "CompilerOptions", ".", "UnnecessaryElse", ";", "case", "IProblem", ".", "UnsafeRawConstructorInvocation", ":", "case", "IProblem", ".", "UnsafeRawMethodInvocation", ":", "case", "IProblem", ".", "UnsafeTypeConversion", ":", "case", "IProblem", ".", "UnsafeRawFieldAssignment", ":", "case", "IProblem", ".", "UnsafeGenericCast", ":", "case", "IProblem", ".", "UnsafeReturnTypeOverride", ":", "case", "IProblem", ".", "UnsafeRawGenericMethodInvocation", ":", "case", "IProblem", ".", "UnsafeRawGenericConstructorInvocation", ":", "case", "IProblem", ".", "UnsafeGenericArrayForVarargs", ":", "case", "IProblem", ".", "PotentialHeapPollutionFromVararg", ":", "return", "CompilerOptions", ".", "UncheckedTypeOperation", ";", "case", "IProblem", ".", "RawTypeReference", ":", "return", "CompilerOptions", ".", "RawTypeReference", ";", "case", "IProblem", ".", "MissingOverrideAnnotation", ":", "case", "IProblem", ".", "MissingOverrideAnnotationForInterfaceMethodImplementation", ":", "return", "CompilerOptions", ".", "MissingOverrideAnnotation", ";", "case", "IProblem", ".", "FieldMissingDeprecatedAnnotation", ":", "case", "IProblem", ".", "MethodMissingDeprecatedAnnotation", ":", "case", "IProblem", ".", "TypeMissingDeprecatedAnnotation", ":", "return", "CompilerOptions", ".", "MissingDeprecatedAnnotation", ";", "case", "IProblem", ".", "FinalBoundForTypeVariable", ":", "return", "CompilerOptions", ".", "FinalParameterBound", ";", "case", "IProblem", ".", "MissingSerialVersion", ":", "return", "CompilerOptions", ".", "MissingSerialVersion", ";", "case", "IProblem", ".", "ForbiddenReference", ":", "return", "CompilerOptions", ".", "ForbiddenReference", ";", "case", "IProblem", ".", "DiscouragedReference", ":", "return", "CompilerOptions", ".", "DiscouragedReference", ";", "case", "IProblem", ".", "MethodVarargsArgumentNeedCast", ":", "case", "IProblem", ".", "ConstructorVarargsArgumentNeedCast", ":", "return", "CompilerOptions", ".", "VarargsArgumentNeedCast", ";", "case", "IProblem", ".", "NullLocalVariableReference", ":", "return", "CompilerOptions", ".", "NullReference", ";", "case", "IProblem", ".", "PotentialNullLocalVariableReference", ":", "case", "IProblem", ".", "PotentialNullMessageSendReference", ":", "return", "CompilerOptions", ".", "PotentialNullReference", ";", "case", "IProblem", ".", "RedundantLocalVariableNullAssignment", ":", "case", "IProblem", ".", "RedundantNullCheckOnNonNullLocalVariable", ":", "case", "IProblem", ".", "RedundantNullCheckOnNullLocalVariable", ":", "case", "IProblem", ".", "NonNullLocalVariableComparisonYieldsFalse", ":", "case", "IProblem", ".", "NullLocalVariableComparisonYieldsFalse", ":", "case", "IProblem", ".", "NullLocalVariableInstanceofYieldsFalse", ":", "case", "IProblem", ".", "RedundantNullCheckOnNonNullMessageSend", ":", "case", "IProblem", ".", "RedundantNullCheckOnSpecdNonNullLocalVariable", ":", "case", "IProblem", ".", "SpecdNonNullLocalVariableComparisonYieldsFalse", ":", "return", "CompilerOptions", ".", "RedundantNullCheck", ";", "case", "IProblem", ".", "RequiredNonNullButProvidedNull", ":", "case", "IProblem", ".", "RequiredNonNullButProvidedSpecdNullable", ":", "case", "IProblem", ".", "IllegalReturnNullityRedefinition", ":", "case", "IProblem", ".", "IllegalRedefinitionToNonNullParameter", ":", "case", "IProblem", ".", "IllegalDefinitionToNonNullParameter", ":", "case", "IProblem", ".", "ParameterLackingNonNullAnnotation", ":", "case", "IProblem", ".", "ParameterLackingNullableAnnotation", ":", "case", "IProblem", ".", "CannotImplementIncompatibleNullness", ":", "return", "CompilerOptions", ".", "NullSpecViolation", ";", "case", "IProblem", ".", "RequiredNonNullButProvidedPotentialNull", ":", "return", "CompilerOptions", ".", "NullAnnotationInferenceConflict", ";", "case", "IProblem", ".", "RequiredNonNullButProvidedUnknown", ":", "return", "CompilerOptions", ".", "NullUncheckedConversion", ";", "case", "IProblem", ".", "RedundantNullAnnotation", ":", "case", "IProblem", ".", "RedundantNullDefaultAnnotation", ":", "case", "IProblem", ".", "RedundantNullDefaultAnnotationPackage", ":", "case", "IProblem", ".", "RedundantNullDefaultAnnotationType", ":", "case", "IProblem", ".", "RedundantNullDefaultAnnotationMethod", ":", "return", "CompilerOptions", ".", "RedundantNullAnnotation", ";", "case", "IProblem", ".", "BoxingConversion", ":", "case", "IProblem", ".", "UnboxingConversion", ":", "return", "CompilerOptions", ".", "AutoBoxing", ";", "case", "IProblem", ".", "MissingEnumConstantCase", ":", "case", "IProblem", ".", "MissingEnumConstantCaseDespiteDefault", ":", "return", "CompilerOptions", ".", "MissingEnumConstantCase", ";", "case", "IProblem", ".", "MissingDefaultCase", ":", "case", "IProblem", ".", "MissingEnumDefaultCase", ":", "return", "CompilerOptions", ".", "MissingDefaultCase", ";", "case", "IProblem", ".", "AnnotationTypeUsedAsSuperInterface", ":", "return", "CompilerOptions", ".", "AnnotationSuperInterface", ";", "case", "IProblem", ".", "UnhandledWarningToken", ":", "return", "CompilerOptions", ".", "UnhandledWarningToken", ";", "case", "IProblem", ".", "UnusedWarningToken", ":", "return", "CompilerOptions", ".", "UnusedWarningToken", ";", "case", "IProblem", ".", "UnusedLabel", ":", "return", "CompilerOptions", ".", "UnusedLabel", ";", "case", "IProblem", ".", "JavadocUnexpectedTag", ":", "case", "IProblem", ".", "JavadocDuplicateTag", ":", "case", "IProblem", ".", "JavadocDuplicateReturnTag", ":", "case", "IProblem", ".", "JavadocInvalidThrowsClass", ":", "case", "IProblem", ".", "JavadocInvalidSeeReference", ":", "case", "IProblem", ".", "JavadocInvalidParamTagName", ":", "case", "IProblem", ".", "JavadocInvalidParamTagTypeParameter", ":", "case", "IProblem", ".", "JavadocMalformedSeeReference", ":", "case", "IProblem", ".", "JavadocInvalidSeeHref", ":", "case", "IProblem", ".", "JavadocInvalidSeeArgs", ":", "case", "IProblem", ".", "JavadocInvalidTag", ":", "case", "IProblem", ".", "JavadocUnterminatedInlineTag", ":", "case", "IProblem", ".", "JavadocMissingHashCharacter", ":", "case", "IProblem", ".", "JavadocEmptyReturnTag", ":", "case", "IProblem", ".", "JavadocUnexpectedText", ":", "case", "IProblem", ".", "JavadocInvalidParamName", ":", "case", "IProblem", ".", "JavadocDuplicateParamName", ":", "case", "IProblem", ".", "JavadocMissingParamName", ":", "case", "IProblem", ".", "JavadocMissingIdentifier", ":", "case", "IProblem", ".", "JavadocInvalidMemberTypeQualification", ":", "case", "IProblem", ".", "JavadocInvalidThrowsClassName", ":", "case", "IProblem", ".", "JavadocDuplicateThrowsClassName", ":", "case", "IProblem", ".", "JavadocMissingThrowsClassName", ":", "case", "IProblem", ".", "JavadocMissingSeeReference", ":", "case", "IProblem", ".", "JavadocInvalidValueReference", ":", "case", "IProblem", ".", "JavadocUndefinedField", ":", "case", "IProblem", ".", "JavadocAmbiguousField", ":", "case", "IProblem", ".", "JavadocUndefinedConstructor", ":", "case", "IProblem", ".", "JavadocAmbiguousConstructor", ":", "case", "IProblem", ".", "JavadocUndefinedMethod", ":", "case", "IProblem", ".", "JavadocAmbiguousMethod", ":", "case", "IProblem", ".", "JavadocAmbiguousMethodReference", ":", "case", "IProblem", ".", "JavadocParameterMismatch", ":", "case", "IProblem", ".", "JavadocUndefinedType", ":", "case", "IProblem", ".", "JavadocAmbiguousType", ":", "case", "IProblem", ".", "JavadocInternalTypeNameProvided", ":", "case", "IProblem", ".", "JavadocNoMessageSendOnArrayType", ":", "case", "IProblem", ".", "JavadocNoMessageSendOnBaseType", ":", "case", "IProblem", ".", "JavadocInheritedMethodHidesEnclosingName", ":", "case", "IProblem", ".", "JavadocInheritedFieldHidesEnclosingName", ":", "case", "IProblem", ".", "JavadocInheritedNameHidesEnclosingTypeName", ":", "case", "IProblem", ".", "JavadocNonStaticTypeFromStaticInvocation", ":", "case", "IProblem", ".", "JavadocGenericMethodTypeArgumentMismatch", ":", "case", "IProblem", ".", "JavadocNonGenericMethod", ":", "case", "IProblem", ".", "JavadocIncorrectArityForParameterizedMethod", ":", "case", "IProblem", ".", "JavadocParameterizedMethodArgumentTypeMismatch", ":", "case", "IProblem", ".", "JavadocTypeArgumentsForRawGenericMethod", ":", "case", "IProblem", ".", "JavadocGenericConstructorTypeArgumentMismatch", ":", "case", "IProblem", ".", "JavadocNonGenericConstructor", ":", "case", "IProblem", ".", "JavadocIncorrectArityForParameterizedConstructor", ":", "case", "IProblem", ".", "JavadocParameterizedConstructorArgumentTypeMismatch", ":", "case", "IProblem", ".", "JavadocTypeArgumentsForRawGenericConstructor", ":", "case", "IProblem", ".", "JavadocNotVisibleField", ":", "case", "IProblem", ".", "JavadocNotVisibleConstructor", ":", "case", "IProblem", ".", "JavadocNotVisibleMethod", ":", "case", "IProblem", ".", "JavadocNotVisibleType", ":", "case", "IProblem", ".", "JavadocUsingDeprecatedField", ":", "case", "IProblem", ".", "JavadocUsingDeprecatedConstructor", ":", "case", "IProblem", ".", "JavadocUsingDeprecatedMethod", ":", "case", "IProblem", ".", "JavadocUsingDeprecatedType", ":", "case", "IProblem", ".", "JavadocHiddenReference", ":", "case", "IProblem", ".", "JavadocMissingTagDescription", ":", "case", "IProblem", ".", "JavadocInvalidSeeUrlReference", ":", "return", "CompilerOptions", ".", "InvalidJavadoc", ";", "case", "IProblem", ".", "JavadocMissingParamTag", ":", "case", "IProblem", ".", "JavadocMissingReturnTag", ":", "case", "IProblem", ".", "JavadocMissingThrowsTag", ":", "return", "CompilerOptions", ".", "MissingJavadocTags", ";", "case", "IProblem", ".", "JavadocMissing", ":", "return", "CompilerOptions", ".", "MissingJavadocComments", ";", "case", "IProblem", ".", "ParameterAssignment", ":", "return", "CompilerOptions", ".", "ParameterAssignment", ";", "case", "IProblem", ".", "FallthroughCase", ":", "return", "CompilerOptions", ".", "FallthroughCase", ";", "case", "IProblem", ".", "OverridingMethodWithoutSuperInvocation", ":", "return", "CompilerOptions", ".", "OverridingMethodWithoutSuperInvocation", ";", "case", "IProblem", ".", "UnusedTypeArgumentsForMethodInvocation", ":", "case", "IProblem", ".", "UnusedTypeArgumentsForConstructorInvocation", ":", "return", "CompilerOptions", ".", "UnusedTypeArguments", ";", "case", "IProblem", ".", "RedundantSuperinterface", ":", "return", "CompilerOptions", ".", "RedundantSuperinterface", ";", "case", "IProblem", ".", "ComparingIdentical", ":", "return", "CompilerOptions", ".", "ComparingIdentical", ";", "case", "IProblem", ".", "MissingSynchronizedModifierInInheritedMethod", ":", "return", "CompilerOptions", ".", "MissingSynchronizedModifierInInheritedMethod", ";", "case", "IProblem", ".", "ShouldImplementHashcode", ":", "return", "CompilerOptions", ".", "ShouldImplementHashcode", ";", "case", "IProblem", ".", "DeadCode", ":", "return", "CompilerOptions", ".", "DeadCode", ";", "case", "IProblem", ".", "Task", ":", "return", "CompilerOptions", ".", "Tasks", ";", "case", "IProblem", ".", "UnusedObjectAllocation", ":", "return", "CompilerOptions", ".", "UnusedObjectAllocation", ";", "case", "IProblem", ".", "MethodCanBeStatic", ":", "return", "CompilerOptions", ".", "MethodCanBeStatic", ";", "case", "IProblem", ".", "MethodCanBePotentiallyStatic", ":", "return", "CompilerOptions", ".", "MethodCanBePotentiallyStatic", ";", "case", "IProblem", ".", "UnclosedCloseable", ":", "case", "IProblem", ".", "UnclosedCloseableAtExit", ":", "return", "CompilerOptions", ".", "UnclosedCloseable", ";", "case", "IProblem", ".", "PotentiallyUnclosedCloseable", ":", "case", "IProblem", ".", "PotentiallyUnclosedCloseableAtExit", ":", "return", "CompilerOptions", ".", "PotentiallyUnclosedCloseable", ";", "case", "IProblem", ".", "ExplicitlyClosedAutoCloseable", ":", "return", "CompilerOptions", ".", "ExplicitlyClosedAutoCloseable", ";", "case", "IProblem", ".", "RedundantSpecificationOfTypeArguments", ":", "return", "CompilerOptions", ".", "RedundantSpecificationOfTypeArguments", ";", "case", "IProblem", ".", "MissingNonNullByDefaultAnnotationOnPackage", ":", "case", "IProblem", ".", "MissingNonNullByDefaultAnnotationOnType", ":", "return", "CompilerOptions", ".", "MissingNonNullByDefaultAnnotation", ";", "}", "return", "0", ";", "}", "public", "static", "int", "getProblemCategory", "(", "int", "severity", ",", "int", "problemID", ")", "{", "categorizeOnIrritant", ":", "{", "if", "(", "(", "severity", "&", "ProblemSeverities", ".", "Fatal", ")", "!=", "0", ")", "break", "categorizeOnIrritant", ";", "int", "irritant", "=", "getIrritant", "(", "problemID", ")", ";", "switch", "(", "irritant", ")", "{", "case", "CompilerOptions", ".", "MethodWithConstructorName", ":", "case", "CompilerOptions", ".", "AccessEmulation", ":", "case", "CompilerOptions", ".", "AssertUsedAsAnIdentifier", ":", "case", "CompilerOptions", ".", "NonStaticAccessToStatic", ":", "case", "CompilerOptions", ".", "UnqualifiedFieldAccess", ":", "case", "CompilerOptions", ".", "UndocumentedEmptyBlock", ":", "case", "CompilerOptions", ".", "IndirectStaticAccess", ":", "case", "CompilerOptions", ".", "FinalParameterBound", ":", "case", "CompilerOptions", ".", "EnumUsedAsAnIdentifier", ":", "case", "CompilerOptions", ".", "AnnotationSuperInterface", ":", "case", "CompilerOptions", ".", "AutoBoxing", ":", "case", "CompilerOptions", ".", "MissingOverrideAnnotation", ":", "case", "CompilerOptions", ".", "MissingDeprecatedAnnotation", ":", "case", "CompilerOptions", ".", "ParameterAssignment", ":", "case", "CompilerOptions", ".", "MethodCanBeStatic", ":", "case", "CompilerOptions", ".", "MethodCanBePotentiallyStatic", ":", "case", "CompilerOptions", ".", "ExplicitlyClosedAutoCloseable", ":", "return", "CategorizedProblem", ".", "CAT_CODE_STYLE", ";", "case", "CompilerOptions", ".", "MaskedCatchBlock", ":", "case", "CompilerOptions", ".", "NoImplicitStringConversion", ":", "case", "CompilerOptions", ".", "NoEffectAssignment", ":", "case", "CompilerOptions", ".", "AccidentalBooleanAssign", ":", "case", "CompilerOptions", ".", "EmptyStatement", ":", "case", "CompilerOptions", ".", "FinallyBlockNotCompleting", ":", "case", "CompilerOptions", ".", "MissingSerialVersion", ":", "case", "CompilerOptions", ".", "VarargsArgumentNeedCast", ":", "case", "CompilerOptions", ".", "NullReference", ":", "case", "CompilerOptions", ".", "PotentialNullReference", ":", "case", "CompilerOptions", ".", "RedundantNullCheck", ":", "case", "CompilerOptions", ".", "MissingEnumConstantCase", ":", "case", "CompilerOptions", ".", "MissingDefaultCase", ":", "case", "CompilerOptions", ".", "FallthroughCase", ":", "case", "CompilerOptions", ".", "OverridingMethodWithoutSuperInvocation", ":", "case", "CompilerOptions", ".", "ComparingIdentical", ":", "case", "CompilerOptions", ".", "MissingSynchronizedModifierInInheritedMethod", ":", "case", "CompilerOptions", ".", "ShouldImplementHashcode", ":", "case", "CompilerOptions", ".", "DeadCode", ":", "case", "CompilerOptions", ".", "UnusedObjectAllocation", ":", "case", "CompilerOptions", ".", "UnclosedCloseable", ":", "case", "CompilerOptions", ".", "PotentiallyUnclosedCloseable", ":", "return", "CategorizedProblem", ".", "CAT_POTENTIAL_PROGRAMMING_PROBLEM", ";", "case", "CompilerOptions", ".", "OverriddenPackageDefaultMethod", ":", "case", "CompilerOptions", ".", "IncompatibleNonInheritedInterfaceMethod", ":", "case", "CompilerOptions", ".", "LocalVariableHiding", ":", "case", "CompilerOptions", ".", "FieldHiding", ":", "case", "CompilerOptions", ".", "TypeHiding", ":", "return", "CategorizedProblem", ".", "CAT_NAME_SHADOWING_CONFLICT", ";", "case", "CompilerOptions", ".", "UnusedLocalVariable", ":", "case", "CompilerOptions", ".", "UnusedArgument", ":", "case", "CompilerOptions", ".", "UnusedImport", ":", "case", "CompilerOptions", ".", "UnusedPrivateMember", ":", "case", "CompilerOptions", ".", "UnusedDeclaredThrownException", ":", "case", "CompilerOptions", ".", "UnnecessaryTypeCheck", ":", "case", "CompilerOptions", ".", "UnnecessaryElse", ":", "case", "CompilerOptions", ".", "UnhandledWarningToken", ":", "case", "CompilerOptions", ".", "UnusedWarningToken", ":", "case", "CompilerOptions", ".", "UnusedLabel", ":", "case", "CompilerOptions", ".", "RedundantSuperinterface", ":", "case", "CompilerOptions", ".", "RedundantSpecificationOfTypeArguments", ":", "return", "CategorizedProblem", ".", "CAT_UNNECESSARY_CODE", ";", "case", "CompilerOptions", ".", "UsingDeprecatedAPI", ":", "return", "CategorizedProblem", ".", "CAT_DEPRECATION", ";", "case", "CompilerOptions", ".", "NonExternalizedString", ":", "return", "CategorizedProblem", ".", "CAT_NLS", ";", "case", "CompilerOptions", ".", "Task", ":", "return", "CategorizedProblem", ".", "CAT_UNSPECIFIED", ";", "case", "CompilerOptions", ".", "MissingJavadocComments", ":", "case", "CompilerOptions", ".", "MissingJavadocTags", ":", "case", "CompilerOptions", ".", "InvalidJavadoc", ":", "case", "CompilerOptions", ".", "InvalidJavadoc", "|", "CompilerOptions", ".", "UsingDeprecatedAPI", ":", "return", "CategorizedProblem", ".", "CAT_JAVADOC", ";", "case", "CompilerOptions", ".", "UncheckedTypeOperation", ":", "case", "CompilerOptions", ".", "RawTypeReference", ":", "return", "CategorizedProblem", ".", "CAT_UNCHECKED_RAW", ";", "case", "CompilerOptions", ".", "ForbiddenReference", ":", "case", "CompilerOptions", ".", "DiscouragedReference", ":", "return", "CategorizedProblem", ".", "CAT_RESTRICTION", ";", "case", "CompilerOptions", ".", "NullSpecViolation", ":", "case", "CompilerOptions", ".", "NullAnnotationInferenceConflict", ":", "case", "CompilerOptions", ".", "NullUncheckedConversion", ":", "case", "CompilerOptions", ".", "MissingNonNullByDefaultAnnotation", ":", "return", "CategorizedProblem", ".", "CAT_POTENTIAL_PROGRAMMING_PROBLEM", ";", "case", "CompilerOptions", ".", "RedundantNullAnnotation", ":", "return", "CategorizedProblem", ".", "CAT_UNNECESSARY_CODE", ";", "default", ":", "break", "categorizeOnIrritant", ";", "}", "}", "switch", "(", "problemID", ")", "{", "case", "IProblem", ".", "IsClassPathCorrect", ":", "case", "IProblem", ".", "CorruptedSignature", ":", "return", "CategorizedProblem", ".", "CAT_BUILDPATH", ";", "default", ":", "if", "(", "(", "problemID", "&", "IProblem", ".", "Syntax", ")", "!=", "0", ")", "return", "CategorizedProblem", ".", "CAT_SYNTAX", ";", "if", "(", "(", "problemID", "&", "IProblem", ".", "ImportRelated", ")", "!=", "0", ")", "return", "CategorizedProblem", ".", "CAT_IMPORT", ";", "if", "(", "(", "problemID", "&", "IProblem", ".", "TypeRelated", ")", "!=", "0", ")", "return", "CategorizedProblem", ".", "CAT_TYPE", ";", "if", "(", "(", "problemID", "&", "(", "IProblem", ".", "FieldRelated", "|", "IProblem", ".", "MethodRelated", "|", "IProblem", ".", "ConstructorRelated", ")", ")", "!=", "0", ")", "return", "CategorizedProblem", ".", "CAT_MEMBER", ";", "}", "return", "CategorizedProblem", ".", "CAT_INTERNAL", ";", "}", "public", "void", "abortDueToInternalError", "(", "String", "errorMessage", ")", "{", "this", ".", "abortDueToInternalError", "(", "errorMessage", ",", "null", ")", ";", "}", "public", "void", "abortDueToInternalError", "(", "String", "errorMessage", ",", "ASTNode", "location", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "errorMessage", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "Unclassified", ",", "arguments", ",", "arguments", ",", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Abort", "|", "ProblemSeverities", ".", "Fatal", ",", "location", "==", "null", "?", "0", ":", "location", ".", "sourceStart", ",", "location", "==", "null", "?", "0", ":", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "abstractMethodCannotBeOverridden", "(", "SourceTypeBinding", "type", ",", "MethodBinding", "concreteMethod", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "AbstractMethodCannotBeOverridden", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", ",", "new", "String", "(", "CharOperation", ".", "concat", "(", "concreteMethod", ".", "declaringClass", ".", "readableName", "(", ")", ",", "concreteMethod", ".", "readableName", "(", ")", ",", "'.'", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", ",", "new", "String", "(", "CharOperation", ".", "concat", "(", "concreteMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ",", "concreteMethod", ".", "shortReadableName", "(", ")", ",", "'.'", ")", ")", "}", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "abstractMethodInAbstractClass", "(", "SourceTypeBinding", "type", ",", "AbstractMethodDeclaration", "methodDecl", ")", "{", "if", "(", "type", ".", "isEnum", "(", ")", "&&", "type", ".", "isLocalType", "(", ")", ")", "{", "FieldBinding", "field", "=", "type", ".", "scope", ".", "enclosingMethodScope", "(", ")", ".", "initializedField", ";", "FieldDeclaration", "decl", "=", "field", ".", "sourceField", "(", ")", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "decl", ".", "name", ")", ",", "new", "String", "(", "methodDecl", ".", "selector", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "AbstractMethodInEnum", ",", "arguments", ",", "arguments", ",", "methodDecl", ".", "sourceStart", ",", "methodDecl", ".", "sourceEnd", ")", ";", "}", "else", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", ",", "new", "String", "(", "methodDecl", ".", "selector", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "AbstractMethodInAbstractClass", ",", "arguments", ",", "arguments", ",", "methodDecl", ".", "sourceStart", ",", "methodDecl", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "abstractMethodInConcreteClass", "(", "SourceTypeBinding", "type", ")", "{", "if", "(", "type", ".", "isEnum", "(", ")", "&&", "type", ".", "isLocalType", "(", ")", ")", "{", "FieldBinding", "field", "=", "type", ".", "scope", ".", "enclosingMethodScope", "(", ")", ".", "initializedField", ";", "FieldDeclaration", "decl", "=", "field", ".", "sourceField", "(", ")", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "decl", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "EnumConstantCannotDefineAbstractMethod", ",", "arguments", ",", "arguments", ",", "decl", ".", "sourceStart", "(", ")", ",", "decl", ".", "sourceEnd", "(", ")", ")", ";", "}", "else", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "AbstractMethodsInConcreteClass", ",", "arguments", ",", "arguments", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "}", "public", "void", "abstractMethodMustBeImplemented", "(", "SourceTypeBinding", "type", ",", "MethodBinding", "abstractMethod", ")", "{", "if", "(", "type", ".", "scope", "!=", "null", "&&", "!", "type", ".", "scope", ".", "shouldReport", "(", "IProblem", ".", "IncompatibleReturnType", ")", ")", "{", "return", ";", "}", "if", "(", "type", ".", "isEnum", "(", ")", "&&", "type", ".", "isLocalType", "(", ")", ")", "{", "FieldBinding", "field", "=", "type", ".", "scope", ".", "enclosingMethodScope", "(", ")", ".", "initializedField", ";", "FieldDeclaration", "decl", "=", "field", ".", "sourceField", "(", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "EnumConstantMustImplementAbstractMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "abstractMethod", ".", "selector", ")", ",", "typesAsString", "(", "abstractMethod", ",", "false", ")", ",", "new", "String", "(", "decl", ".", "name", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "abstractMethod", ".", "selector", ")", ",", "typesAsString", "(", "abstractMethod", ",", "true", ")", ",", "new", "String", "(", "decl", ".", "name", ")", ",", "}", ",", "decl", ".", "sourceStart", "(", ")", ",", "decl", ".", "sourceEnd", "(", ")", ")", ";", "}", "else", "{", "this", ".", "handle", "(", "IProblem", ".", "AbstractMethodMustBeImplemented", ",", "new", "String", "[", "]", "{", "new", "String", "(", "abstractMethod", ".", "selector", ")", ",", "typesAsString", "(", "abstractMethod", ",", "false", ")", ",", "new", "String", "(", "abstractMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "abstractMethod", ".", "selector", ")", ",", "typesAsString", "(", "abstractMethod", ",", "true", ")", ",", "new", "String", "(", "abstractMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "}", "public", "void", "abstractMethodMustBeImplemented", "(", "SourceTypeBinding", "type", ",", "MethodBinding", "abstractMethod", ",", "MethodBinding", "concreteMethod", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "AbstractMethodMustBeImplementedOverConcreteMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "abstractMethod", ".", "selector", ")", ",", "typesAsString", "(", "abstractMethod", ",", "false", ")", ",", "new", "String", "(", "abstractMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "concreteMethod", ".", "selector", ")", ",", "typesAsString", "(", "concreteMethod", ",", "false", ")", ",", "new", "String", "(", "concreteMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "abstractMethod", ".", "selector", ")", ",", "typesAsString", "(", "abstractMethod", ",", "true", ")", ",", "new", "String", "(", "abstractMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "concreteMethod", ".", "selector", ")", ",", "typesAsString", "(", "concreteMethod", ",", "true", ")", ",", "new", "String", "(", "concreteMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "abstractMethodNeedingNoBody", "(", "AbstractMethodDeclaration", "method", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "BodyForAbstractMethod", ",", "NoArgument", ",", "NoArgument", ",", "method", ".", "sourceStart", ",", "method", ".", "sourceEnd", ",", "method", ",", "method", ".", "compilationResult", "(", ")", ")", ";", "}", "public", "void", "alreadyDefinedLabel", "(", "char", "[", "]", "labelName", ",", "ASTNode", "location", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "labelName", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "DuplicateLabel", ",", "arguments", ",", "arguments", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "annotationCannotOverrideMethod", "(", "MethodBinding", "overrideMethod", ",", "MethodBinding", "inheritedMethod", ")", "{", "ASTNode", "location", "=", "overrideMethod", ".", "sourceMethod", "(", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "AnnotationCannotOverrideMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "overrideMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "inheritedMethod", ".", "selector", ")", ",", "typesAsString", "(", "inheritedMethod", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "overrideMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "inheritedMethod", ".", "selector", ")", ",", "typesAsString", "(", "inheritedMethod", ",", "true", ")", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "annotationCircularity", "(", "TypeBinding", "sourceType", ",", "TypeBinding", "otherType", ",", "TypeReference", "reference", ")", "{", "if", "(", "sourceType", "==", "otherType", ")", "this", ".", "handle", "(", "IProblem", ".", "AnnotationCircularitySelfReference", ",", "new", "String", "[", "]", "{", "new", "String", "(", "sourceType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "sourceType", ".", "shortReadableName", "(", ")", ")", "}", ",", "reference", ".", "sourceStart", ",", "reference", ".", "sourceEnd", ")", ";", "else", "this", ".", "handle", "(", "IProblem", ".", "AnnotationCircularity", ",", "new", "String", "[", "]", "{", "new", "String", "(", "sourceType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "otherType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "sourceType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "otherType", ".", "shortReadableName", "(", ")", ")", "}", ",", "reference", ".", "sourceStart", ",", "reference", ".", "sourceEnd", ")", ";", "}", "public", "void", "annotationMembersCannotHaveParameters", "(", "AnnotationMethodDeclaration", "annotationMethodDeclaration", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "AnnotationMembersCannotHaveParameters", ",", "NoArgument", ",", "NoArgument", ",", "annotationMethodDeclaration", ".", "sourceStart", ",", "annotationMethodDeclaration", ".", "sourceEnd", ")", ";", "}", "public", "void", "annotationMembersCannotHaveTypeParameters", "(", "AnnotationMethodDeclaration", "annotationMethodDeclaration", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "AnnotationMembersCannotHaveTypeParameters", ",", "NoArgument", ",", "NoArgument", ",", "annotationMethodDeclaration", ".", "sourceStart", ",", "annotationMethodDeclaration", ".", "sourceEnd", ")", ";", "}", "public", "void", "annotationTypeDeclarationCannotHaveConstructor", "(", "ConstructorDeclaration", "constructorDeclaration", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "AnnotationTypeDeclarationCannotHaveConstructor", ",", "NoArgument", ",", "NoArgument", ",", "constructorDeclaration", ".", "sourceStart", ",", "constructorDeclaration", ".", "sourceEnd", ")", ";", "}", "public", "void", "annotationTypeDeclarationCannotHaveSuperclass", "(", "TypeDeclaration", "typeDeclaration", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "AnnotationTypeDeclarationCannotHaveSuperclass", ",", "NoArgument", ",", "NoArgument", ",", "typeDeclaration", ".", "sourceStart", ",", "typeDeclaration", ".", "sourceEnd", ")", ";", "}", "public", "void", "annotationTypeDeclarationCannotHaveSuperinterfaces", "(", "TypeDeclaration", "typeDeclaration", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "AnnotationTypeDeclarationCannotHaveSuperinterfaces", ",", "NoArgument", ",", "NoArgument", ",", "typeDeclaration", ".", "sourceStart", ",", "typeDeclaration", ".", "sourceEnd", ")", ";", "}", "public", "void", "annotationTypeUsedAsSuperinterface", "(", "SourceTypeBinding", "type", ",", "TypeReference", "superInterfaceRef", ",", "ReferenceBinding", "superType", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "AnnotationTypeUsedAsSuperInterface", ",", "new", "String", "[", "]", "{", "new", "String", "(", "superType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "superType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ",", "superInterfaceRef", ".", "sourceStart", ",", "superInterfaceRef", ".", "sourceEnd", ")", ";", "}", "public", "void", "annotationValueMustBeAnnotation", "(", "TypeBinding", "annotationType", ",", "char", "[", "]", "name", ",", "Expression", "value", ",", "TypeBinding", "expectedType", ")", "{", "String", "str", "=", "new", "String", "(", "name", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "AnnotationValueMustBeAnnotation", ",", "new", "String", "[", "]", "{", "new", "String", "(", "annotationType", ".", "readableName", "(", ")", ")", ",", "str", ",", "new", "String", "(", "expectedType", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "annotationType", ".", "shortReadableName", "(", ")", ")", ",", "str", ",", "new", "String", "(", "expectedType", ".", "readableName", "(", ")", ")", ",", "}", ",", "value", ".", "sourceStart", ",", "value", ".", "sourceEnd", ")", ";", "}", "public", "void", "annotationValueMustBeArrayInitializer", "(", "TypeBinding", "annotationType", ",", "char", "[", "]", "name", ",", "Expression", "value", ")", "{", "String", "str", "=", "new", "String", "(", "name", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "AnnotationValueMustBeArrayInitializer", ",", "new", "String", "[", "]", "{", "new", "String", "(", "annotationType", ".", "readableName", "(", ")", ")", ",", "str", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "annotationType", ".", "shortReadableName", "(", ")", ")", ",", "str", "}", ",", "value", ".", "sourceStart", ",", "value", ".", "sourceEnd", ")", ";", "}", "public", "void", "annotationValueMustBeClassLiteral", "(", "TypeBinding", "annotationType", ",", "char", "[", "]", "name", ",", "Expression", "value", ")", "{", "String", "str", "=", "new", "String", "(", "name", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "AnnotationValueMustBeClassLiteral", ",", "new", "String", "[", "]", "{", "new", "String", "(", "annotationType", ".", "readableName", "(", ")", ")", ",", "str", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "annotationType", ".", "shortReadableName", "(", ")", ")", ",", "str", "}", ",", "value", ".", "sourceStart", ",", "value", ".", "sourceEnd", ")", ";", "}", "public", "void", "annotationValueMustBeConstant", "(", "TypeBinding", "annotationType", ",", "char", "[", "]", "name", ",", "Expression", "value", ",", "boolean", "isEnum", ")", "{", "String", "str", "=", "new", "String", "(", "name", ")", ";", "if", "(", "isEnum", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "AnnotationValueMustBeAnEnumConstant", ",", "new", "String", "[", "]", "{", "new", "String", "(", "annotationType", ".", "readableName", "(", ")", ")", ",", "str", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "annotationType", ".", "shortReadableName", "(", ")", ")", ",", "str", "}", ",", "value", ".", "sourceStart", ",", "value", ".", "sourceEnd", ")", ";", "}", "else", "{", "this", ".", "handle", "(", "IProblem", ".", "AnnotationValueMustBeConstant", ",", "new", "String", "[", "]", "{", "new", "String", "(", "annotationType", ".", "readableName", "(", ")", ")", ",", "str", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "annotationType", ".", "shortReadableName", "(", ")", ")", ",", "str", "}", ",", "value", ".", "sourceStart", ",", "value", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "anonymousClassCannotExtendFinalClass", "(", "TypeReference", "reference", ",", "TypeBinding", "type", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "AnonymousClassCannotExtendFinalClass", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", "}", ",", "reference", ".", "sourceStart", ",", "reference", ".", "sourceEnd", ")", ";", "}", "public", "void", "argumentTypeCannotBeVoid", "(", "SourceTypeBinding", "type", ",", "AbstractMethodDeclaration", "methodDecl", ",", "Argument", "arg", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "methodDecl", ".", "selector", ")", ",", "new", "String", "(", "arg", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "ArgumentTypeCannotBeVoid", ",", "arguments", ",", "arguments", ",", "methodDecl", ".", "sourceStart", ",", "methodDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "argumentTypeCannotBeVoidArray", "(", "Argument", "arg", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "CannotAllocateVoidArray", ",", "NoArgument", ",", "NoArgument", ",", "arg", ".", "type", ".", "sourceStart", ",", "arg", ".", "type", ".", "sourceEnd", ")", ";", "}", "public", "void", "arrayConstantsOnlyInArrayInitializers", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "ArrayConstantsOnlyInArrayInitializers", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "assignmentHasNoEffect", "(", "AbstractVariableDeclaration", "location", ",", "char", "[", "]", "name", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "AssignmentHasNoEffect", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "name", ")", "}", ";", "int", "start", "=", "location", ".", "sourceStart", ";", "int", "end", "=", "location", ".", "sourceEnd", ";", "if", "(", "location", ".", "initialization", "!=", "null", ")", "{", "end", "=", "location", ".", "initialization", ".", "sourceEnd", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "AssignmentHasNoEffect", ",", "arguments", ",", "arguments", ",", "severity", ",", "start", ",", "end", ")", ";", "}", "public", "void", "assignmentHasNoEffect", "(", "Assignment", "location", ",", "char", "[", "]", "name", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "AssignmentHasNoEffect", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "AssignmentHasNoEffect", ",", "arguments", ",", "arguments", ",", "severity", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "attemptToReturnNonVoidExpression", "(", "ReturnStatement", "returnStatement", ",", "TypeBinding", "expectedType", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "VoidMethodReturnsValue", ",", "new", "String", "[", "]", "{", "new", "String", "(", "expectedType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "expectedType", ".", "shortReadableName", "(", ")", ")", "}", ",", "returnStatement", ".", "sourceStart", ",", "returnStatement", ".", "sourceEnd", ")", ";", "}", "public", "void", "attemptToReturnVoidValue", "(", "ReturnStatement", "returnStatement", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "MethodReturnsVoid", ",", "NoArgument", ",", "NoArgument", ",", "returnStatement", ".", "sourceStart", ",", "returnStatement", ".", "sourceEnd", ")", ";", "}", "public", "void", "autoboxing", "(", "Expression", "expression", ",", "TypeBinding", "originalType", ",", "TypeBinding", "convertedType", ")", "{", "if", "(", "this", ".", "options", ".", "getSeverity", "(", "CompilerOptions", ".", "AutoBoxing", ")", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "this", ".", "handle", "(", "originalType", ".", "isBaseType", "(", ")", "?", "IProblem", ".", "BoxingConversion", ":", "IProblem", ".", "UnboxingConversion", ",", "new", "String", "[", "]", "{", "new", "String", "(", "originalType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "convertedType", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "originalType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "convertedType", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "boundCannotBeArray", "(", "ASTNode", "location", ",", "TypeBinding", "type", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "BoundCannotBeArray", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "boundMustBeAnInterface", "(", "ASTNode", "location", ",", "TypeBinding", "type", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "BoundMustBeAnInterface", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "bytecodeExceeds64KLimit", "(", "AbstractMethodDeclaration", "location", ")", "{", "MethodBinding", "method", "=", "location", ".", "binding", ";", "if", "(", "location", ".", "isConstructor", "(", ")", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "BytecodeExceeds64KLimitForConstructor", ",", "new", "String", "[", "]", "{", "new", "String", "(", "location", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "location", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Abort", "|", "ProblemSeverities", ".", "Fatal", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "else", "{", "this", ".", "handle", "(", "IProblem", ".", "BytecodeExceeds64KLimit", ",", "new", "String", "[", "]", "{", "new", "String", "(", "location", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "location", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Abort", "|", "ProblemSeverities", ".", "Fatal", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "bytecodeExceeds64KLimit", "(", "TypeDeclaration", "location", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "BytecodeExceeds64KLimitForClinit", ",", "NoArgument", ",", "NoArgument", ",", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Abort", "|", "ProblemSeverities", ".", "Fatal", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "cannotAllocateVoidArray", "(", "Expression", "expression", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "CannotAllocateVoidArray", ",", "NoArgument", ",", "NoArgument", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "cannotAssignToFinalField", "(", "FieldBinding", "field", ",", "ASTNode", "location", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "FinalFieldAssignment", ",", "new", "String", "[", "]", "{", "(", "field", ".", "declaringClass", "==", "null", "?", "\"array\"", ":", "new", "String", "(", "field", ".", "declaringClass", ".", "readableName", "(", ")", ")", ")", ",", "new", "String", "(", "field", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "(", "field", ".", "declaringClass", "==", "null", "?", "\"array\"", ":", "new", "String", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ")", ",", "new", "String", "(", "field", ".", "shortReadableName", "(", ")", ")", "}", ",", "nodeSourceStart", "(", "field", ",", "location", ")", ",", "nodeSourceEnd", "(", "field", ",", "location", ")", ")", ";", "}", "public", "void", "cannotAssignToFinalLocal", "(", "LocalVariableBinding", "local", ",", "ASTNode", "location", ")", "{", "int", "problemId", "=", "0", ";", "if", "(", "(", "local", ".", "tagBits", "&", "TagBits", ".", "MultiCatchParameter", ")", "!=", "0", ")", "{", "problemId", "=", "IProblem", ".", "AssignmentToMultiCatchParameter", ";", "}", "else", "if", "(", "(", "local", ".", "tagBits", "&", "TagBits", ".", "IsResource", ")", "!=", "0", ")", "{", "problemId", "=", "IProblem", ".", "AssignmentToResource", ";", "}", "else", "{", "problemId", "=", "IProblem", ".", "NonBlankFinalLocalAssignment", ";", "}", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "readableName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "problemId", ",", "arguments", ",", "arguments", ",", "nodeSourceStart", "(", "local", ",", "location", ")", ",", "nodeSourceEnd", "(", "local", ",", "location", ")", ")", ";", "}", "public", "void", "cannotAssignToFinalOuterLocal", "(", "LocalVariableBinding", "local", ",", "ASTNode", "location", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "readableName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "FinalOuterLocalAssignment", ",", "arguments", ",", "arguments", ",", "nodeSourceStart", "(", "local", ",", "location", ")", ",", "nodeSourceEnd", "(", "local", ",", "location", ")", ")", ";", "}", "public", "void", "cannotDefineDimensionsAndInitializer", "(", "ArrayAllocationExpression", "expresssion", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "CannotDefineDimensionExpressionsWithInit", ",", "NoArgument", ",", "NoArgument", ",", "expresssion", ".", "sourceStart", ",", "expresssion", ".", "sourceEnd", ")", ";", "}", "public", "void", "cannotDireclyInvokeAbstractMethod", "(", "MessageSend", "messageSend", ",", "MethodBinding", "method", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "DirectInvocationOfAbstractMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "messageSend", ".", "sourceStart", ",", "messageSend", ".", "sourceEnd", ")", ";", "}", "public", "void", "cannotExtendEnum", "(", "SourceTypeBinding", "type", ",", "TypeReference", "superclass", ",", "TypeBinding", "superTypeBinding", ")", "{", "String", "name", "=", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", ";", "String", "superTypeFullName", "=", "new", "String", "(", "superTypeBinding", ".", "readableName", "(", ")", ")", ";", "String", "superTypeShortName", "=", "new", "String", "(", "superTypeBinding", ".", "shortReadableName", "(", ")", ")", ";", "if", "(", "superTypeShortName", ".", "equals", "(", "name", ")", ")", "superTypeShortName", "=", "superTypeFullName", ";", "this", ".", "handle", "(", "IProblem", ".", "CannotExtendEnum", ",", "new", "String", "[", "]", "{", "superTypeFullName", ",", "name", "}", ",", "new", "String", "[", "]", "{", "superTypeShortName", ",", "name", "}", ",", "superclass", ".", "sourceStart", ",", "superclass", ".", "sourceEnd", ")", ";", "}", "public", "void", "cannotImportPackage", "(", "ImportReference", "importRef", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "CharOperation", ".", "toString", "(", "importRef", ".", "tokens", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "CannotImportPackage", ",", "arguments", ",", "arguments", ",", "importRef", ".", "sourceStart", ",", "importRef", ".", "sourceEnd", ")", ";", "}", "public", "void", "cannotInstantiate", "(", "TypeReference", "typeRef", ",", "TypeBinding", "type", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidClassInstantiation", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", "}", ",", "typeRef", ".", "sourceStart", ",", "typeRef", ".", "sourceEnd", ")", ";", "}", "public", "void", "cannotInvokeSuperConstructorInEnum", "(", "ExplicitConstructorCall", "constructorCall", ",", "MethodBinding", "enumConstructor", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "CannotInvokeSuperConstructorInEnum", ",", "new", "String", "[", "]", "{", "new", "String", "(", "enumConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "enumConstructor", ",", "false", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "enumConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "enumConstructor", ",", "true", ")", ",", "}", ",", "constructorCall", ".", "sourceStart", ",", "constructorCall", ".", "sourceEnd", ")", ";", "}", "public", "void", "cannotReadSource", "(", "CompilationUnitDeclaration", "unit", ",", "AbortCompilationUnit", "abortException", ",", "boolean", "verbose", ")", "{", "String", "fileName", "=", "new", "String", "(", "unit", ".", "compilationResult", ".", "fileName", ")", ";", "if", "(", "abortException", ".", "exception", "instanceof", "CharConversionException", ")", "{", "String", "encoding", "=", "abortException", ".", "encoding", ";", "if", "(", "encoding", "==", "null", ")", "{", "encoding", "=", "System", ".", "getProperty", "(", "\"\"", ")", ";", "}", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "fileName", ",", "encoding", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "InvalidEncoding", ",", "arguments", ",", "arguments", ",", "0", ",", "0", ")", ";", "return", ";", "}", "StringWriter", "stringWriter", "=", "new", "StringWriter", "(", ")", ";", "PrintWriter", "writer", "=", "new", "PrintWriter", "(", "stringWriter", ")", ";", "if", "(", "verbose", ")", "{", "abortException", ".", "exception", ".", "printStackTrace", "(", "writer", ")", ";", "System", ".", "err", ".", "println", "(", "stringWriter", ".", "toString", "(", ")", ")", ";", "stringWriter", "=", "new", "StringWriter", "(", ")", ";", "writer", "=", "new", "PrintWriter", "(", "stringWriter", ")", ";", "}", "writer", ".", "print", "(", "abortException", ".", "exception", ".", "getClass", "(", ")", ".", "getName", "(", ")", ")", ";", "writer", ".", "print", "(", "':'", ")", ";", "writer", ".", "print", "(", "abortException", ".", "exception", ".", "getMessage", "(", ")", ")", ";", "String", "exceptionTrace", "=", "stringWriter", ".", "toString", "(", ")", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "fileName", ",", "exceptionTrace", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "CannotReadSource", ",", "arguments", ",", "arguments", ",", "0", ",", "0", ")", ";", "}", "public", "void", "cannotReferToNonFinalOuterLocal", "(", "LocalVariableBinding", "local", ",", "ASTNode", "location", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "readableName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "OuterLocalMustBeFinal", ",", "arguments", ",", "arguments", ",", "nodeSourceStart", "(", "local", ",", "location", ")", ",", "nodeSourceEnd", "(", "local", ",", "location", ")", ")", ";", "}", "public", "void", "cannotReturnInInitializer", "(", "ASTNode", "location", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "CannotReturnInInitializer", ",", "NoArgument", ",", "NoArgument", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "cannotThrowNull", "(", "ASTNode", "expression", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "CannotThrowNull", ",", "NoArgument", ",", "NoArgument", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "cannotThrowType", "(", "ASTNode", "exception", ",", "TypeBinding", "expectedType", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "CannotThrowType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "expectedType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "expectedType", ".", "shortReadableName", "(", ")", ")", "}", ",", "exception", ".", "sourceStart", ",", "exception", ".", "sourceEnd", ")", ";", "}", "public", "void", "cannotUseQualifiedEnumConstantInCaseLabel", "(", "Reference", "location", ",", "FieldBinding", "field", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "IllegalQualifiedEnumConstantLabel", ",", "new", "String", "[", "]", "{", "String", ".", "valueOf", "(", "field", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "String", ".", "valueOf", "(", "field", ".", "name", ")", "}", ",", "new", "String", "[", "]", "{", "String", ".", "valueOf", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "String", ".", "valueOf", "(", "field", ".", "name", ")", "}", ",", "location", ".", "sourceStart", "(", ")", ",", "location", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "cannotUseSuperInCodeSnippet", "(", "int", "start", ",", "int", "end", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "CannotUseSuperInCodeSnippet", ",", "NoArgument", ",", "NoArgument", ",", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Abort", "|", "ProblemSeverities", ".", "Fatal", ",", "start", ",", "end", ")", ";", "}", "public", "void", "cannotUseSuperInJavaLangObject", "(", "ASTNode", "reference", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "ObjectHasNoSuperclass", ",", "NoArgument", ",", "NoArgument", ",", "reference", ".", "sourceStart", ",", "reference", ".", "sourceEnd", ")", ";", "}", "public", "void", "caseExpressionMustBeConstant", "(", "Expression", "expression", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "NonConstantExpression", ",", "NoArgument", ",", "NoArgument", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "classExtendFinalClass", "(", "SourceTypeBinding", "type", ",", "TypeReference", "superclass", ",", "TypeBinding", "superTypeBinding", ")", "{", "String", "name", "=", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", ";", "String", "superTypeFullName", "=", "new", "String", "(", "superTypeBinding", ".", "readableName", "(", ")", ")", ";", "String", "superTypeShortName", "=", "new", "String", "(", "superTypeBinding", ".", "shortReadableName", "(", ")", ")", ";", "if", "(", "superTypeShortName", ".", "equals", "(", "name", ")", ")", "superTypeShortName", "=", "superTypeFullName", ";", "this", ".", "handle", "(", "IProblem", ".", "ClassExtendFinalClass", ",", "new", "String", "[", "]", "{", "superTypeFullName", ",", "name", "}", ",", "new", "String", "[", "]", "{", "superTypeShortName", ",", "name", "}", ",", "superclass", ".", "sourceStart", ",", "superclass", ".", "sourceEnd", ")", ";", "}", "public", "void", "codeSnippetMissingClass", "(", "String", "missing", ",", "int", "start", ",", "int", "end", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "missing", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "CodeSnippetMissingClass", ",", "arguments", ",", "arguments", ",", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Abort", "|", "ProblemSeverities", ".", "Fatal", ",", "start", ",", "end", ")", ";", "}", "public", "void", "codeSnippetMissingMethod", "(", "String", "className", ",", "String", "missingMethod", ",", "String", "argumentTypes", ",", "int", "start", ",", "int", "end", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "className", ",", "missingMethod", ",", "argumentTypes", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "CodeSnippetMissingMethod", ",", "arguments", ",", "arguments", ",", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Abort", "|", "ProblemSeverities", ".", "Fatal", ",", "start", ",", "end", ")", ";", "}", "public", "void", "comparingIdenticalExpressions", "(", "Expression", "comparison", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "ComparingIdentical", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "this", ".", "handle", "(", "IProblem", ".", "ComparingIdentical", ",", "NoArgument", ",", "NoArgument", ",", "severity", ",", "comparison", ".", "sourceStart", ",", "comparison", ".", "sourceEnd", ")", ";", "}", "public", "int", "computeSeverity", "(", "int", "problemID", ")", "{", "switch", "(", "problemID", ")", "{", "case", "IProblem", ".", "VarargsConflict", ":", "return", "ProblemSeverities", ".", "Warning", ";", "case", "IProblem", ".", "TypeCollidesWithPackage", ":", "return", "ProblemSeverities", ".", "Warning", ";", "case", "IProblem", ".", "JavadocInvalidParamName", ":", "case", "IProblem", ".", "JavadocDuplicateParamName", ":", "case", "IProblem", ".", "JavadocMissingParamName", ":", "case", "IProblem", ".", "JavadocInvalidMemberTypeQualification", ":", "case", "IProblem", ".", "JavadocInvalidThrowsClassName", ":", "case", "IProblem", ".", "JavadocDuplicateThrowsClassName", ":", "case", "IProblem", ".", "JavadocMissingThrowsClassName", ":", "case", "IProblem", ".", "JavadocMissingSeeReference", ":", "case", "IProblem", ".", "JavadocInvalidValueReference", ":", "case", "IProblem", ".", "JavadocUndefinedField", ":", "case", "IProblem", ".", "JavadocAmbiguousField", ":", "case", "IProblem", ".", "JavadocUndefinedConstructor", ":", "case", "IProblem", ".", "JavadocAmbiguousConstructor", ":", "case", "IProblem", ".", "JavadocUndefinedMethod", ":", "case", "IProblem", ".", "JavadocAmbiguousMethod", ":", "case", "IProblem", ".", "JavadocAmbiguousMethodReference", ":", "case", "IProblem", ".", "JavadocParameterMismatch", ":", "case", "IProblem", ".", "JavadocUndefinedType", ":", "case", "IProblem", ".", "JavadocAmbiguousType", ":", "case", "IProblem", ".", "JavadocInternalTypeNameProvided", ":", "case", "IProblem", ".", "JavadocNoMessageSendOnArrayType", ":", "case", "IProblem", ".", "JavadocNoMessageSendOnBaseType", ":", "case", "IProblem", ".", "JavadocInheritedMethodHidesEnclosingName", ":", "case", "IProblem", ".", "JavadocInheritedFieldHidesEnclosingName", ":", "case", "IProblem", ".", "JavadocInheritedNameHidesEnclosingTypeName", ":", "case", "IProblem", ".", "JavadocNonStaticTypeFromStaticInvocation", ":", "case", "IProblem", ".", "JavadocGenericMethodTypeArgumentMismatch", ":", "case", "IProblem", ".", "JavadocNonGenericMethod", ":", "case", "IProblem", ".", "JavadocIncorrectArityForParameterizedMethod", ":", "case", "IProblem", ".", "JavadocParameterizedMethodArgumentTypeMismatch", ":", "case", "IProblem", ".", "JavadocTypeArgumentsForRawGenericMethod", ":", "case", "IProblem", ".", "JavadocGenericConstructorTypeArgumentMismatch", ":", "case", "IProblem", ".", "JavadocNonGenericConstructor", ":", "case", "IProblem", ".", "JavadocIncorrectArityForParameterizedConstructor", ":", "case", "IProblem", ".", "JavadocParameterizedConstructorArgumentTypeMismatch", ":", "case", "IProblem", ".", "JavadocTypeArgumentsForRawGenericConstructor", ":", "if", "(", "!", "this", ".", "options", ".", "reportInvalidJavadocTags", ")", "{", "return", "ProblemSeverities", ".", "Ignore", ";", "}", "break", ";", "case", "IProblem", ".", "JavadocUsingDeprecatedField", ":", "case", "IProblem", ".", "JavadocUsingDeprecatedConstructor", ":", "case", "IProblem", ".", "JavadocUsingDeprecatedMethod", ":", "case", "IProblem", ".", "JavadocUsingDeprecatedType", ":", "if", "(", "!", "(", "this", ".", "options", ".", "reportInvalidJavadocTags", "&&", "this", ".", "options", ".", "reportInvalidJavadocTagsDeprecatedRef", ")", ")", "{", "return", "ProblemSeverities", ".", "Ignore", ";", "}", "break", ";", "case", "IProblem", ".", "JavadocNotVisibleField", ":", "case", "IProblem", ".", "JavadocNotVisibleConstructor", ":", "case", "IProblem", ".", "JavadocNotVisibleMethod", ":", "case", "IProblem", ".", "JavadocNotVisibleType", ":", "case", "IProblem", ".", "JavadocHiddenReference", ":", "if", "(", "!", "(", "this", ".", "options", ".", "reportInvalidJavadocTags", "&&", "this", ".", "options", ".", "reportInvalidJavadocTagsNotVisibleRef", ")", ")", "{", "return", "ProblemSeverities", ".", "Ignore", ";", "}", "break", ";", "case", "IProblem", ".", "JavadocEmptyReturnTag", ":", "if", "(", "CompilerOptions", ".", "NO_TAG", ".", "equals", "(", "this", ".", "options", ".", "reportMissingJavadocTagDescription", ")", ")", "{", "return", "ProblemSeverities", ".", "Ignore", ";", "}", "break", ";", "case", "IProblem", ".", "JavadocMissingTagDescription", ":", "if", "(", "!", "CompilerOptions", ".", "ALL_STANDARD_TAGS", ".", "equals", "(", "this", ".", "options", ".", "reportMissingJavadocTagDescription", ")", ")", "{", "return", "ProblemSeverities", ".", "Ignore", ";", "}", "break", ";", "}", "int", "irritant", "=", "getIrritant", "(", "problemID", ")", ";", "if", "(", "irritant", "!=", "0", ")", "{", "if", "(", "(", "problemID", "&", "IProblem", ".", "Javadoc", ")", "!=", "0", "&&", "!", "this", ".", "options", ".", "docCommentSupport", ")", "return", "ProblemSeverities", ".", "Ignore", ";", "return", "this", ".", "options", ".", "getSeverity", "(", "irritant", ")", ";", "}", "return", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Fatal", ";", "}", "public", "void", "conditionalArgumentsIncompatibleTypes", "(", "ConditionalExpression", "expression", ",", "TypeBinding", "trueType", ",", "TypeBinding", "falseType", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "IncompatibleTypesInConditionalOperator", ",", "new", "String", "[", "]", "{", "new", "String", "(", "trueType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "falseType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "trueType", ".", "sourceName", "(", ")", ")", ",", "new", "String", "(", "falseType", ".", "sourceName", "(", ")", ")", "}", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "conflictingImport", "(", "ImportReference", "importRef", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "CharOperation", ".", "toString", "(", "importRef", ".", "tokens", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "ConflictingImport", ",", "arguments", ",", "arguments", ",", "importRef", ".", "sourceStart", ",", "importRef", ".", "sourceEnd", ")", ";", "}", "public", "void", "constantOutOfRange", "(", "Literal", "literal", ",", "TypeBinding", "literalType", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "literalType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "literal", ".", "source", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "NumericValueOutOfRange", ",", "arguments", ",", "arguments", ",", "literal", ".", "sourceStart", ",", "literal", ".", "sourceEnd", ")", ";", "}", "public", "void", "corruptedSignature", "(", "TypeBinding", "enclosingType", ",", "char", "[", "]", "signature", ",", "int", "position", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "CorruptedSignature", ",", "new", "String", "[", "]", "{", "new", "String", "(", "enclosingType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "signature", ")", ",", "String", ".", "valueOf", "(", "position", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "enclosingType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "signature", ")", ",", "String", ".", "valueOf", "(", "position", ")", "}", ",", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Abort", "|", "ProblemSeverities", ".", "Fatal", ",", "0", ",", "0", ")", ";", "}", "public", "void", "deprecatedField", "(", "FieldBinding", "field", ",", "ASTNode", "location", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "UsingDeprecatedField", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "this", ".", "handle", "(", "IProblem", ".", "UsingDeprecatedField", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", "}", ",", "severity", ",", "nodeSourceStart", "(", "field", ",", "location", ")", ",", "nodeSourceEnd", "(", "field", ",", "location", ")", ")", ";", "}", "public", "void", "deprecatedMethod", "(", "MethodBinding", "method", ",", "ASTNode", "location", ")", "{", "boolean", "isConstructor", "=", "method", ".", "isConstructor", "(", ")", ";", "int", "severity", "=", "computeSeverity", "(", "isConstructor", "?", "IProblem", ".", "UsingDeprecatedConstructor", ":", "IProblem", ".", "UsingDeprecatedMethod", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "isConstructor", ")", "{", "int", "start", "=", "-", "1", ";", "if", "(", "location", "instanceof", "AllocationExpression", ")", "{", "AllocationExpression", "allocationExpression", "=", "(", "AllocationExpression", ")", "location", ";", "if", "(", "allocationExpression", ".", "enumConstant", "!=", "null", ")", "{", "start", "=", "allocationExpression", ".", "enumConstant", ".", "sourceStart", ";", "}", "start", "=", "allocationExpression", ".", "type", ".", "sourceStart", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "UsingDeprecatedConstructor", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "severity", ",", "(", "start", "==", "-", "1", ")", "?", "location", ".", "sourceStart", ":", "start", ",", "location", ".", "sourceEnd", ")", ";", "}", "else", "{", "int", "start", "=", "-", "1", ";", "if", "(", "location", "instanceof", "MessageSend", ")", "{", "start", "=", "(", "int", ")", "(", "(", "(", "MessageSend", ")", "location", ")", ".", "nameSourcePosition", ">>>", "32", ")", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "UsingDeprecatedMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "severity", ",", "(", "start", "==", "-", "1", ")", "?", "location", ".", "sourceStart", ":", "start", ",", "location", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "deprecatedType", "(", "TypeBinding", "type", ",", "ASTNode", "location", ")", "{", "deprecatedType", "(", "type", ",", "location", ",", "Integer", ".", "MAX_VALUE", ")", ";", "}", "public", "void", "deprecatedType", "(", "TypeBinding", "type", ",", "ASTNode", "location", ",", "int", "index", ")", "{", "if", "(", "location", "==", "null", ")", "return", ";", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "UsingDeprecatedType", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "type", "=", "type", ".", "leafComponentType", "(", ")", ";", "int", "sourceStart", "=", "-", "1", ";", "if", "(", "location", "instanceof", "QualifiedTypeReference", ")", "{", "QualifiedTypeReference", "ref", "=", "(", "QualifiedTypeReference", ")", "location", ";", "if", "(", "index", "<", "Integer", ".", "MAX_VALUE", ")", "{", "sourceStart", "=", "(", "int", ")", "(", "ref", ".", "sourcePositions", "[", "index", "]", ">>", "32", ")", ";", "}", "}", "this", ".", "handle", "(", "IProblem", ".", "UsingDeprecatedType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", "}", ",", "severity", ",", "(", "sourceStart", "==", "-", "1", ")", "?", "location", ".", "sourceStart", ":", "sourceStart", ",", "nodeSourceEnd", "(", "null", ",", "location", ",", "index", ")", ")", ";", "}", "public", "void", "disallowedTargetForAnnotation", "(", "Annotation", "annotation", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "DisallowedTargetForAnnotation", ",", "new", "String", "[", "]", "{", "new", "String", "(", "annotation", ".", "resolvedType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "annotation", ".", "resolvedType", ".", "shortReadableName", "(", ")", ")", "}", ",", "annotation", ".", "sourceStart", ",", "annotation", ".", "sourceEnd", ")", ";", "}", "public", "void", "polymorphicMethodNotBelow17", "(", "ASTNode", "node", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "PolymorphicMethodNotBelow17", ",", "NoArgument", ",", "NoArgument", ",", "node", ".", "sourceStart", ",", "node", ".", "sourceEnd", ")", ";", "}", "public", "void", "multiCatchNotBelow17", "(", "ASTNode", "node", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "MultiCatchNotBelow17", ",", "NoArgument", ",", "NoArgument", ",", "node", ".", "sourceStart", ",", "node", ".", "sourceEnd", ")", ";", "}", "public", "void", "duplicateAnnotation", "(", "Annotation", "annotation", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "DuplicateAnnotation", ",", "new", "String", "[", "]", "{", "new", "String", "(", "annotation", ".", "resolvedType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "annotation", ".", "resolvedType", ".", "shortReadableName", "(", ")", ")", "}", ",", "annotation", ".", "sourceStart", ",", "annotation", ".", "sourceEnd", ")", ";", "}", "public", "void", "duplicateAnnotationValue", "(", "TypeBinding", "annotationType", ",", "MemberValuePair", "memberValuePair", ")", "{", "String", "name", "=", "new", "String", "(", "memberValuePair", ".", "name", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "DuplicateAnnotationMember", ",", "new", "String", "[", "]", "{", "name", ",", "new", "String", "(", "annotationType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "name", ",", "new", "String", "(", "annotationType", ".", "shortReadableName", "(", ")", ")", "}", ",", "memberValuePair", ".", "sourceStart", ",", "memberValuePair", ".", "sourceEnd", ")", ";", "}", "public", "void", "duplicateBounds", "(", "ASTNode", "location", ",", "TypeBinding", "type", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "DuplicateBounds", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "duplicateCase", "(", "CaseStatement", "caseStatement", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "DuplicateCase", ",", "NoArgument", ",", "NoArgument", ",", "caseStatement", ".", "sourceStart", ",", "caseStatement", ".", "sourceEnd", ")", ";", "}", "public", "void", "duplicateDefaultCase", "(", "ASTNode", "statement", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "DuplicateDefaultCase", ",", "NoArgument", ",", "NoArgument", ",", "statement", ".", "sourceStart", ",", "statement", ".", "sourceEnd", ")", ";", "}", "public", "void", "duplicateEnumSpecialMethod", "(", "SourceTypeBinding", "type", ",", "AbstractMethodDeclaration", "methodDecl", ")", "{", "MethodBinding", "method", "=", "methodDecl", ".", "binding", ";", "this", ".", "handle", "(", "IProblem", ".", "CannotDeclareEnumSpecialMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "methodDecl", ".", "selector", ")", ",", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "methodDecl", ".", "selector", ")", ",", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "methodDecl", ".", "sourceStart", ",", "methodDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "duplicateFieldInType", "(", "SourceTypeBinding", "type", ",", "FieldDeclaration", "fieldDecl", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "DuplicateField", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", ",", "new", "String", "(", "fieldDecl", ".", "name", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "fieldDecl", ".", "name", ")", "}", ",", "fieldDecl", ".", "sourceStart", ",", "fieldDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "duplicateImport", "(", "ImportReference", "importRef", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "CharOperation", ".", "toString", "(", "importRef", ".", "tokens", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "DuplicateImport", ",", "arguments", ",", "arguments", ",", "importRef", ".", "sourceStart", ",", "importRef", ".", "sourceEnd", ")", ";", "}", "public", "void", "duplicateInheritedMethods", "(", "SourceTypeBinding", "type", ",", "MethodBinding", "inheritedMethod1", ",", "MethodBinding", "inheritedMethod2", ")", "{", "if", "(", "inheritedMethod1", ".", "declaringClass", "!=", "inheritedMethod2", ".", "declaringClass", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "DuplicateInheritedMethods", ",", "new", "String", "[", "]", "{", "new", "String", "(", "inheritedMethod1", ".", "selector", ")", ",", "typesAsString", "(", "inheritedMethod1", ",", "inheritedMethod1", ".", "original", "(", ")", ".", "parameters", ",", "false", ")", ",", "typesAsString", "(", "inheritedMethod2", ",", "inheritedMethod2", ".", "original", "(", ")", ".", "parameters", ",", "false", ")", ",", "new", "String", "(", "inheritedMethod1", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "inheritedMethod2", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "inheritedMethod1", ".", "selector", ")", ",", "typesAsString", "(", "inheritedMethod1", ",", "inheritedMethod1", ".", "original", "(", ")", ".", "parameters", ",", "true", ")", ",", "typesAsString", "(", "inheritedMethod2", ",", "inheritedMethod2", ".", "original", "(", ")", ".", "parameters", ",", "true", ")", ",", "new", "String", "(", "inheritedMethod1", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "inheritedMethod2", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "return", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "DuplicateParameterizedMethods", ",", "new", "String", "[", "]", "{", "new", "String", "(", "inheritedMethod1", ".", "selector", ")", ",", "new", "String", "(", "inheritedMethod1", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "inheritedMethod1", ",", "inheritedMethod1", ".", "original", "(", ")", ".", "parameters", ",", "false", ")", ",", "typesAsString", "(", "inheritedMethod2", ",", "inheritedMethod2", ".", "original", "(", ")", ".", "parameters", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "inheritedMethod1", ".", "selector", ")", ",", "new", "String", "(", "inheritedMethod1", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "inheritedMethod1", ",", "inheritedMethod1", ".", "original", "(", ")", ".", "parameters", ",", "true", ")", ",", "typesAsString", "(", "inheritedMethod2", ",", "inheritedMethod2", ".", "original", "(", ")", ".", "parameters", ",", "true", ")", "}", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "duplicateInitializationOfBlankFinalField", "(", "FieldBinding", "field", ",", "Reference", "reference", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "readableName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "DuplicateBlankFinalFieldInitialization", ",", "arguments", ",", "arguments", ",", "nodeSourceStart", "(", "field", ",", "reference", ")", ",", "nodeSourceEnd", "(", "field", ",", "reference", ")", ")", ";", "}", "public", "void", "duplicateInitializationOfFinalLocal", "(", "LocalVariableBinding", "local", ",", "ASTNode", "location", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "readableName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "DuplicateFinalLocalInitialization", ",", "arguments", ",", "arguments", ",", "nodeSourceStart", "(", "local", ",", "location", ")", ",", "nodeSourceEnd", "(", "local", ",", "location", ")", ")", ";", "}", "public", "void", "duplicateMethodInType", "(", "SourceTypeBinding", "type", ",", "AbstractMethodDeclaration", "methodDecl", ",", "boolean", "equalParameters", ",", "int", "severity", ")", "{", "MethodBinding", "method", "=", "methodDecl", ".", "binding", ";", "if", "(", "equalParameters", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "DuplicateMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "methodDecl", ".", "selector", ")", ",", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "methodDecl", ".", "selector", ")", ",", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "severity", ",", "methodDecl", ".", "sourceStart", ",", "methodDecl", ".", "sourceEnd", ")", ";", "}", "else", "{", "int", "length", "=", "method", ".", "parameters", ".", "length", ";", "TypeBinding", "[", "]", "erasures", "=", "new", "TypeBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "erasures", "[", "i", "]", "=", "method", ".", "parameters", "[", "i", "]", ".", "erasure", "(", ")", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "DuplicateMethodErasure", ",", "new", "String", "[", "]", "{", "new", "String", "(", "methodDecl", ".", "selector", ")", ",", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "false", ")", ",", "typesAsString", "(", "method", ",", "erasures", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "methodDecl", ".", "selector", ")", ",", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "true", ")", ",", "typesAsString", "(", "method", ",", "erasures", ",", "true", ")", "}", ",", "severity", ",", "methodDecl", ".", "sourceStart", ",", "methodDecl", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "duplicateModifierForField", "(", "ReferenceBinding", "type", ",", "FieldDeclaration", "fieldDecl", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "fieldDecl", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "DuplicateModifierForField", ",", "arguments", ",", "arguments", ",", "fieldDecl", ".", "sourceStart", ",", "fieldDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "duplicateModifierForMethod", "(", "ReferenceBinding", "type", ",", "AbstractMethodDeclaration", "methodDecl", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "DuplicateModifierForMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", ",", "new", "String", "(", "methodDecl", ".", "selector", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "methodDecl", ".", "selector", ")", "}", ",", "methodDecl", ".", "sourceStart", ",", "methodDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "duplicateModifierForType", "(", "SourceTypeBinding", "type", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "DuplicateModifierForType", ",", "arguments", ",", "arguments", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "duplicateModifierForVariable", "(", "LocalDeclaration", "localDecl", ",", "boolean", "complainForArgument", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "localDecl", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "complainForArgument", "?", "IProblem", ".", "DuplicateModifierForArgument", ":", "IProblem", ".", "DuplicateModifierForVariable", ",", "arguments", ",", "arguments", ",", "localDecl", ".", "sourceStart", ",", "localDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "duplicateNestedType", "(", "TypeDeclaration", "typeDecl", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "typeDecl", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "DuplicateNestedType", ",", "arguments", ",", "arguments", ",", "typeDecl", ".", "sourceStart", ",", "typeDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "duplicateSuperinterface", "(", "SourceTypeBinding", "type", ",", "TypeReference", "reference", ",", "ReferenceBinding", "superType", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "DuplicateSuperInterface", ",", "new", "String", "[", "]", "{", "new", "String", "(", "superType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "superType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ",", "reference", ".", "sourceStart", ",", "reference", ".", "sourceEnd", ")", ";", "}", "public", "void", "duplicateTargetInTargetAnnotation", "(", "TypeBinding", "annotationType", ",", "NameReference", "reference", ")", "{", "FieldBinding", "field", "=", "reference", ".", "fieldBinding", "(", ")", ";", "String", "name", "=", "new", "String", "(", "field", ".", "name", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "DuplicateTargetInTargetAnnotation", ",", "new", "String", "[", "]", "{", "name", ",", "new", "String", "(", "annotationType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "name", ",", "new", "String", "(", "annotationType", ".", "shortReadableName", "(", ")", ")", "}", ",", "nodeSourceStart", "(", "field", ",", "reference", ")", ",", "nodeSourceEnd", "(", "field", ",", "reference", ")", ")", ";", "}", "public", "void", "duplicateTypeParameterInType", "(", "TypeParameter", "typeParameter", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "DuplicateTypeVariable", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeParameter", ".", "name", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeParameter", ".", "name", ")", "}", ",", "typeParameter", ".", "sourceStart", ",", "typeParameter", ".", "sourceEnd", ")", ";", "}", "public", "void", "duplicateTypes", "(", "CompilationUnitDeclaration", "compUnitDecl", ",", "TypeDeclaration", "typeDecl", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "compUnitDecl", ".", "getFileName", "(", ")", ")", ",", "new", "String", "(", "typeDecl", ".", "name", ")", "}", ";", "this", ".", "referenceContext", "=", "typeDecl", ";", "int", "end", "=", "typeDecl", ".", "sourceEnd", ";", "if", "(", "end", "<=", "0", ")", "{", "end", "=", "-", "1", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "DuplicateTypes", ",", "arguments", ",", "arguments", ",", "typeDecl", ".", "sourceStart", ",", "end", ",", "compUnitDecl", ".", "compilationResult", ")", ";", "}", "public", "void", "emptyControlFlowStatement", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "EmptyControlFlowStatement", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "enumAbstractMethodMustBeImplemented", "(", "AbstractMethodDeclaration", "method", ")", "{", "MethodBinding", "abstractMethod", "=", "method", ".", "binding", ";", "this", ".", "handle", "(", "IProblem", ".", "EnumAbstractMethodMustBeImplemented", ",", "new", "String", "[", "]", "{", "new", "String", "(", "abstractMethod", ".", "selector", ")", ",", "typesAsString", "(", "abstractMethod", ",", "false", ")", ",", "new", "String", "(", "abstractMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "abstractMethod", ".", "selector", ")", ",", "typesAsString", "(", "abstractMethod", ",", "true", ")", ",", "new", "String", "(", "abstractMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "method", ".", "sourceStart", "(", ")", ",", "method", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "enumConstantMustImplementAbstractMethod", "(", "AbstractMethodDeclaration", "method", ",", "FieldDeclaration", "field", ")", "{", "MethodBinding", "abstractMethod", "=", "method", ".", "binding", ";", "this", ".", "handle", "(", "IProblem", ".", "EnumConstantMustImplementAbstractMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "abstractMethod", ".", "selector", ")", ",", "typesAsString", "(", "abstractMethod", ",", "false", ")", ",", "new", "String", "(", "field", ".", "name", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "abstractMethod", ".", "selector", ")", ",", "typesAsString", "(", "abstractMethod", ",", "true", ")", ",", "new", "String", "(", "field", ".", "name", ")", ",", "}", ",", "field", ".", "sourceStart", "(", ")", ",", "field", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "enumConstantsCannotBeSurroundedByParenthesis", "(", "Expression", "expression", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "EnumConstantsCannotBeSurroundedByParenthesis", ",", "NoArgument", ",", "NoArgument", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "enumStaticFieldUsedDuringInitialization", "(", "FieldBinding", "field", ",", "ASTNode", "location", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "EnumStaticFieldInInInitializerContext", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", "}", ",", "nodeSourceStart", "(", "field", ",", "location", ")", ",", "nodeSourceEnd", "(", "field", ",", "location", ")", ")", ";", "}", "public", "void", "enumSwitchCannotTargetField", "(", "Reference", "reference", ",", "FieldBinding", "field", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "EnumSwitchCannotTargetField", ",", "new", "String", "[", "]", "{", "String", ".", "valueOf", "(", "field", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "String", ".", "valueOf", "(", "field", ".", "name", ")", "}", ",", "new", "String", "[", "]", "{", "String", ".", "valueOf", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "String", ".", "valueOf", "(", "field", ".", "name", ")", "}", ",", "nodeSourceStart", "(", "field", ",", "reference", ")", ",", "nodeSourceEnd", "(", "field", ",", "reference", ")", ")", ";", "}", "public", "void", "errorNoMethodFor", "(", "MessageSend", "messageSend", ",", "TypeBinding", "recType", ",", "TypeBinding", "[", "]", "params", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "StringBuffer", "shortBuffer", "=", "new", "StringBuffer", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "params", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", "!=", "0", ")", "{", "buffer", ".", "append", "(", "\",", "\"", ")", ";", "shortBuffer", ".", "append", "(", "\",", "\"", ")", ";", "}", "buffer", ".", "append", "(", "new", "String", "(", "params", "[", "i", "]", ".", "readableName", "(", ")", ")", ")", ";", "shortBuffer", ".", "append", "(", "new", "String", "(", "params", "[", "i", "]", ".", "shortReadableName", "(", ")", ")", ")", ";", "}", "int", "id", "=", "recType", ".", "isArrayType", "(", ")", "?", "IProblem", ".", "NoMessageSendOnArrayType", ":", "IProblem", ".", "NoMessageSendOnBaseType", ";", "this", ".", "handle", "(", "id", ",", "new", "String", "[", "]", "{", "new", "String", "(", "recType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "messageSend", ".", "selector", ")", ",", "buffer", ".", "toString", "(", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "recType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "messageSend", ".", "selector", ")", ",", "shortBuffer", ".", "toString", "(", ")", "}", ",", "messageSend", ".", "sourceStart", ",", "messageSend", ".", "sourceEnd", ")", ";", "}", "public", "void", "errorThisSuperInStatic", "(", "ASTNode", "reference", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "reference", ".", "isSuper", "(", ")", "?", "\"super\"", ":", "\"this\"", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "ThisInStaticContext", ",", "arguments", ",", "arguments", ",", "reference", ".", "sourceStart", ",", "reference", ".", "sourceEnd", ")", ";", "}", "public", "void", "expressionShouldBeAVariable", "(", "Expression", "expression", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "ExpressionShouldBeAVariable", ",", "NoArgument", ",", "NoArgument", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "fakeReachable", "(", "ASTNode", "location", ")", "{", "int", "sourceStart", "=", "location", ".", "sourceStart", ";", "int", "sourceEnd", "=", "location", ".", "sourceEnd", ";", "if", "(", "location", "instanceof", "LocalDeclaration", ")", "{", "LocalDeclaration", "declaration", "=", "(", "LocalDeclaration", ")", "location", ";", "sourceStart", "=", "declaration", ".", "declarationSourceStart", ";", "sourceEnd", "=", "declaration", ".", "declarationSourceEnd", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "DeadCode", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "fieldHiding", "(", "FieldDeclaration", "fieldDecl", ",", "Binding", "hiddenVariable", ")", "{", "FieldBinding", "field", "=", "fieldDecl", ".", "binding", ";", "if", "(", "CharOperation", ".", "equals", "(", "TypeConstants", ".", "SERIALVERSIONUID", ",", "field", ".", "name", ")", "&&", "field", ".", "isStatic", "(", ")", "&&", "field", ".", "isPrivate", "(", ")", "&&", "field", ".", "isFinal", "(", ")", "&&", "TypeBinding", ".", "LONG", "==", "field", ".", "type", ")", "{", "ReferenceBinding", "referenceBinding", "=", "field", ".", "declaringClass", ";", "if", "(", "referenceBinding", "!=", "null", ")", "{", "if", "(", "referenceBinding", ".", "findSuperTypeOriginatingFrom", "(", "TypeIds", ".", "T_JavaIoSerializable", ",", "false", ")", "!=", "null", ")", "{", "return", ";", "}", "}", "}", "if", "(", "CharOperation", ".", "equals", "(", "TypeConstants", ".", "SERIALPERSISTENTFIELDS", ",", "field", ".", "name", ")", "&&", "field", ".", "isStatic", "(", ")", "&&", "field", ".", "isPrivate", "(", ")", "&&", "field", ".", "isFinal", "(", ")", "&&", "field", ".", "type", ".", "dimensions", "(", ")", "==", "1", "&&", "CharOperation", ".", "equals", "(", "TypeConstants", ".", "CharArray_JAVA_IO_OBJECTSTREAMFIELD", ",", "field", ".", "type", ".", "leafComponentType", "(", ")", ".", "readableName", "(", ")", ")", ")", "{", "ReferenceBinding", "referenceBinding", "=", "field", ".", "declaringClass", ";", "if", "(", "referenceBinding", "!=", "null", ")", "{", "if", "(", "referenceBinding", ".", "findSuperTypeOriginatingFrom", "(", "TypeIds", ".", "T_JavaIoSerializable", ",", "false", ")", "!=", "null", ")", "{", "return", ";", "}", "}", "}", "boolean", "isLocal", "=", "hiddenVariable", "instanceof", "LocalVariableBinding", ";", "int", "severity", "=", "computeSeverity", "(", "isLocal", "?", "IProblem", ".", "FieldHidingLocalVariable", ":", "IProblem", ".", "FieldHidingField", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "isLocal", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "FieldHidingLocalVariable", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", "}", ",", "severity", ",", "nodeSourceStart", "(", "hiddenVariable", ",", "fieldDecl", ")", ",", "nodeSourceEnd", "(", "hiddenVariable", ",", "fieldDecl", ")", ")", ";", "}", "else", "if", "(", "hiddenVariable", "instanceof", "FieldBinding", ")", "{", "FieldBinding", "hiddenField", "=", "(", "FieldBinding", ")", "hiddenVariable", ";", "this", ".", "handle", "(", "IProblem", ".", "FieldHidingField", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", ",", "new", "String", "(", "hiddenField", ".", "declaringClass", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", ",", "new", "String", "(", "hiddenField", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ",", "severity", ",", "nodeSourceStart", "(", "hiddenField", ",", "fieldDecl", ")", ",", "nodeSourceEnd", "(", "hiddenField", ",", "fieldDecl", ")", ")", ";", "}", "}", "public", "void", "fieldsOrThisBeforeConstructorInvocation", "(", "ThisReference", "reference", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "ThisSuperDuringConstructorInvocation", ",", "NoArgument", ",", "NoArgument", ",", "reference", ".", "sourceStart", ",", "reference", ".", "sourceEnd", ")", ";", "}", "public", "void", "finallyMustCompleteNormally", "(", "Block", "finallyBlock", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "FinallyMustCompleteNormally", ",", "NoArgument", ",", "NoArgument", ",", "finallyBlock", ".", "sourceStart", ",", "finallyBlock", ".", "sourceEnd", ")", ";", "}", "public", "void", "finalMethodCannotBeOverridden", "(", "MethodBinding", "currentMethod", ",", "MethodBinding", "inheritedMethod", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "FinalMethodCannotBeOverridden", ",", "new", "String", "[", "]", "{", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ",", "currentMethod", ".", "sourceStart", "(", ")", ",", "currentMethod", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "finalVariableBound", "(", "TypeVariableBinding", "typeVariable", ",", "TypeReference", "typeRef", ")", "{", "if", "(", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "return", ";", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "FinalBoundForTypeVariable", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "this", ".", "handle", "(", "IProblem", ".", "FinalBoundForTypeVariable", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeVariable", ".", "sourceName", ")", ",", "new", "String", "(", "typeRef", ".", "resolvedType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeVariable", ".", "sourceName", ")", ",", "new", "String", "(", "typeRef", ".", "resolvedType", ".", "shortReadableName", "(", ")", ")", "}", ",", "severity", ",", "typeRef", ".", "sourceStart", ",", "typeRef", ".", "sourceEnd", ")", ";", "}", "public", "void", "forbiddenReference", "(", "FieldBinding", "field", ",", "ASTNode", "location", ",", "byte", "classpathEntryType", ",", "String", "classpathEntryName", ",", "int", "problemId", ")", "{", "int", "severity", "=", "computeSeverity", "(", "problemId", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "this", ".", "handle", "(", "problemId", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "readableName", "(", ")", ")", "}", ",", "getElaborationId", "(", "IProblem", ".", "ForbiddenReference", ",", "(", "byte", ")", "(", "FIELD_ACCESS", "|", "classpathEntryType", ")", ")", ",", "new", "String", "[", "]", "{", "classpathEntryName", ",", "new", "String", "(", "field", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ",", "severity", ",", "nodeSourceStart", "(", "field", ",", "location", ")", ",", "nodeSourceEnd", "(", "field", ",", "location", ")", ")", ";", "}", "public", "void", "forbiddenReference", "(", "MethodBinding", "method", ",", "ASTNode", "location", ",", "byte", "classpathEntryType", ",", "String", "classpathEntryName", ",", "int", "problemId", ")", "{", "int", "severity", "=", "computeSeverity", "(", "problemId", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "method", ".", "isConstructor", "(", ")", ")", "this", ".", "handle", "(", "problemId", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "readableName", "(", ")", ")", "}", ",", "getElaborationId", "(", "IProblem", ".", "ForbiddenReference", ",", "(", "byte", ")", "(", "CONSTRUCTOR_ACCESS", "|", "classpathEntryType", ")", ")", ",", "new", "String", "[", "]", "{", "classpathEntryName", ",", "new", "String", "(", "method", ".", "shortReadableName", "(", ")", ")", "}", ",", "severity", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "else", "this", ".", "handle", "(", "problemId", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "readableName", "(", ")", ")", "}", ",", "getElaborationId", "(", "IProblem", ".", "ForbiddenReference", ",", "(", "byte", ")", "(", "METHOD_ACCESS", "|", "classpathEntryType", ")", ")", ",", "new", "String", "[", "]", "{", "classpathEntryName", ",", "new", "String", "(", "method", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ",", "severity", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "forbiddenReference", "(", "TypeBinding", "type", ",", "ASTNode", "location", ",", "byte", "classpathEntryType", ",", "String", "classpathEntryName", ",", "int", "problemId", ")", "{", "if", "(", "location", "==", "null", ")", "return", ";", "int", "severity", "=", "computeSeverity", "(", "problemId", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "this", ".", "handle", "(", "problemId", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", "}", ",", "getElaborationId", "(", "IProblem", ".", "ForbiddenReference", ",", "classpathEntryType", ")", ",", "new", "String", "[", "]", "{", "classpathEntryName", ",", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", "}", ",", "severity", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "forwardReference", "(", "Reference", "reference", ",", "int", "indexInQualification", ",", "FieldBinding", "field", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "ReferenceToForwardField", ",", "NoArgument", ",", "NoArgument", ",", "nodeSourceStart", "(", "field", ",", "reference", ",", "indexInQualification", ")", ",", "nodeSourceEnd", "(", "field", ",", "reference", ",", "indexInQualification", ")", ")", ";", "}", "public", "void", "forwardTypeVariableReference", "(", "ASTNode", "location", ",", "TypeVariableBinding", "type", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "ReferenceToForwardTypeVariable", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "genericTypeCannotExtendThrowable", "(", "TypeDeclaration", "typeDecl", ")", "{", "ASTNode", "location", "=", "typeDecl", ".", "binding", ".", "isAnonymousType", "(", ")", "?", "typeDecl", ".", "allocation", ".", "type", ":", "typeDecl", ".", "superclass", ";", "this", ".", "handle", "(", "IProblem", ".", "GenericTypeCannotExtendThrowable", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeDecl", ".", "binding", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeDecl", ".", "binding", ".", "shortReadableName", "(", ")", ")", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "private", "void", "handle", "(", "int", "problemId", ",", "String", "[", "]", "problemArguments", ",", "int", "elaborationId", ",", "String", "[", "]", "messageArguments", ",", "int", "severity", ",", "int", "problemStartPosition", ",", "int", "problemEndPosition", ")", "{", "this", ".", "handle", "(", "problemId", ",", "problemArguments", ",", "elaborationId", ",", "messageArguments", ",", "severity", ",", "problemStartPosition", ",", "problemEndPosition", ",", "this", ".", "referenceContext", ",", "this", ".", "referenceContext", "==", "null", "?", "null", ":", "this", ".", "referenceContext", ".", "compilationResult", "(", ")", ")", ";", "this", ".", "referenceContext", "=", "null", ";", "}", "private", "void", "handle", "(", "int", "problemId", ",", "String", "[", "]", "problemArguments", ",", "String", "[", "]", "messageArguments", ",", "int", "problemStartPosition", ",", "int", "problemEndPosition", ")", "{", "this", ".", "handle", "(", "problemId", ",", "problemArguments", ",", "messageArguments", ",", "problemStartPosition", ",", "problemEndPosition", ",", "this", ".", "referenceContext", ",", "this", ".", "referenceContext", "==", "null", "?", "null", ":", "this", ".", "referenceContext", ".", "compilationResult", "(", ")", ")", ";", "this", ".", "referenceContext", "=", "null", ";", "}", "private", "void", "handle", "(", "int", "problemId", ",", "String", "[", "]", "problemArguments", ",", "String", "[", "]", "messageArguments", ",", "int", "problemStartPosition", ",", "int", "problemEndPosition", ",", "CompilationResult", "unitResult", ")", "{", "this", ".", "handle", "(", "problemId", ",", "problemArguments", ",", "messageArguments", ",", "problemStartPosition", ",", "problemEndPosition", ",", "this", ".", "referenceContext", ",", "unitResult", ")", ";", "this", ".", "referenceContext", "=", "null", ";", "}", "private", "void", "handle", "(", "int", "problemId", ",", "String", "[", "]", "problemArguments", ",", "String", "[", "]", "messageArguments", ",", "int", "severity", ",", "int", "problemStartPosition", ",", "int", "problemEndPosition", ")", "{", "this", ".", "handle", "(", "problemId", ",", "problemArguments", ",", "0", ",", "messageArguments", ",", "severity", ",", "problemStartPosition", ",", "problemEndPosition", ")", ";", "}", "public", "void", "hiddenCatchBlock", "(", "ReferenceBinding", "exceptionType", ",", "ASTNode", "location", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "MaskedCatch", ",", "new", "String", "[", "]", "{", "new", "String", "(", "exceptionType", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "exceptionType", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "hierarchyCircularity", "(", "SourceTypeBinding", "sourceType", ",", "ReferenceBinding", "superType", ",", "TypeReference", "reference", ")", "{", "int", "start", "=", "0", ";", "int", "end", "=", "0", ";", "if", "(", "reference", "==", "null", ")", "{", "start", "=", "sourceType", ".", "sourceStart", "(", ")", ";", "end", "=", "sourceType", ".", "sourceEnd", "(", ")", ";", "}", "else", "{", "start", "=", "reference", ".", "sourceStart", ";", "end", "=", "reference", ".", "sourceEnd", ";", "}", "if", "(", "sourceType", "==", "superType", ")", "this", ".", "handle", "(", "IProblem", ".", "HierarchyCircularitySelfReference", ",", "new", "String", "[", "]", "{", "new", "String", "(", "sourceType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "sourceType", ".", "shortReadableName", "(", ")", ")", "}", ",", "start", ",", "end", ")", ";", "else", "this", ".", "handle", "(", "IProblem", ".", "HierarchyCircularity", ",", "new", "String", "[", "]", "{", "new", "String", "(", "sourceType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "superType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "sourceType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "superType", ".", "shortReadableName", "(", ")", ")", "}", ",", "start", ",", "end", ")", ";", "}", "public", "void", "hierarchyCircularity", "(", "TypeVariableBinding", "type", ",", "ReferenceBinding", "superType", ",", "TypeReference", "reference", ")", "{", "int", "start", "=", "0", ";", "int", "end", "=", "0", ";", "start", "=", "reference", ".", "sourceStart", ";", "end", "=", "reference", ".", "sourceEnd", ";", "if", "(", "type", "==", "superType", ")", "this", ".", "handle", "(", "IProblem", ".", "HierarchyCircularitySelfReference", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", "}", ",", "start", ",", "end", ")", ";", "else", "this", ".", "handle", "(", "IProblem", ".", "HierarchyCircularity", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "superType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "superType", ".", "shortReadableName", "(", ")", ")", "}", ",", "start", ",", "end", ")", ";", "}", "public", "void", "hierarchyHasProblems", "(", "SourceTypeBinding", "type", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "HierarchyHasProblems", ",", "arguments", ",", "arguments", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "illegalAbstractModifierCombinationForMethod", "(", "ReferenceBinding", "type", ",", "AbstractMethodDeclaration", "methodDecl", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", ",", "new", "String", "(", "methodDecl", ".", "selector", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalAbstractModifierCombinationForMethod", ",", "arguments", ",", "arguments", ",", "methodDecl", ".", "sourceStart", ",", "methodDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalAccessFromTypeVariable", "(", "TypeVariableBinding", "variable", ",", "ASTNode", "location", ")", "{", "if", "(", "(", "location", ".", "bits", "&", "ASTNode", ".", "InsideJavadoc", ")", "!=", "0", ")", "{", "javadocInvalidReference", "(", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "else", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "variable", ".", "sourceName", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalAccessFromTypeVariable", ",", "arguments", ",", "arguments", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "illegalClassLiteralForTypeVariable", "(", "TypeVariableBinding", "variable", ",", "ASTNode", "location", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "variable", ".", "sourceName", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalClassLiteralForTypeVariable", ",", "arguments", ",", "arguments", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalExtendedDimensions", "(", "AnnotationMethodDeclaration", "annotationTypeMemberDeclaration", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "IllegalExtendedDimensions", ",", "NoArgument", ",", "NoArgument", ",", "annotationTypeMemberDeclaration", ".", "sourceStart", ",", "annotationTypeMemberDeclaration", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalExtendedDimensions", "(", "Argument", "argument", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "IllegalExtendedDimensionsForVarArgs", ",", "NoArgument", ",", "NoArgument", ",", "argument", ".", "sourceStart", ",", "argument", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalGenericArray", "(", "TypeBinding", "leafComponentType", ",", "ASTNode", "location", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "IllegalGenericArray", ",", "new", "String", "[", "]", "{", "new", "String", "(", "leafComponentType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "leafComponentType", ".", "shortReadableName", "(", ")", ")", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalInstanceOfGenericType", "(", "TypeBinding", "checkedType", ",", "ASTNode", "location", ")", "{", "TypeBinding", "erasedType", "=", "checkedType", ".", "leafComponentType", "(", ")", ".", "erasure", "(", ")", ";", "StringBuffer", "recommendedFormBuffer", "=", "new", "StringBuffer", "(", "10", ")", ";", "if", "(", "erasedType", "instanceof", "ReferenceBinding", ")", "{", "ReferenceBinding", "referenceBinding", "=", "(", "ReferenceBinding", ")", "erasedType", ";", "recommendedFormBuffer", ".", "append", "(", "referenceBinding", ".", "qualifiedSourceName", "(", ")", ")", ";", "}", "else", "{", "recommendedFormBuffer", ".", "append", "(", "erasedType", ".", "sourceName", "(", ")", ")", ";", "}", "int", "count", "=", "erasedType", ".", "typeVariables", "(", ")", ".", "length", ";", "if", "(", "count", ">", "0", ")", "{", "recommendedFormBuffer", ".", "append", "(", "'<'", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "count", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "{", "recommendedFormBuffer", ".", "append", "(", "','", ")", ";", "}", "recommendedFormBuffer", ".", "append", "(", "'?'", ")", ";", "}", "recommendedFormBuffer", ".", "append", "(", "'>'", ")", ";", "}", "for", "(", "int", "i", "=", "0", ",", "dim", "=", "checkedType", ".", "dimensions", "(", ")", ";", "i", "<", "dim", ";", "i", "++", ")", "{", "recommendedFormBuffer", ".", "append", "(", "\"[]\"", ")", ";", "}", "String", "recommendedForm", "=", "recommendedFormBuffer", ".", "toString", "(", ")", ";", "if", "(", "checkedType", ".", "leafComponentType", "(", ")", ".", "isTypeVariable", "(", ")", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "IllegalInstanceofTypeParameter", ",", "new", "String", "[", "]", "{", "new", "String", "(", "checkedType", ".", "readableName", "(", ")", ")", ",", "recommendedForm", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "checkedType", ".", "shortReadableName", "(", ")", ")", ",", "recommendedForm", ",", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "return", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "IllegalInstanceofParameterizedType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "checkedType", ".", "readableName", "(", ")", ")", ",", "recommendedForm", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "checkedType", ".", "shortReadableName", "(", ")", ")", ",", "recommendedForm", ",", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalLocalTypeDeclaration", "(", "TypeDeclaration", "typeDeclaration", ")", "{", "if", "(", "isRecoveredName", "(", "typeDeclaration", ".", "name", ")", ")", "return", ";", "int", "problemID", "=", "0", ";", "if", "(", "(", "typeDeclaration", ".", "modifiers", "&", "ClassFileConstants", ".", "AccEnum", ")", "!=", "0", ")", "{", "problemID", "=", "IProblem", ".", "CannotDefineEnumInLocalType", ";", "}", "else", "if", "(", "(", "typeDeclaration", ".", "modifiers", "&", "ClassFileConstants", ".", "AccAnnotation", ")", "!=", "0", ")", "{", "problemID", "=", "IProblem", ".", "CannotDefineAnnotationInLocalType", ";", "}", "else", "if", "(", "(", "typeDeclaration", ".", "modifiers", "&", "ClassFileConstants", ".", "AccInterface", ")", "!=", "0", ")", "{", "problemID", "=", "IProblem", ".", "CannotDefineInterfaceInLocalType", ";", "}", "if", "(", "problemID", "!=", "0", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "typeDeclaration", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "problemID", ",", "arguments", ",", "arguments", ",", "typeDeclaration", ".", "sourceStart", ",", "typeDeclaration", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "illegalModifierCombinationFinalAbstractForClass", "(", "SourceTypeBinding", "type", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalModifierCombinationFinalAbstractForClass", ",", "arguments", ",", "arguments", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "illegalModifierCombinationFinalVolatileForField", "(", "ReferenceBinding", "type", ",", "FieldDeclaration", "fieldDecl", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "fieldDecl", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalModifierCombinationFinalVolatileForField", ",", "arguments", ",", "arguments", ",", "fieldDecl", ".", "sourceStart", ",", "fieldDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalModifierForAnnotationField", "(", "FieldDeclaration", "fieldDecl", ")", "{", "String", "name", "=", "new", "String", "(", "fieldDecl", ".", "name", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalModifierForAnnotationField", ",", "new", "String", "[", "]", "{", "new", "String", "(", "fieldDecl", ".", "binding", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "name", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "fieldDecl", ".", "binding", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "name", ",", "}", ",", "fieldDecl", ".", "sourceStart", ",", "fieldDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalModifierForAnnotationMember", "(", "AbstractMethodDeclaration", "methodDecl", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "IllegalModifierForAnnotationMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "methodDecl", ".", "binding", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "methodDecl", ".", "selector", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "methodDecl", ".", "binding", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "methodDecl", ".", "selector", ")", ",", "}", ",", "methodDecl", ".", "sourceStart", ",", "methodDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalModifierForAnnotationMemberType", "(", "SourceTypeBinding", "type", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalModifierForAnnotationMemberType", ",", "arguments", ",", "arguments", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "illegalModifierForAnnotationType", "(", "SourceTypeBinding", "type", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalModifierForAnnotationType", ",", "arguments", ",", "arguments", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "illegalModifierForClass", "(", "SourceTypeBinding", "type", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalModifierForClass", ",", "arguments", ",", "arguments", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "illegalModifierForEnum", "(", "SourceTypeBinding", "type", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalModifierForEnum", ",", "arguments", ",", "arguments", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "illegalModifierForEnumConstant", "(", "ReferenceBinding", "type", ",", "FieldDeclaration", "fieldDecl", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "fieldDecl", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalModifierForEnumConstant", ",", "arguments", ",", "arguments", ",", "fieldDecl", ".", "sourceStart", ",", "fieldDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalModifierForEnumConstructor", "(", "AbstractMethodDeclaration", "constructor", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "IllegalModifierForEnumConstructor", ",", "NoArgument", ",", "NoArgument", ",", "constructor", ".", "sourceStart", ",", "constructor", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalModifierForField", "(", "ReferenceBinding", "type", ",", "FieldDeclaration", "fieldDecl", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "fieldDecl", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalModifierForField", ",", "arguments", ",", "arguments", ",", "fieldDecl", ".", "sourceStart", ",", "fieldDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalModifierForInterface", "(", "SourceTypeBinding", "type", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalModifierForInterface", ",", "arguments", ",", "arguments", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "illegalModifierForInterfaceField", "(", "FieldDeclaration", "fieldDecl", ")", "{", "String", "name", "=", "new", "String", "(", "fieldDecl", ".", "name", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalModifierForInterfaceField", ",", "new", "String", "[", "]", "{", "new", "String", "(", "fieldDecl", ".", "binding", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "name", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "fieldDecl", ".", "binding", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "name", ",", "}", ",", "fieldDecl", ".", "sourceStart", ",", "fieldDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalModifierForInterfaceMethod", "(", "AbstractMethodDeclaration", "methodDecl", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "IllegalModifierForInterfaceMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "methodDecl", ".", "selector", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "methodDecl", ".", "selector", ")", "}", ",", "methodDecl", ".", "sourceStart", ",", "methodDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalModifierForLocalClass", "(", "SourceTypeBinding", "type", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalModifierForLocalClass", ",", "arguments", ",", "arguments", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "illegalModifierForMemberClass", "(", "SourceTypeBinding", "type", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalModifierForMemberClass", ",", "arguments", ",", "arguments", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "illegalModifierForMemberEnum", "(", "SourceTypeBinding", "type", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalModifierForMemberEnum", ",", "arguments", ",", "arguments", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "illegalModifierForMemberInterface", "(", "SourceTypeBinding", "type", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalModifierForMemberInterface", ",", "arguments", ",", "arguments", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "illegalModifierForMethod", "(", "AbstractMethodDeclaration", "methodDecl", ")", "{", "this", ".", "handle", "(", "methodDecl", ".", "isConstructor", "(", ")", "?", "IProblem", ".", "IllegalModifierForConstructor", ":", "IProblem", ".", "IllegalModifierForMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "methodDecl", ".", "selector", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "methodDecl", ".", "selector", ")", "}", ",", "methodDecl", ".", "sourceStart", ",", "methodDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalModifierForVariable", "(", "LocalDeclaration", "localDecl", ",", "boolean", "complainAsArgument", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "localDecl", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "complainAsArgument", "?", "IProblem", ".", "IllegalModifierForArgument", ":", "IProblem", ".", "IllegalModifierForVariable", ",", "arguments", ",", "arguments", ",", "localDecl", ".", "sourceStart", ",", "localDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalPrimitiveOrArrayTypeForEnclosingInstance", "(", "TypeBinding", "enclosingType", ",", "ASTNode", "location", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "IllegalPrimitiveOrArrayTypeForEnclosingInstance", ",", "new", "String", "[", "]", "{", "new", "String", "(", "enclosingType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "enclosingType", ".", "shortReadableName", "(", ")", ")", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalQualifiedParameterizedTypeAllocation", "(", "TypeReference", "qualifiedTypeReference", ",", "TypeBinding", "allocatedType", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "IllegalQualifiedParameterizedTypeAllocation", ",", "new", "String", "[", "]", "{", "new", "String", "(", "allocatedType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "allocatedType", ".", "enclosingType", "(", ")", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "allocatedType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "allocatedType", ".", "enclosingType", "(", ")", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "qualifiedTypeReference", ".", "sourceStart", ",", "qualifiedTypeReference", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalStaticModifierForMemberType", "(", "SourceTypeBinding", "type", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalStaticModifierForMemberType", ",", "arguments", ",", "arguments", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "illegalUsageOfQualifiedTypeReference", "(", "QualifiedTypeReference", "qualifiedTypeReference", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "char", "[", "]", "[", "]", "tokens", "=", "qualifiedTypeReference", ".", "tokens", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "tokens", ".", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "buffer", ".", "append", "(", "'.'", ")", ";", "buffer", ".", "append", "(", "tokens", "[", "i", "]", ")", ";", "}", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "String", ".", "valueOf", "(", "buffer", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalUsageOfQualifiedTypeReference", ",", "arguments", ",", "arguments", ",", "qualifiedTypeReference", ".", "sourceStart", ",", "qualifiedTypeReference", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalUsageOfWildcard", "(", "TypeReference", "wildcard", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidUsageOfWildcard", ",", "NoArgument", ",", "NoArgument", ",", "wildcard", ".", "sourceStart", ",", "wildcard", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalVararg", "(", "Argument", "argType", ",", "AbstractMethodDeclaration", "methodDecl", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "CharOperation", ".", "toString", "(", "argType", ".", "type", ".", "getTypeName", "(", ")", ")", ",", "new", "String", "(", "methodDecl", ".", "selector", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalVararg", ",", "arguments", ",", "arguments", ",", "argType", ".", "sourceStart", ",", "argType", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalVisibilityModifierCombinationForField", "(", "ReferenceBinding", "type", ",", "FieldDeclaration", "fieldDecl", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "fieldDecl", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalVisibilityModifierCombinationForField", ",", "arguments", ",", "arguments", ",", "fieldDecl", ".", "sourceStart", ",", "fieldDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalVisibilityModifierCombinationForMemberType", "(", "SourceTypeBinding", "type", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalVisibilityModifierCombinationForMemberType", ",", "arguments", ",", "arguments", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "illegalVisibilityModifierCombinationForMethod", "(", "ReferenceBinding", "type", ",", "AbstractMethodDeclaration", "methodDecl", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", ",", "new", "String", "(", "methodDecl", ".", "selector", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalVisibilityModifierCombinationForMethod", ",", "arguments", ",", "arguments", ",", "methodDecl", ".", "sourceStart", ",", "methodDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalVisibilityModifierForInterfaceMemberType", "(", "SourceTypeBinding", "type", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalVisibilityModifierForInterfaceMemberType", ",", "arguments", ",", "arguments", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "illegalVoidExpression", "(", "ASTNode", "location", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidVoidExpression", ",", "NoArgument", ",", "NoArgument", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "importProblem", "(", "ImportReference", "importRef", ",", "Binding", "expectedImport", ")", "{", "if", "(", "expectedImport", "instanceof", "FieldBinding", ")", "{", "int", "id", "=", "IProblem", ".", "UndefinedField", ";", "FieldBinding", "field", "=", "(", "FieldBinding", ")", "expectedImport", ";", "String", "[", "]", "readableArguments", "=", "null", ";", "String", "[", "]", "shortArguments", "=", "null", ";", "switch", "(", "expectedImport", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotVisible", ":", "id", "=", "IProblem", ".", "NotVisibleField", ";", "readableArguments", "=", "new", "String", "[", "]", "{", "CharOperation", ".", "toString", "(", "importRef", ".", "tokens", ")", ",", "new", "String", "(", "field", ".", "declaringClass", ".", "readableName", "(", ")", ")", "}", ";", "shortArguments", "=", "new", "String", "[", "]", "{", "CharOperation", ".", "toString", "(", "importRef", ".", "tokens", ")", ",", "new", "String", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ";", "break", ";", "case", "ProblemReasons", ".", "Ambiguous", ":", "id", "=", "IProblem", ".", "AmbiguousField", ";", "readableArguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "readableName", "(", ")", ")", "}", ";", "shortArguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "readableName", "(", ")", ")", "}", ";", "break", ";", "case", "ProblemReasons", ".", "ReceiverTypeNotVisible", ":", "id", "=", "IProblem", ".", "NotVisibleType", ";", "readableArguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "leafComponentType", "(", ")", ".", "readableName", "(", ")", ")", "}", ";", "shortArguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "leafComponentType", "(", ")", ".", "shortReadableName", "(", ")", ")", "}", ";", "break", ";", "}", "this", ".", "handle", "(", "id", ",", "readableArguments", ",", "shortArguments", ",", "nodeSourceStart", "(", "field", ",", "importRef", ")", ",", "nodeSourceEnd", "(", "field", ",", "importRef", ")", ")", ";", "return", ";", "}", "if", "(", "expectedImport", ".", "problemId", "(", ")", "==", "ProblemReasons", ".", "NotFound", ")", "{", "char", "[", "]", "[", "]", "tokens", "=", "expectedImport", "instanceof", "ProblemReferenceBinding", "?", "(", "(", "ProblemReferenceBinding", ")", "expectedImport", ")", ".", "compoundName", ":", "importRef", ".", "tokens", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "CharOperation", ".", "toString", "(", "tokens", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "ImportNotFound", ",", "arguments", ",", "arguments", ",", "importRef", ".", "sourceStart", ",", "(", "int", ")", "importRef", ".", "sourcePositions", "[", "tokens", ".", "length", "-", "1", "]", ")", ";", "return", ";", "}", "if", "(", "expectedImport", ".", "problemId", "(", ")", "==", "ProblemReasons", ".", "InvalidTypeForStaticImport", ")", "{", "char", "[", "]", "[", "]", "tokens", "=", "importRef", ".", "tokens", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "CharOperation", ".", "toString", "(", "tokens", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "InvalidTypeForStaticImport", ",", "arguments", ",", "arguments", ",", "importRef", ".", "sourceStart", ",", "(", "int", ")", "importRef", ".", "sourcePositions", "[", "tokens", ".", "length", "-", "1", "]", ")", ";", "return", ";", "}", "invalidType", "(", "importRef", ",", "(", "TypeBinding", ")", "expectedImport", ")", ";", "}", "public", "void", "incompatibleExceptionInThrowsClause", "(", "SourceTypeBinding", "type", ",", "MethodBinding", "currentMethod", ",", "MethodBinding", "inheritedMethod", ",", "ReferenceBinding", "exceptionType", ")", "{", "if", "(", "type", "==", "currentMethod", ".", "declaringClass", ")", "{", "int", "id", ";", "if", "(", "currentMethod", ".", "declaringClass", ".", "isInterface", "(", ")", "&&", "!", "inheritedMethod", ".", "isPublic", "(", ")", ")", "{", "id", "=", "IProblem", ".", "IncompatibleExceptionInThrowsClauseForNonInheritedInterfaceMethod", ";", "}", "else", "{", "id", "=", "IProblem", ".", "IncompatibleExceptionInThrowsClause", ";", "}", "this", ".", "handle", "(", "id", ",", "new", "String", "[", "]", "{", "new", "String", "(", "exceptionType", ".", "sourceName", "(", ")", ")", ",", "new", "String", "(", "CharOperation", ".", "concat", "(", "inheritedMethod", ".", "declaringClass", ".", "readableName", "(", ")", ",", "inheritedMethod", ".", "readableName", "(", ")", ",", "'.'", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "exceptionType", ".", "sourceName", "(", ")", ")", ",", "new", "String", "(", "CharOperation", ".", "concat", "(", "inheritedMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ",", "inheritedMethod", ".", "shortReadableName", "(", ")", ",", "'.'", ")", ")", "}", ",", "currentMethod", ".", "sourceStart", "(", ")", ",", "currentMethod", ".", "sourceEnd", "(", ")", ")", ";", "}", "else", "this", ".", "handle", "(", "IProblem", ".", "IncompatibleExceptionInInheritedMethodThrowsClause", ",", "new", "String", "[", "]", "{", "new", "String", "(", "exceptionType", ".", "sourceName", "(", ")", ")", ",", "new", "String", "(", "CharOperation", ".", "concat", "(", "currentMethod", ".", "declaringClass", ".", "sourceName", "(", ")", ",", "currentMethod", ".", "readableName", "(", ")", ",", "'.'", ")", ")", ",", "new", "String", "(", "CharOperation", ".", "concat", "(", "inheritedMethod", ".", "declaringClass", ".", "readableName", "(", ")", ",", "inheritedMethod", ".", "readableName", "(", ")", ",", "'.'", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "exceptionType", ".", "sourceName", "(", ")", ")", ",", "new", "String", "(", "CharOperation", ".", "concat", "(", "currentMethod", ".", "declaringClass", ".", "sourceName", "(", ")", ",", "currentMethod", ".", "shortReadableName", "(", ")", ",", "'.'", ")", ")", ",", "new", "String", "(", "CharOperation", ".", "concat", "(", "inheritedMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ",", "inheritedMethod", ".", "shortReadableName", "(", ")", ",", "'.'", ")", ")", "}", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "incompatibleReturnType", "(", "MethodBinding", "currentMethod", ",", "MethodBinding", "inheritedMethod", ")", "{", "if", "(", "currentMethod", ".", "declaringClass", "instanceof", "SourceTypeBinding", ")", "{", "SourceTypeBinding", "stb", "=", "(", "SourceTypeBinding", ")", "currentMethod", ".", "declaringClass", ";", "if", "(", "stb", ".", "scope", "!=", "null", "&&", "!", "stb", ".", "scope", ".", "shouldReport", "(", "IProblem", ".", "IncompatibleReturnType", ")", ")", "{", "return", ";", "}", "}", "StringBuffer", "methodSignature", "=", "new", "StringBuffer", "(", ")", ";", "methodSignature", ".", "append", "(", "inheritedMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ".", "append", "(", "'.'", ")", ".", "append", "(", "inheritedMethod", ".", "readableName", "(", ")", ")", ";", "StringBuffer", "shortSignature", "=", "new", "StringBuffer", "(", ")", ";", "shortSignature", ".", "append", "(", "inheritedMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ".", "append", "(", "'.'", ")", ".", "append", "(", "inheritedMethod", ".", "shortReadableName", "(", ")", ")", ";", "int", "id", ";", "final", "ReferenceBinding", "declaringClass", "=", "currentMethod", ".", "declaringClass", ";", "if", "(", "declaringClass", ".", "isInterface", "(", ")", "&&", "!", "inheritedMethod", ".", "isPublic", "(", ")", ")", "{", "id", "=", "IProblem", ".", "IncompatibleReturnTypeForNonInheritedInterfaceMethod", ";", "}", "else", "{", "id", "=", "IProblem", ".", "IncompatibleReturnType", ";", "}", "AbstractMethodDeclaration", "method", "=", "currentMethod", ".", "sourceMethod", "(", ")", ";", "int", "sourceStart", "=", "0", ";", "int", "sourceEnd", "=", "0", ";", "if", "(", "method", "==", "null", ")", "{", "if", "(", "declaringClass", "instanceof", "SourceTypeBinding", ")", "{", "SourceTypeBinding", "sourceTypeBinding", "=", "(", "SourceTypeBinding", ")", "declaringClass", ";", "sourceStart", "=", "sourceTypeBinding", ".", "sourceStart", "(", ")", ";", "sourceEnd", "=", "sourceTypeBinding", ".", "sourceEnd", "(", ")", ";", "}", "}", "else", "if", "(", "method", ".", "isConstructor", "(", ")", ")", "{", "sourceStart", "=", "method", ".", "sourceStart", ";", "sourceEnd", "=", "method", ".", "sourceEnd", ";", "}", "else", "{", "TypeReference", "returnType", "=", "(", "(", "MethodDeclaration", ")", "method", ")", ".", "returnType", ";", "sourceStart", "=", "returnType", ".", "sourceStart", ";", "if", "(", "returnType", "instanceof", "ParameterizedSingleTypeReference", ")", "{", "ParameterizedSingleTypeReference", "typeReference", "=", "(", "ParameterizedSingleTypeReference", ")", "returnType", ";", "TypeReference", "[", "]", "typeArguments", "=", "typeReference", ".", "typeArguments", ";", "if", "(", "typeArguments", "[", "typeArguments", ".", "length", "-", "1", "]", ".", "sourceEnd", ">", "typeReference", ".", "sourceEnd", ")", "{", "sourceEnd", "=", "retrieveClosingAngleBracketPosition", "(", "typeReference", ".", "sourceEnd", ")", ";", "}", "else", "{", "sourceEnd", "=", "returnType", ".", "sourceEnd", ";", "}", "}", "else", "if", "(", "returnType", "instanceof", "ParameterizedQualifiedTypeReference", ")", "{", "ParameterizedQualifiedTypeReference", "typeReference", "=", "(", "ParameterizedQualifiedTypeReference", ")", "returnType", ";", "sourceEnd", "=", "retrieveClosingAngleBracketPosition", "(", "typeReference", ".", "sourceEnd", ")", ";", "}", "else", "{", "sourceEnd", "=", "returnType", ".", "sourceEnd", ";", "}", "}", "this", ".", "handle", "(", "id", ",", "new", "String", "[", "]", "{", "methodSignature", ".", "toString", "(", ")", "}", ",", "new", "String", "[", "]", "{", "shortSignature", ".", "toString", "(", ")", "}", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "incorrectArityForParameterizedType", "(", "ASTNode", "location", ",", "TypeBinding", "type", ",", "TypeBinding", "[", "]", "argumentTypes", ")", "{", "incorrectArityForParameterizedType", "(", "location", ",", "type", ",", "argumentTypes", ",", "Integer", ".", "MAX_VALUE", ")", ";", "}", "public", "void", "incorrectArityForParameterizedType", "(", "ASTNode", "location", ",", "TypeBinding", "type", ",", "TypeBinding", "[", "]", "argumentTypes", ",", "int", "index", ")", "{", "if", "(", "location", "==", "null", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "IncorrectArityForParameterizedType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "argumentTypes", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "argumentTypes", ",", "true", ")", "}", ",", "ProblemSeverities", ".", "AbortCompilation", "|", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Fatal", ",", "0", ",", "0", ")", ";", "return", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "IncorrectArityForParameterizedType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "argumentTypes", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "argumentTypes", ",", "true", ")", "}", ",", "location", ".", "sourceStart", ",", "nodeSourceEnd", "(", "null", ",", "location", ",", "index", ")", ")", ";", "}", "public", "void", "diamondNotBelow17", "(", "ASTNode", "location", ")", "{", "diamondNotBelow17", "(", "location", ",", "Integer", ".", "MAX_VALUE", ")", ";", "}", "public", "void", "diamondNotBelow17", "(", "ASTNode", "location", ",", "int", "index", ")", "{", "if", "(", "location", "==", "null", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "DiamondNotBelow17", ",", "NoArgument", ",", "NoArgument", ",", "ProblemSeverities", ".", "AbortCompilation", "|", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Fatal", ",", "0", ",", "0", ")", ";", "return", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "DiamondNotBelow17", ",", "NoArgument", ",", "NoArgument", ",", "location", ".", "sourceStart", ",", "nodeSourceEnd", "(", "null", ",", "location", ",", "index", ")", ")", ";", "}", "public", "void", "incorrectLocationForNonEmptyDimension", "(", "ArrayAllocationExpression", "expression", ",", "int", "index", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "IllegalDimension", ",", "NoArgument", ",", "NoArgument", ",", "expression", ".", "dimensions", "[", "index", "]", ".", "sourceStart", ",", "expression", ".", "dimensions", "[", "index", "]", ".", "sourceEnd", ")", ";", "}", "public", "void", "incorrectSwitchType", "(", "Expression", "expression", ",", "TypeBinding", "testType", ")", "{", "if", "(", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_7", ")", "{", "if", "(", "testType", ".", "id", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "SwitchOnStringsNotBelow17", ",", "new", "String", "[", "]", "{", "new", "String", "(", "testType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "testType", ".", "shortReadableName", "(", ")", ")", "}", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "else", "{", "if", "(", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", "&&", "testType", ".", "isEnum", "(", ")", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "SwitchOnEnumNotBelow15", ",", "new", "String", "[", "]", "{", "new", "String", "(", "testType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "testType", ".", "shortReadableName", "(", ")", ")", "}", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "else", "{", "this", ".", "handle", "(", "IProblem", ".", "IncorrectSwitchType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "testType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "testType", ".", "shortReadableName", "(", ")", ")", "}", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "}", "}", "else", "{", "this", ".", "handle", "(", "IProblem", ".", "IncorrectSwitchType17", ",", "new", "String", "[", "]", "{", "new", "String", "(", "testType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "testType", ".", "shortReadableName", "(", ")", ")", "}", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "indirectAccessToStaticField", "(", "ASTNode", "location", ",", "FieldBinding", "field", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "IndirectAccessToStaticField", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "this", ".", "handle", "(", "IProblem", ".", "IndirectAccessToStaticField", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", "}", ",", "severity", ",", "nodeSourceStart", "(", "field", ",", "location", ")", ",", "nodeSourceEnd", "(", "field", ",", "location", ")", ")", ";", "}", "public", "void", "indirectAccessToStaticMethod", "(", "ASTNode", "location", ",", "MethodBinding", "method", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "IndirectAccessToStaticMethod", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "this", ".", "handle", "(", "IProblem", ".", "IndirectAccessToStaticMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "severity", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "private", "void", "inheritedMethodReducesVisibility", "(", "int", "sourceStart", ",", "int", "sourceEnd", ",", "MethodBinding", "concreteMethod", ",", "MethodBinding", "[", "]", "abstractMethods", ")", "{", "StringBuffer", "concreteSignature", "=", "new", "StringBuffer", "(", ")", ";", "concreteSignature", ".", "append", "(", "concreteMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ".", "append", "(", "'.'", ")", ".", "append", "(", "concreteMethod", ".", "readableName", "(", ")", ")", ";", "StringBuffer", "shortSignature", "=", "new", "StringBuffer", "(", ")", ";", "shortSignature", ".", "append", "(", "concreteMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ".", "append", "(", "'.'", ")", ".", "append", "(", "concreteMethod", ".", "shortReadableName", "(", ")", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "InheritedMethodReducesVisibility", ",", "new", "String", "[", "]", "{", "concreteSignature", ".", "toString", "(", ")", ",", "new", "String", "(", "abstractMethods", "[", "0", "]", ".", "declaringClass", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "shortSignature", ".", "toString", "(", ")", ",", "new", "String", "(", "abstractMethods", "[", "0", "]", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "inheritedMethodReducesVisibility", "(", "SourceTypeBinding", "type", ",", "MethodBinding", "concreteMethod", ",", "MethodBinding", "[", "]", "abstractMethods", ")", "{", "inheritedMethodReducesVisibility", "(", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ",", "concreteMethod", ",", "abstractMethods", ")", ";", "}", "public", "void", "inheritedMethodReducesVisibility", "(", "TypeParameter", "typeParameter", ",", "MethodBinding", "concreteMethod", ",", "MethodBinding", "[", "]", "abstractMethods", ")", "{", "inheritedMethodReducesVisibility", "(", "typeParameter", ".", "sourceStart", "(", ")", ",", "typeParameter", ".", "sourceEnd", "(", ")", ",", "concreteMethod", ",", "abstractMethods", ")", ";", "}", "public", "void", "inheritedMethodsHaveIncompatibleReturnTypes", "(", "ASTNode", "location", ",", "MethodBinding", "[", "]", "inheritedMethods", ",", "int", "length", ")", "{", "StringBuffer", "methodSignatures", "=", "new", "StringBuffer", "(", ")", ";", "StringBuffer", "shortSignatures", "=", "new", "StringBuffer", "(", ")", ";", "for", "(", "int", "i", "=", "length", ";", "--", "i", ">=", "0", ";", ")", "{", "methodSignatures", ".", "append", "(", "inheritedMethods", "[", "i", "]", ".", "declaringClass", ".", "readableName", "(", ")", ")", ".", "append", "(", "'.'", ")", ".", "append", "(", "inheritedMethods", "[", "i", "]", ".", "readableName", "(", ")", ")", ";", "shortSignatures", ".", "append", "(", "inheritedMethods", "[", "i", "]", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ".", "append", "(", "'.'", ")", ".", "append", "(", "inheritedMethods", "[", "i", "]", ".", "shortReadableName", "(", ")", ")", ";", "if", "(", "i", "!=", "0", ")", "{", "methodSignatures", ".", "append", "(", "\",", "\"", ")", ";", "shortSignatures", ".", "append", "(", "\",", "\"", ")", ";", "}", "}", "this", ".", "handle", "(", "IProblem", ".", "InheritedIncompatibleReturnType", ",", "new", "String", "[", "]", "{", "methodSignatures", ".", "toString", "(", ")", "}", ",", "new", "String", "[", "]", "{", "shortSignatures", ".", "toString", "(", ")", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "inheritedMethodsHaveIncompatibleReturnTypes", "(", "SourceTypeBinding", "type", ",", "MethodBinding", "[", "]", "inheritedMethods", ",", "int", "length", ")", "{", "StringBuffer", "methodSignatures", "=", "new", "StringBuffer", "(", ")", ";", "StringBuffer", "shortSignatures", "=", "new", "StringBuffer", "(", ")", ";", "for", "(", "int", "i", "=", "length", ";", "--", "i", ">=", "0", ";", ")", "{", "methodSignatures", ".", "append", "(", "inheritedMethods", "[", "i", "]", ".", "declaringClass", ".", "readableName", "(", ")", ")", ".", "append", "(", "'.'", ")", ".", "append", "(", "inheritedMethods", "[", "i", "]", ".", "readableName", "(", ")", ")", ";", "shortSignatures", ".", "append", "(", "inheritedMethods", "[", "i", "]", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ".", "append", "(", "'.'", ")", ".", "append", "(", "inheritedMethods", "[", "i", "]", ".", "shortReadableName", "(", ")", ")", ";", "if", "(", "i", "!=", "0", ")", "{", "methodSignatures", ".", "append", "(", "\",", "\"", ")", ";", "shortSignatures", ".", "append", "(", "\",", "\"", ")", ";", "}", "}", "this", ".", "handle", "(", "IProblem", ".", "InheritedIncompatibleReturnType", ",", "new", "String", "[", "]", "{", "methodSignatures", ".", "toString", "(", ")", "}", ",", "new", "String", "[", "]", "{", "shortSignatures", ".", "toString", "(", ")", "}", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "inheritedMethodsHaveNameClash", "(", "SourceTypeBinding", "type", ",", "MethodBinding", "oneMethod", ",", "MethodBinding", "twoMethod", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "MethodNameClash", ",", "new", "String", "[", "]", "{", "new", "String", "(", "oneMethod", ".", "selector", ")", ",", "typesAsString", "(", "oneMethod", ".", "original", "(", ")", ",", "false", ")", ",", "new", "String", "(", "oneMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "twoMethod", ".", "original", "(", ")", ",", "false", ")", ",", "new", "String", "(", "twoMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "oneMethod", ".", "selector", ")", ",", "typesAsString", "(", "oneMethod", ".", "original", "(", ")", ",", "true", ")", ",", "new", "String", "(", "oneMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "twoMethod", ".", "original", "(", ")", ",", "true", ")", ",", "new", "String", "(", "twoMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "initializerMustCompleteNormally", "(", "FieldDeclaration", "fieldDecl", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InitializerMustCompleteNormally", ",", "NoArgument", ",", "NoArgument", ",", "fieldDecl", ".", "sourceStart", ",", "fieldDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "innerTypesCannotDeclareStaticInitializers", "(", "ReferenceBinding", "innerType", ",", "Initializer", "initializer", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "CannotDefineStaticInitializerInLocalType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "innerType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "innerType", ".", "shortReadableName", "(", ")", ")", "}", ",", "initializer", ".", "sourceStart", ",", "initializer", ".", "sourceStart", ")", ";", "}", "public", "void", "interfaceCannotHaveConstructors", "(", "ConstructorDeclaration", "constructor", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InterfaceCannotHaveConstructors", ",", "NoArgument", ",", "NoArgument", ",", "constructor", ".", "sourceStart", ",", "constructor", ".", "sourceEnd", ",", "constructor", ",", "constructor", ".", "compilationResult", "(", ")", ")", ";", "}", "public", "void", "interfaceCannotHaveInitializers", "(", "char", "[", "]", "sourceName", ",", "FieldDeclaration", "fieldDecl", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "sourceName", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "InterfaceCannotHaveInitializers", ",", "arguments", ",", "arguments", ",", "fieldDecl", ".", "sourceStart", ",", "fieldDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidAnnotationMemberType", "(", "MethodDeclaration", "methodDecl", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidAnnotationMemberType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "methodDecl", ".", "binding", ".", "returnType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "methodDecl", ".", "selector", ")", ",", "new", "String", "(", "methodDecl", ".", "binding", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "methodDecl", ".", "binding", ".", "returnType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "methodDecl", ".", "selector", ")", ",", "new", "String", "(", "methodDecl", ".", "binding", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "methodDecl", ".", "returnType", ".", "sourceStart", ",", "methodDecl", ".", "returnType", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidBreak", "(", "ASTNode", "location", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidBreak", ",", "NoArgument", ",", "NoArgument", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidConstructor", "(", "Statement", "statement", ",", "MethodBinding", "targetConstructor", ")", "{", "boolean", "insideDefaultConstructor", "=", "(", "this", ".", "referenceContext", "instanceof", "ConstructorDeclaration", ")", "&&", "(", "(", "ConstructorDeclaration", ")", "this", ".", "referenceContext", ")", ".", "isDefaultConstructor", "(", ")", ";", "boolean", "insideImplicitConstructorCall", "=", "(", "statement", "instanceof", "ExplicitConstructorCall", ")", "&&", "(", "(", "(", "ExplicitConstructorCall", ")", "statement", ")", ".", "accessMode", "==", "ExplicitConstructorCall", ".", "ImplicitSuper", ")", ";", "int", "sourceStart", "=", "statement", ".", "sourceStart", ";", "int", "sourceEnd", "=", "statement", ".", "sourceEnd", ";", "if", "(", "statement", "instanceof", "AllocationExpression", ")", "{", "AllocationExpression", "allocation", "=", "(", "AllocationExpression", ")", "statement", ";", "if", "(", "allocation", ".", "enumConstant", "!=", "null", ")", "{", "sourceStart", "=", "allocation", ".", "enumConstant", ".", "sourceStart", ";", "sourceEnd", "=", "allocation", ".", "enumConstant", ".", "sourceEnd", ";", "}", "}", "int", "id", "=", "IProblem", ".", "UndefinedConstructor", ";", "MethodBinding", "shownConstructor", "=", "targetConstructor", ";", "switch", "(", "targetConstructor", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "ProblemMethodBinding", "problemConstructor", "=", "(", "ProblemMethodBinding", ")", "targetConstructor", ";", "if", "(", "problemConstructor", ".", "closestMatch", "!=", "null", ")", "{", "if", "(", "(", "problemConstructor", ".", "closestMatch", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "missingTypeInConstructor", "(", "statement", ",", "problemConstructor", ".", "closestMatch", ")", ";", "return", ";", "}", "}", "if", "(", "insideDefaultConstructor", ")", "{", "id", "=", "IProblem", ".", "UndefinedConstructorInDefaultConstructor", ";", "}", "else", "if", "(", "insideImplicitConstructorCall", ")", "{", "id", "=", "IProblem", ".", "UndefinedConstructorInImplicitConstructorCall", ";", "}", "else", "{", "id", "=", "IProblem", ".", "UndefinedConstructor", ";", "}", "break", ";", "case", "ProblemReasons", ".", "NotVisible", ":", "if", "(", "insideDefaultConstructor", ")", "{", "id", "=", "IProblem", ".", "NotVisibleConstructorInDefaultConstructor", ";", "}", "else", "if", "(", "insideImplicitConstructorCall", ")", "{", "id", "=", "IProblem", ".", "NotVisibleConstructorInImplicitConstructorCall", ";", "}", "else", "{", "id", "=", "IProblem", ".", "NotVisibleConstructor", ";", "}", "problemConstructor", "=", "(", "ProblemMethodBinding", ")", "targetConstructor", ";", "if", "(", "problemConstructor", ".", "closestMatch", "!=", "null", ")", "{", "shownConstructor", "=", "problemConstructor", ".", "closestMatch", ".", "original", "(", ")", ";", "}", "break", ";", "case", "ProblemReasons", ".", "Ambiguous", ":", "if", "(", "insideDefaultConstructor", ")", "{", "id", "=", "IProblem", ".", "AmbiguousConstructorInDefaultConstructor", ";", "}", "else", "if", "(", "insideImplicitConstructorCall", ")", "{", "id", "=", "IProblem", ".", "AmbiguousConstructorInImplicitConstructorCall", ";", "}", "else", "{", "id", "=", "IProblem", ".", "AmbiguousConstructor", ";", "}", "break", ";", "case", "ProblemReasons", ".", "ParameterBoundMismatch", ":", "problemConstructor", "=", "(", "ProblemMethodBinding", ")", "targetConstructor", ";", "ParameterizedGenericMethodBinding", "substitutedConstructor", "=", "(", "ParameterizedGenericMethodBinding", ")", "problemConstructor", ".", "closestMatch", ";", "shownConstructor", "=", "substitutedConstructor", ".", "original", "(", ")", ";", "int", "augmentedLength", "=", "problemConstructor", ".", "parameters", ".", "length", ";", "TypeBinding", "inferredTypeArgument", "=", "problemConstructor", ".", "parameters", "[", "augmentedLength", "-", "2", "]", ";", "TypeVariableBinding", "typeParameter", "=", "(", "TypeVariableBinding", ")", "problemConstructor", ".", "parameters", "[", "augmentedLength", "-", "1", "]", ";", "TypeBinding", "[", "]", "invocationArguments", "=", "new", "TypeBinding", "[", "augmentedLength", "-", "2", "]", ";", "System", ".", "arraycopy", "(", "problemConstructor", ".", "parameters", ",", "0", ",", "invocationArguments", ",", "0", ",", "augmentedLength", "-", "2", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "GenericConstructorTypeArgumentMismatch", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "false", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "invocationArguments", ",", "false", ")", ",", "new", "String", "(", "inferredTypeArgument", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "typeParameter", ".", "sourceName", ")", ",", "parameterBoundAsString", "(", "typeParameter", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "true", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "invocationArguments", ",", "true", ")", ",", "new", "String", "(", "inferredTypeArgument", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "typeParameter", ".", "sourceName", ")", ",", "parameterBoundAsString", "(", "typeParameter", ",", "true", ")", "}", ",", "sourceStart", ",", "sourceEnd", ")", ";", "return", ";", "case", "ProblemReasons", ".", "TypeParameterArityMismatch", ":", "problemConstructor", "=", "(", "ProblemMethodBinding", ")", "targetConstructor", ";", "shownConstructor", "=", "problemConstructor", ".", "closestMatch", ";", "if", "(", "shownConstructor", ".", "typeVariables", "==", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "NonGenericConstructor", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "false", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "targetConstructor", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "true", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "targetConstructor", ",", "true", ")", "}", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "else", "{", "this", ".", "handle", "(", "IProblem", ".", "IncorrectArityForParameterizedConstructor", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "false", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ".", "typeVariables", ",", "false", ")", ",", "typesAsString", "(", "targetConstructor", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "true", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ".", "typeVariables", ",", "true", ")", ",", "typesAsString", "(", "targetConstructor", ",", "true", ")", "}", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "return", ";", "case", "ProblemReasons", ".", "ParameterizedMethodTypeMismatch", ":", "problemConstructor", "=", "(", "ProblemMethodBinding", ")", "targetConstructor", ";", "shownConstructor", "=", "problemConstructor", ".", "closestMatch", ";", "this", ".", "handle", "(", "IProblem", ".", "ParameterizedConstructorArgumentTypeMismatch", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "false", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "(", "(", "ParameterizedGenericMethodBinding", ")", "shownConstructor", ")", ".", "typeArguments", ",", "false", ")", ",", "typesAsString", "(", "targetConstructor", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "true", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "(", "(", "ParameterizedGenericMethodBinding", ")", "shownConstructor", ")", ".", "typeArguments", ",", "true", ")", ",", "typesAsString", "(", "targetConstructor", ",", "true", ")", "}", ",", "sourceStart", ",", "sourceEnd", ")", ";", "return", ";", "case", "ProblemReasons", ".", "TypeArgumentsForRawGenericMethod", ":", "problemConstructor", "=", "(", "ProblemMethodBinding", ")", "targetConstructor", ";", "shownConstructor", "=", "problemConstructor", ".", "closestMatch", ";", "this", ".", "handle", "(", "IProblem", ".", "TypeArgumentsForRawGenericConstructor", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "false", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "targetConstructor", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "true", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "targetConstructor", ",", "true", ")", "}", ",", "sourceStart", ",", "sourceEnd", ")", ";", "return", ";", "case", "ProblemReasons", ".", "VarargsElementTypeNotVisible", ":", "problemConstructor", "=", "(", "ProblemMethodBinding", ")", "targetConstructor", ";", "shownConstructor", "=", "problemConstructor", ".", "closestMatch", ";", "TypeBinding", "varargsElementType", "=", "shownConstructor", ".", "parameters", "[", "shownConstructor", ".", "parameters", ".", "length", "-", "1", "]", ".", "leafComponentType", "(", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "VarargsElementTypeNotVisibleForConstructor", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "false", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "varargsElementType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "true", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "varargsElementType", ".", "shortReadableName", "(", ")", ")", "}", ",", "sourceStart", ",", "sourceEnd", ")", ";", "return", ";", "case", "ProblemReasons", ".", "NoError", ":", "default", ":", "needImplementation", "(", "statement", ")", ";", "break", ";", "}", "this", ".", "handle", "(", "id", ",", "new", "String", "[", "]", "{", "new", "String", "(", "targetConstructor", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "targetConstructor", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "true", ")", "}", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "invalidContinue", "(", "ASTNode", "location", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidContinue", ",", "NoArgument", ",", "NoArgument", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidEnclosingType", "(", "Expression", "expression", ",", "TypeBinding", "type", ",", "ReferenceBinding", "enclosingType", ")", "{", "if", "(", "enclosingType", ".", "isAnonymousType", "(", ")", ")", "enclosingType", "=", "enclosingType", ".", "superclass", "(", ")", ";", "if", "(", "enclosingType", ".", "sourceName", "!=", "null", "&&", "enclosingType", ".", "sourceName", ".", "length", "==", "0", ")", "return", ";", "int", "flag", "=", "IProblem", ".", "UndefinedType", ";", "switch", "(", "type", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "flag", "=", "IProblem", ".", "UndefinedType", ";", "break", ";", "case", "ProblemReasons", ".", "NotVisible", ":", "flag", "=", "IProblem", ".", "NotVisibleType", ";", "break", ";", "case", "ProblemReasons", ".", "Ambiguous", ":", "flag", "=", "IProblem", ".", "AmbiguousType", ";", "break", ";", "case", "ProblemReasons", ".", "InternalNameProvided", ":", "flag", "=", "IProblem", ".", "InternalTypeNameProvided", ";", "break", ";", "case", "ProblemReasons", ".", "NoError", ":", "default", ":", "needImplementation", "(", "expression", ")", ";", "break", ";", "}", "this", ".", "handle", "(", "flag", ",", "new", "String", "[", "]", "{", "new", "String", "(", "enclosingType", ".", "readableName", "(", ")", ")", "+", "\".\"", "+", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "enclosingType", ".", "shortReadableName", "(", ")", ")", "+", "\".\"", "+", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", "}", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidExplicitConstructorCall", "(", "ASTNode", "location", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidExplicitConstructorCall", ",", "NoArgument", ",", "NoArgument", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidExpressionAsStatement", "(", "Expression", "expression", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidExpressionAsStatement", ",", "NoArgument", ",", "NoArgument", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidField", "(", "FieldReference", "fieldRef", ",", "TypeBinding", "searchedType", ")", "{", "if", "(", "isRecoveredName", "(", "fieldRef", ".", "token", ")", ")", "return", ";", "int", "id", "=", "IProblem", ".", "UndefinedField", ";", "FieldBinding", "field", "=", "fieldRef", ".", "binding", ";", "switch", "(", "field", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "if", "(", "(", "searchedType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "UndefinedType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "searchedType", ".", "leafComponentType", "(", ")", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "searchedType", ".", "leafComponentType", "(", ")", ".", "shortReadableName", "(", ")", ")", "}", ",", "fieldRef", ".", "receiver", ".", "sourceStart", ",", "fieldRef", ".", "receiver", ".", "sourceEnd", ")", ";", "return", ";", "}", "id", "=", "IProblem", ".", "UndefinedField", ";", "break", ";", "case", "ProblemReasons", ".", "NotVisible", ":", "this", ".", "handle", "(", "IProblem", ".", "NotVisibleField", ",", "new", "String", "[", "]", "{", "new", "String", "(", "fieldRef", ".", "token", ")", ",", "new", "String", "(", "field", ".", "declaringClass", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "fieldRef", ".", "token", ")", ",", "new", "String", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ",", "nodeSourceStart", "(", "field", ",", "fieldRef", ")", ",", "nodeSourceEnd", "(", "field", ",", "fieldRef", ")", ")", ";", "return", ";", "case", "ProblemReasons", ".", "Ambiguous", ":", "id", "=", "IProblem", ".", "AmbiguousField", ";", "break", ";", "case", "ProblemReasons", ".", "NonStaticReferenceInStaticContext", ":", "id", "=", "IProblem", ".", "NonStaticFieldFromStaticInvocation", ";", "break", ";", "case", "ProblemReasons", ".", "NonStaticReferenceInConstructorInvocation", ":", "id", "=", "IProblem", ".", "InstanceFieldDuringConstructorInvocation", ";", "break", ";", "case", "ProblemReasons", ".", "InheritedNameHidesEnclosingName", ":", "id", "=", "IProblem", ".", "InheritedFieldHidesEnclosingName", ";", "break", ";", "case", "ProblemReasons", ".", "ReceiverTypeNotVisible", ":", "this", ".", "handle", "(", "IProblem", ".", "NotVisibleType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "searchedType", ".", "leafComponentType", "(", ")", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "searchedType", ".", "leafComponentType", "(", ")", ".", "shortReadableName", "(", ")", ")", "}", ",", "fieldRef", ".", "receiver", ".", "sourceStart", ",", "fieldRef", ".", "receiver", ".", "sourceEnd", ")", ";", "return", ";", "case", "ProblemReasons", ".", "NoError", ":", "default", ":", "needImplementation", "(", "fieldRef", ")", ";", "break", ";", "}", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "readableName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "id", ",", "arguments", ",", "arguments", ",", "nodeSourceStart", "(", "field", ",", "fieldRef", ")", ",", "nodeSourceEnd", "(", "field", ",", "fieldRef", ")", ")", ";", "}", "public", "void", "invalidField", "(", "NameReference", "nameRef", ",", "FieldBinding", "field", ")", "{", "if", "(", "nameRef", "instanceof", "QualifiedNameReference", ")", "{", "QualifiedNameReference", "ref", "=", "(", "QualifiedNameReference", ")", "nameRef", ";", "if", "(", "isRecoveredName", "(", "ref", ".", "tokens", ")", ")", "return", ";", "}", "else", "{", "SingleNameReference", "ref", "=", "(", "SingleNameReference", ")", "nameRef", ";", "if", "(", "isRecoveredName", "(", "ref", ".", "token", ")", ")", "return", ";", "}", "int", "id", "=", "IProblem", ".", "UndefinedField", ";", "switch", "(", "field", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "TypeBinding", "declaringClass", "=", "field", ".", "declaringClass", ";", "if", "(", "declaringClass", "!=", "null", "&&", "(", "declaringClass", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "UndefinedType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ",", "nameRef", ".", "sourceStart", ",", "nameRef", ".", "sourceEnd", ")", ";", "return", ";", "}", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "readableName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "id", ",", "arguments", ",", "arguments", ",", "nodeSourceStart", "(", "field", ",", "nameRef", ")", ",", "nodeSourceEnd", "(", "field", ",", "nameRef", ")", ")", ";", "return", ";", "case", "ProblemReasons", ".", "NotVisible", ":", "char", "[", "]", "name", "=", "field", ".", "readableName", "(", ")", ";", "name", "=", "CharOperation", ".", "lastSegment", "(", "name", ",", "'.'", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "NotVisibleField", ",", "new", "String", "[", "]", "{", "new", "String", "(", "name", ")", ",", "new", "String", "(", "field", ".", "declaringClass", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "name", ")", ",", "new", "String", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ",", "nodeSourceStart", "(", "field", ",", "nameRef", ")", ",", "nodeSourceEnd", "(", "field", ",", "nameRef", ")", ")", ";", "return", ";", "case", "ProblemReasons", ".", "Ambiguous", ":", "id", "=", "IProblem", ".", "AmbiguousField", ";", "break", ";", "case", "ProblemReasons", ".", "NonStaticReferenceInStaticContext", ":", "id", "=", "IProblem", ".", "NonStaticFieldFromStaticInvocation", ";", "break", ";", "case", "ProblemReasons", ".", "NonStaticReferenceInConstructorInvocation", ":", "id", "=", "IProblem", ".", "InstanceFieldDuringConstructorInvocation", ";", "break", ";", "case", "ProblemReasons", ".", "InheritedNameHidesEnclosingName", ":", "id", "=", "IProblem", ".", "InheritedFieldHidesEnclosingName", ";", "break", ";", "case", "ProblemReasons", ".", "ReceiverTypeNotVisible", ":", "this", ".", "handle", "(", "IProblem", ".", "NotVisibleType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ",", "nameRef", ".", "sourceStart", ",", "nameRef", ".", "sourceEnd", ")", ";", "return", ";", "case", "ProblemReasons", ".", "NoError", ":", "default", ":", "needImplementation", "(", "nameRef", ")", ";", "break", ";", "}", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "readableName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "id", ",", "arguments", ",", "arguments", ",", "nameRef", ".", "sourceStart", ",", "nameRef", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidField", "(", "QualifiedNameReference", "nameRef", ",", "FieldBinding", "field", ",", "int", "index", ",", "TypeBinding", "searchedType", ")", "{", "if", "(", "isRecoveredName", "(", "nameRef", ".", "tokens", ")", ")", "return", ";", "if", "(", "searchedType", ".", "isBaseType", "(", ")", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "NoFieldOnBaseType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "searchedType", ".", "readableName", "(", ")", ")", ",", "CharOperation", ".", "toString", "(", "CharOperation", ".", "subarray", "(", "nameRef", ".", "tokens", ",", "0", ",", "index", ")", ")", ",", "new", "String", "(", "nameRef", ".", "tokens", "[", "index", "]", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "searchedType", ".", "sourceName", "(", ")", ")", ",", "CharOperation", ".", "toString", "(", "CharOperation", ".", "subarray", "(", "nameRef", ".", "tokens", ",", "0", ",", "index", ")", ")", ",", "new", "String", "(", "nameRef", ".", "tokens", "[", "index", "]", ")", "}", ",", "nameRef", ".", "sourceStart", ",", "(", "int", ")", "nameRef", ".", "sourcePositions", "[", "index", "]", ")", ";", "return", ";", "}", "int", "id", "=", "IProblem", ".", "UndefinedField", ";", "switch", "(", "field", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "if", "(", "(", "searchedType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "UndefinedType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "searchedType", ".", "leafComponentType", "(", ")", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "searchedType", ".", "leafComponentType", "(", ")", ".", "shortReadableName", "(", ")", ")", "}", ",", "nameRef", ".", "sourceStart", ",", "(", "int", ")", "nameRef", ".", "sourcePositions", "[", "index", "-", "1", "]", ")", ";", "return", ";", "}", "String", "fieldName", "=", "new", "String", "(", "nameRef", ".", "tokens", "[", "index", "]", ")", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "fieldName", "}", ";", "this", ".", "handle", "(", "id", ",", "arguments", ",", "arguments", ",", "nodeSourceStart", "(", "field", ",", "nameRef", ")", ",", "nodeSourceEnd", "(", "field", ",", "nameRef", ")", ")", ";", "return", ";", "case", "ProblemReasons", ".", "NotVisible", ":", "fieldName", "=", "new", "String", "(", "nameRef", ".", "tokens", "[", "index", "]", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "NotVisibleField", ",", "new", "String", "[", "]", "{", "fieldName", ",", "new", "String", "(", "field", ".", "declaringClass", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "fieldName", ",", "new", "String", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ",", "nodeSourceStart", "(", "field", ",", "nameRef", ")", ",", "nodeSourceEnd", "(", "field", ",", "nameRef", ")", ")", ";", "return", ";", "case", "ProblemReasons", ".", "Ambiguous", ":", "id", "=", "IProblem", ".", "AmbiguousField", ";", "break", ";", "case", "ProblemReasons", ".", "NonStaticReferenceInStaticContext", ":", "id", "=", "IProblem", ".", "NonStaticFieldFromStaticInvocation", ";", "break", ";", "case", "ProblemReasons", ".", "NonStaticReferenceInConstructorInvocation", ":", "id", "=", "IProblem", ".", "InstanceFieldDuringConstructorInvocation", ";", "break", ";", "case", "ProblemReasons", ".", "InheritedNameHidesEnclosingName", ":", "id", "=", "IProblem", ".", "InheritedFieldHidesEnclosingName", ";", "break", ";", "case", "ProblemReasons", ".", "ReceiverTypeNotVisible", ":", "this", ".", "handle", "(", "IProblem", ".", "NotVisibleType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "searchedType", ".", "leafComponentType", "(", ")", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "searchedType", ".", "leafComponentType", "(", ")", ".", "shortReadableName", "(", ")", ")", "}", ",", "nameRef", ".", "sourceStart", ",", "(", "int", ")", "nameRef", ".", "sourcePositions", "[", "index", "-", "1", "]", ")", ";", "return", ";", "case", "ProblemReasons", ".", "NoError", ":", "default", ":", "needImplementation", "(", "nameRef", ")", ";", "break", ";", "}", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "CharOperation", ".", "toString", "(", "CharOperation", ".", "subarray", "(", "nameRef", ".", "tokens", ",", "0", ",", "index", "+", "1", ")", ")", "}", ";", "this", ".", "handle", "(", "id", ",", "arguments", ",", "arguments", ",", "nameRef", ".", "sourceStart", ",", "(", "int", ")", "nameRef", ".", "sourcePositions", "[", "index", "]", ")", ";", "}", "public", "void", "invalidFileNameForPackageAnnotations", "(", "Annotation", "annotation", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidFileNameForPackageAnnotations", ",", "NoArgument", ",", "NoArgument", ",", "annotation", ".", "sourceStart", ",", "annotation", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidMethod", "(", "MessageSend", "messageSend", ",", "MethodBinding", "method", ")", "{", "if", "(", "isRecoveredName", "(", "messageSend", ".", "selector", ")", ")", "return", ";", "int", "id", "=", "IProblem", ".", "UndefinedMethod", ";", "MethodBinding", "shownMethod", "=", "method", ";", "switch", "(", "method", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "if", "(", "(", "method", ".", "declaringClass", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "UndefinedType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ",", "messageSend", ".", "receiver", ".", "sourceStart", ",", "messageSend", ".", "receiver", ".", "sourceEnd", ")", ";", "return", ";", "}", "id", "=", "IProblem", ".", "UndefinedMethod", ";", "ProblemMethodBinding", "problemMethod", "=", "(", "ProblemMethodBinding", ")", "method", ";", "if", "(", "problemMethod", ".", "closestMatch", "!=", "null", ")", "{", "shownMethod", "=", "problemMethod", ".", "closestMatch", ";", "if", "(", "(", "shownMethod", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "missingTypeInMethod", "(", "messageSend", ",", "shownMethod", ")", ";", "return", ";", "}", "String", "closestParameterTypeNames", "=", "typesAsString", "(", "shownMethod", ",", "false", ")", ";", "String", "parameterTypeNames", "=", "typesAsString", "(", "problemMethod", ".", "parameters", ",", "false", ")", ";", "String", "closestParameterTypeShortNames", "=", "typesAsString", "(", "shownMethod", ",", "true", ")", ";", "String", "parameterTypeShortNames", "=", "typesAsString", "(", "problemMethod", ".", "parameters", ",", "true", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "ParameterMismatch", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "closestParameterTypeNames", ",", "parameterTypeNames", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "closestParameterTypeShortNames", ",", "parameterTypeShortNames", "}", ",", "(", "int", ")", "(", "messageSend", ".", "nameSourcePosition", ">>>", "32", ")", ",", "(", "int", ")", "messageSend", ".", "nameSourcePosition", ")", ";", "return", ";", "}", "break", ";", "case", "ProblemReasons", ".", "NotVisible", ":", "id", "=", "IProblem", ".", "NotVisibleMethod", ";", "problemMethod", "=", "(", "ProblemMethodBinding", ")", "method", ";", "if", "(", "problemMethod", ".", "closestMatch", "!=", "null", ")", "{", "shownMethod", "=", "problemMethod", ".", "closestMatch", ".", "original", "(", ")", ";", "}", "break", ";", "case", "ProblemReasons", ".", "Ambiguous", ":", "id", "=", "IProblem", ".", "AmbiguousMethod", ";", "break", ";", "case", "ProblemReasons", ".", "InheritedNameHidesEnclosingName", ":", "id", "=", "IProblem", ".", "InheritedMethodHidesEnclosingName", ";", "break", ";", "case", "ProblemReasons", ".", "NonStaticReferenceInConstructorInvocation", ":", "id", "=", "IProblem", ".", "InstanceMethodDuringConstructorInvocation", ";", "break", ";", "case", "ProblemReasons", ".", "NonStaticReferenceInStaticContext", ":", "id", "=", "IProblem", ".", "StaticMethodRequested", ";", "break", ";", "case", "ProblemReasons", ".", "ReceiverTypeNotVisible", ":", "this", ".", "handle", "(", "IProblem", ".", "NotVisibleType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ",", "messageSend", ".", "receiver", ".", "sourceStart", ",", "messageSend", ".", "receiver", ".", "sourceEnd", ")", ";", "return", ";", "case", "ProblemReasons", ".", "ParameterBoundMismatch", ":", "problemMethod", "=", "(", "ProblemMethodBinding", ")", "method", ";", "ParameterizedGenericMethodBinding", "substitutedMethod", "=", "(", "ParameterizedGenericMethodBinding", ")", "problemMethod", ".", "closestMatch", ";", "shownMethod", "=", "substitutedMethod", ".", "original", "(", ")", ";", "int", "augmentedLength", "=", "problemMethod", ".", "parameters", ".", "length", ";", "TypeBinding", "inferredTypeArgument", "=", "problemMethod", ".", "parameters", "[", "augmentedLength", "-", "2", "]", ";", "TypeVariableBinding", "typeParameter", "=", "(", "TypeVariableBinding", ")", "problemMethod", ".", "parameters", "[", "augmentedLength", "-", "1", "]", ";", "TypeBinding", "[", "]", "invocationArguments", "=", "new", "TypeBinding", "[", "augmentedLength", "-", "2", "]", ";", "System", ".", "arraycopy", "(", "problemMethod", ".", "parameters", ",", "0", ",", "invocationArguments", ",", "0", ",", "augmentedLength", "-", "2", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "GenericMethodTypeArgumentMismatch", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "false", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "invocationArguments", ",", "false", ")", ",", "new", "String", "(", "inferredTypeArgument", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "typeParameter", ".", "sourceName", ")", ",", "parameterBoundAsString", "(", "typeParameter", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "true", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "invocationArguments", ",", "true", ")", ",", "new", "String", "(", "inferredTypeArgument", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "typeParameter", ".", "sourceName", ")", ",", "parameterBoundAsString", "(", "typeParameter", ",", "true", ")", "}", ",", "(", "int", ")", "(", "messageSend", ".", "nameSourcePosition", ">>>", "32", ")", ",", "(", "int", ")", "messageSend", ".", "nameSourcePosition", ")", ";", "return", ";", "case", "ProblemReasons", ".", "TypeParameterArityMismatch", ":", "problemMethod", "=", "(", "ProblemMethodBinding", ")", "method", ";", "shownMethod", "=", "problemMethod", ".", "closestMatch", ";", "if", "(", "shownMethod", ".", "typeVariables", "==", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "NonGenericMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "false", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "true", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "(", "int", ")", "(", "messageSend", ".", "nameSourcePosition", ">>>", "32", ")", ",", "(", "int", ")", "messageSend", ".", "nameSourcePosition", ")", ";", "}", "else", "{", "this", ".", "handle", "(", "IProblem", ".", "IncorrectArityForParameterizedMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "false", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "shownMethod", ".", "typeVariables", ",", "false", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "true", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "shownMethod", ".", "typeVariables", ",", "true", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "(", "int", ")", "(", "messageSend", ".", "nameSourcePosition", ">>>", "32", ")", ",", "(", "int", ")", "messageSend", ".", "nameSourcePosition", ")", ";", "}", "return", ";", "case", "ProblemReasons", ".", "ParameterizedMethodTypeMismatch", ":", "problemMethod", "=", "(", "ProblemMethodBinding", ")", "method", ";", "shownMethod", "=", "problemMethod", ".", "closestMatch", ";", "this", ".", "handle", "(", "IProblem", ".", "ParameterizedMethodArgumentTypeMismatch", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "false", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "(", "(", "ParameterizedGenericMethodBinding", ")", "shownMethod", ")", ".", "typeArguments", ",", "false", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "true", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "(", "(", "ParameterizedGenericMethodBinding", ")", "shownMethod", ")", ".", "typeArguments", ",", "true", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "(", "int", ")", "(", "messageSend", ".", "nameSourcePosition", ">>>", "32", ")", ",", "(", "int", ")", "messageSend", ".", "nameSourcePosition", ")", ";", "return", ";", "case", "ProblemReasons", ".", "TypeArgumentsForRawGenericMethod", ":", "problemMethod", "=", "(", "ProblemMethodBinding", ")", "method", ";", "shownMethod", "=", "problemMethod", ".", "closestMatch", ";", "this", ".", "handle", "(", "IProblem", ".", "TypeArgumentsForRawGenericMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "false", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "true", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "(", "int", ")", "(", "messageSend", ".", "nameSourcePosition", ">>>", "32", ")", ",", "(", "int", ")", "messageSend", ".", "nameSourcePosition", ")", ";", "return", ";", "case", "ProblemReasons", ".", "VarargsElementTypeNotVisible", ":", "problemMethod", "=", "(", "ProblemMethodBinding", ")", "method", ";", "if", "(", "problemMethod", ".", "closestMatch", "!=", "null", ")", "{", "shownMethod", "=", "problemMethod", ".", "closestMatch", ".", "original", "(", ")", ";", "}", "TypeBinding", "varargsElementType", "=", "shownMethod", ".", "parameters", "[", "shownMethod", ".", "parameters", ".", "length", "-", "1", "]", ".", "leafComponentType", "(", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "VarargsElementTypeNotVisible", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "false", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "varargsElementType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "true", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "varargsElementType", ".", "shortReadableName", "(", ")", ")", "}", ",", "(", "int", ")", "(", "messageSend", ".", "nameSourcePosition", ">>>", "32", ")", ",", "(", "int", ")", "messageSend", ".", "nameSourcePosition", ")", ";", "return", ";", "case", "ProblemReasons", ".", "NoError", ":", "default", ":", "needImplementation", "(", "messageSend", ")", ";", "break", ";", "}", "this", ".", "handle", "(", "id", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "true", ")", "}", ",", "(", "int", ")", "(", "messageSend", ".", "nameSourcePosition", ">>>", "32", ")", ",", "(", "int", ")", "messageSend", ".", "nameSourcePosition", ")", ";", "}", "public", "void", "invalidNullToSynchronize", "(", "Expression", "expression", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidNullToSynchronized", ",", "NoArgument", ",", "NoArgument", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidOperator", "(", "BinaryExpression", "expression", ",", "TypeBinding", "leftType", ",", "TypeBinding", "rightType", ")", "{", "String", "leftName", "=", "new", "String", "(", "leftType", ".", "readableName", "(", ")", ")", ";", "String", "rightName", "=", "new", "String", "(", "rightType", ".", "readableName", "(", ")", ")", ";", "String", "leftShortName", "=", "new", "String", "(", "leftType", ".", "shortReadableName", "(", ")", ")", ";", "String", "rightShortName", "=", "new", "String", "(", "rightType", ".", "shortReadableName", "(", ")", ")", ";", "if", "(", "leftShortName", ".", "equals", "(", "rightShortName", ")", ")", "{", "leftShortName", "=", "leftName", ";", "rightShortName", "=", "rightName", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "InvalidOperator", ",", "new", "String", "[", "]", "{", "expression", ".", "operatorToString", "(", ")", ",", "leftName", "+", "\",", "\"", "+", "rightName", "}", ",", "new", "String", "[", "]", "{", "expression", ".", "operatorToString", "(", ")", ",", "leftShortName", "+", "\",", "\"", "+", "rightShortName", "}", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidOperator", "(", "CompoundAssignment", "assign", ",", "TypeBinding", "leftType", ",", "TypeBinding", "rightType", ")", "{", "String", "leftName", "=", "new", "String", "(", "leftType", ".", "readableName", "(", ")", ")", ";", "String", "rightName", "=", "new", "String", "(", "rightType", ".", "readableName", "(", ")", ")", ";", "String", "leftShortName", "=", "new", "String", "(", "leftType", ".", "shortReadableName", "(", ")", ")", ";", "String", "rightShortName", "=", "new", "String", "(", "rightType", ".", "shortReadableName", "(", ")", ")", ";", "if", "(", "leftShortName", ".", "equals", "(", "rightShortName", ")", ")", "{", "leftShortName", "=", "leftName", ";", "rightShortName", "=", "rightName", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "InvalidOperator", ",", "new", "String", "[", "]", "{", "assign", ".", "operatorToString", "(", ")", ",", "leftName", "+", "\",", "\"", "+", "rightName", "}", ",", "new", "String", "[", "]", "{", "assign", ".", "operatorToString", "(", ")", ",", "leftShortName", "+", "\",", "\"", "+", "rightShortName", "}", ",", "assign", ".", "sourceStart", ",", "assign", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidOperator", "(", "UnaryExpression", "expression", ",", "TypeBinding", "type", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidOperator", ",", "new", "String", "[", "]", "{", "expression", ".", "operatorToString", "(", ")", ",", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "expression", ".", "operatorToString", "(", ")", ",", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", "}", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidParameterizedExceptionType", "(", "TypeBinding", "exceptionType", ",", "ASTNode", "location", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidParameterizedExceptionType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "exceptionType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "exceptionType", ".", "shortReadableName", "(", ")", ")", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidParenthesizedExpression", "(", "ASTNode", "reference", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidParenthesizedExpression", ",", "NoArgument", ",", "NoArgument", ",", "reference", ".", "sourceStart", ",", "reference", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidType", "(", "ASTNode", "location", ",", "TypeBinding", "type", ")", "{", "if", "(", "type", "instanceof", "ReferenceBinding", ")", "{", "if", "(", "isRecoveredName", "(", "(", "(", "ReferenceBinding", ")", "type", ")", ".", "compoundName", ")", ")", "return", ";", "}", "else", "if", "(", "type", "instanceof", "ArrayBinding", ")", "{", "TypeBinding", "leafType", "=", "(", "(", "ArrayBinding", ")", "type", ")", ".", "leafComponentType", ";", "if", "(", "leafType", "instanceof", "ReferenceBinding", ")", "{", "if", "(", "isRecoveredName", "(", "(", "(", "ReferenceBinding", ")", "leafType", ")", ".", "compoundName", ")", ")", "return", ";", "}", "}", "if", "(", "type", ".", "isParameterizedType", "(", ")", ")", "{", "List", "missingTypes", "=", "type", ".", "collectMissingTypes", "(", "null", ")", ";", "if", "(", "missingTypes", "!=", "null", ")", "{", "ReferenceContext", "savedContext", "=", "this", ".", "referenceContext", ";", "for", "(", "Iterator", "iterator", "=", "missingTypes", ".", "iterator", "(", ")", ";", "iterator", ".", "hasNext", "(", ")", ";", ")", "{", "try", "{", "invalidType", "(", "location", ",", "(", "TypeBinding", ")", "iterator", ".", "next", "(", ")", ")", ";", "}", "finally", "{", "this", ".", "referenceContext", "=", "savedContext", ";", "}", "}", "return", ";", "}", "}", "int", "id", "=", "IProblem", ".", "UndefinedType", ";", "switch", "(", "type", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "id", "=", "IProblem", ".", "UndefinedType", ";", "break", ";", "case", "ProblemReasons", ".", "NotVisible", ":", "id", "=", "IProblem", ".", "NotVisibleType", ";", "break", ";", "case", "ProblemReasons", ".", "Ambiguous", ":", "id", "=", "IProblem", ".", "AmbiguousType", ";", "break", ";", "case", "ProblemReasons", ".", "InternalNameProvided", ":", "id", "=", "IProblem", ".", "InternalTypeNameProvided", ";", "break", ";", "case", "ProblemReasons", ".", "InheritedNameHidesEnclosingName", ":", "id", "=", "IProblem", ".", "InheritedTypeHidesEnclosingName", ";", "break", ";", "case", "ProblemReasons", ".", "NonStaticReferenceInStaticContext", ":", "id", "=", "IProblem", ".", "NonStaticTypeFromStaticInvocation", ";", "break", ";", "case", "ProblemReasons", ".", "IllegalSuperTypeVariable", ":", "id", "=", "IProblem", ".", "IllegalTypeVariableSuperReference", ";", "break", ";", "case", "ProblemReasons", ".", "NoError", ":", "default", ":", "needImplementation", "(", "location", ")", ";", "break", ";", "}", "int", "end", "=", "location", ".", "sourceEnd", ";", "if", "(", "location", "instanceof", "QualifiedNameReference", ")", "{", "QualifiedNameReference", "ref", "=", "(", "QualifiedNameReference", ")", "location", ";", "if", "(", "isRecoveredName", "(", "ref", ".", "tokens", ")", ")", "return", ";", "if", "(", "ref", ".", "indexOfFirstFieldBinding", ">=", "1", ")", "end", "=", "(", "int", ")", "ref", ".", "sourcePositions", "[", "ref", ".", "indexOfFirstFieldBinding", "-", "1", "]", ";", "}", "else", "if", "(", "location", "instanceof", "ParameterizedQualifiedTypeReference", ")", "{", "ParameterizedQualifiedTypeReference", "ref", "=", "(", "ParameterizedQualifiedTypeReference", ")", "location", ";", "if", "(", "isRecoveredName", "(", "ref", ".", "tokens", ")", ")", "return", ";", "if", "(", "type", "instanceof", "ReferenceBinding", ")", "{", "char", "[", "]", "[", "]", "name", "=", "(", "(", "ReferenceBinding", ")", "type", ")", ".", "compoundName", ";", "end", "=", "(", "int", ")", "ref", ".", "sourcePositions", "[", "name", ".", "length", "-", "1", "]", ";", "}", "}", "else", "if", "(", "location", "instanceof", "ArrayQualifiedTypeReference", ")", "{", "ArrayQualifiedTypeReference", "arrayQualifiedTypeReference", "=", "(", "ArrayQualifiedTypeReference", ")", "location", ";", "if", "(", "isRecoveredName", "(", "arrayQualifiedTypeReference", ".", "tokens", ")", ")", "return", ";", "TypeBinding", "leafType", "=", "type", ".", "leafComponentType", "(", ")", ";", "if", "(", "leafType", "instanceof", "ReferenceBinding", ")", "{", "char", "[", "]", "[", "]", "name", "=", "(", "(", "ReferenceBinding", ")", "leafType", ")", ".", "compoundName", ";", "end", "=", "(", "int", ")", "arrayQualifiedTypeReference", ".", "sourcePositions", "[", "name", ".", "length", "-", "1", "]", ";", "}", "else", "{", "long", "[", "]", "positions", "=", "arrayQualifiedTypeReference", ".", "sourcePositions", ";", "end", "=", "(", "int", ")", "positions", "[", "positions", ".", "length", "-", "1", "]", ";", "}", "}", "else", "if", "(", "location", "instanceof", "QualifiedTypeReference", ")", "{", "QualifiedTypeReference", "ref", "=", "(", "QualifiedTypeReference", ")", "location", ";", "if", "(", "isRecoveredName", "(", "ref", ".", "tokens", ")", ")", "return", ";", "if", "(", "type", "instanceof", "ReferenceBinding", ")", "{", "char", "[", "]", "[", "]", "name", "=", "(", "(", "ReferenceBinding", ")", "type", ")", ".", "compoundName", ";", "if", "(", "name", ".", "length", "<=", "ref", ".", "sourcePositions", ".", "length", ")", "end", "=", "(", "int", ")", "ref", ".", "sourcePositions", "[", "name", ".", "length", "-", "1", "]", ";", "}", "}", "else", "if", "(", "location", "instanceof", "ImportReference", ")", "{", "ImportReference", "ref", "=", "(", "ImportReference", ")", "location", ";", "if", "(", "isRecoveredName", "(", "ref", ".", "tokens", ")", ")", "return", ";", "if", "(", "type", "instanceof", "ReferenceBinding", ")", "{", "char", "[", "]", "[", "]", "name", "=", "(", "(", "ReferenceBinding", ")", "type", ")", ".", "compoundName", ";", "end", "=", "(", "int", ")", "ref", ".", "sourcePositions", "[", "name", ".", "length", "-", "1", "]", ";", "}", "}", "else", "if", "(", "location", "instanceof", "ArrayTypeReference", ")", "{", "ArrayTypeReference", "arrayTypeReference", "=", "(", "ArrayTypeReference", ")", "location", ";", "if", "(", "isRecoveredName", "(", "arrayTypeReference", ".", "token", ")", ")", "return", ";", "end", "=", "arrayTypeReference", ".", "originalSourceEnd", ";", "}", "this", ".", "handle", "(", "id", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "leafComponentType", "(", ")", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "leafComponentType", "(", ")", ".", "shortReadableName", "(", ")", ")", "}", ",", "location", ".", "sourceStart", ",", "end", ")", ";", "}", "public", "void", "invalidTypeForCollection", "(", "Expression", "expression", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidTypeForCollection", ",", "NoArgument", ",", "NoArgument", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidTypeForCollectionTarget14", "(", "Expression", "expression", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidTypeForCollectionTarget14", ",", "NoArgument", ",", "NoArgument", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidTypeToSynchronize", "(", "Expression", "expression", ",", "TypeBinding", "type", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidTypeToSynchronized", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", "}", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidTypeVariableAsException", "(", "TypeBinding", "exceptionType", ",", "ASTNode", "location", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidTypeVariableExceptionType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "exceptionType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "exceptionType", ".", "shortReadableName", "(", ")", ")", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidUnaryExpression", "(", "Expression", "expression", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidUnaryExpression", ",", "NoArgument", ",", "NoArgument", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidUsageOfAnnotation", "(", "Annotation", "annotation", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidUsageOfAnnotations", ",", "NoArgument", ",", "NoArgument", ",", "annotation", ".", "sourceStart", ",", "annotation", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidUsageOfAnnotationDeclarations", "(", "TypeDeclaration", "annotationTypeDeclaration", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidUsageOfAnnotationDeclarations", ",", "NoArgument", ",", "NoArgument", ",", "annotationTypeDeclaration", ".", "sourceStart", ",", "annotationTypeDeclaration", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidUsageOfEnumDeclarations", "(", "TypeDeclaration", "enumDeclaration", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidUsageOfEnumDeclarations", ",", "NoArgument", ",", "NoArgument", ",", "enumDeclaration", ".", "sourceStart", ",", "enumDeclaration", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidUsageOfForeachStatements", "(", "LocalDeclaration", "elementVariable", ",", "Expression", "collection", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidUsageOfForeachStatements", ",", "NoArgument", ",", "NoArgument", ",", "elementVariable", ".", "declarationSourceStart", ",", "collection", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidUsageOfStaticImports", "(", "ImportReference", "staticImport", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidUsageOfStaticImports", ",", "NoArgument", ",", "NoArgument", ",", "staticImport", ".", "declarationSourceStart", ",", "staticImport", ".", "declarationSourceEnd", ")", ";", "}", "public", "void", "invalidUsageOfTypeArguments", "(", "TypeReference", "firstTypeReference", ",", "TypeReference", "lastTypeReference", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidUsageOfTypeArguments", ",", "NoArgument", ",", "NoArgument", ",", "firstTypeReference", ".", "sourceStart", ",", "lastTypeReference", ".", "sourceEnd", ")", ";", "}", "public", "void", "invalidUsageOfTypeParameters", "(", "TypeParameter", "firstTypeParameter", ",", "TypeParameter", "lastTypeParameter", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidUsageOfTypeParameters", ",", "NoArgument", ",", "NoArgument", ",", "firstTypeParameter", ".", "declarationSourceStart", ",", "lastTypeParameter", ".", "declarationSourceEnd", ")", ";", "}", "public", "void", "invalidUsageOfTypeParametersForAnnotationDeclaration", "(", "TypeDeclaration", "annotationTypeDeclaration", ")", "{", "TypeParameter", "[", "]", "parameters", "=", "annotationTypeDeclaration", ".", "typeParameters", ";", "int", "length", "=", "parameters", ".", "length", ";", "this", ".", "handle", "(", "IProblem", ".", "InvalidUsageOfTypeParametersForAnnotationDeclaration", ",", "NoArgument", ",", "NoArgument", ",", "parameters", "[", "0", "]", ".", "declarationSourceStart", ",", "parameters", "[", "length", "-", "1", "]", ".", "declarationSourceEnd", ")", ";", "}", "public", "void", "invalidUsageOfTypeParametersForEnumDeclaration", "(", "TypeDeclaration", "annotationTypeDeclaration", ")", "{", "TypeParameter", "[", "]", "parameters", "=", "annotationTypeDeclaration", ".", "typeParameters", ";", "int", "length", "=", "parameters", ".", "length", ";", "this", ".", "handle", "(", "IProblem", ".", "InvalidUsageOfTypeParametersForEnumDeclaration", ",", "NoArgument", ",", "NoArgument", ",", "parameters", "[", "0", "]", ".", "declarationSourceStart", ",", "parameters", "[", "length", "-", "1", "]", ".", "declarationSourceEnd", ")", ";", "}", "public", "void", "invalidUsageOfVarargs", "(", "Argument", "argument", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidUsageOfVarargs", ",", "NoArgument", ",", "NoArgument", ",", "argument", ".", "type", ".", "sourceStart", ",", "argument", ".", "sourceEnd", ")", ";", "}", "public", "void", "isClassPathCorrect", "(", "char", "[", "]", "[", "]", "wellKnownTypeName", ",", "CompilationUnitDeclaration", "compUnitDecl", ",", "Object", "location", ")", "{", "this", ".", "referenceContext", "=", "compUnitDecl", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "CharOperation", ".", "toString", "(", "wellKnownTypeName", ")", "}", ";", "int", "start", "=", "0", ",", "end", "=", "0", ";", "if", "(", "location", "!=", "null", ")", "{", "if", "(", "location", "instanceof", "InvocationSite", ")", "{", "InvocationSite", "site", "=", "(", "InvocationSite", ")", "location", ";", "start", "=", "site", ".", "sourceStart", "(", ")", ";", "end", "=", "site", ".", "sourceEnd", "(", ")", ";", "}", "else", "if", "(", "location", "instanceof", "ASTNode", ")", "{", "ASTNode", "node", "=", "(", "ASTNode", ")", "location", ";", "start", "=", "node", ".", "sourceStart", "(", ")", ";", "end", "=", "node", ".", "sourceEnd", "(", ")", ";", "}", "}", "this", ".", "handle", "(", "IProblem", ".", "IsClassPathCorrect", ",", "arguments", ",", "arguments", ",", "start", ",", "end", ")", ";", "}", "private", "boolean", "isIdentifier", "(", "int", "token", ")", "{", "return", "token", "==", "TerminalTokens", ".", "TokenNameIdentifier", ";", "}", "private", "boolean", "isKeyword", "(", "int", "token", ")", "{", "switch", "(", "token", ")", "{", "case", "TerminalTokens", ".", "TokenNameabstract", ":", "case", "TerminalTokens", ".", "TokenNameassert", ":", "case", "TerminalTokens", ".", "TokenNamebyte", ":", "case", "TerminalTokens", ".", "TokenNamebreak", ":", "case", "TerminalTokens", ".", "TokenNameboolean", ":", "case", "TerminalTokens", ".", "TokenNamecase", ":", "case", "TerminalTokens", ".", "TokenNamechar", ":", "case", "TerminalTokens", ".", "TokenNamecatch", ":", "case", "TerminalTokens", ".", "TokenNameclass", ":", "case", "TerminalTokens", ".", "TokenNamecontinue", ":", "case", "TerminalTokens", ".", "TokenNamedo", ":", "case", "TerminalTokens", ".", "TokenNamedouble", ":", "case", "TerminalTokens", ".", "TokenNamedefault", ":", "case", "TerminalTokens", ".", "TokenNameelse", ":", "case", "TerminalTokens", ".", "TokenNameextends", ":", "case", "TerminalTokens", ".", "TokenNamefor", ":", "case", "TerminalTokens", ".", "TokenNamefinal", ":", "case", "TerminalTokens", ".", "TokenNamefloat", ":", "case", "TerminalTokens", ".", "TokenNamefalse", ":", "case", "TerminalTokens", ".", "TokenNamefinally", ":", "case", "TerminalTokens", ".", "TokenNameif", ":", "case", "TerminalTokens", ".", "TokenNameint", ":", "case", "TerminalTokens", ".", "TokenNameimport", ":", "case", "TerminalTokens", ".", "TokenNameinterface", ":", "case", "TerminalTokens", ".", "TokenNameimplements", ":", "case", "TerminalTokens", ".", "TokenNameinstanceof", ":", "case", "TerminalTokens", ".", "TokenNamelong", ":", "case", "TerminalTokens", ".", "TokenNamenew", ":", "case", "TerminalTokens", ".", "TokenNamenull", ":", "case", "TerminalTokens", ".", "TokenNamenative", ":", "case", "TerminalTokens", ".", "TokenNamepublic", ":", "case", "TerminalTokens", ".", "TokenNamepackage", ":", "case", "TerminalTokens", ".", "TokenNameprivate", ":", "case", "TerminalTokens", ".", "TokenNameprotected", ":", "case", "TerminalTokens", ".", "TokenNamereturn", ":", "case", "TerminalTokens", ".", "TokenNameshort", ":", "case", "TerminalTokens", ".", "TokenNamesuper", ":", "case", "TerminalTokens", ".", "TokenNamestatic", ":", "case", "TerminalTokens", ".", "TokenNameswitch", ":", "case", "TerminalTokens", ".", "TokenNamestrictfp", ":", "case", "TerminalTokens", ".", "TokenNamesynchronized", ":", "case", "TerminalTokens", ".", "TokenNametry", ":", "case", "TerminalTokens", ".", "TokenNamethis", ":", "case", "TerminalTokens", ".", "TokenNametrue", ":", "case", "TerminalTokens", ".", "TokenNamethrow", ":", "case", "TerminalTokens", ".", "TokenNamethrows", ":", "case", "TerminalTokens", ".", "TokenNametransient", ":", "case", "TerminalTokens", ".", "TokenNamevoid", ":", "case", "TerminalTokens", ".", "TokenNamevolatile", ":", "case", "TerminalTokens", ".", "TokenNamewhile", ":", "return", "true", ";", "default", ":", "return", "false", ";", "}", "}", "private", "boolean", "isLiteral", "(", "int", "token", ")", "{", "return", "Scanner", ".", "isLiteral", "(", "token", ")", ";", "}", "private", "boolean", "isRecoveredName", "(", "char", "[", "]", "simpleName", ")", "{", "return", "simpleName", "==", "RecoveryScanner", ".", "FAKE_IDENTIFIER", ";", "}", "private", "boolean", "isRecoveredName", "(", "char", "[", "]", "[", "]", "qualifiedName", ")", "{", "if", "(", "qualifiedName", "==", "null", ")", "return", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "qualifiedName", ".", "length", ";", "i", "++", ")", "{", "if", "(", "qualifiedName", "[", "i", "]", "==", "RecoveryScanner", ".", "FAKE_IDENTIFIER", ")", "return", "true", ";", "}", "return", "false", ";", "}", "public", "void", "javadocAmbiguousMethodReference", "(", "int", "sourceStart", ",", "int", "sourceEnd", ",", "Binding", "fieldBinding", ",", "int", "modifiers", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "JavadocAmbiguousMethodReference", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "fieldBinding", ".", "readableName", "(", ")", ")", "}", ";", "handle", "(", "IProblem", ".", "JavadocAmbiguousMethodReference", ",", "arguments", ",", "arguments", ",", "severity", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "}", "public", "void", "javadocDeprecatedField", "(", "FieldBinding", "field", ",", "ASTNode", "location", ",", "int", "modifiers", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "JavadocUsingDeprecatedField", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocUsingDeprecatedField", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", "}", ",", "severity", ",", "nodeSourceStart", "(", "field", ",", "location", ")", ",", "nodeSourceEnd", "(", "field", ",", "location", ")", ")", ";", "}", "}", "public", "void", "javadocDeprecatedMethod", "(", "MethodBinding", "method", ",", "ASTNode", "location", ",", "int", "modifiers", ")", "{", "boolean", "isConstructor", "=", "method", ".", "isConstructor", "(", ")", ";", "int", "severity", "=", "computeSeverity", "(", "isConstructor", "?", "IProblem", ".", "JavadocUsingDeprecatedConstructor", ":", "IProblem", ".", "JavadocUsingDeprecatedMethod", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "{", "if", "(", "isConstructor", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocUsingDeprecatedConstructor", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "severity", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "else", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocUsingDeprecatedMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "severity", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "}", "}", "public", "void", "javadocDeprecatedType", "(", "TypeBinding", "type", ",", "ASTNode", "location", ",", "int", "modifiers", ")", "{", "javadocDeprecatedType", "(", "type", ",", "location", ",", "modifiers", ",", "Integer", ".", "MAX_VALUE", ")", ";", "}", "public", "void", "javadocDeprecatedType", "(", "TypeBinding", "type", ",", "ASTNode", "location", ",", "int", "modifiers", ",", "int", "index", ")", "{", "if", "(", "location", "==", "null", ")", "return", ";", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "JavadocUsingDeprecatedType", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "{", "if", "(", "type", ".", "isMemberType", "(", ")", "&&", "type", "instanceof", "ReferenceBinding", "&&", "!", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "(", "(", "ReferenceBinding", ")", "type", ")", ".", "modifiers", ")", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocHiddenReference", ",", "NoArgument", ",", "NoArgument", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "else", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocUsingDeprecatedType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", "}", ",", "severity", ",", "location", ".", "sourceStart", ",", "nodeSourceEnd", "(", "null", ",", "location", ",", "index", ")", ")", ";", "}", "}", "}", "public", "void", "javadocDuplicatedParamTag", "(", "char", "[", "]", "token", ",", "int", "sourceStart", ",", "int", "sourceEnd", ",", "int", "modifiers", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "JavadocDuplicateParamName", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "String", ".", "valueOf", "(", "token", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "JavadocDuplicateParamName", ",", "arguments", ",", "arguments", ",", "severity", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "}", "public", "void", "javadocDuplicatedReturnTag", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocDuplicateReturnTag", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "javadocDuplicatedTag", "(", "char", "[", "]", "tagName", ",", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "tagName", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "JavadocDuplicateTag", ",", "arguments", ",", "arguments", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "javadocDuplicatedThrowsClassName", "(", "TypeReference", "typeReference", ",", "int", "modifiers", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "JavadocDuplicateThrowsClassName", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "String", ".", "valueOf", "(", "typeReference", ".", "resolvedType", ".", "sourceName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "JavadocDuplicateThrowsClassName", ",", "arguments", ",", "arguments", ",", "severity", ",", "typeReference", ".", "sourceStart", ",", "typeReference", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "javadocEmptyReturnTag", "(", "int", "sourceStart", ",", "int", "sourceEnd", ",", "int", "modifiers", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "JavadocEmptyReturnTag", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "JavadocTagConstants", ".", "TAG_RETURN", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "JavadocEmptyReturnTag", ",", "arguments", ",", "arguments", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "}", "public", "void", "javadocErrorNoMethodFor", "(", "MessageSend", "messageSend", ",", "TypeBinding", "recType", ",", "TypeBinding", "[", "]", "params", ",", "int", "modifiers", ")", "{", "int", "id", "=", "recType", ".", "isArrayType", "(", ")", "?", "IProblem", ".", "JavadocNoMessageSendOnArrayType", ":", "IProblem", ".", "JavadocNoMessageSendOnBaseType", ";", "int", "severity", "=", "computeSeverity", "(", "id", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "StringBuffer", "shortBuffer", "=", "new", "StringBuffer", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "params", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", "!=", "0", ")", "{", "buffer", ".", "append", "(", "\",", "\"", ")", ";", "shortBuffer", ".", "append", "(", "\",", "\"", ")", ";", "}", "buffer", ".", "append", "(", "new", "String", "(", "params", "[", "i", "]", ".", "readableName", "(", ")", ")", ")", ";", "shortBuffer", ".", "append", "(", "new", "String", "(", "params", "[", "i", "]", ".", "shortReadableName", "(", ")", ")", ")", ";", "}", "if", "(", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "{", "this", ".", "handle", "(", "id", ",", "new", "String", "[", "]", "{", "new", "String", "(", "recType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "messageSend", ".", "selector", ")", ",", "buffer", ".", "toString", "(", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "recType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "messageSend", ".", "selector", ")", ",", "shortBuffer", ".", "toString", "(", ")", "}", ",", "severity", ",", "messageSend", ".", "sourceStart", ",", "messageSend", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "javadocHiddenReference", "(", "int", "sourceStart", ",", "int", "sourceEnd", ",", "Scope", "scope", ",", "int", "modifiers", ")", "{", "Scope", "currentScope", "=", "scope", ";", "while", "(", "currentScope", ".", "parent", ".", "kind", "!=", "Scope", ".", "COMPILATION_UNIT_SCOPE", ")", "{", "if", "(", "!", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "currentScope", ".", "getDeclarationModifiers", "(", ")", ")", ")", "{", "return", ";", "}", "currentScope", "=", "currentScope", ".", "parent", ";", "}", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "this", ".", "options", ".", "getVisibilityString", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ")", ",", "this", ".", "options", ".", "getVisibilityString", "(", "modifiers", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "JavadocHiddenReference", ",", "arguments", ",", "arguments", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "javadocInvalidConstructor", "(", "Statement", "statement", ",", "MethodBinding", "targetConstructor", ",", "int", "modifiers", ")", "{", "if", "(", "!", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "return", ";", "int", "sourceStart", "=", "statement", ".", "sourceStart", ";", "int", "sourceEnd", "=", "statement", ".", "sourceEnd", ";", "if", "(", "statement", "instanceof", "AllocationExpression", ")", "{", "AllocationExpression", "allocation", "=", "(", "AllocationExpression", ")", "statement", ";", "if", "(", "allocation", ".", "enumConstant", "!=", "null", ")", "{", "sourceStart", "=", "allocation", ".", "enumConstant", ".", "sourceStart", ";", "sourceEnd", "=", "allocation", ".", "enumConstant", ".", "sourceEnd", ";", "}", "}", "int", "id", "=", "IProblem", ".", "JavadocUndefinedConstructor", ";", "ProblemMethodBinding", "problemConstructor", "=", "null", ";", "MethodBinding", "shownConstructor", "=", "null", ";", "switch", "(", "targetConstructor", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "id", "=", "IProblem", ".", "JavadocUndefinedConstructor", ";", "break", ";", "case", "ProblemReasons", ".", "NotVisible", ":", "id", "=", "IProblem", ".", "JavadocNotVisibleConstructor", ";", "break", ";", "case", "ProblemReasons", ".", "Ambiguous", ":", "id", "=", "IProblem", ".", "JavadocAmbiguousConstructor", ";", "break", ";", "case", "ProblemReasons", ".", "ParameterBoundMismatch", ":", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "JavadocGenericConstructorTypeArgumentMismatch", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "problemConstructor", "=", "(", "ProblemMethodBinding", ")", "targetConstructor", ";", "ParameterizedGenericMethodBinding", "substitutedConstructor", "=", "(", "ParameterizedGenericMethodBinding", ")", "problemConstructor", ".", "closestMatch", ";", "shownConstructor", "=", "substitutedConstructor", ".", "original", "(", ")", ";", "int", "augmentedLength", "=", "problemConstructor", ".", "parameters", ".", "length", ";", "TypeBinding", "inferredTypeArgument", "=", "problemConstructor", ".", "parameters", "[", "augmentedLength", "-", "2", "]", ";", "TypeVariableBinding", "typeParameter", "=", "(", "TypeVariableBinding", ")", "problemConstructor", ".", "parameters", "[", "augmentedLength", "-", "1", "]", ";", "TypeBinding", "[", "]", "invocationArguments", "=", "new", "TypeBinding", "[", "augmentedLength", "-", "2", "]", ";", "System", ".", "arraycopy", "(", "problemConstructor", ".", "parameters", ",", "0", ",", "invocationArguments", ",", "0", ",", "augmentedLength", "-", "2", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "JavadocGenericConstructorTypeArgumentMismatch", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "false", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "invocationArguments", ",", "false", ")", ",", "new", "String", "(", "inferredTypeArgument", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "typeParameter", ".", "sourceName", ")", ",", "parameterBoundAsString", "(", "typeParameter", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "true", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "invocationArguments", ",", "true", ")", ",", "new", "String", "(", "inferredTypeArgument", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "typeParameter", ".", "sourceName", ")", ",", "parameterBoundAsString", "(", "typeParameter", ",", "true", ")", "}", ",", "severity", ",", "sourceStart", ",", "sourceEnd", ")", ";", "return", ";", "case", "ProblemReasons", ".", "TypeParameterArityMismatch", ":", "problemConstructor", "=", "(", "ProblemMethodBinding", ")", "targetConstructor", ";", "shownConstructor", "=", "problemConstructor", ".", "closestMatch", ";", "boolean", "noTypeVariables", "=", "shownConstructor", ".", "typeVariables", "==", "Binding", ".", "NO_TYPE_VARIABLES", ";", "severity", "=", "computeSeverity", "(", "noTypeVariables", "?", "IProblem", ".", "JavadocNonGenericConstructor", ":", "IProblem", ".", "JavadocIncorrectArityForParameterizedConstructor", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "noTypeVariables", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocNonGenericConstructor", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "false", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "targetConstructor", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "true", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "targetConstructor", ",", "true", ")", "}", ",", "severity", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "else", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocIncorrectArityForParameterizedConstructor", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "false", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ".", "typeVariables", ",", "false", ")", ",", "typesAsString", "(", "targetConstructor", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "true", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ".", "typeVariables", ",", "true", ")", ",", "typesAsString", "(", "targetConstructor", ",", "true", ")", "}", ",", "severity", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "return", ";", "case", "ProblemReasons", ".", "ParameterizedMethodTypeMismatch", ":", "severity", "=", "computeSeverity", "(", "IProblem", ".", "JavadocParameterizedConstructorArgumentTypeMismatch", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "problemConstructor", "=", "(", "ProblemMethodBinding", ")", "targetConstructor", ";", "shownConstructor", "=", "problemConstructor", ".", "closestMatch", ";", "this", ".", "handle", "(", "IProblem", ".", "JavadocParameterizedConstructorArgumentTypeMismatch", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "false", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "(", "(", "ParameterizedGenericMethodBinding", ")", "shownConstructor", ")", ".", "typeArguments", ",", "false", ")", ",", "typesAsString", "(", "targetConstructor", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "true", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "(", "(", "ParameterizedGenericMethodBinding", ")", "shownConstructor", ")", ".", "typeArguments", ",", "true", ")", ",", "typesAsString", "(", "targetConstructor", ",", "true", ")", "}", ",", "severity", ",", "sourceStart", ",", "sourceEnd", ")", ";", "return", ";", "case", "ProblemReasons", ".", "TypeArgumentsForRawGenericMethod", ":", "severity", "=", "computeSeverity", "(", "IProblem", ".", "JavadocTypeArgumentsForRawGenericConstructor", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "problemConstructor", "=", "(", "ProblemMethodBinding", ")", "targetConstructor", ";", "shownConstructor", "=", "problemConstructor", ".", "closestMatch", ";", "this", ".", "handle", "(", "IProblem", ".", "JavadocTypeArgumentsForRawGenericConstructor", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "false", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "targetConstructor", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "shownConstructor", ",", "true", ")", ",", "new", "String", "(", "shownConstructor", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "targetConstructor", ",", "true", ")", "}", ",", "severity", ",", "sourceStart", ",", "sourceEnd", ")", ";", "return", ";", "case", "ProblemReasons", ".", "NoError", ":", "default", ":", "needImplementation", "(", "statement", ")", ";", "break", ";", "}", "int", "severity", "=", "computeSeverity", "(", "id", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "this", ".", "handle", "(", "id", ",", "new", "String", "[", "]", "{", "new", "String", "(", "targetConstructor", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "targetConstructor", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "targetConstructor", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "targetConstructor", ",", "true", ")", "}", ",", "severity", ",", "statement", ".", "sourceStart", ",", "statement", ".", "sourceEnd", ")", ";", "}", "public", "void", "javadocInvalidField", "(", "FieldReference", "fieldRef", ",", "Binding", "fieldBinding", ",", "TypeBinding", "searchedType", ",", "int", "modifiers", ")", "{", "int", "id", "=", "IProblem", ".", "JavadocUndefinedField", ";", "switch", "(", "fieldBinding", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "id", "=", "IProblem", ".", "JavadocUndefinedField", ";", "break", ";", "case", "ProblemReasons", ".", "NotVisible", ":", "id", "=", "IProblem", ".", "JavadocNotVisibleField", ";", "break", ";", "case", "ProblemReasons", ".", "Ambiguous", ":", "id", "=", "IProblem", ".", "JavadocAmbiguousField", ";", "break", ";", "case", "ProblemReasons", ".", "NoError", ":", "default", ":", "needImplementation", "(", "fieldRef", ")", ";", "break", ";", "}", "int", "severity", "=", "computeSeverity", "(", "id", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "fieldBinding", ".", "readableName", "(", ")", ")", "}", ";", "handle", "(", "id", ",", "arguments", ",", "arguments", ",", "severity", ",", "fieldRef", ".", "sourceStart", ",", "fieldRef", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "javadocInvalidMemberTypeQualification", "(", "int", "sourceStart", ",", "int", "sourceEnd", ",", "int", "modifiers", ")", "{", "if", "(", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocInvalidMemberTypeQualification", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "}", "public", "void", "javadocInvalidMethod", "(", "MessageSend", "messageSend", ",", "MethodBinding", "method", ",", "int", "modifiers", ")", "{", "if", "(", "!", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "return", ";", "ProblemMethodBinding", "problemMethod", "=", "null", ";", "MethodBinding", "shownMethod", "=", "null", ";", "int", "id", "=", "IProblem", ".", "JavadocUndefinedMethod", ";", "switch", "(", "method", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "id", "=", "IProblem", ".", "JavadocUndefinedMethod", ";", "problemMethod", "=", "(", "ProblemMethodBinding", ")", "method", ";", "if", "(", "problemMethod", ".", "closestMatch", "!=", "null", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "JavadocParameterMismatch", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "String", "closestParameterTypeNames", "=", "typesAsString", "(", "problemMethod", ".", "closestMatch", ",", "false", ")", ";", "String", "parameterTypeNames", "=", "typesAsString", "(", "method", ",", "false", ")", ";", "String", "closestParameterTypeShortNames", "=", "typesAsString", "(", "problemMethod", ".", "closestMatch", ",", "true", ")", ";", "String", "parameterTypeShortNames", "=", "typesAsString", "(", "method", ",", "true", ")", ";", "if", "(", "closestParameterTypeShortNames", ".", "equals", "(", "parameterTypeShortNames", ")", ")", "{", "closestParameterTypeShortNames", "=", "closestParameterTypeNames", ";", "parameterTypeShortNames", "=", "parameterTypeNames", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "JavadocParameterMismatch", ",", "new", "String", "[", "]", "{", "new", "String", "(", "problemMethod", ".", "closestMatch", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "problemMethod", ".", "closestMatch", ".", "selector", ")", ",", "closestParameterTypeNames", ",", "parameterTypeNames", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "problemMethod", ".", "closestMatch", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "problemMethod", ".", "closestMatch", ".", "selector", ")", ",", "closestParameterTypeShortNames", ",", "parameterTypeShortNames", "}", ",", "severity", ",", "(", "int", ")", "(", "messageSend", ".", "nameSourcePosition", ">>>", "32", ")", ",", "(", "int", ")", "messageSend", ".", "nameSourcePosition", ")", ";", "return", ";", "}", "break", ";", "case", "ProblemReasons", ".", "NotVisible", ":", "id", "=", "IProblem", ".", "JavadocNotVisibleMethod", ";", "break", ";", "case", "ProblemReasons", ".", "Ambiguous", ":", "id", "=", "IProblem", ".", "JavadocAmbiguousMethod", ";", "break", ";", "case", "ProblemReasons", ".", "ParameterBoundMismatch", ":", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "JavadocGenericMethodTypeArgumentMismatch", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "problemMethod", "=", "(", "ProblemMethodBinding", ")", "method", ";", "ParameterizedGenericMethodBinding", "substitutedMethod", "=", "(", "ParameterizedGenericMethodBinding", ")", "problemMethod", ".", "closestMatch", ";", "shownMethod", "=", "substitutedMethod", ".", "original", "(", ")", ";", "int", "augmentedLength", "=", "problemMethod", ".", "parameters", ".", "length", ";", "TypeBinding", "inferredTypeArgument", "=", "problemMethod", ".", "parameters", "[", "augmentedLength", "-", "2", "]", ";", "TypeVariableBinding", "typeParameter", "=", "(", "TypeVariableBinding", ")", "problemMethod", ".", "parameters", "[", "augmentedLength", "-", "1", "]", ";", "TypeBinding", "[", "]", "invocationArguments", "=", "new", "TypeBinding", "[", "augmentedLength", "-", "2", "]", ";", "System", ".", "arraycopy", "(", "problemMethod", ".", "parameters", ",", "0", ",", "invocationArguments", ",", "0", ",", "augmentedLength", "-", "2", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "JavadocGenericMethodTypeArgumentMismatch", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "false", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "invocationArguments", ",", "false", ")", ",", "new", "String", "(", "inferredTypeArgument", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "typeParameter", ".", "sourceName", ")", ",", "parameterBoundAsString", "(", "typeParameter", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "true", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "invocationArguments", ",", "true", ")", ",", "new", "String", "(", "inferredTypeArgument", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "typeParameter", ".", "sourceName", ")", ",", "parameterBoundAsString", "(", "typeParameter", ",", "true", ")", "}", ",", "severity", ",", "(", "int", ")", "(", "messageSend", ".", "nameSourcePosition", ">>>", "32", ")", ",", "(", "int", ")", "messageSend", ".", "nameSourcePosition", ")", ";", "return", ";", "case", "ProblemReasons", ".", "TypeParameterArityMismatch", ":", "problemMethod", "=", "(", "ProblemMethodBinding", ")", "method", ";", "shownMethod", "=", "problemMethod", ".", "closestMatch", ";", "boolean", "noTypeVariables", "=", "shownMethod", ".", "typeVariables", "==", "Binding", ".", "NO_TYPE_VARIABLES", ";", "severity", "=", "computeSeverity", "(", "noTypeVariables", "?", "IProblem", ".", "JavadocNonGenericMethod", ":", "IProblem", ".", "JavadocIncorrectArityForParameterizedMethod", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "noTypeVariables", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocNonGenericMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "false", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "true", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "severity", ",", "(", "int", ")", "(", "messageSend", ".", "nameSourcePosition", ">>>", "32", ")", ",", "(", "int", ")", "messageSend", ".", "nameSourcePosition", ")", ";", "}", "else", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocIncorrectArityForParameterizedMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "false", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "shownMethod", ".", "typeVariables", ",", "false", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "true", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "shownMethod", ".", "typeVariables", ",", "true", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "severity", ",", "(", "int", ")", "(", "messageSend", ".", "nameSourcePosition", ">>>", "32", ")", ",", "(", "int", ")", "messageSend", ".", "nameSourcePosition", ")", ";", "}", "return", ";", "case", "ProblemReasons", ".", "ParameterizedMethodTypeMismatch", ":", "severity", "=", "computeSeverity", "(", "IProblem", ".", "JavadocParameterizedMethodArgumentTypeMismatch", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "problemMethod", "=", "(", "ProblemMethodBinding", ")", "method", ";", "shownMethod", "=", "problemMethod", ".", "closestMatch", ";", "this", ".", "handle", "(", "IProblem", ".", "JavadocParameterizedMethodArgumentTypeMismatch", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "false", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "(", "(", "ParameterizedGenericMethodBinding", ")", "shownMethod", ")", ".", "typeArguments", ",", "false", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "true", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "(", "(", "ParameterizedGenericMethodBinding", ")", "shownMethod", ")", ".", "typeArguments", ",", "true", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "severity", ",", "(", "int", ")", "(", "messageSend", ".", "nameSourcePosition", ">>>", "32", ")", ",", "(", "int", ")", "messageSend", ".", "nameSourcePosition", ")", ";", "return", ";", "case", "ProblemReasons", ".", "TypeArgumentsForRawGenericMethod", ":", "severity", "=", "computeSeverity", "(", "IProblem", ".", "JavadocTypeArgumentsForRawGenericMethod", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "problemMethod", "=", "(", "ProblemMethodBinding", ")", "method", ";", "shownMethod", "=", "problemMethod", ".", "closestMatch", ";", "this", ".", "handle", "(", "IProblem", ".", "JavadocTypeArgumentsForRawGenericMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "false", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "shownMethod", ".", "selector", ")", ",", "typesAsString", "(", "shownMethod", ",", "true", ")", ",", "new", "String", "(", "shownMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "severity", ",", "(", "int", ")", "(", "messageSend", ".", "nameSourcePosition", ">>>", "32", ")", ",", "(", "int", ")", "messageSend", ".", "nameSourcePosition", ")", ";", "return", ";", "case", "ProblemReasons", ".", "NoError", ":", "default", ":", "needImplementation", "(", "messageSend", ")", ";", "break", ";", "}", "int", "severity", "=", "computeSeverity", "(", "id", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "this", ".", "handle", "(", "id", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "severity", ",", "(", "int", ")", "(", "messageSend", ".", "nameSourcePosition", ">>>", "32", ")", ",", "(", "int", ")", "messageSend", ".", "nameSourcePosition", ")", ";", "}", "public", "void", "javadocInvalidParamTagName", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocInvalidParamTagName", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "javadocInvalidParamTypeParameter", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocInvalidParamTagTypeParameter", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "javadocInvalidReference", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocInvalidSeeReference", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "javadocInvalidSeeHref", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocInvalidSeeHref", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "javadocInvalidSeeReferenceArgs", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocInvalidSeeArgs", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "javadocInvalidSeeUrlReference", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocInvalidSeeUrlReference", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "javadocInvalidTag", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocInvalidTag", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "javadocInvalidThrowsClass", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocInvalidThrowsClass", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "javadocInvalidThrowsClassName", "(", "TypeReference", "typeReference", ",", "int", "modifiers", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "JavadocInvalidThrowsClassName", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "String", ".", "valueOf", "(", "typeReference", ".", "resolvedType", ".", "sourceName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "JavadocInvalidThrowsClassName", ",", "arguments", ",", "arguments", ",", "severity", ",", "typeReference", ".", "sourceStart", ",", "typeReference", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "javadocInvalidType", "(", "ASTNode", "location", ",", "TypeBinding", "type", ",", "int", "modifiers", ")", "{", "if", "(", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "{", "int", "id", "=", "IProblem", ".", "JavadocUndefinedType", ";", "switch", "(", "type", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "id", "=", "IProblem", ".", "JavadocUndefinedType", ";", "break", ";", "case", "ProblemReasons", ".", "NotVisible", ":", "id", "=", "IProblem", ".", "JavadocNotVisibleType", ";", "break", ";", "case", "ProblemReasons", ".", "Ambiguous", ":", "id", "=", "IProblem", ".", "JavadocAmbiguousType", ";", "break", ";", "case", "ProblemReasons", ".", "InternalNameProvided", ":", "id", "=", "IProblem", ".", "JavadocInternalTypeNameProvided", ";", "break", ";", "case", "ProblemReasons", ".", "InheritedNameHidesEnclosingName", ":", "id", "=", "IProblem", ".", "JavadocInheritedNameHidesEnclosingTypeName", ";", "break", ";", "case", "ProblemReasons", ".", "NonStaticReferenceInStaticContext", ":", "id", "=", "IProblem", ".", "JavadocNonStaticTypeFromStaticInvocation", ";", "break", ";", "case", "ProblemReasons", ".", "NoError", ":", "default", ":", "needImplementation", "(", "location", ")", ";", "break", ";", "}", "int", "severity", "=", "computeSeverity", "(", "id", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "this", ".", "handle", "(", "id", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", "}", ",", "severity", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "javadocInvalidValueReference", "(", "int", "sourceStart", ",", "int", "sourceEnd", ",", "int", "modifiers", ")", "{", "if", "(", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "this", ".", "handle", "(", "IProblem", ".", "JavadocInvalidValueReference", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "javadocMalformedSeeReference", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocMalformedSeeReference", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "javadocMissing", "(", "int", "sourceStart", ",", "int", "sourceEnd", ",", "int", "modifiers", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "JavadocMissing", ")", ";", "this", ".", "javadocMissing", "(", "sourceStart", ",", "sourceEnd", ",", "severity", ",", "modifiers", ")", ";", "}", "public", "void", "javadocMissing", "(", "int", "sourceStart", ",", "int", "sourceEnd", ",", "int", "severity", ",", "int", "modifiers", ")", "{", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "boolean", "overriding", "=", "(", "modifiers", "&", "(", "ExtraCompilerModifiers", ".", "AccImplementing", "|", "ExtraCompilerModifiers", ".", "AccOverriding", ")", ")", "!=", "0", ";", "boolean", "report", "=", "(", "this", ".", "options", ".", "getSeverity", "(", "CompilerOptions", ".", "MissingJavadocComments", ")", "!=", "ProblemSeverities", ".", "Ignore", ")", "&&", "(", "!", "overriding", "||", "this", ".", "options", ".", "reportMissingJavadocCommentsOverriding", ")", ";", "if", "(", "report", ")", "{", "String", "arg", "=", "javadocVisibilityArgument", "(", "this", ".", "options", ".", "reportMissingJavadocCommentsVisibility", ",", "modifiers", ")", ";", "if", "(", "arg", "!=", "null", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "arg", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "JavadocMissing", ",", "arguments", ",", "arguments", ",", "severity", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "}", "}", "public", "void", "javadocMissingHashCharacter", "(", "int", "sourceStart", ",", "int", "sourceEnd", ",", "String", "ref", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "JavadocMissingHashCharacter", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "ref", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "JavadocMissingHashCharacter", ",", "arguments", ",", "arguments", ",", "severity", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "javadocMissingIdentifier", "(", "int", "sourceStart", ",", "int", "sourceEnd", ",", "int", "modifiers", ")", "{", "if", "(", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "this", ".", "handle", "(", "IProblem", ".", "JavadocMissingIdentifier", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "javadocMissingParamName", "(", "int", "sourceStart", ",", "int", "sourceEnd", ",", "int", "modifiers", ")", "{", "if", "(", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "this", ".", "handle", "(", "IProblem", ".", "JavadocMissingParamName", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "javadocMissingParamTag", "(", "char", "[", "]", "name", ",", "int", "sourceStart", ",", "int", "sourceEnd", ",", "int", "modifiers", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "JavadocMissingParamTag", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "boolean", "overriding", "=", "(", "modifiers", "&", "(", "ExtraCompilerModifiers", ".", "AccImplementing", "|", "ExtraCompilerModifiers", ".", "AccOverriding", ")", ")", "!=", "0", ";", "boolean", "report", "=", "(", "this", ".", "options", ".", "getSeverity", "(", "CompilerOptions", ".", "MissingJavadocTags", ")", "!=", "ProblemSeverities", ".", "Ignore", ")", "&&", "(", "!", "overriding", "||", "this", ".", "options", ".", "reportMissingJavadocTagsOverriding", ")", ";", "if", "(", "report", "&&", "javadocVisibility", "(", "this", ".", "options", ".", "reportMissingJavadocTagsVisibility", ",", "modifiers", ")", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "String", ".", "valueOf", "(", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "JavadocMissingParamTag", ",", "arguments", ",", "arguments", ",", "severity", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "}", "public", "void", "javadocMissingReference", "(", "int", "sourceStart", ",", "int", "sourceEnd", ",", "int", "modifiers", ")", "{", "if", "(", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "this", ".", "handle", "(", "IProblem", ".", "JavadocMissingSeeReference", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "javadocMissingReturnTag", "(", "int", "sourceStart", ",", "int", "sourceEnd", ",", "int", "modifiers", ")", "{", "boolean", "overriding", "=", "(", "modifiers", "&", "(", "ExtraCompilerModifiers", ".", "AccImplementing", "|", "ExtraCompilerModifiers", ".", "AccOverriding", ")", ")", "!=", "0", ";", "boolean", "report", "=", "(", "this", ".", "options", ".", "getSeverity", "(", "CompilerOptions", ".", "MissingJavadocTags", ")", "!=", "ProblemSeverities", ".", "Ignore", ")", "&&", "(", "!", "overriding", "||", "this", ".", "options", ".", "reportMissingJavadocTagsOverriding", ")", ";", "if", "(", "report", "&&", "javadocVisibility", "(", "this", ".", "options", ".", "reportMissingJavadocTagsVisibility", ",", "modifiers", ")", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocMissingReturnTag", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "}", "public", "void", "javadocMissingTagDescription", "(", "char", "[", "]", "tokenName", ",", "int", "sourceStart", ",", "int", "sourceEnd", ",", "int", "modifiers", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "JavadocMissingTagDescription", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "tokenName", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "JavadocEmptyReturnTag", ",", "arguments", ",", "arguments", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "}", "public", "void", "javadocMissingTagDescriptionAfterReference", "(", "int", "sourceStart", ",", "int", "sourceEnd", ",", "int", "modifiers", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "JavadocMissingTagDescription", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocMissingTagDescription", ",", "NoArgument", ",", "NoArgument", ",", "severity", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "}", "public", "void", "javadocMissingThrowsClassName", "(", "int", "sourceStart", ",", "int", "sourceEnd", ",", "int", "modifiers", ")", "{", "if", "(", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocMissingThrowsClassName", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "}", "public", "void", "javadocMissingThrowsTag", "(", "TypeReference", "typeRef", ",", "int", "modifiers", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "JavadocMissingThrowsTag", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "boolean", "overriding", "=", "(", "modifiers", "&", "(", "ExtraCompilerModifiers", ".", "AccImplementing", "|", "ExtraCompilerModifiers", ".", "AccOverriding", ")", ")", "!=", "0", ";", "boolean", "report", "=", "(", "this", ".", "options", ".", "getSeverity", "(", "CompilerOptions", ".", "MissingJavadocTags", ")", "!=", "ProblemSeverities", ".", "Ignore", ")", "&&", "(", "!", "overriding", "||", "this", ".", "options", ".", "reportMissingJavadocTagsOverriding", ")", ";", "if", "(", "report", "&&", "javadocVisibility", "(", "this", ".", "options", ".", "reportMissingJavadocTagsVisibility", ",", "modifiers", ")", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "String", ".", "valueOf", "(", "typeRef", ".", "resolvedType", ".", "sourceName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "JavadocMissingThrowsTag", ",", "arguments", ",", "arguments", ",", "severity", ",", "typeRef", ".", "sourceStart", ",", "typeRef", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "javadocUndeclaredParamTagName", "(", "char", "[", "]", "token", ",", "int", "sourceStart", ",", "int", "sourceEnd", ",", "int", "modifiers", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "JavadocInvalidParamName", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "javadocVisibility", "(", "this", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "String", ".", "valueOf", "(", "token", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "JavadocInvalidParamName", ",", "arguments", ",", "arguments", ",", "severity", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "}", "public", "void", "javadocUnexpectedTag", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocUnexpectedTag", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "javadocUnexpectedText", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocUnexpectedText", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "javadocUnterminatedInlineTag", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "JavadocUnterminatedInlineTag", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "private", "boolean", "javadocVisibility", "(", "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", ";", "}", "private", "String", "javadocVisibilityArgument", "(", "int", "visibility", ",", "int", "modifiers", ")", "{", "String", "argument", "=", "null", ";", "switch", "(", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccVisibilityMASK", ")", "{", "case", "ClassFileConstants", ".", "AccPublic", ":", "argument", "=", "CompilerOptions", ".", "PUBLIC", ";", "break", ";", "case", "ClassFileConstants", ".", "AccProtected", ":", "if", "(", "visibility", "!=", "ClassFileConstants", ".", "AccPublic", ")", "{", "argument", "=", "CompilerOptions", ".", "PROTECTED", ";", "}", "break", ";", "case", "ClassFileConstants", ".", "AccDefault", ":", "if", "(", "visibility", "==", "ClassFileConstants", ".", "AccDefault", "||", "visibility", "==", "ClassFileConstants", ".", "AccPrivate", ")", "{", "argument", "=", "CompilerOptions", ".", "DEFAULT", ";", "}", "break", ";", "case", "ClassFileConstants", ".", "AccPrivate", ":", "if", "(", "visibility", "==", "ClassFileConstants", ".", "AccPrivate", ")", "{", "argument", "=", "CompilerOptions", ".", "PRIVATE", ";", "}", "break", ";", "}", "return", "argument", ";", "}", "public", "void", "localVariableHiding", "(", "LocalDeclaration", "local", ",", "Binding", "hiddenVariable", ",", "boolean", "isSpecialArgHidingField", ")", "{", "if", "(", "hiddenVariable", "instanceof", "LocalVariableBinding", ")", "{", "int", "id", "=", "(", "local", "instanceof", "Argument", ")", "?", "IProblem", ".", "ArgumentHidingLocalVariable", ":", "IProblem", ".", "LocalVariableHidingLocalVariable", ";", "int", "severity", "=", "computeSeverity", "(", "id", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "id", ",", "arguments", ",", "arguments", ",", "severity", ",", "nodeSourceStart", "(", "hiddenVariable", ",", "local", ")", ",", "nodeSourceEnd", "(", "hiddenVariable", ",", "local", ")", ")", ";", "}", "else", "if", "(", "hiddenVariable", "instanceof", "FieldBinding", ")", "{", "if", "(", "isSpecialArgHidingField", "&&", "!", "this", ".", "options", ".", "reportSpecialParameterHidingField", ")", "{", "return", ";", "}", "int", "id", "=", "(", "local", "instanceof", "Argument", ")", "?", "IProblem", ".", "ArgumentHidingField", ":", "IProblem", ".", "LocalVariableHidingField", ";", "int", "severity", "=", "computeSeverity", "(", "id", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "FieldBinding", "field", "=", "(", "FieldBinding", ")", "hiddenVariable", ";", "this", ".", "handle", "(", "id", ",", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "name", ")", ",", "new", "String", "(", "field", ".", "declaringClass", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "name", ")", ",", "new", "String", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ",", "severity", ",", "local", ".", "sourceStart", ",", "local", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "localVariableNonNullComparedToNull", "(", "LocalVariableBinding", "local", ",", "ASTNode", "location", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "NonNullLocalVariableComparisonYieldsFalse", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "String", "[", "]", "arguments", ";", "int", "problemId", ";", "if", "(", "local", ".", "isNonNull", "(", ")", ")", "{", "char", "[", "]", "[", "]", "annotationName", "=", "this", ".", "options", ".", "nonNullAnnotationName", ";", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "name", ")", ",", "new", "String", "(", "annotationName", "[", "annotationName", ".", "length", "-", "1", "]", ")", "}", ";", "problemId", "=", "IProblem", ".", "SpecdNonNullLocalVariableComparisonYieldsFalse", ";", "}", "else", "{", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "name", ")", "}", ";", "problemId", "=", "IProblem", ".", "NonNullLocalVariableComparisonYieldsFalse", ";", "}", "this", ".", "handle", "(", "problemId", ",", "arguments", ",", "arguments", ",", "severity", ",", "nodeSourceStart", "(", "local", ",", "location", ")", ",", "nodeSourceEnd", "(", "local", ",", "location", ")", ")", ";", "}", "public", "void", "localVariableNullComparedToNonNull", "(", "LocalVariableBinding", "local", ",", "ASTNode", "location", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "NullLocalVariableComparisonYieldsFalse", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "NullLocalVariableComparisonYieldsFalse", ",", "arguments", ",", "arguments", ",", "severity", ",", "nodeSourceStart", "(", "local", ",", "location", ")", ",", "nodeSourceEnd", "(", "local", ",", "location", ")", ")", ";", "}", "public", "void", "localVariableNullInstanceof", "(", "LocalVariableBinding", "local", ",", "ASTNode", "location", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "NullLocalVariableInstanceofYieldsFalse", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "NullLocalVariableInstanceofYieldsFalse", ",", "arguments", ",", "arguments", ",", "severity", ",", "nodeSourceStart", "(", "local", ",", "location", ")", ",", "nodeSourceEnd", "(", "local", ",", "location", ")", ")", ";", "}", "public", "void", "localVariableNullReference", "(", "LocalVariableBinding", "local", ",", "ASTNode", "location", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "NullLocalVariableReference", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "NullLocalVariableReference", ",", "arguments", ",", "arguments", ",", "severity", ",", "nodeSourceStart", "(", "local", ",", "location", ")", ",", "nodeSourceEnd", "(", "local", ",", "location", ")", ")", ";", "}", "public", "void", "localVariablePotentialNullReference", "(", "LocalVariableBinding", "local", ",", "ASTNode", "location", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "PotentialNullLocalVariableReference", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "PotentialNullLocalVariableReference", ",", "arguments", ",", "arguments", ",", "severity", ",", "nodeSourceStart", "(", "local", ",", "location", ")", ",", "nodeSourceEnd", "(", "local", ",", "location", ")", ")", ";", "}", "public", "void", "localVariableRedundantCheckOnNonNull", "(", "LocalVariableBinding", "local", ",", "ASTNode", "location", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "RedundantNullCheckOnNonNullLocalVariable", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "String", "[", "]", "arguments", ";", "int", "problemId", ";", "if", "(", "local", ".", "isNonNull", "(", ")", ")", "{", "char", "[", "]", "[", "]", "annotationName", "=", "this", ".", "options", ".", "nonNullAnnotationName", ";", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "name", ")", ",", "new", "String", "(", "annotationName", "[", "annotationName", ".", "length", "-", "1", "]", ")", "}", ";", "problemId", "=", "IProblem", ".", "RedundantNullCheckOnSpecdNonNullLocalVariable", ";", "}", "else", "{", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "name", ")", "}", ";", "problemId", "=", "IProblem", ".", "RedundantNullCheckOnNonNullLocalVariable", ";", "}", "this", ".", "handle", "(", "problemId", ",", "arguments", ",", "arguments", ",", "severity", ",", "nodeSourceStart", "(", "local", ",", "location", ")", ",", "nodeSourceEnd", "(", "local", ",", "location", ")", ")", ";", "}", "public", "void", "localVariableRedundantCheckOnNull", "(", "LocalVariableBinding", "local", ",", "ASTNode", "location", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "RedundantNullCheckOnNullLocalVariable", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "RedundantNullCheckOnNullLocalVariable", ",", "arguments", ",", "arguments", ",", "severity", ",", "nodeSourceStart", "(", "local", ",", "location", ")", ",", "nodeSourceEnd", "(", "local", ",", "location", ")", ")", ";", "}", "public", "void", "localVariableRedundantNullAssignment", "(", "LocalVariableBinding", "local", ",", "ASTNode", "location", ")", "{", "if", "(", "(", "location", ".", "bits", "&", "ASTNode", ".", "FirstAssignmentToLocal", ")", "!=", "0", ")", "return", ";", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "RedundantLocalVariableNullAssignment", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "RedundantLocalVariableNullAssignment", ",", "arguments", ",", "arguments", ",", "severity", ",", "nodeSourceStart", "(", "local", ",", "location", ")", ",", "nodeSourceEnd", "(", "local", ",", "location", ")", ")", ";", "}", "public", "void", "methodMustOverride", "(", "AbstractMethodDeclaration", "method", ",", "long", "complianceLevel", ")", "{", "MethodBinding", "binding", "=", "method", ".", "binding", ";", "this", ".", "handle", "(", "complianceLevel", "==", "ClassFileConstants", ".", "JDK1_5", "?", "IProblem", ".", "MethodMustOverride", ":", "IProblem", ".", "MethodMustOverrideOrImplement", ",", "new", "String", "[", "]", "{", "new", "String", "(", "binding", ".", "selector", ")", ",", "typesAsString", "(", "binding", ",", "false", ")", ",", "new", "String", "(", "binding", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "binding", ".", "selector", ")", ",", "typesAsString", "(", "binding", ",", "true", ")", ",", "new", "String", "(", "binding", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "method", ".", "sourceStart", ",", "method", ".", "sourceEnd", ")", ";", "}", "public", "void", "methodNameClash", "(", "MethodBinding", "currentMethod", ",", "MethodBinding", "inheritedMethod", ",", "int", "severity", ")", "{", "if", "(", "currentMethod", ".", "declaringClass", "instanceof", "SourceTypeBinding", ")", "{", "SourceTypeBinding", "stb", "=", "(", "SourceTypeBinding", ")", "currentMethod", ".", "declaringClass", ";", "if", "(", "stb", ".", "scope", "!=", "null", "&&", "!", "stb", ".", "scope", ".", "shouldReport", "(", "IProblem", ".", "MethodNameClash", ")", ")", "{", "return", ";", "}", "}", "this", ".", "handle", "(", "IProblem", ".", "MethodNameClash", ",", "new", "String", "[", "]", "{", "new", "String", "(", "currentMethod", ".", "selector", ")", ",", "typesAsString", "(", "currentMethod", ",", "false", ")", ",", "new", "String", "(", "currentMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "inheritedMethod", ",", "false", ")", ",", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "currentMethod", ".", "selector", ")", ",", "typesAsString", "(", "currentMethod", ",", "true", ")", ",", "new", "String", "(", "currentMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "inheritedMethod", ",", "true", ")", ",", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "severity", ",", "currentMethod", ".", "sourceStart", "(", ")", ",", "currentMethod", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "methodNameClashHidden", "(", "MethodBinding", "currentMethod", ",", "MethodBinding", "inheritedMethod", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "MethodNameClashHidden", ",", "new", "String", "[", "]", "{", "new", "String", "(", "currentMethod", ".", "selector", ")", ",", "typesAsString", "(", "currentMethod", ",", "currentMethod", ".", "parameters", ",", "false", ")", ",", "new", "String", "(", "currentMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "inheritedMethod", ",", "inheritedMethod", ".", "parameters", ",", "false", ")", ",", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "currentMethod", ".", "selector", ")", ",", "typesAsString", "(", "currentMethod", ",", "currentMethod", ".", "parameters", ",", "true", ")", ",", "new", "String", "(", "currentMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "inheritedMethod", ",", "inheritedMethod", ".", "parameters", ",", "true", ")", ",", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "currentMethod", ".", "sourceStart", "(", ")", ",", "currentMethod", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "methodNeedBody", "(", "AbstractMethodDeclaration", "methodDecl", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "MethodRequiresBody", ",", "NoArgument", ",", "NoArgument", ",", "methodDecl", ".", "sourceStart", ",", "methodDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "methodNeedingNoBody", "(", "MethodDeclaration", "methodDecl", ")", "{", "this", ".", "handle", "(", "(", "(", "methodDecl", ".", "modifiers", "&", "ClassFileConstants", ".", "AccNative", ")", "!=", "0", ")", "?", "IProblem", ".", "BodyForNativeMethod", ":", "IProblem", ".", "BodyForAbstractMethod", ",", "NoArgument", ",", "NoArgument", ",", "methodDecl", ".", "sourceStart", ",", "methodDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "methodWithConstructorName", "(", "MethodDeclaration", "methodDecl", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "MethodButWithConstructorName", ",", "NoArgument", ",", "NoArgument", ",", "methodDecl", ".", "sourceStart", ",", "methodDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "methodCanBeDeclaredStatic", "(", "MethodDeclaration", "methodDecl", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "MethodCanBeStatic", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "MethodBinding", "method", "=", "methodDecl", ".", "binding", ";", "this", ".", "handle", "(", "IProblem", ".", "MethodCanBeStatic", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "severity", ",", "methodDecl", ".", "sourceStart", ",", "methodDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "methodCanBePotentiallyDeclaredStatic", "(", "MethodDeclaration", "methodDecl", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "MethodCanBePotentiallyStatic", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "MethodBinding", "method", "=", "methodDecl", ".", "binding", ";", "this", ".", "handle", "(", "IProblem", ".", "MethodCanBePotentiallyStatic", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "severity", ",", "methodDecl", ".", "sourceStart", ",", "methodDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "missingDeprecatedAnnotationForField", "(", "FieldDeclaration", "field", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "FieldMissingDeprecatedAnnotation", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "FieldBinding", "binding", "=", "field", ".", "binding", ";", "this", ".", "handle", "(", "IProblem", ".", "FieldMissingDeprecatedAnnotation", ",", "new", "String", "[", "]", "{", "new", "String", "(", "binding", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "binding", ".", "name", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "binding", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "binding", ".", "name", ")", ",", "}", ",", "severity", ",", "nodeSourceStart", "(", "binding", ",", "field", ")", ",", "nodeSourceEnd", "(", "binding", ",", "field", ")", ")", ";", "}", "public", "void", "missingDeprecatedAnnotationForMethod", "(", "AbstractMethodDeclaration", "method", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "MethodMissingDeprecatedAnnotation", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "MethodBinding", "binding", "=", "method", ".", "binding", ";", "this", ".", "handle", "(", "IProblem", ".", "MethodMissingDeprecatedAnnotation", ",", "new", "String", "[", "]", "{", "new", "String", "(", "binding", ".", "selector", ")", ",", "typesAsString", "(", "binding", ",", "false", ")", ",", "new", "String", "(", "binding", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "binding", ".", "selector", ")", ",", "typesAsString", "(", "binding", ",", "true", ")", ",", "new", "String", "(", "binding", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "severity", ",", "method", ".", "sourceStart", ",", "method", ".", "sourceEnd", ")", ";", "}", "public", "void", "missingDeprecatedAnnotationForType", "(", "TypeDeclaration", "type", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "TypeMissingDeprecatedAnnotation", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "TypeBinding", "binding", "=", "type", ".", "binding", ";", "this", ".", "handle", "(", "IProblem", ".", "TypeMissingDeprecatedAnnotation", ",", "new", "String", "[", "]", "{", "new", "String", "(", "binding", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "binding", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "severity", ",", "type", ".", "sourceStart", ",", "type", ".", "sourceEnd", ")", ";", "}", "public", "void", "missingEnumConstantCase", "(", "SwitchStatement", "switchStatement", ",", "FieldBinding", "enumConstant", ")", "{", "this", ".", "handle", "(", "switchStatement", ".", "defaultCase", "==", "null", "?", "IProblem", ".", "MissingEnumConstantCase", ":", "IProblem", ".", "MissingEnumConstantCaseDespiteDefault", ",", "new", "String", "[", "]", "{", "new", "String", "(", "enumConstant", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "enumConstant", ".", "name", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "enumConstant", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "enumConstant", ".", "name", ")", "}", ",", "switchStatement", ".", "expression", ".", "sourceStart", ",", "switchStatement", ".", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "missingDefaultCase", "(", "SwitchStatement", "switchStatement", ",", "boolean", "isEnumSwitch", ",", "TypeBinding", "expressionType", ")", "{", "if", "(", "isEnumSwitch", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "MissingEnumDefaultCase", ",", "new", "String", "[", "]", "{", "new", "String", "(", "expressionType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "expressionType", ".", "shortReadableName", "(", ")", ")", "}", ",", "switchStatement", ".", "expression", ".", "sourceStart", ",", "switchStatement", ".", "expression", ".", "sourceEnd", ")", ";", "}", "else", "{", "this", ".", "handle", "(", "IProblem", ".", "MissingDefaultCase", ",", "NoArgument", ",", "NoArgument", ",", "switchStatement", ".", "expression", ".", "sourceStart", ",", "switchStatement", ".", "expression", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "missingOverrideAnnotation", "(", "AbstractMethodDeclaration", "method", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "MissingOverrideAnnotation", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "MethodBinding", "binding", "=", "method", ".", "binding", ";", "this", ".", "handle", "(", "IProblem", ".", "MissingOverrideAnnotation", ",", "new", "String", "[", "]", "{", "new", "String", "(", "binding", ".", "selector", ")", ",", "typesAsString", "(", "binding", ",", "false", ")", ",", "new", "String", "(", "binding", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "binding", ".", "selector", ")", ",", "typesAsString", "(", "binding", ",", "true", ")", ",", "new", "String", "(", "binding", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "severity", ",", "method", ".", "sourceStart", ",", "method", ".", "sourceEnd", ")", ";", "}", "public", "void", "missingOverrideAnnotationForInterfaceMethodImplementation", "(", "AbstractMethodDeclaration", "method", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "MissingOverrideAnnotationForInterfaceMethodImplementation", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "MethodBinding", "binding", "=", "method", ".", "binding", ";", "this", ".", "handle", "(", "IProblem", ".", "MissingOverrideAnnotationForInterfaceMethodImplementation", ",", "new", "String", "[", "]", "{", "new", "String", "(", "binding", ".", "selector", ")", ",", "typesAsString", "(", "binding", ",", "false", ")", ",", "new", "String", "(", "binding", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "binding", ".", "selector", ")", ",", "typesAsString", "(", "binding", ",", "true", ")", ",", "new", "String", "(", "binding", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "severity", ",", "method", ".", "sourceStart", ",", "method", ".", "sourceEnd", ")", ";", "}", "public", "void", "missingReturnType", "(", "AbstractMethodDeclaration", "methodDecl", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "MissingReturnType", ",", "NoArgument", ",", "NoArgument", ",", "methodDecl", ".", "sourceStart", ",", "methodDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "missingSemiColon", "(", "Expression", "expression", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "MissingSemiColon", ",", "NoArgument", ",", "NoArgument", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "missingSerialVersion", "(", "TypeDeclaration", "typeDecl", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "typeDecl", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "MissingSerialVersion", ",", "arguments", ",", "arguments", ",", "typeDecl", ".", "sourceStart", ",", "typeDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "missingSynchronizedOnInheritedMethod", "(", "MethodBinding", "currentMethod", ",", "MethodBinding", "inheritedMethod", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "MissingSynchronizedModifierInInheritedMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "currentMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "currentMethod", ".", "selector", ")", ",", "typesAsString", "(", "currentMethod", ",", "false", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "currentMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "currentMethod", ".", "selector", ")", ",", "typesAsString", "(", "currentMethod", ",", "true", ")", ",", "}", ",", "currentMethod", ".", "sourceStart", "(", ")", ",", "currentMethod", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "missingTypeInConstructor", "(", "ASTNode", "location", ",", "MethodBinding", "constructor", ")", "{", "List", "missingTypes", "=", "constructor", ".", "collectMissingTypes", "(", "null", ")", ";", "if", "(", "missingTypes", "==", "null", ")", "{", "System", ".", "err", ".", "println", "(", "\"\"", "+", "constructor", "+", "\"\"", ")", ";", "return", ";", "}", "TypeBinding", "missingType", "=", "(", "TypeBinding", ")", "missingTypes", ".", "get", "(", "0", ")", ";", "int", "start", "=", "location", ".", "sourceStart", ";", "int", "end", "=", "location", ".", "sourceEnd", ";", "if", "(", "location", "instanceof", "QualifiedAllocationExpression", ")", "{", "QualifiedAllocationExpression", "qualifiedAllocation", "=", "(", "QualifiedAllocationExpression", ")", "location", ";", "if", "(", "qualifiedAllocation", ".", "anonymousType", "!=", "null", ")", "{", "start", "=", "qualifiedAllocation", ".", "anonymousType", ".", "sourceStart", ";", "end", "=", "qualifiedAllocation", ".", "anonymousType", ".", "sourceEnd", ";", "}", "}", "this", ".", "handle", "(", "IProblem", ".", "MissingTypeInConstructor", ",", "new", "String", "[", "]", "{", "new", "String", "(", "constructor", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "constructor", ",", "false", ")", ",", "new", "String", "(", "missingType", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "constructor", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "constructor", ",", "true", ")", ",", "new", "String", "(", "missingType", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "start", ",", "end", ")", ";", "}", "public", "void", "missingTypeInMethod", "(", "MessageSend", "messageSend", ",", "MethodBinding", "method", ")", "{", "List", "missingTypes", "=", "method", ".", "collectMissingTypes", "(", "null", ")", ";", "if", "(", "missingTypes", "==", "null", ")", "{", "System", ".", "err", ".", "println", "(", "\"The", "method", "\"", "+", "method", "+", "\"\"", ")", ";", "return", ";", "}", "TypeBinding", "missingType", "=", "(", "TypeBinding", ")", "missingTypes", ".", "get", "(", "0", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "MissingTypeInMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "false", ")", ",", "new", "String", "(", "missingType", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "true", ")", ",", "new", "String", "(", "missingType", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "(", "int", ")", "(", "messageSend", ".", "nameSourcePosition", ">>>", "32", ")", ",", "(", "int", ")", "messageSend", ".", "nameSourcePosition", ")", ";", "}", "public", "void", "missingValueForAnnotationMember", "(", "Annotation", "annotation", ",", "char", "[", "]", "memberName", ")", "{", "String", "memberString", "=", "new", "String", "(", "memberName", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "MissingValueForAnnotationMember", ",", "new", "String", "[", "]", "{", "new", "String", "(", "annotation", ".", "resolvedType", ".", "readableName", "(", ")", ")", ",", "memberString", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "annotation", ".", "resolvedType", ".", "shortReadableName", "(", ")", ")", ",", "memberString", "}", ",", "annotation", ".", "sourceStart", ",", "annotation", ".", "sourceEnd", ")", ";", "}", "public", "void", "mustDefineDimensionsOrInitializer", "(", "ArrayAllocationExpression", "expression", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "MustDefineEitherDimensionExpressionsOrInitializer", ",", "NoArgument", ",", "NoArgument", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "mustUseAStaticMethod", "(", "MessageSend", "messageSend", ",", "MethodBinding", "method", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "StaticMethodRequested", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "messageSend", ".", "sourceStart", ",", "messageSend", ".", "sourceEnd", ")", ";", "}", "public", "void", "nativeMethodsCannotBeStrictfp", "(", "ReferenceBinding", "type", ",", "AbstractMethodDeclaration", "methodDecl", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", ",", "new", "String", "(", "methodDecl", ".", "selector", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "NativeMethodsCannotBeStrictfp", ",", "arguments", ",", "arguments", ",", "methodDecl", ".", "sourceStart", ",", "methodDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "needImplementation", "(", "ASTNode", "location", ")", "{", "this", ".", "abortDueToInternalError", "(", "Messages", ".", "abort_missingCode", ",", "location", ")", ";", "}", "public", "void", "needToEmulateFieldAccess", "(", "FieldBinding", "field", ",", "ASTNode", "location", ",", "boolean", "isReadAccess", ")", "{", "int", "id", "=", "isReadAccess", "?", "IProblem", ".", "NeedToEmulateFieldReadAccess", ":", "IProblem", ".", "NeedToEmulateFieldWriteAccess", ";", "int", "severity", "=", "computeSeverity", "(", "id", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "this", ".", "handle", "(", "id", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", "}", ",", "severity", ",", "nodeSourceStart", "(", "field", ",", "location", ")", ",", "nodeSourceEnd", "(", "field", ",", "location", ")", ")", ";", "}", "public", "void", "needToEmulateMethodAccess", "(", "MethodBinding", "method", ",", "ASTNode", "location", ")", "{", "if", "(", "method", ".", "isConstructor", "(", ")", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "NeedToEmulateConstructorAccess", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "method", ".", "declaringClass", ".", "isEnum", "(", ")", ")", "return", ";", "this", ".", "handle", "(", "IProblem", ".", "NeedToEmulateConstructorAccess", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "severity", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "return", ";", "}", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "NeedToEmulateMethodAccess", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "this", ".", "handle", "(", "IProblem", ".", "NeedToEmulateMethodAccess", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "severity", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "noAdditionalBoundAfterTypeVariable", "(", "TypeReference", "boundReference", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "NoAdditionalBoundAfterTypeVariable", ",", "new", "String", "[", "]", "{", "new", "String", "(", "boundReference", ".", "resolvedType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "boundReference", ".", "resolvedType", ".", "shortReadableName", "(", ")", ")", "}", ",", "boundReference", ".", "sourceStart", ",", "boundReference", ".", "sourceEnd", ")", ";", "}", "private", "int", "nodeSourceEnd", "(", "Binding", "field", ",", "ASTNode", "node", ")", "{", "return", "nodeSourceEnd", "(", "field", ",", "node", ",", "0", ")", ";", "}", "private", "int", "nodeSourceEnd", "(", "Binding", "field", ",", "ASTNode", "node", ",", "int", "index", ")", "{", "if", "(", "node", "instanceof", "ArrayTypeReference", ")", "{", "return", "(", "(", "ArrayTypeReference", ")", "node", ")", ".", "originalSourceEnd", ";", "}", "else", "if", "(", "node", "instanceof", "QualifiedNameReference", ")", "{", "QualifiedNameReference", "ref", "=", "(", "QualifiedNameReference", ")", "node", ";", "if", "(", "ref", ".", "binding", "==", "field", ")", "{", "if", "(", "index", "==", "0", ")", "{", "return", "(", "int", ")", "(", "ref", ".", "sourcePositions", "[", "ref", ".", "indexOfFirstFieldBinding", "-", "1", "]", ")", ";", "}", "else", "{", "int", "length", "=", "ref", ".", "sourcePositions", ".", "length", ";", "if", "(", "index", "<", "length", ")", "{", "return", "(", "int", ")", "(", "ref", ".", "sourcePositions", "[", "index", "]", ")", ";", "}", "return", "(", "int", ")", "(", "ref", ".", "sourcePositions", "[", "0", "]", ")", ";", "}", "}", "FieldBinding", "[", "]", "otherFields", "=", "ref", ".", "otherBindings", ";", "if", "(", "otherFields", "!=", "null", ")", "{", "int", "offset", "=", "ref", ".", "indexOfFirstFieldBinding", ";", "if", "(", "index", "!=", "0", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "otherFields", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "(", "otherFields", "[", "i", "]", "==", "field", ")", "&&", "(", "i", "+", "offset", "==", "index", ")", ")", "{", "return", "(", "int", ")", "(", "ref", ".", "sourcePositions", "[", "i", "+", "offset", "]", ")", ";", "}", "}", "}", "else", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "otherFields", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "otherFields", "[", "i", "]", "==", "field", ")", "return", "(", "int", ")", "(", "ref", ".", "sourcePositions", "[", "i", "+", "offset", "]", ")", ";", "}", "}", "}", "}", "else", "if", "(", "node", "instanceof", "ParameterizedQualifiedTypeReference", ")", "{", "ParameterizedQualifiedTypeReference", "reference", "=", "(", "ParameterizedQualifiedTypeReference", ")", "node", ";", "if", "(", "index", "<", "reference", ".", "sourcePositions", ".", "length", ")", "{", "return", "(", "int", ")", "reference", ".", "sourcePositions", "[", "index", "]", ";", "}", "}", "else", "if", "(", "node", "instanceof", "ArrayQualifiedTypeReference", ")", "{", "ArrayQualifiedTypeReference", "reference", "=", "(", "ArrayQualifiedTypeReference", ")", "node", ";", "int", "length", "=", "reference", ".", "sourcePositions", ".", "length", ";", "if", "(", "index", "<", "length", ")", "{", "return", "(", "int", ")", "reference", ".", "sourcePositions", "[", "index", "]", ";", "}", "return", "(", "int", ")", "reference", ".", "sourcePositions", "[", "length", "-", "1", "]", ";", "}", "else", "if", "(", "node", "instanceof", "QualifiedTypeReference", ")", "{", "QualifiedTypeReference", "reference", "=", "(", "QualifiedTypeReference", ")", "node", ";", "int", "length", "=", "reference", ".", "sourcePositions", ".", "length", ";", "if", "(", "index", "<", "length", ")", "{", "return", "(", "int", ")", "reference", ".", "sourcePositions", "[", "index", "]", ";", "}", "}", "return", "node", ".", "sourceEnd", ";", "}", "private", "int", "nodeSourceStart", "(", "Binding", "field", ",", "ASTNode", "node", ")", "{", "return", "nodeSourceStart", "(", "field", ",", "node", ",", "0", ")", ";", "}", "private", "int", "nodeSourceStart", "(", "Binding", "field", ",", "ASTNode", "node", ",", "int", "index", ")", "{", "if", "(", "node", "instanceof", "FieldReference", ")", "{", "FieldReference", "fieldReference", "=", "(", "FieldReference", ")", "node", ";", "return", "(", "int", ")", "(", "fieldReference", ".", "nameSourcePosition", ">>", "32", ")", ";", "}", "else", "if", "(", "node", "instanceof", "QualifiedNameReference", ")", "{", "QualifiedNameReference", "ref", "=", "(", "QualifiedNameReference", ")", "node", ";", "if", "(", "ref", ".", "binding", "==", "field", ")", "{", "if", "(", "index", "==", "0", ")", "{", "return", "(", "int", ")", "(", "ref", ".", "sourcePositions", "[", "ref", ".", "indexOfFirstFieldBinding", "-", "1", "]", ">>", "32", ")", ";", "}", "else", "{", "return", "(", "int", ")", "(", "ref", ".", "sourcePositions", "[", "index", "]", ">>", "32", ")", ";", "}", "}", "FieldBinding", "[", "]", "otherFields", "=", "ref", ".", "otherBindings", ";", "if", "(", "otherFields", "!=", "null", ")", "{", "int", "offset", "=", "ref", ".", "indexOfFirstFieldBinding", ";", "if", "(", "index", "!=", "0", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "otherFields", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "(", "otherFields", "[", "i", "]", "==", "field", ")", "&&", "(", "i", "+", "offset", "==", "index", ")", ")", "{", "return", "(", "int", ")", "(", "ref", ".", "sourcePositions", "[", "i", "+", "offset", "]", ">>", "32", ")", ";", "}", "}", "}", "else", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "otherFields", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "otherFields", "[", "i", "]", "==", "field", ")", "{", "return", "(", "int", ")", "(", "ref", ".", "sourcePositions", "[", "i", "+", "offset", "]", ">>", "32", ")", ";", "}", "}", "}", "}", "}", "else", "if", "(", "node", "instanceof", "ParameterizedQualifiedTypeReference", ")", "{", "ParameterizedQualifiedTypeReference", "reference", "=", "(", "ParameterizedQualifiedTypeReference", ")", "node", ";", "return", "(", "int", ")", "(", "reference", ".", "sourcePositions", "[", "0", "]", ">>>", "32", ")", ";", "}", "return", "node", ".", "sourceStart", ";", "}", "public", "void", "noMoreAvailableSpaceForArgument", "(", "LocalVariableBinding", "local", ",", "ASTNode", "location", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "local", "instanceof", "SyntheticArgumentBinding", "?", "IProblem", ".", "TooManySyntheticArgumentSlots", ":", "IProblem", ".", "TooManyArgumentSlots", ",", "arguments", ",", "arguments", ",", "ProblemSeverities", ".", "Abort", "|", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Fatal", ",", "nodeSourceStart", "(", "local", ",", "location", ")", ",", "nodeSourceEnd", "(", "local", ",", "location", ")", ")", ";", "}", "public", "void", "noMoreAvailableSpaceForConstant", "(", "TypeDeclaration", "typeDeclaration", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "TooManyBytesForStringConstant", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeDeclaration", ".", "binding", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeDeclaration", ".", "binding", ".", "shortReadableName", "(", ")", ")", "}", ",", "ProblemSeverities", ".", "Abort", "|", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Fatal", ",", "typeDeclaration", ".", "sourceStart", ",", "typeDeclaration", ".", "sourceEnd", ")", ";", "}", "public", "void", "noMoreAvailableSpaceForLocal", "(", "LocalVariableBinding", "local", ",", "ASTNode", "location", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "TooManyLocalVariableSlots", ",", "arguments", ",", "arguments", ",", "ProblemSeverities", ".", "Abort", "|", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Fatal", ",", "nodeSourceStart", "(", "local", ",", "location", ")", ",", "nodeSourceEnd", "(", "local", ",", "location", ")", ")", ";", "}", "public", "void", "noMoreAvailableSpaceInConstantPool", "(", "TypeDeclaration", "typeDeclaration", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "TooManyConstantsInConstantPool", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeDeclaration", ".", "binding", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeDeclaration", ".", "binding", ".", "shortReadableName", "(", ")", ")", "}", ",", "ProblemSeverities", ".", "Abort", "|", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Fatal", ",", "typeDeclaration", ".", "sourceStart", ",", "typeDeclaration", ".", "sourceEnd", ")", ";", "}", "public", "void", "nonExternalizedStringLiteral", "(", "ASTNode", "location", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "NonExternalizedStringLiteral", ",", "NoArgument", ",", "NoArgument", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "nonGenericTypeCannotBeParameterized", "(", "int", "index", ",", "ASTNode", "location", ",", "TypeBinding", "type", ",", "TypeBinding", "[", "]", "argumentTypes", ")", "{", "if", "(", "location", "==", "null", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "NonGenericType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "argumentTypes", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "argumentTypes", ",", "true", ")", "}", ",", "ProblemSeverities", ".", "AbortCompilation", "|", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Fatal", ",", "0", ",", "0", ")", ";", "return", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "NonGenericType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "argumentTypes", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "argumentTypes", ",", "true", ")", "}", ",", "nodeSourceStart", "(", "null", ",", "location", ")", ",", "nodeSourceEnd", "(", "null", ",", "location", ",", "index", ")", ")", ";", "}", "public", "void", "nonStaticAccessToStaticField", "(", "ASTNode", "location", ",", "FieldBinding", "field", ")", "{", "nonStaticAccessToStaticField", "(", "location", ",", "field", ",", "-", "1", ")", ";", "}", "public", "void", "nonStaticAccessToStaticField", "(", "ASTNode", "location", ",", "FieldBinding", "field", ",", "int", "index", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "NonStaticAccessToStaticField", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "this", ".", "handle", "(", "IProblem", ".", "NonStaticAccessToStaticField", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", "}", ",", "severity", ",", "nodeSourceStart", "(", "field", ",", "location", ",", "index", ")", ",", "nodeSourceEnd", "(", "field", ",", "location", ",", "index", ")", ")", ";", "}", "public", "void", "nonStaticAccessToStaticMethod", "(", "ASTNode", "location", ",", "MethodBinding", "method", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "NonStaticAccessToStaticMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "nonStaticContextForEnumMemberType", "(", "SourceTypeBinding", "type", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "NonStaticContextForEnumMemberType", ",", "arguments", ",", "arguments", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "noSuchEnclosingInstance", "(", "TypeBinding", "targetType", ",", "ASTNode", "location", ",", "boolean", "isConstructorCall", ")", "{", "int", "id", ";", "if", "(", "isConstructorCall", ")", "{", "id", "=", "IProblem", ".", "EnclosingInstanceInConstructorCall", ";", "}", "else", "if", "(", "(", "location", "instanceof", "ExplicitConstructorCall", ")", "&&", "(", "(", "ExplicitConstructorCall", ")", "location", ")", ".", "accessMode", "==", "ExplicitConstructorCall", ".", "ImplicitSuper", ")", "{", "id", "=", "IProblem", ".", "MissingEnclosingInstanceForConstructorCall", ";", "}", "else", "if", "(", "location", "instanceof", "AllocationExpression", "&&", "(", "(", "(", "AllocationExpression", ")", "location", ")", ".", "binding", ".", "declaringClass", ".", "isMemberType", "(", ")", "||", "(", "(", "(", "AllocationExpression", ")", "location", ")", ".", "binding", ".", "declaringClass", ".", "isAnonymousType", "(", ")", "&&", "(", "(", "AllocationExpression", ")", "location", ")", ".", "binding", ".", "declaringClass", ".", "superclass", "(", ")", ".", "isMemberType", "(", ")", ")", ")", ")", "{", "id", "=", "IProblem", ".", "MissingEnclosingInstance", ";", "}", "else", "{", "id", "=", "IProblem", ".", "IncorrectEnclosingInstanceReference", ";", "}", "this", ".", "handle", "(", "id", ",", "new", "String", "[", "]", "{", "new", "String", "(", "targetType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "targetType", ".", "shortReadableName", "(", ")", ")", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "notCompatibleTypesError", "(", "EqualExpression", "expression", ",", "TypeBinding", "leftType", ",", "TypeBinding", "rightType", ")", "{", "String", "leftName", "=", "new", "String", "(", "leftType", ".", "readableName", "(", ")", ")", ";", "String", "rightName", "=", "new", "String", "(", "rightType", ".", "readableName", "(", ")", ")", ";", "String", "leftShortName", "=", "new", "String", "(", "leftType", ".", "shortReadableName", "(", ")", ")", ";", "String", "rightShortName", "=", "new", "String", "(", "rightType", ".", "shortReadableName", "(", ")", ")", ";", "if", "(", "leftShortName", ".", "equals", "(", "rightShortName", ")", ")", "{", "leftShortName", "=", "leftName", ";", "rightShortName", "=", "rightName", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "IncompatibleTypesInEqualityOperator", ",", "new", "String", "[", "]", "{", "leftName", ",", "rightName", "}", ",", "new", "String", "[", "]", "{", "leftShortName", ",", "rightShortName", "}", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "notCompatibleTypesError", "(", "InstanceOfExpression", "expression", ",", "TypeBinding", "leftType", ",", "TypeBinding", "rightType", ")", "{", "String", "leftName", "=", "new", "String", "(", "leftType", ".", "readableName", "(", ")", ")", ";", "String", "rightName", "=", "new", "String", "(", "rightType", ".", "readableName", "(", ")", ")", ";", "String", "leftShortName", "=", "new", "String", "(", "leftType", ".", "shortReadableName", "(", ")", ")", ";", "String", "rightShortName", "=", "new", "String", "(", "rightType", ".", "shortReadableName", "(", ")", ")", ";", "if", "(", "leftShortName", ".", "equals", "(", "rightShortName", ")", ")", "{", "leftShortName", "=", "leftName", ";", "rightShortName", "=", "rightName", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "IncompatibleTypesInConditionalOperator", ",", "new", "String", "[", "]", "{", "leftName", ",", "rightName", "}", ",", "new", "String", "[", "]", "{", "leftShortName", ",", "rightShortName", "}", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "notCompatibleTypesErrorInForeach", "(", "Expression", "expression", ",", "TypeBinding", "leftType", ",", "TypeBinding", "rightType", ")", "{", "String", "leftName", "=", "new", "String", "(", "leftType", ".", "readableName", "(", ")", ")", ";", "String", "rightName", "=", "new", "String", "(", "rightType", ".", "readableName", "(", ")", ")", ";", "String", "leftShortName", "=", "new", "String", "(", "leftType", ".", "shortReadableName", "(", ")", ")", ";", "String", "rightShortName", "=", "new", "String", "(", "rightType", ".", "shortReadableName", "(", ")", ")", ";", "if", "(", "leftShortName", ".", "equals", "(", "rightShortName", ")", ")", "{", "leftShortName", "=", "leftName", ";", "rightShortName", "=", "rightName", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "IncompatibleTypesInForeach", ",", "new", "String", "[", "]", "{", "leftName", ",", "rightName", "}", ",", "new", "String", "[", "]", "{", "leftShortName", ",", "rightShortName", "}", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "objectCannotBeGeneric", "(", "TypeDeclaration", "typeDecl", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "ObjectCannotBeGeneric", ",", "NoArgument", ",", "NoArgument", ",", "typeDecl", ".", "typeParameters", "[", "0", "]", ".", "sourceStart", ",", "typeDecl", ".", "typeParameters", "[", "typeDecl", ".", "typeParameters", ".", "length", "-", "1", "]", ".", "sourceEnd", ")", ";", "}", "public", "void", "objectCannotHaveSuperTypes", "(", "SourceTypeBinding", "type", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "ObjectCannotHaveSuperTypes", ",", "NoArgument", ",", "NoArgument", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "objectMustBeClass", "(", "SourceTypeBinding", "type", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "ObjectMustBeClass", ",", "NoArgument", ",", "NoArgument", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "operatorOnlyValidOnNumericType", "(", "CompoundAssignment", "assignment", ",", "TypeBinding", "leftType", ",", "TypeBinding", "rightType", ")", "{", "String", "leftName", "=", "new", "String", "(", "leftType", ".", "readableName", "(", ")", ")", ";", "String", "rightName", "=", "new", "String", "(", "rightType", ".", "readableName", "(", ")", ")", ";", "String", "leftShortName", "=", "new", "String", "(", "leftType", ".", "shortReadableName", "(", ")", ")", ";", "String", "rightShortName", "=", "new", "String", "(", "rightType", ".", "shortReadableName", "(", ")", ")", ";", "if", "(", "leftShortName", ".", "equals", "(", "rightShortName", ")", ")", "{", "leftShortName", "=", "leftName", ";", "rightShortName", "=", "rightName", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "TypeMismatch", ",", "new", "String", "[", "]", "{", "leftName", ",", "rightName", "}", ",", "new", "String", "[", "]", "{", "leftShortName", ",", "rightShortName", "}", ",", "assignment", ".", "sourceStart", ",", "assignment", ".", "sourceEnd", ")", ";", "}", "public", "void", "overridesDeprecatedMethod", "(", "MethodBinding", "localMethod", ",", "MethodBinding", "inheritedMethod", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "OverridingDeprecatedMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "CharOperation", ".", "concat", "(", "localMethod", ".", "declaringClass", ".", "readableName", "(", ")", ",", "localMethod", ".", "readableName", "(", ")", ",", "'.'", ")", ")", ",", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "CharOperation", ".", "concat", "(", "localMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ",", "localMethod", ".", "shortReadableName", "(", ")", ",", "'.'", ")", ")", ",", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ",", "localMethod", ".", "sourceStart", "(", ")", ",", "localMethod", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "overridesMethodWithoutSuperInvocation", "(", "MethodBinding", "localMethod", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "OverridingMethodWithoutSuperInvocation", ",", "new", "String", "[", "]", "{", "new", "String", "(", "CharOperation", ".", "concat", "(", "localMethod", ".", "declaringClass", ".", "readableName", "(", ")", ",", "localMethod", ".", "readableName", "(", ")", ",", "'.'", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "CharOperation", ".", "concat", "(", "localMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ",", "localMethod", ".", "shortReadableName", "(", ")", ",", "'.'", ")", ")", "}", ",", "localMethod", ".", "sourceStart", "(", ")", ",", "localMethod", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "overridesPackageDefaultMethod", "(", "MethodBinding", "localMethod", ",", "MethodBinding", "inheritedMethod", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "OverridingNonVisibleMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "CharOperation", ".", "concat", "(", "localMethod", ".", "declaringClass", ".", "readableName", "(", ")", ",", "localMethod", ".", "readableName", "(", ")", ",", "'.'", ")", ")", ",", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "CharOperation", ".", "concat", "(", "localMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ",", "localMethod", ".", "shortReadableName", "(", ")", ",", "'.'", ")", ")", ",", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ",", "localMethod", ".", "sourceStart", "(", ")", ",", "localMethod", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "packageCollidesWithType", "(", "CompilationUnitDeclaration", "compUnitDecl", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "CharOperation", ".", "toString", "(", "compUnitDecl", ".", "currentPackage", ".", "tokens", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "PackageCollidesWithType", ",", "arguments", ",", "arguments", ",", "compUnitDecl", ".", "currentPackage", ".", "sourceStart", ",", "compUnitDecl", ".", "currentPackage", ".", "sourceEnd", ")", ";", "}", "public", "void", "packageIsNotExpectedPackage", "(", "CompilationUnitDeclaration", "compUnitDecl", ")", "{", "boolean", "hasPackageDeclaration", "=", "compUnitDecl", ".", "currentPackage", "==", "null", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "CharOperation", ".", "toString", "(", "compUnitDecl", ".", "compilationResult", ".", "compilationUnit", ".", "getPackageName", "(", ")", ")", ",", "hasPackageDeclaration", "?", "\"\"", ":", "CharOperation", ".", "toString", "(", "compUnitDecl", ".", "currentPackage", ".", "tokens", ")", ",", "}", ";", "int", "end", ";", "if", "(", "compUnitDecl", ".", "sourceEnd", "<=", "0", ")", "{", "end", "=", "-", "1", ";", "}", "else", "{", "end", "=", "hasPackageDeclaration", "?", "0", ":", "compUnitDecl", ".", "currentPackage", ".", "sourceEnd", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "PackageIsNotExpectedPackage", ",", "arguments", ",", "arguments", ",", "hasPackageDeclaration", "?", "0", ":", "compUnitDecl", ".", "currentPackage", ".", "sourceStart", ",", "end", ")", ";", "}", "public", "void", "parameterAssignment", "(", "LocalVariableBinding", "local", ",", "ASTNode", "location", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "ParameterAssignment", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "readableName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "ParameterAssignment", ",", "arguments", ",", "arguments", ",", "severity", ",", "nodeSourceStart", "(", "local", ",", "location", ")", ",", "nodeSourceEnd", "(", "local", ",", "location", ")", ")", ";", "}", "private", "String", "parameterBoundAsString", "(", "TypeVariableBinding", "typeVariable", ",", "boolean", "makeShort", ")", "{", "StringBuffer", "nameBuffer", "=", "new", "StringBuffer", "(", "10", ")", ";", "if", "(", "typeVariable", ".", "firstBound", "==", "typeVariable", ".", "superclass", ")", "{", "nameBuffer", ".", "append", "(", "makeShort", "?", "typeVariable", ".", "superclass", ".", "shortReadableName", "(", ")", ":", "typeVariable", ".", "superclass", ".", "readableName", "(", ")", ")", ";", "}", "int", "length", ";", "if", "(", "(", "length", "=", "typeVariable", ".", "superInterfaces", ".", "length", ")", ">", "0", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", "||", "typeVariable", ".", "firstBound", "==", "typeVariable", ".", "superclass", ")", "nameBuffer", ".", "append", "(", "\"", "&", "\"", ")", ";", "nameBuffer", ".", "append", "(", "makeShort", "?", "typeVariable", ".", "superInterfaces", "[", "i", "]", ".", "shortReadableName", "(", ")", ":", "typeVariable", ".", "superInterfaces", "[", "i", "]", ".", "readableName", "(", ")", ")", ";", "}", "}", "return", "nameBuffer", ".", "toString", "(", ")", ";", "}", "public", "void", "parameterizedMemberTypeMissingArguments", "(", "ASTNode", "location", ",", "TypeBinding", "type", ",", "int", "index", ")", "{", "if", "(", "location", "==", "null", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "MissingArgumentsForParameterizedMemberType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", "}", ",", "ProblemSeverities", ".", "AbortCompilation", "|", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Fatal", ",", "0", ",", "0", ")", ";", "return", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "MissingArgumentsForParameterizedMemberType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", "}", ",", "location", ".", "sourceStart", ",", "nodeSourceEnd", "(", "null", ",", "location", ",", "index", ")", ")", ";", "}", "public", "void", "parseError", "(", "int", "startPosition", ",", "int", "endPosition", ",", "int", "currentToken", ",", "char", "[", "]", "currentTokenSource", ",", "String", "errorTokenName", ",", "String", "[", "]", "possibleTokens", ")", "{", "if", "(", "possibleTokens", ".", "length", "==", "0", ")", "{", "if", "(", "isKeyword", "(", "currentToken", ")", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "currentTokenSource", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "ParsingErrorOnKeywordNoSuggestion", ",", "arguments", ",", "arguments", ",", "startPosition", ",", "endPosition", ")", ";", "return", ";", "}", "else", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "errorTokenName", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "ParsingErrorNoSuggestion", ",", "arguments", ",", "arguments", ",", "startPosition", ",", "endPosition", ")", ";", "return", ";", "}", "}", "StringBuffer", "list", "=", "new", "StringBuffer", "(", "20", ")", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "possibleTokens", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "list", ".", "append", "(", "\",", "\"", ")", ";", "list", ".", "append", "(", "'\"'", ")", ";", "list", ".", "append", "(", "possibleTokens", "[", "i", "]", ")", ";", "list", ".", "append", "(", "'\"'", ")", ";", "}", "if", "(", "isKeyword", "(", "currentToken", ")", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "currentTokenSource", ")", ",", "list", ".", "toString", "(", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "ParsingErrorOnKeyword", ",", "arguments", ",", "arguments", ",", "startPosition", ",", "endPosition", ")", ";", "return", ";", "}", "if", "(", "isLiteral", "(", "currentToken", ")", "||", "isIdentifier", "(", "currentToken", ")", ")", "{", "errorTokenName", "=", "new", "String", "(", "currentTokenSource", ")", ";", "}", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "errorTokenName", ",", "list", ".", "toString", "(", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "ParsingError", ",", "arguments", ",", "arguments", ",", "startPosition", ",", "endPosition", ")", ";", "}", "public", "void", "parseErrorDeleteToken", "(", "int", "start", ",", "int", "end", ",", "int", "currentKind", ",", "char", "[", "]", "errorTokenSource", ",", "String", "errorTokenName", ")", "{", "syntaxError", "(", "IProblem", ".", "ParsingErrorDeleteToken", ",", "start", ",", "end", ",", "currentKind", ",", "errorTokenSource", ",", "errorTokenName", ",", "null", ")", ";", "}", "public", "void", "parseErrorDeleteTokens", "(", "int", "start", ",", "int", "end", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "ParsingErrorDeleteTokens", ",", "NoArgument", ",", "NoArgument", ",", "start", ",", "end", ")", ";", "}", "public", "void", "parseErrorInsertAfterToken", "(", "int", "start", ",", "int", "end", ",", "int", "currentKind", ",", "char", "[", "]", "errorTokenSource", ",", "String", "errorTokenName", ",", "String", "expectedToken", ")", "{", "syntaxError", "(", "IProblem", ".", "ParsingErrorInsertTokenAfter", ",", "start", ",", "end", ",", "currentKind", ",", "errorTokenSource", ",", "errorTokenName", ",", "expectedToken", ")", ";", "}", "public", "void", "parseErrorInsertBeforeToken", "(", "int", "start", ",", "int", "end", ",", "int", "currentKind", ",", "char", "[", "]", "errorTokenSource", ",", "String", "errorTokenName", ",", "String", "expectedToken", ")", "{", "syntaxError", "(", "IProblem", ".", "ParsingErrorInsertTokenBefore", ",", "start", ",", "end", ",", "currentKind", ",", "errorTokenSource", ",", "errorTokenName", ",", "expectedToken", ")", ";", "}", "public", "void", "parseErrorInsertToComplete", "(", "int", "start", ",", "int", "end", ",", "String", "inserted", ",", "String", "completed", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "inserted", ",", "completed", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "ParsingErrorInsertToComplete", ",", "arguments", ",", "arguments", ",", "start", ",", "end", ")", ";", "}", "public", "void", "parseErrorInsertToCompletePhrase", "(", "int", "start", ",", "int", "end", ",", "String", "inserted", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "inserted", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "ParsingErrorInsertToCompletePhrase", ",", "arguments", ",", "arguments", ",", "start", ",", "end", ")", ";", "}", "public", "void", "parseErrorInsertToCompleteScope", "(", "int", "start", ",", "int", "end", ",", "String", "inserted", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "inserted", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "ParsingErrorInsertToCompleteScope", ",", "arguments", ",", "arguments", ",", "start", ",", "end", ")", ";", "}", "public", "void", "parseErrorInvalidToken", "(", "int", "start", ",", "int", "end", ",", "int", "currentKind", ",", "char", "[", "]", "errorTokenSource", ",", "String", "errorTokenName", ",", "String", "expectedToken", ")", "{", "syntaxError", "(", "IProblem", ".", "ParsingErrorInvalidToken", ",", "start", ",", "end", ",", "currentKind", ",", "errorTokenSource", ",", "errorTokenName", ",", "expectedToken", ")", ";", "}", "public", "void", "parseErrorMergeTokens", "(", "int", "start", ",", "int", "end", ",", "String", "expectedToken", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "expectedToken", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "ParsingErrorMergeTokens", ",", "arguments", ",", "arguments", ",", "start", ",", "end", ")", ";", "}", "public", "void", "parseErrorMisplacedConstruct", "(", "int", "start", ",", "int", "end", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "ParsingErrorMisplacedConstruct", ",", "NoArgument", ",", "NoArgument", ",", "start", ",", "end", ")", ";", "}", "public", "void", "parseErrorNoSuggestion", "(", "int", "start", ",", "int", "end", ",", "int", "currentKind", ",", "char", "[", "]", "errorTokenSource", ",", "String", "errorTokenName", ")", "{", "syntaxError", "(", "IProblem", ".", "ParsingErrorNoSuggestion", ",", "start", ",", "end", ",", "currentKind", ",", "errorTokenSource", ",", "errorTokenName", ",", "null", ")", ";", "}", "public", "void", "parseErrorNoSuggestionForTokens", "(", "int", "start", ",", "int", "end", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "ParsingErrorNoSuggestionForTokens", ",", "NoArgument", ",", "NoArgument", ",", "start", ",", "end", ")", ";", "}", "public", "void", "parseErrorReplaceToken", "(", "int", "start", ",", "int", "end", ",", "int", "currentKind", ",", "char", "[", "]", "errorTokenSource", ",", "String", "errorTokenName", ",", "String", "expectedToken", ")", "{", "syntaxError", "(", "IProblem", ".", "ParsingError", ",", "start", ",", "end", ",", "currentKind", ",", "errorTokenSource", ",", "errorTokenName", ",", "expectedToken", ")", ";", "}", "public", "void", "parseErrorReplaceTokens", "(", "int", "start", ",", "int", "end", ",", "String", "expectedToken", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "expectedToken", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "ParsingErrorReplaceTokens", ",", "arguments", ",", "arguments", ",", "start", ",", "end", ")", ";", "}", "public", "void", "parseErrorUnexpectedEnd", "(", "int", "start", ",", "int", "end", ")", "{", "String", "[", "]", "arguments", ";", "if", "(", "this", ".", "referenceContext", "instanceof", "ConstructorDeclaration", ")", "{", "arguments", "=", "new", "String", "[", "]", "{", "Messages", ".", "parser_endOfConstructor", "}", ";", "}", "else", "if", "(", "this", ".", "referenceContext", "instanceof", "MethodDeclaration", ")", "{", "arguments", "=", "new", "String", "[", "]", "{", "Messages", ".", "parser_endOfMethod", "}", ";", "}", "else", "if", "(", "this", ".", "referenceContext", "instanceof", "TypeDeclaration", ")", "{", "arguments", "=", "new", "String", "[", "]", "{", "Messages", ".", "parser_endOfInitializer", "}", ";", "}", "else", "{", "arguments", "=", "new", "String", "[", "]", "{", "Messages", ".", "parser_endOfFile", "}", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "ParsingErrorUnexpectedEOF", ",", "arguments", ",", "arguments", ",", "start", ",", "end", ")", ";", "}", "public", "void", "possibleAccidentalBooleanAssignment", "(", "Assignment", "assignment", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "PossibleAccidentalBooleanAssignment", ",", "NoArgument", ",", "NoArgument", ",", "assignment", ".", "sourceStart", ",", "assignment", ".", "sourceEnd", ")", ";", "}", "public", "void", "possibleFallThroughCase", "(", "CaseStatement", "caseStatement", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "FallthroughCase", ",", "NoArgument", ",", "NoArgument", ",", "caseStatement", ".", "sourceStart", ",", "caseStatement", ".", "sourceEnd", ")", ";", "}", "public", "void", "publicClassMustMatchFileName", "(", "CompilationUnitDeclaration", "compUnitDecl", ",", "TypeDeclaration", "typeDecl", ")", "{", "this", ".", "referenceContext", "=", "typeDecl", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "compUnitDecl", ".", "getFileName", "(", ")", ")", ",", "new", "String", "(", "typeDecl", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "PublicClassMustMatchFileName", ",", "arguments", ",", "arguments", ",", "typeDecl", ".", "sourceStart", ",", "typeDecl", ".", "sourceEnd", ",", "compUnitDecl", ".", "compilationResult", ")", ";", "}", "public", "void", "rawMemberTypeCannotBeParameterized", "(", "ASTNode", "location", ",", "ReferenceBinding", "type", ",", "TypeBinding", "[", "]", "argumentTypes", ")", "{", "if", "(", "location", "==", "null", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "RawMemberTypeCannotBeParameterized", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "argumentTypes", ",", "false", ")", ",", "new", "String", "(", "type", ".", "enclosingType", "(", ")", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "argumentTypes", ",", "true", ")", ",", "new", "String", "(", "type", ".", "enclosingType", "(", ")", ".", "shortReadableName", "(", ")", ")", "}", ",", "ProblemSeverities", ".", "AbortCompilation", "|", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Fatal", ",", "0", ",", "0", ")", ";", "return", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "RawMemberTypeCannotBeParameterized", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "argumentTypes", ",", "false", ")", ",", "new", "String", "(", "type", ".", "enclosingType", "(", ")", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "argumentTypes", ",", "true", ")", ",", "new", "String", "(", "type", ".", "enclosingType", "(", ")", ".", "shortReadableName", "(", ")", ")", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "rawTypeReference", "(", "ASTNode", "location", ",", "TypeBinding", "type", ")", "{", "if", "(", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "return", ";", "type", "=", "type", ".", "leafComponentType", "(", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "RawTypeReference", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "erasure", "(", ")", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "erasure", "(", ")", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "location", ".", "sourceStart", ",", "nodeSourceEnd", "(", "null", ",", "location", ",", "Integer", ".", "MAX_VALUE", ")", ")", ";", "}", "public", "void", "recursiveConstructorInvocation", "(", "ExplicitConstructorCall", "constructorCall", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "RecursiveConstructorInvocation", ",", "new", "String", "[", "]", "{", "new", "String", "(", "constructorCall", ".", "binding", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "constructorCall", ".", "binding", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "constructorCall", ".", "binding", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "constructorCall", ".", "binding", ",", "true", ")", "}", ",", "constructorCall", ".", "sourceStart", ",", "constructorCall", ".", "sourceEnd", ")", ";", "}", "public", "void", "redefineArgument", "(", "Argument", "arg", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "arg", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "RedefinedArgument", ",", "arguments", ",", "arguments", ",", "arg", ".", "sourceStart", ",", "arg", ".", "sourceEnd", ")", ";", "}", "public", "void", "redefineLocal", "(", "LocalDeclaration", "localDecl", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "localDecl", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "RedefinedLocal", ",", "arguments", ",", "arguments", ",", "localDecl", ".", "sourceStart", ",", "localDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "redundantSuperInterface", "(", "SourceTypeBinding", "type", ",", "TypeReference", "reference", ",", "ReferenceBinding", "superinterface", ",", "ReferenceBinding", "declaringType", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "RedundantSuperinterface", ")", ";", "if", "(", "severity", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "RedundantSuperinterface", ",", "new", "String", "[", "]", "{", "new", "String", "(", "superinterface", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "declaringType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "superinterface", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "declaringType", ".", "shortReadableName", "(", ")", ")", "}", ",", "severity", ",", "reference", ".", "sourceStart", ",", "reference", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "referenceMustBeArrayTypeAt", "(", "TypeBinding", "arrayType", ",", "ArrayReference", "arrayRef", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "ArrayReferenceRequired", ",", "new", "String", "[", "]", "{", "new", "String", "(", "arrayType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "arrayType", ".", "shortReadableName", "(", ")", ")", "}", ",", "arrayRef", ".", "sourceStart", ",", "arrayRef", ".", "sourceEnd", ")", ";", "}", "public", "void", "reset", "(", ")", "{", "this", ".", "positionScanner", "=", "null", ";", "}", "public", "void", "resourceHasToImplementAutoCloseable", "(", "TypeBinding", "binding", ",", "TypeReference", "typeReference", ")", "{", "if", "(", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_7", ")", "{", "return", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "ResourceHasToImplementAutoCloseable", ",", "new", "String", "[", "]", "{", "new", "String", "(", "binding", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "binding", ".", "shortReadableName", "(", ")", ")", "}", ",", "typeReference", ".", "sourceStart", ",", "typeReference", ".", "sourceEnd", ")", ";", "}", "private", "int", "retrieveClosingAngleBracketPosition", "(", "int", "start", ")", "{", "if", "(", "this", ".", "referenceContext", "==", "null", ")", "return", "start", ";", "CompilationResult", "compilationResult", "=", "this", ".", "referenceContext", ".", "compilationResult", "(", ")", ";", "if", "(", "compilationResult", "==", "null", ")", "return", "start", ";", "ICompilationUnit", "compilationUnit", "=", "compilationResult", ".", "getCompilationUnit", "(", ")", ";", "if", "(", "compilationUnit", "==", "null", ")", "return", "start", ";", "char", "[", "]", "contents", "=", "compilationUnit", ".", "getContents", "(", ")", ";", "if", "(", "contents", ".", "length", "==", "0", ")", "return", "start", ";", "if", "(", "this", ".", "positionScanner", "==", "null", ")", "{", "this", ".", "positionScanner", "=", "new", "Scanner", "(", "false", ",", "false", ",", "false", ",", "this", ".", "options", ".", "sourceLevel", ",", "this", ".", "options", ".", "complianceLevel", ",", "null", ",", "null", ",", "false", ")", ";", "this", ".", "positionScanner", ".", "returnOnlyGreater", "=", "true", ";", "}", "this", ".", "positionScanner", ".", "setSource", "(", "contents", ")", ";", "this", ".", "positionScanner", ".", "resetTo", "(", "start", ",", "contents", ".", "length", ")", ";", "int", "end", "=", "start", ";", "int", "count", "=", "0", ";", "try", "{", "int", "token", ";", "loop", ":", "while", "(", "(", "token", "=", "this", ".", "positionScanner", ".", "getNextToken", "(", ")", ")", "!=", "TerminalTokens", ".", "TokenNameEOF", ")", "{", "switch", "(", "token", ")", "{", "case", "TerminalTokens", ".", "TokenNameLESS", ":", "count", "++", ";", "break", ";", "case", "TerminalTokens", ".", "TokenNameGREATER", ":", "count", "--", ";", "if", "(", "count", "==", "0", ")", "{", "end", "=", "this", ".", "positionScanner", ".", "currentPosition", "-", "1", ";", "break", "loop", ";", "}", "break", ";", "case", "TerminalTokens", ".", "TokenNameLBRACE", ":", "break", "loop", ";", "}", "}", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "}", "return", "end", ";", "}", "private", "int", "retrieveEndingPositionAfterOpeningParenthesis", "(", "int", "sourceStart", ",", "int", "sourceEnd", ",", "int", "numberOfParen", ")", "{", "if", "(", "this", ".", "referenceContext", "==", "null", ")", "return", "sourceEnd", ";", "CompilationResult", "compilationResult", "=", "this", ".", "referenceContext", ".", "compilationResult", "(", ")", ";", "if", "(", "compilationResult", "==", "null", ")", "return", "sourceEnd", ";", "ICompilationUnit", "compilationUnit", "=", "compilationResult", ".", "getCompilationUnit", "(", ")", ";", "if", "(", "compilationUnit", "==", "null", ")", "return", "sourceEnd", ";", "char", "[", "]", "contents", "=", "compilationUnit", ".", "getContents", "(", ")", ";", "if", "(", "contents", ".", "length", "==", "0", ")", "return", "sourceEnd", ";", "if", "(", "this", ".", "positionScanner", "==", "null", ")", "{", "this", ".", "positionScanner", "=", "new", "Scanner", "(", "false", ",", "false", ",", "false", ",", "this", ".", "options", ".", "sourceLevel", ",", "this", ".", "options", ".", "complianceLevel", ",", "null", ",", "null", ",", "false", ")", ";", "}", "this", ".", "positionScanner", ".", "setSource", "(", "contents", ")", ";", "this", ".", "positionScanner", ".", "resetTo", "(", "sourceStart", ",", "sourceEnd", ")", ";", "try", "{", "int", "token", ";", "int", "previousSourceEnd", "=", "sourceEnd", ";", "while", "(", "(", "token", "=", "this", ".", "positionScanner", ".", "getNextToken", "(", ")", ")", "!=", "TerminalTokens", ".", "TokenNameEOF", ")", "{", "switch", "(", "token", ")", "{", "case", "TerminalTokens", ".", "TokenNameRPAREN", ":", "return", "previousSourceEnd", ";", "default", ":", "previousSourceEnd", "=", "this", ".", "positionScanner", ".", "currentPosition", "-", "1", ";", "}", "}", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "}", "return", "sourceEnd", ";", "}", "private", "int", "retrieveStartingPositionAfterOpeningParenthesis", "(", "int", "sourceStart", ",", "int", "sourceEnd", ",", "int", "numberOfParen", ")", "{", "if", "(", "this", ".", "referenceContext", "==", "null", ")", "return", "sourceStart", ";", "CompilationResult", "compilationResult", "=", "this", ".", "referenceContext", ".", "compilationResult", "(", ")", ";", "if", "(", "compilationResult", "==", "null", ")", "return", "sourceStart", ";", "ICompilationUnit", "compilationUnit", "=", "compilationResult", ".", "getCompilationUnit", "(", ")", ";", "if", "(", "compilationUnit", "==", "null", ")", "return", "sourceStart", ";", "char", "[", "]", "contents", "=", "compilationUnit", ".", "getContents", "(", ")", ";", "if", "(", "contents", ".", "length", "==", "0", ")", "return", "sourceStart", ";", "if", "(", "this", ".", "positionScanner", "==", "null", ")", "{", "this", ".", "positionScanner", "=", "new", "Scanner", "(", "false", ",", "false", ",", "false", ",", "this", ".", "options", ".", "sourceLevel", ",", "this", ".", "options", ".", "complianceLevel", ",", "null", ",", "null", ",", "false", ")", ";", "}", "this", ".", "positionScanner", ".", "setSource", "(", "contents", ")", ";", "this", ".", "positionScanner", ".", "resetTo", "(", "sourceStart", ",", "sourceEnd", ")", ";", "int", "count", "=", "0", ";", "try", "{", "int", "token", ";", "while", "(", "(", "token", "=", "this", ".", "positionScanner", ".", "getNextToken", "(", ")", ")", "!=", "TerminalTokens", ".", "TokenNameEOF", ")", "{", "switch", "(", "token", ")", "{", "case", "TerminalTokens", ".", "TokenNameLPAREN", ":", "count", "++", ";", "if", "(", "count", "==", "numberOfParen", ")", "{", "this", ".", "positionScanner", ".", "getNextToken", "(", ")", ";", "return", "this", ".", "positionScanner", ".", "startPosition", ";", "}", "}", "}", "}", "catch", "(", "InvalidInputException", "e", ")", "{", "}", "return", "sourceStart", ";", "}", "public", "void", "returnTypeCannotBeVoidArray", "(", "MethodDeclaration", "methodDecl", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "CannotAllocateVoidArray", ",", "NoArgument", ",", "NoArgument", ",", "methodDecl", ".", "returnType", ".", "sourceStart", ",", "methodDecl", ".", "returnType", ".", "sourceEnd", ")", ";", "}", "public", "void", "scannerError", "(", "Parser", "parser", ",", "String", "errorTokenName", ")", "{", "Scanner", "scanner", "=", "parser", ".", "scanner", ";", "int", "flag", "=", "IProblem", ".", "ParsingErrorNoSuggestion", ";", "int", "startPos", "=", "scanner", ".", "startPosition", ";", "int", "endPos", "=", "scanner", ".", "currentPosition", "-", "1", ";", "if", "(", "errorTokenName", ".", "equals", "(", "Scanner", ".", "END_OF_SOURCE", ")", ")", "flag", "=", "IProblem", ".", "EndOfSource", ";", "else", "if", "(", "errorTokenName", ".", "equals", "(", "Scanner", ".", "INVALID_HEXA", ")", ")", "flag", "=", "IProblem", ".", "InvalidHexa", ";", "else", "if", "(", "errorTokenName", ".", "equals", "(", "Scanner", ".", "ILLEGAL_HEXA_LITERAL", ")", ")", "flag", "=", "IProblem", ".", "IllegalHexaLiteral", ";", "else", "if", "(", "errorTokenName", ".", "equals", "(", "Scanner", ".", "INVALID_OCTAL", ")", ")", "flag", "=", "IProblem", ".", "InvalidOctal", ";", "else", "if", "(", "errorTokenName", ".", "equals", "(", "Scanner", ".", "INVALID_CHARACTER_CONSTANT", ")", ")", "flag", "=", "IProblem", ".", "InvalidCharacterConstant", ";", "else", "if", "(", "errorTokenName", ".", "equals", "(", "Scanner", ".", "INVALID_ESCAPE", ")", ")", "flag", "=", "IProblem", ".", "InvalidEscape", ";", "else", "if", "(", "errorTokenName", ".", "equals", "(", "Scanner", ".", "INVALID_UNICODE_ESCAPE", ")", ")", "{", "flag", "=", "IProblem", ".", "InvalidUnicodeEscape", ";", "char", "[", "]", "source", "=", "scanner", ".", "source", ";", "int", "checkPos", "=", "scanner", ".", "currentPosition", "-", "1", ";", "if", "(", "checkPos", ">=", "source", ".", "length", ")", "checkPos", "=", "source", ".", "length", "-", "1", ";", "while", "(", "checkPos", ">=", "startPos", ")", "{", "if", "(", "source", "[", "checkPos", "]", "==", "'\\\\'", ")", "break", ";", "checkPos", "--", ";", "}", "startPos", "=", "checkPos", ";", "}", "else", "if", "(", "errorTokenName", ".", "equals", "(", "Scanner", ".", "INVALID_LOW_SURROGATE", ")", ")", "{", "flag", "=", "IProblem", ".", "InvalidLowSurrogate", ";", "}", "else", "if", "(", "errorTokenName", ".", "equals", "(", "Scanner", ".", "INVALID_HIGH_SURROGATE", ")", ")", "{", "flag", "=", "IProblem", ".", "InvalidHighSurrogate", ";", "char", "[", "]", "source", "=", "scanner", ".", "source", ";", "int", "checkPos", "=", "scanner", ".", "startPosition", "+", "1", ";", "while", "(", "checkPos", "<=", "endPos", ")", "{", "if", "(", "source", "[", "checkPos", "]", "==", "'\\\\'", ")", "break", ";", "checkPos", "++", ";", "}", "endPos", "=", "checkPos", "-", "1", ";", "}", "else", "if", "(", "errorTokenName", ".", "equals", "(", "Scanner", ".", "INVALID_FLOAT", ")", ")", "flag", "=", "IProblem", ".", "InvalidFloat", ";", "else", "if", "(", "errorTokenName", ".", "equals", "(", "Scanner", ".", "UNTERMINATED_STRING", ")", ")", "flag", "=", "IProblem", ".", "UnterminatedString", ";", "else", "if", "(", "errorTokenName", ".", "equals", "(", "Scanner", ".", "UNTERMINATED_COMMENT", ")", ")", "flag", "=", "IProblem", ".", "UnterminatedComment", ";", "else", "if", "(", "errorTokenName", ".", "equals", "(", "Scanner", ".", "INVALID_CHAR_IN_STRING", ")", ")", "flag", "=", "IProblem", ".", "UnterminatedString", ";", "else", "if", "(", "errorTokenName", ".", "equals", "(", "Scanner", ".", "INVALID_DIGIT", ")", ")", "flag", "=", "IProblem", ".", "InvalidDigit", ";", "else", "if", "(", "errorTokenName", ".", "equals", "(", "Scanner", ".", "INVALID_BINARY", ")", ")", "flag", "=", "IProblem", ".", "InvalidBinary", ";", "else", "if", "(", "errorTokenName", ".", "equals", "(", "Scanner", ".", "BINARY_LITERAL_NOT_BELOW_17", ")", ")", "flag", "=", "IProblem", ".", "BinaryLiteralNotBelow17", ";", "else", "if", "(", "errorTokenName", ".", "equals", "(", "Scanner", ".", "INVALID_UNDERSCORE", ")", ")", "flag", "=", "IProblem", ".", "IllegalUnderscorePosition", ";", "else", "if", "(", "errorTokenName", ".", "equals", "(", "Scanner", ".", "UNDERSCORES_IN_LITERALS_NOT_BELOW_17", ")", ")", "flag", "=", "IProblem", ".", "UnderscoresInLiteralsNotBelow17", ";", "String", "[", "]", "arguments", "=", "flag", "==", "IProblem", ".", "ParsingErrorNoSuggestion", "?", "new", "String", "[", "]", "{", "errorTokenName", "}", ":", "NoArgument", ";", "this", ".", "handle", "(", "flag", ",", "arguments", ",", "arguments", ",", "startPos", ",", "endPos", ",", "parser", ".", "compilationUnit", ".", "compilationResult", ")", ";", "}", "public", "void", "shouldImplementHashcode", "(", "SourceTypeBinding", "type", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "ShouldImplementHashcode", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", "}", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "shouldReturn", "(", "TypeBinding", "returnType", ",", "ASTNode", "location", ")", "{", "this", ".", "handle", "(", "methodHasMissingSwitchDefault", "(", ")", "?", "IProblem", ".", "ShouldReturnValueHintMissingDefault", ":", "IProblem", ".", "ShouldReturnValue", ",", "new", "String", "[", "]", "{", "new", "String", "(", "returnType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "returnType", ".", "shortReadableName", "(", ")", ")", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "signalNoImplicitStringConversionForCharArrayExpression", "(", "Expression", "expression", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "NoImplicitStringConversionForCharArrayExpression", ",", "NoArgument", ",", "NoArgument", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "staticAndInstanceConflict", "(", "MethodBinding", "currentMethod", ",", "MethodBinding", "inheritedMethod", ")", "{", "if", "(", "currentMethod", ".", "isStatic", "(", ")", ")", "this", ".", "handle", "(", "IProblem", ".", "CannotHideAnInstanceMethodWithAStaticMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ",", "currentMethod", ".", "sourceStart", "(", ")", ",", "currentMethod", ".", "sourceEnd", "(", ")", ")", ";", "else", "this", ".", "handle", "(", "IProblem", ".", "CannotOverrideAStaticMethodWithAnInstanceMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ",", "currentMethod", ".", "sourceStart", "(", ")", ",", "currentMethod", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "staticFieldAccessToNonStaticVariable", "(", "ASTNode", "location", ",", "FieldBinding", "field", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "readableName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "NonStaticFieldFromStaticInvocation", ",", "arguments", ",", "arguments", ",", "nodeSourceStart", "(", "field", ",", "location", ")", ",", "nodeSourceEnd", "(", "field", ",", "location", ")", ")", ";", "}", "public", "void", "staticInheritedMethodConflicts", "(", "SourceTypeBinding", "type", ",", "MethodBinding", "concreteMethod", ",", "MethodBinding", "[", "]", "abstractMethods", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "StaticInheritedMethodConflicts", ",", "new", "String", "[", "]", "{", "new", "String", "(", "concreteMethod", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "abstractMethods", "[", "0", "]", ".", "declaringClass", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "concreteMethod", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "abstractMethods", "[", "0", "]", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ",", "type", ".", "sourceStart", "(", ")", ",", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "staticMemberOfParameterizedType", "(", "ASTNode", "location", ",", "ReferenceBinding", "type", ",", "int", "index", ")", "{", "if", "(", "location", "==", "null", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "StaticMemberOfParameterizedType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "enclosingType", "(", ")", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "enclosingType", "(", ")", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "ProblemSeverities", ".", "AbortCompilation", "|", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Fatal", ",", "0", ",", "0", ")", ";", "return", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "StaticMemberOfParameterizedType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "enclosingType", "(", ")", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "enclosingType", "(", ")", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "location", ".", "sourceStart", ",", "nodeSourceEnd", "(", "null", ",", "location", ",", "index", ")", ")", ";", "}", "public", "void", "stringConstantIsExceedingUtf8Limit", "(", "ASTNode", "location", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "StringConstantIsExceedingUtf8Limit", ",", "NoArgument", ",", "NoArgument", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "superclassMustBeAClass", "(", "SourceTypeBinding", "type", ",", "TypeReference", "superclassRef", ",", "ReferenceBinding", "superType", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "SuperclassMustBeAClass", ",", "new", "String", "[", "]", "{", "new", "String", "(", "superType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "superType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ",", "superclassRef", ".", "sourceStart", ",", "superclassRef", ".", "sourceEnd", ")", ";", "}", "public", "void", "superfluousSemicolon", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "SuperfluousSemicolon", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "superinterfaceMustBeAnInterface", "(", "SourceTypeBinding", "type", ",", "TypeReference", "superInterfaceRef", ",", "ReferenceBinding", "superType", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "SuperInterfaceMustBeAnInterface", ",", "new", "String", "[", "]", "{", "new", "String", "(", "superType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "superType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ",", "superInterfaceRef", ".", "sourceStart", ",", "superInterfaceRef", ".", "sourceEnd", ")", ";", "}", "public", "void", "superinterfacesCollide", "(", "TypeBinding", "type", ",", "ASTNode", "decl", ",", "TypeBinding", "superType", ",", "TypeBinding", "inheritedSuperType", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "SuperInterfacesCollide", ",", "new", "String", "[", "]", "{", "new", "String", "(", "superType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "inheritedSuperType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "superType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "inheritedSuperType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", "}", ",", "decl", ".", "sourceStart", ",", "decl", ".", "sourceEnd", ")", ";", "}", "public", "void", "superTypeCannotUseWildcard", "(", "SourceTypeBinding", "type", ",", "TypeReference", "superclass", ",", "TypeBinding", "superTypeBinding", ")", "{", "String", "name", "=", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", ";", "String", "superTypeFullName", "=", "new", "String", "(", "superTypeBinding", ".", "readableName", "(", ")", ")", ";", "String", "superTypeShortName", "=", "new", "String", "(", "superTypeBinding", ".", "shortReadableName", "(", ")", ")", ";", "if", "(", "superTypeShortName", ".", "equals", "(", "name", ")", ")", "superTypeShortName", "=", "superTypeFullName", ";", "this", ".", "handle", "(", "IProblem", ".", "SuperTypeUsingWildcard", ",", "new", "String", "[", "]", "{", "superTypeFullName", ",", "name", "}", ",", "new", "String", "[", "]", "{", "superTypeShortName", ",", "name", "}", ",", "superclass", ".", "sourceStart", ",", "superclass", ".", "sourceEnd", ")", ";", "}", "private", "void", "syntaxError", "(", "int", "id", ",", "int", "startPosition", ",", "int", "endPosition", ",", "int", "currentKind", ",", "char", "[", "]", "currentTokenSource", ",", "String", "errorTokenName", ",", "String", "expectedToken", ")", "{", "String", "eTokenName", ";", "if", "(", "isKeyword", "(", "currentKind", ")", "||", "isLiteral", "(", "currentKind", ")", "||", "isIdentifier", "(", "currentKind", ")", ")", "{", "eTokenName", "=", "new", "String", "(", "currentTokenSource", ")", ";", "}", "else", "{", "eTokenName", "=", "errorTokenName", ";", "}", "String", "[", "]", "arguments", ";", "if", "(", "expectedToken", "!=", "null", ")", "{", "arguments", "=", "new", "String", "[", "]", "{", "eTokenName", ",", "expectedToken", "}", ";", "}", "else", "{", "arguments", "=", "new", "String", "[", "]", "{", "eTokenName", "}", ";", "}", "this", ".", "handle", "(", "id", ",", "arguments", ",", "arguments", ",", "startPosition", ",", "endPosition", ")", ";", "}", "public", "void", "task", "(", "String", "tag", ",", "String", "message", ",", "String", "priority", ",", "int", "start", ",", "int", "end", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "Task", ",", "new", "String", "[", "]", "{", "tag", ",", "message", ",", "priority", "}", ",", "new", "String", "[", "]", "{", "tag", ",", "message", ",", "priority", "}", ",", "start", ",", "end", ")", ";", "}", "public", "void", "tooManyDimensions", "(", "ASTNode", "expression", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "TooManyArrayDimensions", ",", "NoArgument", ",", "NoArgument", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "tooManyFields", "(", "TypeDeclaration", "typeDeclaration", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "TooManyFields", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeDeclaration", ".", "binding", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeDeclaration", ".", "binding", ".", "shortReadableName", "(", ")", ")", "}", ",", "ProblemSeverities", ".", "Abort", "|", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Fatal", ",", "typeDeclaration", ".", "sourceStart", ",", "typeDeclaration", ".", "sourceEnd", ")", ";", "}", "public", "void", "tooManyMethods", "(", "TypeDeclaration", "typeDeclaration", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "TooManyMethods", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeDeclaration", ".", "binding", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeDeclaration", ".", "binding", ".", "shortReadableName", "(", ")", ")", "}", ",", "ProblemSeverities", ".", "Abort", "|", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Fatal", ",", "typeDeclaration", ".", "sourceStart", ",", "typeDeclaration", ".", "sourceEnd", ")", ";", "}", "public", "void", "tooManyParametersForSyntheticMethod", "(", "AbstractMethodDeclaration", "method", ")", "{", "MethodBinding", "binding", "=", "method", ".", "binding", ";", "String", "selector", "=", "null", ";", "if", "(", "binding", ".", "isConstructor", "(", ")", ")", "{", "selector", "=", "new", "String", "(", "binding", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ";", "}", "else", "{", "selector", "=", "new", "String", "(", "method", ".", "selector", ")", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "TooManyParametersForSyntheticMethod", ",", "new", "String", "[", "]", "{", "selector", ",", "typesAsString", "(", "binding", ",", "false", ")", ",", "new", "String", "(", "binding", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "selector", ",", "typesAsString", "(", "binding", ",", "true", ")", ",", "new", "String", "(", "binding", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "ProblemSeverities", ".", "AbortMethod", "|", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Fatal", ",", "method", ".", "sourceStart", ",", "method", ".", "sourceEnd", ")", ";", "}", "public", "void", "typeCastError", "(", "CastExpression", "expression", ",", "TypeBinding", "leftType", ",", "TypeBinding", "rightType", ")", "{", "String", "leftName", "=", "new", "String", "(", "leftType", ".", "readableName", "(", ")", ")", ";", "String", "rightName", "=", "new", "String", "(", "rightType", ".", "readableName", "(", ")", ")", ";", "String", "leftShortName", "=", "new", "String", "(", "leftType", ".", "shortReadableName", "(", ")", ")", ";", "String", "rightShortName", "=", "new", "String", "(", "rightType", ".", "shortReadableName", "(", ")", ")", ";", "if", "(", "leftShortName", ".", "equals", "(", "rightShortName", ")", ")", "{", "leftShortName", "=", "leftName", ";", "rightShortName", "=", "rightName", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "IllegalCast", ",", "new", "String", "[", "]", "{", "rightName", ",", "leftName", "}", ",", "new", "String", "[", "]", "{", "rightShortName", ",", "leftShortName", "}", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "typeCollidesWithEnclosingType", "(", "TypeDeclaration", "typeDecl", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "typeDecl", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "HidingEnclosingType", ",", "arguments", ",", "arguments", ",", "typeDecl", ".", "sourceStart", ",", "typeDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "typeCollidesWithPackage", "(", "CompilationUnitDeclaration", "compUnitDecl", ",", "TypeDeclaration", "typeDecl", ")", "{", "this", ".", "referenceContext", "=", "typeDecl", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "compUnitDecl", ".", "getFileName", "(", ")", ")", ",", "new", "String", "(", "typeDecl", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "TypeCollidesWithPackage", ",", "arguments", ",", "arguments", ",", "typeDecl", ".", "sourceStart", ",", "typeDecl", ".", "sourceEnd", ",", "compUnitDecl", ".", "compilationResult", ")", ";", "}", "public", "void", "typeHiding", "(", "TypeDeclaration", "typeDecl", ",", "TypeBinding", "hiddenType", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "TypeHidingType", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "this", ".", "handle", "(", "IProblem", ".", "TypeHidingType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeDecl", ".", "name", ")", ",", "new", "String", "(", "hiddenType", ".", "shortReadableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeDecl", ".", "name", ")", ",", "new", "String", "(", "hiddenType", ".", "readableName", "(", ")", ")", "}", ",", "severity", ",", "typeDecl", ".", "sourceStart", ",", "typeDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "typeHiding", "(", "TypeDeclaration", "typeDecl", ",", "TypeVariableBinding", "hiddenTypeParameter", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "TypeHidingTypeParameterFromType", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "hiddenTypeParameter", ".", "declaringElement", "instanceof", "TypeBinding", ")", "{", "TypeBinding", "declaringType", "=", "(", "TypeBinding", ")", "hiddenTypeParameter", ".", "declaringElement", ";", "this", ".", "handle", "(", "IProblem", ".", "TypeHidingTypeParameterFromType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeDecl", ".", "name", ")", ",", "new", "String", "(", "hiddenTypeParameter", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "declaringType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeDecl", ".", "name", ")", ",", "new", "String", "(", "hiddenTypeParameter", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "declaringType", ".", "shortReadableName", "(", ")", ")", "}", ",", "severity", ",", "typeDecl", ".", "sourceStart", ",", "typeDecl", ".", "sourceEnd", ")", ";", "}", "else", "{", "MethodBinding", "declaringMethod", "=", "(", "MethodBinding", ")", "hiddenTypeParameter", ".", "declaringElement", ";", "this", ".", "handle", "(", "IProblem", ".", "TypeHidingTypeParameterFromMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeDecl", ".", "name", ")", ",", "new", "String", "(", "hiddenTypeParameter", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "declaringMethod", ".", "selector", ")", ",", "typesAsString", "(", "declaringMethod", ",", "false", ")", ",", "new", "String", "(", "declaringMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeDecl", ".", "name", ")", ",", "new", "String", "(", "hiddenTypeParameter", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "declaringMethod", ".", "selector", ")", ",", "typesAsString", "(", "declaringMethod", ",", "true", ")", ",", "new", "String", "(", "declaringMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "severity", ",", "typeDecl", ".", "sourceStart", ",", "typeDecl", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "typeHiding", "(", "TypeParameter", "typeParam", ",", "Binding", "hidden", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "TypeParameterHidingType", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "TypeBinding", "hiddenType", "=", "(", "TypeBinding", ")", "hidden", ";", "this", ".", "handle", "(", "IProblem", ".", "TypeParameterHidingType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeParam", ".", "name", ")", ",", "new", "String", "(", "hiddenType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeParam", ".", "name", ")", ",", "new", "String", "(", "hiddenType", ".", "shortReadableName", "(", ")", ")", "}", ",", "severity", ",", "typeParam", ".", "sourceStart", ",", "typeParam", ".", "sourceEnd", ")", ";", "}", "public", "void", "typeMismatchError", "(", "TypeBinding", "actualType", ",", "TypeBinding", "expectedType", ",", "ASTNode", "location", ",", "ASTNode", "expectingLocation", ")", "{", "if", "(", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "if", "(", "actualType", "instanceof", "TypeVariableBinding", ")", "actualType", "=", "actualType", ".", "erasure", "(", ")", ";", "if", "(", "expectedType", "instanceof", "TypeVariableBinding", ")", "expectedType", "=", "expectedType", ".", "erasure", "(", ")", ";", "}", "if", "(", "actualType", "!=", "null", "&&", "(", "actualType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "UndefinedType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "actualType", ".", "leafComponentType", "(", ")", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "actualType", ".", "leafComponentType", "(", ")", ".", "shortReadableName", "(", ")", ")", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "return", ";", "}", "if", "(", "expectingLocation", "!=", "null", "&&", "(", "expectedType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "UndefinedType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "expectedType", ".", "leafComponentType", "(", ")", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "expectedType", ".", "leafComponentType", "(", ")", ".", "shortReadableName", "(", ")", ")", "}", ",", "expectingLocation", ".", "sourceStart", ",", "expectingLocation", ".", "sourceEnd", ")", ";", "return", ";", "}", "char", "[", "]", "actualShortReadableName", "=", "actualType", ".", "shortReadableName", "(", ")", ";", "char", "[", "]", "expectedShortReadableName", "=", "expectedType", ".", "shortReadableName", "(", ")", ";", "if", "(", "CharOperation", ".", "equals", "(", "actualShortReadableName", ",", "expectedShortReadableName", ")", ")", "{", "actualShortReadableName", "=", "actualType", ".", "readableName", "(", ")", ";", "expectedShortReadableName", "=", "expectedType", ".", "readableName", "(", ")", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "TypeMismatch", ",", "new", "String", "[", "]", "{", "new", "String", "(", "actualType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "expectedType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "actualShortReadableName", ")", ",", "new", "String", "(", "expectedShortReadableName", ")", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "typeMismatchError", "(", "TypeBinding", "typeArgument", ",", "TypeVariableBinding", "typeParameter", ",", "ReferenceBinding", "genericType", ",", "ASTNode", "location", ")", "{", "if", "(", "location", "==", "null", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "TypeArgumentMismatch", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeArgument", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "genericType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "typeParameter", ".", "sourceName", ")", ",", "parameterBoundAsString", "(", "typeParameter", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeArgument", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "genericType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "typeParameter", ".", "sourceName", ")", ",", "parameterBoundAsString", "(", "typeParameter", ",", "true", ")", "}", ",", "ProblemSeverities", ".", "AbortCompilation", "|", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Fatal", ",", "0", ",", "0", ")", ";", "return", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "TypeArgumentMismatch", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeArgument", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "genericType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "typeParameter", ".", "sourceName", ")", ",", "parameterBoundAsString", "(", "typeParameter", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "typeArgument", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "genericType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "typeParameter", ".", "sourceName", ")", ",", "parameterBoundAsString", "(", "typeParameter", ",", "true", ")", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "private", "String", "typesAsString", "(", "MethodBinding", "methodBinding", ",", "boolean", "makeShort", ")", "{", "return", "typesAsString", "(", "methodBinding", ",", "methodBinding", ".", "parameters", ",", "makeShort", ")", ";", "}", "private", "String", "typesAsString", "(", "MethodBinding", "methodBinding", ",", "TypeBinding", "[", "]", "parameters", ",", "boolean", "makeShort", ")", "{", "if", "(", "methodBinding", ".", "isPolymorphic", "(", ")", ")", "{", "TypeBinding", "[", "]", "types", "=", "methodBinding", ".", "original", "(", ")", ".", "parameters", ";", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "10", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "types", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", "!=", "0", ")", "{", "buffer", ".", "append", "(", "\",", "\"", ")", ";", "}", "TypeBinding", "type", "=", "types", "[", "i", "]", ";", "boolean", "isVarargType", "=", "i", "==", "length", "-", "1", ";", "if", "(", "isVarargType", ")", "{", "type", "=", "(", "(", "ArrayBinding", ")", "type", ")", ".", "elementsType", "(", ")", ";", "}", "buffer", ".", "append", "(", "new", "String", "(", "makeShort", "?", "type", ".", "shortReadableName", "(", ")", ":", "type", ".", "readableName", "(", ")", ")", ")", ";", "if", "(", "isVarargType", ")", "{", "buffer", ".", "append", "(", "\"...\"", ")", ";", "}", "}", "return", "buffer", ".", "toString", "(", ")", ";", "}", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "10", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "parameters", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", "!=", "0", ")", "{", "buffer", ".", "append", "(", "\",", "\"", ")", ";", "}", "TypeBinding", "type", "=", "parameters", "[", "i", "]", ";", "boolean", "isVarargType", "=", "methodBinding", ".", "isVarargs", "(", ")", "&&", "i", "==", "length", "-", "1", ";", "if", "(", "isVarargType", ")", "{", "type", "=", "(", "(", "ArrayBinding", ")", "type", ")", ".", "elementsType", "(", ")", ";", "}", "buffer", ".", "append", "(", "new", "String", "(", "makeShort", "?", "type", ".", "shortReadableName", "(", ")", ":", "type", ".", "readableName", "(", ")", ")", ")", ";", "if", "(", "isVarargType", ")", "{", "buffer", ".", "append", "(", "\"...\"", ")", ";", "}", "}", "return", "buffer", ".", "toString", "(", ")", ";", "}", "private", "String", "typesAsString", "(", "TypeBinding", "[", "]", "types", ",", "boolean", "makeShort", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "10", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "types", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", "!=", "0", ")", "{", "buffer", ".", "append", "(", "\",", "\"", ")", ";", "}", "TypeBinding", "type", "=", "types", "[", "i", "]", ";", "buffer", ".", "append", "(", "new", "String", "(", "makeShort", "?", "type", ".", "shortReadableName", "(", ")", ":", "type", ".", "readableName", "(", ")", ")", ")", ";", "}", "return", "buffer", ".", "toString", "(", ")", ";", "}", "public", "void", "undefinedAnnotationValue", "(", "TypeBinding", "annotationType", ",", "MemberValuePair", "memberValuePair", ")", "{", "if", "(", "isRecoveredName", "(", "memberValuePair", ".", "name", ")", ")", "return", ";", "String", "name", "=", "new", "String", "(", "memberValuePair", ".", "name", ")", ";", "this", ".", "handle", "(", "IProblem", ".", "UndefinedAnnotationMember", ",", "new", "String", "[", "]", "{", "name", ",", "new", "String", "(", "annotationType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "name", ",", "new", "String", "(", "annotationType", ".", "shortReadableName", "(", ")", ")", "}", ",", "memberValuePair", ".", "sourceStart", ",", "memberValuePair", ".", "sourceEnd", ")", ";", "}", "public", "void", "undefinedLabel", "(", "BranchStatement", "statement", ")", "{", "if", "(", "isRecoveredName", "(", "statement", ".", "label", ")", ")", "return", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "statement", ".", "label", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "UndefinedLabel", ",", "arguments", ",", "arguments", ",", "statement", ".", "sourceStart", ",", "statement", ".", "sourceEnd", ")", ";", "}", "public", "void", "undefinedTypeVariableSignature", "(", "char", "[", "]", "variableName", ",", "ReferenceBinding", "binaryType", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "UndefinedTypeVariable", ",", "new", "String", "[", "]", "{", "new", "String", "(", "variableName", ")", ",", "new", "String", "(", "binaryType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "variableName", ")", ",", "new", "String", "(", "binaryType", ".", "shortReadableName", "(", ")", ")", "}", ",", "ProblemSeverities", ".", "AbortCompilation", "|", "ProblemSeverities", ".", "Error", "|", "ProblemSeverities", ".", "Fatal", ",", "0", ",", "0", ")", ";", "}", "public", "void", "undocumentedEmptyBlock", "(", "int", "blockStart", ",", "int", "blockEnd", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "UndocumentedEmptyBlock", ",", "NoArgument", ",", "NoArgument", ",", "blockStart", ",", "blockEnd", ")", ";", "}", "public", "void", "unexpectedStaticModifierForField", "(", "SourceTypeBinding", "type", ",", "FieldDeclaration", "fieldDecl", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "fieldDecl", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "UnexpectedStaticModifierForField", ",", "arguments", ",", "arguments", ",", "fieldDecl", ".", "sourceStart", ",", "fieldDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "unexpectedStaticModifierForMethod", "(", "ReferenceBinding", "type", ",", "AbstractMethodDeclaration", "methodDecl", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "sourceName", "(", ")", ")", ",", "new", "String", "(", "methodDecl", ".", "selector", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "UnexpectedStaticModifierForMethod", ",", "arguments", ",", "arguments", ",", "methodDecl", ".", "sourceStart", ",", "methodDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "unhandledException", "(", "TypeBinding", "exceptionType", ",", "ASTNode", "location", ")", "{", "boolean", "insideDefaultConstructor", "=", "(", "this", ".", "referenceContext", "instanceof", "ConstructorDeclaration", ")", "&&", "(", "(", "ConstructorDeclaration", ")", "this", ".", "referenceContext", ")", ".", "isDefaultConstructor", "(", ")", ";", "boolean", "insideImplicitConstructorCall", "=", "(", "location", "instanceof", "ExplicitConstructorCall", ")", "&&", "(", "(", "(", "ExplicitConstructorCall", ")", "location", ")", ".", "accessMode", "==", "ExplicitConstructorCall", ".", "ImplicitSuper", ")", ";", "int", "sourceEnd", "=", "location", ".", "sourceEnd", ";", "if", "(", "location", "instanceof", "LocalDeclaration", ")", "{", "sourceEnd", "=", "(", "(", "LocalDeclaration", ")", "location", ")", ".", "declarationEnd", ";", "}", "this", ".", "handle", "(", "insideDefaultConstructor", "?", "IProblem", ".", "UnhandledExceptionInDefaultConstructor", ":", "(", "insideImplicitConstructorCall", "?", "IProblem", ".", "UndefinedConstructorInImplicitConstructorCall", ":", "IProblem", ".", "UnhandledException", ")", ",", "new", "String", "[", "]", "{", "new", "String", "(", "exceptionType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "exceptionType", ".", "shortReadableName", "(", ")", ")", "}", ",", "location", ".", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "unhandledExceptionFromAutoClose", "(", "TypeBinding", "exceptionType", ",", "ASTNode", "location", ")", "{", "LocalVariableBinding", "localBinding", "=", "(", "(", "LocalDeclaration", ")", "location", ")", ".", "binding", ";", "if", "(", "localBinding", "!=", "null", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "UnhandledExceptionOnAutoClose", ",", "new", "String", "[", "]", "{", "new", "String", "(", "exceptionType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "localBinding", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "exceptionType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "localBinding", ".", "shortReadableName", "(", ")", ")", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "unhandledWarningToken", "(", "Expression", "token", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "token", ".", "constant", ".", "stringValue", "(", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "UnhandledWarningToken", ",", "arguments", ",", "arguments", ",", "token", ".", "sourceStart", ",", "token", ".", "sourceEnd", ")", ";", "}", "public", "void", "uninitializedBlankFinalField", "(", "FieldBinding", "field", ",", "ASTNode", "location", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "readableName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "methodHasMissingSwitchDefault", "(", ")", "?", "IProblem", ".", "UninitializedBlankFinalFieldHintMissingDefault", ":", "IProblem", ".", "UninitializedBlankFinalField", ",", "arguments", ",", "arguments", ",", "nodeSourceStart", "(", "field", ",", "location", ")", ",", "nodeSourceEnd", "(", "field", ",", "location", ")", ")", ";", "}", "public", "void", "uninitializedLocalVariable", "(", "LocalVariableBinding", "binding", ",", "ASTNode", "location", ")", "{", "binding", ".", "tagBits", "|=", "TagBits", ".", "NotInitialized", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "binding", ".", "readableName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "methodHasMissingSwitchDefault", "(", ")", "?", "IProblem", ".", "UninitializedLocalVariableHintMissingDefault", ":", "IProblem", ".", "UninitializedLocalVariable", ",", "arguments", ",", "arguments", ",", "nodeSourceStart", "(", "binding", ",", "location", ")", ",", "nodeSourceEnd", "(", "binding", ",", "location", ")", ")", ";", "}", "private", "boolean", "methodHasMissingSwitchDefault", "(", ")", "{", "MethodScope", "methodScope", "=", "null", ";", "if", "(", "this", ".", "referenceContext", "instanceof", "Block", ")", "{", "methodScope", "=", "(", "(", "Block", ")", "this", ".", "referenceContext", ")", ".", "scope", ".", "methodScope", "(", ")", ";", "}", "else", "if", "(", "this", ".", "referenceContext", "instanceof", "AbstractMethodDeclaration", ")", "{", "methodScope", "=", "(", "(", "AbstractMethodDeclaration", ")", "this", ".", "referenceContext", ")", ".", "scope", ";", "}", "return", "methodScope", "!=", "null", "&&", "methodScope", ".", "hasMissingSwitchDefault", ";", "}", "public", "void", "unmatchedBracket", "(", "int", "position", ",", "ReferenceContext", "context", ",", "CompilationResult", "compilationResult", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "UnmatchedBracket", ",", "NoArgument", ",", "NoArgument", ",", "position", ",", "position", ",", "context", ",", "compilationResult", ")", ";", "}", "public", "void", "unnecessaryCast", "(", "CastExpression", "castExpression", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "UnnecessaryCast", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "TypeBinding", "castedExpressionType", "=", "castExpression", ".", "expression", ".", "resolvedType", ";", "this", ".", "handle", "(", "IProblem", ".", "UnnecessaryCast", ",", "new", "String", "[", "]", "{", "new", "String", "(", "castedExpressionType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "castExpression", ".", "type", ".", "resolvedType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "castedExpressionType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "castExpression", ".", "type", ".", "resolvedType", ".", "shortReadableName", "(", ")", ")", "}", ",", "severity", ",", "castExpression", ".", "sourceStart", ",", "castExpression", ".", "sourceEnd", ")", ";", "}", "public", "void", "unnecessaryElse", "(", "ASTNode", "location", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "UnnecessaryElse", ",", "NoArgument", ",", "NoArgument", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "unnecessaryEnclosingInstanceSpecification", "(", "Expression", "expression", ",", "ReferenceBinding", "targetType", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "IllegalEnclosingInstanceSpecification", ",", "new", "String", "[", "]", "{", "new", "String", "(", "targetType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "targetType", ".", "shortReadableName", "(", ")", ")", "}", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "unnecessaryInstanceof", "(", "InstanceOfExpression", "instanceofExpression", ",", "TypeBinding", "checkType", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "UnnecessaryInstanceof", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "TypeBinding", "expressionType", "=", "instanceofExpression", ".", "expression", ".", "resolvedType", ";", "this", ".", "handle", "(", "IProblem", ".", "UnnecessaryInstanceof", ",", "new", "String", "[", "]", "{", "new", "String", "(", "expressionType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "checkType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "expressionType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "checkType", ".", "shortReadableName", "(", ")", ")", "}", ",", "severity", ",", "instanceofExpression", ".", "sourceStart", ",", "instanceofExpression", ".", "sourceEnd", ")", ";", "}", "public", "void", "unnecessaryNLSTags", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "UnnecessaryNLSTag", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "unnecessaryTypeArgumentsForMethodInvocation", "(", "MethodBinding", "method", ",", "TypeBinding", "[", "]", "genericTypeArguments", ",", "TypeReference", "[", "]", "typeArguments", ")", "{", "String", "methodName", "=", "method", ".", "isConstructor", "(", ")", "?", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ":", "new", "String", "(", "method", ".", "selector", ")", ";", "this", ".", "handle", "(", "method", ".", "isConstructor", "(", ")", "?", "IProblem", ".", "UnusedTypeArgumentsForConstructorInvocation", ":", "IProblem", ".", "UnusedTypeArgumentsForMethodInvocation", ",", "new", "String", "[", "]", "{", "methodName", ",", "typesAsString", "(", "method", ",", "false", ")", ",", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "genericTypeArguments", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "methodName", ",", "typesAsString", "(", "method", ",", "true", ")", ",", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "genericTypeArguments", ",", "true", ")", "}", ",", "typeArguments", "[", "0", "]", ".", "sourceStart", ",", "typeArguments", "[", "typeArguments", ".", "length", "-", "1", "]", ".", "sourceEnd", ")", ";", "}", "public", "void", "unqualifiedFieldAccess", "(", "NameReference", "reference", ",", "FieldBinding", "field", ")", "{", "int", "sourceStart", "=", "reference", ".", "sourceStart", ";", "int", "sourceEnd", "=", "reference", ".", "sourceEnd", ";", "if", "(", "reference", "instanceof", "SingleNameReference", ")", "{", "int", "numberOfParens", "=", "(", "reference", ".", "bits", "&", "ASTNode", ".", "ParenthesizedMASK", ")", ">>", "ASTNode", ".", "ParenthesizedSHIFT", ";", "if", "(", "numberOfParens", "!=", "0", ")", "{", "sourceStart", "=", "retrieveStartingPositionAfterOpeningParenthesis", "(", "sourceStart", ",", "sourceEnd", ",", "numberOfParens", ")", ";", "sourceEnd", "=", "retrieveEndingPositionAfterOpeningParenthesis", "(", "sourceStart", ",", "sourceEnd", ",", "numberOfParens", ")", ";", "}", "else", "{", "sourceStart", "=", "nodeSourceStart", "(", "field", ",", "reference", ")", ";", "sourceEnd", "=", "nodeSourceEnd", "(", "field", ",", "reference", ")", ";", "}", "}", "else", "{", "sourceStart", "=", "nodeSourceStart", "(", "field", ",", "reference", ")", ";", "sourceEnd", "=", "nodeSourceEnd", "(", "field", ",", "reference", ")", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "UnqualifiedFieldAccess", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", "}", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "unreachableCatchBlock", "(", "ReferenceBinding", "exceptionType", ",", "ASTNode", "location", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "UnreachableCatch", ",", "new", "String", "[", "]", "{", "new", "String", "(", "exceptionType", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "exceptionType", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "unreachableCode", "(", "Statement", "statement", ")", "{", "int", "sourceStart", "=", "statement", ".", "sourceStart", ";", "int", "sourceEnd", "=", "statement", ".", "sourceEnd", ";", "if", "(", "statement", "instanceof", "LocalDeclaration", ")", "{", "LocalDeclaration", "declaration", "=", "(", "LocalDeclaration", ")", "statement", ";", "sourceStart", "=", "declaration", ".", "declarationSourceStart", ";", "sourceEnd", "=", "declaration", ".", "declarationSourceEnd", ";", "}", "else", "if", "(", "statement", "instanceof", "Expression", ")", "{", "int", "statemendEnd", "=", "(", "(", "Expression", ")", "statement", ")", ".", "statementEnd", ";", "if", "(", "statemendEnd", "!=", "-", "1", ")", "sourceEnd", "=", "statemendEnd", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "CodeCannotBeReached", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "unresolvableReference", "(", "NameReference", "nameRef", ",", "Binding", "binding", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "binding", ".", "readableName", "(", ")", ")", "}", ";", "int", "end", "=", "nameRef", ".", "sourceEnd", ";", "int", "sourceStart", "=", "nameRef", ".", "sourceStart", ";", "if", "(", "nameRef", "instanceof", "QualifiedNameReference", ")", "{", "QualifiedNameReference", "ref", "=", "(", "QualifiedNameReference", ")", "nameRef", ";", "if", "(", "isRecoveredName", "(", "ref", ".", "tokens", ")", ")", "return", ";", "if", "(", "ref", ".", "indexOfFirstFieldBinding", ">=", "1", ")", "end", "=", "(", "int", ")", "ref", ".", "sourcePositions", "[", "ref", ".", "indexOfFirstFieldBinding", "-", "1", "]", ";", "}", "else", "{", "SingleNameReference", "ref", "=", "(", "SingleNameReference", ")", "nameRef", ";", "if", "(", "isRecoveredName", "(", "ref", ".", "token", ")", ")", "return", ";", "int", "numberOfParens", "=", "(", "ref", ".", "bits", "&", "ASTNode", ".", "ParenthesizedMASK", ")", ">>", "ASTNode", ".", "ParenthesizedSHIFT", ";", "if", "(", "numberOfParens", "!=", "0", ")", "{", "sourceStart", "=", "retrieveStartingPositionAfterOpeningParenthesis", "(", "sourceStart", ",", "end", ",", "numberOfParens", ")", ";", "end", "=", "retrieveEndingPositionAfterOpeningParenthesis", "(", "sourceStart", ",", "end", ",", "numberOfParens", ")", ";", "}", "}", "int", "problemId", "=", "(", "nameRef", ".", "bits", "&", "Binding", ".", "VARIABLE", ")", "!=", "0", "&&", "(", "nameRef", ".", "bits", "&", "Binding", ".", "TYPE", ")", "==", "0", "?", "IProblem", ".", "UnresolvedVariable", ":", "IProblem", ".", "UndefinedName", ";", "this", ".", "handle", "(", "problemId", ",", "arguments", ",", "arguments", ",", "sourceStart", ",", "end", ")", ";", "}", "public", "void", "unsafeCast", "(", "CastExpression", "castExpression", ",", "Scope", "scope", ")", "{", "if", "(", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "return", ";", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "UnsafeGenericCast", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "TypeBinding", "castedExpressionType", "=", "castExpression", ".", "expression", ".", "resolvedType", ";", "TypeBinding", "castExpressionResolvedType", "=", "castExpression", ".", "resolvedType", ";", "this", ".", "handle", "(", "IProblem", ".", "UnsafeGenericCast", ",", "new", "String", "[", "]", "{", "new", "String", "(", "castedExpressionType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "castExpressionResolvedType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "castedExpressionType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "castExpressionResolvedType", ".", "shortReadableName", "(", ")", ")", "}", ",", "severity", ",", "castExpression", ".", "sourceStart", ",", "castExpression", ".", "sourceEnd", ")", ";", "}", "public", "void", "unsafeGenericArrayForVarargs", "(", "TypeBinding", "leafComponentType", ",", "ASTNode", "location", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "UnsafeGenericArrayForVarargs", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "this", ".", "handle", "(", "IProblem", ".", "UnsafeGenericArrayForVarargs", ",", "new", "String", "[", "]", "{", "new", "String", "(", "leafComponentType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "leafComponentType", ".", "shortReadableName", "(", ")", ")", "}", ",", "severity", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "unsafeRawFieldAssignment", "(", "FieldBinding", "field", ",", "TypeBinding", "expressionType", ",", "ASTNode", "location", ")", "{", "if", "(", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "return", ";", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "UnsafeRawFieldAssignment", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "this", ".", "handle", "(", "IProblem", ".", "UnsafeRawFieldAssignment", ",", "new", "String", "[", "]", "{", "new", "String", "(", "expressionType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", ",", "new", "String", "(", "field", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "declaringClass", ".", "erasure", "(", ")", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "expressionType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", ",", "new", "String", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "declaringClass", ".", "erasure", "(", ")", ".", "shortReadableName", "(", ")", ")", "}", ",", "severity", ",", "nodeSourceStart", "(", "field", ",", "location", ")", ",", "nodeSourceEnd", "(", "field", ",", "location", ")", ")", ";", "}", "public", "void", "unsafeRawGenericMethodInvocation", "(", "ASTNode", "location", ",", "MethodBinding", "rawMethod", ",", "TypeBinding", "[", "]", "argumentTypes", ")", "{", "if", "(", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "return", ";", "boolean", "isConstructor", "=", "rawMethod", ".", "isConstructor", "(", ")", ";", "int", "severity", "=", "computeSeverity", "(", "isConstructor", "?", "IProblem", ".", "UnsafeRawGenericConstructorInvocation", ":", "IProblem", ".", "UnsafeRawGenericMethodInvocation", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "isConstructor", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "UnsafeRawGenericConstructorInvocation", ",", "new", "String", "[", "]", "{", "new", "String", "(", "rawMethod", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "rawMethod", ".", "original", "(", ")", ",", "false", ")", ",", "new", "String", "(", "rawMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "argumentTypes", ",", "false", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "rawMethod", ".", "declaringClass", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "rawMethod", ".", "original", "(", ")", ",", "true", ")", ",", "new", "String", "(", "rawMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "argumentTypes", ",", "true", ")", ",", "}", ",", "severity", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "else", "{", "this", ".", "handle", "(", "IProblem", ".", "UnsafeRawGenericMethodInvocation", ",", "new", "String", "[", "]", "{", "new", "String", "(", "rawMethod", ".", "selector", ")", ",", "typesAsString", "(", "rawMethod", ".", "original", "(", ")", ",", "false", ")", ",", "new", "String", "(", "rawMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "argumentTypes", ",", "false", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "rawMethod", ".", "selector", ")", ",", "typesAsString", "(", "rawMethod", ".", "original", "(", ")", ",", "true", ")", ",", "new", "String", "(", "rawMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "argumentTypes", ",", "true", ")", ",", "}", ",", "severity", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "unsafeRawInvocation", "(", "ASTNode", "location", ",", "MethodBinding", "rawMethod", ")", "{", "if", "(", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "return", ";", "boolean", "isConstructor", "=", "rawMethod", ".", "isConstructor", "(", ")", ";", "int", "severity", "=", "computeSeverity", "(", "isConstructor", "?", "IProblem", ".", "UnsafeRawConstructorInvocation", ":", "IProblem", ".", "UnsafeRawMethodInvocation", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "isConstructor", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "UnsafeRawConstructorInvocation", ",", "new", "String", "[", "]", "{", "new", "String", "(", "rawMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "rawMethod", ".", "original", "(", ")", ",", "rawMethod", ".", "parameters", ",", "false", ")", ",", "new", "String", "(", "rawMethod", ".", "declaringClass", ".", "erasure", "(", ")", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "rawMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "rawMethod", ".", "original", "(", ")", ",", "rawMethod", ".", "parameters", ",", "true", ")", ",", "new", "String", "(", "rawMethod", ".", "declaringClass", ".", "erasure", "(", ")", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "severity", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "else", "{", "this", ".", "handle", "(", "IProblem", ".", "UnsafeRawMethodInvocation", ",", "new", "String", "[", "]", "{", "new", "String", "(", "rawMethod", ".", "selector", ")", ",", "typesAsString", "(", "rawMethod", ".", "original", "(", ")", ",", "rawMethod", ".", "parameters", ",", "false", ")", ",", "new", "String", "(", "rawMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "rawMethod", ".", "declaringClass", ".", "erasure", "(", ")", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "rawMethod", ".", "selector", ")", ",", "typesAsString", "(", "rawMethod", ".", "original", "(", ")", ",", "rawMethod", ".", "parameters", ",", "true", ")", ",", "new", "String", "(", "rawMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "rawMethod", ".", "declaringClass", ".", "erasure", "(", ")", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "severity", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "unsafeReturnTypeOverride", "(", "MethodBinding", "currentMethod", ",", "MethodBinding", "inheritedMethod", ",", "SourceTypeBinding", "type", ")", "{", "if", "(", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "return", ";", "}", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "UnsafeReturnTypeOverride", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "int", "start", "=", "type", ".", "sourceStart", "(", ")", ";", "int", "end", "=", "type", ".", "sourceEnd", "(", ")", ";", "if", "(", "currentMethod", ".", "declaringClass", "==", "type", ")", "{", "if", "(", "currentMethod", ".", "sourceMethod", "(", ")", "!=", "null", ")", "{", "ASTNode", "location", "=", "(", "(", "MethodDeclaration", ")", "currentMethod", ".", "sourceMethod", "(", ")", ")", ".", "returnType", ";", "start", "=", "location", ".", "sourceStart", "(", ")", ";", "end", "=", "location", ".", "sourceEnd", "(", ")", ";", "}", "}", "this", ".", "handle", "(", "IProblem", ".", "UnsafeReturnTypeOverride", ",", "new", "String", "[", "]", "{", "new", "String", "(", "currentMethod", ".", "returnType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "currentMethod", ".", "selector", ")", ",", "typesAsString", "(", "currentMethod", ".", "original", "(", ")", ",", "false", ")", ",", "new", "String", "(", "currentMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "inheritedMethod", ".", "returnType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "currentMethod", ".", "returnType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "currentMethod", ".", "selector", ")", ",", "typesAsString", "(", "currentMethod", ".", "original", "(", ")", ",", "true", ")", ",", "new", "String", "(", "currentMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "inheritedMethod", ".", "returnType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "severity", ",", "start", ",", "end", ")", ";", "}", "public", "void", "unsafeTypeConversion", "(", "Expression", "expression", ",", "TypeBinding", "expressionType", ",", "TypeBinding", "expectedType", ")", "{", "if", "(", "this", ".", "options", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ")", "return", ";", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "UnsafeTypeConversion", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "!", "this", ".", "options", ".", "reportUnavoidableGenericTypeProblems", "&&", "expression", ".", "forcedToBeRaw", "(", "this", ".", "referenceContext", ")", ")", "{", "return", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "UnsafeTypeConversion", ",", "new", "String", "[", "]", "{", "new", "String", "(", "expressionType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "expectedType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "expectedType", ".", "erasure", "(", ")", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "expressionType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "expectedType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "expectedType", ".", "erasure", "(", ")", ".", "shortReadableName", "(", ")", ")", "}", ",", "severity", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "unusedArgument", "(", "LocalDeclaration", "localDecl", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "ArgumentIsNeverUsed", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "localDecl", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "ArgumentIsNeverUsed", ",", "arguments", ",", "arguments", ",", "severity", ",", "localDecl", ".", "sourceStart", ",", "localDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "unusedDeclaredThrownException", "(", "ReferenceBinding", "exceptionType", ",", "AbstractMethodDeclaration", "method", ",", "ASTNode", "location", ")", "{", "boolean", "isConstructor", "=", "method", ".", "isConstructor", "(", ")", ";", "int", "severity", "=", "computeSeverity", "(", "isConstructor", "?", "IProblem", ".", "UnusedConstructorDeclaredThrownException", ":", "IProblem", ".", "UnusedMethodDeclaredThrownException", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "isConstructor", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "UnusedConstructorDeclaredThrownException", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "binding", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "method", ".", "binding", ",", "false", ")", ",", "new", "String", "(", "exceptionType", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "binding", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "method", ".", "binding", ",", "true", ")", ",", "new", "String", "(", "exceptionType", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "severity", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "else", "{", "this", ".", "handle", "(", "IProblem", ".", "UnusedMethodDeclaredThrownException", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "binding", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ".", "binding", ",", "false", ")", ",", "new", "String", "(", "exceptionType", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "binding", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ".", "binding", ",", "true", ")", ",", "new", "String", "(", "exceptionType", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "severity", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "unusedImport", "(", "ImportReference", "importRef", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "UnusedImport", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "CharOperation", ".", "toString", "(", "importRef", ".", "tokens", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "UnusedImport", ",", "arguments", ",", "arguments", ",", "severity", ",", "importRef", ".", "sourceStart", ",", "importRef", ".", "sourceEnd", ")", ";", "}", "public", "void", "unusedLabel", "(", "LabeledStatement", "statement", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "UnusedLabel", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "statement", ".", "label", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "UnusedLabel", ",", "arguments", ",", "arguments", ",", "severity", ",", "statement", ".", "sourceStart", ",", "statement", ".", "labelEnd", ")", ";", "}", "public", "void", "unusedLocalVariable", "(", "LocalDeclaration", "localDecl", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "LocalVariableIsNeverUsed", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "localDecl", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "LocalVariableIsNeverUsed", ",", "arguments", ",", "arguments", ",", "severity", ",", "localDecl", ".", "sourceStart", ",", "localDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "unusedObjectAllocation", "(", "AllocationExpression", "allocationExpression", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "UnusedObjectAllocation", ",", "NoArgument", ",", "NoArgument", ",", "allocationExpression", ".", "sourceStart", ",", "allocationExpression", ".", "sourceEnd", ")", ";", "}", "public", "void", "unusedPrivateConstructor", "(", "ConstructorDeclaration", "constructorDecl", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "UnusedPrivateConstructor", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "excludeDueToAnnotation", "(", "constructorDecl", ".", "annotations", ")", ")", "return", ";", "MethodBinding", "constructor", "=", "constructorDecl", ".", "binding", ";", "this", ".", "handle", "(", "IProblem", ".", "UnusedPrivateConstructor", ",", "new", "String", "[", "]", "{", "new", "String", "(", "constructor", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "constructor", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "constructor", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "constructor", ",", "true", ")", "}", ",", "severity", ",", "constructorDecl", ".", "sourceStart", ",", "constructorDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "unusedPrivateField", "(", "FieldDeclaration", "fieldDecl", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "UnusedPrivateField", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "FieldBinding", "field", "=", "fieldDecl", ".", "binding", ";", "if", "(", "CharOperation", ".", "equals", "(", "TypeConstants", ".", "SERIALVERSIONUID", ",", "field", ".", "name", ")", "&&", "field", ".", "isStatic", "(", ")", "&&", "field", ".", "isFinal", "(", ")", "&&", "TypeBinding", ".", "LONG", "==", "field", ".", "type", ")", "{", "ReferenceBinding", "referenceBinding", "=", "field", ".", "declaringClass", ";", "if", "(", "referenceBinding", "!=", "null", ")", "{", "if", "(", "referenceBinding", ".", "findSuperTypeOriginatingFrom", "(", "TypeIds", ".", "T_JavaIoSerializable", ",", "false", ")", "!=", "null", ")", "{", "return", ";", "}", "}", "}", "if", "(", "CharOperation", ".", "equals", "(", "TypeConstants", ".", "SERIALPERSISTENTFIELDS", ",", "field", ".", "name", ")", "&&", "field", ".", "isStatic", "(", ")", "&&", "field", ".", "isFinal", "(", ")", "&&", "field", ".", "type", ".", "dimensions", "(", ")", "==", "1", "&&", "CharOperation", ".", "equals", "(", "TypeConstants", ".", "CharArray_JAVA_IO_OBJECTSTREAMFIELD", ",", "field", ".", "type", ".", "leafComponentType", "(", ")", ".", "readableName", "(", ")", ")", ")", "{", "ReferenceBinding", "referenceBinding", "=", "field", ".", "declaringClass", ";", "if", "(", "referenceBinding", "!=", "null", ")", "{", "if", "(", "referenceBinding", ".", "findSuperTypeOriginatingFrom", "(", "TypeIds", ".", "T_JavaIoSerializable", ",", "false", ")", "!=", "null", ")", "{", "return", ";", "}", "}", "}", "if", "(", "excludeDueToAnnotation", "(", "fieldDecl", ".", "annotations", ")", ")", "return", ";", "this", ".", "handle", "(", "IProblem", ".", "UnusedPrivateField", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "field", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "field", ".", "name", ")", ",", "}", ",", "severity", ",", "nodeSourceStart", "(", "field", ",", "fieldDecl", ")", ",", "nodeSourceEnd", "(", "field", ",", "fieldDecl", ")", ")", ";", "}", "public", "void", "unusedPrivateMethod", "(", "AbstractMethodDeclaration", "methodDecl", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "UnusedPrivateMethod", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "MethodBinding", "method", "=", "methodDecl", ".", "binding", ";", "if", "(", "!", "method", ".", "isStatic", "(", ")", "&&", "TypeBinding", ".", "VOID", "==", "method", ".", "returnType", "&&", "method", ".", "parameters", ".", "length", "==", "1", "&&", "method", ".", "parameters", "[", "0", "]", ".", "dimensions", "(", ")", "==", "0", "&&", "CharOperation", ".", "equals", "(", "method", ".", "selector", ",", "TypeConstants", ".", "READOBJECT", ")", "&&", "CharOperation", ".", "equals", "(", "TypeConstants", ".", "CharArray_JAVA_IO_OBJECTINPUTSTREAM", ",", "method", ".", "parameters", "[", "0", "]", ".", "readableName", "(", ")", ")", ")", "{", "return", ";", "}", "if", "(", "!", "method", ".", "isStatic", "(", ")", "&&", "TypeBinding", ".", "VOID", "==", "method", ".", "returnType", "&&", "method", ".", "parameters", ".", "length", "==", "1", "&&", "method", ".", "parameters", "[", "0", "]", ".", "dimensions", "(", ")", "==", "0", "&&", "CharOperation", ".", "equals", "(", "method", ".", "selector", ",", "TypeConstants", ".", "WRITEOBJECT", ")", "&&", "CharOperation", ".", "equals", "(", "TypeConstants", ".", "CharArray_JAVA_IO_OBJECTOUTPUTSTREAM", ",", "method", ".", "parameters", "[", "0", "]", ".", "readableName", "(", ")", ")", ")", "{", "return", ";", "}", "if", "(", "!", "method", ".", "isStatic", "(", ")", "&&", "TypeIds", ".", "T_JavaLangObject", "==", "method", ".", "returnType", ".", "id", "&&", "method", ".", "parameters", ".", "length", "==", "0", "&&", "CharOperation", ".", "equals", "(", "method", ".", "selector", ",", "TypeConstants", ".", "READRESOLVE", ")", ")", "{", "return", ";", "}", "if", "(", "!", "method", ".", "isStatic", "(", ")", "&&", "TypeIds", ".", "T_JavaLangObject", "==", "method", ".", "returnType", ".", "id", "&&", "method", ".", "parameters", ".", "length", "==", "0", "&&", "CharOperation", ".", "equals", "(", "method", ".", "selector", ",", "TypeConstants", ".", "WRITEREPLACE", ")", ")", "{", "return", ";", "}", "if", "(", "excludeDueToAnnotation", "(", "methodDecl", ".", "annotations", ")", ")", "return", ";", "this", ".", "handle", "(", "IProblem", ".", "UnusedPrivateMethod", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "true", ")", "}", ",", "severity", ",", "methodDecl", ".", "sourceStart", ",", "methodDecl", ".", "sourceEnd", ")", ";", "}", "private", "boolean", "excludeDueToAnnotation", "(", "Annotation", "[", "]", "annotations", ")", "{", "int", "annotationsLen", "=", "0", ";", "if", "(", "annotations", "!=", "null", ")", "{", "annotationsLen", "=", "annotations", ".", "length", ";", "}", "else", "{", "return", "false", ";", "}", "if", "(", "annotationsLen", "==", "0", ")", "return", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotationsLen", ";", "i", "++", ")", "{", "TypeBinding", "resolvedType", "=", "annotations", "[", "i", "]", ".", "resolvedType", ";", "if", "(", "resolvedType", "!=", "null", ")", "{", "switch", "(", "resolvedType", ".", "id", ")", "{", "case", "TypeIds", ".", "T_JavaLangSuppressWarnings", ":", "case", "TypeIds", ".", "T_JavaLangDeprecated", ":", "case", "TypeIds", ".", "T_JavaLangSafeVarargs", ":", "case", "TypeIds", ".", "T_ConfiguredAnnotationNonNull", ":", "case", "TypeIds", ".", "T_ConfiguredAnnotationNullable", ":", "case", "TypeIds", ".", "T_ConfiguredAnnotationNonNullByDefault", ":", "break", ";", "default", ":", "return", "true", ";", "}", "}", "}", "return", "false", ";", "}", "public", "void", "unusedPrivateType", "(", "TypeDeclaration", "typeDecl", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "UnusedPrivateType", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "excludeDueToAnnotation", "(", "typeDecl", ".", "annotations", ")", ")", "return", ";", "ReferenceBinding", "type", "=", "typeDecl", ".", "binding", ";", "this", ".", "handle", "(", "IProblem", ".", "UnusedPrivateType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "type", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "severity", ",", "typeDecl", ".", "sourceStart", ",", "typeDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "unusedWarningToken", "(", "Expression", "token", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "token", ".", "constant", ".", "stringValue", "(", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "UnusedWarningToken", ",", "arguments", ",", "arguments", ",", "token", ".", "sourceStart", ",", "token", ".", "sourceEnd", ")", ";", "}", "public", "void", "useAssertAsAnIdentifier", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "UseAssertAsAnIdentifier", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "useEnumAsAnIdentifier", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "UseEnumAsAnIdentifier", ",", "NoArgument", ",", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "varargsArgumentNeedCast", "(", "MethodBinding", "method", ",", "TypeBinding", "argumentType", ",", "InvocationSite", "location", ")", "{", "int", "severity", "=", "this", ".", "options", ".", "getSeverity", "(", "CompilerOptions", ".", "VarargsArgumentNeedCast", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "ArrayBinding", "varargsType", "=", "(", "ArrayBinding", ")", "method", ".", "parameters", "[", "method", ".", "parameters", ".", "length", "-", "1", "]", ";", "if", "(", "method", ".", "isConstructor", "(", ")", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "ConstructorVarargsArgumentNeedCast", ",", "new", "String", "[", "]", "{", "new", "String", "(", "argumentType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "varargsType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "false", ")", ",", "new", "String", "(", "varargsType", ".", "elementsType", "(", ")", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "argumentType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "varargsType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "true", ")", ",", "new", "String", "(", "varargsType", ".", "elementsType", "(", ")", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "severity", ",", "location", ".", "sourceStart", "(", ")", ",", "location", ".", "sourceEnd", "(", ")", ")", ";", "}", "else", "{", "this", ".", "handle", "(", "IProblem", ".", "MethodVarargsArgumentNeedCast", ",", "new", "String", "[", "]", "{", "new", "String", "(", "argumentType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "varargsType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "false", ")", ",", "new", "String", "(", "method", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "varargsType", ".", "elementsType", "(", ")", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "argumentType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "varargsType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "true", ")", ",", "new", "String", "(", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "varargsType", ".", "elementsType", "(", ")", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "severity", ",", "location", ".", "sourceStart", "(", ")", ",", "location", ".", "sourceEnd", "(", ")", ")", ";", "}", "}", "public", "void", "varargsConflict", "(", "MethodBinding", "method1", ",", "MethodBinding", "method2", ",", "SourceTypeBinding", "type", ")", "{", "ReferenceBinding", "rb1", "=", "method1", ".", "declaringClass", ";", "ReferenceBinding", "rb2", "=", "method2", ".", "declaringClass", ";", "if", "(", "rb1", "!=", "null", "&&", "(", "rb1", "instanceof", "SourceTypeBinding", ")", "&&", "(", "(", "SourceTypeBinding", ")", "rb1", ")", ".", "scope", "!=", "null", "&&", "!", "(", "(", "SourceTypeBinding", ")", "rb1", ")", ".", "scope", ".", "shouldReport", "(", "IProblem", ".", "VarargsConflict", ")", ")", "{", "return", ";", "}", "if", "(", "rb2", "!=", "null", "&&", "(", "rb2", "instanceof", "SourceTypeBinding", ")", "&&", "(", "(", "SourceTypeBinding", ")", "rb2", ")", ".", "scope", "!=", "null", "&&", "!", "(", "(", "SourceTypeBinding", ")", "rb2", ")", ".", "scope", ".", "shouldReport", "(", "IProblem", ".", "VarargsConflict", ")", ")", "{", "return", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "VarargsConflict", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method1", ".", "selector", ")", ",", "typesAsString", "(", "method1", ",", "false", ")", ",", "new", "String", "(", "method1", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "method2", ",", "false", ")", ",", "new", "String", "(", "method2", ".", "declaringClass", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method1", ".", "selector", ")", ",", "typesAsString", "(", "method1", ",", "true", ")", ",", "new", "String", "(", "method1", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "method2", ",", "true", ")", ",", "new", "String", "(", "method2", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ",", "method1", ".", "declaringClass", "==", "type", "?", "method1", ".", "sourceStart", "(", ")", ":", "type", ".", "sourceStart", "(", ")", ",", "method1", ".", "declaringClass", "==", "type", "?", "method1", ".", "sourceEnd", "(", ")", ":", "type", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "safeVarargsOnFixedArityMethod", "(", "MethodBinding", "method", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "isConstructor", "(", ")", "?", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ":", "method", ".", "selector", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "SafeVarargsOnFixedArityMethod", ",", "arguments", ",", "arguments", ",", "method", ".", "sourceStart", "(", ")", ",", "method", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "safeVarargsOnNonFinalInstanceMethod", "(", "MethodBinding", "method", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "isConstructor", "(", ")", "?", "method", ".", "declaringClass", ".", "shortReadableName", "(", ")", ":", "method", ".", "selector", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "SafeVarargsOnNonFinalInstanceMethod", ",", "arguments", ",", "arguments", ",", "method", ".", "sourceStart", "(", ")", ",", "method", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "possibleHeapPollutionFromVararg", "(", "AbstractVariableDeclaration", "vararg", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "vararg", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "PotentialHeapPollutionFromVararg", ",", "arguments", ",", "arguments", ",", "vararg", ".", "sourceStart", ",", "vararg", ".", "sourceEnd", ")", ";", "}", "public", "void", "variableTypeCannotBeVoid", "(", "AbstractVariableDeclaration", "varDecl", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "varDecl", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "VariableTypeCannotBeVoid", ",", "arguments", ",", "arguments", ",", "varDecl", ".", "sourceStart", ",", "varDecl", ".", "sourceEnd", ")", ";", "}", "public", "void", "variableTypeCannotBeVoidArray", "(", "AbstractVariableDeclaration", "varDecl", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "CannotAllocateVoidArray", ",", "NoArgument", ",", "NoArgument", ",", "varDecl", ".", "type", ".", "sourceStart", ",", "varDecl", ".", "type", ".", "sourceEnd", ")", ";", "}", "public", "void", "visibilityConflict", "(", "MethodBinding", "currentMethod", ",", "MethodBinding", "inheritedMethod", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "MethodReducesVisibility", ",", "new", "String", "[", "]", "{", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ",", "currentMethod", ".", "sourceStart", "(", ")", ",", "currentMethod", ".", "sourceEnd", "(", ")", ")", ";", "}", "public", "void", "wildcardAssignment", "(", "TypeBinding", "variableType", ",", "TypeBinding", "expressionType", ",", "ASTNode", "location", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "WildcardFieldAssignment", ",", "new", "String", "[", "]", "{", "new", "String", "(", "expressionType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "variableType", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "expressionType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "variableType", ".", "shortReadableName", "(", ")", ")", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "wildcardInvocation", "(", "ASTNode", "location", ",", "TypeBinding", "receiverType", ",", "MethodBinding", "method", ",", "TypeBinding", "[", "]", "arguments", ")", "{", "TypeBinding", "offendingArgument", "=", "null", ";", "TypeBinding", "offendingParameter", "=", "null", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "method", ".", "parameters", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeBinding", "parameter", "=", "method", ".", "parameters", "[", "i", "]", ";", "if", "(", "parameter", ".", "isWildcard", "(", ")", "&&", "(", "(", "(", "WildcardBinding", ")", "parameter", ")", ".", "boundKind", "!=", "Wildcard", ".", "SUPER", ")", ")", "{", "offendingParameter", "=", "parameter", ";", "offendingArgument", "=", "arguments", "[", "i", "]", ";", "break", ";", "}", "}", "if", "(", "method", ".", "isConstructor", "(", ")", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "WildcardConstructorInvocation", ",", "new", "String", "[", "]", "{", "new", "String", "(", "receiverType", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "false", ")", ",", "new", "String", "(", "receiverType", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "arguments", ",", "false", ")", ",", "new", "String", "(", "offendingArgument", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "offendingParameter", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "receiverType", ".", "sourceName", "(", ")", ")", ",", "typesAsString", "(", "method", ",", "true", ")", ",", "new", "String", "(", "receiverType", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "arguments", ",", "true", ")", ",", "new", "String", "(", "offendingArgument", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "offendingParameter", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "else", "{", "this", ".", "handle", "(", "IProblem", ".", "WildcardMethodInvocation", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "false", ")", ",", "new", "String", "(", "receiverType", ".", "readableName", "(", ")", ")", ",", "typesAsString", "(", "arguments", ",", "false", ")", ",", "new", "String", "(", "offendingArgument", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "offendingParameter", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "selector", ")", ",", "typesAsString", "(", "method", ",", "true", ")", ",", "new", "String", "(", "receiverType", ".", "shortReadableName", "(", ")", ")", ",", "typesAsString", "(", "arguments", ",", "true", ")", ",", "new", "String", "(", "offendingArgument", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "offendingParameter", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "wrongSequenceOfExceptionTypesError", "(", "TypeReference", "typeRef", ",", "TypeBinding", "exceptionType", ",", "TypeBinding", "hidingExceptionType", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidCatchBlockSequence", ",", "new", "String", "[", "]", "{", "new", "String", "(", "exceptionType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "hidingExceptionType", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "exceptionType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "hidingExceptionType", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "typeRef", ".", "sourceStart", ",", "typeRef", ".", "sourceEnd", ")", ";", "}", "public", "void", "wrongSequenceOfExceptionTypes", "(", "TypeReference", "typeRef", ",", "TypeBinding", "exceptionType", ",", "TypeBinding", "hidingExceptionType", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "InvalidUnionTypeReferenceSequence", ",", "new", "String", "[", "]", "{", "new", "String", "(", "exceptionType", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "hidingExceptionType", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "exceptionType", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "hidingExceptionType", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "typeRef", ".", "sourceStart", ",", "typeRef", ".", "sourceEnd", ")", ";", "}", "public", "void", "autoManagedResourcesNotBelow17", "(", "LocalDeclaration", "[", "]", "resources", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "AutoManagedResourceNotBelow17", ",", "NoArgument", ",", "NoArgument", ",", "resources", "[", "0", "]", ".", "declarationSourceStart", ",", "resources", "[", "resources", ".", "length", "-", "1", "]", ".", "declarationSourceEnd", ")", ";", "}", "public", "void", "cannotInferElidedTypes", "(", "AllocationExpression", "allocationExpression", ")", "{", "String", "arguments", "[", "]", "=", "new", "String", "[", "]", "{", "allocationExpression", ".", "type", ".", "toString", "(", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "CannotInferElidedTypes", ",", "arguments", ",", "arguments", ",", "allocationExpression", ".", "sourceStart", ",", "allocationExpression", ".", "sourceEnd", ")", ";", "}", "public", "void", "diamondNotWithExplicitTypeArguments", "(", "TypeReference", "[", "]", "typeArguments", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "CannotUseDiamondWithExplicitTypeArguments", ",", "NoArgument", ",", "NoArgument", ",", "typeArguments", "[", "0", "]", ".", "sourceStart", ",", "typeArguments", "[", "typeArguments", ".", "length", "-", "1", "]", ".", "sourceEnd", ")", ";", "}", "public", "void", "diamondNotWithAnoymousClasses", "(", "TypeReference", "type", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "CannotUseDiamondWithAnonymousClasses", ",", "NoArgument", ",", "NoArgument", ",", "type", ".", "sourceStart", ",", "type", ".", "sourceEnd", ")", ";", "}", "public", "void", "redundantSpecificationOfTypeArguments", "(", "ASTNode", "location", ",", "TypeBinding", "[", "]", "argumentTypes", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "RedundantSpecificationOfTypeArguments", ")", ";", "if", "(", "severity", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "int", "sourceStart", "=", "-", "1", ";", "if", "(", "location", "instanceof", "QualifiedTypeReference", ")", "{", "QualifiedTypeReference", "ref", "=", "(", "QualifiedTypeReference", ")", "location", ";", "sourceStart", "=", "(", "int", ")", "(", "ref", ".", "sourcePositions", "[", "ref", ".", "sourcePositions", ".", "length", "-", "1", "]", ">>", "32", ")", ";", "}", "else", "{", "sourceStart", "=", "location", ".", "sourceStart", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "RedundantSpecificationOfTypeArguments", ",", "new", "String", "[", "]", "{", "typesAsString", "(", "argumentTypes", ",", "false", ")", "}", ",", "new", "String", "[", "]", "{", "typesAsString", "(", "argumentTypes", ",", "true", ")", "}", ",", "severity", ",", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "potentiallyUnclosedCloseable", "(", "FakedTrackingVariable", "trackVar", ",", "ASTNode", "location", ")", "{", "String", "[", "]", "args", "=", "{", "String", ".", "valueOf", "(", "trackVar", ".", "name", ")", "}", ";", "if", "(", "location", "==", "null", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "PotentiallyUnclosedCloseable", ",", "args", ",", "args", ",", "trackVar", ".", "sourceStart", ",", "trackVar", ".", "sourceEnd", ")", ";", "}", "else", "{", "this", ".", "handle", "(", "IProblem", ".", "PotentiallyUnclosedCloseableAtExit", ",", "args", ",", "args", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "unclosedCloseable", "(", "FakedTrackingVariable", "trackVar", ",", "ASTNode", "location", ")", "{", "String", "[", "]", "args", "=", "{", "String", ".", "valueOf", "(", "trackVar", ".", "name", ")", "}", ";", "if", "(", "location", "==", "null", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "UnclosedCloseable", ",", "args", ",", "args", ",", "trackVar", ".", "sourceStart", ",", "trackVar", ".", "sourceEnd", ")", ";", "}", "else", "{", "this", ".", "handle", "(", "IProblem", ".", "UnclosedCloseableAtExit", ",", "args", ",", "args", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "explicitlyClosedAutoCloseable", "(", "FakedTrackingVariable", "trackVar", ")", "{", "String", "[", "]", "args", "=", "{", "String", ".", "valueOf", "(", "trackVar", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "ExplicitlyClosedAutoCloseable", ",", "args", ",", "args", ",", "trackVar", ".", "sourceStart", ",", "trackVar", ".", "sourceEnd", ")", ";", "}", "public", "void", "nullityMismatch", "(", "Expression", "expression", ",", "TypeBinding", "providedType", ",", "TypeBinding", "requiredType", ",", "int", "nullStatus", ",", "char", "[", "]", "[", "]", "annotationName", ")", "{", "if", "(", "(", "nullStatus", "&", "FlowInfo", ".", "NULL", ")", "!=", "0", ")", "{", "nullityMismatchIsNull", "(", "expression", ",", "requiredType", ",", "annotationName", ")", ";", "return", ";", "}", "if", "(", "(", "nullStatus", "&", "FlowInfo", ".", "POTENTIALLY_NULL", ")", "!=", "0", ")", "{", "if", "(", "expression", "instanceof", "SingleNameReference", ")", "{", "SingleNameReference", "snr", "=", "(", "SingleNameReference", ")", "expression", ";", "if", "(", "snr", ".", "binding", "instanceof", "LocalVariableBinding", ")", "{", "if", "(", "(", "(", "LocalVariableBinding", ")", "snr", ".", "binding", ")", ".", "isNullable", "(", ")", ")", "{", "nullityMismatchSpecdNullable", "(", "expression", ",", "requiredType", ",", "annotationName", ")", ";", "return", ";", "}", "}", "}", "nullityMismatchPotentiallyNull", "(", "expression", ",", "requiredType", ",", "annotationName", ")", ";", "return", ";", "}", "nullityMismatchIsUnknown", "(", "expression", ",", "providedType", ",", "requiredType", ",", "annotationName", ")", ";", "}", "public", "void", "nullityMismatchIsNull", "(", "Expression", "expression", ",", "TypeBinding", "requiredType", ",", "char", "[", "]", "[", "]", "annotationName", ")", "{", "int", "problemId", "=", "IProblem", ".", "RequiredNonNullButProvidedNull", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "String", ".", "valueOf", "(", "CharOperation", ".", "concatWith", "(", "annotationName", ",", "'.'", ")", ")", ",", "String", ".", "valueOf", "(", "requiredType", ".", "readableName", "(", ")", ")", "}", ";", "String", "[", "]", "argumentsShort", "=", "new", "String", "[", "]", "{", "String", ".", "valueOf", "(", "annotationName", "[", "annotationName", ".", "length", "-", "1", "]", ")", ",", "String", ".", "valueOf", "(", "requiredType", ".", "shortReadableName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "problemId", ",", "arguments", ",", "argumentsShort", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "nullityMismatchSpecdNullable", "(", "Expression", "expression", ",", "TypeBinding", "requiredType", ",", "char", "[", "]", "[", "]", "annotationName", ")", "{", "int", "problemId", "=", "IProblem", ".", "RequiredNonNullButProvidedSpecdNullable", ";", "char", "[", "]", "[", "]", "nullableName", "=", "this", ".", "options", ".", "nullableAnnotationName", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "String", ".", "valueOf", "(", "CharOperation", ".", "concatWith", "(", "annotationName", ",", "'.'", ")", ")", ",", "String", ".", "valueOf", "(", "requiredType", ".", "readableName", "(", ")", ")", ",", "String", ".", "valueOf", "(", "CharOperation", ".", "concatWith", "(", "nullableName", ",", "'.'", ")", ")", "}", ";", "String", "[", "]", "argumentsShort", "=", "new", "String", "[", "]", "{", "String", ".", "valueOf", "(", "annotationName", "[", "annotationName", ".", "length", "-", "1", "]", ")", ",", "String", ".", "valueOf", "(", "requiredType", ".", "shortReadableName", "(", ")", ")", ",", "String", ".", "valueOf", "(", "nullableName", "[", "nullableName", ".", "length", "-", "1", "]", ")", "}", ";", "this", ".", "handle", "(", "problemId", ",", "arguments", ",", "argumentsShort", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "nullityMismatchPotentiallyNull", "(", "Expression", "expression", ",", "TypeBinding", "requiredType", ",", "char", "[", "]", "[", "]", "annotationName", ")", "{", "int", "problemId", "=", "IProblem", ".", "RequiredNonNullButProvidedPotentialNull", ";", "char", "[", "]", "[", "]", "nullableName", "=", "this", ".", "options", ".", "nullableAnnotationName", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "String", ".", "valueOf", "(", "CharOperation", ".", "concatWith", "(", "annotationName", ",", "'.'", ")", ")", ",", "String", ".", "valueOf", "(", "requiredType", ".", "readableName", "(", ")", ")", ",", "String", ".", "valueOf", "(", "CharOperation", ".", "concatWith", "(", "nullableName", ",", "'.'", ")", ")", "}", ";", "String", "[", "]", "argumentsShort", "=", "new", "String", "[", "]", "{", "String", ".", "valueOf", "(", "annotationName", "[", "annotationName", ".", "length", "-", "1", "]", ")", ",", "String", ".", "valueOf", "(", "requiredType", ".", "shortReadableName", "(", ")", ")", ",", "String", ".", "valueOf", "(", "nullableName", "[", "nullableName", ".", "length", "-", "1", "]", ")", "}", ";", "this", ".", "handle", "(", "problemId", ",", "arguments", ",", "argumentsShort", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "nullityMismatchIsUnknown", "(", "Expression", "expression", ",", "TypeBinding", "providedType", ",", "TypeBinding", "requiredType", ",", "char", "[", "]", "[", "]", "annotationName", ")", "{", "int", "problemId", "=", "IProblem", ".", "RequiredNonNullButProvidedUnknown", ";", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "String", ".", "valueOf", "(", "providedType", ".", "readableName", "(", ")", ")", ",", "String", ".", "valueOf", "(", "CharOperation", ".", "concatWith", "(", "annotationName", ",", "'.'", ")", ")", ",", "String", ".", "valueOf", "(", "requiredType", ".", "readableName", "(", ")", ")", "}", ";", "String", "[", "]", "argumentsShort", "=", "new", "String", "[", "]", "{", "String", ".", "valueOf", "(", "providedType", ".", "shortReadableName", "(", ")", ")", ",", "String", ".", "valueOf", "(", "annotationName", "[", "annotationName", ".", "length", "-", "1", "]", ")", ",", "String", ".", "valueOf", "(", "requiredType", ".", "shortReadableName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "problemId", ",", "arguments", ",", "argumentsShort", ",", "expression", ".", "sourceStart", ",", "expression", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalRedefinitionToNonNullParameter", "(", "Argument", "argument", ",", "ReferenceBinding", "declaringClass", ",", "char", "[", "]", "[", "]", "inheritedAnnotationName", ")", "{", "int", "sourceStart", "=", "argument", ".", "type", ".", "sourceStart", ";", "if", "(", "argument", ".", "annotations", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "argument", ".", "annotations", ".", "length", ";", "i", "++", ")", "{", "Annotation", "annotation", "=", "argument", ".", "annotations", "[", "i", "]", ";", "if", "(", "annotation", ".", "resolvedType", ".", "id", "==", "TypeIds", ".", "T_ConfiguredAnnotationNullable", "||", "annotation", ".", "resolvedType", ".", "id", "==", "TypeIds", ".", "T_ConfiguredAnnotationNonNull", ")", "{", "sourceStart", "=", "annotation", ".", "sourceStart", ";", "break", ";", "}", "}", "}", "if", "(", "inheritedAnnotationName", "==", "null", ")", "{", "this", ".", "handle", "(", "IProblem", ".", "IllegalDefinitionToNonNullParameter", ",", "new", "String", "[", "]", "{", "new", "String", "(", "argument", ".", "name", ")", ",", "new", "String", "(", "declaringClass", ".", "readableName", "(", ")", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "argument", ".", "name", ")", ",", "new", "String", "(", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ",", "sourceStart", ",", "argument", ".", "type", ".", "sourceEnd", ")", ";", "}", "else", "{", "this", ".", "handle", "(", "IProblem", ".", "IllegalRedefinitionToNonNullParameter", ",", "new", "String", "[", "]", "{", "new", "String", "(", "argument", ".", "name", ")", ",", "new", "String", "(", "declaringClass", ".", "readableName", "(", ")", ")", ",", "CharOperation", ".", "toString", "(", "inheritedAnnotationName", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "argument", ".", "name", ")", ",", "new", "String", "(", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "inheritedAnnotationName", "[", "inheritedAnnotationName", ".", "length", "-", "1", "]", ")", "}", ",", "sourceStart", ",", "argument", ".", "type", ".", "sourceEnd", ")", ";", "}", "}", "public", "void", "parameterLackingNullAnnotation", "(", "Argument", "argument", ",", "ReferenceBinding", "declaringClass", ",", "boolean", "needNonNull", ",", "char", "[", "]", "[", "]", "inheritedAnnotationName", ")", "{", "this", ".", "handle", "(", "needNonNull", "?", "IProblem", ".", "ParameterLackingNonNullAnnotation", ":", "IProblem", ".", "ParameterLackingNullableAnnotation", ",", "new", "String", "[", "]", "{", "new", "String", "(", "argument", ".", "name", ")", ",", "new", "String", "(", "declaringClass", ".", "readableName", "(", ")", ")", ",", "CharOperation", ".", "toString", "(", "inheritedAnnotationName", ")", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "argument", ".", "name", ")", ",", "new", "String", "(", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "inheritedAnnotationName", "[", "inheritedAnnotationName", ".", "length", "-", "1", "]", ")", "}", ",", "argument", ".", "type", ".", "sourceStart", ",", "argument", ".", "type", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalReturnRedefinition", "(", "AbstractMethodDeclaration", "abstractMethodDecl", ",", "MethodBinding", "inheritedMethod", ",", "char", "[", "]", "[", "]", "nonNullAnnotationName", ")", "{", "MethodDeclaration", "methodDecl", "=", "(", "MethodDeclaration", ")", "abstractMethodDecl", ";", "StringBuffer", "methodSignature", "=", "new", "StringBuffer", "(", ")", ";", "methodSignature", ".", "append", "(", "inheritedMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ".", "append", "(", "'.'", ")", ".", "append", "(", "inheritedMethod", ".", "readableName", "(", ")", ")", ";", "StringBuffer", "shortSignature", "=", "new", "StringBuffer", "(", ")", ";", "shortSignature", ".", "append", "(", "inheritedMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ".", "append", "(", "'.'", ")", ".", "append", "(", "inheritedMethod", ".", "shortReadableName", "(", ")", ")", ";", "int", "sourceStart", "=", "methodDecl", ".", "returnType", ".", "sourceStart", ";", "Annotation", "[", "]", "annotations", "=", "methodDecl", ".", "annotations", ";", "Annotation", "annotation", "=", "findAnnotation", "(", "annotations", ",", "TypeIds", ".", "T_ConfiguredAnnotationNullable", ")", ";", "if", "(", "annotation", "!=", "null", ")", "{", "sourceStart", "=", "annotation", ".", "sourceStart", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "IllegalReturnNullityRedefinition", ",", "new", "String", "[", "]", "{", "methodSignature", ".", "toString", "(", ")", ",", "CharOperation", ".", "toString", "(", "nonNullAnnotationName", ")", "}", ",", "new", "String", "[", "]", "{", "shortSignature", ".", "toString", "(", ")", ",", "new", "String", "(", "nonNullAnnotationName", "[", "nonNullAnnotationName", ".", "length", "-", "1", "]", ")", "}", ",", "sourceStart", ",", "methodDecl", ".", "returnType", ".", "sourceEnd", ")", ";", "}", "public", "void", "messageSendPotentialNullReference", "(", "MethodBinding", "method", ",", "ASTNode", "location", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "readableName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "PotentialNullMessageSendReference", ",", "arguments", ",", "arguments", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "messageSendRedundantCheckOnNonNull", "(", "MethodBinding", "method", ",", "ASTNode", "location", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "new", "String", "(", "method", ".", "readableName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "RedundantNullCheckOnNonNullMessageSend", ",", "arguments", ",", "arguments", ",", "location", ".", "sourceStart", ",", "location", ".", "sourceEnd", ")", ";", "}", "public", "void", "cannotImplementIncompatibleNullness", "(", "MethodBinding", "currentMethod", ",", "MethodBinding", "inheritedMethod", ")", "{", "int", "sourceStart", "=", "0", ",", "sourceEnd", "=", "0", ";", "if", "(", "this", ".", "referenceContext", "instanceof", "TypeDeclaration", ")", "{", "sourceStart", "=", "(", "(", "TypeDeclaration", ")", "this", ".", "referenceContext", ")", ".", "sourceStart", ";", "sourceEnd", "=", "(", "(", "TypeDeclaration", ")", "this", ".", "referenceContext", ")", ".", "sourceEnd", ";", "}", "String", "[", "]", "problemArguments", "=", "{", "new", "String", "(", "currentMethod", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "currentMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", ",", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "readableName", "(", ")", ")", "}", ";", "String", "[", "]", "messageArguments", "=", "{", "new", "String", "(", "currentMethod", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "currentMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", ",", "new", "String", "(", "inheritedMethod", ".", "declaringClass", ".", "shortReadableName", "(", ")", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "CannotImplementIncompatibleNullness", ",", "problemArguments", ",", "messageArguments", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "nullAnnotationIsRedundant", "(", "AbstractMethodDeclaration", "sourceMethod", ",", "int", "i", ")", "{", "int", "sourceStart", ",", "sourceEnd", ";", "if", "(", "i", "==", "-", "1", ")", "{", "MethodDeclaration", "methodDecl", "=", "(", "MethodDeclaration", ")", "sourceMethod", ";", "Annotation", "annotation", "=", "findAnnotation", "(", "methodDecl", ".", "annotations", ",", "TypeIds", ".", "T_ConfiguredAnnotationNonNull", ")", ";", "sourceStart", "=", "annotation", "!=", "null", "?", "annotation", ".", "sourceStart", ":", "methodDecl", ".", "returnType", ".", "sourceStart", ";", "sourceEnd", "=", "methodDecl", ".", "returnType", ".", "sourceEnd", ";", "}", "else", "{", "Argument", "arg", "=", "sourceMethod", ".", "arguments", "[", "i", "]", ";", "sourceStart", "=", "arg", ".", "declarationSourceStart", ";", "sourceEnd", "=", "arg", ".", "sourceEnd", ";", "}", "this", ".", "handle", "(", "IProblem", ".", "RedundantNullAnnotation", ",", "ProblemHandler", ".", "NoArgument", ",", "ProblemHandler", ".", "NoArgument", ",", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "void", "nullDefaultAnnotationIsRedundant", "(", "ASTNode", "location", ",", "Annotation", "[", "]", "annotations", ",", "Binding", "outer", ")", "{", "Annotation", "annotation", "=", "findAnnotation", "(", "annotations", ",", "TypeIds", ".", "T_ConfiguredAnnotationNonNullByDefault", ")", ";", "int", "start", "=", "annotation", "!=", "null", "?", "annotation", ".", "sourceStart", ":", "location", ".", "sourceStart", ";", "int", "end", "=", "annotation", "!=", "null", "?", "annotation", ".", "sourceEnd", ":", "location", ".", "sourceStart", ";", "String", "[", "]", "args", "=", "NoArgument", ";", "String", "[", "]", "shortArgs", "=", "NoArgument", ";", "if", "(", "outer", "!=", "null", ")", "{", "args", "=", "new", "String", "[", "]", "{", "new", "String", "(", "outer", ".", "readableName", "(", ")", ")", "}", ";", "shortArgs", "=", "new", "String", "[", "]", "{", "new", "String", "(", "outer", ".", "shortReadableName", "(", ")", ")", "}", ";", "}", "int", "problemId", "=", "IProblem", ".", "RedundantNullDefaultAnnotation", ";", "if", "(", "outer", "instanceof", "PackageBinding", ")", "{", "problemId", "=", "IProblem", ".", "RedundantNullDefaultAnnotationPackage", ";", "}", "else", "if", "(", "outer", "instanceof", "ReferenceBinding", ")", "{", "problemId", "=", "IProblem", ".", "RedundantNullDefaultAnnotationType", ";", "}", "else", "if", "(", "outer", "instanceof", "MethodBinding", ")", "{", "problemId", "=", "IProblem", ".", "RedundantNullDefaultAnnotationMethod", ";", "}", "this", ".", "handle", "(", "problemId", ",", "args", ",", "shortArgs", ",", "start", ",", "end", ")", ";", "}", "public", "void", "contradictoryNullAnnotations", "(", "Annotation", "annotation", ")", "{", "char", "[", "]", "[", "]", "nonNullAnnotationName", "=", "this", ".", "options", ".", "nonNullAnnotationName", ";", "char", "[", "]", "[", "]", "nullableAnnotationName", "=", "this", ".", "options", ".", "nullableAnnotationName", ";", "String", "[", "]", "arguments", "=", "{", "new", "String", "(", "CharOperation", ".", "concatWith", "(", "nonNullAnnotationName", ",", "'.'", ")", ")", ",", "new", "String", "(", "CharOperation", ".", "concatWith", "(", "nullableAnnotationName", ",", "'.'", ")", ")", "}", ";", "String", "[", "]", "shortArguments", "=", "{", "new", "String", "(", "nonNullAnnotationName", "[", "nonNullAnnotationName", ".", "length", "-", "1", "]", ")", ",", "new", "String", "(", "nullableAnnotationName", "[", "nullableAnnotationName", ".", "length", "-", "1", "]", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "ContradictoryNullAnnotations", ",", "arguments", ",", "shortArguments", ",", "annotation", ".", "sourceStart", ",", "annotation", ".", "sourceEnd", ")", ";", "}", "public", "void", "illegalAnnotationForBaseType", "(", "TypeReference", "type", ",", "Annotation", "[", "]", "annotations", ",", "char", "[", "]", "annotationName", ",", "long", "nullAnnotationTagBit", ")", "{", "int", "typeId", "=", "(", "nullAnnotationTagBit", "==", "TagBits", ".", "AnnotationNullable", ")", "?", "TypeIds", ".", "T_ConfiguredAnnotationNullable", ":", "TypeIds", ".", "T_ConfiguredAnnotationNonNull", ";", "String", "[", "]", "args", "=", "new", "String", "[", "]", "{", "new", "String", "(", "annotationName", ")", ",", "new", "String", "(", "type", ".", "getLastToken", "(", ")", ")", "}", ";", "Annotation", "annotation", "=", "findAnnotation", "(", "annotations", ",", "typeId", ")", ";", "int", "start", "=", "annotation", "!=", "null", "?", "annotation", ".", "sourceStart", ":", "type", ".", "sourceStart", ";", "this", ".", "handle", "(", "IProblem", ".", "IllegalAnnotationForBaseType", ",", "args", ",", "args", ",", "start", ",", "type", ".", "sourceEnd", ")", ";", "}", "private", "Annotation", "findAnnotation", "(", "Annotation", "[", "]", "annotations", ",", "int", "typeId", ")", "{", "if", "(", "annotations", "!=", "null", ")", "{", "int", "length", "=", "annotations", ".", "length", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "length", ";", "j", "++", ")", "{", "if", "(", "annotations", "[", "j", "]", ".", "resolvedType", "!=", "null", "&&", "annotations", "[", "j", "]", ".", "resolvedType", ".", "id", "==", "typeId", ")", "{", "return", "annotations", "[", "j", "]", ";", "}", "}", "}", "return", "null", ";", "}", "public", "void", "missingNonNullByDefaultAnnotation", "(", "TypeDeclaration", "type", ")", "{", "int", "severity", ";", "CompilationUnitDeclaration", "compUnitDecl", "=", "type", ".", "getCompilationUnitDeclaration", "(", ")", ";", "String", "[", "]", "arguments", ";", "if", "(", "compUnitDecl", ".", "currentPackage", "==", "null", ")", "{", "severity", "=", "computeSeverity", "(", "IProblem", ".", "MissingNonNullByDefaultAnnotationOnType", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "TypeBinding", "binding", "=", "type", ".", "binding", ";", "this", ".", "handle", "(", "IProblem", ".", "MissingNonNullByDefaultAnnotationOnType", ",", "new", "String", "[", "]", "{", "new", "String", "(", "binding", ".", "readableName", "(", ")", ")", ",", "}", ",", "new", "String", "[", "]", "{", "new", "String", "(", "binding", ".", "shortReadableName", "(", ")", ")", ",", "}", ",", "severity", ",", "type", ".", "sourceStart", ",", "type", ".", "sourceEnd", ")", ";", "}", "else", "{", "severity", "=", "computeSeverity", "(", "IProblem", ".", "MissingNonNullByDefaultAnnotationOnPackage", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "arguments", "=", "new", "String", "[", "]", "{", "CharOperation", ".", "toString", "(", "compUnitDecl", ".", "currentPackage", ".", "tokens", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "MissingNonNullByDefaultAnnotationOnPackage", ",", "arguments", ",", "arguments", ",", "severity", ",", "compUnitDecl", ".", "currentPackage", ".", "sourceStart", ",", "compUnitDecl", ".", "currentPackage", ".", "sourceEnd", ")", ";", "}", "}", "}", "</s>" ]
3,357
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CategorizedProblem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "CompilationResult", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "InvocationSite", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "class", "AbortCompilation", "extends", "RuntimeException", "{", "public", "CompilationResult", "compilationResult", ";", "public", "Throwable", "exception", ";", "public", "CategorizedProblem", "problem", ";", "public", "boolean", "isSilent", ";", "public", "RuntimeException", "silentException", ";", "private", "static", "final", "long", "serialVersionUID", "=", "-", "2047226595083244852L", ";", "public", "AbortCompilation", "(", ")", "{", "}", "public", "AbortCompilation", "(", "CompilationResult", "compilationResult", ",", "CategorizedProblem", "problem", ")", "{", "this", "(", ")", ";", "this", ".", "compilationResult", "=", "compilationResult", ";", "this", ".", "problem", "=", "problem", ";", "}", "public", "AbortCompilation", "(", "CompilationResult", "compilationResult", ",", "Throwable", "exception", ")", "{", "this", "(", ")", ";", "this", ".", "compilationResult", "=", "compilationResult", ";", "this", ".", "exception", "=", "exception", ";", "}", "public", "AbortCompilation", "(", "boolean", "isSilent", ",", "RuntimeException", "silentException", ")", "{", "this", "(", ")", ";", "this", ".", "isSilent", "=", "isSilent", ";", "this", ".", "silentException", "=", "silentException", ";", "}", "public", "String", "getMessage", "(", ")", "{", "String", "message", "=", "super", ".", "getMessage", "(", ")", ";", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "message", "==", "null", "?", "Util", ".", "EMPTY_STRING", ":", "message", ")", ";", "if", "(", "this", ".", "problem", "!=", "null", ")", "{", "buffer", ".", "append", "(", "this", ".", "problem", ")", ";", "}", "else", "if", "(", "this", ".", "exception", "!=", "null", ")", "{", "message", "=", "this", ".", "exception", ".", "getMessage", "(", ")", ";", "buffer", ".", "append", "(", "message", "==", "null", "?", "Util", ".", "EMPTY_STRING", ":", "message", ")", ";", "}", "else", "if", "(", "this", ".", "silentException", "!=", "null", ")", "{", "message", "=", "this", ".", "silentException", ".", "getMessage", "(", ")", ";", "buffer", ".", "append", "(", "message", "==", "null", "?", "Util", ".", "EMPTY_STRING", ":", "message", ")", ";", "}", "return", "String", ".", "valueOf", "(", "buffer", ")", ";", "}", "public", "void", "updateContext", "(", "InvocationSite", "invocationSite", ",", "CompilationResult", "unitResult", ")", "{", "if", "(", "this", ".", "problem", "==", "null", ")", "return", ";", "if", "(", "this", ".", "problem", ".", "getSourceStart", "(", ")", "!=", "0", "||", "this", ".", "problem", ".", "getSourceEnd", "(", ")", "!=", "0", ")", "return", ";", "this", ".", "problem", ".", "setSourceStart", "(", "invocationSite", ".", "sourceStart", "(", ")", ")", ";", "this", ".", "problem", ".", "setSourceEnd", "(", "invocationSite", ".", "sourceEnd", "(", ")", ")", ";", "int", "[", "]", "lineEnds", "=", "unitResult", ".", "getLineSeparatorPositions", "(", ")", ";", "this", ".", "problem", ".", "setSourceLineNumber", "(", "Util", ".", "getLineNumber", "(", "invocationSite", ".", "sourceStart", "(", ")", ",", "lineEnds", ",", "0", ",", "lineEnds", ".", "length", "-", "1", ")", ")", ";", "this", ".", "compilationResult", "=", "unitResult", ";", "}", "public", "void", "updateContext", "(", "ASTNode", "astNode", ",", "CompilationResult", "unitResult", ")", "{", "if", "(", "this", ".", "problem", "==", "null", ")", "return", ";", "if", "(", "this", ".", "problem", ".", "getSourceStart", "(", ")", "!=", "0", "||", "this", ".", "problem", ".", "getSourceEnd", "(", ")", "!=", "0", ")", "return", ";", "this", ".", "problem", ".", "setSourceStart", "(", "astNode", ".", "sourceStart", "(", ")", ")", ";", "this", ".", "problem", ".", "setSourceEnd", "(", "astNode", ".", "sourceEnd", "(", ")", ")", ";", "int", "[", "]", "lineEnds", "=", "unitResult", ".", "getLineSeparatorPositions", "(", ")", ";", "this", ".", "problem", ".", "setSourceLineNumber", "(", "Util", ".", "getLineNumber", "(", "astNode", ".", "sourceStart", "(", ")", ",", "lineEnds", ",", "0", ",", "lineEnds", ".", "length", "-", "1", ")", ")", ";", "this", ".", "compilationResult", "=", "unitResult", ";", "}", "public", "String", "getKey", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "if", "(", "this", ".", "problem", "!=", "null", ")", "{", "buffer", ".", "append", "(", "this", ".", "problem", ")", ";", "}", "return", "String", ".", "valueOf", "(", "buffer", ")", ";", "}", "}", "</s>" ]
3,358
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CategorizedProblem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "CompilationResult", ";", "public", "class", "AbortMethod", "extends", "AbortType", "{", "private", "static", "final", "long", "serialVersionUID", "=", "-", "1480267398969840003L", ";", "public", "AbortMethod", "(", "CompilationResult", "compilationResult", ",", "CategorizedProblem", "problem", ")", "{", "super", "(", "compilationResult", ",", "problem", ")", ";", "}", "}", "</s>" ]
3,359
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CategorizedProblem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "IProblem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Messages", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "class", "DefaultProblem", "extends", "CategorizedProblem", "{", "private", "char", "[", "]", "fileName", ";", "private", "int", "id", ";", "private", "int", "startPosition", ";", "private", "int", "endPosition", ";", "private", "int", "line", ";", "public", "int", "column", ";", "private", "int", "severity", ";", "private", "String", "[", "]", "arguments", ";", "private", "String", "message", ";", "private", "static", "final", "String", "MARKER_TYPE_PROBLEM", "=", "\"\"", ";", "private", "static", "final", "String", "MARKER_TYPE_TASK", "=", "\"\"", ";", "public", "static", "final", "Object", "[", "]", "EMPTY_VALUES", "=", "{", "}", ";", "public", "DefaultProblem", "(", "char", "[", "]", "originatingFileName", ",", "String", "message", ",", "int", "id", ",", "String", "[", "]", "stringArguments", ",", "int", "severity", ",", "int", "startPosition", ",", "int", "endPosition", ",", "int", "line", ",", "int", "column", ")", "{", "this", ".", "fileName", "=", "originatingFileName", ";", "this", ".", "message", "=", "message", ";", "this", ".", "id", "=", "id", ";", "this", ".", "arguments", "=", "stringArguments", ";", "this", ".", "severity", "=", "severity", ";", "this", ".", "startPosition", "=", "startPosition", ";", "this", ".", "endPosition", "=", "endPosition", ";", "this", ".", "line", "=", "line", ";", "this", ".", "column", "=", "column", ";", "}", "public", "String", "errorReportSource", "(", "char", "[", "]", "unitSource", ")", "{", "if", "(", "(", "this", ".", "startPosition", ">", "this", ".", "endPosition", ")", "||", "(", "(", "this", ".", "startPosition", "<", "0", ")", "&&", "(", "this", ".", "endPosition", "<", "0", ")", ")", "||", "unitSource", ".", "length", "==", "0", ")", "return", "Messages", ".", "problem_noSourceInformation", ";", "StringBuffer", "errorBuffer", "=", "new", "StringBuffer", "(", ")", ";", "errorBuffer", ".", "append", "(", "'", "'", ")", ".", "append", "(", "Messages", ".", "bind", "(", "Messages", ".", "problem_atLine", ",", "String", ".", "valueOf", "(", "this", ".", "line", ")", ")", ")", ";", "errorBuffer", ".", "append", "(", "Util", ".", "LINE_SEPARATOR", ")", ";", "errorBuffer", ".", "append", "(", "'\\t'", ")", ";", "char", "c", ";", "final", "char", "SPACE", "=", "'", "'", ";", "final", "char", "MARK", "=", "'^'", ";", "final", "char", "TAB", "=", "'\\t'", ";", "int", "length", "=", "unitSource", ".", "length", ",", "begin", ",", "end", ";", "for", "(", "begin", "=", "this", ".", "startPosition", ">=", "length", "?", "length", "-", "1", ":", "this", ".", "startPosition", ";", "begin", ">", "0", ";", "begin", "--", ")", "{", "if", "(", "(", "c", "=", "unitSource", "[", "begin", "-", "1", "]", ")", "==", "'\\n'", "||", "c", "==", "'\\r'", ")", "break", ";", "}", "for", "(", "end", "=", "this", ".", "endPosition", ">=", "length", "?", "length", "-", "1", ":", "this", ".", "endPosition", ";", "end", "+", "1", "<", "length", ";", "end", "++", ")", "{", "if", "(", "(", "c", "=", "unitSource", "[", "end", "+", "1", "]", ")", "==", "'\\r'", "||", "c", "==", "'\\n'", ")", "break", ";", "}", "while", "(", "(", "c", "=", "unitSource", "[", "begin", "]", ")", "==", "'", "'", "||", "c", "==", "'\\t'", ")", "begin", "++", ";", "errorBuffer", ".", "append", "(", "unitSource", ",", "begin", ",", "end", "-", "begin", "+", "1", ")", ";", "errorBuffer", ".", "append", "(", "Util", ".", "LINE_SEPARATOR", ")", ".", "append", "(", "\"t\"", ")", ";", "for", "(", "int", "i", "=", "begin", ";", "i", "<", "this", ".", "startPosition", ";", "i", "++", ")", "{", "errorBuffer", ".", "append", "(", "(", "unitSource", "[", "i", "]", "==", "TAB", ")", "?", "TAB", ":", "SPACE", ")", ";", "}", "for", "(", "int", "i", "=", "this", ".", "startPosition", ";", "i", "<=", "(", "this", ".", "endPosition", ">=", "length", "?", "length", "-", "1", ":", "this", ".", "endPosition", ")", ";", "i", "++", ")", "{", "errorBuffer", ".", "append", "(", "MARK", ")", ";", "}", "return", "errorBuffer", ".", "toString", "(", ")", ";", "}", "public", "String", "[", "]", "getArguments", "(", ")", "{", "return", "this", ".", "arguments", ";", "}", "public", "int", "getCategoryID", "(", ")", "{", "return", "ProblemReporter", ".", "getProblemCategory", "(", "this", ".", "severity", ",", "this", ".", "id", ")", ";", "}", "public", "int", "getID", "(", ")", "{", "return", "this", ".", "id", ";", "}", "public", "String", "getInternalCategoryMessage", "(", ")", "{", "switch", "(", "getCategoryID", "(", ")", ")", "{", "case", "CAT_UNSPECIFIED", ":", "return", "\"unspecified\"", ";", "case", "CAT_BUILDPATH", ":", "return", "\"buildpath\"", ";", "case", "CAT_SYNTAX", ":", "return", "\"syntax\"", ";", "case", "CAT_IMPORT", ":", "return", "\"import\"", ";", "case", "CAT_TYPE", ":", "return", "\"type\"", ";", "case", "CAT_MEMBER", ":", "return", "\"member\"", ";", "case", "CAT_INTERNAL", ":", "return", "\"internal\"", ";", "case", "CAT_JAVADOC", ":", "return", "\"javadoc\"", ";", "case", "CAT_CODE_STYLE", ":", "return", "\"code", "style\"", ";", "case", "CAT_POTENTIAL_PROGRAMMING_PROBLEM", ":", "return", "\"\"", ";", "case", "CAT_NAME_SHADOWING_CONFLICT", ":", "return", "\"\"", ";", "case", "CAT_DEPRECATION", ":", "return", "\"deprecation\"", ";", "case", "CAT_UNNECESSARY_CODE", ":", "return", "\"\"", ";", "case", "CAT_UNCHECKED_RAW", ":", "return", "\"\"", ";", "case", "CAT_NLS", ":", "return", "\"nls\"", ";", "case", "CAT_RESTRICTION", ":", "return", "\"restriction\"", ";", "}", "return", "null", ";", "}", "public", "String", "getMarkerType", "(", ")", "{", "return", "this", ".", "id", "==", "IProblem", ".", "Task", "?", "MARKER_TYPE_TASK", ":", "MARKER_TYPE_PROBLEM", ";", "}", "public", "String", "getMessage", "(", ")", "{", "return", "this", ".", "message", ";", "}", "public", "char", "[", "]", "getOriginatingFileName", "(", ")", "{", "return", "this", ".", "fileName", ";", "}", "public", "int", "getSourceEnd", "(", ")", "{", "return", "this", ".", "endPosition", ";", "}", "public", "int", "getSourceColumnNumber", "(", ")", "{", "return", "this", ".", "column", ";", "}", "public", "int", "getSourceLineNumber", "(", ")", "{", "return", "this", ".", "line", ";", "}", "public", "int", "getSourceStart", "(", ")", "{", "return", "this", ".", "startPosition", ";", "}", "public", "boolean", "isError", "(", ")", "{", "return", "(", "this", ".", "severity", "&", "ProblemSeverities", ".", "Error", ")", "!=", "0", ";", "}", "public", "boolean", "isWarning", "(", ")", "{", "return", "(", "this", ".", "severity", "&", "ProblemSeverities", ".", "Error", ")", "==", "0", ";", "}", "public", "void", "setOriginatingFileName", "(", "char", "[", "]", "fileName", ")", "{", "this", ".", "fileName", "=", "fileName", ";", "}", "public", "void", "setSourceEnd", "(", "int", "sourceEnd", ")", "{", "this", ".", "endPosition", "=", "sourceEnd", ";", "}", "public", "void", "setSourceLineNumber", "(", "int", "lineNumber", ")", "{", "this", ".", "line", "=", "lineNumber", ";", "}", "public", "void", "setSourceStart", "(", "int", "sourceStart", ")", "{", "this", ".", "startPosition", "=", "sourceStart", ";", "}", "public", "String", "toString", "(", ")", "{", "String", "s", "=", "\"Pb(\"", "+", "(", "this", ".", "id", "&", "IProblem", ".", "IgnoreCategoriesMask", ")", "+", "\")", "\"", ";", "if", "(", "this", ".", "message", "!=", "null", ")", "{", "s", "+=", "this", ".", "message", ";", "}", "else", "{", "if", "(", "this", ".", "arguments", "!=", "null", ")", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "arguments", ".", "length", ";", "i", "++", ")", "s", "+=", "\"", "\"", "+", "this", ".", "arguments", "[", "i", "]", ";", "}", "return", "s", ";", "}", "}", "</s>" ]
3,360
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CategorizedProblem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "CompilationResult", ";", "public", "class", "AbortType", "extends", "AbortCompilationUnit", "{", "private", "static", "final", "long", "serialVersionUID", "=", "-", "5882417089349134385L", ";", "public", "AbortType", "(", "CompilationResult", "compilationResult", ",", "CategorizedProblem", "problem", ")", "{", "super", "(", "compilationResult", ",", "problem", ")", ";", "}", "}", "</s>" ]
3,361
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ";", "public", "interface", "ProblemSeverities", "{", "final", "int", "Ignore", "=", "256", ";", "final", "int", "Warning", "=", "0", ";", "final", "int", "Error", "=", "1", ";", "final", "int", "AbortCompilation", "=", "2", ";", "final", "int", "AbortCompilationUnit", "=", "4", ";", "final", "int", "AbortType", "=", "8", ";", "final", "int", "AbortMethod", "=", "16", ";", "final", "int", "Abort", "=", "30", ";", "final", "int", "Optional", "=", "32", ";", "final", "int", "SecondaryError", "=", "64", ";", "final", "int", "Fatal", "=", "128", ";", "}", "</s>" ]
3,362
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ";", "import", "java", ".", "util", ".", "Enumeration", ";", "import", "java", ".", "util", ".", "Locale", ";", "import", "java", ".", "util", ".", "MissingResourceException", ";", "import", "java", ".", "util", ".", "ResourceBundle", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "IProblem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "IProblemFactory", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "HashtableOfInt", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "class", "DefaultProblemFactory", "implements", "IProblemFactory", "{", "public", "HashtableOfInt", "messageTemplates", ";", "private", "Locale", "locale", ";", "private", "static", "HashtableOfInt", "DEFAULT_LOCALE_TEMPLATES", ";", "private", "final", "static", "char", "[", "]", "DOUBLE_QUOTES", "=", "\"''\"", ".", "toCharArray", "(", ")", ";", "private", "final", "static", "char", "[", "]", "SINGLE_QUOTE", "=", "\"'\"", ".", "toCharArray", "(", ")", ";", "private", "final", "static", "char", "[", "]", "FIRST_ARGUMENT", "=", "\"{0}\"", ".", "toCharArray", "(", ")", ";", "public", "DefaultProblemFactory", "(", ")", "{", "this", "(", "Locale", ".", "getDefault", "(", ")", ")", ";", "}", "public", "DefaultProblemFactory", "(", "Locale", "loc", ")", "{", "setLocale", "(", "loc", ")", ";", "}", "public", "CategorizedProblem", "createProblem", "(", "char", "[", "]", "originatingFileName", ",", "int", "problemId", ",", "String", "[", "]", "problemArguments", ",", "String", "[", "]", "messageArguments", ",", "int", "severity", ",", "int", "startPosition", ",", "int", "endPosition", ",", "int", "lineNumber", ",", "int", "columnNumber", ")", "{", "return", "new", "DefaultProblem", "(", "originatingFileName", ",", "this", ".", "getLocalizedMessage", "(", "problemId", ",", "messageArguments", ")", ",", "problemId", ",", "problemArguments", ",", "severity", ",", "startPosition", ",", "endPosition", ",", "lineNumber", ",", "columnNumber", ")", ";", "}", "public", "CategorizedProblem", "createProblem", "(", "char", "[", "]", "originatingFileName", ",", "int", "problemId", ",", "String", "[", "]", "problemArguments", ",", "int", "elaborationId", ",", "String", "[", "]", "messageArguments", ",", "int", "severity", ",", "int", "startPosition", ",", "int", "endPosition", ",", "int", "lineNumber", ",", "int", "columnNumber", ")", "{", "return", "new", "DefaultProblem", "(", "originatingFileName", ",", "this", ".", "getLocalizedMessage", "(", "problemId", ",", "elaborationId", ",", "messageArguments", ")", ",", "problemId", ",", "problemArguments", ",", "severity", ",", "startPosition", ",", "endPosition", ",", "lineNumber", ",", "columnNumber", ")", ";", "}", "private", "final", "static", "int", "keyFromID", "(", "int", "id", ")", "{", "return", "id", "+", "1", ";", "}", "public", "Locale", "getLocale", "(", ")", "{", "return", "this", ".", "locale", ";", "}", "public", "void", "setLocale", "(", "Locale", "locale", ")", "{", "if", "(", "locale", "==", "this", ".", "locale", ")", "return", ";", "this", ".", "locale", "=", "locale", ";", "if", "(", "Locale", ".", "getDefault", "(", ")", ".", "equals", "(", "locale", ")", ")", "{", "if", "(", "DEFAULT_LOCALE_TEMPLATES", "==", "null", ")", "{", "DEFAULT_LOCALE_TEMPLATES", "=", "loadMessageTemplates", "(", "locale", ")", ";", "}", "this", ".", "messageTemplates", "=", "DEFAULT_LOCALE_TEMPLATES", ";", "}", "else", "{", "this", ".", "messageTemplates", "=", "loadMessageTemplates", "(", "locale", ")", ";", "}", "}", "public", "final", "String", "getLocalizedMessage", "(", "int", "id", ",", "String", "[", "]", "problemArguments", ")", "{", "return", "getLocalizedMessage", "(", "id", ",", "0", ",", "problemArguments", ")", ";", "}", "public", "final", "String", "getLocalizedMessage", "(", "int", "id", ",", "int", "elaborationId", ",", "String", "[", "]", "problemArguments", ")", "{", "String", "rawMessage", "=", "(", "String", ")", "this", ".", "messageTemplates", ".", "get", "(", "keyFromID", "(", "id", "&", "IProblem", ".", "IgnoreCategoriesMask", ")", ")", ";", "if", "(", "rawMessage", "==", "null", ")", "{", "return", "\"\"", "+", "(", "id", "&", "IProblem", ".", "IgnoreCategoriesMask", ")", "+", "\"\"", ";", "}", "char", "[", "]", "message", "=", "rawMessage", ".", "toCharArray", "(", ")", ";", "if", "(", "elaborationId", "!=", "0", ")", "{", "String", "elaboration", "=", "(", "String", ")", "this", ".", "messageTemplates", ".", "get", "(", "keyFromID", "(", "elaborationId", ")", ")", ";", "if", "(", "elaboration", "==", "null", ")", "{", "return", "\"\"", "+", "elaborationId", "+", "\"\"", ";", "}", "message", "=", "CharOperation", ".", "replace", "(", "message", ",", "FIRST_ARGUMENT", ",", "elaboration", ".", "toCharArray", "(", ")", ")", ";", "}", "message", "=", "CharOperation", ".", "replace", "(", "message", ",", "DOUBLE_QUOTES", ",", "SINGLE_QUOTE", ")", ";", "if", "(", "problemArguments", "==", "null", ")", "{", "return", "new", "String", "(", "message", ")", ";", "}", "int", "length", "=", "message", ".", "length", ";", "int", "start", "=", "0", ";", "int", "end", "=", "length", ";", "StringBuffer", "output", "=", "null", ";", "if", "(", "(", "id", "&", "IProblem", ".", "Javadoc", ")", "!=", "0", ")", "{", "output", "=", "new", "StringBuffer", "(", "10", "+", "length", "+", "problemArguments", ".", "length", "*", "20", ")", ";", "output", ".", "append", "(", "(", "String", ")", "this", ".", "messageTemplates", ".", "get", "(", "keyFromID", "(", "IProblem", ".", "JavadocMessagePrefix", "&", "IProblem", ".", "IgnoreCategoriesMask", ")", ")", ")", ";", "}", "while", "(", "true", ")", "{", "if", "(", "(", "end", "=", "CharOperation", ".", "indexOf", "(", "'{'", ",", "message", ",", "start", ")", ")", ">", "-", "1", ")", "{", "if", "(", "output", "==", "null", ")", "output", "=", "new", "StringBuffer", "(", "length", "+", "problemArguments", ".", "length", "*", "20", ")", ";", "output", ".", "append", "(", "message", ",", "start", ",", "end", "-", "start", ")", ";", "if", "(", "(", "start", "=", "CharOperation", ".", "indexOf", "(", "'}'", ",", "message", ",", "end", "+", "1", ")", ")", ">", "-", "1", ")", "{", "try", "{", "output", ".", "append", "(", "problemArguments", "[", "CharOperation", ".", "parseInt", "(", "message", ",", "end", "+", "1", ",", "start", "-", "end", "-", "1", ")", "]", ")", ";", "}", "catch", "(", "NumberFormatException", "nfe", ")", "{", "output", ".", "append", "(", "message", ",", "end", "+", "1", ",", "start", "-", "end", ")", ";", "}", "catch", "(", "ArrayIndexOutOfBoundsException", "e", ")", "{", "return", "\"\"", "+", "(", "id", "&", "IProblem", ".", "IgnoreCategoriesMask", ")", "+", "\")", "\\\"\"", "+", "new", "String", "(", "message", ")", "+", "\"\"", "+", "Util", ".", "toString", "(", "problemArguments", ")", "+", "\"}\"", ";", "}", "start", "++", ";", "}", "else", "{", "output", ".", "append", "(", "message", ",", "end", ",", "length", ")", ";", "break", ";", "}", "}", "else", "{", "if", "(", "output", "==", "null", ")", "{", "return", "new", "String", "(", "message", ")", ";", "}", "output", ".", "append", "(", "message", ",", "start", ",", "length", "-", "start", ")", ";", "break", ";", "}", "}", "return", "new", "String", "(", "output", ".", "toString", "(", ")", ")", ";", "}", "public", "final", "String", "localizedMessage", "(", "CategorizedProblem", "problem", ")", "{", "return", "getLocalizedMessage", "(", "problem", ".", "getID", "(", ")", ",", "problem", ".", "getArguments", "(", ")", ")", ";", "}", "public", "static", "HashtableOfInt", "loadMessageTemplates", "(", "Locale", "loc", ")", "{", "ResourceBundle", "bundle", "=", "null", ";", "String", "bundleName", "=", "\"\"", ";", "try", "{", "bundle", "=", "ResourceBundle", ".", "getBundle", "(", "bundleName", ",", "loc", ")", ";", "}", "catch", "(", "MissingResourceException", "e", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", "+", "bundleName", ".", "replace", "(", "'.'", ",", "'/'", ")", "+", "\"\"", "+", "loc", ")", ";", "throw", "e", ";", "}", "HashtableOfInt", "templates", "=", "new", "HashtableOfInt", "(", "700", ")", ";", "Enumeration", "keys", "=", "bundle", ".", "getKeys", "(", ")", ";", "while", "(", "keys", ".", "hasMoreElements", "(", ")", ")", "{", "String", "key", "=", "(", "String", ")", "keys", ".", "nextElement", "(", ")", ";", "try", "{", "int", "messageID", "=", "Integer", ".", "parseInt", "(", "key", ")", ";", "templates", ".", "put", "(", "keyFromID", "(", "messageID", ")", ",", "bundle", ".", "getString", "(", "key", ")", ")", ";", "}", "catch", "(", "NumberFormatException", "e", ")", "{", "}", "catch", "(", "MissingResourceException", "e", ")", "{", "}", "}", "return", "templates", ";", "}", "}", "</s>" ]
3,363
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CategorizedProblem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "IProblem", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "CompilationResult", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "IErrorHandlingPolicy", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "IProblemFactory", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "CompilationUnitDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ".", "ICompilationUnit", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "CompilerOptions", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "ReferenceContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "core", ".", "builder", ".", "SourceFile", ";", "public", "class", "ProblemHandler", "{", "public", "final", "static", "String", "[", "]", "NoArgument", "=", "CharOperation", ".", "NO_STRINGS", ";", "final", "public", "IErrorHandlingPolicy", "policy", ";", "public", "final", "IProblemFactory", "problemFactory", ";", "public", "final", "CompilerOptions", "options", ";", "public", "ProblemHandler", "(", "IErrorHandlingPolicy", "policy", ",", "CompilerOptions", "options", ",", "IProblemFactory", "problemFactory", ")", "{", "this", ".", "policy", "=", "policy", ";", "this", ".", "problemFactory", "=", "problemFactory", ";", "this", ".", "options", "=", "options", ";", "}", "public", "int", "computeSeverity", "(", "int", "problemId", ")", "{", "return", "ProblemSeverities", ".", "Error", ";", "}", "public", "CategorizedProblem", "createProblem", "(", "char", "[", "]", "fileName", ",", "int", "problemId", ",", "String", "[", "]", "problemArguments", ",", "String", "[", "]", "messageArguments", ",", "int", "severity", ",", "int", "problemStartPosition", ",", "int", "problemEndPosition", ",", "int", "lineNumber", ",", "int", "columnNumber", ")", "{", "return", "this", ".", "problemFactory", ".", "createProblem", "(", "fileName", ",", "problemId", ",", "problemArguments", ",", "messageArguments", ",", "severity", ",", "problemStartPosition", ",", "problemEndPosition", ",", "lineNumber", ",", "columnNumber", ")", ";", "}", "public", "CategorizedProblem", "createProblem", "(", "char", "[", "]", "fileName", ",", "int", "problemId", ",", "String", "[", "]", "problemArguments", ",", "int", "elaborationId", ",", "String", "[", "]", "messageArguments", ",", "int", "severity", ",", "int", "problemStartPosition", ",", "int", "problemEndPosition", ",", "int", "lineNumber", ",", "int", "columnNumber", ")", "{", "return", "this", ".", "problemFactory", ".", "createProblem", "(", "fileName", ",", "problemId", ",", "problemArguments", ",", "elaborationId", ",", "messageArguments", ",", "severity", ",", "problemStartPosition", ",", "problemEndPosition", ",", "lineNumber", ",", "columnNumber", ")", ";", "}", "public", "void", "handle", "(", "int", "problemId", ",", "String", "[", "]", "problemArguments", ",", "int", "elaborationId", ",", "String", "[", "]", "messageArguments", ",", "int", "severity", ",", "int", "problemStartPosition", ",", "int", "problemEndPosition", ",", "ReferenceContext", "referenceContext", ",", "CompilationResult", "unitResult", ")", "{", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "(", "severity", "&", "ProblemSeverities", ".", "Optional", ")", "!=", "0", "&&", "problemId", "!=", "IProblem", ".", "Task", "&&", "!", "this", ".", "options", ".", "ignoreSourceFolderWarningOption", ")", "{", "ICompilationUnit", "cu", "=", "unitResult", ".", "getCompilationUnit", "(", ")", ";", "try", "{", "if", "(", "cu", "!=", "null", "&&", "cu", ".", "ignoreOptionalProblems", "(", ")", ")", "return", ";", "}", "catch", "(", "AbstractMethodError", "ex", ")", "{", "}", "}", "if", "(", "referenceContext", "==", "null", ")", "{", "if", "(", "(", "severity", "&", "ProblemSeverities", ".", "Error", ")", "!=", "0", ")", "{", "CategorizedProblem", "problem", "=", "this", ".", "createProblem", "(", "null", ",", "problemId", ",", "problemArguments", ",", "elaborationId", ",", "messageArguments", ",", "severity", ",", "0", ",", "0", ",", "0", ",", "0", ")", ";", "throw", "new", "AbortCompilation", "(", "null", ",", "problem", ")", ";", "}", "else", "{", "return", ";", "}", "}", "int", "[", "]", "lineEnds", ";", "int", "lineNumber", "=", "problemStartPosition", ">=", "0", "?", "Util", ".", "getLineNumber", "(", "problemStartPosition", ",", "lineEnds", "=", "unitResult", ".", "getLineSeparatorPositions", "(", ")", ",", "0", ",", "lineEnds", ".", "length", "-", "1", ")", ":", "0", ";", "int", "columnNumber", "=", "problemStartPosition", ">=", "0", "?", "Util", ".", "searchColumnNumber", "(", "unitResult", ".", "getLineSeparatorPositions", "(", ")", ",", "lineNumber", ",", "problemStartPosition", ")", ":", "0", ";", "CategorizedProblem", "problem", "=", "this", ".", "createProblem", "(", "unitResult", ".", "getFileName", "(", ")", ",", "problemId", ",", "problemArguments", ",", "elaborationId", ",", "messageArguments", ",", "severity", ",", "problemStartPosition", ",", "problemEndPosition", ",", "lineNumber", ",", "columnNumber", ")", ";", "if", "(", "problem", "==", "null", ")", "return", ";", "switch", "(", "severity", "&", "ProblemSeverities", ".", "Error", ")", "{", "case", "ProblemSeverities", ".", "Error", ":", "boolean", "mandatory", "=", "(", "(", "severity", "&", "ProblemSeverities", ".", "Optional", ")", "==", "0", ")", ";", "record", "(", "problem", ",", "unitResult", ",", "referenceContext", ",", "mandatory", ")", ";", "if", "(", "(", "severity", "&", "ProblemSeverities", ".", "Fatal", ")", "!=", "0", ")", "{", "if", "(", "!", "referenceContext", ".", "hasErrors", "(", ")", "&&", "!", "mandatory", "&&", "this", ".", "options", ".", "suppressOptionalErrors", ")", "{", "CompilationUnitDeclaration", "unitDecl", "=", "referenceContext", ".", "getCompilationUnitDeclaration", "(", ")", ";", "if", "(", "unitDecl", "!=", "null", "&&", "unitDecl", ".", "isSuppressed", "(", "problem", ")", ")", "{", "return", ";", "}", "}", "referenceContext", ".", "tagAsHavingErrors", "(", ")", ";", "int", "abortLevel", ";", "if", "(", "(", "abortLevel", "=", "this", ".", "policy", ".", "stopOnFirstError", "(", ")", "?", "ProblemSeverities", ".", "AbortCompilation", ":", "severity", "&", "ProblemSeverities", ".", "Abort", ")", "!=", "0", ")", "{", "referenceContext", ".", "abort", "(", "abortLevel", ",", "problem", ")", ";", "}", "}", "break", ";", "case", "ProblemSeverities", ".", "Warning", ":", "if", "(", "(", "this", ".", "options", ".", "groovyFlags", "&", "0x01", ")", "!=", "0", ")", "{", "if", "(", "(", "unitResult", ".", "compilationUnit", "instanceof", "SourceFile", ")", "&&", "(", "(", "SourceFile", ")", "unitResult", ".", "compilationUnit", ")", ".", "isInLinkedSourceFolder", "(", ")", ")", "{", "return", ";", "}", "}", "record", "(", "problem", ",", "unitResult", ",", "referenceContext", ",", "false", ")", ";", "break", ";", "}", "}", "public", "void", "handle", "(", "int", "problemId", ",", "String", "[", "]", "problemArguments", ",", "String", "[", "]", "messageArguments", ",", "int", "problemStartPosition", ",", "int", "problemEndPosition", ",", "ReferenceContext", "referenceContext", ",", "CompilationResult", "unitResult", ")", "{", "this", ".", "handle", "(", "problemId", ",", "problemArguments", ",", "0", ",", "messageArguments", ",", "computeSeverity", "(", "problemId", ")", ",", "problemStartPosition", ",", "problemEndPosition", ",", "referenceContext", ",", "unitResult", ")", ";", "}", "public", "void", "record", "(", "CategorizedProblem", "problem", ",", "CompilationResult", "unitResult", ",", "ReferenceContext", "referenceContext", ",", "boolean", "optionalError", ")", "{", "unitResult", ".", "record", "(", "problem", ",", "referenceContext", ",", "optionalError", ")", ";", "}", "}", "</s>" ]
3,364
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ";", "public", "interface", "ICompilerRequestor", "{", "public", "void", "acceptResult", "(", "CompilationResult", "result", ")", ";", "}", "</s>" ]
3,365
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "public", "interface", "IBinaryType", "extends", "IGenericType", "{", "char", "[", "]", "[", "]", "NoInterface", "=", "CharOperation", ".", "NO_CHAR_CHAR", ";", "IBinaryNestedType", "[", "]", "NoNestedType", "=", "new", "IBinaryNestedType", "[", "0", "]", ";", "IBinaryField", "[", "]", "NoField", "=", "new", "IBinaryField", "[", "0", "]", ";", "IBinaryMethod", "[", "]", "NoMethod", "=", "new", "IBinaryMethod", "[", "0", "]", ";", "IBinaryAnnotation", "[", "]", "getAnnotations", "(", ")", ";", "char", "[", "]", "getEnclosingMethod", "(", ")", ";", "char", "[", "]", "getEnclosingTypeName", "(", ")", ";", "IBinaryField", "[", "]", "getFields", "(", ")", ";", "char", "[", "]", "getGenericSignature", "(", ")", ";", "char", "[", "]", "[", "]", "getInterfaceNames", "(", ")", ";", "IBinaryNestedType", "[", "]", "getMemberTypes", "(", ")", ";", "IBinaryMethod", "[", "]", "getMethods", "(", ")", ";", "char", "[", "]", "[", "]", "[", "]", "getMissingTypeNames", "(", ")", ";", "char", "[", "]", "getName", "(", ")", ";", "char", "[", "]", "getSourceName", "(", ")", ";", "char", "[", "]", "getSuperclassName", "(", ")", ";", "long", "getTagBits", "(", ")", ";", "boolean", "isAnonymous", "(", ")", ";", "boolean", "isLocal", "(", ")", ";", "boolean", "isMember", "(", ")", ";", "char", "[", "]", "sourceFileName", "(", ")", ";", "}", "</s>" ]
3,366
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "public", "interface", "ISourceField", "extends", "IGenericField", "{", "int", "getDeclarationSourceEnd", "(", ")", ";", "int", "getDeclarationSourceStart", "(", ")", ";", "char", "[", "]", "getInitializationSource", "(", ")", ";", "int", "getNameSourceEnd", "(", ")", ";", "int", "getNameSourceStart", "(", ")", ";", "char", "[", "]", "getTypeName", "(", ")", ";", "}", "</s>" ]
3,367
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "public", "interface", "IBinaryNestedType", "{", "char", "[", "]", "getEnclosingTypeName", "(", ")", ";", "int", "getModifiers", "(", ")", ";", "char", "[", "]", "getName", "(", ")", ";", "}", "</s>" ]
3,368
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "public", "interface", "INameEnvironment", "{", "NameEnvironmentAnswer", "findType", "(", "char", "[", "]", "[", "]", "compoundTypeName", ")", ";", "NameEnvironmentAnswer", "findType", "(", "char", "[", "]", "typeName", ",", "char", "[", "]", "[", "]", "packageName", ")", ";", "boolean", "isPackage", "(", "char", "[", "]", "[", "]", "parentPackageName", ",", "char", "[", "]", "packageName", ")", ";", "void", "cleanup", "(", ")", ";", "}", "</s>" ]
3,369
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "public", "interface", "IGenericField", "{", "int", "getModifiers", "(", ")", ";", "}", "</s>" ]
3,370
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "public", "interface", "ICompilationUnit", "extends", "IDependent", "{", "char", "[", "]", "getContents", "(", ")", ";", "char", "[", "]", "getMainTypeName", "(", ")", ";", "char", "[", "]", "[", "]", "getPackageName", "(", ")", ";", "boolean", "ignoreOptionalProblems", "(", ")", ";", "}", "</s>" ]
3,371
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "public", "interface", "IBinaryElementValuePair", "{", "char", "[", "]", "getName", "(", ")", ";", "Object", "getValue", "(", ")", ";", "}", "</s>" ]
3,372
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "IProblem", ";", "public", "class", "AccessRuleSet", "{", "private", "AccessRule", "[", "]", "accessRules", ";", "public", "byte", "classpathEntryType", ";", "public", "String", "classpathEntryName", ";", "public", "AccessRuleSet", "(", "AccessRule", "[", "]", "accessRules", ",", "byte", "classpathEntryType", ",", "String", "classpathEntryName", ")", "{", "this", ".", "accessRules", "=", "accessRules", ";", "this", ".", "classpathEntryType", "=", "classpathEntryType", ";", "this", ".", "classpathEntryName", "=", "classpathEntryName", ";", "}", "public", "boolean", "equals", "(", "Object", "object", ")", "{", "if", "(", "this", "==", "object", ")", "return", "true", ";", "if", "(", "!", "(", "object", "instanceof", "AccessRuleSet", ")", ")", "return", "false", ";", "AccessRuleSet", "otherRuleSet", "=", "(", "AccessRuleSet", ")", "object", ";", "if", "(", "this", ".", "classpathEntryType", "!=", "otherRuleSet", ".", "classpathEntryType", "||", "this", ".", "classpathEntryName", "==", "null", "&&", "otherRuleSet", ".", "classpathEntryName", "!=", "null", "||", "!", "this", ".", "classpathEntryName", ".", "equals", "(", "otherRuleSet", ".", "classpathEntryName", ")", ")", "{", "return", "false", ";", "}", "int", "rulesLength", "=", "this", ".", "accessRules", ".", "length", ";", "if", "(", "rulesLength", "!=", "otherRuleSet", ".", "accessRules", ".", "length", ")", "return", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "rulesLength", ";", "i", "++", ")", "if", "(", "!", "this", ".", "accessRules", "[", "i", "]", ".", "equals", "(", "otherRuleSet", ".", "accessRules", "[", "i", "]", ")", ")", "return", "false", ";", "return", "true", ";", "}", "public", "AccessRule", "[", "]", "getAccessRules", "(", ")", "{", "return", "this", ".", "accessRules", ";", "}", "public", "AccessRestriction", "getViolatedRestriction", "(", "char", "[", "]", "targetTypeFilePath", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "accessRules", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "AccessRule", "accessRule", "=", "this", ".", "accessRules", "[", "i", "]", ";", "if", "(", "CharOperation", ".", "pathMatch", "(", "accessRule", ".", "pattern", ",", "targetTypeFilePath", ",", "true", ",", "'/'", ")", ")", "{", "switch", "(", "accessRule", ".", "getProblemId", "(", ")", ")", "{", "case", "IProblem", ".", "ForbiddenReference", ":", "case", "IProblem", ".", "DiscouragedReference", ":", "return", "new", "AccessRestriction", "(", "accessRule", ",", "this", ".", "classpathEntryType", ",", "this", ".", "classpathEntryName", ")", ";", "default", ":", "return", "null", ";", "}", "}", "}", "return", "null", ";", "}", "public", "int", "hashCode", "(", ")", "{", "final", "int", "prime", "=", "31", ";", "int", "result", "=", "1", ";", "result", "=", "prime", "*", "result", "+", "hashCode", "(", "this", ".", "accessRules", ")", ";", "result", "=", "prime", "*", "result", "+", "(", "(", "this", ".", "classpathEntryName", "==", "null", ")", "?", "0", ":", "this", ".", "classpathEntryName", ".", "hashCode", "(", ")", ")", ";", "result", "=", "prime", "*", "result", "+", "this", ".", "classpathEntryType", ";", "return", "result", ";", "}", "private", "int", "hashCode", "(", "AccessRule", "[", "]", "rules", ")", "{", "final", "int", "prime", "=", "31", ";", "if", "(", "rules", "==", "null", ")", "return", "0", ";", "int", "result", "=", "1", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "rules", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "result", "=", "prime", "*", "result", "+", "(", "rules", "[", "i", "]", "==", "null", "?", "0", ":", "rules", "[", "i", "]", ".", "hashCode", "(", ")", ")", ";", "}", "return", "result", ";", "}", "public", "String", "toString", "(", ")", "{", "return", "toString", "(", "true", ")", ";", "}", "public", "String", "toString", "(", "boolean", "wrap", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "200", ")", ";", "buffer", ".", "append", "(", "\"\"", ")", ";", "if", "(", "wrap", ")", "buffer", ".", "append", "(", "'\\n'", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "accessRules", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "wrap", ")", "buffer", ".", "append", "(", "'\\t'", ")", ";", "AccessRule", "accessRule", "=", "this", ".", "accessRules", "[", "i", "]", ";", "buffer", ".", "append", "(", "accessRule", ")", ";", "if", "(", "wrap", ")", "buffer", ".", "append", "(", "'\\n'", ")", ";", "else", "if", "(", "i", "<", "length", "-", "1", ")", "buffer", ".", "append", "(", "\",", "\"", ")", ";", "}", "buffer", ".", "append", "(", "\"\"", ")", ";", "buffer", ".", "append", "(", "this", ".", "classpathEntryName", ")", ";", "buffer", ".", "append", "(", "\"]\"", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
3,373
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "public", "interface", "ISourceImport", "{", "int", "getDeclarationSourceEnd", "(", ")", ";", "int", "getDeclarationSourceStart", "(", ")", ";", "int", "getModifiers", "(", ")", ";", "}", "</s>" ]
3,374
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "public", "class", "NameEnvironmentAnswer", "{", "IBinaryType", "binaryType", ";", "ICompilationUnit", "compilationUnit", ";", "ISourceType", "[", "]", "sourceTypes", ";", "AccessRestriction", "accessRestriction", ";", "public", "NameEnvironmentAnswer", "(", "IBinaryType", "binaryType", ",", "AccessRestriction", "accessRestriction", ")", "{", "this", ".", "binaryType", "=", "binaryType", ";", "this", ".", "accessRestriction", "=", "accessRestriction", ";", "}", "public", "NameEnvironmentAnswer", "(", "ICompilationUnit", "compilationUnit", ",", "AccessRestriction", "accessRestriction", ")", "{", "this", ".", "compilationUnit", "=", "compilationUnit", ";", "this", ".", "accessRestriction", "=", "accessRestriction", ";", "}", "public", "NameEnvironmentAnswer", "(", "ISourceType", "[", "]", "sourceTypes", ",", "AccessRestriction", "accessRestriction", ")", "{", "this", ".", "sourceTypes", "=", "sourceTypes", ";", "this", ".", "accessRestriction", "=", "accessRestriction", ";", "}", "public", "AccessRestriction", "getAccessRestriction", "(", ")", "{", "return", "this", ".", "accessRestriction", ";", "}", "public", "IBinaryType", "getBinaryType", "(", ")", "{", "return", "this", ".", "binaryType", ";", "}", "public", "ICompilationUnit", "getCompilationUnit", "(", ")", "{", "return", "this", ".", "compilationUnit", ";", "}", "public", "ISourceType", "[", "]", "getSourceTypes", "(", ")", "{", "return", "this", ".", "sourceTypes", ";", "}", "public", "boolean", "isBinaryType", "(", ")", "{", "return", "this", ".", "binaryType", "!=", "null", ";", "}", "public", "boolean", "isCompilationUnit", "(", ")", "{", "return", "this", ".", "compilationUnit", "!=", "null", ";", "}", "public", "boolean", "isSourceType", "(", ")", "{", "return", "this", ".", "sourceTypes", "!=", "null", ";", "}", "public", "boolean", "ignoreIfBetter", "(", ")", "{", "return", "this", ".", "accessRestriction", "!=", "null", "&&", "this", ".", "accessRestriction", ".", "ignoreIfBetter", "(", ")", ";", "}", "public", "boolean", "isBetter", "(", "NameEnvironmentAnswer", "otherAnswer", ")", "{", "if", "(", "otherAnswer", "==", "null", ")", "return", "true", ";", "if", "(", "this", ".", "accessRestriction", "==", "null", ")", "return", "true", ";", "return", "otherAnswer", ".", "accessRestriction", "!=", "null", "&&", "this", ".", "accessRestriction", ".", "getProblemId", "(", ")", "<", "otherAnswer", ".", "accessRestriction", ".", "getProblemId", "(", ")", ";", "}", "}", "</s>" ]
3,375
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "public", "class", "AccessRestriction", "{", "private", "AccessRule", "accessRule", ";", "public", "byte", "classpathEntryType", ";", "public", "static", "final", "byte", "COMMAND_LINE", "=", "0", ",", "PROJECT", "=", "1", ",", "LIBRARY", "=", "2", ";", "public", "String", "classpathEntryName", ";", "public", "AccessRestriction", "(", "AccessRule", "accessRule", ",", "byte", "classpathEntryType", ",", "String", "classpathEntryName", ")", "{", "this", ".", "accessRule", "=", "accessRule", ";", "this", ".", "classpathEntryName", "=", "classpathEntryName", ";", "this", ".", "classpathEntryType", "=", "classpathEntryType", ";", "}", "public", "int", "getProblemId", "(", ")", "{", "return", "this", ".", "accessRule", ".", "getProblemId", "(", ")", ";", "}", "public", "boolean", "ignoreIfBetter", "(", ")", "{", "return", "this", ".", "accessRule", ".", "ignoreIfBetter", "(", ")", ";", "}", "}", "</s>" ]
3,376
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "public", "interface", "IGenericMethod", "{", "int", "getModifiers", "(", ")", ";", "boolean", "isConstructor", "(", ")", ";", "char", "[", "]", "[", "]", "getArgumentNames", "(", ")", ";", "}", "</s>" ]
3,377
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "public", "interface", "ISourceType", "extends", "IGenericType", "{", "int", "getDeclarationSourceEnd", "(", ")", ";", "int", "getDeclarationSourceStart", "(", ")", ";", "ISourceType", "getEnclosingType", "(", ")", ";", "ISourceField", "[", "]", "getFields", "(", ")", ";", "char", "[", "]", "[", "]", "getInterfaceNames", "(", ")", ";", "ISourceType", "[", "]", "getMemberTypes", "(", ")", ";", "ISourceMethod", "[", "]", "getMethods", "(", ")", ";", "char", "[", "]", "getName", "(", ")", ";", "int", "getNameSourceEnd", "(", ")", ";", "int", "getNameSourceStart", "(", ")", ";", "char", "[", "]", "getSuperclassName", "(", ")", ";", "char", "[", "]", "[", "]", "[", "]", "getTypeParameterBounds", "(", ")", ";", "char", "[", "]", "[", "]", "getTypeParameterNames", "(", ")", ";", "}", "</s>" ]
3,378
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "import", "java", ".", "util", ".", "Arrays", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "public", "class", "ClassSignature", "{", "char", "[", "]", "className", ";", "public", "ClassSignature", "(", "final", "char", "[", "]", "className", ")", "{", "this", ".", "className", "=", "className", ";", "}", "public", "char", "[", "]", "getTypeName", "(", ")", "{", "return", "this", ".", "className", ";", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "buffer", ".", "append", "(", "this", ".", "className", ")", ";", "buffer", ".", "append", "(", "\".class\"", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}", "public", "int", "hashCode", "(", ")", "{", "final", "int", "prime", "=", "31", ";", "int", "result", "=", "1", ";", "result", "=", "prime", "*", "result", "+", "CharOperation", ".", "hashCode", "(", "this", ".", "className", ")", ";", "return", "result", ";", "}", "public", "boolean", "equals", "(", "Object", "obj", ")", "{", "if", "(", "this", "==", "obj", ")", "{", "return", "true", ";", "}", "if", "(", "obj", "==", "null", ")", "{", "return", "false", ";", "}", "if", "(", "getClass", "(", ")", "!=", "obj", ".", "getClass", "(", ")", ")", "{", "return", "false", ";", "}", "ClassSignature", "other", "=", "(", "ClassSignature", ")", "obj", ";", "return", "Arrays", ".", "equals", "(", "this", ".", "className", ",", "other", ".", "className", ")", ";", "}", "}", "</s>" ]
3,379
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "public", "interface", "IBinaryMethod", "extends", "IGenericMethod", "{", "IBinaryAnnotation", "[", "]", "getAnnotations", "(", ")", ";", "Object", "getDefaultValue", "(", ")", ";", "char", "[", "]", "[", "]", "getExceptionTypeNames", "(", ")", ";", "char", "[", "]", "getGenericSignature", "(", ")", ";", "char", "[", "]", "getMethodDescriptor", "(", ")", ";", "IBinaryAnnotation", "[", "]", "getParameterAnnotations", "(", "int", "index", ")", ";", "int", "getAnnotatedParametersCount", "(", ")", ";", "char", "[", "]", "getSelector", "(", ")", ";", "long", "getTagBits", "(", ")", ";", "boolean", "isClinit", "(", ")", ";", "}", "</s>" ]
3,380
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "public", "interface", "IBinaryField", "extends", "IGenericField", "{", "IBinaryAnnotation", "[", "]", "getAnnotations", "(", ")", ";", "Constant", "getConstant", "(", ")", ";", "char", "[", "]", "getGenericSignature", "(", ")", ";", "char", "[", "]", "getName", "(", ")", ";", "long", "getTagBits", "(", ")", ";", "char", "[", "]", "getTypeName", "(", ")", ";", "}", "</s>" ]
3,381
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "IProblem", ";", "public", "class", "AccessRule", "{", "public", "static", "final", "int", "IgnoreIfBetter", "=", "0x02000000", ";", "public", "char", "[", "]", "pattern", ";", "public", "int", "problemId", ";", "public", "AccessRule", "(", "char", "[", "]", "pattern", ",", "int", "problemId", ")", "{", "this", "(", "pattern", ",", "problemId", ",", "false", ")", ";", "}", "public", "AccessRule", "(", "char", "[", "]", "pattern", ",", "int", "problemId", ",", "boolean", "keepLooking", ")", "{", "this", ".", "pattern", "=", "pattern", ";", "this", ".", "problemId", "=", "keepLooking", "?", "problemId", "|", "IgnoreIfBetter", ":", "problemId", ";", "}", "public", "int", "hashCode", "(", ")", "{", "return", "this", ".", "problemId", "*", "17", "+", "CharOperation", ".", "hashCode", "(", "this", ".", "pattern", ")", ";", "}", "public", "boolean", "equals", "(", "Object", "obj", ")", "{", "if", "(", "!", "(", "obj", "instanceof", "AccessRule", ")", ")", "return", "false", ";", "AccessRule", "other", "=", "(", "AccessRule", ")", "obj", ";", "if", "(", "this", ".", "problemId", "!=", "other", ".", "problemId", ")", "return", "false", ";", "return", "CharOperation", ".", "equals", "(", "this", ".", "pattern", ",", "other", ".", "pattern", ")", ";", "}", "public", "int", "getProblemId", "(", ")", "{", "return", "this", ".", "problemId", "&", "~", "IgnoreIfBetter", ";", "}", "public", "boolean", "ignoreIfBetter", "(", ")", "{", "return", "(", "this", ".", "problemId", "&", "IgnoreIfBetter", ")", "!=", "0", ";", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "buffer", ".", "append", "(", "\"pattern=\"", ")", ";", "buffer", ".", "append", "(", "this", ".", "pattern", ")", ";", "switch", "(", "getProblemId", "(", ")", ")", "{", "case", "IProblem", ".", "ForbiddenReference", ":", "buffer", ".", "append", "(", "\"\"", ")", ";", "break", ";", "case", "IProblem", ".", "DiscouragedReference", ":", "buffer", ".", "append", "(", "\"\"", ")", ";", "break", ";", "default", ":", "buffer", ".", "append", "(", "\"", "(ACCESSIBLE\"", ")", ";", "break", ";", "}", "if", "(", "ignoreIfBetter", "(", ")", ")", "buffer", ".", "append", "(", "\"\"", ")", ";", "buffer", ".", "append", "(", "')'", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
3,382
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "public", "interface", "IDependent", "{", "char", "JAR_FILE_ENTRY_SEPARATOR", "=", "'|'", ";", "char", "[", "]", "getFileName", "(", ")", ";", "}", "</s>" ]
3,383
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "public", "interface", "IGenericType", "extends", "IDependent", "{", "int", "getModifiers", "(", ")", ";", "boolean", "isBinaryType", "(", ")", ";", "}", "</s>" ]
3,384
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "public", "interface", "ISourceMethod", "extends", "IGenericMethod", "{", "int", "getDeclarationSourceEnd", "(", ")", ";", "int", "getDeclarationSourceStart", "(", ")", ";", "char", "[", "]", "[", "]", "getExceptionTypeNames", "(", ")", ";", "int", "getNameSourceEnd", "(", ")", ";", "int", "getNameSourceStart", "(", ")", ";", "char", "[", "]", "getReturnTypeName", "(", ")", ";", "char", "[", "]", "[", "]", "getTypeParameterNames", "(", ")", ";", "char", "[", "]", "[", "]", "[", "]", "getTypeParameterBounds", "(", ")", ";", "}", "</s>" ]
3,385
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "public", "interface", "IBinaryAnnotation", "{", "char", "[", "]", "getTypeName", "(", ")", ";", "IBinaryElementValuePair", "[", "]", "getElementValuePairs", "(", ")", ";", "}", "</s>" ]
3,386
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ";", "import", "java", ".", "util", ".", "Arrays", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "public", "class", "EnumConstantSignature", "{", "char", "[", "]", "typeName", ";", "char", "[", "]", "constName", ";", "public", "EnumConstantSignature", "(", "char", "[", "]", "typeName", ",", "char", "[", "]", "constName", ")", "{", "this", ".", "typeName", "=", "typeName", ";", "this", ".", "constName", "=", "constName", ";", "}", "public", "char", "[", "]", "getTypeName", "(", ")", "{", "return", "this", ".", "typeName", ";", "}", "public", "char", "[", "]", "getEnumConstantName", "(", ")", "{", "return", "this", ".", "constName", ";", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "buffer", ".", "append", "(", "this", ".", "typeName", ")", ";", "buffer", ".", "append", "(", "'.'", ")", ";", "buffer", ".", "append", "(", "this", ".", "constName", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}", "public", "int", "hashCode", "(", ")", "{", "final", "int", "prime", "=", "31", ";", "int", "result", "=", "1", ";", "result", "=", "prime", "*", "result", "+", "CharOperation", ".", "hashCode", "(", "this", ".", "constName", ")", ";", "result", "=", "prime", "*", "result", "+", "CharOperation", ".", "hashCode", "(", "this", ".", "typeName", ")", ";", "return", "result", ";", "}", "public", "boolean", "equals", "(", "Object", "obj", ")", "{", "if", "(", "this", "==", "obj", ")", "{", "return", "true", ";", "}", "if", "(", "obj", "==", "null", ")", "{", "return", "false", ";", "}", "if", "(", "getClass", "(", ")", "!=", "obj", ".", "getClass", "(", ")", ")", "{", "return", "false", ";", "}", "EnumConstantSignature", "other", "=", "(", "EnumConstantSignature", ")", "obj", ";", "if", "(", "!", "Arrays", ".", "equals", "(", "this", ".", "constName", ",", "other", ".", "constName", ")", ")", "{", "return", "false", ";", "}", "return", "Arrays", ".", "equals", "(", "this", ".", "typeName", ",", "other", ".", "typeName", ")", ";", "}", "}", "</s>" ]
3,387
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "BranchLabel", ";", "public", "class", "SwitchFlowContext", "extends", "FlowContext", "{", "public", "BranchLabel", "breakLabel", ";", "public", "UnconditionalFlowInfo", "initsOnBreak", "=", "FlowInfo", ".", "DEAD_END", ";", "public", "SwitchFlowContext", "(", "FlowContext", "parent", ",", "ASTNode", "associatedNode", ",", "BranchLabel", "breakLabel", ")", "{", "super", "(", "parent", ",", "associatedNode", ")", ";", "this", ".", "breakLabel", "=", "breakLabel", ";", "}", "public", "BranchLabel", "breakLabel", "(", ")", "{", "return", "this", ".", "breakLabel", ";", "}", "public", "String", "individualToString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "\"\"", ")", ";", "buffer", ".", "append", "(", "\"\"", ")", ".", "append", "(", "this", ".", "initsOnBreak", ".", "toString", "(", ")", ")", ".", "append", "(", "']'", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}", "public", "boolean", "isBreakable", "(", ")", "{", "return", "true", ";", "}", "public", "void", "recordBreakFrom", "(", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "this", ".", "initsOnBreak", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "==", "0", ")", "{", "this", ".", "initsOnBreak", "=", "this", ".", "initsOnBreak", ".", "mergedWith", "(", "flowInfo", ".", "unconditionalInits", "(", ")", ")", ";", "}", "else", "{", "this", ".", "initsOnBreak", "=", "flowInfo", ".", "unconditionalCopy", "(", ")", ";", "}", "}", "}", "</s>" ]
3,388
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Expression", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Reference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "FieldBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "LocalVariableBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Scope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "VariableBinding", ";", "public", "class", "FinallyFlowContext", "extends", "FlowContext", "{", "Reference", "[", "]", "finalAssignments", ";", "VariableBinding", "[", "]", "finalVariables", ";", "int", "assignCount", ";", "LocalVariableBinding", "[", "]", "nullLocals", ";", "ASTNode", "[", "]", "nullReferences", ";", "int", "[", "]", "nullCheckTypes", ";", "int", "nullCount", ";", "public", "FinallyFlowContext", "(", "FlowContext", "parent", ",", "ASTNode", "associatedNode", ")", "{", "super", "(", "parent", ",", "associatedNode", ")", ";", "}", "public", "void", "complainOnDeferredChecks", "(", "FlowInfo", "flowInfo", ",", "BlockScope", "scope", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "assignCount", ";", "i", "++", ")", "{", "VariableBinding", "variable", "=", "this", ".", "finalVariables", "[", "i", "]", ";", "if", "(", "variable", "==", "null", ")", "continue", ";", "boolean", "complained", "=", "false", ";", "if", "(", "variable", "instanceof", "FieldBinding", ")", "{", "if", "(", "flowInfo", ".", "isPotentiallyAssigned", "(", "(", "FieldBinding", ")", "variable", ")", ")", "{", "complained", "=", "true", ";", "scope", ".", "problemReporter", "(", ")", ".", "duplicateInitializationOfBlankFinalField", "(", "(", "FieldBinding", ")", "variable", ",", "this", ".", "finalAssignments", "[", "i", "]", ")", ";", "}", "}", "else", "{", "if", "(", "flowInfo", ".", "isPotentiallyAssigned", "(", "(", "LocalVariableBinding", ")", "variable", ")", ")", "{", "complained", "=", "true", ";", "scope", ".", "problemReporter", "(", ")", ".", "duplicateInitializationOfFinalLocal", "(", "(", "LocalVariableBinding", ")", "variable", ",", "this", ".", "finalAssignments", "[", "i", "]", ")", ";", "}", "}", "if", "(", "complained", ")", "{", "FlowContext", "currentContext", "=", "this", ".", "getLocalParent", "(", ")", ";", "while", "(", "currentContext", "!=", "null", ")", "{", "currentContext", ".", "removeFinalAssignmentIfAny", "(", "this", ".", "finalAssignments", "[", "i", "]", ")", ";", "currentContext", "=", "currentContext", ".", "getLocalParent", "(", ")", ";", "}", "}", "}", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "DEFER_NULL_DIAGNOSTIC", ")", "!=", "0", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "nullCount", ";", "i", "++", ")", "{", "if", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", "==", "ASSIGN_TO_NONNULL", ")", "{", "int", "nullStatus", "=", "flowInfo", ".", "nullStatus", "(", "this", ".", "nullLocals", "[", "i", "]", ")", ";", "if", "(", "nullStatus", "!=", "FlowInfo", ".", "NON_NULL", ")", "{", "this", ".", "parent", ".", "recordNullityMismatch", "(", "scope", ",", "(", "Expression", ")", "this", ".", "nullReferences", "[", "i", "]", ",", "this", ".", "providedExpectedTypes", "[", "i", "]", "[", "0", "]", ",", "this", ".", "providedExpectedTypes", "[", "i", "]", "[", "1", "]", ",", "nullStatus", ")", ";", "}", "}", "else", "{", "this", ".", "parent", ".", "recordUsingNullReference", "(", "scope", ",", "this", ".", "nullLocals", "[", "i", "]", ",", "this", ".", "nullReferences", "[", "i", "]", ",", "this", ".", "nullCheckTypes", "[", "i", "]", ",", "flowInfo", ")", ";", "}", "}", "}", "else", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "nullCount", ";", "i", "++", ")", "{", "ASTNode", "location", "=", "this", ".", "nullReferences", "[", "i", "]", ";", "LocalVariableBinding", "local", "=", "this", ".", "nullLocals", "[", "i", "]", ";", "switch", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", "{", "case", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NULL", ":", "case", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ":", "if", "(", "flowInfo", ".", "isDefinitelyNonNull", "(", "local", ")", ")", "{", "if", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", "==", "(", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ")", ")", "{", "if", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNonNull", "(", "local", ",", "location", ")", ";", "}", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNonNullComparedToNull", "(", "local", ",", "location", ")", ";", "}", "continue", ";", "}", "case", "CAN_ONLY_NULL", "|", "IN_COMPARISON_NULL", ":", "case", "CAN_ONLY_NULL", "|", "IN_COMPARISON_NON_NULL", ":", "case", "CAN_ONLY_NULL", "|", "IN_ASSIGNMENT", ":", "case", "CAN_ONLY_NULL", "|", "IN_INSTANCEOF", ":", "Expression", "expression", "=", "(", "Expression", ")", "location", ";", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "switch", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "if", "(", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CHECK_MASK", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "expression", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "expression", ")", ";", "continue", ";", "}", "if", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNull", "(", "local", ",", "expression", ")", ";", "}", "continue", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CHECK_MASK", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "expression", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "expression", ")", ";", "continue", ";", "}", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullComparedToNonNull", "(", "local", ",", "expression", ")", ";", "continue", ";", "case", "FlowContext", ".", "IN_ASSIGNMENT", ":", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantNullAssignment", "(", "local", ",", "expression", ")", ";", "continue", ";", "case", "FlowContext", ".", "IN_INSTANCEOF", ":", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullInstanceof", "(", "local", ",", "expression", ")", ";", "continue", ";", "}", "}", "else", "if", "(", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", ")", "{", "switch", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "this", ".", "nullReferences", "[", "i", "]", "=", "null", ";", "if", "(", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CHECK_MASK", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "expression", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "expression", ")", ";", "continue", ";", "}", "break", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "this", ".", "nullReferences", "[", "i", "]", "=", "null", ";", "if", "(", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CHECK_MASK", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "expression", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "expression", ")", ";", "continue", ";", "}", "break", ";", "}", "}", "break", ";", "case", "MAY_NULL", ":", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "location", ")", ";", "continue", ";", "}", "if", "(", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "location", ")", ";", "}", "break", ";", "case", "ASSIGN_TO_NONNULL", ":", "int", "nullStatus", "=", "flowInfo", ".", "nullStatus", "(", "local", ")", ";", "if", "(", "nullStatus", "!=", "FlowInfo", ".", "NON_NULL", ")", "{", "char", "[", "]", "[", "]", "annotationName", "=", "scope", ".", "environment", "(", ")", ".", "getNonNullAnnotationName", "(", ")", ";", "scope", ".", "problemReporter", "(", ")", ".", "nullityMismatch", "(", "(", "Expression", ")", "location", ",", "this", ".", "providedExpectedTypes", "[", "i", "]", "[", "0", "]", ",", "this", ".", "providedExpectedTypes", "[", "i", "]", "[", "1", "]", ",", "nullStatus", ",", "annotationName", ")", ";", "}", "break", ";", "default", ":", "}", "}", "}", "}", "public", "String", "individualToString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "\"\"", ")", ";", "buffer", ".", "append", "(", "\"\"", ")", ".", "append", "(", "this", ".", "assignCount", ")", ".", "append", "(", "']'", ")", ";", "buffer", ".", "append", "(", "\"\"", ")", ".", "append", "(", "this", ".", "nullCount", ")", ".", "append", "(", "']'", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}", "public", "boolean", "isSubRoutine", "(", ")", "{", "return", "true", ";", "}", "protected", "boolean", "recordFinalAssignment", "(", "VariableBinding", "binding", ",", "Reference", "finalAssignment", ")", "{", "if", "(", "this", ".", "assignCount", "==", "0", ")", "{", "this", ".", "finalAssignments", "=", "new", "Reference", "[", "5", "]", ";", "this", ".", "finalVariables", "=", "new", "VariableBinding", "[", "5", "]", ";", "}", "else", "{", "if", "(", "this", ".", "assignCount", "==", "this", ".", "finalAssignments", ".", "length", ")", "System", ".", "arraycopy", "(", "this", ".", "finalAssignments", ",", "0", ",", "(", "this", ".", "finalAssignments", "=", "new", "Reference", "[", "this", ".", "assignCount", "*", "2", "]", ")", ",", "0", ",", "this", ".", "assignCount", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "finalVariables", ",", "0", ",", "(", "this", ".", "finalVariables", "=", "new", "VariableBinding", "[", "this", ".", "assignCount", "*", "2", "]", ")", ",", "0", ",", "this", ".", "assignCount", ")", ";", "}", "this", ".", "finalAssignments", "[", "this", ".", "assignCount", "]", "=", "finalAssignment", ";", "this", ".", "finalVariables", "[", "this", ".", "assignCount", "++", "]", "=", "binding", ";", "return", "true", ";", "}", "public", "void", "recordUsingNullReference", "(", "Scope", "scope", ",", "LocalVariableBinding", "local", ",", "ASTNode", "location", ",", "int", "checkType", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", "&&", "!", "flowInfo", ".", "isDefinitelyUnknown", "(", "local", ")", ")", "{", "checkType", "|=", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", ";", "int", "checkTypeWithoutHideNullWarning", "=", "checkType", "&", "~", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING_MASK", ";", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "DEFER_NULL_DIAGNOSTIC", ")", "!=", "0", ")", "{", "switch", "(", "checkTypeWithoutHideNullWarning", ")", "{", "case", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NULL", ":", "case", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ":", "case", "CAN_ONLY_NULL", "|", "IN_COMPARISON_NULL", ":", "case", "CAN_ONLY_NULL", "|", "IN_COMPARISON_NON_NULL", ":", "case", "CAN_ONLY_NULL", "|", "IN_ASSIGNMENT", ":", "case", "CAN_ONLY_NULL", "|", "IN_INSTANCEOF", ":", "Expression", "reference", "=", "(", "Expression", ")", "location", ";", "if", "(", "flowInfo", ".", "cannotBeNull", "(", "local", ")", ")", "{", "if", "(", "checkTypeWithoutHideNullWarning", "==", "(", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ")", ")", "{", "if", "(", "(", "checkType", "&", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNonNull", "(", "local", ",", "reference", ")", ";", "}", "flowInfo", ".", "initsWhenFalse", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "else", "if", "(", "checkTypeWithoutHideNullWarning", "==", "(", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NULL", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNonNullComparedToNull", "(", "local", ",", "reference", ")", ";", "flowInfo", ".", "initsWhenTrue", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "return", ";", "}", "if", "(", "flowInfo", ".", "canOnlyBeNull", "(", "local", ")", ")", "{", "switch", "(", "checkTypeWithoutHideNullWarning", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "if", "(", "(", "(", "checkTypeWithoutHideNullWarning", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "reference", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "if", "(", "(", "checkType", "&", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNull", "(", "local", ",", "reference", ")", ";", "}", "flowInfo", ".", "initsWhenFalse", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "return", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "checkTypeWithoutHideNullWarning", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "reference", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullComparedToNonNull", "(", "local", ",", "reference", ")", ";", "flowInfo", ".", "initsWhenTrue", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "return", ";", "case", "FlowContext", ".", "IN_ASSIGNMENT", ":", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantNullAssignment", "(", "local", ",", "reference", ")", ";", "return", ";", "case", "FlowContext", ".", "IN_INSTANCEOF", ":", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullInstanceof", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "}", "else", "if", "(", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", ")", "{", "switch", "(", "checkTypeWithoutHideNullWarning", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "if", "(", "(", "(", "checkTypeWithoutHideNullWarning", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "reference", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "break", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "checkTypeWithoutHideNullWarning", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "reference", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "break", ";", "}", "}", "break", ";", "case", "MAY_NULL", ":", "if", "(", "flowInfo", ".", "cannotBeNull", "(", "local", ")", ")", "{", "return", ";", "}", "if", "(", "flowInfo", ".", "canOnlyBeNull", "(", "local", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "location", ")", ";", "return", ";", "}", "break", ";", "default", ":", "}", "}", "else", "{", "switch", "(", "checkTypeWithoutHideNullWarning", ")", "{", "case", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NULL", ":", "case", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ":", "if", "(", "flowInfo", ".", "isDefinitelyNonNull", "(", "local", ")", ")", "{", "if", "(", "checkTypeWithoutHideNullWarning", "==", "(", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ")", ")", "{", "if", "(", "(", "checkType", "&", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNonNull", "(", "local", ",", "location", ")", ";", "}", "flowInfo", ".", "initsWhenFalse", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNonNullComparedToNull", "(", "local", ",", "location", ")", ";", "flowInfo", ".", "initsWhenTrue", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "return", ";", "}", "case", "CAN_ONLY_NULL", "|", "IN_COMPARISON_NULL", ":", "case", "CAN_ONLY_NULL", "|", "IN_COMPARISON_NON_NULL", ":", "case", "CAN_ONLY_NULL", "|", "IN_ASSIGNMENT", ":", "case", "CAN_ONLY_NULL", "|", "IN_INSTANCEOF", ":", "Expression", "reference", "=", "(", "Expression", ")", "location", ";", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "switch", "(", "checkTypeWithoutHideNullWarning", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "if", "(", "(", "(", "checkTypeWithoutHideNullWarning", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "reference", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "if", "(", "(", "checkType", "&", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNull", "(", "local", ",", "reference", ")", ";", "}", "flowInfo", ".", "initsWhenFalse", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "return", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "checkTypeWithoutHideNullWarning", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "reference", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullComparedToNonNull", "(", "local", ",", "reference", ")", ";", "flowInfo", ".", "initsWhenTrue", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "return", ";", "case", "FlowContext", ".", "IN_ASSIGNMENT", ":", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantNullAssignment", "(", "local", ",", "reference", ")", ";", "return", ";", "case", "FlowContext", ".", "IN_INSTANCEOF", ":", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullInstanceof", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "}", "else", "if", "(", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", ")", "{", "switch", "(", "checkTypeWithoutHideNullWarning", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "if", "(", "(", "(", "checkTypeWithoutHideNullWarning", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "reference", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "break", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "checkTypeWithoutHideNullWarning", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "reference", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "break", ";", "}", "}", "break", ";", "case", "MAY_NULL", ":", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "location", ")", ";", "return", ";", "}", "if", "(", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "location", ")", ";", "return", ";", "}", "if", "(", "flowInfo", ".", "isDefinitelyNonNull", "(", "local", ")", ")", "{", "return", ";", "}", "break", ";", "default", ":", "}", "}", "recordNullReference", "(", "local", ",", "location", ",", "checkType", ")", ";", "}", "}", "void", "removeFinalAssignmentIfAny", "(", "Reference", "reference", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "assignCount", ";", "i", "++", ")", "{", "if", "(", "this", ".", "finalAssignments", "[", "i", "]", "==", "reference", ")", "{", "this", ".", "finalAssignments", "[", "i", "]", "=", "null", ";", "this", ".", "finalVariables", "[", "i", "]", "=", "null", ";", "return", ";", "}", "}", "}", "protected", "void", "recordNullReference", "(", "LocalVariableBinding", "local", ",", "ASTNode", "expression", ",", "int", "status", ")", "{", "if", "(", "this", ".", "nullCount", "==", "0", ")", "{", "this", ".", "nullLocals", "=", "new", "LocalVariableBinding", "[", "5", "]", ";", "this", ".", "nullReferences", "=", "new", "Expression", "[", "5", "]", ";", "this", ".", "nullCheckTypes", "=", "new", "int", "[", "5", "]", ";", "}", "else", "if", "(", "this", ".", "nullCount", "==", "this", ".", "nullLocals", ".", "length", ")", "{", "int", "newLength", "=", "this", ".", "nullCount", "*", "2", ";", "System", ".", "arraycopy", "(", "this", ".", "nullLocals", ",", "0", ",", "this", ".", "nullLocals", "=", "new", "LocalVariableBinding", "[", "newLength", "]", ",", "0", ",", "this", ".", "nullCount", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "nullReferences", ",", "0", ",", "this", ".", "nullReferences", "=", "new", "Expression", "[", "newLength", "]", ",", "0", ",", "this", ".", "nullCount", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "nullCheckTypes", ",", "0", ",", "this", ".", "nullCheckTypes", "=", "new", "int", "[", "newLength", "]", ",", "0", ",", "this", ".", "nullCount", ")", ";", "}", "this", ".", "nullLocals", "[", "this", ".", "nullCount", "]", "=", "local", ";", "this", ".", "nullReferences", "[", "this", ".", "nullCount", "]", "=", "expression", ";", "this", ".", "nullCheckTypes", "[", "this", ".", "nullCount", "++", "]", "=", "status", ";", "}", "protected", "boolean", "internalRecordNullityMismatch", "(", "Expression", "expression", ",", "TypeBinding", "providedType", ",", "int", "nullStatus", ",", "TypeBinding", "expectedType", ",", "int", "checkType", ")", "{", "if", "(", "nullStatus", "==", "FlowInfo", ".", "UNKNOWN", "||", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "DEFER_NULL_DIAGNOSTIC", ")", "!=", "0", "&&", "nullStatus", "!=", "FlowInfo", ".", "NULL", ")", ")", "{", "recordProvidedExpectedTypes", "(", "providedType", ",", "expectedType", ",", "this", ".", "nullCount", ")", ";", "recordNullReference", "(", "expression", ".", "localVariableBinding", "(", ")", ",", "expression", ",", "checkType", ")", ";", "return", "true", ";", "}", "return", "false", ";", "}", "}", "</s>" ]
3,389
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "LocalVariableBinding", ";", "public", "class", "NullInfoRegistry", "extends", "UnconditionalFlowInfo", "{", "public", "NullInfoRegistry", "(", "UnconditionalFlowInfo", "upstream", ")", "{", "this", ".", "maxFieldCount", "=", "upstream", ".", "maxFieldCount", ";", "if", "(", "(", "upstream", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "!=", "0", ")", "{", "long", "u1", ",", "u2", ",", "u3", ",", "u4", ",", "nu2", ",", "nu3", ",", "nu4", ";", "this", ".", "nullBit2", "=", "(", "u1", "=", "upstream", ".", "nullBit1", ")", "&", "(", "u2", "=", "upstream", ".", "nullBit2", ")", "&", "(", "nu3", "=", "~", "(", "u3", "=", "upstream", ".", "nullBit3", ")", ")", "&", "(", "nu4", "=", "~", "(", "u4", "=", "upstream", ".", "nullBit4", ")", ")", ";", "this", ".", "nullBit3", "=", "u1", "&", "(", "nu2", "=", "~", "u2", ")", "&", "u3", "&", "nu4", ";", "this", ".", "nullBit4", "=", "u1", "&", "nu2", "&", "nu3", "&", "u4", ";", "if", "(", "(", "this", ".", "nullBit2", "|", "this", ".", "nullBit3", "|", "this", ".", "nullBit4", ")", "!=", "0", ")", "{", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "}", "if", "(", "upstream", ".", "extra", "!=", "null", ")", "{", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "int", "length", "=", "upstream", ".", "extra", "[", "2", "]", ".", "length", ";", "for", "(", "int", "i", "=", "2", ";", "i", "<", "extraLength", ";", "i", "++", ")", "{", "this", ".", "extra", "[", "i", "]", "=", "new", "long", "[", "length", "]", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", "=", "(", "u1", "=", "upstream", ".", "extra", "[", "1", "+", "1", "]", "[", "i", "]", ")", "&", "(", "u2", "=", "upstream", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", ")", "&", "(", "nu3", "=", "~", "(", "u3", "=", "upstream", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", ")", ")", "&", "(", "nu4", "=", "~", "(", "u4", "=", "upstream", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", ")", ")", ";", "this", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", "=", "u1", "&", "(", "nu2", "=", "~", "u2", ")", "&", "u3", "&", "nu4", ";", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", "=", "u1", "&", "nu2", "&", "nu3", "&", "u4", ";", "if", "(", "(", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", "|", "this", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", "|", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", ")", "!=", "0", ")", "{", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "}", "}", "}", "}", "}", "public", "NullInfoRegistry", "add", "(", "NullInfoRegistry", "other", ")", "{", "if", "(", "(", "other", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "==", "0", ")", "{", "return", "this", ";", "}", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "this", ".", "nullBit1", "|=", "other", ".", "nullBit1", ";", "this", ".", "nullBit2", "|=", "other", ".", "nullBit2", ";", "this", ".", "nullBit3", "|=", "other", ".", "nullBit3", ";", "this", ".", "nullBit4", "|=", "other", ".", "nullBit4", ";", "if", "(", "other", ".", "extra", "!=", "null", ")", "{", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "for", "(", "int", "i", "=", "2", ",", "length", "=", "other", ".", "extra", "[", "2", "]", ".", "length", ";", "i", "<", "extraLength", ";", "i", "++", ")", "{", "System", ".", "arraycopy", "(", "other", ".", "extra", "[", "i", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "i", "]", "=", "new", "long", "[", "length", "]", ")", ",", "0", ",", "length", ")", ";", "}", "}", "else", "{", "int", "length", "=", "this", ".", "extra", "[", "2", "]", ".", "length", ",", "otherLength", "=", "other", ".", "extra", "[", "2", "]", ".", "length", ";", "if", "(", "otherLength", ">", "length", ")", "{", "for", "(", "int", "i", "=", "2", ";", "i", "<", "extraLength", ";", "i", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "i", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "i", "]", "=", "new", "long", "[", "otherLength", "]", ")", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "other", ".", "extra", "[", "i", "]", ",", "length", ",", "this", ".", "extra", "[", "i", "]", ",", "length", ",", "otherLength", "-", "length", ")", ";", "}", "}", "else", "if", "(", "otherLength", "<", "length", ")", "{", "length", "=", "otherLength", ";", "}", "for", "(", "int", "i", "=", "2", ";", "i", "<", "extraLength", ";", "i", "++", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "length", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "i", "]", "[", "j", "]", "|=", "other", ".", "extra", "[", "i", "]", "[", "j", "]", ";", "}", "}", "}", "}", "return", "this", ";", "}", "public", "void", "markAsComparedEqualToNonNull", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "this", "!=", "DEAD_END", ")", "{", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "int", "position", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "this", ".", "nullBit1", "|=", "(", "1L", "<<", "position", ")", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "290", ")", "{", "this", ".", "nullBit1", "=", "0", ";", "}", "}", "}", "else", "{", "int", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ";", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "int", "length", "=", "vectorIndex", "+", "1", ";", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "for", "(", "int", "j", "=", "2", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "length", "]", ";", "}", "}", "else", "{", "int", "oldLength", ";", "if", "(", "vectorIndex", ">=", "(", "oldLength", "=", "this", ".", "extra", "[", "2", "]", ".", "length", ")", ")", "{", "for", "(", "int", "j", "=", "2", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "vectorIndex", "+", "1", "]", ")", ",", "0", ",", "oldLength", ")", ";", "}", "}", "}", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "|=", "(", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "300", ")", "{", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "=", "~", "0", ";", "}", "}", "}", "}", "}", "public", "void", "markAsDefinitelyNonNull", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "this", "!=", "DEAD_END", ")", "{", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "int", "position", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "this", ".", "nullBit3", "|=", "(", "1L", "<<", "position", ")", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "290", ")", "{", "this", ".", "nullBit1", "=", "0", ";", "}", "}", "}", "else", "{", "int", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ";", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "int", "length", "=", "vectorIndex", "+", "1", ";", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "for", "(", "int", "j", "=", "2", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "length", "]", ";", "}", "}", "else", "{", "int", "oldLength", ";", "if", "(", "vectorIndex", ">=", "(", "oldLength", "=", "this", ".", "extra", "[", "2", "]", ".", "length", ")", ")", "{", "for", "(", "int", "j", "=", "2", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "vectorIndex", "+", "1", "]", ")", ",", "0", ",", "oldLength", ")", ";", "}", "}", "}", "this", ".", "extra", "[", "4", "]", "[", "vectorIndex", "]", "|=", "(", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "300", ")", "{", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "=", "~", "0", ";", "}", "}", "}", "}", "}", "public", "void", "markAsDefinitelyNull", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "this", "!=", "DEAD_END", ")", "{", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "int", "position", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "this", ".", "nullBit2", "|=", "(", "1L", "<<", "position", ")", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "290", ")", "{", "this", ".", "nullBit1", "=", "0", ";", "}", "}", "}", "else", "{", "int", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ";", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "int", "length", "=", "vectorIndex", "+", "1", ";", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "for", "(", "int", "j", "=", "2", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "length", "]", ";", "}", "}", "else", "{", "int", "oldLength", ";", "if", "(", "vectorIndex", ">=", "(", "oldLength", "=", "this", ".", "extra", "[", "2", "]", ".", "length", ")", ")", "{", "for", "(", "int", "j", "=", "2", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "vectorIndex", "+", "1", "]", ")", ",", "0", ",", "oldLength", ")", ";", "}", "}", "}", "this", ".", "extra", "[", "3", "]", "[", "vectorIndex", "]", "|=", "(", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "300", ")", "{", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "=", "~", "0", ";", "}", "}", "}", "}", "}", "public", "void", "markAsDefinitelyUnknown", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "this", "!=", "DEAD_END", ")", "{", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "int", "position", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "this", ".", "nullBit4", "|=", "(", "1L", "<<", "position", ")", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "290", ")", "{", "this", ".", "nullBit1", "=", "0", ";", "}", "}", "}", "else", "{", "int", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ";", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "int", "length", "=", "vectorIndex", "+", "1", ";", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "for", "(", "int", "j", "=", "2", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "length", "]", ";", "}", "}", "else", "{", "int", "oldLength", ";", "if", "(", "vectorIndex", ">=", "(", "oldLength", "=", "this", ".", "extra", "[", "2", "]", ".", "length", ")", ")", "{", "for", "(", "int", "j", "=", "2", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "vectorIndex", "+", "1", "]", ")", ",", "0", ",", "oldLength", ")", ";", "}", "}", "}", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "|=", "(", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "300", ")", "{", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "=", "~", "0", ";", "}", "}", "}", "}", "}", "public", "UnconditionalFlowInfo", "mitigateNullInfoOf", "(", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "==", "0", ")", "{", "return", "flowInfo", ".", "unconditionalInits", "(", ")", ";", "}", "long", "m", ",", "m1", ",", "nm1", ",", "m2", ",", "nm2", ",", "m3", ",", "a2", ",", "a3", ",", "a4", ",", "s1", ",", "s2", ",", "ns2", ",", "s3", ",", "ns3", ",", "s4", ",", "ns4", ";", "boolean", "newCopy", "=", "false", ";", "UnconditionalFlowInfo", "source", "=", "flowInfo", ".", "unconditionalInits", "(", ")", ";", "m1", "=", "(", "s1", "=", "source", ".", "nullBit1", ")", "&", "(", "s3", "=", "source", ".", "nullBit3", ")", "&", "(", "s4", "=", "source", ".", "nullBit4", ")", "&", "(", "(", "a2", "=", "this", ".", "nullBit2", ")", "|", "(", "a4", "=", "this", ".", "nullBit4", ")", ")", ";", "m2", "=", "s1", "&", "(", "s2", "=", "this", ".", "nullBit2", ")", "&", "(", "s3", "^", "s4", ")", "&", "(", "(", "a3", "=", "this", ".", "nullBit3", ")", "|", "a4", ")", ";", "m3", "=", "s1", "&", "(", "s2", "&", "(", "ns3", "=", "~", "s3", ")", "&", "(", "ns4", "=", "~", "s4", ")", "&", "(", "a3", "|", "a4", ")", "|", "(", "ns2", "=", "~", "s2", ")", "&", "s3", "&", "ns4", "&", "(", "a2", "|", "a4", ")", "|", "ns2", "&", "ns3", "&", "s4", "&", "(", "a2", "|", "a3", ")", ")", ";", "if", "(", "(", "m", "=", "(", "m1", "|", "m2", "|", "m3", ")", ")", "!=", "0", ")", "{", "newCopy", "=", "true", ";", "source", "=", "source", ".", "unconditionalCopy", "(", ")", ";", "source", ".", "nullBit1", "&=", "~", "m", ";", "source", ".", "nullBit2", "&=", "(", "nm1", "=", "~", "m1", ")", "&", "(", "(", "nm2", "=", "~", "m2", ")", "|", "a4", ")", ";", "source", ".", "nullBit3", "&=", "(", "nm1", "|", "a2", ")", "&", "nm2", ";", "source", ".", "nullBit4", "&=", "nm1", "&", "nm2", ";", "long", "x", "=", "~", "this", ".", "nullBit1", "&", "a2", "&", "a3", "&", "a4", ";", "if", "(", "x", "!=", "0", ")", "{", "source", ".", "nullBit1", "&=", "~", "x", ";", "source", ".", "nullBit2", "|=", "x", ";", "source", ".", "nullBit3", "|=", "x", ";", "source", ".", "nullBit4", "|=", "x", ";", "}", "}", "if", "(", "this", ".", "extra", "!=", "null", "&&", "source", ".", "extra", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "extra", "[", "2", "]", ".", "length", ",", "sourceLength", "=", "source", ".", "extra", "[", "0", "]", ".", "length", ";", "if", "(", "sourceLength", "<", "length", ")", "{", "length", "=", "sourceLength", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "m1", "=", "(", "s1", "=", "source", ".", "extra", "[", "1", "+", "1", "]", "[", "i", "]", ")", "&", "(", "s3", "=", "source", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", ")", "&", "(", "s4", "=", "source", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", ")", "&", "(", "(", "a2", "=", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", ")", "|", "(", "a4", "=", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", ")", ")", ";", "m2", "=", "s1", "&", "(", "s2", "=", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", ")", "&", "(", "s3", "^", "s4", ")", "&", "(", "(", "a3", "=", "this", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", ")", "|", "a4", ")", ";", "m3", "=", "s1", "&", "(", "s2", "&", "(", "ns3", "=", "~", "s3", ")", "&", "(", "ns4", "=", "~", "s4", ")", "&", "(", "a3", "|", "a4", ")", "|", "(", "ns2", "=", "~", "s2", ")", "&", "s3", "&", "ns4", "&", "(", "a2", "|", "a4", ")", "|", "ns2", "&", "ns3", "&", "s4", "&", "(", "a2", "|", "a3", ")", ")", ";", "if", "(", "(", "m", "=", "(", "m1", "|", "m2", "|", "m3", ")", ")", "!=", "0", ")", "{", "if", "(", "!", "newCopy", ")", "{", "newCopy", "=", "true", ";", "source", "=", "source", ".", "unconditionalCopy", "(", ")", ";", "}", "source", ".", "extra", "[", "1", "+", "1", "]", "[", "i", "]", "&=", "~", "m", ";", "source", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", "&=", "(", "nm1", "=", "~", "m1", ")", "&", "(", "(", "nm2", "=", "~", "m2", ")", "|", "a4", ")", ";", "source", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", "&=", "(", "nm1", "|", "a2", ")", "&", "nm2", ";", "source", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", "&=", "nm1", "&", "nm2", ";", "}", "}", "}", "return", "source", ";", "}", "public", "String", "toString", "(", ")", "{", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "return", "\"\"", "+", "this", ".", "nullBit1", "+", "this", ".", "nullBit2", "+", "this", ".", "nullBit3", "+", "this", ".", "nullBit4", "+", "\">\"", ";", "}", "else", "{", "String", "nullS", "=", "\"\"", "+", "this", ".", "nullBit1", "+", "this", ".", "nullBit2", "+", "this", ".", "nullBit3", "+", "this", ".", "nullBit4", ";", "int", "i", ",", "ceil", ";", "for", "(", "i", "=", "0", ",", "ceil", "=", "this", ".", "extra", "[", "0", "]", ".", "length", ">", "3", "?", "3", ":", "this", ".", "extra", "[", "0", "]", ".", "length", ";", "i", "<", "ceil", ";", "i", "++", ")", "{", "nullS", "+=", "\",\"", "+", "this", ".", "extra", "[", "2", "]", "[", "i", "]", "+", "this", ".", "extra", "[", "3", "]", "[", "i", "]", "+", "this", ".", "extra", "[", "4", "]", "[", "i", "]", "+", "this", ".", "extra", "[", "5", "]", "[", "i", "]", ";", "}", "if", "(", "ceil", "<", "this", ".", "extra", "[", "0", "]", ".", "length", ")", "{", "nullS", "+=", "\",...\"", ";", "}", "return", "nullS", "+", "\"]>\"", ";", "}", "}", "public", "void", "markPotentiallyUnknownBit", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "this", "!=", "DEAD_END", ")", "{", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "int", "position", ";", "long", "mask", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "mask", "=", "1L", "<<", "position", ";", "isTrue", "(", "(", "this", ".", "nullBit1", "&", "mask", ")", "==", "0", ",", "\"\"", ")", ";", "this", ".", "nullBit4", "|=", "mask", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "46", ")", "{", "this", ".", "nullBit4", "=", "~", "0", ";", "}", "}", "}", "else", "{", "int", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ";", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "int", "length", "=", "vectorIndex", "+", "1", ";", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "for", "(", "int", "j", "=", "2", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "length", "]", ";", "}", "}", "else", "{", "int", "oldLength", ";", "if", "(", "vectorIndex", ">=", "(", "oldLength", "=", "this", ".", "extra", "[", "2", "]", ".", "length", ")", ")", "{", "for", "(", "int", "j", "=", "2", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "vectorIndex", "+", "1", "]", ")", ",", "0", ",", "oldLength", ")", ";", "}", "}", "}", "mask", "=", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ";", "isTrue", "(", "(", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "&", "mask", ")", "==", "0", ",", "\"\"", ")", ";", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "|=", "mask", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "47", ")", "{", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "=", "~", "0", ";", "}", "}", "}", "}", "}", "public", "void", "markPotentiallyNullBit", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "this", "!=", "DEAD_END", ")", "{", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "int", "position", ";", "long", "mask", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "mask", "=", "1L", "<<", "position", ";", "isTrue", "(", "(", "this", ".", "nullBit1", "&", "mask", ")", "==", "0", ",", "\"\"", ")", ";", "this", ".", "nullBit2", "|=", "mask", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "40", ")", "{", "this", ".", "nullBit4", "=", "~", "0", ";", "}", "}", "}", "else", "{", "int", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ";", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "int", "length", "=", "vectorIndex", "+", "1", ";", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "for", "(", "int", "j", "=", "2", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "length", "]", ";", "}", "}", "else", "{", "int", "oldLength", ";", "if", "(", "vectorIndex", ">=", "(", "oldLength", "=", "this", ".", "extra", "[", "2", "]", ".", "length", ")", ")", "{", "for", "(", "int", "j", "=", "2", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "vectorIndex", "+", "1", "]", ")", ",", "0", ",", "oldLength", ")", ";", "}", "}", "}", "mask", "=", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ";", "this", ".", "extra", "[", "3", "]", "[", "vectorIndex", "]", "|=", "mask", ";", "isTrue", "(", "(", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "&", "mask", ")", "==", "0", ",", "\"\"", ")", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "41", ")", "{", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "=", "~", "0", ";", "}", "}", "}", "}", "}", "public", "void", "markPotentiallyNonNullBit", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "this", "!=", "DEAD_END", ")", "{", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "int", "position", ";", "long", "mask", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "mask", "=", "1L", "<<", "position", ";", "isTrue", "(", "(", "this", ".", "nullBit1", "&", "mask", ")", "==", "0", ",", "\"\"", ")", ";", "this", ".", "nullBit3", "|=", "mask", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "42", ")", "{", "this", ".", "nullBit4", "=", "~", "0", ";", "}", "}", "}", "else", "{", "int", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ";", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "int", "length", "=", "vectorIndex", "+", "1", ";", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "for", "(", "int", "j", "=", "2", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "length", "]", ";", "}", "}", "else", "{", "int", "oldLength", ";", "if", "(", "vectorIndex", ">=", "(", "oldLength", "=", "this", ".", "extra", "[", "2", "]", ".", "length", ")", ")", "{", "for", "(", "int", "j", "=", "2", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "vectorIndex", "+", "1", "]", ")", ",", "0", ",", "oldLength", ")", ";", "}", "}", "}", "mask", "=", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ";", "isTrue", "(", "(", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "&", "mask", ")", "==", "0", ",", "\"\"", ")", ";", "this", ".", "extra", "[", "4", "]", "[", "vectorIndex", "]", "|=", "mask", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "43", ")", "{", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "=", "~", "0", ";", "}", "}", "}", "}", "}", "}", "</s>" ]
3,390
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "BranchLabel", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "public", "class", "LabelFlowContext", "extends", "SwitchFlowContext", "{", "public", "char", "[", "]", "labelName", ";", "public", "LabelFlowContext", "(", "FlowContext", "parent", ",", "ASTNode", "associatedNode", ",", "char", "[", "]", "labelName", ",", "BranchLabel", "breakLabel", ",", "BlockScope", "scope", ")", "{", "super", "(", "parent", ",", "associatedNode", ",", "breakLabel", ")", ";", "this", ".", "labelName", "=", "labelName", ";", "checkLabelValidity", "(", "scope", ")", ";", "}", "void", "checkLabelValidity", "(", "BlockScope", "scope", ")", "{", "FlowContext", "current", "=", "this", ".", "getLocalParent", "(", ")", ";", "while", "(", "current", "!=", "null", ")", "{", "char", "[", "]", "currentLabelName", ";", "if", "(", "(", "(", "currentLabelName", "=", "current", ".", "labelName", "(", ")", ")", "!=", "null", ")", "&&", "CharOperation", ".", "equals", "(", "currentLabelName", ",", "this", ".", "labelName", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "alreadyDefinedLabel", "(", "this", ".", "labelName", ",", "this", ".", "associatedNode", ")", ";", "}", "current", "=", "current", ".", "getLocalParent", "(", ")", ";", "}", "}", "public", "String", "individualToString", "(", ")", "{", "return", "\"\"", "+", "String", ".", "valueOf", "(", "this", ".", "labelName", ")", "+", "\"]\"", ";", "}", "public", "char", "[", "]", "labelName", "(", ")", "{", "return", "this", ".", "labelName", ";", "}", "}", "</s>" ]
3,391
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "IfStatement", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "FieldBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "LocalVariableBinding", ";", "public", "abstract", "class", "FlowInfo", "{", "public", "int", "tagBits", ";", "public", "final", "static", "int", "REACHABLE", "=", "0", ";", "public", "final", "static", "int", "UNREACHABLE_OR_DEAD", "=", "1", ";", "public", "final", "static", "int", "UNREACHABLE_BY_NULLANALYSIS", "=", "2", ";", "public", "final", "static", "int", "UNREACHABLE", "=", "UNREACHABLE_OR_DEAD", "|", "UNREACHABLE_BY_NULLANALYSIS", ";", "public", "final", "static", "int", "NULL_FLAG_MASK", "=", "4", ";", "public", "final", "static", "int", "UNKNOWN", "=", "1", ";", "public", "final", "static", "int", "NULL", "=", "2", ";", "public", "final", "static", "int", "NON_NULL", "=", "4", ";", "public", "final", "static", "int", "POTENTIALLY_UNKNOWN", "=", "8", ";", "public", "final", "static", "int", "POTENTIALLY_NULL", "=", "16", ";", "public", "final", "static", "int", "POTENTIALLY_NON_NULL", "=", "32", ";", "public", "static", "final", "UnconditionalFlowInfo", "DEAD_END", ";", "static", "{", "DEAD_END", "=", "new", "UnconditionalFlowInfo", "(", ")", ";", "DEAD_END", ".", "tagBits", "=", "UNREACHABLE", ";", "}", "abstract", "public", "FlowInfo", "addInitializationsFrom", "(", "FlowInfo", "otherInits", ")", ";", "abstract", "public", "FlowInfo", "addNullInfoFrom", "(", "FlowInfo", "otherInits", ")", ";", "abstract", "public", "FlowInfo", "addPotentialInitializationsFrom", "(", "FlowInfo", "otherInits", ")", ";", "public", "FlowInfo", "asNegatedCondition", "(", ")", "{", "return", "this", ";", "}", "public", "static", "FlowInfo", "conditional", "(", "FlowInfo", "initsWhenTrue", ",", "FlowInfo", "initsWhenFalse", ")", "{", "if", "(", "initsWhenTrue", "==", "initsWhenFalse", ")", "return", "initsWhenTrue", ";", "return", "new", "ConditionalFlowInfo", "(", "initsWhenTrue", ",", "initsWhenFalse", ")", ";", "}", "public", "boolean", "cannotBeDefinitelyNullOrNonNull", "(", "LocalVariableBinding", "local", ")", "{", "return", "isPotentiallyUnknown", "(", "local", ")", "||", "isPotentiallyNonNull", "(", "local", ")", "&&", "isPotentiallyNull", "(", "local", ")", ";", "}", "public", "boolean", "cannotBeNull", "(", "LocalVariableBinding", "local", ")", "{", "return", "isDefinitelyNonNull", "(", "local", ")", "||", "isProtectedNonNull", "(", "local", ")", ";", "}", "public", "boolean", "canOnlyBeNull", "(", "LocalVariableBinding", "local", ")", "{", "return", "isDefinitelyNull", "(", "local", ")", "||", "isProtectedNull", "(", "local", ")", ";", "}", "abstract", "public", "FlowInfo", "copy", "(", ")", ";", "public", "static", "UnconditionalFlowInfo", "initial", "(", "int", "maxFieldCount", ")", "{", "UnconditionalFlowInfo", "info", "=", "new", "UnconditionalFlowInfo", "(", ")", ";", "info", ".", "maxFieldCount", "=", "maxFieldCount", ";", "return", "info", ";", "}", "abstract", "public", "FlowInfo", "initsWhenFalse", "(", ")", ";", "abstract", "public", "FlowInfo", "initsWhenTrue", "(", ")", ";", "abstract", "public", "boolean", "isDefinitelyAssigned", "(", "FieldBinding", "field", ")", ";", "public", "abstract", "boolean", "isDefinitelyAssigned", "(", "LocalVariableBinding", "local", ")", ";", "public", "abstract", "boolean", "isDefinitelyNonNull", "(", "LocalVariableBinding", "local", ")", ";", "public", "abstract", "boolean", "isDefinitelyNull", "(", "LocalVariableBinding", "local", ")", ";", "public", "abstract", "boolean", "isDefinitelyUnknown", "(", "LocalVariableBinding", "local", ")", ";", "abstract", "public", "boolean", "isPotentiallyAssigned", "(", "FieldBinding", "field", ")", ";", "abstract", "public", "boolean", "isPotentiallyAssigned", "(", "LocalVariableBinding", "field", ")", ";", "public", "abstract", "boolean", "isPotentiallyNonNull", "(", "LocalVariableBinding", "local", ")", ";", "public", "abstract", "boolean", "isPotentiallyNull", "(", "LocalVariableBinding", "local", ")", ";", "public", "abstract", "boolean", "isPotentiallyUnknown", "(", "LocalVariableBinding", "local", ")", ";", "public", "abstract", "boolean", "isProtectedNonNull", "(", "LocalVariableBinding", "local", ")", ";", "public", "abstract", "boolean", "isProtectedNull", "(", "LocalVariableBinding", "local", ")", ";", "abstract", "public", "void", "markAsComparedEqualToNonNull", "(", "LocalVariableBinding", "local", ")", ";", "abstract", "public", "void", "markAsComparedEqualToNull", "(", "LocalVariableBinding", "local", ")", ";", "abstract", "public", "void", "markAsDefinitelyAssigned", "(", "FieldBinding", "field", ")", ";", "abstract", "public", "void", "markAsDefinitelyNonNull", "(", "LocalVariableBinding", "local", ")", ";", "abstract", "public", "void", "markAsDefinitelyNull", "(", "LocalVariableBinding", "local", ")", ";", "abstract", "public", "void", "resetNullInfo", "(", "LocalVariableBinding", "local", ")", ";", "abstract", "public", "void", "markPotentiallyUnknownBit", "(", "LocalVariableBinding", "local", ")", ";", "abstract", "public", "void", "markPotentiallyNullBit", "(", "LocalVariableBinding", "local", ")", ";", "abstract", "public", "void", "markPotentiallyNonNullBit", "(", "LocalVariableBinding", "local", ")", ";", "abstract", "public", "void", "markAsDefinitelyAssigned", "(", "LocalVariableBinding", "local", ")", ";", "abstract", "public", "void", "markAsDefinitelyUnknown", "(", "LocalVariableBinding", "local", ")", ";", "public", "void", "markNullStatus", "(", "LocalVariableBinding", "local", ",", "int", "nullStatus", ")", "{", "switch", "(", "nullStatus", ")", "{", "case", "FlowInfo", ".", "UNKNOWN", ":", "markAsDefinitelyUnknown", "(", "local", ")", ";", "break", ";", "case", "FlowInfo", ".", "NULL", ":", "markAsDefinitelyNull", "(", "local", ")", ";", "break", ";", "case", "FlowInfo", ".", "NON_NULL", ":", "markAsDefinitelyNonNull", "(", "local", ")", ";", "break", ";", "default", ":", "resetNullInfo", "(", "local", ")", ";", "if", "(", "(", "nullStatus", "&", "FlowInfo", ".", "POTENTIALLY_UNKNOWN", ")", "!=", "0", ")", "markPotentiallyUnknownBit", "(", "local", ")", ";", "if", "(", "(", "nullStatus", "&", "FlowInfo", ".", "POTENTIALLY_NULL", ")", "!=", "0", ")", "markPotentiallyNullBit", "(", "local", ")", ";", "if", "(", "(", "nullStatus", "&", "FlowInfo", ".", "POTENTIALLY_NON_NULL", ")", "!=", "0", ")", "markPotentiallyNonNullBit", "(", "local", ")", ";", "if", "(", "(", "nullStatus", "&", "(", "FlowInfo", ".", "POTENTIALLY_NULL", "|", "FlowInfo", ".", "POTENTIALLY_NON_NULL", "|", "FlowInfo", ".", "POTENTIALLY_UNKNOWN", ")", ")", "==", "0", ")", "markAsDefinitelyUnknown", "(", "local", ")", ";", "}", "}", "public", "int", "nullStatus", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "isDefinitelyUnknown", "(", "local", ")", ")", "return", "FlowInfo", ".", "UNKNOWN", ";", "if", "(", "isDefinitelyNull", "(", "local", ")", ")", "return", "FlowInfo", ".", "NULL", ";", "if", "(", "isDefinitelyNonNull", "(", "local", ")", ")", "return", "FlowInfo", ".", "NON_NULL", ";", "int", "status", "=", "0", ";", "if", "(", "isPotentiallyUnknown", "(", "local", ")", ")", "status", "|=", "FlowInfo", ".", "POTENTIALLY_UNKNOWN", ";", "if", "(", "isPotentiallyNull", "(", "local", ")", ")", "status", "|=", "FlowInfo", ".", "POTENTIALLY_NULL", ";", "if", "(", "isPotentiallyNonNull", "(", "local", ")", ")", "status", "|=", "FlowInfo", ".", "POTENTIALLY_NON_NULL", ";", "if", "(", "status", ">", "0", ")", "return", "status", ";", "return", "FlowInfo", ".", "UNKNOWN", ";", "}", "public", "static", "UnconditionalFlowInfo", "mergedOptimizedBranches", "(", "FlowInfo", "initsWhenTrue", ",", "boolean", "isOptimizedTrue", ",", "FlowInfo", "initsWhenFalse", ",", "boolean", "isOptimizedFalse", ",", "boolean", "allowFakeDeadBranch", ")", "{", "UnconditionalFlowInfo", "mergedInfo", ";", "if", "(", "isOptimizedTrue", ")", "{", "if", "(", "initsWhenTrue", "==", "FlowInfo", ".", "DEAD_END", "&&", "allowFakeDeadBranch", ")", "{", "mergedInfo", "=", "initsWhenFalse", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", ".", "unconditionalInits", "(", ")", ";", "}", "else", "{", "mergedInfo", "=", "initsWhenTrue", ".", "addPotentialInitializationsFrom", "(", "initsWhenFalse", ".", "nullInfoLessUnconditionalCopy", "(", ")", ")", ".", "unconditionalInits", "(", ")", ";", "}", "}", "else", "if", "(", "isOptimizedFalse", ")", "{", "if", "(", "initsWhenFalse", "==", "FlowInfo", ".", "DEAD_END", "&&", "allowFakeDeadBranch", ")", "{", "mergedInfo", "=", "initsWhenTrue", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", ".", "unconditionalInits", "(", ")", ";", "}", "else", "{", "mergedInfo", "=", "initsWhenFalse", ".", "addPotentialInitializationsFrom", "(", "initsWhenTrue", ".", "nullInfoLessUnconditionalCopy", "(", ")", ")", ".", "unconditionalInits", "(", ")", ";", "}", "}", "else", "{", "mergedInfo", "=", "initsWhenTrue", ".", "mergedWith", "(", "initsWhenFalse", ".", "unconditionalInits", "(", ")", ")", ";", "}", "return", "mergedInfo", ";", "}", "public", "static", "UnconditionalFlowInfo", "mergedOptimizedBranchesIfElse", "(", "FlowInfo", "initsWhenTrue", ",", "boolean", "isOptimizedTrue", ",", "FlowInfo", "initsWhenFalse", ",", "boolean", "isOptimizedFalse", ",", "boolean", "allowFakeDeadBranch", ",", "FlowInfo", "flowInfo", ",", "IfStatement", "ifStatement", ",", "boolean", "reportDeadCodeInKnownPattern", ")", "{", "UnconditionalFlowInfo", "mergedInfo", ";", "if", "(", "isOptimizedTrue", ")", "{", "if", "(", "initsWhenTrue", "==", "FlowInfo", ".", "DEAD_END", "&&", "allowFakeDeadBranch", ")", "{", "if", "(", "!", "reportDeadCodeInKnownPattern", ")", "{", "if", "(", "ifStatement", ".", "elseStatement", "==", "null", ")", "{", "mergedInfo", "=", "flowInfo", ".", "unconditionalInits", "(", ")", ";", "}", "else", "{", "mergedInfo", "=", "initsWhenFalse", ".", "unconditionalInits", "(", ")", ";", "if", "(", "initsWhenFalse", "!=", "FlowInfo", ".", "DEAD_END", ")", "{", "mergedInfo", ".", "setReachMode", "(", "flowInfo", ".", "reachMode", "(", ")", ")", ";", "}", "}", "}", "else", "{", "mergedInfo", "=", "initsWhenFalse", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", ".", "unconditionalInits", "(", ")", ";", "}", "}", "else", "{", "mergedInfo", "=", "initsWhenTrue", ".", "addPotentialInitializationsFrom", "(", "initsWhenFalse", ".", "nullInfoLessUnconditionalCopy", "(", ")", ")", ".", "unconditionalInits", "(", ")", ";", "}", "}", "else", "if", "(", "isOptimizedFalse", ")", "{", "if", "(", "initsWhenFalse", "==", "FlowInfo", ".", "DEAD_END", "&&", "allowFakeDeadBranch", ")", "{", "if", "(", "!", "reportDeadCodeInKnownPattern", ")", "{", "if", "(", "ifStatement", ".", "thenStatement", "==", "null", ")", "{", "mergedInfo", "=", "flowInfo", ".", "unconditionalInits", "(", ")", ";", "}", "else", "{", "mergedInfo", "=", "initsWhenTrue", ".", "unconditionalInits", "(", ")", ";", "if", "(", "initsWhenTrue", "!=", "FlowInfo", ".", "DEAD_END", ")", "{", "mergedInfo", ".", "setReachMode", "(", "flowInfo", ".", "reachMode", "(", ")", ")", ";", "}", "}", "}", "else", "{", "mergedInfo", "=", "initsWhenTrue", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", ".", "unconditionalInits", "(", ")", ";", "}", "}", "else", "{", "mergedInfo", "=", "initsWhenFalse", ".", "addPotentialInitializationsFrom", "(", "initsWhenTrue", ".", "nullInfoLessUnconditionalCopy", "(", ")", ")", ".", "unconditionalInits", "(", ")", ";", "}", "}", "else", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", "&&", "(", "ifStatement", ".", "bits", "&", "ASTNode", ".", "IsElseStatementUnreachable", ")", "!=", "0", "&&", "initsWhenTrue", "!=", "FlowInfo", ".", "DEAD_END", "&&", "initsWhenFalse", "!=", "FlowInfo", ".", "DEAD_END", ")", "{", "mergedInfo", "=", "initsWhenTrue", ".", "addPotentialInitializationsFrom", "(", "initsWhenFalse", ".", "nullInfoLessUnconditionalCopy", "(", ")", ")", ".", "unconditionalInits", "(", ")", ";", "mergedInfo", ".", "definiteInits", "&=", "initsWhenFalse", ".", "unconditionalCopy", "(", ")", ".", "definiteInits", ";", "}", "else", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", "&&", "(", "ifStatement", ".", "bits", "&", "ASTNode", ".", "IsThenStatementUnreachable", ")", "!=", "0", "&&", "initsWhenTrue", "!=", "FlowInfo", ".", "DEAD_END", "&&", "initsWhenFalse", "!=", "FlowInfo", ".", "DEAD_END", ")", "{", "mergedInfo", "=", "initsWhenFalse", ".", "addPotentialInitializationsFrom", "(", "initsWhenTrue", ".", "nullInfoLessUnconditionalCopy", "(", ")", ")", ".", "unconditionalInits", "(", ")", ";", "mergedInfo", ".", "definiteInits", "&=", "initsWhenTrue", ".", "unconditionalCopy", "(", ")", ".", "definiteInits", ";", "}", "else", "{", "mergedInfo", "=", "initsWhenTrue", ".", "mergedWith", "(", "initsWhenFalse", ".", "unconditionalInits", "(", ")", ")", ";", "}", "return", "mergedInfo", ";", "}", "public", "int", "reachMode", "(", ")", "{", "return", "this", ".", "tagBits", "&", "UNREACHABLE", ";", "}", "abstract", "public", "FlowInfo", "safeInitsWhenTrue", "(", ")", ";", "abstract", "public", "FlowInfo", "setReachMode", "(", "int", "reachMode", ")", ";", "abstract", "public", "UnconditionalFlowInfo", "mergedWith", "(", "UnconditionalFlowInfo", "otherInits", ")", ";", "abstract", "public", "UnconditionalFlowInfo", "nullInfoLessUnconditionalCopy", "(", ")", ";", "public", "String", "toString", "(", ")", "{", "if", "(", "this", "==", "DEAD_END", ")", "{", "return", "\"\"", ";", "}", "return", "super", ".", "toString", "(", ")", ";", "}", "abstract", "public", "UnconditionalFlowInfo", "unconditionalCopy", "(", ")", ";", "abstract", "public", "UnconditionalFlowInfo", "unconditionalFieldLessCopy", "(", ")", ";", "abstract", "public", "UnconditionalFlowInfo", "unconditionalInits", "(", ")", ";", "abstract", "public", "UnconditionalFlowInfo", "unconditionalInitsWithoutSideEffect", "(", ")", ";", "abstract", "public", "void", "resetAssignmentInfo", "(", "LocalVariableBinding", "local", ")", ";", "}", "</s>" ]
3,392
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ";", "import", "java", ".", "util", ".", "ArrayList", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Expression", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "FakedTrackingVariable", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Reference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "BranchLabel", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "FieldBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "LocalVariableBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Scope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "VariableBinding", ";", "public", "class", "LoopingFlowContext", "extends", "SwitchFlowContext", "{", "public", "BranchLabel", "continueLabel", ";", "public", "UnconditionalFlowInfo", "initsOnContinue", "=", "FlowInfo", ".", "DEAD_END", ";", "private", "UnconditionalFlowInfo", "upstreamNullFlowInfo", ";", "private", "LoopingFlowContext", "innerFlowContexts", "[", "]", "=", "null", ";", "private", "UnconditionalFlowInfo", "innerFlowInfos", "[", "]", "=", "null", ";", "private", "int", "innerFlowContextsCount", "=", "0", ";", "private", "LabelFlowContext", "breakTargetContexts", "[", "]", "=", "null", ";", "private", "int", "breakTargetsCount", "=", "0", ";", "Reference", "finalAssignments", "[", "]", ";", "VariableBinding", "finalVariables", "[", "]", ";", "int", "assignCount", "=", "0", ";", "LocalVariableBinding", "[", "]", "nullLocals", ";", "ASTNode", "[", "]", "nullReferences", ";", "int", "[", "]", "nullCheckTypes", ";", "int", "nullCount", ";", "static", "private", "class", "EscapingExceptionCatchSite", "{", "final", "ReferenceBinding", "caughtException", ";", "final", "ExceptionHandlingFlowContext", "catchingContext", ";", "public", "EscapingExceptionCatchSite", "(", "ExceptionHandlingFlowContext", "catchingContext", ",", "ReferenceBinding", "caughtException", ")", "{", "this", ".", "catchingContext", "=", "catchingContext", ";", "this", ".", "caughtException", "=", "caughtException", ";", "}", "void", "simulateThrowAfterLoopBack", "(", "FlowInfo", "flowInfo", ")", "{", "this", ".", "catchingContext", ".", "recordHandlingException", "(", "this", ".", "caughtException", ",", "flowInfo", ".", "unconditionalInits", "(", ")", ",", "null", ",", "null", ",", "null", ",", "true", ")", ";", "}", "}", "private", "ArrayList", "escapingExceptionCatchSites", "=", "null", ";", "Scope", "associatedScope", ";", "public", "LoopingFlowContext", "(", "FlowContext", "parent", ",", "FlowInfo", "upstreamNullFlowInfo", ",", "ASTNode", "associatedNode", ",", "BranchLabel", "breakLabel", ",", "BranchLabel", "continueLabel", ",", "Scope", "associatedScope", ")", "{", "super", "(", "parent", ",", "associatedNode", ",", "breakLabel", ")", ";", "this", ".", "tagBits", "|=", "FlowContext", ".", "PREEMPT_NULL_DIAGNOSTIC", ";", "this", ".", "continueLabel", "=", "continueLabel", ";", "this", ".", "associatedScope", "=", "associatedScope", ";", "this", ".", "upstreamNullFlowInfo", "=", "upstreamNullFlowInfo", ".", "unconditionalCopy", "(", ")", ";", "}", "public", "void", "complainOnDeferredFinalChecks", "(", "BlockScope", "scope", ",", "FlowInfo", "flowInfo", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "assignCount", ";", "i", "++", ")", "{", "VariableBinding", "variable", "=", "this", ".", "finalVariables", "[", "i", "]", ";", "if", "(", "variable", "==", "null", ")", "continue", ";", "boolean", "complained", "=", "false", ";", "if", "(", "variable", "instanceof", "FieldBinding", ")", "{", "if", "(", "flowInfo", ".", "isPotentiallyAssigned", "(", "(", "FieldBinding", ")", "variable", ")", ")", "{", "complained", "=", "true", ";", "scope", ".", "problemReporter", "(", ")", ".", "duplicateInitializationOfBlankFinalField", "(", "(", "FieldBinding", ")", "variable", ",", "this", ".", "finalAssignments", "[", "i", "]", ")", ";", "}", "}", "else", "{", "if", "(", "flowInfo", ".", "isPotentiallyAssigned", "(", "(", "LocalVariableBinding", ")", "variable", ")", ")", "{", "complained", "=", "true", ";", "scope", ".", "problemReporter", "(", ")", ".", "duplicateInitializationOfFinalLocal", "(", "(", "LocalVariableBinding", ")", "variable", ",", "this", ".", "finalAssignments", "[", "i", "]", ")", ";", "}", "}", "if", "(", "complained", ")", "{", "FlowContext", "context", "=", "this", ".", "getLocalParent", "(", ")", ";", "while", "(", "context", "!=", "null", ")", "{", "context", ".", "removeFinalAssignmentIfAny", "(", "this", ".", "finalAssignments", "[", "i", "]", ")", ";", "context", "=", "context", ".", "getLocalParent", "(", ")", ";", "}", "}", "}", "}", "public", "void", "complainOnDeferredNullChecks", "(", "BlockScope", "scope", ",", "FlowInfo", "callerFlowInfo", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "innerFlowContextsCount", ";", "i", "++", ")", "{", "this", ".", "upstreamNullFlowInfo", ".", "addPotentialNullInfoFrom", "(", "this", ".", "innerFlowContexts", "[", "i", "]", ".", "upstreamNullFlowInfo", ")", ".", "addPotentialNullInfoFrom", "(", "this", ".", "innerFlowInfos", "[", "i", "]", ")", ";", "}", "this", ".", "innerFlowContextsCount", "=", "0", ";", "UnconditionalFlowInfo", "flowInfo", "=", "this", ".", "upstreamNullFlowInfo", ".", "addPotentialNullInfoFrom", "(", "callerFlowInfo", ".", "unconditionalInitsWithoutSideEffect", "(", ")", ")", ";", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "DEFER_NULL_DIAGNOSTIC", ")", "!=", "0", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "nullCount", ";", "i", "++", ")", "{", "LocalVariableBinding", "local", "=", "this", ".", "nullLocals", "[", "i", "]", ";", "ASTNode", "location", "=", "this", ".", "nullReferences", "[", "i", "]", ";", "switch", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", "{", "case", "CAN_ONLY_NON_NULL", "|", "IN_COMPARISON_NULL", ":", "case", "CAN_ONLY_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ":", "if", "(", "flowInfo", ".", "isDefinitelyNonNull", "(", "local", ")", ")", "{", "this", ".", "nullReferences", "[", "i", "]", "=", "null", ";", "if", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", "==", "(", "CAN_ONLY_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ")", ")", "{", "if", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNonNull", "(", "local", ",", "location", ")", ";", "}", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNonNullComparedToNull", "(", "local", ",", "location", ")", ";", "}", "continue", ";", "}", "break", ";", "case", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NULL", ":", "case", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ":", "if", "(", "flowInfo", ".", "isDefinitelyNonNull", "(", "local", ")", ")", "{", "this", ".", "nullReferences", "[", "i", "]", "=", "null", ";", "if", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", "==", "(", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ")", ")", "{", "if", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNonNull", "(", "local", ",", "location", ")", ";", "}", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNonNullComparedToNull", "(", "local", ",", "location", ")", ";", "}", "continue", ";", "}", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "this", ".", "nullReferences", "[", "i", "]", "=", "null", ";", "if", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", "==", "(", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NULL", ")", ")", "{", "if", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNull", "(", "local", ",", "location", ")", ";", "}", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullComparedToNonNull", "(", "local", ",", "location", ")", ";", "}", "continue", ";", "}", "break", ";", "case", "CAN_ONLY_NULL", "|", "IN_COMPARISON_NULL", ":", "case", "CAN_ONLY_NULL", "|", "IN_COMPARISON_NON_NULL", ":", "case", "CAN_ONLY_NULL", "|", "IN_ASSIGNMENT", ":", "case", "CAN_ONLY_NULL", "|", "IN_INSTANCEOF", ":", "Expression", "expression", "=", "(", "Expression", ")", "location", ";", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "this", ".", "nullReferences", "[", "i", "]", "=", "null", ";", "switch", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "if", "(", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CHECK_MASK", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "expression", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "expression", ")", ";", "continue", ";", "}", "if", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNull", "(", "local", ",", "expression", ")", ";", "}", "continue", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CHECK_MASK", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "expression", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "expression", ")", ";", "continue", ";", "}", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullComparedToNonNull", "(", "local", ",", "expression", ")", ";", "continue", ";", "case", "FlowContext", ".", "IN_ASSIGNMENT", ":", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantNullAssignment", "(", "local", ",", "expression", ")", ";", "continue", ";", "case", "FlowContext", ".", "IN_INSTANCEOF", ":", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullInstanceof", "(", "local", ",", "expression", ")", ";", "continue", ";", "}", "}", "else", "if", "(", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", ")", "{", "switch", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "this", ".", "nullReferences", "[", "i", "]", "=", "null", ";", "if", "(", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CHECK_MASK", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "expression", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "expression", ")", ";", "continue", ";", "}", "break", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "this", ".", "nullReferences", "[", "i", "]", "=", "null", ";", "if", "(", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CHECK_MASK", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "expression", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "expression", ")", ";", "continue", ";", "}", "break", ";", "}", "}", "break", ";", "case", "MAY_NULL", ":", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "this", ".", "nullReferences", "[", "i", "]", "=", "null", ";", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "location", ")", ";", "continue", ";", "}", "break", ";", "case", "ASSIGN_TO_NONNULL", ":", "int", "nullStatus", "=", "flowInfo", ".", "nullStatus", "(", "local", ")", ";", "if", "(", "nullStatus", "!=", "FlowInfo", ".", "NON_NULL", ")", "{", "this", ".", "parent", ".", "recordNullityMismatch", "(", "scope", ",", "(", "Expression", ")", "location", ",", "this", ".", "providedExpectedTypes", "[", "i", "]", "[", "0", "]", ",", "this", ".", "providedExpectedTypes", "[", "i", "]", "[", "1", "]", ",", "nullStatus", ")", ";", "}", "break", ";", "case", "EXIT_RESOURCE", ":", "FakedTrackingVariable", "trackingVar", "=", "local", ".", "closeTracker", ";", "if", "(", "trackingVar", "!=", "null", ")", "{", "if", "(", "trackingVar", ".", "hasDefinitelyNoResource", "(", "flowInfo", ")", ")", "{", "continue", ";", "}", "if", "(", "trackingVar", ".", "isClosedInFinallyOfEnclosing", "(", "scope", ")", ")", "{", "continue", ";", "}", "if", "(", "this", ".", "parent", ".", "recordExitAgainstResource", "(", "scope", ",", "flowInfo", ",", "trackingVar", ",", "location", ")", ")", "{", "this", ".", "nullReferences", "[", "i", "]", "=", "null", ";", "continue", ";", "}", "}", "break", ";", "default", ":", "}", "this", ".", "parent", ".", "recordUsingNullReference", "(", "scope", ",", "local", ",", "location", ",", "this", ".", "nullCheckTypes", "[", "i", "]", ",", "flowInfo", ")", ";", "}", "}", "else", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "nullCount", ";", "i", "++", ")", "{", "ASTNode", "location", "=", "this", ".", "nullReferences", "[", "i", "]", ";", "LocalVariableBinding", "local", "=", "this", ".", "nullLocals", "[", "i", "]", ";", "switch", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", "{", "case", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NULL", ":", "case", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ":", "if", "(", "flowInfo", ".", "isDefinitelyNonNull", "(", "local", ")", ")", "{", "this", ".", "nullReferences", "[", "i", "]", "=", "null", ";", "if", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", "==", "(", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ")", ")", "{", "if", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNonNull", "(", "local", ",", "location", ")", ";", "}", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNonNullComparedToNull", "(", "local", ",", "location", ")", ";", "}", "continue", ";", "}", "case", "CAN_ONLY_NULL", "|", "IN_COMPARISON_NULL", ":", "case", "CAN_ONLY_NULL", "|", "IN_COMPARISON_NON_NULL", ":", "case", "CAN_ONLY_NULL", "|", "IN_ASSIGNMENT", ":", "case", "CAN_ONLY_NULL", "|", "IN_INSTANCEOF", ":", "Expression", "expression", "=", "(", "Expression", ")", "location", ";", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "this", ".", "nullReferences", "[", "i", "]", "=", "null", ";", "switch", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "if", "(", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CHECK_MASK", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "expression", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "expression", ")", ";", "continue", ";", "}", "if", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNull", "(", "local", ",", "expression", ")", ";", "}", "continue", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CHECK_MASK", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "expression", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "expression", ")", ";", "continue", ";", "}", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullComparedToNonNull", "(", "local", ",", "expression", ")", ";", "continue", ";", "case", "FlowContext", ".", "IN_ASSIGNMENT", ":", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantNullAssignment", "(", "local", ",", "expression", ")", ";", "continue", ";", "case", "FlowContext", ".", "IN_INSTANCEOF", ":", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullInstanceof", "(", "local", ",", "expression", ")", ";", "continue", ";", "}", "}", "else", "if", "(", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", ")", "{", "switch", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "this", ".", "nullReferences", "[", "i", "]", "=", "null", ";", "if", "(", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CHECK_MASK", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "expression", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "expression", ")", ";", "continue", ";", "}", "break", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "this", ".", "nullReferences", "[", "i", "]", "=", "null", ";", "if", "(", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CHECK_MASK", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "expression", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "expression", ")", ";", "continue", ";", "}", "break", ";", "}", "}", "break", ";", "case", "MAY_NULL", ":", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "this", ".", "nullReferences", "[", "i", "]", "=", "null", ";", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "location", ")", ";", "continue", ";", "}", "if", "(", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", ")", "{", "this", ".", "nullReferences", "[", "i", "]", "=", "null", ";", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "location", ")", ";", "continue", ";", "}", "break", ";", "case", "ASSIGN_TO_NONNULL", ":", "int", "nullStatus", "=", "flowInfo", ".", "nullStatus", "(", "local", ")", ";", "if", "(", "nullStatus", "!=", "FlowInfo", ".", "NON_NULL", ")", "{", "char", "[", "]", "[", "]", "annotationName", "=", "scope", ".", "environment", "(", ")", ".", "getNonNullAnnotationName", "(", ")", ";", "scope", ".", "problemReporter", "(", ")", ".", "nullityMismatch", "(", "(", "Expression", ")", "location", ",", "this", ".", "providedExpectedTypes", "[", "i", "]", "[", "0", "]", ",", "this", ".", "providedExpectedTypes", "[", "i", "]", "[", "1", "]", ",", "nullStatus", ",", "annotationName", ")", ";", "}", "break", ";", "case", "EXIT_RESOURCE", ":", "nullStatus", "=", "flowInfo", ".", "nullStatus", "(", "local", ")", ";", "if", "(", "nullStatus", "!=", "FlowInfo", ".", "NON_NULL", ")", "{", "FakedTrackingVariable", "closeTracker", "=", "local", ".", "closeTracker", ";", "if", "(", "closeTracker", "!=", "null", ")", "{", "if", "(", "closeTracker", ".", "hasDefinitelyNoResource", "(", "flowInfo", ")", ")", "{", "continue", ";", "}", "if", "(", "closeTracker", ".", "isClosedInFinallyOfEnclosing", "(", "scope", ")", ")", "{", "continue", ";", "}", "nullStatus", "=", "closeTracker", ".", "findMostSpecificStatus", "(", "flowInfo", ",", "scope", ",", "null", ")", ";", "closeTracker", ".", "recordErrorLocation", "(", "this", ".", "nullReferences", "[", "i", "]", ",", "nullStatus", ")", ";", "closeTracker", ".", "reportRecordedErrors", "(", "scope", ",", "nullStatus", ")", ";", "this", ".", "nullReferences", "[", "i", "]", "=", "null", ";", "continue", ";", "}", "}", "break", ";", "default", ":", "}", "}", "}", "this", ".", "initsOnBreak", ".", "addPotentialNullInfoFrom", "(", "flowInfo", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "breakTargetsCount", ";", "i", "++", ")", "{", "this", ".", "breakTargetContexts", "[", "i", "]", ".", "initsOnBreak", ".", "addPotentialNullInfoFrom", "(", "flowInfo", ")", ";", "}", "}", "public", "BranchLabel", "continueLabel", "(", ")", "{", "return", "this", ".", "continueLabel", ";", "}", "public", "String", "individualToString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "\"\"", ")", ";", "buffer", ".", "append", "(", "\"\"", ")", ".", "append", "(", "this", ".", "initsOnBreak", ".", "toString", "(", ")", ")", ".", "append", "(", "']'", ")", ";", "buffer", ".", "append", "(", "\"\"", ")", ".", "append", "(", "this", ".", "initsOnContinue", ".", "toString", "(", ")", ")", ".", "append", "(", "']'", ")", ";", "buffer", ".", "append", "(", "\"\"", ")", ".", "append", "(", "this", ".", "assignCount", ")", ".", "append", "(", "']'", ")", ";", "buffer", ".", "append", "(", "\"\"", ")", ".", "append", "(", "this", ".", "nullCount", ")", ".", "append", "(", "']'", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}", "public", "boolean", "isContinuable", "(", ")", "{", "return", "true", ";", "}", "public", "boolean", "isContinuedTo", "(", ")", "{", "return", "this", ".", "initsOnContinue", "!=", "FlowInfo", ".", "DEAD_END", ";", "}", "public", "void", "recordBreakTo", "(", "FlowContext", "targetContext", ")", "{", "if", "(", "targetContext", "instanceof", "LabelFlowContext", ")", "{", "int", "current", ";", "if", "(", "(", "current", "=", "this", ".", "breakTargetsCount", "++", ")", "==", "0", ")", "{", "this", ".", "breakTargetContexts", "=", "new", "LabelFlowContext", "[", "2", "]", ";", "}", "else", "if", "(", "current", "==", "this", ".", "breakTargetContexts", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "breakTargetContexts", ",", "0", ",", "this", ".", "breakTargetContexts", "=", "new", "LabelFlowContext", "[", "current", "+", "2", "]", ",", "0", ",", "current", ")", ";", "}", "this", ".", "breakTargetContexts", "[", "current", "]", "=", "(", "LabelFlowContext", ")", "targetContext", ";", "}", "}", "public", "void", "recordContinueFrom", "(", "FlowContext", "innerFlowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "==", "0", ")", "{", "if", "(", "(", "this", ".", "initsOnContinue", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "==", "0", ")", "{", "this", ".", "initsOnContinue", "=", "this", ".", "initsOnContinue", ".", "mergedWith", "(", "flowInfo", ".", "unconditionalInitsWithoutSideEffect", "(", ")", ")", ";", "}", "else", "{", "this", ".", "initsOnContinue", "=", "flowInfo", ".", "unconditionalCopy", "(", ")", ";", "}", "FlowContext", "inner", "=", "innerFlowContext", ";", "while", "(", "inner", "!=", "this", "&&", "!", "(", "inner", "instanceof", "LoopingFlowContext", ")", ")", "{", "inner", "=", "inner", ".", "parent", ";", "}", "if", "(", "inner", "==", "this", ")", "{", "this", ".", "upstreamNullFlowInfo", ".", "addPotentialNullInfoFrom", "(", "flowInfo", ".", "unconditionalInitsWithoutSideEffect", "(", ")", ")", ";", "}", "else", "{", "int", "length", "=", "0", ";", "if", "(", "this", ".", "innerFlowContexts", "==", "null", ")", "{", "this", ".", "innerFlowContexts", "=", "new", "LoopingFlowContext", "[", "5", "]", ";", "this", ".", "innerFlowInfos", "=", "new", "UnconditionalFlowInfo", "[", "5", "]", ";", "}", "else", "if", "(", "this", ".", "innerFlowContextsCount", "==", "(", "length", "=", "this", ".", "innerFlowContexts", ".", "length", ")", "-", "1", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "innerFlowContexts", ",", "0", ",", "(", "this", ".", "innerFlowContexts", "=", "new", "LoopingFlowContext", "[", "length", "+", "5", "]", ")", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "innerFlowInfos", ",", "0", ",", "(", "this", ".", "innerFlowInfos", "=", "new", "UnconditionalFlowInfo", "[", "length", "+", "5", "]", ")", ",", "0", ",", "length", ")", ";", "}", "this", ".", "innerFlowContexts", "[", "this", ".", "innerFlowContextsCount", "]", "=", "(", "LoopingFlowContext", ")", "inner", ";", "this", ".", "innerFlowInfos", "[", "this", ".", "innerFlowContextsCount", "++", "]", "=", "flowInfo", ".", "unconditionalInitsWithoutSideEffect", "(", ")", ";", "}", "}", "}", "protected", "boolean", "recordFinalAssignment", "(", "VariableBinding", "binding", ",", "Reference", "finalAssignment", ")", "{", "if", "(", "binding", "instanceof", "LocalVariableBinding", ")", "{", "Scope", "scope", "=", "(", "(", "LocalVariableBinding", ")", "binding", ")", ".", "declaringScope", ";", "while", "(", "(", "scope", "=", "scope", ".", "parent", ")", "!=", "null", ")", "{", "if", "(", "scope", "==", "this", ".", "associatedScope", ")", "return", "false", ";", "}", "}", "if", "(", "this", ".", "assignCount", "==", "0", ")", "{", "this", ".", "finalAssignments", "=", "new", "Reference", "[", "5", "]", ";", "this", ".", "finalVariables", "=", "new", "VariableBinding", "[", "5", "]", ";", "}", "else", "{", "if", "(", "this", ".", "assignCount", "==", "this", ".", "finalAssignments", ".", "length", ")", "System", ".", "arraycopy", "(", "this", ".", "finalAssignments", ",", "0", ",", "(", "this", ".", "finalAssignments", "=", "new", "Reference", "[", "this", ".", "assignCount", "*", "2", "]", ")", ",", "0", ",", "this", ".", "assignCount", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "finalVariables", ",", "0", ",", "(", "this", ".", "finalVariables", "=", "new", "VariableBinding", "[", "this", ".", "assignCount", "*", "2", "]", ")", ",", "0", ",", "this", ".", "assignCount", ")", ";", "}", "this", ".", "finalAssignments", "[", "this", ".", "assignCount", "]", "=", "finalAssignment", ";", "this", ".", "finalVariables", "[", "this", ".", "assignCount", "++", "]", "=", "binding", ";", "return", "true", ";", "}", "protected", "void", "recordNullReference", "(", "LocalVariableBinding", "local", ",", "ASTNode", "expression", ",", "int", "status", ")", "{", "if", "(", "this", ".", "nullCount", "==", "0", ")", "{", "this", ".", "nullLocals", "=", "new", "LocalVariableBinding", "[", "5", "]", ";", "this", ".", "nullReferences", "=", "new", "ASTNode", "[", "5", "]", ";", "this", ".", "nullCheckTypes", "=", "new", "int", "[", "5", "]", ";", "}", "else", "if", "(", "this", ".", "nullCount", "==", "this", ".", "nullLocals", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "nullLocals", ",", "0", ",", "this", ".", "nullLocals", "=", "new", "LocalVariableBinding", "[", "this", ".", "nullCount", "*", "2", "]", ",", "0", ",", "this", ".", "nullCount", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "nullReferences", ",", "0", ",", "this", ".", "nullReferences", "=", "new", "ASTNode", "[", "this", ".", "nullCount", "*", "2", "]", ",", "0", ",", "this", ".", "nullCount", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "nullCheckTypes", ",", "0", ",", "this", ".", "nullCheckTypes", "=", "new", "int", "[", "this", ".", "nullCount", "*", "2", "]", ",", "0", ",", "this", ".", "nullCount", ")", ";", "}", "this", ".", "nullLocals", "[", "this", ".", "nullCount", "]", "=", "local", ";", "this", ".", "nullReferences", "[", "this", ".", "nullCount", "]", "=", "expression", ";", "this", ".", "nullCheckTypes", "[", "this", ".", "nullCount", "++", "]", "=", "status", ";", "}", "public", "boolean", "recordExitAgainstResource", "(", "BlockScope", "scope", ",", "FlowInfo", "flowInfo", ",", "FakedTrackingVariable", "trackingVar", ",", "ASTNode", "reference", ")", "{", "LocalVariableBinding", "local", "=", "trackingVar", ".", "binding", ";", "if", "(", "flowInfo", ".", "isDefinitelyNonNull", "(", "local", ")", ")", "{", "return", "false", ";", "}", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unclosedCloseable", "(", "trackingVar", ",", "reference", ")", ";", "return", "true", ";", "}", "if", "(", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "potentiallyUnclosedCloseable", "(", "trackingVar", ",", "reference", ")", ";", "return", "true", ";", "}", "recordNullReference", "(", "trackingVar", ".", "binding", ",", "reference", ",", "EXIT_RESOURCE", ")", ";", "return", "true", ";", "}", "public", "void", "recordUsingNullReference", "(", "Scope", "scope", ",", "LocalVariableBinding", "local", ",", "ASTNode", "location", ",", "int", "checkType", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", "||", "flowInfo", ".", "isDefinitelyUnknown", "(", "local", ")", ")", "{", "return", ";", "}", "checkType", "|=", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", ";", "int", "checkTypeWithoutHideNullWarning", "=", "checkType", "&", "~", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING_MASK", ";", "switch", "(", "checkTypeWithoutHideNullWarning", ")", "{", "case", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NULL", ":", "case", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ":", "Expression", "reference", "=", "(", "Expression", ")", "location", ";", "if", "(", "flowInfo", ".", "isDefinitelyNonNull", "(", "local", ")", ")", "{", "if", "(", "checkTypeWithoutHideNullWarning", "==", "(", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ")", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNonNull", "(", "local", ",", "reference", ")", ";", "}", "flowInfo", ".", "initsWhenFalse", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNonNullComparedToNull", "(", "local", ",", "reference", ")", ";", "flowInfo", ".", "initsWhenTrue", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "}", "else", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "if", "(", "checkTypeWithoutHideNullWarning", "==", "(", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NULL", ")", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNull", "(", "local", ",", "reference", ")", ";", "}", "flowInfo", ".", "initsWhenFalse", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullComparedToNonNull", "(", "local", ",", "reference", ")", ";", "flowInfo", ".", "initsWhenTrue", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "}", "else", "if", "(", "this", ".", "upstreamNullFlowInfo", ".", "isDefinitelyNonNull", "(", "local", ")", "&&", "!", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", "&&", "!", "flowInfo", ".", "isPotentiallyUnknown", "(", "local", ")", ")", "{", "flowInfo", ".", "markAsDefinitelyNonNull", "(", "local", ")", ";", "recordNullReference", "(", "local", ",", "reference", ",", "checkType", ")", ";", "}", "else", "if", "(", "flowInfo", ".", "cannotBeDefinitelyNullOrNonNull", "(", "local", ")", ")", "{", "return", ";", "}", "else", "{", "if", "(", "flowInfo", ".", "isPotentiallyNonNull", "(", "local", ")", ")", "{", "recordNullReference", "(", "local", ",", "reference", ",", "CAN_ONLY_NON_NULL", "|", "checkType", "&", "(", "CONTEXT_MASK", "|", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", ")", ";", "}", "else", "if", "(", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", ")", "{", "recordNullReference", "(", "local", ",", "reference", ",", "CAN_ONLY_NULL", "|", "checkType", "&", "(", "CONTEXT_MASK", "|", "HIDE_NULL_COMPARISON_WARNING_MASK", ")", ")", ";", "}", "else", "{", "recordNullReference", "(", "local", ",", "reference", ",", "checkType", ")", ";", "}", "}", "return", ";", "case", "CAN_ONLY_NULL", "|", "IN_COMPARISON_NULL", ":", "case", "CAN_ONLY_NULL", "|", "IN_COMPARISON_NON_NULL", ":", "case", "CAN_ONLY_NULL", "|", "IN_ASSIGNMENT", ":", "case", "CAN_ONLY_NULL", "|", "IN_INSTANCEOF", ":", "reference", "=", "(", "Expression", ")", "location", ";", "if", "(", "flowInfo", ".", "isPotentiallyNonNull", "(", "local", ")", "||", "flowInfo", ".", "isPotentiallyUnknown", "(", "local", ")", "||", "flowInfo", ".", "isProtectedNonNull", "(", "local", ")", ")", "{", "return", ";", "}", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "switch", "(", "checkTypeWithoutHideNullWarning", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "if", "(", "(", "(", "checkTypeWithoutHideNullWarning", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "reference", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNull", "(", "local", ",", "reference", ")", ";", "}", "flowInfo", ".", "initsWhenFalse", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "return", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "checkTypeWithoutHideNullWarning", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "reference", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullComparedToNonNull", "(", "local", ",", "reference", ")", ";", "flowInfo", ".", "initsWhenTrue", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "return", ";", "case", "FlowContext", ".", "IN_ASSIGNMENT", ":", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantNullAssignment", "(", "local", ",", "reference", ")", ";", "return", ";", "case", "FlowContext", ".", "IN_INSTANCEOF", ":", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullInstanceof", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "}", "else", "if", "(", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", ")", "{", "switch", "(", "checkTypeWithoutHideNullWarning", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "if", "(", "(", "(", "checkTypeWithoutHideNullWarning", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "reference", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "break", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "checkTypeWithoutHideNullWarning", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "reference", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "break", ";", "}", "}", "recordNullReference", "(", "local", ",", "reference", ",", "checkType", ")", ";", "return", ";", "case", "MAY_NULL", ":", "if", "(", "flowInfo", ".", "isDefinitelyNonNull", "(", "local", ")", ")", "{", "return", ";", "}", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "location", ")", ";", "return", ";", "}", "if", "(", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "location", ")", ";", "return", ";", "}", "recordNullReference", "(", "local", ",", "location", ",", "checkType", ")", ";", "return", ";", "default", ":", "}", "}", "void", "removeFinalAssignmentIfAny", "(", "Reference", "reference", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "assignCount", ";", "i", "++", ")", "{", "if", "(", "this", ".", "finalAssignments", "[", "i", "]", "==", "reference", ")", "{", "this", ".", "finalAssignments", "[", "i", "]", "=", "null", ";", "this", ".", "finalVariables", "[", "i", "]", "=", "null", ";", "return", ";", "}", "}", "}", "public", "void", "simulateThrowAfterLoopBack", "(", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "escapingExceptionCatchSites", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "exceptionCount", "=", "this", ".", "escapingExceptionCatchSites", ".", "size", "(", ")", ";", "i", "<", "exceptionCount", ";", "i", "++", ")", "{", "(", "(", "EscapingExceptionCatchSite", ")", "this", ".", "escapingExceptionCatchSites", ".", "get", "(", "i", ")", ")", ".", "simulateThrowAfterLoopBack", "(", "flowInfo", ")", ";", "}", "this", ".", "escapingExceptionCatchSites", "=", "null", ";", "}", "}", "public", "void", "recordCatchContextOfEscapingException", "(", "ExceptionHandlingFlowContext", "catchingContext", ",", "ReferenceBinding", "caughtException", ")", "{", "if", "(", "this", ".", "escapingExceptionCatchSites", "==", "null", ")", "{", "this", ".", "escapingExceptionCatchSites", "=", "new", "ArrayList", "(", "5", ")", ";", "}", "this", ".", "escapingExceptionCatchSites", ".", "add", "(", "new", "EscapingExceptionCatchSite", "(", "catchingContext", ",", "caughtException", ")", ")", ";", "}", "public", "boolean", "hasEscapingExceptions", "(", ")", "{", "return", "this", ".", "escapingExceptionCatchSites", "!=", "null", ";", "}", "protected", "boolean", "internalRecordNullityMismatch", "(", "Expression", "expression", ",", "TypeBinding", "providedType", ",", "int", "nullStatus", ",", "TypeBinding", "expectedType", ",", "int", "checkType", ")", "{", "recordProvidedExpectedTypes", "(", "providedType", ",", "expectedType", ",", "this", ".", "nullCount", ")", ";", "recordNullReference", "(", "expression", ".", "localVariableBinding", "(", ")", ",", "expression", ",", "checkType", ")", ";", "return", "true", ";", "}", "}", "</s>" ]
3,393
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Binding", ";", "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", "InitializationFlowContext", "extends", "ExceptionHandlingFlowContext", "{", "public", "int", "exceptionCount", ";", "public", "TypeBinding", "[", "]", "thrownExceptions", "=", "new", "TypeBinding", "[", "5", "]", ";", "public", "ASTNode", "[", "]", "exceptionThrowers", "=", "new", "ASTNode", "[", "5", "]", ";", "public", "FlowInfo", "[", "]", "exceptionThrowerFlowInfos", "=", "new", "FlowInfo", "[", "5", "]", ";", "public", "FlowInfo", "initsBeforeContext", ";", "public", "InitializationFlowContext", "(", "FlowContext", "parent", ",", "ASTNode", "associatedNode", ",", "FlowInfo", "initsBeforeContext", ",", "FlowContext", "initializationParent", ",", "BlockScope", "scope", ")", "{", "super", "(", "parent", ",", "associatedNode", ",", "Binding", ".", "NO_EXCEPTIONS", ",", "initializationParent", ",", "scope", ",", "FlowInfo", ".", "DEAD_END", ")", ";", "this", ".", "initsBeforeContext", "=", "initsBeforeContext", ";", "}", "public", "void", "checkInitializerExceptions", "(", "BlockScope", "currentScope", ",", "FlowContext", "initializerContext", ",", "FlowInfo", "flowInfo", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "exceptionCount", ";", "i", "++", ")", "{", "initializerContext", ".", "checkExceptionHandlers", "(", "this", ".", "thrownExceptions", "[", "i", "]", ",", "this", ".", "exceptionThrowers", "[", "i", "]", ",", "this", ".", "exceptionThrowerFlowInfos", "[", "i", "]", ",", "currentScope", ")", ";", "}", "}", "public", "String", "individualToString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "\"\"", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "exceptionCount", ";", "i", "++", ")", "{", "buffer", ".", "append", "(", "'['", ")", ".", "append", "(", "this", ".", "thrownExceptions", "[", "i", "]", ".", "readableName", "(", ")", ")", ";", "buffer", ".", "append", "(", "'-'", ")", ".", "append", "(", "this", ".", "exceptionThrowerFlowInfos", "[", "i", "]", ".", "toString", "(", ")", ")", ".", "append", "(", "']'", ")", ";", "}", "return", "buffer", ".", "toString", "(", ")", ";", "}", "public", "void", "recordHandlingException", "(", "ReferenceBinding", "exceptionType", ",", "UnconditionalFlowInfo", "flowInfo", ",", "TypeBinding", "raisedException", ",", "TypeBinding", "caughtException", ",", "ASTNode", "invocationSite", ",", "boolean", "wasMasked", ")", "{", "int", "size", "=", "this", ".", "thrownExceptions", ".", "length", ";", "if", "(", "this", ".", "exceptionCount", "==", "size", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "thrownExceptions", ",", "0", ",", "(", "this", ".", "thrownExceptions", "=", "new", "TypeBinding", "[", "size", "*", "2", "]", ")", ",", "0", ",", "size", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "exceptionThrowers", ",", "0", ",", "(", "this", ".", "exceptionThrowers", "=", "new", "ASTNode", "[", "size", "*", "2", "]", ")", ",", "0", ",", "size", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "exceptionThrowerFlowInfos", ",", "0", ",", "(", "this", ".", "exceptionThrowerFlowInfos", "=", "new", "FlowInfo", "[", "size", "*", "2", "]", ")", ",", "0", ",", "size", ")", ";", "}", "this", ".", "thrownExceptions", "[", "this", ".", "exceptionCount", "]", "=", "raisedException", ";", "this", ".", "exceptionThrowers", "[", "this", ".", "exceptionCount", "]", "=", "invocationSite", ";", "this", ".", "exceptionThrowerFlowInfos", "[", "this", ".", "exceptionCount", "++", "]", "=", "flowInfo", ".", "copy", "(", ")", ";", "}", "}", "</s>" ]
3,394
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "FieldBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "LocalVariableBinding", ";", "public", "class", "ConditionalFlowInfo", "extends", "FlowInfo", "{", "public", "FlowInfo", "initsWhenTrue", ";", "public", "FlowInfo", "initsWhenFalse", ";", "ConditionalFlowInfo", "(", "FlowInfo", "initsWhenTrue", ",", "FlowInfo", "initsWhenFalse", ")", "{", "this", ".", "initsWhenTrue", "=", "initsWhenTrue", ";", "this", ".", "initsWhenFalse", "=", "initsWhenFalse", ";", "}", "public", "FlowInfo", "addInitializationsFrom", "(", "FlowInfo", "otherInits", ")", "{", "this", ".", "initsWhenTrue", ".", "addInitializationsFrom", "(", "otherInits", ")", ";", "this", ".", "initsWhenFalse", ".", "addInitializationsFrom", "(", "otherInits", ")", ";", "return", "this", ";", "}", "public", "FlowInfo", "addNullInfoFrom", "(", "FlowInfo", "otherInits", ")", "{", "this", ".", "initsWhenTrue", ".", "addNullInfoFrom", "(", "otherInits", ")", ";", "this", ".", "initsWhenFalse", ".", "addNullInfoFrom", "(", "otherInits", ")", ";", "return", "this", ";", "}", "public", "FlowInfo", "addPotentialInitializationsFrom", "(", "FlowInfo", "otherInits", ")", "{", "this", ".", "initsWhenTrue", ".", "addPotentialInitializationsFrom", "(", "otherInits", ")", ";", "this", ".", "initsWhenFalse", ".", "addPotentialInitializationsFrom", "(", "otherInits", ")", ";", "return", "this", ";", "}", "public", "FlowInfo", "asNegatedCondition", "(", ")", "{", "FlowInfo", "extra", "=", "this", ".", "initsWhenTrue", ";", "this", ".", "initsWhenTrue", "=", "this", ".", "initsWhenFalse", ";", "this", ".", "initsWhenFalse", "=", "extra", ";", "return", "this", ";", "}", "public", "FlowInfo", "copy", "(", ")", "{", "return", "new", "ConditionalFlowInfo", "(", "this", ".", "initsWhenTrue", ".", "copy", "(", ")", ",", "this", ".", "initsWhenFalse", ".", "copy", "(", ")", ")", ";", "}", "public", "FlowInfo", "initsWhenFalse", "(", ")", "{", "return", "this", ".", "initsWhenFalse", ";", "}", "public", "FlowInfo", "initsWhenTrue", "(", ")", "{", "return", "this", ".", "initsWhenTrue", ";", "}", "public", "boolean", "isDefinitelyAssigned", "(", "FieldBinding", "field", ")", "{", "return", "this", ".", "initsWhenTrue", ".", "isDefinitelyAssigned", "(", "field", ")", "&&", "this", ".", "initsWhenFalse", ".", "isDefinitelyAssigned", "(", "field", ")", ";", "}", "public", "boolean", "isDefinitelyAssigned", "(", "LocalVariableBinding", "local", ")", "{", "return", "this", ".", "initsWhenTrue", ".", "isDefinitelyAssigned", "(", "local", ")", "&&", "this", ".", "initsWhenFalse", ".", "isDefinitelyAssigned", "(", "local", ")", ";", "}", "public", "boolean", "isDefinitelyNonNull", "(", "LocalVariableBinding", "local", ")", "{", "return", "this", ".", "initsWhenTrue", ".", "isDefinitelyNonNull", "(", "local", ")", "&&", "this", ".", "initsWhenFalse", ".", "isDefinitelyNonNull", "(", "local", ")", ";", "}", "public", "boolean", "isDefinitelyNull", "(", "LocalVariableBinding", "local", ")", "{", "return", "this", ".", "initsWhenTrue", ".", "isDefinitelyNull", "(", "local", ")", "&&", "this", ".", "initsWhenFalse", ".", "isDefinitelyNull", "(", "local", ")", ";", "}", "public", "boolean", "isDefinitelyUnknown", "(", "LocalVariableBinding", "local", ")", "{", "return", "this", ".", "initsWhenTrue", ".", "isDefinitelyUnknown", "(", "local", ")", "&&", "this", ".", "initsWhenFalse", ".", "isDefinitelyUnknown", "(", "local", ")", ";", "}", "public", "boolean", "isPotentiallyAssigned", "(", "FieldBinding", "field", ")", "{", "return", "this", ".", "initsWhenTrue", ".", "isPotentiallyAssigned", "(", "field", ")", "||", "this", ".", "initsWhenFalse", ".", "isPotentiallyAssigned", "(", "field", ")", ";", "}", "public", "boolean", "isPotentiallyAssigned", "(", "LocalVariableBinding", "local", ")", "{", "return", "this", ".", "initsWhenTrue", ".", "isPotentiallyAssigned", "(", "local", ")", "||", "this", ".", "initsWhenFalse", ".", "isPotentiallyAssigned", "(", "local", ")", ";", "}", "public", "boolean", "isPotentiallyNonNull", "(", "LocalVariableBinding", "local", ")", "{", "return", "this", ".", "initsWhenTrue", ".", "isPotentiallyNonNull", "(", "local", ")", "||", "this", ".", "initsWhenFalse", ".", "isPotentiallyNonNull", "(", "local", ")", ";", "}", "public", "boolean", "isPotentiallyNull", "(", "LocalVariableBinding", "local", ")", "{", "return", "this", ".", "initsWhenTrue", ".", "isPotentiallyNull", "(", "local", ")", "||", "this", ".", "initsWhenFalse", ".", "isPotentiallyNull", "(", "local", ")", ";", "}", "public", "boolean", "isPotentiallyUnknown", "(", "LocalVariableBinding", "local", ")", "{", "return", "this", ".", "initsWhenTrue", ".", "isPotentiallyUnknown", "(", "local", ")", "||", "this", ".", "initsWhenFalse", ".", "isPotentiallyUnknown", "(", "local", ")", ";", "}", "public", "boolean", "isProtectedNonNull", "(", "LocalVariableBinding", "local", ")", "{", "return", "this", ".", "initsWhenTrue", ".", "isProtectedNonNull", "(", "local", ")", "&&", "this", ".", "initsWhenFalse", ".", "isProtectedNonNull", "(", "local", ")", ";", "}", "public", "boolean", "isProtectedNull", "(", "LocalVariableBinding", "local", ")", "{", "return", "this", ".", "initsWhenTrue", ".", "isProtectedNull", "(", "local", ")", "&&", "this", ".", "initsWhenFalse", ".", "isProtectedNull", "(", "local", ")", ";", "}", "public", "void", "markAsComparedEqualToNonNull", "(", "LocalVariableBinding", "local", ")", "{", "this", ".", "initsWhenTrue", ".", "markAsComparedEqualToNonNull", "(", "local", ")", ";", "this", ".", "initsWhenFalse", ".", "markAsComparedEqualToNonNull", "(", "local", ")", ";", "}", "public", "void", "markAsComparedEqualToNull", "(", "LocalVariableBinding", "local", ")", "{", "this", ".", "initsWhenTrue", ".", "markAsComparedEqualToNull", "(", "local", ")", ";", "this", ".", "initsWhenFalse", ".", "markAsComparedEqualToNull", "(", "local", ")", ";", "}", "public", "void", "markAsDefinitelyAssigned", "(", "FieldBinding", "field", ")", "{", "this", ".", "initsWhenTrue", ".", "markAsDefinitelyAssigned", "(", "field", ")", ";", "this", ".", "initsWhenFalse", ".", "markAsDefinitelyAssigned", "(", "field", ")", ";", "}", "public", "void", "markAsDefinitelyAssigned", "(", "LocalVariableBinding", "local", ")", "{", "this", ".", "initsWhenTrue", ".", "markAsDefinitelyAssigned", "(", "local", ")", ";", "this", ".", "initsWhenFalse", ".", "markAsDefinitelyAssigned", "(", "local", ")", ";", "}", "public", "void", "markAsDefinitelyNonNull", "(", "LocalVariableBinding", "local", ")", "{", "this", ".", "initsWhenTrue", ".", "markAsDefinitelyNonNull", "(", "local", ")", ";", "this", ".", "initsWhenFalse", ".", "markAsDefinitelyNonNull", "(", "local", ")", ";", "}", "public", "void", "markAsDefinitelyNull", "(", "LocalVariableBinding", "local", ")", "{", "this", ".", "initsWhenTrue", ".", "markAsDefinitelyNull", "(", "local", ")", ";", "this", ".", "initsWhenFalse", ".", "markAsDefinitelyNull", "(", "local", ")", ";", "}", "public", "void", "resetNullInfo", "(", "LocalVariableBinding", "local", ")", "{", "this", ".", "initsWhenTrue", ".", "resetNullInfo", "(", "local", ")", ";", "this", ".", "initsWhenFalse", ".", "resetNullInfo", "(", "local", ")", ";", "}", "public", "void", "markPotentiallyNullBit", "(", "LocalVariableBinding", "local", ")", "{", "this", ".", "initsWhenTrue", ".", "markPotentiallyNullBit", "(", "local", ")", ";", "this", ".", "initsWhenFalse", ".", "markPotentiallyNullBit", "(", "local", ")", ";", "}", "public", "void", "markPotentiallyNonNullBit", "(", "LocalVariableBinding", "local", ")", "{", "this", ".", "initsWhenTrue", ".", "markPotentiallyNonNullBit", "(", "local", ")", ";", "this", ".", "initsWhenFalse", ".", "markPotentiallyNonNullBit", "(", "local", ")", ";", "}", "public", "void", "markAsDefinitelyUnknown", "(", "LocalVariableBinding", "local", ")", "{", "this", ".", "initsWhenTrue", ".", "markAsDefinitelyUnknown", "(", "local", ")", ";", "this", ".", "initsWhenFalse", ".", "markAsDefinitelyUnknown", "(", "local", ")", ";", "}", "public", "void", "markPotentiallyUnknownBit", "(", "LocalVariableBinding", "local", ")", "{", "this", ".", "initsWhenTrue", ".", "markPotentiallyUnknownBit", "(", "local", ")", ";", "this", ".", "initsWhenFalse", ".", "markPotentiallyUnknownBit", "(", "local", ")", ";", "}", "public", "FlowInfo", "setReachMode", "(", "int", "reachMode", ")", "{", "if", "(", "reachMode", "==", "REACHABLE", ")", "{", "this", ".", "tagBits", "&=", "~", "UNREACHABLE", ";", "}", "else", "{", "this", ".", "tagBits", "|=", "reachMode", ";", "}", "this", ".", "initsWhenTrue", ".", "setReachMode", "(", "reachMode", ")", ";", "this", ".", "initsWhenFalse", ".", "setReachMode", "(", "reachMode", ")", ";", "return", "this", ";", "}", "public", "UnconditionalFlowInfo", "mergedWith", "(", "UnconditionalFlowInfo", "otherInits", ")", "{", "return", "unconditionalInits", "(", ")", ".", "mergedWith", "(", "otherInits", ")", ";", "}", "public", "UnconditionalFlowInfo", "nullInfoLessUnconditionalCopy", "(", ")", "{", "return", "unconditionalInitsWithoutSideEffect", "(", ")", ".", "nullInfoLessUnconditionalCopy", "(", ")", ";", "}", "public", "String", "toString", "(", ")", "{", "return", "\"\"", "+", "this", ".", "initsWhenTrue", ".", "toString", "(", ")", "+", "\",", "false:", "\"", "+", "this", ".", "initsWhenFalse", ".", "toString", "(", ")", "+", "\">\"", ";", "}", "public", "FlowInfo", "safeInitsWhenTrue", "(", ")", "{", "return", "this", ".", "initsWhenTrue", ";", "}", "public", "UnconditionalFlowInfo", "unconditionalCopy", "(", ")", "{", "return", "this", ".", "initsWhenTrue", ".", "unconditionalCopy", "(", ")", ".", "mergedWith", "(", "this", ".", "initsWhenFalse", ".", "unconditionalInits", "(", ")", ")", ";", "}", "public", "UnconditionalFlowInfo", "unconditionalFieldLessCopy", "(", ")", "{", "return", "this", ".", "initsWhenTrue", ".", "unconditionalFieldLessCopy", "(", ")", ".", "mergedWith", "(", "this", ".", "initsWhenFalse", ".", "unconditionalFieldLessCopy", "(", ")", ")", ";", "}", "public", "UnconditionalFlowInfo", "unconditionalInits", "(", ")", "{", "return", "this", ".", "initsWhenTrue", ".", "unconditionalInits", "(", ")", ".", "mergedWith", "(", "this", ".", "initsWhenFalse", ".", "unconditionalInits", "(", ")", ")", ";", "}", "public", "UnconditionalFlowInfo", "unconditionalInitsWithoutSideEffect", "(", ")", "{", "return", "this", ".", "initsWhenTrue", ".", "unconditionalCopy", "(", ")", ".", "mergedWith", "(", "this", ".", "initsWhenFalse", ".", "unconditionalInits", "(", ")", ")", ";", "}", "public", "void", "resetAssignmentInfo", "(", "LocalVariableBinding", "local", ")", "{", "this", ".", "initsWhenTrue", ".", "resetAssignmentInfo", "(", "local", ")", ";", "this", ".", "initsWhenFalse", ".", "resetAssignmentInfo", "(", "local", ")", ";", "}", "}", "</s>" ]
3,395
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ";", "import", "java", ".", "util", ".", "ArrayList", ";", "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", ".", "Expression", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "FakedTrackingVariable", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "LabeledStatement", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Reference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "SingleNameReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "SubRoutineStatement", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ThrowStatement", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TryStatement", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "BranchLabel", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Binding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "CatchParameterBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "LocalVariableBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Scope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "VariableBinding", ";", "public", "class", "FlowContext", "implements", "TypeConstants", "{", "public", "final", "static", "FlowContext", "NotContinuableContext", "=", "new", "FlowContext", "(", "null", ",", "null", ")", ";", "public", "ASTNode", "associatedNode", ";", "public", "FlowContext", "parent", ";", "public", "NullInfoRegistry", "initsOnFinally", ";", "public", "int", "tagBits", ";", "public", "TypeBinding", "[", "]", "[", "]", "providedExpectedTypes", "=", "null", ";", "public", "static", "final", "int", "DEFER_NULL_DIAGNOSTIC", "=", "0x1", ";", "public", "static", "final", "int", "PREEMPT_NULL_DIAGNOSTIC", "=", "0x2", ";", "public", "static", "final", "int", "HIDE_NULL_COMPARISON_WARNING", "=", "0x1000", ";", "public", "static", "final", "int", "HIDE_NULL_COMPARISON_WARNING_MASK", "=", "0xF000", ";", "public", "static", "final", "int", "CAN_ONLY_NULL_NON_NULL", "=", "0x0000", ";", "public", "static", "final", "int", "CAN_ONLY_NULL", "=", "0x0001", ";", "public", "static", "final", "int", "CAN_ONLY_NON_NULL", "=", "0x0002", ";", "public", "static", "final", "int", "MAY_NULL", "=", "0x0003", ";", "public", "final", "static", "int", "ASSIGN_TO_NONNULL", "=", "0x0080", ";", "public", "static", "final", "int", "EXIT_RESOURCE", "=", "0x0800", ";", "public", "static", "final", "int", "CHECK_MASK", "=", "0x00FF", ";", "public", "static", "final", "int", "IN_COMPARISON_NULL", "=", "0x0100", ";", "public", "static", "final", "int", "IN_COMPARISON_NON_NULL", "=", "0x0200", ";", "public", "static", "final", "int", "IN_ASSIGNMENT", "=", "0x0300", ";", "public", "static", "final", "int", "IN_INSTANCEOF", "=", "0x0400", ";", "public", "static", "final", "int", "CONTEXT_MASK", "=", "~", "CHECK_MASK", "&", "~", "HIDE_NULL_COMPARISON_WARNING_MASK", ";", "public", "FlowContext", "(", "FlowContext", "parent", ",", "ASTNode", "associatedNode", ")", "{", "this", ".", "parent", "=", "parent", ";", "this", ".", "associatedNode", "=", "associatedNode", ";", "if", "(", "parent", "!=", "null", ")", "{", "if", "(", "(", "parent", ".", "tagBits", "&", "(", "FlowContext", ".", "DEFER_NULL_DIAGNOSTIC", "|", "FlowContext", ".", "PREEMPT_NULL_DIAGNOSTIC", ")", ")", "!=", "0", ")", "{", "this", ".", "tagBits", "|=", "FlowContext", ".", "DEFER_NULL_DIAGNOSTIC", ";", "}", "this", ".", "initsOnFinally", "=", "parent", ".", "initsOnFinally", ";", "}", "}", "public", "BranchLabel", "breakLabel", "(", ")", "{", "return", "null", ";", "}", "public", "void", "checkExceptionHandlers", "(", "TypeBinding", "raisedException", ",", "ASTNode", "location", ",", "FlowInfo", "flowInfo", ",", "BlockScope", "scope", ")", "{", "checkExceptionHandlers", "(", "raisedException", ",", "location", ",", "flowInfo", ",", "scope", ",", "false", ")", ";", "}", "public", "void", "checkExceptionHandlers", "(", "TypeBinding", "raisedException", ",", "ASTNode", "location", ",", "FlowInfo", "flowInfo", ",", "BlockScope", "scope", ",", "boolean", "isExceptionOnAutoClose", ")", "{", "FlowContext", "traversedContext", "=", "this", ";", "ArrayList", "abruptlyExitedLoops", "=", "null", ";", "if", "(", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_7", "&&", "location", "instanceof", "ThrowStatement", ")", "{", "Expression", "throwExpression", "=", "(", "(", "ThrowStatement", ")", "location", ")", ".", "exception", ";", "LocalVariableBinding", "throwArgBinding", "=", "throwExpression", ".", "localVariableBinding", "(", ")", ";", "if", "(", "throwExpression", "instanceof", "SingleNameReference", "&&", "throwArgBinding", "instanceof", "CatchParameterBinding", "&&", "throwArgBinding", ".", "isEffectivelyFinal", "(", ")", ")", "{", "CatchParameterBinding", "parameter", "=", "(", "CatchParameterBinding", ")", "throwArgBinding", ";", "checkExceptionHandlers", "(", "parameter", ".", "getPreciseTypes", "(", ")", ",", "location", ",", "flowInfo", ",", "scope", ")", ";", "return", ";", "}", "}", "while", "(", "traversedContext", "!=", "null", ")", "{", "SubRoutineStatement", "sub", ";", "if", "(", "(", "(", "sub", "=", "traversedContext", ".", "subroutine", "(", ")", ")", "!=", "null", ")", "&&", "sub", ".", "isSubRoutineEscaping", "(", ")", ")", "{", "return", ";", "}", "if", "(", "traversedContext", "instanceof", "ExceptionHandlingFlowContext", ")", "{", "ExceptionHandlingFlowContext", "exceptionContext", "=", "(", "ExceptionHandlingFlowContext", ")", "traversedContext", ";", "ReferenceBinding", "[", "]", "caughtExceptions", ";", "if", "(", "(", "caughtExceptions", "=", "exceptionContext", ".", "handledExceptions", ")", "!=", "Binding", ".", "NO_EXCEPTIONS", ")", "{", "boolean", "definitelyCaught", "=", "false", ";", "for", "(", "int", "caughtIndex", "=", "0", ",", "caughtCount", "=", "caughtExceptions", ".", "length", ";", "caughtIndex", "<", "caughtCount", ";", "caughtIndex", "++", ")", "{", "ReferenceBinding", "caughtException", "=", "caughtExceptions", "[", "caughtIndex", "]", ";", "int", "state", "=", "caughtException", "==", "null", "?", "Scope", ".", "EQUAL_OR_MORE_SPECIFIC", ":", "Scope", ".", "compareTypes", "(", "raisedException", ",", "caughtException", ")", ";", "if", "(", "abruptlyExitedLoops", "!=", "null", "&&", "caughtException", "!=", "null", "&&", "state", "!=", "Scope", ".", "NOT_RELATED", ")", "{", "for", "(", "int", "i", "=", "0", ",", "abruptlyExitedLoopsCount", "=", "abruptlyExitedLoops", ".", "size", "(", ")", ";", "i", "<", "abruptlyExitedLoopsCount", ";", "i", "++", ")", "{", "LoopingFlowContext", "loop", "=", "(", "LoopingFlowContext", ")", "abruptlyExitedLoops", ".", "get", "(", "i", ")", ";", "loop", ".", "recordCatchContextOfEscapingException", "(", "exceptionContext", ",", "caughtException", ")", ";", "}", "}", "switch", "(", "state", ")", "{", "case", "Scope", ".", "EQUAL_OR_MORE_SPECIFIC", ":", "exceptionContext", ".", "recordHandlingException", "(", "caughtException", ",", "flowInfo", ".", "unconditionalInits", "(", ")", ",", "raisedException", ",", "raisedException", ",", "location", ",", "definitelyCaught", ")", ";", "definitelyCaught", "=", "true", ";", "break", ";", "case", "Scope", ".", "MORE_GENERIC", ":", "exceptionContext", ".", "recordHandlingException", "(", "caughtException", ",", "flowInfo", ".", "unconditionalInits", "(", ")", ",", "raisedException", ",", "caughtException", ",", "location", ",", "false", ")", ";", "}", "}", "if", "(", "definitelyCaught", ")", "return", ";", "}", "if", "(", "exceptionContext", ".", "isMethodContext", ")", "{", "if", "(", "raisedException", ".", "isUncheckedException", "(", "false", ")", ")", "return", ";", "if", "(", "exceptionContext", ".", "associatedNode", "instanceof", "AbstractMethodDeclaration", ")", "{", "AbstractMethodDeclaration", "method", "=", "(", "AbstractMethodDeclaration", ")", "exceptionContext", ".", "associatedNode", ";", "if", "(", "method", ".", "isConstructor", "(", ")", "&&", "method", ".", "binding", ".", "declaringClass", ".", "isAnonymousType", "(", ")", ")", "{", "exceptionContext", ".", "mergeUnhandledException", "(", "raisedException", ")", ";", "return", ";", "}", "}", "break", ";", "}", "}", "else", "if", "(", "traversedContext", "instanceof", "LoopingFlowContext", ")", "{", "if", "(", "abruptlyExitedLoops", "==", "null", ")", "{", "abruptlyExitedLoops", "=", "new", "ArrayList", "(", "5", ")", ";", "}", "abruptlyExitedLoops", ".", "add", "(", "traversedContext", ")", ";", "}", "traversedContext", ".", "recordReturnFrom", "(", "flowInfo", ".", "unconditionalInits", "(", ")", ")", ";", "if", "(", "!", "isExceptionOnAutoClose", ")", "{", "if", "(", "traversedContext", "instanceof", "InsideSubRoutineFlowContext", ")", "{", "ASTNode", "node", "=", "traversedContext", ".", "associatedNode", ";", "if", "(", "node", "instanceof", "TryStatement", ")", "{", "TryStatement", "tryStatement", "=", "(", "TryStatement", ")", "node", ";", "flowInfo", ".", "addInitializationsFrom", "(", "tryStatement", ".", "subRoutineInits", ")", ";", "}", "}", "}", "traversedContext", "=", "traversedContext", ".", "getLocalParent", "(", ")", ";", "}", "if", "(", "isExceptionOnAutoClose", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unhandledExceptionFromAutoClose", "(", "raisedException", ",", "location", ")", ";", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "unhandledException", "(", "raisedException", ",", "location", ")", ";", "}", "}", "public", "void", "checkExceptionHandlers", "(", "TypeBinding", "[", "]", "raisedExceptions", ",", "ASTNode", "location", ",", "FlowInfo", "flowInfo", ",", "BlockScope", "scope", ")", "{", "int", "remainingCount", ";", "int", "raisedCount", ";", "if", "(", "(", "raisedExceptions", "==", "null", ")", "||", "(", "(", "raisedCount", "=", "raisedExceptions", ".", "length", ")", "==", "0", ")", ")", "return", ";", "remainingCount", "=", "raisedCount", ";", "System", ".", "arraycopy", "(", "raisedExceptions", ",", "0", ",", "(", "raisedExceptions", "=", "new", "TypeBinding", "[", "raisedCount", "]", ")", ",", "0", ",", "raisedCount", ")", ";", "FlowContext", "traversedContext", "=", "this", ";", "ArrayList", "abruptlyExitedLoops", "=", "null", ";", "while", "(", "traversedContext", "!=", "null", ")", "{", "SubRoutineStatement", "sub", ";", "if", "(", "(", "(", "sub", "=", "traversedContext", ".", "subroutine", "(", ")", ")", "!=", "null", ")", "&&", "sub", ".", "isSubRoutineEscaping", "(", ")", ")", "{", "return", ";", "}", "if", "(", "traversedContext", "instanceof", "ExceptionHandlingFlowContext", ")", "{", "ExceptionHandlingFlowContext", "exceptionContext", "=", "(", "ExceptionHandlingFlowContext", ")", "traversedContext", ";", "ReferenceBinding", "[", "]", "caughtExceptions", ";", "if", "(", "(", "caughtExceptions", "=", "exceptionContext", ".", "handledExceptions", ")", "!=", "Binding", ".", "NO_EXCEPTIONS", ")", "{", "int", "caughtCount", "=", "caughtExceptions", ".", "length", ";", "boolean", "[", "]", "locallyCaught", "=", "new", "boolean", "[", "raisedCount", "]", ";", "for", "(", "int", "caughtIndex", "=", "0", ";", "caughtIndex", "<", "caughtCount", ";", "caughtIndex", "++", ")", "{", "ReferenceBinding", "caughtException", "=", "caughtExceptions", "[", "caughtIndex", "]", ";", "for", "(", "int", "raisedIndex", "=", "0", ";", "raisedIndex", "<", "raisedCount", ";", "raisedIndex", "++", ")", "{", "TypeBinding", "raisedException", ";", "if", "(", "(", "raisedException", "=", "raisedExceptions", "[", "raisedIndex", "]", ")", "!=", "null", ")", "{", "int", "state", "=", "caughtException", "==", "null", "?", "Scope", ".", "EQUAL_OR_MORE_SPECIFIC", ":", "Scope", ".", "compareTypes", "(", "raisedException", ",", "caughtException", ")", ";", "if", "(", "abruptlyExitedLoops", "!=", "null", "&&", "caughtException", "!=", "null", "&&", "state", "!=", "Scope", ".", "NOT_RELATED", ")", "{", "for", "(", "int", "i", "=", "0", ",", "abruptlyExitedLoopsCount", "=", "abruptlyExitedLoops", ".", "size", "(", ")", ";", "i", "<", "abruptlyExitedLoopsCount", ";", "i", "++", ")", "{", "LoopingFlowContext", "loop", "=", "(", "LoopingFlowContext", ")", "abruptlyExitedLoops", ".", "get", "(", "i", ")", ";", "loop", ".", "recordCatchContextOfEscapingException", "(", "exceptionContext", ",", "caughtException", ")", ";", "}", "}", "switch", "(", "state", ")", "{", "case", "Scope", ".", "EQUAL_OR_MORE_SPECIFIC", ":", "exceptionContext", ".", "recordHandlingException", "(", "caughtException", ",", "flowInfo", ".", "unconditionalInits", "(", ")", ",", "raisedException", ",", "raisedException", ",", "location", ",", "locallyCaught", "[", "raisedIndex", "]", ")", ";", "if", "(", "!", "locallyCaught", "[", "raisedIndex", "]", ")", "{", "locallyCaught", "[", "raisedIndex", "]", "=", "true", ";", "remainingCount", "--", ";", "}", "break", ";", "case", "Scope", ".", "MORE_GENERIC", ":", "exceptionContext", ".", "recordHandlingException", "(", "caughtException", ",", "flowInfo", ".", "unconditionalInits", "(", ")", ",", "raisedException", ",", "caughtException", ",", "location", ",", "false", ")", ";", "}", "}", "}", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "raisedCount", ";", "i", "++", ")", "{", "if", "(", "locallyCaught", "[", "i", "]", ")", "{", "raisedExceptions", "[", "i", "]", "=", "null", ";", "}", "}", "}", "if", "(", "exceptionContext", ".", "isMethodContext", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "raisedCount", ";", "i", "++", ")", "{", "TypeBinding", "raisedException", ";", "if", "(", "(", "raisedException", "=", "raisedExceptions", "[", "i", "]", ")", "!=", "null", ")", "{", "if", "(", "raisedException", ".", "isUncheckedException", "(", "false", ")", ")", "{", "remainingCount", "--", ";", "raisedExceptions", "[", "i", "]", "=", "null", ";", "}", "}", "}", "if", "(", "exceptionContext", ".", "associatedNode", "instanceof", "AbstractMethodDeclaration", ")", "{", "AbstractMethodDeclaration", "method", "=", "(", "AbstractMethodDeclaration", ")", "exceptionContext", ".", "associatedNode", ";", "if", "(", "method", ".", "isConstructor", "(", ")", "&&", "method", ".", "binding", ".", "declaringClass", ".", "isAnonymousType", "(", ")", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "raisedCount", ";", "i", "++", ")", "{", "TypeBinding", "raisedException", ";", "if", "(", "(", "raisedException", "=", "raisedExceptions", "[", "i", "]", ")", "!=", "null", ")", "{", "exceptionContext", ".", "mergeUnhandledException", "(", "raisedException", ")", ";", "}", "}", "return", ";", "}", "}", "break", ";", "}", "}", "else", "if", "(", "traversedContext", "instanceof", "LoopingFlowContext", ")", "{", "if", "(", "abruptlyExitedLoops", "==", "null", ")", "{", "abruptlyExitedLoops", "=", "new", "ArrayList", "(", "5", ")", ";", "}", "abruptlyExitedLoops", ".", "add", "(", "traversedContext", ")", ";", "}", "if", "(", "remainingCount", "==", "0", ")", "return", ";", "traversedContext", ".", "recordReturnFrom", "(", "flowInfo", ".", "unconditionalInits", "(", ")", ")", ";", "if", "(", "traversedContext", "instanceof", "InsideSubRoutineFlowContext", ")", "{", "ASTNode", "node", "=", "traversedContext", ".", "associatedNode", ";", "if", "(", "node", "instanceof", "TryStatement", ")", "{", "TryStatement", "tryStatement", "=", "(", "TryStatement", ")", "node", ";", "flowInfo", ".", "addInitializationsFrom", "(", "tryStatement", ".", "subRoutineInits", ")", ";", "}", "}", "traversedContext", "=", "traversedContext", ".", "getLocalParent", "(", ")", ";", "}", "nextReport", ":", "for", "(", "int", "i", "=", "0", ";", "i", "<", "raisedCount", ";", "i", "++", ")", "{", "TypeBinding", "exception", ";", "if", "(", "(", "exception", "=", "raisedExceptions", "[", "i", "]", ")", "!=", "null", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "i", ";", "j", "++", ")", "{", "if", "(", "raisedExceptions", "[", "j", "]", "==", "exception", ")", "continue", "nextReport", ";", "}", "scope", ".", "problemReporter", "(", ")", ".", "unhandledException", "(", "exception", ",", "location", ")", ";", "}", "}", "}", "public", "BranchLabel", "continueLabel", "(", ")", "{", "return", "null", ";", "}", "public", "FlowInfo", "getInitsForFinalBlankInitializationCheck", "(", "TypeBinding", "declaringType", ",", "FlowInfo", "flowInfo", ")", "{", "FlowContext", "current", "=", "this", ";", "FlowInfo", "inits", "=", "flowInfo", ";", "do", "{", "if", "(", "current", "instanceof", "InitializationFlowContext", ")", "{", "InitializationFlowContext", "initializationContext", "=", "(", "InitializationFlowContext", ")", "current", ";", "if", "(", "(", "(", "TypeDeclaration", ")", "initializationContext", ".", "associatedNode", ")", ".", "binding", "==", "declaringType", ")", "{", "return", "inits", ";", "}", "inits", "=", "initializationContext", ".", "initsBeforeContext", ";", "current", "=", "initializationContext", ".", "initializationParent", ";", "}", "else", "if", "(", "current", "instanceof", "ExceptionHandlingFlowContext", ")", "{", "ExceptionHandlingFlowContext", "exceptionContext", "=", "(", "ExceptionHandlingFlowContext", ")", "current", ";", "current", "=", "exceptionContext", ".", "initializationParent", "==", "null", "?", "exceptionContext", ".", "getLocalParent", "(", ")", ":", "exceptionContext", ".", "initializationParent", ";", "}", "else", "{", "current", "=", "current", ".", "getLocalParent", "(", ")", ";", "}", "}", "while", "(", "current", "!=", "null", ")", ";", "return", "null", ";", "}", "public", "FlowContext", "getTargetContextForBreakLabel", "(", "char", "[", "]", "labelName", ")", "{", "FlowContext", "current", "=", "this", ",", "lastNonReturningSubRoutine", "=", "null", ";", "while", "(", "current", "!=", "null", ")", "{", "if", "(", "current", ".", "isNonReturningContext", "(", ")", ")", "{", "lastNonReturningSubRoutine", "=", "current", ";", "}", "char", "[", "]", "currentLabelName", ";", "if", "(", "(", "(", "currentLabelName", "=", "current", ".", "labelName", "(", ")", ")", "!=", "null", ")", "&&", "CharOperation", ".", "equals", "(", "currentLabelName", ",", "labelName", ")", ")", "{", "(", "(", "LabeledStatement", ")", "current", ".", "associatedNode", ")", ".", "bits", "|=", "ASTNode", ".", "LabelUsed", ";", "if", "(", "lastNonReturningSubRoutine", "==", "null", ")", "return", "current", ";", "return", "lastNonReturningSubRoutine", ";", "}", "current", "=", "current", ".", "getLocalParent", "(", ")", ";", "}", "return", "null", ";", "}", "public", "FlowContext", "getTargetContextForContinueLabel", "(", "char", "[", "]", "labelName", ")", "{", "FlowContext", "current", "=", "this", ";", "FlowContext", "lastContinuable", "=", "null", ";", "FlowContext", "lastNonReturningSubRoutine", "=", "null", ";", "while", "(", "current", "!=", "null", ")", "{", "if", "(", "current", ".", "isNonReturningContext", "(", ")", ")", "{", "lastNonReturningSubRoutine", "=", "current", ";", "}", "else", "{", "if", "(", "current", ".", "isContinuable", "(", ")", ")", "{", "lastContinuable", "=", "current", ";", "}", "}", "char", "[", "]", "currentLabelName", ";", "if", "(", "(", "currentLabelName", "=", "current", ".", "labelName", "(", ")", ")", "!=", "null", "&&", "CharOperation", ".", "equals", "(", "currentLabelName", ",", "labelName", ")", ")", "{", "(", "(", "LabeledStatement", ")", "current", ".", "associatedNode", ")", ".", "bits", "|=", "ASTNode", ".", "LabelUsed", ";", "if", "(", "(", "lastContinuable", "!=", "null", ")", "&&", "(", "current", ".", "associatedNode", ".", "concreteStatement", "(", ")", "==", "lastContinuable", ".", "associatedNode", ")", ")", "{", "if", "(", "lastNonReturningSubRoutine", "==", "null", ")", "return", "lastContinuable", ";", "return", "lastNonReturningSubRoutine", ";", "}", "return", "FlowContext", ".", "NotContinuableContext", ";", "}", "current", "=", "current", ".", "getLocalParent", "(", ")", ";", "}", "return", "null", ";", "}", "public", "FlowContext", "getTargetContextForDefaultBreak", "(", ")", "{", "FlowContext", "current", "=", "this", ",", "lastNonReturningSubRoutine", "=", "null", ";", "while", "(", "current", "!=", "null", ")", "{", "if", "(", "current", ".", "isNonReturningContext", "(", ")", ")", "{", "lastNonReturningSubRoutine", "=", "current", ";", "}", "if", "(", "current", ".", "isBreakable", "(", ")", "&&", "current", ".", "labelName", "(", ")", "==", "null", ")", "{", "if", "(", "lastNonReturningSubRoutine", "==", "null", ")", "return", "current", ";", "return", "lastNonReturningSubRoutine", ";", "}", "current", "=", "current", ".", "getLocalParent", "(", ")", ";", "}", "return", "null", ";", "}", "public", "FlowContext", "getTargetContextForDefaultContinue", "(", ")", "{", "FlowContext", "current", "=", "this", ",", "lastNonReturningSubRoutine", "=", "null", ";", "while", "(", "current", "!=", "null", ")", "{", "if", "(", "current", ".", "isNonReturningContext", "(", ")", ")", "{", "lastNonReturningSubRoutine", "=", "current", ";", "}", "if", "(", "current", ".", "isContinuable", "(", ")", ")", "{", "if", "(", "lastNonReturningSubRoutine", "==", "null", ")", "return", "current", ";", "return", "lastNonReturningSubRoutine", ";", "}", "current", "=", "current", ".", "getLocalParent", "(", ")", ";", "}", "return", "null", ";", "}", "public", "FlowContext", "getLocalParent", "(", ")", "{", "if", "(", "this", ".", "associatedNode", "instanceof", "AbstractMethodDeclaration", "||", "this", ".", "associatedNode", "instanceof", "TypeDeclaration", ")", "return", "null", ";", "return", "this", ".", "parent", ";", "}", "public", "String", "individualToString", "(", ")", "{", "return", "\"Flow", "context\"", ";", "}", "public", "FlowInfo", "initsOnBreak", "(", ")", "{", "return", "FlowInfo", ".", "DEAD_END", ";", "}", "public", "UnconditionalFlowInfo", "initsOnReturn", "(", ")", "{", "return", "FlowInfo", ".", "DEAD_END", ";", "}", "public", "boolean", "isBreakable", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isContinuable", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isNonReturningContext", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isSubRoutine", "(", ")", "{", "return", "false", ";", "}", "public", "char", "[", "]", "labelName", "(", ")", "{", "return", "null", ";", "}", "public", "void", "recordBreakFrom", "(", "FlowInfo", "flowInfo", ")", "{", "}", "public", "void", "recordBreakTo", "(", "FlowContext", "targetContext", ")", "{", "}", "public", "void", "recordContinueFrom", "(", "FlowContext", "innerFlowContext", ",", "FlowInfo", "flowInfo", ")", "{", "}", "public", "boolean", "recordExitAgainstResource", "(", "BlockScope", "scope", ",", "FlowInfo", "flowInfo", ",", "FakedTrackingVariable", "trackingVar", ",", "ASTNode", "reference", ")", "{", "return", "false", ";", "}", "protected", "void", "recordProvidedExpectedTypes", "(", "TypeBinding", "providedType", ",", "TypeBinding", "expectedType", ",", "int", "nullCount", ")", "{", "if", "(", "nullCount", "==", "0", ")", "{", "this", ".", "providedExpectedTypes", "=", "new", "TypeBinding", "[", "5", "]", "[", "]", ";", "}", "else", "if", "(", "this", ".", "providedExpectedTypes", "==", "null", ")", "{", "int", "size", "=", "5", ";", "while", "(", "size", "<=", "nullCount", ")", "size", "*=", "2", ";", "this", ".", "providedExpectedTypes", "=", "new", "TypeBinding", "[", "size", "]", "[", "]", ";", "}", "else", "if", "(", "nullCount", ">=", "this", ".", "providedExpectedTypes", ".", "length", ")", "{", "int", "oldLen", "=", "this", ".", "providedExpectedTypes", ".", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "providedExpectedTypes", ",", "0", ",", "this", ".", "providedExpectedTypes", "=", "new", "TypeBinding", "[", "nullCount", "*", "2", "]", "[", "]", ",", "0", ",", "oldLen", ")", ";", "}", "this", ".", "providedExpectedTypes", "[", "nullCount", "]", "=", "new", "TypeBinding", "[", "]", "{", "providedType", ",", "expectedType", "}", ";", "}", "protected", "boolean", "recordFinalAssignment", "(", "VariableBinding", "variable", ",", "Reference", "finalReference", ")", "{", "return", "true", ";", "}", "protected", "void", "recordNullReference", "(", "LocalVariableBinding", "local", ",", "ASTNode", "location", ",", "int", "status", ")", "{", "}", "public", "void", "recordReturnFrom", "(", "UnconditionalFlowInfo", "flowInfo", ")", "{", "}", "public", "void", "recordSettingFinal", "(", "VariableBinding", "variable", ",", "Reference", "finalReference", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "==", "0", ")", "{", "FlowContext", "context", "=", "this", ";", "while", "(", "context", "!=", "null", ")", "{", "if", "(", "!", "context", ".", "recordFinalAssignment", "(", "variable", ",", "finalReference", ")", ")", "{", "break", ";", "}", "context", "=", "context", ".", "getLocalParent", "(", ")", ";", "}", "}", "}", "public", "void", "recordUsingNullReference", "(", "Scope", "scope", ",", "LocalVariableBinding", "local", ",", "ASTNode", "location", ",", "int", "checkType", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", "||", "flowInfo", ".", "isDefinitelyUnknown", "(", "local", ")", ")", "{", "return", ";", "}", "checkType", "|=", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", ";", "int", "checkTypeWithoutHideNullWarning", "=", "checkType", "&", "~", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING_MASK", ";", "switch", "(", "checkTypeWithoutHideNullWarning", ")", "{", "case", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NULL", ":", "case", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ":", "if", "(", "flowInfo", ".", "isDefinitelyNonNull", "(", "local", ")", ")", "{", "if", "(", "checkTypeWithoutHideNullWarning", "==", "(", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ")", ")", "{", "if", "(", "(", "checkType", "&", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNonNull", "(", "local", ",", "location", ")", ";", "}", "flowInfo", ".", "initsWhenFalse", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNonNullComparedToNull", "(", "local", ",", "location", ")", ";", "flowInfo", ".", "initsWhenTrue", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "return", ";", "}", "else", "if", "(", "flowInfo", ".", "cannotBeDefinitelyNullOrNonNull", "(", "local", ")", ")", "{", "return", ";", "}", "case", "CAN_ONLY_NULL", "|", "IN_COMPARISON_NULL", ":", "case", "CAN_ONLY_NULL", "|", "IN_COMPARISON_NON_NULL", ":", "case", "CAN_ONLY_NULL", "|", "IN_ASSIGNMENT", ":", "case", "CAN_ONLY_NULL", "|", "IN_INSTANCEOF", ":", "Expression", "reference", "=", "(", "Expression", ")", "location", ";", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "switch", "(", "checkTypeWithoutHideNullWarning", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "if", "(", "(", "(", "checkTypeWithoutHideNullWarning", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "reference", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "if", "(", "(", "checkType", "&", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNull", "(", "local", ",", "reference", ")", ";", "}", "flowInfo", ".", "initsWhenFalse", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "return", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "checkTypeWithoutHideNullWarning", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "reference", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullComparedToNonNull", "(", "local", ",", "reference", ")", ";", "flowInfo", ".", "initsWhenTrue", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "return", ";", "case", "FlowContext", ".", "IN_ASSIGNMENT", ":", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantNullAssignment", "(", "local", ",", "reference", ")", ";", "return", ";", "case", "FlowContext", ".", "IN_INSTANCEOF", ":", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullInstanceof", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "}", "else", "if", "(", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", ")", "{", "switch", "(", "checkTypeWithoutHideNullWarning", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "if", "(", "(", "(", "checkTypeWithoutHideNullWarning", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "reference", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "break", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "checkTypeWithoutHideNullWarning", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "reference", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "break", ";", "}", "}", "else", "if", "(", "flowInfo", ".", "cannotBeDefinitelyNullOrNonNull", "(", "local", ")", ")", "{", "return", ";", "}", "break", ";", "case", "MAY_NULL", ":", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "location", ")", ";", "return", ";", "}", "if", "(", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "location", ")", ";", "return", ";", "}", "break", ";", "default", ":", "}", "if", "(", "this", ".", "parent", "!=", "null", ")", "{", "this", ".", "parent", ".", "recordUsingNullReference", "(", "scope", ",", "local", ",", "location", ",", "checkType", ",", "flowInfo", ")", ";", "}", "}", "void", "removeFinalAssignmentIfAny", "(", "Reference", "reference", ")", "{", "}", "public", "SubRoutineStatement", "subroutine", "(", ")", "{", "return", "null", ";", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "FlowContext", "current", "=", "this", ";", "int", "parentsCount", "=", "0", ";", "while", "(", "(", "current", "=", "current", ".", "parent", ")", "!=", "null", ")", "{", "parentsCount", "++", ";", "}", "FlowContext", "[", "]", "parents", "=", "new", "FlowContext", "[", "parentsCount", "+", "1", "]", ";", "current", "=", "this", ";", "int", "index", "=", "parentsCount", ";", "while", "(", "index", ">=", "0", ")", "{", "parents", "[", "index", "--", "]", "=", "current", ";", "current", "=", "current", ".", "parent", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "parentsCount", ";", "i", "++", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "i", ";", "j", "++", ")", "buffer", ".", "append", "(", "'\\t'", ")", ";", "buffer", ".", "append", "(", "parents", "[", "i", "]", ".", "individualToString", "(", ")", ")", ".", "append", "(", "'\\n'", ")", ";", "}", "buffer", ".", "append", "(", "'*'", ")", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "parentsCount", "+", "1", ";", "j", "++", ")", "buffer", ".", "append", "(", "'\\t'", ")", ";", "buffer", ".", "append", "(", "individualToString", "(", ")", ")", ".", "append", "(", "'\\n'", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}", "public", "void", "recordNullityMismatch", "(", "BlockScope", "currentScope", ",", "Expression", "expression", ",", "TypeBinding", "providedType", ",", "TypeBinding", "expectedType", ",", "int", "nullStatus", ")", "{", "if", "(", "providedType", "==", "null", ")", "{", "return", ";", "}", "if", "(", "expression", ".", "localVariableBinding", "(", ")", "!=", "null", ")", "{", "FlowContext", "currentContext", "=", "this", ";", "while", "(", "currentContext", "!=", "null", ")", "{", "int", "isInsideAssert", "=", "0x0", ";", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "!=", "0", ")", "{", "isInsideAssert", "=", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ";", "}", "if", "(", "currentContext", ".", "internalRecordNullityMismatch", "(", "expression", ",", "providedType", ",", "nullStatus", ",", "expectedType", ",", "ASSIGN_TO_NONNULL", "|", "isInsideAssert", ")", ")", "return", ";", "currentContext", "=", "currentContext", ".", "parent", ";", "}", "}", "char", "[", "]", "[", "]", "annotationName", "=", "currentScope", ".", "environment", "(", ")", ".", "getNonNullAnnotationName", "(", ")", ";", "currentScope", ".", "problemReporter", "(", ")", ".", "nullityMismatch", "(", "expression", ",", "providedType", ",", "expectedType", ",", "nullStatus", ",", "annotationName", ")", ";", "}", "protected", "boolean", "internalRecordNullityMismatch", "(", "Expression", "expression", ",", "TypeBinding", "providedType", ",", "int", "nullStatus", ",", "TypeBinding", "expectedType", ",", "int", "checkType", ")", "{", "return", "false", ";", "}", "}", "</s>" ]
3,396
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "FieldBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "LocalVariableBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TagBits", ";", "public", "class", "UnconditionalFlowInfo", "extends", "FlowInfo", "{", "public", "static", "class", "AssertionFailedException", "extends", "RuntimeException", "{", "private", "static", "final", "long", "serialVersionUID", "=", "1827352841030089703L", ";", "public", "AssertionFailedException", "(", "String", "message", ")", "{", "super", "(", "message", ")", ";", "}", "}", "public", "final", "static", "boolean", "COVERAGE_TEST_FLAG", "=", "false", ";", "public", "static", "int", "CoverageTestId", ";", "public", "long", "definiteInits", ";", "public", "long", "potentialInits", ";", "public", "long", "nullBit1", ",", "nullBit2", ",", "nullBit3", ",", "nullBit4", ";", "public", "static", "final", "int", "extraLength", "=", "6", ";", "public", "long", "extra", "[", "]", "[", "]", ";", "public", "int", "maxFieldCount", ";", "public", "static", "final", "int", "BitCacheSize", "=", "64", ";", "public", "FlowInfo", "addInitializationsFrom", "(", "FlowInfo", "inits", ")", "{", "return", "addInfoFrom", "(", "inits", ",", "true", ")", ";", "}", "public", "FlowInfo", "addNullInfoFrom", "(", "FlowInfo", "inits", ")", "{", "return", "addInfoFrom", "(", "inits", ",", "false", ")", ";", "}", "private", "FlowInfo", "addInfoFrom", "(", "FlowInfo", "inits", ",", "boolean", "handleInits", ")", "{", "if", "(", "this", "==", "DEAD_END", ")", "return", "this", ";", "if", "(", "inits", "==", "DEAD_END", ")", "return", "this", ";", "UnconditionalFlowInfo", "otherInits", "=", "inits", ".", "unconditionalInits", "(", ")", ";", "if", "(", "handleInits", ")", "{", "this", ".", "definiteInits", "|=", "otherInits", ".", "definiteInits", ";", "this", ".", "potentialInits", "|=", "otherInits", ".", "potentialInits", ";", "}", "boolean", "thisHadNulls", "=", "(", "this", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "!=", "0", ",", "otherHasNulls", "=", "(", "otherInits", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "!=", "0", ";", "long", "a1", ",", "a2", ",", "a3", ",", "a4", ",", "na1", ",", "na2", ",", "na3", ",", "na4", ",", "b1", ",", "b2", ",", "b3", ",", "b4", ",", "nb1", ",", "nb2", ",", "nb3", ",", "nb4", ";", "if", "(", "otherHasNulls", ")", "{", "if", "(", "!", "thisHadNulls", ")", "{", "this", ".", "nullBit1", "=", "otherInits", ".", "nullBit1", ";", "this", ".", "nullBit2", "=", "otherInits", ".", "nullBit2", ";", "this", ".", "nullBit3", "=", "otherInits", ".", "nullBit3", ";", "this", ".", "nullBit4", "=", "otherInits", ".", "nullBit4", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "1", ")", "{", "this", ".", "nullBit4", "=", "~", "0", ";", "}", "}", "}", "else", "{", "this", ".", "nullBit1", "=", "(", "b1", "=", "otherInits", ".", "nullBit1", ")", "|", "(", "a1", "=", "this", ".", "nullBit1", ")", "&", "(", "(", "a3", "=", "this", ".", "nullBit3", ")", "&", "(", "a4", "=", "this", ".", "nullBit4", ")", "&", "(", "nb2", "=", "~", "(", "b2", "=", "otherInits", ".", "nullBit2", ")", ")", "&", "(", "nb4", "=", "~", "(", "b4", "=", "otherInits", ".", "nullBit4", ")", ")", "|", "(", "(", "na4", "=", "~", "a4", ")", "|", "(", "na3", "=", "~", "a3", ")", ")", "&", "(", "(", "na2", "=", "~", "(", "a2", "=", "this", ".", "nullBit2", ")", ")", "&", "nb2", "|", "a2", "&", "(", "nb3", "=", "~", "(", "b3", "=", "otherInits", ".", "nullBit3", ")", ")", "&", "nb4", ")", ")", ";", "this", ".", "nullBit2", "=", "b2", "&", "(", "nb4", "|", "nb3", ")", "|", "na3", "&", "na4", "&", "b2", "|", "a2", "&", "(", "nb3", "&", "nb4", "|", "(", "nb1", "=", "~", "b1", ")", "&", "(", "na3", "|", "(", "na1", "=", "~", "a1", ")", ")", "|", "a1", "&", "b2", ")", ";", "this", ".", "nullBit3", "=", "b3", "&", "(", "nb1", "&", "(", "b2", "|", "a2", "|", "na1", ")", "|", "b1", "&", "(", "b4", "|", "nb2", "|", "a1", "&", "a3", ")", "|", "na1", "&", "na2", "&", "na4", ")", "|", "a3", "&", "nb2", "&", "nb4", "|", "nb1", "&", "(", "(", "na2", "&", "a4", "|", "na1", ")", "&", "a3", "|", "a1", "&", "na2", "&", "na4", "&", "b2", ")", ";", "this", ".", "nullBit4", "=", "nb1", "&", "(", "a4", "&", "(", "na3", "&", "nb3", "|", "(", "a3", "|", "na2", ")", "&", "nb2", ")", "|", "a1", "&", "(", "a3", "&", "nb2", "&", "b4", "|", "a2", "&", "b2", "&", "(", "b4", "|", "a3", "&", "na4", "&", "nb3", ")", ")", ")", "|", "b1", "&", "(", "a3", "&", "a4", "&", "b4", "|", "na2", "&", "na4", "&", "nb3", "&", "b4", "|", "a2", "&", "(", "(", "b3", "|", "a4", ")", "&", "b4", "|", "na3", "&", "a4", "&", "b2", "&", "b3", ")", "|", "na1", "&", "(", "b4", "|", "(", "a4", "|", "a2", ")", "&", "b2", "&", "b3", ")", ")", "|", "(", "na1", "&", "(", "na3", "&", "nb3", "|", "na2", "&", "nb2", ")", "|", "a1", "&", "(", "nb2", "&", "nb3", "|", "a2", "&", "a3", ")", ")", "&", "b4", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "2", ")", "{", "this", ".", "nullBit4", "=", "~", "0", ";", "}", "}", "}", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "}", "if", "(", "this", ".", "extra", "!=", "null", "||", "otherInits", ".", "extra", "!=", "null", ")", "{", "int", "mergeLimit", "=", "0", ",", "copyLimit", "=", "0", ";", "if", "(", "this", ".", "extra", "!=", "null", ")", "{", "if", "(", "otherInits", ".", "extra", "!=", "null", ")", "{", "int", "length", ",", "otherLength", ";", "if", "(", "(", "length", "=", "this", ".", "extra", "[", "0", "]", ".", "length", ")", "<", "(", "otherLength", "=", "otherInits", ".", "extra", "[", "0", "]", ".", "length", ")", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "otherLength", "]", ")", ",", "0", ",", "length", ")", ";", "}", "mergeLimit", "=", "length", ";", "copyLimit", "=", "otherLength", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "3", ")", "{", "throw", "new", "AssertionFailedException", "(", "\"COVERAGE", "3\"", ")", ";", "}", "}", "}", "else", "{", "mergeLimit", "=", "otherLength", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "4", ")", "{", "throw", "new", "AssertionFailedException", "(", "\"COVERAGE", "4\"", ")", ";", "}", "}", "}", "}", "}", "else", "if", "(", "otherInits", ".", "extra", "!=", "null", ")", "{", "int", "otherLength", ";", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "System", ".", "arraycopy", "(", "otherInits", ".", "extra", "[", "0", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "0", "]", "=", "new", "long", "[", "otherLength", "=", "otherInits", ".", "extra", "[", "0", "]", ".", "length", "]", ")", ",", "0", ",", "otherLength", ")", ";", "System", ".", "arraycopy", "(", "otherInits", ".", "extra", "[", "1", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "1", "]", "=", "new", "long", "[", "otherLength", "]", ")", ",", "0", ",", "otherLength", ")", ";", "if", "(", "otherHasNulls", ")", "{", "for", "(", "int", "j", "=", "2", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "otherInits", ".", "extra", "[", "j", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "otherLength", "]", ")", ",", "0", ",", "otherLength", ")", ";", "}", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "5", ")", "{", "this", ".", "extra", "[", "5", "]", "[", "otherLength", "-", "1", "]", "=", "~", "0", ";", "}", "}", "}", "else", "{", "for", "(", "int", "j", "=", "2", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "otherLength", "]", ";", "}", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "6", ")", "{", "throw", "new", "AssertionFailedException", "(", "\"COVERAGE", "6\"", ")", ";", "}", "}", "}", "}", "int", "i", ";", "if", "(", "handleInits", ")", "{", "for", "(", "i", "=", "0", ";", "i", "<", "mergeLimit", ";", "i", "++", ")", "{", "this", ".", "extra", "[", "0", "]", "[", "i", "]", "|=", "otherInits", ".", "extra", "[", "0", "]", "[", "i", "]", ";", "this", ".", "extra", "[", "1", "]", "[", "i", "]", "|=", "otherInits", ".", "extra", "[", "1", "]", "[", "i", "]", ";", "}", "for", "(", ";", "i", "<", "copyLimit", ";", "i", "++", ")", "{", "this", ".", "extra", "[", "0", "]", "[", "i", "]", "=", "otherInits", ".", "extra", "[", "0", "]", "[", "i", "]", ";", "this", ".", "extra", "[", "1", "]", "[", "i", "]", "=", "otherInits", ".", "extra", "[", "1", "]", "[", "i", "]", ";", "}", "}", "if", "(", "!", "thisHadNulls", ")", "{", "if", "(", "copyLimit", "<", "mergeLimit", ")", "{", "copyLimit", "=", "mergeLimit", ";", "}", "mergeLimit", "=", "0", ";", "}", "if", "(", "!", "otherHasNulls", ")", "{", "copyLimit", "=", "0", ";", "mergeLimit", "=", "0", ";", "}", "for", "(", "i", "=", "0", ";", "i", "<", "mergeLimit", ";", "i", "++", ")", "{", "this", ".", "extra", "[", "1", "+", "1", "]", "[", "i", "]", "=", "(", "b1", "=", "otherInits", ".", "extra", "[", "1", "+", "1", "]", "[", "i", "]", ")", "|", "(", "a1", "=", "this", ".", "extra", "[", "1", "+", "1", "]", "[", "i", "]", ")", "&", "(", "(", "a3", "=", "this", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", ")", "&", "(", "a4", "=", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", ")", "&", "(", "nb2", "=", "~", "(", "b2", "=", "otherInits", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", ")", ")", "&", "(", "nb4", "=", "~", "(", "b4", "=", "otherInits", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", ")", ")", "|", "(", "(", "na4", "=", "~", "a4", ")", "|", "(", "na3", "=", "~", "a3", ")", ")", "&", "(", "(", "na2", "=", "~", "(", "a2", "=", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", ")", ")", "&", "nb2", "|", "a2", "&", "(", "nb3", "=", "~", "(", "b3", "=", "otherInits", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", ")", ")", "&", "nb4", ")", ")", ";", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", "=", "b2", "&", "(", "nb4", "|", "nb3", ")", "|", "na3", "&", "na4", "&", "b2", "|", "a2", "&", "(", "nb3", "&", "nb4", "|", "(", "nb1", "=", "~", "b1", ")", "&", "(", "na3", "|", "(", "na1", "=", "~", "a1", ")", ")", "|", "a1", "&", "b2", ")", ";", "this", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", "=", "b3", "&", "(", "nb1", "&", "(", "b2", "|", "a2", "|", "na1", ")", "|", "b1", "&", "(", "b4", "|", "nb2", "|", "a1", "&", "a3", ")", "|", "na1", "&", "na2", "&", "na4", ")", "|", "a3", "&", "nb2", "&", "nb4", "|", "nb1", "&", "(", "(", "na2", "&", "a4", "|", "na1", ")", "&", "a3", "|", "a1", "&", "na2", "&", "na4", "&", "b2", ")", ";", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", "=", "nb1", "&", "(", "a4", "&", "(", "na3", "&", "nb3", "|", "(", "a3", "|", "na2", ")", "&", "nb2", ")", "|", "a1", "&", "(", "a3", "&", "nb2", "&", "b4", "|", "a2", "&", "b2", "&", "(", "b4", "|", "a3", "&", "na4", "&", "nb3", ")", ")", ")", "|", "b1", "&", "(", "a3", "&", "a4", "&", "b4", "|", "na2", "&", "na4", "&", "nb3", "&", "b4", "|", "a2", "&", "(", "(", "b3", "|", "a4", ")", "&", "b4", "|", "na3", "&", "a4", "&", "b2", "&", "b3", ")", "|", "na1", "&", "(", "b4", "|", "(", "a4", "|", "a2", ")", "&", "b2", "&", "b3", ")", ")", "|", "(", "na1", "&", "(", "na3", "&", "nb3", "|", "na2", "&", "nb2", ")", "|", "a1", "&", "(", "nb2", "&", "nb3", "|", "a2", "&", "a3", ")", ")", "&", "b4", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "7", ")", "{", "this", ".", "extra", "[", "5", "]", "[", "i", "]", "=", "~", "0", ";", "}", "}", "}", "for", "(", ";", "i", "<", "copyLimit", ";", "i", "++", ")", "{", "for", "(", "int", "j", "=", "2", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "[", "i", "]", "=", "otherInits", ".", "extra", "[", "j", "]", "[", "i", "]", ";", "}", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "8", ")", "{", "this", ".", "extra", "[", "5", "]", "[", "i", "]", "=", "~", "0", ";", "}", "}", "}", "}", "return", "this", ";", "}", "public", "FlowInfo", "addPotentialInitializationsFrom", "(", "FlowInfo", "inits", ")", "{", "if", "(", "this", "==", "DEAD_END", ")", "{", "return", "this", ";", "}", "if", "(", "inits", "==", "DEAD_END", ")", "{", "return", "this", ";", "}", "UnconditionalFlowInfo", "otherInits", "=", "inits", ".", "unconditionalInits", "(", ")", ";", "this", ".", "potentialInits", "|=", "otherInits", ".", "potentialInits", ";", "if", "(", "this", ".", "extra", "!=", "null", ")", "{", "if", "(", "otherInits", ".", "extra", "!=", "null", ")", "{", "int", "i", "=", "0", ",", "length", ",", "otherLength", ";", "if", "(", "(", "length", "=", "this", ".", "extra", "[", "0", "]", ".", "length", ")", "<", "(", "otherLength", "=", "otherInits", ".", "extra", "[", "0", "]", ".", "length", ")", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "otherLength", "]", ")", ",", "0", ",", "length", ")", ";", "}", "for", "(", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "extra", "[", "1", "]", "[", "i", "]", "|=", "otherInits", ".", "extra", "[", "1", "]", "[", "i", "]", ";", "}", "for", "(", ";", "i", "<", "otherLength", ";", "i", "++", ")", "{", "this", ".", "extra", "[", "1", "]", "[", "i", "]", "=", "otherInits", ".", "extra", "[", "1", "]", "[", "i", "]", ";", "}", "}", "else", "{", "for", "(", ";", "i", "<", "otherLength", ";", "i", "++", ")", "{", "this", ".", "extra", "[", "1", "]", "[", "i", "]", "|=", "otherInits", ".", "extra", "[", "1", "]", "[", "i", "]", ";", "}", "}", "}", "}", "else", "if", "(", "otherInits", ".", "extra", "!=", "null", ")", "{", "int", "otherLength", "=", "otherInits", ".", "extra", "[", "0", "]", ".", "length", ";", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "otherLength", "]", ";", "}", "System", ".", "arraycopy", "(", "otherInits", ".", "extra", "[", "1", "]", ",", "0", ",", "this", ".", "extra", "[", "1", "]", ",", "0", ",", "otherLength", ")", ";", "}", "addPotentialNullInfoFrom", "(", "otherInits", ")", ";", "return", "this", ";", "}", "public", "UnconditionalFlowInfo", "addPotentialNullInfoFrom", "(", "UnconditionalFlowInfo", "otherInits", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "UNREACHABLE", ")", "!=", "0", "||", "(", "otherInits", ".", "tagBits", "&", "UNREACHABLE", ")", "!=", "0", "||", "(", "otherInits", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "==", "0", ")", "{", "return", "this", ";", "}", "boolean", "thisHadNulls", "=", "(", "this", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "!=", "0", ",", "thisHasNulls", "=", "false", ";", "long", "a1", ",", "a2", ",", "a3", ",", "a4", ",", "na1", ",", "na2", ",", "na3", ",", "na4", ",", "b1", ",", "b2", ",", "b3", ",", "b4", ",", "nb1", ",", "nb2", ",", "nb3", ",", "nb4", ";", "if", "(", "thisHadNulls", ")", "{", "this", ".", "nullBit1", "=", "(", "a1", "=", "this", ".", "nullBit1", ")", "&", "(", "(", "a3", "=", "this", ".", "nullBit3", ")", "&", "(", "a4", "=", "this", ".", "nullBit4", ")", "&", "(", "(", "nb2", "=", "~", "(", "b2", "=", "otherInits", ".", "nullBit2", ")", ")", "&", "(", "nb4", "=", "~", "(", "b4", "=", "otherInits", ".", "nullBit4", ")", ")", "|", "(", "b1", "=", "otherInits", ".", "nullBit1", ")", "&", "(", "b3", "=", "otherInits", ".", "nullBit3", ")", ")", "|", "(", "na2", "=", "~", "(", "a2", "=", "this", ".", "nullBit2", ")", ")", "&", "(", "b1", "&", "b3", "|", "(", "(", "na4", "=", "~", "a4", ")", "|", "(", "na3", "=", "~", "a3", ")", ")", "&", "nb2", ")", "|", "a2", "&", "(", "(", "na4", "|", "na3", ")", "&", "(", "(", "nb3", "=", "~", "b3", ")", "&", "nb4", "|", "b1", "&", "b2", ")", ")", ")", ";", "this", ".", "nullBit2", "=", "b2", "&", "(", "nb3", "|", "(", "nb1", "=", "~", "b1", ")", ")", "|", "a2", "&", "(", "nb3", "&", "nb4", "|", "b2", "|", "na3", "|", "(", "na1", "=", "~", "a1", ")", ")", ";", "this", ".", "nullBit3", "=", "b3", "&", "(", "nb1", "&", "b2", "|", "a2", "&", "(", "nb2", "|", "a3", ")", "|", "na1", "&", "nb2", "|", "a1", "&", "na2", "&", "na4", "&", "b1", ")", "|", "a3", "&", "(", "nb2", "&", "nb4", "|", "na2", "&", "a4", "|", "na1", ")", "|", "a1", "&", "na2", "&", "na4", "&", "b2", ";", "this", ".", "nullBit4", "=", "na3", "&", "(", "nb1", "&", "nb3", "&", "b4", "|", "a4", "&", "(", "nb3", "|", "b1", "&", "b2", ")", ")", "|", "nb2", "&", "(", "na3", "&", "b1", "&", "nb3", "|", "na2", "&", "(", "nb1", "&", "b4", "|", "b1", "&", "nb3", "|", "a4", ")", ")", "|", "a3", "&", "(", "a4", "&", "(", "nb2", "|", "b1", "&", "b3", ")", "|", "a1", "&", "a2", "&", "(", "nb1", "&", "b4", "|", "na4", "&", "(", "b2", "|", "b1", ")", "&", "nb3", ")", ")", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "9", ")", "{", "this", ".", "nullBit4", "=", "~", "0", ";", "}", "}", "if", "(", "(", "this", ".", "nullBit2", "|", "this", ".", "nullBit3", "|", "this", ".", "nullBit4", ")", "!=", "0", ")", "{", "thisHasNulls", "=", "true", ";", "}", "}", "else", "{", "this", ".", "nullBit1", "=", "0", ";", "this", ".", "nullBit2", "=", "(", "b2", "=", "otherInits", ".", "nullBit2", ")", "&", "(", "(", "nb3", "=", "~", "(", "b3", "=", "otherInits", ".", "nullBit3", ")", ")", "|", "(", "nb1", "=", "~", "(", "b1", "=", "otherInits", ".", "nullBit1", ")", ")", ")", ";", "this", ".", "nullBit3", "=", "b3", "&", "(", "nb1", "|", "(", "nb2", "=", "~", "b2", ")", ")", ";", "this", ".", "nullBit4", "=", "~", "b1", "&", "~", "b3", "&", "(", "b4", "=", "otherInits", ".", "nullBit4", ")", "|", "~", "b2", "&", "(", "b1", "&", "~", "b3", "|", "~", "b1", "&", "b4", ")", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "10", ")", "{", "this", ".", "nullBit4", "=", "~", "0", ";", "}", "}", "if", "(", "(", "this", ".", "nullBit2", "|", "this", ".", "nullBit3", "|", "this", ".", "nullBit4", ")", "!=", "0", ")", "{", "thisHasNulls", "=", "true", ";", "}", "}", "if", "(", "otherInits", ".", "extra", "!=", "null", ")", "{", "int", "mergeLimit", "=", "0", ",", "copyLimit", "=", "otherInits", ".", "extra", "[", "0", "]", ".", "length", ";", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "copyLimit", "]", ";", "}", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "11", ")", "{", "throw", "new", "AssertionFailedException", "(", "\"COVERAGE", "11\"", ")", ";", "}", "}", "}", "else", "{", "mergeLimit", "=", "copyLimit", ";", "if", "(", "mergeLimit", ">", "this", ".", "extra", "[", "0", "]", ".", "length", ")", "{", "mergeLimit", "=", "this", ".", "extra", "[", "0", "]", ".", "length", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "0", ",", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "copyLimit", "]", ",", "0", ",", "mergeLimit", ")", ";", "}", "if", "(", "!", "thisHadNulls", ")", "{", "mergeLimit", "=", "0", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "12", ")", "{", "throw", "new", "AssertionFailedException", "(", "\"COVERAGE", "12\"", ")", ";", "}", "}", "}", "}", "}", "int", "i", ";", "for", "(", "i", "=", "0", ";", "i", "<", "mergeLimit", ";", "i", "++", ")", "{", "this", ".", "extra", "[", "1", "+", "1", "]", "[", "i", "]", "=", "(", "a1", "=", "this", ".", "extra", "[", "1", "+", "1", "]", "[", "i", "]", ")", "&", "(", "(", "a3", "=", "this", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", ")", "&", "(", "a4", "=", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", ")", "&", "(", "(", "nb2", "=", "~", "(", "b2", "=", "otherInits", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", ")", ")", "&", "(", "nb4", "=", "~", "(", "b4", "=", "otherInits", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", ")", ")", "|", "(", "b1", "=", "otherInits", ".", "extra", "[", "1", "+", "1", "]", "[", "i", "]", ")", "&", "(", "b3", "=", "otherInits", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", ")", ")", "|", "(", "na2", "=", "~", "(", "a2", "=", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", ")", ")", "&", "(", "b1", "&", "b3", "|", "(", "(", "na4", "=", "~", "a4", ")", "|", "(", "na3", "=", "~", "a3", ")", ")", "&", "nb2", ")", "|", "a2", "&", "(", "(", "na4", "|", "na3", ")", "&", "(", "(", "nb3", "=", "~", "b3", ")", "&", "nb4", "|", "b1", "&", "b2", ")", ")", ")", ";", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", "=", "b2", "&", "(", "nb3", "|", "(", "nb1", "=", "~", "b1", ")", ")", "|", "a2", "&", "(", "nb3", "&", "nb4", "|", "b2", "|", "na3", "|", "(", "na1", "=", "~", "a1", ")", ")", ";", "this", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", "=", "b3", "&", "(", "nb1", "&", "b2", "|", "a2", "&", "(", "nb2", "|", "a3", ")", "|", "na1", "&", "nb2", "|", "a1", "&", "na2", "&", "na4", "&", "b1", ")", "|", "a3", "&", "(", "nb2", "&", "nb4", "|", "na2", "&", "a4", "|", "na1", ")", "|", "a1", "&", "na2", "&", "na4", "&", "b2", ";", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", "=", "na3", "&", "(", "nb1", "&", "nb3", "&", "b4", "|", "a4", "&", "(", "nb3", "|", "b1", "&", "b2", ")", ")", "|", "nb2", "&", "(", "na3", "&", "b1", "&", "nb3", "|", "na2", "&", "(", "nb1", "&", "b4", "|", "b1", "&", "nb3", "|", "a4", ")", ")", "|", "a3", "&", "(", "a4", "&", "(", "nb2", "|", "b1", "&", "b3", ")", "|", "a1", "&", "a2", "&", "(", "nb1", "&", "b4", "|", "na4", "&", "(", "b2", "|", "b1", ")", "&", "nb3", ")", ")", ";", "if", "(", "(", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", "|", "this", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", "|", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", ")", "!=", "0", ")", "{", "thisHasNulls", "=", "true", ";", "}", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "13", ")", "{", "this", ".", "nullBit4", "=", "~", "0", ";", "}", "}", "}", "for", "(", ";", "i", "<", "copyLimit", ";", "i", "++", ")", "{", "this", ".", "extra", "[", "1", "+", "1", "]", "[", "i", "]", "=", "0", ";", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", "=", "(", "b2", "=", "otherInits", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", ")", "&", "(", "(", "nb3", "=", "~", "(", "b3", "=", "otherInits", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", ")", ")", "|", "(", "nb1", "=", "~", "(", "b1", "=", "otherInits", ".", "extra", "[", "1", "+", "1", "]", "[", "i", "]", ")", ")", ")", ";", "this", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", "=", "b3", "&", "(", "nb1", "|", "(", "nb2", "=", "~", "b2", ")", ")", ";", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", "=", "~", "b1", "&", "~", "b3", "&", "(", "b4", "=", "otherInits", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", ")", "|", "~", "b2", "&", "(", "b1", "&", "~", "b3", "|", "~", "b1", "&", "b4", ")", ";", "if", "(", "(", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", "|", "this", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", "|", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", ")", "!=", "0", ")", "{", "thisHasNulls", "=", "true", ";", "}", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "14", ")", "{", "this", ".", "extra", "[", "5", "]", "[", "i", "]", "=", "~", "0", ";", "}", "}", "}", "}", "if", "(", "thisHasNulls", ")", "{", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "}", "else", "{", "this", ".", "tagBits", "&=", "NULL_FLAG_MASK", ";", "}", "return", "this", ";", "}", "final", "public", "boolean", "cannotBeDefinitelyNullOrNonNull", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "==", "0", "||", "(", "local", ".", "type", ".", "tagBits", "&", "TagBits", ".", "IsBaseType", ")", "!=", "0", ")", "{", "return", "false", ";", "}", "int", "position", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "return", "(", "(", "~", "this", ".", "nullBit1", "&", "(", "this", ".", "nullBit2", "&", "this", ".", "nullBit3", "|", "this", ".", "nullBit4", ")", "|", "~", "this", ".", "nullBit2", "&", "~", "this", ".", "nullBit3", "&", "this", ".", "nullBit4", ")", "&", "(", "1L", "<<", "position", ")", ")", "!=", "0", ";", "}", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "return", "false", ";", "}", "int", "vectorIndex", ";", "if", "(", "(", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ")", ">=", "this", ".", "extra", "[", "0", "]", ".", "length", ")", "{", "return", "false", ";", "}", "long", "a2", ",", "a3", ",", "a4", ";", "return", "(", "(", "~", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "&", "(", "(", "a2", "=", "this", ".", "extra", "[", "3", "]", "[", "vectorIndex", "]", ")", "&", "(", "a3", "=", "this", ".", "extra", "[", "4", "]", "[", "vectorIndex", "]", ")", "|", "(", "a4", "=", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", ")", ")", "|", "~", "a2", "&", "~", "a3", "&", "a4", ")", "&", "(", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ")", "!=", "0", ";", "}", "final", "public", "boolean", "cannotBeNull", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "==", "0", "||", "(", "local", ".", "type", ".", "tagBits", "&", "TagBits", ".", "IsBaseType", ")", "!=", "0", ")", "{", "return", "false", ";", "}", "int", "position", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "return", "(", "this", ".", "nullBit1", "&", "this", ".", "nullBit3", "&", "(", "(", "this", ".", "nullBit2", "&", "this", ".", "nullBit4", ")", "|", "~", "this", ".", "nullBit2", ")", "&", "(", "1L", "<<", "position", ")", ")", "!=", "0", ";", "}", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "return", "false", ";", "}", "int", "vectorIndex", ";", "if", "(", "(", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ")", ">=", "this", ".", "extra", "[", "0", "]", ".", "length", ")", "{", "return", "false", ";", "}", "return", "(", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "&", "this", ".", "extra", "[", "4", "]", "[", "vectorIndex", "]", "&", "(", "(", "this", ".", "extra", "[", "3", "]", "[", "vectorIndex", "]", "&", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", ")", "|", "~", "this", ".", "extra", "[", "3", "]", "[", "vectorIndex", "]", ")", "&", "(", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ")", "!=", "0", ";", "}", "final", "public", "boolean", "canOnlyBeNull", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "==", "0", "||", "(", "local", ".", "type", ".", "tagBits", "&", "TagBits", ".", "IsBaseType", ")", "!=", "0", ")", "{", "return", "false", ";", "}", "int", "position", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "return", "(", "this", ".", "nullBit1", "&", "this", ".", "nullBit2", "&", "(", "~", "this", ".", "nullBit3", "|", "~", "this", ".", "nullBit4", ")", "&", "(", "1L", "<<", "position", ")", ")", "!=", "0", ";", "}", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "return", "false", ";", "}", "int", "vectorIndex", ";", "if", "(", "(", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ")", ">=", "this", ".", "extra", "[", "0", "]", ".", "length", ")", "{", "return", "false", ";", "}", "return", "(", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "&", "this", ".", "extra", "[", "3", "]", "[", "vectorIndex", "]", "&", "(", "~", "this", ".", "extra", "[", "4", "]", "[", "vectorIndex", "]", "|", "~", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", ")", "&", "(", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ")", "!=", "0", ";", "}", "public", "FlowInfo", "copy", "(", ")", "{", "if", "(", "this", "==", "DEAD_END", ")", "{", "return", "this", ";", "}", "UnconditionalFlowInfo", "copy", "=", "new", "UnconditionalFlowInfo", "(", ")", ";", "copy", ".", "definiteInits", "=", "this", ".", "definiteInits", ";", "copy", ".", "potentialInits", "=", "this", ".", "potentialInits", ";", "boolean", "hasNullInfo", "=", "(", "this", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "!=", "0", ";", "if", "(", "hasNullInfo", ")", "{", "copy", ".", "nullBit1", "=", "this", ".", "nullBit1", ";", "copy", ".", "nullBit2", "=", "this", ".", "nullBit2", ";", "copy", ".", "nullBit3", "=", "this", ".", "nullBit3", ";", "copy", ".", "nullBit4", "=", "this", ".", "nullBit4", ";", "}", "copy", ".", "tagBits", "=", "this", ".", "tagBits", ";", "copy", ".", "maxFieldCount", "=", "this", ".", "maxFieldCount", ";", "if", "(", "this", ".", "extra", "!=", "null", ")", "{", "int", "length", ";", "copy", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "0", "]", ",", "0", ",", "(", "copy", ".", "extra", "[", "0", "]", "=", "new", "long", "[", "length", "=", "this", ".", "extra", "[", "0", "]", ".", "length", "]", ")", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "1", "]", ",", "0", ",", "(", "copy", ".", "extra", "[", "1", "]", "=", "new", "long", "[", "length", "]", ")", ",", "0", ",", "length", ")", ";", "if", "(", "hasNullInfo", ")", "{", "for", "(", "int", "j", "=", "2", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "0", ",", "(", "copy", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "length", "]", ")", ",", "0", ",", "length", ")", ";", "}", "}", "else", "{", "for", "(", "int", "j", "=", "2", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "copy", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "length", "]", ";", "}", "}", "}", "return", "copy", ";", "}", "public", "UnconditionalFlowInfo", "discardInitializationInfo", "(", ")", "{", "if", "(", "this", "==", "DEAD_END", ")", "{", "return", "this", ";", "}", "this", ".", "definiteInits", "=", "this", ".", "potentialInits", "=", "0", ";", "if", "(", "this", ".", "extra", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "extra", "[", "0", "]", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "extra", "[", "0", "]", "[", "i", "]", "=", "this", ".", "extra", "[", "1", "]", "[", "i", "]", "=", "0", ";", "}", "}", "return", "this", ";", "}", "public", "UnconditionalFlowInfo", "discardNonFieldInitializations", "(", ")", "{", "int", "limit", "=", "this", ".", "maxFieldCount", ";", "if", "(", "limit", "<", "BitCacheSize", ")", "{", "long", "mask", "=", "(", "1L", "<<", "limit", ")", "-", "1", ";", "this", ".", "definiteInits", "&=", "mask", ";", "this", ".", "potentialInits", "&=", "mask", ";", "this", ".", "nullBit1", "&=", "mask", ";", "this", ".", "nullBit2", "&=", "mask", ";", "this", ".", "nullBit3", "&=", "mask", ";", "this", ".", "nullBit4", "&=", "mask", ";", "}", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "return", "this", ";", "}", "int", "vectorIndex", ",", "length", "=", "this", ".", "extra", "[", "0", "]", ".", "length", ";", "if", "(", "(", "vectorIndex", "=", "(", "limit", "/", "BitCacheSize", ")", "-", "1", ")", ">=", "length", ")", "{", "return", "this", ";", "}", "if", "(", "vectorIndex", ">=", "0", ")", "{", "long", "mask", "=", "(", "1L", "<<", "(", "limit", "%", "BitCacheSize", ")", ")", "-", "1", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "[", "vectorIndex", "]", "&=", "mask", ";", "}", "}", "for", "(", "int", "i", "=", "vectorIndex", "+", "1", ";", "i", "<", "length", ";", "i", "++", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "[", "i", "]", "=", "0", ";", "}", "}", "return", "this", ";", "}", "public", "FlowInfo", "initsWhenFalse", "(", ")", "{", "return", "this", ";", "}", "public", "FlowInfo", "initsWhenTrue", "(", ")", "{", "return", "this", ";", "}", "final", "private", "boolean", "isDefinitelyAssigned", "(", "int", "position", ")", "{", "if", "(", "position", "<", "BitCacheSize", ")", "{", "return", "(", "this", ".", "definiteInits", "&", "(", "1L", "<<", "position", ")", ")", "!=", "0", ";", "}", "if", "(", "this", ".", "extra", "==", "null", ")", "return", "false", ";", "int", "vectorIndex", ";", "if", "(", "(", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ")", ">=", "this", ".", "extra", "[", "0", "]", ".", "length", ")", "{", "return", "false", ";", "}", "return", "(", "(", "this", ".", "extra", "[", "0", "]", "[", "vectorIndex", "]", ")", "&", "(", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ")", "!=", "0", ";", "}", "final", "public", "boolean", "isDefinitelyAssigned", "(", "FieldBinding", "field", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "UNREACHABLE_OR_DEAD", ")", "!=", "0", ")", "{", "return", "true", ";", "}", "return", "isDefinitelyAssigned", "(", "field", ".", "id", ")", ";", "}", "final", "public", "boolean", "isDefinitelyAssigned", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "UNREACHABLE_OR_DEAD", ")", "!=", "0", "&&", "(", "local", ".", "declaration", ".", "bits", "&", "ASTNode", ".", "IsLocalDeclarationReachable", ")", "!=", "0", ")", "{", "return", "true", ";", "}", "return", "isDefinitelyAssigned", "(", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", ";", "}", "final", "public", "boolean", "isDefinitelyNonNull", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "UNREACHABLE", ")", "!=", "0", "||", "(", "this", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "==", "0", ")", "{", "return", "false", ";", "}", "if", "(", "(", "local", ".", "type", ".", "tagBits", "&", "TagBits", ".", "IsBaseType", ")", "!=", "0", "||", "local", ".", "constant", "(", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "return", "true", ";", "}", "int", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ";", "if", "(", "position", "<", "BitCacheSize", ")", "{", "return", "(", "(", "this", ".", "nullBit1", "&", "this", ".", "nullBit3", "&", "(", "~", "this", ".", "nullBit2", "|", "this", ".", "nullBit4", ")", ")", "&", "(", "1L", "<<", "position", ")", ")", "!=", "0", ";", "}", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "return", "false", ";", "}", "int", "vectorIndex", ";", "if", "(", "(", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ")", ">=", "this", ".", "extra", "[", "2", "]", ".", "length", ")", "{", "return", "false", ";", "}", "return", "(", "(", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "&", "this", ".", "extra", "[", "4", "]", "[", "vectorIndex", "]", "&", "(", "~", "this", ".", "extra", "[", "3", "]", "[", "vectorIndex", "]", "|", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", ")", ")", "&", "(", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ")", "!=", "0", ";", "}", "final", "public", "boolean", "isDefinitelyNull", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "UNREACHABLE", ")", "!=", "0", "||", "(", "this", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "==", "0", "||", "(", "local", ".", "type", ".", "tagBits", "&", "TagBits", ".", "IsBaseType", ")", "!=", "0", ")", "{", "return", "false", ";", "}", "int", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ";", "if", "(", "position", "<", "BitCacheSize", ")", "{", "return", "(", "(", "this", ".", "nullBit1", "&", "this", ".", "nullBit2", "&", "(", "~", "this", ".", "nullBit3", "|", "~", "this", ".", "nullBit4", ")", ")", "&", "(", "1L", "<<", "position", ")", ")", "!=", "0", ";", "}", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "return", "false", ";", "}", "int", "vectorIndex", ";", "if", "(", "(", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ")", ">=", "this", ".", "extra", "[", "2", "]", ".", "length", ")", "{", "return", "false", ";", "}", "return", "(", "(", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "&", "this", ".", "extra", "[", "3", "]", "[", "vectorIndex", "]", "&", "(", "~", "this", ".", "extra", "[", "4", "]", "[", "vectorIndex", "]", "|", "~", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", ")", ")", "&", "(", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ")", "!=", "0", ";", "}", "final", "public", "boolean", "isDefinitelyUnknown", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "UNREACHABLE", ")", "!=", "0", "||", "(", "this", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "==", "0", ")", "{", "return", "false", ";", "}", "int", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ";", "if", "(", "position", "<", "BitCacheSize", ")", "{", "return", "(", "(", "this", ".", "nullBit1", "&", "this", ".", "nullBit4", "&", "~", "this", ".", "nullBit2", "&", "~", "this", ".", "nullBit3", ")", "&", "(", "1L", "<<", "position", ")", ")", "!=", "0", ";", "}", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "return", "false", ";", "}", "int", "vectorIndex", ";", "if", "(", "(", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ")", ">=", "this", ".", "extra", "[", "2", "]", ".", "length", ")", "{", "return", "false", ";", "}", "return", "(", "(", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "&", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "&", "~", "this", ".", "extra", "[", "3", "]", "[", "vectorIndex", "]", "&", "~", "this", ".", "extra", "[", "4", "]", "[", "vectorIndex", "]", ")", "&", "(", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ")", "!=", "0", ";", "}", "final", "private", "boolean", "isPotentiallyAssigned", "(", "int", "position", ")", "{", "if", "(", "position", "<", "BitCacheSize", ")", "{", "return", "(", "this", ".", "potentialInits", "&", "(", "1L", "<<", "position", ")", ")", "!=", "0", ";", "}", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "return", "false", ";", "}", "int", "vectorIndex", ";", "if", "(", "(", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ")", ">=", "this", ".", "extra", "[", "0", "]", ".", "length", ")", "{", "return", "false", ";", "}", "return", "(", "(", "this", ".", "extra", "[", "1", "]", "[", "vectorIndex", "]", ")", "&", "(", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ")", "!=", "0", ";", "}", "final", "public", "boolean", "isPotentiallyAssigned", "(", "FieldBinding", "field", ")", "{", "return", "isPotentiallyAssigned", "(", "field", ".", "id", ")", ";", "}", "final", "public", "boolean", "isPotentiallyAssigned", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "local", ".", "constant", "(", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "return", "true", ";", "}", "return", "isPotentiallyAssigned", "(", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", ";", "}", "final", "public", "boolean", "isPotentiallyNonNull", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "==", "0", "||", "(", "local", ".", "type", ".", "tagBits", "&", "TagBits", ".", "IsBaseType", ")", "!=", "0", ")", "{", "return", "false", ";", "}", "int", "position", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "return", "(", "(", "this", ".", "nullBit3", "&", "(", "~", "this", ".", "nullBit1", "|", "~", "this", ".", "nullBit2", ")", ")", "&", "(", "1L", "<<", "position", ")", ")", "!=", "0", ";", "}", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "return", "false", ";", "}", "int", "vectorIndex", ";", "if", "(", "(", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ")", ">=", "this", ".", "extra", "[", "2", "]", ".", "length", ")", "{", "return", "false", ";", "}", "return", "(", "(", "this", ".", "extra", "[", "4", "]", "[", "vectorIndex", "]", "&", "(", "~", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "|", "~", "this", ".", "extra", "[", "3", "]", "[", "vectorIndex", "]", ")", ")", "&", "(", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ")", "!=", "0", ";", "}", "final", "public", "boolean", "isPotentiallyNull", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "==", "0", "||", "(", "local", ".", "type", ".", "tagBits", "&", "TagBits", ".", "IsBaseType", ")", "!=", "0", ")", "{", "return", "false", ";", "}", "int", "position", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "return", "(", "(", "this", ".", "nullBit2", "&", "(", "~", "this", ".", "nullBit1", "|", "~", "this", ".", "nullBit3", ")", ")", "&", "(", "1L", "<<", "position", ")", ")", "!=", "0", ";", "}", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "return", "false", ";", "}", "int", "vectorIndex", ";", "if", "(", "(", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ")", ">=", "this", ".", "extra", "[", "2", "]", ".", "length", ")", "{", "return", "false", ";", "}", "return", "(", "(", "this", ".", "extra", "[", "3", "]", "[", "vectorIndex", "]", "&", "(", "~", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "|", "~", "this", ".", "extra", "[", "4", "]", "[", "vectorIndex", "]", ")", ")", "&", "(", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ")", "!=", "0", ";", "}", "final", "public", "boolean", "isPotentiallyUnknown", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "UNREACHABLE", ")", "!=", "0", "||", "(", "this", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "==", "0", ")", "{", "return", "false", ";", "}", "int", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ";", "if", "(", "position", "<", "BitCacheSize", ")", "{", "return", "(", "this", ".", "nullBit4", "&", "(", "~", "this", ".", "nullBit1", "|", "~", "this", ".", "nullBit2", "&", "~", "this", ".", "nullBit3", ")", "&", "(", "1L", "<<", "position", ")", ")", "!=", "0", ";", "}", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "return", "false", ";", "}", "int", "vectorIndex", ";", "if", "(", "(", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ")", ">=", "this", ".", "extra", "[", "2", "]", ".", "length", ")", "{", "return", "false", ";", "}", "return", "(", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "&", "(", "~", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "|", "~", "this", ".", "extra", "[", "3", "]", "[", "vectorIndex", "]", "&", "~", "this", ".", "extra", "[", "4", "]", "[", "vectorIndex", "]", ")", "&", "(", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ")", "!=", "0", ";", "}", "final", "public", "boolean", "isProtectedNonNull", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "==", "0", "||", "(", "local", ".", "type", ".", "tagBits", "&", "TagBits", ".", "IsBaseType", ")", "!=", "0", ")", "{", "return", "false", ";", "}", "int", "position", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "return", "(", "this", ".", "nullBit1", "&", "this", ".", "nullBit3", "&", "this", ".", "nullBit4", "&", "(", "1L", "<<", "position", ")", ")", "!=", "0", ";", "}", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "return", "false", ";", "}", "int", "vectorIndex", ";", "if", "(", "(", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ")", ">=", "this", ".", "extra", "[", "0", "]", ".", "length", ")", "{", "return", "false", ";", "}", "return", "(", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "&", "this", ".", "extra", "[", "4", "]", "[", "vectorIndex", "]", "&", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "&", "(", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ")", "!=", "0", ";", "}", "final", "public", "boolean", "isProtectedNull", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "==", "0", "||", "(", "local", ".", "type", ".", "tagBits", "&", "TagBits", ".", "IsBaseType", ")", "!=", "0", ")", "{", "return", "false", ";", "}", "int", "position", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "return", "(", "this", ".", "nullBit1", "&", "this", ".", "nullBit2", "&", "(", "this", ".", "nullBit3", "^", "this", ".", "nullBit4", ")", "&", "(", "1L", "<<", "position", ")", ")", "!=", "0", ";", "}", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "return", "false", ";", "}", "int", "vectorIndex", ";", "if", "(", "(", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ")", ">=", "this", ".", "extra", "[", "0", "]", ".", "length", ")", "{", "return", "false", ";", "}", "return", "(", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "&", "this", ".", "extra", "[", "3", "]", "[", "vectorIndex", "]", "&", "(", "this", ".", "extra", "[", "4", "]", "[", "vectorIndex", "]", "^", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", ")", "&", "(", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ")", "!=", "0", ";", "}", "protected", "static", "boolean", "isTrue", "(", "boolean", "expression", ",", "String", "message", ")", "{", "if", "(", "!", "expression", ")", "throw", "new", "AssertionFailedException", "(", "\"\"", "+", "message", ")", ";", "return", "expression", ";", "}", "public", "void", "markAsComparedEqualToNonNull", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "this", "!=", "DEAD_END", ")", "{", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "int", "position", ";", "long", "mask", ";", "long", "a1", ",", "a2", ",", "a3", ",", "a4", ",", "na2", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "if", "(", "(", "(", "mask", "=", "1L", "<<", "position", ")", "&", "(", "a1", "=", "this", ".", "nullBit1", ")", "&", "(", "na2", "=", "~", "(", "a2", "=", "this", ".", "nullBit2", ")", ")", "&", "~", "(", "a3", "=", "this", ".", "nullBit3", ")", "&", "(", "a4", "=", "this", ".", "nullBit4", ")", ")", "!=", "0", ")", "{", "this", ".", "nullBit4", "&=", "~", "mask", ";", "}", "else", "if", "(", "(", "mask", "&", "a1", "&", "na2", "&", "a3", ")", "==", "0", ")", "{", "this", ".", "nullBit4", "|=", "mask", ";", "if", "(", "(", "mask", "&", "a1", ")", "==", "0", ")", "{", "if", "(", "(", "mask", "&", "a2", "&", "(", "a3", "^", "a4", ")", ")", "!=", "0", ")", "{", "this", ".", "nullBit2", "&=", "~", "mask", ";", "}", "else", "if", "(", "(", "mask", "&", "(", "a2", "|", "a3", "|", "a4", ")", ")", "==", "0", ")", "{", "this", ".", "nullBit2", "|=", "mask", ";", "}", "}", "}", "this", ".", "nullBit1", "|=", "mask", ";", "this", ".", "nullBit3", "|=", "mask", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "15", ")", "{", "this", ".", "nullBit4", "=", "~", "0", ";", "}", "}", "}", "else", "{", "int", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ";", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "int", "length", "=", "vectorIndex", "+", "1", ";", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "length", "]", ";", "}", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "16", ")", "{", "throw", "new", "AssertionFailedException", "(", "\"COVERAGE", "16\"", ")", ";", "}", "}", "}", "else", "{", "int", "oldLength", ";", "if", "(", "vectorIndex", ">=", "(", "oldLength", "=", "this", ".", "extra", "[", "0", "]", ".", "length", ")", ")", "{", "int", "newLength", "=", "vectorIndex", "+", "1", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "newLength", "]", ")", ",", "0", ",", "oldLength", ")", ";", "}", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "17", ")", "{", "throw", "new", "AssertionFailedException", "(", "\"COVERAGE", "17\"", ")", ";", "}", "}", "}", "}", "if", "(", "(", "(", "mask", "=", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", "&", "(", "a1", "=", "this", ".", "extra", "[", "1", "+", "1", "]", "[", "vectorIndex", "]", ")", "&", "(", "na2", "=", "~", "(", "a2", "=", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "vectorIndex", "]", ")", ")", "&", "~", "(", "a3", "=", "this", ".", "extra", "[", "3", "+", "1", "]", "[", "vectorIndex", "]", ")", "&", "(", "a4", "=", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "vectorIndex", "]", ")", ")", "!=", "0", ")", "{", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "vectorIndex", "]", "&=", "~", "mask", ";", "}", "else", "if", "(", "(", "mask", "&", "a1", "&", "na2", "&", "a3", ")", "==", "0", ")", "{", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "vectorIndex", "]", "|=", "mask", ";", "if", "(", "(", "mask", "&", "a1", ")", "==", "0", ")", "{", "if", "(", "(", "mask", "&", "a2", "&", "(", "a3", "^", "a4", ")", ")", "!=", "0", ")", "{", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "vectorIndex", "]", "&=", "~", "mask", ";", "}", "else", "if", "(", "(", "mask", "&", "(", "a2", "|", "a3", "|", "a4", ")", ")", "==", "0", ")", "{", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "vectorIndex", "]", "|=", "mask", ";", "}", "}", "}", "this", ".", "extra", "[", "1", "+", "1", "]", "[", "vectorIndex", "]", "|=", "mask", ";", "this", ".", "extra", "[", "3", "+", "1", "]", "[", "vectorIndex", "]", "|=", "mask", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "18", ")", "{", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "=", "~", "0", ";", "}", "}", "}", "}", "}", "public", "void", "markAsComparedEqualToNull", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "this", "!=", "DEAD_END", ")", "{", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "int", "position", ";", "long", "mask", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "if", "(", "(", "(", "mask", "=", "1L", "<<", "position", ")", "&", "this", ".", "nullBit1", ")", "!=", "0", ")", "{", "if", "(", "(", "mask", "&", "(", "~", "this", ".", "nullBit2", "|", "this", ".", "nullBit3", "|", "~", "this", ".", "nullBit4", ")", ")", "!=", "0", ")", "{", "this", ".", "nullBit4", "&=", "~", "mask", ";", "}", "}", "else", "if", "(", "(", "mask", "&", "this", ".", "nullBit4", ")", "!=", "0", ")", "{", "this", ".", "nullBit3", "&=", "~", "mask", ";", "}", "else", "{", "if", "(", "(", "mask", "&", "this", ".", "nullBit2", ")", "!=", "0", ")", "{", "this", ".", "nullBit3", "&=", "~", "mask", ";", "this", ".", "nullBit4", "|=", "mask", ";", "}", "else", "{", "this", ".", "nullBit3", "|=", "mask", ";", "}", "}", "this", ".", "nullBit1", "|=", "mask", ";", "this", ".", "nullBit2", "|=", "mask", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "19", ")", "{", "this", ".", "nullBit4", "=", "~", "0", ";", "}", "}", "}", "else", "{", "int", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ";", "mask", "=", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ";", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "int", "length", "=", "vectorIndex", "+", "1", ";", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "length", "]", ";", "}", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "20", ")", "{", "throw", "new", "AssertionFailedException", "(", "\"COVERAGE", "20\"", ")", ";", "}", "}", "}", "else", "{", "int", "oldLength", ";", "if", "(", "vectorIndex", ">=", "(", "oldLength", "=", "this", ".", "extra", "[", "0", "]", ".", "length", ")", ")", "{", "int", "newLength", "=", "vectorIndex", "+", "1", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "newLength", "]", ")", ",", "0", ",", "oldLength", ")", ";", "}", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "21", ")", "{", "throw", "new", "AssertionFailedException", "(", "\"COVERAGE", "21\"", ")", ";", "}", "}", "}", "}", "if", "(", "(", "mask", "&", "this", ".", "extra", "[", "1", "+", "1", "]", "[", "vectorIndex", "]", ")", "!=", "0", ")", "{", "if", "(", "(", "mask", "&", "(", "~", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "vectorIndex", "]", "|", "this", ".", "extra", "[", "3", "+", "1", "]", "[", "vectorIndex", "]", "|", "~", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "vectorIndex", "]", ")", ")", "!=", "0", ")", "{", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "vectorIndex", "]", "&=", "~", "mask", ";", "}", "}", "else", "if", "(", "(", "mask", "&", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "vectorIndex", "]", ")", "!=", "0", ")", "{", "this", ".", "extra", "[", "3", "+", "1", "]", "[", "vectorIndex", "]", "&=", "~", "mask", ";", "}", "else", "{", "if", "(", "(", "mask", "&", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "vectorIndex", "]", ")", "!=", "0", ")", "{", "this", ".", "extra", "[", "3", "+", "1", "]", "[", "vectorIndex", "]", "&=", "~", "mask", ";", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "vectorIndex", "]", "|=", "mask", ";", "}", "else", "{", "this", ".", "extra", "[", "3", "+", "1", "]", "[", "vectorIndex", "]", "|=", "mask", ";", "}", "}", "this", ".", "extra", "[", "1", "+", "1", "]", "[", "vectorIndex", "]", "|=", "mask", ";", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "vectorIndex", "]", "|=", "mask", ";", "}", "}", "}", "final", "private", "void", "markAsDefinitelyAssigned", "(", "int", "position", ")", "{", "if", "(", "this", "!=", "DEAD_END", ")", "{", "if", "(", "position", "<", "BitCacheSize", ")", "{", "long", "mask", ";", "this", ".", "definiteInits", "|=", "(", "mask", "=", "1L", "<<", "position", ")", ";", "this", ".", "potentialInits", "|=", "mask", ";", "}", "else", "{", "int", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ";", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "int", "length", "=", "vectorIndex", "+", "1", ";", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "length", "]", ";", "}", "}", "else", "{", "int", "oldLength", ";", "if", "(", "vectorIndex", ">=", "(", "oldLength", "=", "this", ".", "extra", "[", "0", "]", ".", "length", ")", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "vectorIndex", "+", "1", "]", ")", ",", "0", ",", "oldLength", ")", ";", "}", "}", "}", "long", "mask", ";", "this", ".", "extra", "[", "0", "]", "[", "vectorIndex", "]", "|=", "(", "mask", "=", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ";", "this", ".", "extra", "[", "1", "]", "[", "vectorIndex", "]", "|=", "mask", ";", "}", "}", "}", "public", "void", "markAsDefinitelyAssigned", "(", "FieldBinding", "field", ")", "{", "if", "(", "this", "!=", "DEAD_END", ")", "markAsDefinitelyAssigned", "(", "field", ".", "id", ")", ";", "}", "public", "void", "markAsDefinitelyAssigned", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "this", "!=", "DEAD_END", ")", "markAsDefinitelyAssigned", "(", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", ";", "}", "public", "void", "markAsDefinitelyNonNull", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "this", "!=", "DEAD_END", ")", "{", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "long", "mask", ";", "int", "position", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "this", ".", "nullBit1", "|=", "(", "mask", "=", "1L", "<<", "position", ")", ";", "this", ".", "nullBit3", "|=", "mask", ";", "this", ".", "nullBit2", "&=", "(", "mask", "=", "~", "mask", ")", ";", "this", ".", "nullBit4", "&=", "mask", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "22", ")", "{", "this", ".", "nullBit1", "=", "0", ";", "}", "}", "}", "else", "{", "int", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ";", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "int", "length", "=", "vectorIndex", "+", "1", ";", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "length", "]", ";", "}", "}", "else", "{", "int", "oldLength", ";", "if", "(", "vectorIndex", ">=", "(", "oldLength", "=", "this", ".", "extra", "[", "0", "]", ".", "length", ")", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "vectorIndex", "+", "1", "]", ")", ",", "0", ",", "oldLength", ")", ";", "}", "}", "}", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "|=", "(", "mask", "=", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ";", "this", ".", "extra", "[", "4", "]", "[", "vectorIndex", "]", "|=", "mask", ";", "this", ".", "extra", "[", "3", "]", "[", "vectorIndex", "]", "&=", "(", "mask", "=", "~", "mask", ")", ";", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "&=", "mask", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "23", ")", "{", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "=", "0", ";", "}", "}", "}", "}", "}", "public", "void", "markAsDefinitelyNull", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "this", "!=", "DEAD_END", ")", "{", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "long", "mask", ";", "int", "position", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "this", ".", "nullBit1", "|=", "(", "mask", "=", "1L", "<<", "position", ")", ";", "this", ".", "nullBit2", "|=", "mask", ";", "this", ".", "nullBit3", "&=", "(", "mask", "=", "~", "mask", ")", ";", "this", ".", "nullBit4", "&=", "mask", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "24", ")", "{", "this", ".", "nullBit4", "=", "~", "0", ";", "}", "}", "}", "else", "{", "int", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ";", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "int", "length", "=", "vectorIndex", "+", "1", ";", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "length", "]", ";", "}", "}", "else", "{", "int", "oldLength", ";", "if", "(", "vectorIndex", ">=", "(", "oldLength", "=", "this", ".", "extra", "[", "0", "]", ".", "length", ")", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "vectorIndex", "+", "1", "]", ")", ",", "0", ",", "oldLength", ")", ";", "}", "}", "}", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "|=", "(", "mask", "=", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ";", "this", ".", "extra", "[", "3", "]", "[", "vectorIndex", "]", "|=", "mask", ";", "this", ".", "extra", "[", "4", "]", "[", "vectorIndex", "]", "&=", "(", "mask", "=", "~", "mask", ")", ";", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "&=", "mask", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "25", ")", "{", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "=", "~", "0", ";", "}", "}", "}", "}", "}", "public", "void", "markAsDefinitelyUnknown", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "this", "!=", "DEAD_END", ")", "{", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "long", "mask", ";", "int", "position", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "this", ".", "nullBit1", "|=", "(", "mask", "=", "1L", "<<", "position", ")", ";", "this", ".", "nullBit4", "|=", "mask", ";", "this", ".", "nullBit2", "&=", "(", "mask", "=", "~", "mask", ")", ";", "this", ".", "nullBit3", "&=", "mask", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "26", ")", "{", "this", ".", "nullBit4", "=", "0", ";", "}", "}", "}", "else", "{", "int", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ";", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "int", "length", "=", "vectorIndex", "+", "1", ";", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "length", "]", ";", "}", "}", "else", "{", "int", "oldLength", ";", "if", "(", "vectorIndex", ">=", "(", "oldLength", "=", "this", ".", "extra", "[", "0", "]", ".", "length", ")", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "vectorIndex", "+", "1", "]", ")", ",", "0", ",", "oldLength", ")", ";", "}", "}", "}", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "|=", "(", "mask", "=", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ";", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "|=", "mask", ";", "this", ".", "extra", "[", "3", "]", "[", "vectorIndex", "]", "&=", "(", "mask", "=", "~", "mask", ")", ";", "this", ".", "extra", "[", "4", "]", "[", "vectorIndex", "]", "&=", "mask", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "27", ")", "{", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "=", "0", ";", "}", "}", "}", "}", "}", "public", "void", "resetNullInfo", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "this", "!=", "DEAD_END", ")", "{", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "int", "position", ";", "long", "mask", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "this", ".", "nullBit1", "&=", "(", "mask", "=", "~", "(", "1L", "<<", "position", ")", ")", ";", "this", ".", "nullBit2", "&=", "mask", ";", "this", ".", "nullBit3", "&=", "mask", ";", "this", ".", "nullBit4", "&=", "mask", ";", "}", "else", "{", "int", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ";", "if", "(", "this", ".", "extra", "==", "null", "||", "vectorIndex", ">=", "this", ".", "extra", "[", "2", "]", ".", "length", ")", "{", "return", ";", "}", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "&=", "(", "mask", "=", "~", "(", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ")", ";", "this", ".", "extra", "[", "3", "]", "[", "vectorIndex", "]", "&=", "mask", ";", "this", ".", "extra", "[", "4", "]", "[", "vectorIndex", "]", "&=", "mask", ";", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "&=", "mask", ";", "}", "}", "}", "public", "void", "markPotentiallyUnknownBit", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "this", "!=", "DEAD_END", ")", "{", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "int", "position", ";", "long", "mask", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "mask", "=", "1L", "<<", "position", ";", "isTrue", "(", "(", "this", ".", "nullBit1", "&", "mask", ")", "==", "0", ",", "\"\"", ")", ";", "this", ".", "nullBit4", "|=", "mask", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "46", ")", "{", "this", ".", "nullBit4", "=", "~", "0", ";", "}", "}", "}", "else", "{", "int", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ";", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "int", "length", "=", "vectorIndex", "+", "1", ";", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "length", "]", ";", "}", "}", "else", "{", "int", "oldLength", ";", "if", "(", "vectorIndex", ">=", "(", "oldLength", "=", "this", ".", "extra", "[", "0", "]", ".", "length", ")", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "vectorIndex", "+", "1", "]", ")", ",", "0", ",", "oldLength", ")", ";", "}", "}", "}", "mask", "=", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ";", "isTrue", "(", "(", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "&", "mask", ")", "==", "0", ",", "\"\"", ")", ";", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "|=", "mask", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "47", ")", "{", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "=", "~", "0", ";", "}", "}", "}", "}", "}", "public", "void", "markPotentiallyNullBit", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "this", "!=", "DEAD_END", ")", "{", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "int", "position", ";", "long", "mask", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "mask", "=", "1L", "<<", "position", ";", "isTrue", "(", "(", "this", ".", "nullBit1", "&", "mask", ")", "==", "0", ",", "\"\"", ")", ";", "this", ".", "nullBit2", "|=", "mask", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "40", ")", "{", "this", ".", "nullBit4", "=", "~", "0", ";", "}", "}", "}", "else", "{", "int", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ";", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "int", "length", "=", "vectorIndex", "+", "1", ";", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "length", "]", ";", "}", "}", "else", "{", "int", "oldLength", ";", "if", "(", "vectorIndex", ">=", "(", "oldLength", "=", "this", ".", "extra", "[", "0", "]", ".", "length", ")", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "vectorIndex", "+", "1", "]", ")", ",", "0", ",", "oldLength", ")", ";", "}", "}", "}", "mask", "=", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ";", "this", ".", "extra", "[", "3", "]", "[", "vectorIndex", "]", "|=", "mask", ";", "isTrue", "(", "(", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "&", "mask", ")", "==", "0", ",", "\"\"", ")", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "41", ")", "{", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "=", "~", "0", ";", "}", "}", "}", "}", "}", "public", "void", "markPotentiallyNonNullBit", "(", "LocalVariableBinding", "local", ")", "{", "if", "(", "this", "!=", "DEAD_END", ")", "{", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "int", "position", ";", "long", "mask", ";", "if", "(", "(", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", "<", "BitCacheSize", ")", "{", "mask", "=", "1L", "<<", "position", ";", "isTrue", "(", "(", "this", ".", "nullBit1", "&", "mask", ")", "==", "0", ",", "\"\"", ")", ";", "this", ".", "nullBit3", "|=", "mask", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "42", ")", "{", "this", ".", "nullBit4", "=", "~", "0", ";", "}", "}", "}", "else", "{", "int", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ";", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "int", "length", "=", "vectorIndex", "+", "1", ";", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "length", "]", ";", "}", "}", "else", "{", "int", "oldLength", ";", "if", "(", "vectorIndex", ">=", "(", "oldLength", "=", "this", ".", "extra", "[", "0", "]", ".", "length", ")", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "vectorIndex", "+", "1", "]", ")", ",", "0", ",", "oldLength", ")", ";", "}", "}", "}", "mask", "=", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ";", "isTrue", "(", "(", "this", ".", "extra", "[", "2", "]", "[", "vectorIndex", "]", "&", "mask", ")", "==", "0", ",", "\"\"", ")", ";", "this", ".", "extra", "[", "4", "]", "[", "vectorIndex", "]", "|=", "mask", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "43", ")", "{", "this", ".", "extra", "[", "5", "]", "[", "vectorIndex", "]", "=", "~", "0", ";", "}", "}", "}", "}", "}", "public", "UnconditionalFlowInfo", "mergedWith", "(", "UnconditionalFlowInfo", "otherInits", ")", "{", "if", "(", "(", "otherInits", ".", "tagBits", "&", "UNREACHABLE_OR_DEAD", ")", "!=", "0", "&&", "this", "!=", "DEAD_END", ")", "{", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "28", ")", "{", "throw", "new", "AssertionFailedException", "(", "\"COVERAGE", "28\"", ")", ";", "}", "}", "return", "this", ";", "}", "if", "(", "(", "this", ".", "tagBits", "&", "UNREACHABLE_OR_DEAD", ")", "!=", "0", ")", "{", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "29", ")", "{", "throw", "new", "AssertionFailedException", "(", "\"COVERAGE", "29\"", ")", ";", "}", "}", "return", "(", "UnconditionalFlowInfo", ")", "otherInits", ".", "copy", "(", ")", ";", "}", "this", ".", "definiteInits", "&=", "otherInits", ".", "definiteInits", ";", "this", ".", "potentialInits", "|=", "otherInits", ".", "potentialInits", ";", "boolean", "thisHasNulls", "=", "(", "this", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "!=", "0", ",", "otherHasNulls", "=", "(", "otherInits", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "!=", "0", ",", "thisHadNulls", "=", "thisHasNulls", ";", "long", "a1", ",", "a2", ",", "a3", ",", "a4", ",", "na1", ",", "na2", ",", "na3", ",", "na4", ",", "nb1", ",", "nb2", ",", "nb3", ",", "nb4", ",", "b1", ",", "b2", ",", "b3", ",", "b4", ";", "if", "(", "(", "otherInits", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", "!=", "0", ")", "{", "otherHasNulls", "=", "false", ";", "}", "else", "if", "(", "(", "this", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", "!=", "0", ")", "{", "this", ".", "nullBit1", "=", "otherInits", ".", "nullBit1", ";", "this", ".", "nullBit2", "=", "otherInits", ".", "nullBit2", ";", "this", ".", "nullBit3", "=", "otherInits", ".", "nullBit3", ";", "this", ".", "nullBit4", "=", "otherInits", ".", "nullBit4", ";", "thisHadNulls", "=", "false", ";", "thisHasNulls", "=", "otherHasNulls", ";", "this", ".", "tagBits", "=", "otherInits", ".", "tagBits", ";", "}", "else", "if", "(", "thisHadNulls", ")", "{", "if", "(", "otherHasNulls", ")", "{", "this", ".", "nullBit1", "=", "(", "a2", "=", "this", ".", "nullBit2", ")", "&", "(", "a3", "=", "this", ".", "nullBit3", ")", "&", "(", "a4", "=", "this", ".", "nullBit4", ")", "&", "(", "b1", "=", "otherInits", ".", "nullBit1", ")", "&", "(", "nb2", "=", "~", "(", "b2", "=", "otherInits", ".", "nullBit2", ")", ")", "|", "(", "a1", "=", "this", ".", "nullBit1", ")", "&", "(", "b1", "&", "(", "a3", "&", "a4", "&", "(", "b3", "=", "otherInits", ".", "nullBit3", ")", "&", "(", "b4", "=", "otherInits", ".", "nullBit4", ")", "|", "(", "na2", "=", "~", "a2", ")", "&", "nb2", "&", "(", "(", "nb4", "=", "~", "b4", ")", "|", "(", "na4", "=", "~", "a4", ")", "|", "(", "na3", "=", "~", "a3", ")", "&", "(", "nb3", "=", "~", "b3", ")", ")", "|", "a2", "&", "b2", "&", "(", "(", "na4", "|", "na3", ")", "&", "(", "nb4", "|", "nb3", ")", ")", ")", "|", "na2", "&", "b2", "&", "b3", "&", "b4", ")", ";", "this", ".", "nullBit2", "=", "b2", "&", "(", "nb3", "|", "(", "nb1", "=", "~", "b1", ")", "|", "a3", "&", "(", "a4", "|", "(", "na1", "=", "~", "a1", ")", ")", "&", "nb4", ")", "|", "a2", "&", "(", "b2", "|", "na4", "&", "b3", "&", "(", "b4", "|", "nb1", ")", "|", "na3", "|", "na1", ")", ";", "this", ".", "nullBit3", "=", "b3", "&", "(", "nb2", "&", "b4", "|", "nb1", "|", "a3", "&", "(", "na4", "&", "nb4", "|", "a4", "&", "b4", ")", ")", "|", "a3", "&", "(", "na2", "&", "a4", "|", "na1", ")", "|", "(", "a2", "|", "na1", ")", "&", "b1", "&", "nb2", "&", "nb4", "|", "a1", "&", "na2", "&", "na4", "&", "(", "b2", "|", "nb1", ")", ";", "this", ".", "nullBit4", "=", "na3", "&", "(", "nb1", "&", "nb3", "&", "b4", "|", "b1", "&", "(", "nb2", "&", "nb3", "|", "a4", "&", "b2", "&", "nb4", ")", "|", "na1", "&", "a4", "&", "(", "nb3", "|", "b1", "&", "b2", ")", ")", "|", "a3", "&", "a4", "&", "(", "b3", "&", "b4", "|", "b1", "&", "nb2", ")", "|", "na2", "&", "(", "nb1", "&", "b4", "|", "b1", "&", "nb3", "|", "na1", "&", "a4", ")", "&", "nb2", "|", "a1", "&", "(", "na3", "&", "(", "nb3", "&", "b4", "|", "b1", "&", "b2", "&", "b3", "&", "nb4", "|", "na2", "&", "(", "nb3", "|", "nb2", ")", ")", "|", "na2", "&", "b3", "&", "b4", "|", "a2", "&", "(", "nb1", "&", "b4", "|", "a3", "&", "na4", "&", "b1", ")", "&", "nb3", ")", ";", "long", "ax", "=", "~", "a1", "&", "a2", "&", "a3", "&", "a4", ";", "long", "bx", "=", "~", "b1", "&", "b2", "&", "b3", "&", "b4", ";", "long", "x", "=", "ax", "|", "bx", ";", "if", "(", "x", "!=", "0", ")", "{", "this", ".", "nullBit1", "&=", "~", "x", ";", "this", ".", "nullBit2", "|=", "x", ";", "this", ".", "nullBit3", "|=", "x", ";", "this", ".", "nullBit4", "|=", "x", ";", "}", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "30", ")", "{", "this", ".", "nullBit4", "=", "~", "0", ";", "}", "}", "}", "else", "{", "a1", "=", "this", ".", "nullBit1", ";", "this", ".", "nullBit1", "=", "0", ";", "this", ".", "nullBit2", "=", "(", "a2", "=", "this", ".", "nullBit2", ")", "&", "(", "na3", "=", "~", "(", "a3", "=", "this", ".", "nullBit3", ")", "|", "(", "na1", "=", "~", "a1", ")", ")", ";", "this", ".", "nullBit3", "=", "a3", "&", "(", "(", "na2", "=", "~", "a2", ")", "&", "(", "a4", "=", "this", ".", "nullBit4", ")", "|", "na1", ")", "|", "a1", "&", "na2", "&", "~", "a4", ";", "this", ".", "nullBit4", "=", "(", "na3", "|", "na2", ")", "&", "na1", "&", "a4", "|", "a1", "&", "na3", "&", "na2", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "31", ")", "{", "this", ".", "nullBit4", "=", "~", "0", ";", "}", "}", "}", "}", "else", "if", "(", "otherHasNulls", ")", "{", "this", ".", "nullBit1", "=", "0", ";", "this", ".", "nullBit2", "=", "(", "b2", "=", "otherInits", ".", "nullBit2", ")", "&", "(", "nb3", "=", "~", "(", "b3", "=", "otherInits", ".", "nullBit3", ")", "|", "(", "nb1", "=", "~", "(", "b1", "=", "otherInits", ".", "nullBit1", ")", ")", ")", ";", "this", ".", "nullBit3", "=", "b3", "&", "(", "(", "nb2", "=", "~", "b2", ")", "&", "(", "b4", "=", "otherInits", ".", "nullBit4", ")", "|", "nb1", ")", "|", "b1", "&", "nb2", "&", "~", "b4", ";", "this", ".", "nullBit4", "=", "(", "nb3", "|", "nb2", ")", "&", "nb1", "&", "b4", "|", "b1", "&", "nb3", "&", "nb2", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "32", ")", "{", "this", ".", "nullBit4", "=", "~", "0", ";", "}", "}", "thisHasNulls", "=", "this", ".", "nullBit2", "!=", "0", "||", "this", ".", "nullBit3", "!=", "0", "||", "this", ".", "nullBit4", "!=", "0", ";", "}", "if", "(", "this", ".", "extra", "!=", "null", "||", "otherInits", ".", "extra", "!=", "null", ")", "{", "int", "mergeLimit", "=", "0", ",", "copyLimit", "=", "0", ",", "resetLimit", "=", "0", ";", "int", "i", ";", "if", "(", "this", ".", "extra", "!=", "null", ")", "{", "if", "(", "otherInits", ".", "extra", "!=", "null", ")", "{", "int", "length", ",", "otherLength", ";", "if", "(", "(", "length", "=", "this", ".", "extra", "[", "0", "]", ".", "length", ")", "<", "(", "otherLength", "=", "otherInits", ".", "extra", "[", "0", "]", ".", "length", ")", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "0", ",", "(", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "otherLength", "]", ")", ",", "0", ",", "length", ")", ";", "}", "mergeLimit", "=", "length", ";", "copyLimit", "=", "otherLength", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "33", ")", "{", "throw", "new", "AssertionFailedException", "(", "\"COVERAGE", "33\"", ")", ";", "}", "}", "}", "else", "{", "mergeLimit", "=", "otherLength", ";", "resetLimit", "=", "length", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "34", ")", "{", "throw", "new", "AssertionFailedException", "(", "\"COVERAGE", "34\"", ")", ";", "}", "}", "}", "}", "else", "{", "resetLimit", "=", "this", ".", "extra", "[", "0", "]", ".", "length", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "35", ")", "{", "throw", "new", "AssertionFailedException", "(", "\"COVERAGE", "35\"", ")", ";", "}", "}", "}", "}", "else", "if", "(", "otherInits", ".", "extra", "!=", "null", ")", "{", "int", "otherLength", "=", "otherInits", ".", "extra", "[", "0", "]", ".", "length", ";", "this", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "this", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "otherLength", "]", ";", "}", "System", ".", "arraycopy", "(", "otherInits", ".", "extra", "[", "1", "]", ",", "0", ",", "this", ".", "extra", "[", "1", "]", ",", "0", ",", "otherLength", ")", ";", "copyLimit", "=", "otherLength", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "36", ")", "{", "throw", "new", "AssertionFailedException", "(", "\"COVERAGE", "36\"", ")", ";", "}", "}", "}", "for", "(", "i", "=", "0", ";", "i", "<", "mergeLimit", ";", "i", "++", ")", "{", "this", ".", "extra", "[", "0", "]", "[", "i", "]", "&=", "otherInits", ".", "extra", "[", "0", "]", "[", "i", "]", ";", "this", ".", "extra", "[", "1", "]", "[", "i", "]", "|=", "otherInits", ".", "extra", "[", "1", "]", "[", "i", "]", ";", "}", "for", "(", ";", "i", "<", "copyLimit", ";", "i", "++", ")", "{", "this", ".", "extra", "[", "1", "]", "[", "i", "]", "=", "otherInits", ".", "extra", "[", "1", "]", "[", "i", "]", ";", "}", "for", "(", ";", "i", "<", "resetLimit", ";", "i", "++", ")", "{", "this", ".", "extra", "[", "0", "]", "[", "i", "]", "=", "0", ";", "}", "if", "(", "!", "otherHasNulls", ")", "{", "if", "(", "resetLimit", "<", "mergeLimit", ")", "{", "resetLimit", "=", "mergeLimit", ";", "}", "copyLimit", "=", "0", ";", "mergeLimit", "=", "0", ";", "}", "if", "(", "!", "thisHadNulls", ")", "{", "resetLimit", "=", "0", ";", "}", "for", "(", "i", "=", "0", ";", "i", "<", "mergeLimit", ";", "i", "++", ")", "{", "this", ".", "extra", "[", "1", "+", "1", "]", "[", "i", "]", "=", "(", "a2", "=", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", ")", "&", "(", "a3", "=", "this", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", ")", "&", "(", "a4", "=", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", ")", "&", "(", "b1", "=", "otherInits", ".", "extra", "[", "1", "+", "1", "]", "[", "i", "]", ")", "&", "(", "nb2", "=", "~", "(", "b2", "=", "otherInits", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", ")", ")", "|", "(", "a1", "=", "this", ".", "extra", "[", "1", "+", "1", "]", "[", "i", "]", ")", "&", "(", "b1", "&", "(", "a3", "&", "a4", "&", "(", "b3", "=", "otherInits", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", ")", "&", "(", "b4", "=", "otherInits", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", ")", "|", "(", "na2", "=", "~", "a2", ")", "&", "nb2", "&", "(", "(", "nb4", "=", "~", "b4", ")", "|", "(", "na4", "=", "~", "a4", ")", "|", "(", "na3", "=", "~", "a3", ")", "&", "(", "nb3", "=", "~", "b3", ")", ")", "|", "a2", "&", "b2", "&", "(", "(", "na4", "|", "na3", ")", "&", "(", "nb4", "|", "nb3", ")", ")", ")", "|", "na2", "&", "b2", "&", "b3", "&", "b4", ")", ";", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", "=", "b2", "&", "(", "nb3", "|", "(", "nb1", "=", "~", "b1", ")", "|", "a3", "&", "(", "a4", "|", "(", "na1", "=", "~", "a1", ")", ")", "&", "nb4", ")", "|", "a2", "&", "(", "b2", "|", "na4", "&", "b3", "&", "(", "b4", "|", "nb1", ")", "|", "na3", "|", "na1", ")", ";", "this", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", "=", "b3", "&", "(", "nb2", "&", "b4", "|", "nb1", "|", "a3", "&", "(", "na4", "&", "nb4", "|", "a4", "&", "b4", ")", ")", "|", "a3", "&", "(", "na2", "&", "a4", "|", "na1", ")", "|", "(", "a2", "|", "na1", ")", "&", "b1", "&", "nb2", "&", "nb4", "|", "a1", "&", "na2", "&", "na4", "&", "(", "b2", "|", "nb1", ")", ";", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", "=", "na3", "&", "(", "nb1", "&", "nb3", "&", "b4", "|", "b1", "&", "(", "nb2", "&", "nb3", "|", "a4", "&", "b2", "&", "nb4", ")", "|", "na1", "&", "a4", "&", "(", "nb3", "|", "b1", "&", "b2", ")", ")", "|", "a3", "&", "a4", "&", "(", "b3", "&", "b4", "|", "b1", "&", "nb2", ")", "|", "na2", "&", "(", "nb1", "&", "b4", "|", "b1", "&", "nb3", "|", "na1", "&", "a4", ")", "&", "nb2", "|", "a1", "&", "(", "na3", "&", "(", "nb3", "&", "b4", "|", "b1", "&", "b2", "&", "b3", "&", "nb4", "|", "na2", "&", "(", "nb3", "|", "nb2", ")", ")", "|", "na2", "&", "b3", "&", "b4", "|", "a2", "&", "(", "nb1", "&", "b4", "|", "a3", "&", "na4", "&", "b1", ")", "&", "nb3", ")", ";", "long", "ax", "=", "~", "a1", "&", "a2", "&", "a3", "&", "a4", ";", "long", "bx", "=", "~", "b1", "&", "b2", "&", "b3", "&", "b4", ";", "long", "x", "=", "ax", "|", "bx", ";", "if", "(", "x", "!=", "0", ")", "{", "this", ".", "extra", "[", "2", "]", "[", "i", "]", "&=", "~", "x", ";", "this", ".", "extra", "[", "3", "]", "[", "i", "]", "|=", "x", ";", "this", ".", "extra", "[", "4", "]", "[", "i", "]", "|=", "x", ";", "this", ".", "extra", "[", "5", "]", "[", "i", "]", "|=", "x", ";", "}", "thisHasNulls", "=", "thisHasNulls", "||", "this", ".", "extra", "[", "3", "]", "[", "i", "]", "!=", "0", "||", "this", ".", "extra", "[", "4", "]", "[", "i", "]", "!=", "0", "||", "this", ".", "extra", "[", "5", "]", "[", "i", "]", "!=", "0", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "37", ")", "{", "this", ".", "extra", "[", "5", "]", "[", "i", "]", "=", "~", "0", ";", "}", "}", "}", "for", "(", ";", "i", "<", "copyLimit", ";", "i", "++", ")", "{", "this", ".", "extra", "[", "1", "+", "1", "]", "[", "i", "]", "=", "0", ";", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", "=", "(", "b2", "=", "otherInits", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", ")", "&", "(", "nb3", "=", "~", "(", "b3", "=", "otherInits", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", ")", "|", "(", "nb1", "=", "~", "(", "b1", "=", "otherInits", ".", "extra", "[", "1", "+", "1", "]", "[", "i", "]", ")", ")", ")", ";", "this", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", "=", "b3", "&", "(", "(", "nb2", "=", "~", "b2", ")", "&", "(", "b4", "=", "otherInits", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", ")", "|", "nb1", ")", "|", "b1", "&", "nb2", "&", "~", "b4", ";", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", "=", "(", "nb3", "|", "nb2", ")", "&", "nb1", "&", "b4", "|", "b1", "&", "nb3", "&", "nb2", ";", "thisHasNulls", "=", "thisHasNulls", "||", "this", ".", "extra", "[", "3", "]", "[", "i", "]", "!=", "0", "||", "this", ".", "extra", "[", "4", "]", "[", "i", "]", "!=", "0", "||", "this", ".", "extra", "[", "5", "]", "[", "i", "]", "!=", "0", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "38", ")", "{", "this", ".", "extra", "[", "5", "]", "[", "i", "]", "=", "~", "0", ";", "}", "}", "}", "for", "(", ";", "i", "<", "resetLimit", ";", "i", "++", ")", "{", "a1", "=", "this", ".", "extra", "[", "1", "+", "1", "]", "[", "i", "]", ";", "this", ".", "extra", "[", "1", "+", "1", "]", "[", "i", "]", "=", "0", ";", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", "=", "(", "a2", "=", "this", ".", "extra", "[", "2", "+", "1", "]", "[", "i", "]", ")", "&", "(", "na3", "=", "~", "(", "a3", "=", "this", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", ")", "|", "(", "na1", "=", "~", "a1", ")", ")", ";", "this", ".", "extra", "[", "3", "+", "1", "]", "[", "i", "]", "=", "a3", "&", "(", "(", "na2", "=", "~", "a2", ")", "&", "(", "a4", "=", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", ")", "|", "na1", ")", "|", "a1", "&", "na2", "&", "~", "a4", ";", "this", ".", "extra", "[", "4", "+", "1", "]", "[", "i", "]", "=", "(", "na3", "|", "na2", ")", "&", "na1", "&", "a4", "|", "a1", "&", "na3", "&", "na2", ";", "thisHasNulls", "=", "thisHasNulls", "||", "this", ".", "extra", "[", "3", "]", "[", "i", "]", "!=", "0", "||", "this", ".", "extra", "[", "4", "]", "[", "i", "]", "!=", "0", "||", "this", ".", "extra", "[", "5", "]", "[", "i", "]", "!=", "0", ";", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "39", ")", "{", "this", ".", "extra", "[", "5", "]", "[", "i", "]", "=", "~", "0", ";", "}", "}", "}", "}", "if", "(", "thisHasNulls", ")", "{", "this", ".", "tagBits", "|=", "NULL_FLAG_MASK", ";", "}", "else", "{", "this", ".", "tagBits", "&=", "~", "NULL_FLAG_MASK", ";", "}", "return", "this", ";", "}", "static", "int", "numberOfEnclosingFields", "(", "ReferenceBinding", "type", ")", "{", "int", "count", "=", "0", ";", "type", "=", "type", ".", "enclosingType", "(", ")", ";", "while", "(", "type", "!=", "null", ")", "{", "count", "+=", "type", ".", "fieldCount", "(", ")", ";", "type", "=", "type", ".", "enclosingType", "(", ")", ";", "}", "return", "count", ";", "}", "public", "UnconditionalFlowInfo", "nullInfoLessUnconditionalCopy", "(", ")", "{", "if", "(", "this", "==", "DEAD_END", ")", "{", "return", "this", ";", "}", "UnconditionalFlowInfo", "copy", "=", "new", "UnconditionalFlowInfo", "(", ")", ";", "copy", ".", "definiteInits", "=", "this", ".", "definiteInits", ";", "copy", ".", "potentialInits", "=", "this", ".", "potentialInits", ";", "copy", ".", "tagBits", "=", "this", ".", "tagBits", "&", "~", "NULL_FLAG_MASK", ";", "copy", ".", "maxFieldCount", "=", "this", ".", "maxFieldCount", ";", "if", "(", "this", ".", "extra", "!=", "null", ")", "{", "int", "length", ";", "copy", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "0", "]", ",", "0", ",", "(", "copy", ".", "extra", "[", "0", "]", "=", "new", "long", "[", "length", "=", "this", ".", "extra", "[", "0", "]", ".", "length", "]", ")", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "1", "]", ",", "0", ",", "(", "copy", ".", "extra", "[", "1", "]", "=", "new", "long", "[", "length", "]", ")", ",", "0", ",", "length", ")", ";", "for", "(", "int", "j", "=", "2", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "copy", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "length", "]", ";", "}", "}", "return", "copy", ";", "}", "public", "FlowInfo", "safeInitsWhenTrue", "(", ")", "{", "return", "copy", "(", ")", ";", "}", "public", "FlowInfo", "setReachMode", "(", "int", "reachMode", ")", "{", "if", "(", "this", "==", "DEAD_END", ")", "{", "return", "this", ";", "}", "if", "(", "reachMode", "==", "REACHABLE", ")", "{", "this", ".", "tagBits", "&=", "~", "UNREACHABLE", ";", "}", "else", "if", "(", "reachMode", "==", "UNREACHABLE_BY_NULLANALYSIS", ")", "{", "this", ".", "tagBits", "|=", "UNREACHABLE_BY_NULLANALYSIS", ";", "}", "else", "{", "if", "(", "(", "this", ".", "tagBits", "&", "UNREACHABLE", ")", "==", "0", ")", "{", "this", ".", "potentialInits", "=", "0", ";", "if", "(", "this", ".", "extra", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "extra", "[", "0", "]", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "extra", "[", "1", "]", "[", "i", "]", "=", "0", ";", "}", "}", "}", "this", ".", "tagBits", "|=", "reachMode", ";", "}", "return", "this", ";", "}", "public", "String", "toString", "(", ")", "{", "if", "(", "this", "==", "DEAD_END", ")", "{", "return", "\"\"", ";", "}", "if", "(", "(", "this", ".", "tagBits", "&", "NULL_FLAG_MASK", ")", "!=", "0", ")", "{", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "return", "\"\"", "+", "this", ".", "definiteInits", "+", "\",", "pot:", "\"", "+", "this", ".", "potentialInits", "+", "\",", "reachable:\"", "+", "(", "(", "this", ".", "tagBits", "&", "UNREACHABLE", ")", "==", "0", ")", "+", "\",", "null:", "\"", "+", "this", ".", "nullBit1", "+", "this", ".", "nullBit2", "+", "this", ".", "nullBit3", "+", "this", ".", "nullBit4", "+", "\">\"", ";", "}", "else", "{", "String", "def", "=", "\"\"", "+", "this", ".", "definiteInits", ",", "pot", "=", "\"],", "pot:[\"", "+", "this", ".", "potentialInits", ",", "nullS", "=", "\",", "null:[\"", "+", "this", ".", "nullBit1", "+", "this", ".", "nullBit2", "+", "this", ".", "nullBit3", "+", "this", ".", "nullBit4", ";", "int", "i", ",", "ceil", ";", "for", "(", "i", "=", "0", ",", "ceil", "=", "this", ".", "extra", "[", "0", "]", ".", "length", ">", "3", "?", "3", ":", "this", ".", "extra", "[", "0", "]", ".", "length", ";", "i", "<", "ceil", ";", "i", "++", ")", "{", "def", "+=", "\",\"", "+", "this", ".", "extra", "[", "0", "]", "[", "i", "]", ";", "pot", "+=", "\",\"", "+", "this", ".", "extra", "[", "1", "]", "[", "i", "]", ";", "nullS", "+=", "\",\"", "+", "this", ".", "extra", "[", "2", "]", "[", "i", "]", "+", "this", ".", "extra", "[", "3", "]", "[", "i", "]", "+", "this", ".", "extra", "[", "4", "]", "[", "i", "]", "+", "this", ".", "extra", "[", "5", "]", "[", "i", "]", ";", "}", "if", "(", "ceil", "<", "this", ".", "extra", "[", "0", "]", ".", "length", ")", "{", "def", "+=", "\",...\"", ";", "pot", "+=", "\",...\"", ";", "nullS", "+=", "\",...\"", ";", "}", "return", "def", "+", "pot", "+", "\"\"", "+", "(", "(", "this", ".", "tagBits", "&", "UNREACHABLE", ")", "==", "0", ")", "+", "nullS", "+", "\"]>\"", ";", "}", "}", "else", "{", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "return", "\"\"", "+", "this", ".", "definiteInits", "+", "\",", "pot:", "\"", "+", "this", ".", "potentialInits", "+", "\",", "reachable:\"", "+", "(", "(", "this", ".", "tagBits", "&", "UNREACHABLE", ")", "==", "0", ")", "+", "\"\"", ";", "}", "else", "{", "String", "def", "=", "\"\"", "+", "this", ".", "definiteInits", ",", "pot", "=", "\"],", "pot:[\"", "+", "this", ".", "potentialInits", ";", "int", "i", ",", "ceil", ";", "for", "(", "i", "=", "0", ",", "ceil", "=", "this", ".", "extra", "[", "0", "]", ".", "length", ">", "3", "?", "3", ":", "this", ".", "extra", "[", "0", "]", ".", "length", ";", "i", "<", "ceil", ";", "i", "++", ")", "{", "def", "+=", "\",\"", "+", "this", ".", "extra", "[", "0", "]", "[", "i", "]", ";", "pot", "+=", "\",\"", "+", "this", ".", "extra", "[", "1", "]", "[", "i", "]", ";", "}", "if", "(", "ceil", "<", "this", ".", "extra", "[", "0", "]", ".", "length", ")", "{", "def", "+=", "\",...\"", ";", "pot", "+=", "\",...\"", ";", "}", "return", "def", "+", "pot", "+", "\"\"", "+", "(", "(", "this", ".", "tagBits", "&", "UNREACHABLE", ")", "==", "0", ")", "+", "\"\"", ";", "}", "}", "}", "public", "UnconditionalFlowInfo", "unconditionalCopy", "(", ")", "{", "return", "(", "UnconditionalFlowInfo", ")", "copy", "(", ")", ";", "}", "public", "UnconditionalFlowInfo", "unconditionalFieldLessCopy", "(", ")", "{", "UnconditionalFlowInfo", "copy", "=", "new", "UnconditionalFlowInfo", "(", ")", ";", "copy", ".", "tagBits", "=", "this", ".", "tagBits", ";", "copy", ".", "maxFieldCount", "=", "this", ".", "maxFieldCount", ";", "int", "limit", "=", "this", ".", "maxFieldCount", ";", "if", "(", "limit", "<", "BitCacheSize", ")", "{", "long", "mask", ";", "copy", ".", "definiteInits", "=", "this", ".", "definiteInits", "&", "(", "mask", "=", "~", "(", "(", "1L", "<<", "limit", ")", "-", "1", ")", ")", ";", "copy", ".", "potentialInits", "=", "this", ".", "potentialInits", "&", "mask", ";", "copy", ".", "nullBit1", "=", "this", ".", "nullBit1", "&", "mask", ";", "copy", ".", "nullBit2", "=", "this", ".", "nullBit2", "&", "mask", ";", "copy", ".", "nullBit3", "=", "this", ".", "nullBit3", "&", "mask", ";", "copy", ".", "nullBit4", "=", "this", ".", "nullBit4", "&", "mask", ";", "}", "if", "(", "this", ".", "extra", "==", "null", ")", "{", "return", "copy", ";", "}", "int", "vectorIndex", ",", "length", ",", "copyStart", ";", "if", "(", "(", "vectorIndex", "=", "(", "limit", "/", "BitCacheSize", ")", "-", "1", ")", ">=", "(", "length", "=", "this", ".", "extra", "[", "0", "]", ".", "length", ")", ")", "{", "return", "copy", ";", "}", "long", "mask", ";", "copy", ".", "extra", "=", "new", "long", "[", "extraLength", "]", "[", "]", ";", "if", "(", "(", "copyStart", "=", "vectorIndex", "+", "1", ")", "<", "length", ")", "{", "int", "copyLength", "=", "length", "-", "copyStart", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "extra", "[", "j", "]", ",", "copyStart", ",", "(", "copy", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "length", "]", ")", ",", "copyStart", ",", "copyLength", ")", ";", "}", "}", "else", "if", "(", "vectorIndex", ">=", "0", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "copy", ".", "extra", "[", "j", "]", "=", "new", "long", "[", "length", "]", ";", "}", "}", "if", "(", "vectorIndex", ">=", "0", ")", "{", "mask", "=", "~", "(", "(", "1L", "<<", "(", "limit", "%", "BitCacheSize", ")", ")", "-", "1", ")", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "extraLength", ";", "j", "++", ")", "{", "copy", ".", "extra", "[", "j", "]", "[", "vectorIndex", "]", "=", "this", ".", "extra", "[", "j", "]", "[", "vectorIndex", "]", "&", "mask", ";", "}", "}", "return", "copy", ";", "}", "public", "UnconditionalFlowInfo", "unconditionalInits", "(", ")", "{", "return", "this", ";", "}", "public", "UnconditionalFlowInfo", "unconditionalInitsWithoutSideEffect", "(", ")", "{", "return", "this", ";", "}", "public", "void", "resetAssignmentInfo", "(", "LocalVariableBinding", "local", ")", "{", "resetAssignmentInfo", "(", "local", ".", "id", "+", "this", ".", "maxFieldCount", ")", ";", "}", "public", "void", "resetAssignmentInfo", "(", "int", "position", ")", "{", "if", "(", "this", "!=", "DEAD_END", ")", "{", "if", "(", "position", "<", "BitCacheSize", ")", "{", "long", "mask", ";", "this", ".", "definiteInits", "&=", "(", "mask", "=", "~", "(", "1L", "<<", "position", ")", ")", ";", "this", ".", "potentialInits", "&=", "mask", ";", "}", "else", "{", "int", "vectorIndex", "=", "(", "position", "/", "BitCacheSize", ")", "-", "1", ";", "if", "(", "this", ".", "extra", "==", "null", "||", "vectorIndex", ">=", "this", ".", "extra", "[", "0", "]", ".", "length", ")", "return", ";", "long", "mask", ";", "this", ".", "extra", "[", "0", "]", "[", "vectorIndex", "]", "&=", "(", "mask", "=", "~", "(", "1L", "<<", "(", "position", "%", "BitCacheSize", ")", ")", ")", ";", "this", ".", "extra", "[", "1", "]", "[", "vectorIndex", "]", "&=", "mask", ";", "}", "}", "}", "}", "</s>" ]
3,397
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ";", "import", "java", ".", "util", ".", "ArrayList", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "AbstractMethodDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Argument", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "UnionTypeReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "SubRoutineStatement", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TryStatement", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "TypeReference", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "ObjectCache", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "CatchParameterBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ExtraCompilerModifiers", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MethodScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "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", "class", "ExceptionHandlingFlowContext", "extends", "FlowContext", "{", "public", "final", "static", "int", "BitCacheSize", "=", "32", ";", "public", "ReferenceBinding", "[", "]", "handledExceptions", ";", "int", "[", "]", "isReached", ";", "int", "[", "]", "isNeeded", ";", "UnconditionalFlowInfo", "[", "]", "initsOnExceptions", ";", "ObjectCache", "indexes", "=", "new", "ObjectCache", "(", ")", ";", "boolean", "isMethodContext", ";", "public", "UnconditionalFlowInfo", "initsOnReturn", ";", "public", "FlowContext", "initializationParent", ";", "public", "ArrayList", "extendedExceptions", ";", "private", "static", "final", "Argument", "[", "]", "NO_ARGUMENTS", "=", "new", "Argument", "[", "0", "]", ";", "public", "Argument", "[", "]", "catchArguments", ";", "private", "int", "[", "]", "exceptionToCatchBlockMap", ";", "public", "ExceptionHandlingFlowContext", "(", "FlowContext", "parent", ",", "ASTNode", "associatedNode", ",", "ReferenceBinding", "[", "]", "handledExceptions", ",", "FlowContext", "initializationParent", ",", "BlockScope", "scope", ",", "UnconditionalFlowInfo", "flowInfo", ")", "{", "this", "(", "parent", ",", "associatedNode", ",", "handledExceptions", ",", "null", ",", "NO_ARGUMENTS", ",", "initializationParent", ",", "scope", ",", "flowInfo", ")", ";", "}", "public", "ExceptionHandlingFlowContext", "(", "FlowContext", "parent", ",", "ASTNode", "associatedNode", ",", "ReferenceBinding", "[", "]", "handledExceptions", ",", "int", "[", "]", "exceptionToCatchBlockMap", ",", "Argument", "[", "]", "catchArguments", ",", "FlowContext", "initializationParent", ",", "BlockScope", "scope", ",", "UnconditionalFlowInfo", "flowInfo", ")", "{", "super", "(", "parent", ",", "associatedNode", ")", ";", "this", ".", "isMethodContext", "=", "scope", "==", "scope", ".", "methodScope", "(", ")", ";", "this", ".", "handledExceptions", "=", "handledExceptions", ";", "this", ".", "catchArguments", "=", "catchArguments", ";", "this", ".", "exceptionToCatchBlockMap", "=", "exceptionToCatchBlockMap", ";", "int", "count", "=", "handledExceptions", ".", "length", ",", "cacheSize", "=", "(", "count", "/", "ExceptionHandlingFlowContext", ".", "BitCacheSize", ")", "+", "1", ";", "this", ".", "isReached", "=", "new", "int", "[", "cacheSize", "]", ";", "this", ".", "isNeeded", "=", "new", "int", "[", "cacheSize", "]", ";", "this", ".", "initsOnExceptions", "=", "new", "UnconditionalFlowInfo", "[", "count", "]", ";", "boolean", "markExceptionsAndThrowableAsReached", "=", "!", "this", ".", "isMethodContext", "||", "scope", ".", "compilerOptions", "(", ")", ".", "reportUnusedDeclaredThrownExceptionExemptExceptionAndThrowable", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "count", ";", "i", "++", ")", "{", "ReferenceBinding", "handledException", "=", "handledExceptions", "[", "i", "]", ";", "int", "catchBlock", "=", "this", ".", "exceptionToCatchBlockMap", "!=", "null", "?", "this", ".", "exceptionToCatchBlockMap", "[", "i", "]", ":", "i", ";", "this", ".", "indexes", ".", "put", "(", "handledException", ",", "i", ")", ";", "if", "(", "handledException", ".", "isUncheckedException", "(", "true", ")", ")", "{", "if", "(", "markExceptionsAndThrowableAsReached", "||", "handledException", ".", "id", "!=", "TypeIds", ".", "T_JavaLangThrowable", "&&", "handledException", ".", "id", "!=", "TypeIds", ".", "T_JavaLangException", ")", "{", "this", ".", "isReached", "[", "i", "/", "ExceptionHandlingFlowContext", ".", "BitCacheSize", "]", "|=", "1", "<<", "(", "i", "%", "ExceptionHandlingFlowContext", ".", "BitCacheSize", ")", ";", "}", "this", ".", "initsOnExceptions", "[", "catchBlock", "]", "=", "flowInfo", ".", "unconditionalCopy", "(", ")", ";", "}", "else", "{", "this", ".", "initsOnExceptions", "[", "catchBlock", "]", "=", "FlowInfo", ".", "DEAD_END", ";", "}", "}", "if", "(", "!", "this", ".", "isMethodContext", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "isReached", ",", "0", ",", "this", ".", "isNeeded", ",", "0", ",", "cacheSize", ")", ";", "}", "this", ".", "initsOnReturn", "=", "FlowInfo", ".", "DEAD_END", ";", "this", ".", "initializationParent", "=", "initializationParent", ";", "}", "public", "void", "complainIfUnusedExceptionHandlers", "(", "AbstractMethodDeclaration", "method", ")", "{", "MethodScope", "scope", "=", "method", ".", "scope", ";", "if", "(", "(", "method", ".", "binding", ".", "modifiers", "&", "(", "ExtraCompilerModifiers", ".", "AccOverriding", "|", "ExtraCompilerModifiers", ".", "AccImplementing", ")", ")", "!=", "0", "&&", "!", "scope", ".", "compilerOptions", "(", ")", ".", "reportUnusedDeclaredThrownExceptionWhenOverriding", ")", "{", "return", ";", "}", "TypeBinding", "[", "]", "docCommentReferences", "=", "null", ";", "int", "docCommentReferencesLength", "=", "0", ";", "if", "(", "scope", ".", "compilerOptions", "(", ")", ".", "reportUnusedDeclaredThrownExceptionIncludeDocCommentReference", "&&", "method", ".", "javadoc", "!=", "null", "&&", "method", ".", "javadoc", ".", "exceptionReferences", "!=", "null", "&&", "(", "docCommentReferencesLength", "=", "method", ".", "javadoc", ".", "exceptionReferences", ".", "length", ")", ">", "0", ")", "{", "docCommentReferences", "=", "new", "TypeBinding", "[", "docCommentReferencesLength", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "docCommentReferencesLength", ";", "i", "++", ")", "{", "docCommentReferences", "[", "i", "]", "=", "method", ".", "javadoc", ".", "exceptionReferences", "[", "i", "]", ".", "resolvedType", ";", "}", "}", "nextHandledException", ":", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "handledExceptions", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "int", "index", "=", "this", ".", "indexes", ".", "get", "(", "this", ".", "handledExceptions", "[", "i", "]", ")", ";", "if", "(", "(", "this", ".", "isReached", "[", "index", "/", "ExceptionHandlingFlowContext", ".", "BitCacheSize", "]", "&", "1", "<<", "(", "index", "%", "ExceptionHandlingFlowContext", ".", "BitCacheSize", ")", ")", "==", "0", ")", "{", "for", "(", "int", "j", "=", "0", ";", "j", "<", "docCommentReferencesLength", ";", "j", "++", ")", "{", "if", "(", "docCommentReferences", "[", "j", "]", "==", "this", ".", "handledExceptions", "[", "i", "]", ")", "{", "continue", "nextHandledException", ";", "}", "}", "scope", ".", "problemReporter", "(", ")", ".", "unusedDeclaredThrownException", "(", "this", ".", "handledExceptions", "[", "index", "]", ",", "method", ",", "method", ".", "thrownExceptions", "[", "index", "]", ")", ";", "}", "}", "}", "public", "void", "complainIfUnusedExceptionHandlers", "(", "BlockScope", "scope", ",", "TryStatement", "tryStatement", ")", "{", "for", "(", "int", "index", "=", "0", ",", "count", "=", "this", ".", "handledExceptions", ".", "length", ";", "index", "<", "count", ";", "index", "++", ")", "{", "int", "cacheIndex", "=", "index", "/", "ExceptionHandlingFlowContext", ".", "BitCacheSize", ";", "int", "bitMask", "=", "1", "<<", "(", "index", "%", "ExceptionHandlingFlowContext", ".", "BitCacheSize", ")", ";", "if", "(", "(", "this", ".", "isReached", "[", "cacheIndex", "]", "&", "bitMask", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unreachableCatchBlock", "(", "this", ".", "handledExceptions", "[", "index", "]", ",", "getExceptionType", "(", "index", ")", ")", ";", "}", "else", "{", "if", "(", "(", "this", ".", "isNeeded", "[", "cacheIndex", "]", "&", "bitMask", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "hiddenCatchBlock", "(", "this", ".", "handledExceptions", "[", "index", "]", ",", "getExceptionType", "(", "index", ")", ")", ";", "}", "}", "}", "}", "private", "ASTNode", "getExceptionType", "(", "int", "index", ")", "{", "if", "(", "this", ".", "exceptionToCatchBlockMap", "==", "null", ")", "{", "return", "this", ".", "catchArguments", "[", "index", "]", ".", "type", ";", "}", "int", "catchBlock", "=", "this", ".", "exceptionToCatchBlockMap", "[", "index", "]", ";", "ASTNode", "node", "=", "this", ".", "catchArguments", "[", "catchBlock", "]", ".", "type", ";", "if", "(", "node", "instanceof", "UnionTypeReference", ")", "{", "TypeReference", "[", "]", "typeRefs", "=", "(", "(", "UnionTypeReference", ")", "node", ")", ".", "typeReferences", ";", "for", "(", "int", "i", "=", "0", ",", "len", "=", "typeRefs", ".", "length", ";", "i", "<", "len", ";", "i", "++", ")", "{", "TypeReference", "typeRef", "=", "typeRefs", "[", "i", "]", ";", "if", "(", "typeRef", ".", "resolvedType", "==", "this", ".", "handledExceptions", "[", "index", "]", ")", "return", "typeRef", ";", "}", "}", "return", "node", ";", "}", "public", "String", "individualToString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "\"\"", ")", ";", "int", "length", "=", "this", ".", "handledExceptions", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "int", "cacheIndex", "=", "i", "/", "ExceptionHandlingFlowContext", ".", "BitCacheSize", ";", "int", "bitMask", "=", "1", "<<", "(", "i", "%", "ExceptionHandlingFlowContext", ".", "BitCacheSize", ")", ";", "buffer", ".", "append", "(", "'['", ")", ".", "append", "(", "this", ".", "handledExceptions", "[", "i", "]", ".", "readableName", "(", ")", ")", ";", "if", "(", "(", "this", ".", "isReached", "[", "cacheIndex", "]", "&", "bitMask", ")", "!=", "0", ")", "{", "if", "(", "(", "this", ".", "isNeeded", "[", "cacheIndex", "]", "&", "bitMask", ")", "==", "0", ")", "{", "buffer", ".", "append", "(", "\"-masked\"", ")", ";", "}", "else", "{", "buffer", ".", "append", "(", "\"-reached\"", ")", ";", "}", "}", "else", "{", "buffer", ".", "append", "(", "\"-not", "reached\"", ")", ";", "}", "int", "catchBlock", "=", "this", ".", "exceptionToCatchBlockMap", "!=", "null", "?", "this", ".", "exceptionToCatchBlockMap", "[", "i", "]", ":", "i", ";", "buffer", ".", "append", "(", "'-'", ")", ".", "append", "(", "this", ".", "initsOnExceptions", "[", "catchBlock", "]", ".", "toString", "(", ")", ")", ".", "append", "(", "']'", ")", ";", "}", "buffer", ".", "append", "(", "\"\"", ")", ".", "append", "(", "this", ".", "initsOnReturn", ".", "toString", "(", ")", ")", ".", "append", "(", "']'", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}", "public", "UnconditionalFlowInfo", "initsOnException", "(", "int", "index", ")", "{", "return", "this", ".", "initsOnExceptions", "[", "index", "]", ";", "}", "public", "UnconditionalFlowInfo", "initsOnReturn", "(", ")", "{", "return", "this", ".", "initsOnReturn", ";", "}", "public", "void", "mergeUnhandledException", "(", "TypeBinding", "newException", ")", "{", "if", "(", "this", ".", "extendedExceptions", "==", "null", ")", "{", "this", ".", "extendedExceptions", "=", "new", "ArrayList", "(", "5", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "handledExceptions", ".", "length", ";", "i", "++", ")", "{", "this", ".", "extendedExceptions", ".", "add", "(", "this", ".", "handledExceptions", "[", "i", "]", ")", ";", "}", "}", "boolean", "isRedundant", "=", "false", ";", "for", "(", "int", "i", "=", "this", ".", "extendedExceptions", ".", "size", "(", ")", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "switch", "(", "Scope", ".", "compareTypes", "(", "newException", ",", "(", "TypeBinding", ")", "this", ".", "extendedExceptions", ".", "get", "(", "i", ")", ")", ")", "{", "case", "Scope", ".", "MORE_GENERIC", ":", "this", ".", "extendedExceptions", ".", "remove", "(", "i", ")", ";", "break", ";", "case", "Scope", ".", "EQUAL_OR_MORE_SPECIFIC", ":", "isRedundant", "=", "true", ";", "break", ";", "case", "Scope", ".", "NOT_RELATED", ":", "break", ";", "}", "}", "if", "(", "!", "isRedundant", ")", "{", "this", ".", "extendedExceptions", ".", "add", "(", "newException", ")", ";", "}", "}", "public", "void", "recordHandlingException", "(", "ReferenceBinding", "exceptionType", ",", "UnconditionalFlowInfo", "flowInfo", ",", "TypeBinding", "raisedException", ",", "TypeBinding", "caughtException", ",", "ASTNode", "invocationSite", ",", "boolean", "wasAlreadyDefinitelyCaught", ")", "{", "int", "index", "=", "this", ".", "indexes", ".", "get", "(", "exceptionType", ")", ";", "int", "cacheIndex", "=", "index", "/", "ExceptionHandlingFlowContext", ".", "BitCacheSize", ";", "int", "bitMask", "=", "1", "<<", "(", "index", "%", "ExceptionHandlingFlowContext", ".", "BitCacheSize", ")", ";", "if", "(", "!", "wasAlreadyDefinitelyCaught", ")", "{", "this", ".", "isNeeded", "[", "cacheIndex", "]", "|=", "bitMask", ";", "}", "this", ".", "isReached", "[", "cacheIndex", "]", "|=", "bitMask", ";", "int", "catchBlock", "=", "this", ".", "exceptionToCatchBlockMap", "!=", "null", "?", "this", ".", "exceptionToCatchBlockMap", "[", "index", "]", ":", "index", ";", "if", "(", "caughtException", "!=", "null", "&&", "this", ".", "catchArguments", "!=", "null", "&&", "this", ".", "catchArguments", ".", "length", ">", "0", "&&", "!", "wasAlreadyDefinitelyCaught", ")", "{", "CatchParameterBinding", "catchParameter", "=", "(", "CatchParameterBinding", ")", "this", ".", "catchArguments", "[", "catchBlock", "]", ".", "binding", ";", "catchParameter", ".", "setPreciseType", "(", "caughtException", ")", ";", "}", "this", ".", "initsOnExceptions", "[", "catchBlock", "]", "=", "(", "this", ".", "initsOnExceptions", "[", "catchBlock", "]", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", "?", "this", ".", "initsOnExceptions", "[", "catchBlock", "]", ".", "mergedWith", "(", "flowInfo", ")", ":", "flowInfo", ".", "unconditionalCopy", "(", ")", ";", "}", "public", "void", "recordReturnFrom", "(", "UnconditionalFlowInfo", "flowInfo", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "==", "0", ")", "{", "if", "(", "(", "this", ".", "initsOnReturn", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "==", "0", ")", "{", "this", ".", "initsOnReturn", "=", "this", ".", "initsOnReturn", ".", "mergedWith", "(", "flowInfo", ")", ";", "}", "else", "{", "this", ".", "initsOnReturn", "=", "(", "UnconditionalFlowInfo", ")", "flowInfo", ".", "copy", "(", ")", ";", "}", "}", "}", "public", "SubRoutineStatement", "subroutine", "(", ")", "{", "if", "(", "this", ".", "associatedNode", "instanceof", "SubRoutineStatement", ")", "{", "if", "(", "this", ".", "parent", ".", "subroutine", "(", ")", "==", "this", ".", "associatedNode", ")", "return", "null", ";", "return", "(", "SubRoutineStatement", ")", "this", ".", "associatedNode", ";", "}", "return", "null", ";", "}", "}", "</s>" ]
3,398
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "SubRoutineStatement", ";", "public", "class", "InsideSubRoutineFlowContext", "extends", "FlowContext", "{", "public", "UnconditionalFlowInfo", "initsOnReturn", ";", "public", "InsideSubRoutineFlowContext", "(", "FlowContext", "parent", ",", "ASTNode", "associatedNode", ")", "{", "super", "(", "parent", ",", "associatedNode", ")", ";", "this", ".", "initsOnReturn", "=", "FlowInfo", ".", "DEAD_END", ";", "}", "public", "String", "individualToString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "\"\"", ")", ";", "buffer", ".", "append", "(", "\"\"", ")", ".", "append", "(", "this", ".", "initsOnReturn", ".", "toString", "(", ")", ")", ".", "append", "(", "']'", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}", "public", "UnconditionalFlowInfo", "initsOnReturn", "(", ")", "{", "return", "this", ".", "initsOnReturn", ";", "}", "public", "boolean", "isNonReturningContext", "(", ")", "{", "return", "(", "(", "SubRoutineStatement", ")", "this", ".", "associatedNode", ")", ".", "isSubRoutineEscaping", "(", ")", ";", "}", "public", "void", "recordReturnFrom", "(", "UnconditionalFlowInfo", "flowInfo", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "==", "0", ")", "{", "if", "(", "this", ".", "initsOnReturn", "==", "FlowInfo", ".", "DEAD_END", ")", "{", "this", ".", "initsOnReturn", "=", "(", "UnconditionalFlowInfo", ")", "flowInfo", ".", "copy", "(", ")", ";", "}", "else", "{", "this", ".", "initsOnReturn", "=", "this", ".", "initsOnReturn", ".", "mergedWith", "(", "flowInfo", ")", ";", "}", "}", "}", "public", "SubRoutineStatement", "subroutine", "(", ")", "{", "return", "(", "SubRoutineStatement", ")", "this", ".", "associatedNode", ";", "}", "}", "</s>" ]
3,399
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ".", "IBinaryNestedType", ";", "public", "class", "InnerClassInfo", "extends", "ClassFileStruct", "implements", "IBinaryNestedType", "{", "int", "innerClassNameIndex", "=", "-", "1", ";", "int", "outerClassNameIndex", "=", "-", "1", ";", "int", "innerNameIndex", "=", "-", "1", ";", "private", "char", "[", "]", "innerClassName", ";", "private", "char", "[", "]", "outerClassName", ";", "private", "char", "[", "]", "innerName", ";", "private", "int", "accessFlags", "=", "-", "1", ";", "private", "boolean", "readInnerClassName", "=", "false", ";", "private", "boolean", "readOuterClassName", "=", "false", ";", "private", "boolean", "readInnerName", "=", "false", ";", "public", "InnerClassInfo", "(", "byte", "classFileBytes", "[", "]", ",", "int", "offsets", "[", "]", ",", "int", "offset", ")", "{", "super", "(", "classFileBytes", ",", "offsets", ",", "offset", ")", ";", "this", ".", "innerClassNameIndex", "=", "u2At", "(", "0", ")", ";", "this", ".", "outerClassNameIndex", "=", "u2At", "(", "2", ")", ";", "this", ".", "innerNameIndex", "=", "u2At", "(", "4", ")", ";", "}", "public", "char", "[", "]", "getEnclosingTypeName", "(", ")", "{", "if", "(", "!", "this", ".", "readOuterClassName", ")", "{", "this", ".", "readOuterClassName", "=", "true", ";", "if", "(", "this", ".", "outerClassNameIndex", "!=", "0", ")", "{", "int", "utf8Offset", "=", "this", ".", "constantPoolOffsets", "[", "u2At", "(", "this", ".", "constantPoolOffsets", "[", "this", ".", "outerClassNameIndex", "]", "-", "this", ".", "structOffset", "+", "1", ")", "]", "-", "this", ".", "structOffset", ";", "this", ".", "outerClassName", "=", "utf8At", "(", "utf8Offset", "+", "3", ",", "u2At", "(", "utf8Offset", "+", "1", ")", ")", ";", "}", "}", "return", "this", ".", "outerClassName", ";", "}", "public", "int", "getModifiers", "(", ")", "{", "if", "(", "this", ".", "accessFlags", "==", "-", "1", ")", "{", "this", ".", "accessFlags", "=", "u2At", "(", "6", ")", ";", "}", "return", "this", ".", "accessFlags", ";", "}", "public", "char", "[", "]", "getName", "(", ")", "{", "if", "(", "!", "this", ".", "readInnerClassName", ")", "{", "this", ".", "readInnerClassName", "=", "true", ";", "if", "(", "this", ".", "innerClassNameIndex", "!=", "0", ")", "{", "int", "classOffset", "=", "this", ".", "constantPoolOffsets", "[", "this", ".", "innerClassNameIndex", "]", "-", "this", ".", "structOffset", ";", "int", "utf8Offset", "=", "this", ".", "constantPoolOffsets", "[", "u2At", "(", "classOffset", "+", "1", ")", "]", "-", "this", ".", "structOffset", ";", "this", ".", "innerClassName", "=", "utf8At", "(", "utf8Offset", "+", "3", ",", "u2At", "(", "utf8Offset", "+", "1", ")", ")", ";", "}", "}", "return", "this", ".", "innerClassName", ";", "}", "public", "char", "[", "]", "getSourceName", "(", ")", "{", "if", "(", "!", "this", ".", "readInnerName", ")", "{", "this", ".", "readInnerName", "=", "true", ";", "if", "(", "this", ".", "innerNameIndex", "!=", "0", ")", "{", "int", "utf8Offset", "=", "this", ".", "constantPoolOffsets", "[", "this", ".", "innerNameIndex", "]", "-", "this", ".", "structOffset", ";", "this", ".", "innerName", "=", "utf8At", "(", "utf8Offset", "+", "3", ",", "u2At", "(", "utf8Offset", "+", "1", ")", ")", ";", "}", "}", "return", "this", ".", "innerName", ";", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "if", "(", "getName", "(", ")", "!=", "null", ")", "{", "buffer", ".", "append", "(", "getName", "(", ")", ")", ";", "}", "buffer", ".", "append", "(", "\"n\"", ")", ";", "if", "(", "getEnclosingTypeName", "(", ")", "!=", "null", ")", "{", "buffer", ".", "append", "(", "getEnclosingTypeName", "(", ")", ")", ";", "}", "buffer", ".", "append", "(", "\"n\"", ")", ";", "if", "(", "getSourceName", "(", ")", "!=", "null", ")", "{", "buffer", ".", "append", "(", "getSourceName", "(", ")", ")", ";", "}", "return", "buffer", ".", "toString", "(", ")", ";", "}", "void", "initialize", "(", ")", "{", "getModifiers", "(", ")", ";", "getName", "(", ")", ";", "getSourceName", "(", ")", ";", "getEnclosingTypeName", "(", ")", ";", "reset", "(", ")", ";", "}", "}", "</s>" ]