id
int32
0
12.9k
code
sequencelengths
2
264k
4,200
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "UnaryExpression", "extends", "OperatorExpression", "{", "public", "Expression", "expression", ";", "public", "Constant", "optimizedBooleanConstant", ";", "public", "UnaryExpression", "(", "Expression", "expression", ",", "int", "operator", ")", "{", "this", ".", "expression", "=", "expression", ";", "this", ".", "bits", "|=", "operator", "<<", "OperatorSHIFT", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "this", ".", "expression", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "if", "(", "(", "(", "this", ".", "bits", "&", "OperatorMASK", ")", ">>", "OperatorSHIFT", ")", "==", "NOT", ")", "{", "return", "this", ".", "expression", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "asNegatedCondition", "(", ")", ";", "}", "else", "{", "return", "this", ".", "expression", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "}", "public", "Constant", "optimizedBooleanConstant", "(", ")", "{", "return", "this", ".", "optimizedBooleanConstant", "==", "null", "?", "this", ".", "constant", ":", "this", ".", "optimizedBooleanConstant", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "BranchLabel", "falseLabel", ",", "endifLabel", ";", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "switch", "(", "(", "this", ".", "bits", "&", "OperatorMASK", ")", ">>", "OperatorSHIFT", ")", "{", "case", "NOT", ":", "switch", "(", "(", "this", ".", "expression", ".", "implicitConversion", "&", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ")", "{", "case", "T_boolean", ":", "this", ".", "expression", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "null", ",", "(", "falseLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_0", "(", ")", ";", "if", "(", "falseLabel", ".", "forwardReferenceCount", "(", ")", ">", "0", ")", "{", "codeStream", ".", "goto_", "(", "endifLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ";", "codeStream", ".", "decrStackSize", "(", "1", ")", ";", "falseLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_1", "(", ")", ";", "endifLabel", ".", "place", "(", ")", ";", "}", "}", "else", "{", "falseLabel", ".", "place", "(", ")", ";", "}", "break", ";", "}", "break", ";", "case", "TWIDDLE", ":", "switch", "(", "(", "this", ".", "expression", ".", "implicitConversion", "&", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ")", "{", "case", "T_int", ":", "this", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_m1", "(", ")", ";", "codeStream", ".", "ixor", "(", ")", ";", "}", "break", ";", "case", "T_long", ":", "this", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "ldc2_w", "(", "-", "1L", ")", ";", "codeStream", ".", "lxor", "(", ")", ";", "}", "}", "break", ";", "case", "MINUS", ":", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "valueRequired", ")", "{", "switch", "(", "(", "this", ".", "expression", ".", "implicitConversion", "&", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ")", "{", "case", "T_int", ":", "codeStream", ".", "generateInlinedValue", "(", "this", ".", "constant", ".", "intValue", "(", ")", "*", "-", "1", ")", ";", "break", ";", "case", "T_float", ":", "codeStream", ".", "generateInlinedValue", "(", "this", ".", "constant", ".", "floatValue", "(", ")", "*", "-", "1.0f", ")", ";", "break", ";", "case", "T_long", ":", "codeStream", ".", "generateInlinedValue", "(", "this", ".", "constant", ".", "longValue", "(", ")", "*", "-", "1L", ")", ";", "break", ";", "case", "T_double", ":", "codeStream", ".", "generateInlinedValue", "(", "this", ".", "constant", ".", "doubleValue", "(", ")", "*", "-", "1.0", ")", ";", "}", "}", "}", "else", "{", "this", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "switch", "(", "(", "this", ".", "expression", ".", "implicitConversion", "&", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ")", "{", "case", "T_int", ":", "codeStream", ".", "ineg", "(", ")", ";", "break", ";", "case", "T_float", ":", "codeStream", ".", "fneg", "(", ")", ";", "break", ";", "case", "T_long", ":", "codeStream", ".", "lneg", "(", ")", ";", "break", ";", "case", "T_double", ":", "codeStream", ".", "dneg", "(", ")", ";", "}", "}", "}", "break", ";", "case", "PLUS", ":", "this", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "void", "generateOptimizedBoolean", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "if", "(", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "constant", ".", "typeID", "(", ")", "==", "T_boolean", ")", ")", "{", "super", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "return", ";", "}", "if", "(", "(", "(", "this", ".", "bits", "&", "OperatorMASK", ")", ">>", "OperatorSHIFT", ")", "==", "NOT", ")", "{", "this", ".", "expression", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "falseLabel", ",", "trueLabel", ",", "valueRequired", ")", ";", "}", "else", "{", "super", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "}", "}", "public", "StringBuffer", "printExpressionNoParenthesis", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "output", ".", "append", "(", "operatorToString", "(", ")", ")", ".", "append", "(", "'", "'", ")", ";", "return", "this", ".", "expression", ".", "printExpression", "(", "0", ",", "output", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "boolean", "expressionIsCast", ";", "if", "(", "(", "expressionIsCast", "=", "this", ".", "expression", "instanceof", "CastExpression", ")", "==", "true", ")", "this", ".", "expression", ".", "bits", "|=", "DisableUnnecessaryCastCheck", ";", "TypeBinding", "expressionType", "=", "this", ".", "expression", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "expressionType", "==", "null", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "return", "null", ";", "}", "int", "expressionTypeID", "=", "expressionType", ".", "id", ";", "boolean", "use15specifics", "=", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "if", "(", "use15specifics", ")", "{", "if", "(", "!", "expressionType", ".", "isBaseType", "(", ")", ")", "{", "expressionTypeID", "=", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "expressionType", ")", ".", "id", ";", "}", "}", "if", "(", "expressionTypeID", ">", "15", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidOperator", "(", "this", ",", "expressionType", ")", ";", "return", "null", ";", "}", "int", "tableId", ";", "switch", "(", "(", "this", ".", "bits", "&", "OperatorMASK", ")", ">>", "OperatorSHIFT", ")", "{", "case", "NOT", ":", "tableId", "=", "AND_AND", ";", "break", ";", "case", "TWIDDLE", ":", "tableId", "=", "LEFT_SHIFT", ";", "break", ";", "default", ":", "tableId", "=", "MINUS", ";", "}", "int", "operatorSignature", "=", "OperatorSignatures", "[", "tableId", "]", "[", "(", "expressionTypeID", "<<", "4", ")", "+", "expressionTypeID", "]", ";", "this", ".", "expression", ".", "computeConversion", "(", "scope", ",", "TypeBinding", ".", "wellKnownType", "(", "scope", ",", "(", "operatorSignature", ">>>", "16", ")", "&", "0x0000F", ")", ",", "expressionType", ")", ";", "this", ".", "bits", "|=", "operatorSignature", "&", "0xF", ";", "switch", "(", "operatorSignature", "&", "0xF", ")", "{", "case", "T_boolean", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "BOOLEAN", ";", "break", ";", "case", "T_byte", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "BYTE", ";", "break", ";", "case", "T_char", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "CHAR", ";", "break", ";", "case", "T_double", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "DOUBLE", ";", "break", ";", "case", "T_float", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "FLOAT", ";", "break", ";", "case", "T_int", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "INT", ";", "break", ";", "case", "T_long", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "LONG", ";", "break", ";", "default", ":", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "expressionTypeID", "!=", "T_undefined", ")", "scope", ".", "problemReporter", "(", ")", ".", "invalidOperator", "(", "this", ",", "expressionType", ")", ";", "return", "null", ";", "}", "if", "(", "this", ".", "expression", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "this", ".", "constant", "=", "Constant", ".", "computeConstantOperation", "(", "this", ".", "expression", ".", "constant", ",", "expressionTypeID", ",", "(", "this", ".", "bits", "&", "OperatorMASK", ")", ">>", "OperatorSHIFT", ")", ";", "}", "else", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "(", "(", "this", ".", "bits", "&", "OperatorMASK", ")", ">>", "OperatorSHIFT", ")", "==", "NOT", ")", "{", "Constant", "cst", "=", "this", ".", "expression", ".", "optimizedBooleanConstant", "(", ")", ";", "if", "(", "cst", "!=", "Constant", ".", "NotAConstant", ")", "this", ".", "optimizedBooleanConstant", "=", "BooleanConstant", ".", "fromValue", "(", "!", "cst", ".", "booleanValue", "(", ")", ")", ";", "}", "}", "if", "(", "expressionIsCast", ")", "{", "CastExpression", ".", "checkNeedForArgumentCast", "(", "scope", ",", "tableId", ",", "operatorSignature", ",", "this", ".", "expression", ",", "expressionTypeID", ")", ";", "}", "return", "this", ".", "resolvedType", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "this", ".", "expression", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
4,201
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "class", "TypeDeclaration", "extends", "Statement", "implements", "ProblemSeverities", ",", "ReferenceContext", "{", "public", "static", "final", "int", "CLASS_DECL", "=", "1", ";", "public", "static", "final", "int", "INTERFACE_DECL", "=", "2", ";", "public", "static", "final", "int", "ENUM_DECL", "=", "3", ";", "public", "static", "final", "int", "ANNOTATION_TYPE_DECL", "=", "4", ";", "public", "int", "modifiers", "=", "ClassFileConstants", ".", "AccDefault", ";", "public", "int", "modifiersSourceStart", ";", "public", "Annotation", "[", "]", "annotations", ";", "public", "char", "[", "]", "name", ";", "public", "TypeReference", "superclass", ";", "public", "TypeReference", "[", "]", "superInterfaces", ";", "public", "FieldDeclaration", "[", "]", "fields", ";", "public", "AbstractMethodDeclaration", "[", "]", "methods", ";", "public", "TypeDeclaration", "[", "]", "memberTypes", ";", "public", "SourceTypeBinding", "binding", ";", "public", "ClassScope", "scope", ";", "public", "MethodScope", "initializerScope", ";", "public", "MethodScope", "staticInitializerScope", ";", "public", "boolean", "ignoreFurtherInvestigation", "=", "false", ";", "public", "int", "maxFieldCount", ";", "public", "int", "declarationSourceStart", ";", "public", "int", "declarationSourceEnd", ";", "public", "int", "bodyStart", ";", "public", "int", "bodyEnd", ";", "public", "CompilationResult", "compilationResult", ";", "public", "MethodDeclaration", "[", "]", "missingAbstractMethods", ";", "public", "Javadoc", "javadoc", ";", "public", "QualifiedAllocationExpression", "allocation", ";", "public", "TypeDeclaration", "enclosingType", ";", "public", "FieldBinding", "enumValuesSyntheticfield", ";", "public", "int", "enumConstantsCounter", ";", "public", "TypeParameter", "[", "]", "typeParameters", ";", "public", "TypeDeclaration", "(", "CompilationResult", "compilationResult", ")", "{", "this", ".", "compilationResult", "=", "compilationResult", ";", "}", "public", "void", "abort", "(", "int", "abortLevel", ",", "CategorizedProblem", "problem", ")", "{", "switch", "(", "abortLevel", ")", "{", "case", "AbortCompilation", ":", "throw", "new", "AbortCompilation", "(", "this", ".", "compilationResult", ",", "problem", ")", ";", "case", "AbortCompilationUnit", ":", "throw", "new", "AbortCompilationUnit", "(", "this", ".", "compilationResult", ",", "problem", ")", ";", "case", "AbortMethod", ":", "throw", "new", "AbortMethod", "(", "this", ".", "compilationResult", ",", "problem", ")", ";", "default", ":", "throw", "new", "AbortType", "(", "this", ".", "compilationResult", ",", "problem", ")", ";", "}", "}", "public", "final", "void", "addClinit", "(", ")", "{", "if", "(", "needClassInitMethod", "(", ")", ")", "{", "int", "length", ";", "AbstractMethodDeclaration", "[", "]", "methodDeclarations", ";", "if", "(", "(", "methodDeclarations", "=", "this", ".", "methods", ")", "==", "null", ")", "{", "length", "=", "0", ";", "methodDeclarations", "=", "new", "AbstractMethodDeclaration", "[", "1", "]", ";", "}", "else", "{", "length", "=", "methodDeclarations", ".", "length", ";", "System", ".", "arraycopy", "(", "methodDeclarations", ",", "0", ",", "(", "methodDeclarations", "=", "new", "AbstractMethodDeclaration", "[", "length", "+", "1", "]", ")", ",", "1", ",", "length", ")", ";", "}", "Clinit", "clinit", "=", "new", "Clinit", "(", "this", ".", "compilationResult", ")", ";", "methodDeclarations", "[", "0", "]", "=", "clinit", ";", "clinit", ".", "declarationSourceStart", "=", "clinit", ".", "sourceStart", "=", "this", ".", "sourceStart", ";", "clinit", ".", "declarationSourceEnd", "=", "clinit", ".", "sourceEnd", "=", "this", ".", "sourceEnd", ";", "clinit", ".", "bodyEnd", "=", "this", ".", "sourceEnd", ";", "this", ".", "methods", "=", "methodDeclarations", ";", "}", "}", "public", "MethodDeclaration", "addMissingAbstractMethodFor", "(", "MethodBinding", "methodBinding", ")", "{", "TypeBinding", "[", "]", "argumentTypes", "=", "methodBinding", ".", "parameters", ";", "int", "argumentsLength", "=", "argumentTypes", ".", "length", ";", "MethodDeclaration", "methodDeclaration", "=", "new", "MethodDeclaration", "(", "this", ".", "compilationResult", ")", ";", "methodDeclaration", ".", "selector", "=", "methodBinding", ".", "selector", ";", "methodDeclaration", ".", "sourceStart", "=", "this", ".", "sourceStart", ";", "methodDeclaration", ".", "sourceEnd", "=", "this", ".", "sourceEnd", ";", "methodDeclaration", ".", "modifiers", "=", "methodBinding", ".", "getAccessFlags", "(", ")", "&", "~", "ClassFileConstants", ".", "AccAbstract", ";", "if", "(", "argumentsLength", ">", "0", ")", "{", "String", "baseName", "=", "\"arg\"", ";", "Argument", "[", "]", "arguments", "=", "(", "methodDeclaration", ".", "arguments", "=", "new", "Argument", "[", "argumentsLength", "]", ")", ";", "for", "(", "int", "i", "=", "argumentsLength", ";", "--", "i", ">=", "0", ";", ")", "{", "arguments", "[", "i", "]", "=", "new", "Argument", "(", "(", "baseName", "+", "i", ")", ".", "toCharArray", "(", ")", ",", "0L", ",", "null", ",", "ClassFileConstants", ".", "AccDefault", ")", ";", "}", "}", "if", "(", "this", ".", "missingAbstractMethods", "==", "null", ")", "{", "this", ".", "missingAbstractMethods", "=", "new", "MethodDeclaration", "[", "]", "{", "methodDeclaration", "}", ";", "}", "else", "{", "MethodDeclaration", "[", "]", "newMethods", ";", "System", ".", "arraycopy", "(", "this", ".", "missingAbstractMethods", ",", "0", ",", "newMethods", "=", "new", "MethodDeclaration", "[", "this", ".", "missingAbstractMethods", ".", "length", "+", "1", "]", ",", "1", ",", "this", ".", "missingAbstractMethods", ".", "length", ")", ";", "newMethods", "[", "0", "]", "=", "methodDeclaration", ";", "this", ".", "missingAbstractMethods", "=", "newMethods", ";", "}", "methodDeclaration", ".", "binding", "=", "new", "MethodBinding", "(", "methodDeclaration", ".", "modifiers", "|", "ClassFileConstants", ".", "AccSynthetic", ",", "methodBinding", ".", "selector", ",", "methodBinding", ".", "returnType", ",", "argumentsLength", "==", "0", "?", "Binding", ".", "NO_PARAMETERS", ":", "argumentTypes", ",", "methodBinding", ".", "thrownExceptions", ",", "this", ".", "binding", ")", ";", "methodDeclaration", ".", "scope", "=", "new", "MethodScope", "(", "this", ".", "scope", ",", "methodDeclaration", ",", "true", ")", ";", "methodDeclaration", ".", "bindArguments", "(", ")", ";", "return", "methodDeclaration", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "return", "flowInfo", ";", "try", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "==", "0", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "IsReachable", ";", "LocalTypeBinding", "localType", "=", "(", "LocalTypeBinding", ")", "this", ".", "binding", ";", "localType", ".", "setConstantPoolName", "(", "currentScope", ".", "compilationUnitScope", "(", ")", ".", "computeConstantPoolName", "(", "localType", ")", ")", ";", "}", "manageEnclosingInstanceAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ")", ";", "updateMaxFieldCount", "(", ")", ";", "internalAnalyseCode", "(", "flowContext", ",", "flowInfo", ")", ";", "}", "catch", "(", "AbortType", "e", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "}", "return", "flowInfo", ";", "}", "public", "void", "analyseCode", "(", "ClassScope", "enclosingClassScope", ")", "{", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "return", ";", "try", "{", "updateMaxFieldCount", "(", ")", ";", "internalAnalyseCode", "(", "null", ",", "FlowInfo", ".", "initial", "(", "this", ".", "maxFieldCount", ")", ")", ";", "}", "catch", "(", "AbortType", "e", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "}", "}", "public", "void", "analyseCode", "(", "ClassScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "return", ";", "try", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "==", "0", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "IsReachable", ";", "LocalTypeBinding", "localType", "=", "(", "LocalTypeBinding", ")", "this", ".", "binding", ";", "localType", ".", "setConstantPoolName", "(", "currentScope", ".", "compilationUnitScope", "(", ")", ".", "computeConstantPoolName", "(", "localType", ")", ")", ";", "}", "manageEnclosingInstanceAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ")", ";", "updateMaxFieldCount", "(", ")", ";", "internalAnalyseCode", "(", "flowContext", ",", "flowInfo", ")", ";", "}", "catch", "(", "AbortType", "e", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "}", "}", "public", "void", "analyseCode", "(", "CompilationUnitScope", "unitScope", ")", "{", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "return", ";", "try", "{", "internalAnalyseCode", "(", "null", ",", "FlowInfo", ".", "initial", "(", "this", ".", "maxFieldCount", ")", ")", ";", "}", "catch", "(", "AbortType", "e", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "}", "}", "public", "boolean", "checkConstructors", "(", "Parser", "parser", ")", "{", "boolean", "hasConstructor", "=", "false", ";", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "this", ".", "methods", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "{", "AbstractMethodDeclaration", "am", ";", "if", "(", "(", "am", "=", "this", ".", "methods", "[", "i", "]", ")", ".", "isConstructor", "(", ")", ")", "{", "if", "(", "!", "CharOperation", ".", "equals", "(", "am", ".", "selector", ",", "this", ".", "name", ")", ")", "{", "ConstructorDeclaration", "c", "=", "(", "ConstructorDeclaration", ")", "am", ";", "if", "(", "c", ".", "constructorCall", "==", "null", "||", "c", ".", "constructorCall", ".", "isImplicitSuper", "(", ")", ")", "{", "MethodDeclaration", "m", "=", "parser", ".", "convertToMethodDeclaration", "(", "c", ",", "this", ".", "compilationResult", ")", ";", "this", ".", "methods", "[", "i", "]", "=", "m", ";", "}", "}", "else", "{", "switch", "(", "kind", "(", "this", ".", "modifiers", ")", ")", "{", "case", "TypeDeclaration", ".", "INTERFACE_DECL", ":", "parser", ".", "problemReporter", "(", ")", ".", "interfaceCannotHaveConstructors", "(", "(", "ConstructorDeclaration", ")", "am", ")", ";", "break", ";", "case", "TypeDeclaration", ".", "ANNOTATION_TYPE_DECL", ":", "parser", ".", "problemReporter", "(", ")", ".", "annotationTypeDeclarationCannotHaveConstructor", "(", "(", "ConstructorDeclaration", ")", "am", ")", ";", "break", ";", "}", "hasConstructor", "=", "true", ";", "}", "}", "}", "}", "return", "hasConstructor", ";", "}", "public", "CompilationResult", "compilationResult", "(", ")", "{", "return", "this", ".", "compilationResult", ";", "}", "public", "ConstructorDeclaration", "createDefaultConstructor", "(", "boolean", "needExplicitConstructorCall", ",", "boolean", "needToInsert", ")", "{", "ConstructorDeclaration", "constructor", "=", "new", "ConstructorDeclaration", "(", "this", ".", "compilationResult", ")", ";", "constructor", ".", "bits", "|=", "ASTNode", ".", "IsDefaultConstructor", ";", "constructor", ".", "selector", "=", "this", ".", "name", ";", "constructor", ".", "modifiers", "=", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccVisibilityMASK", ";", "constructor", ".", "declarationSourceStart", "=", "constructor", ".", "sourceStart", "=", "this", ".", "sourceStart", ";", "constructor", ".", "declarationSourceEnd", "=", "constructor", ".", "sourceEnd", "=", "constructor", ".", "bodyEnd", "=", "this", ".", "sourceEnd", ";", "if", "(", "needExplicitConstructorCall", ")", "{", "constructor", ".", "constructorCall", "=", "SuperReference", ".", "implicitSuperConstructorCall", "(", ")", ";", "constructor", ".", "constructorCall", ".", "sourceStart", "=", "this", ".", "sourceStart", ";", "constructor", ".", "constructorCall", ".", "sourceEnd", "=", "this", ".", "sourceEnd", ";", "}", "if", "(", "needToInsert", ")", "{", "if", "(", "this", ".", "methods", "==", "null", ")", "{", "this", ".", "methods", "=", "new", "AbstractMethodDeclaration", "[", "]", "{", "constructor", "}", ";", "}", "else", "{", "AbstractMethodDeclaration", "[", "]", "newMethods", ";", "System", ".", "arraycopy", "(", "this", ".", "methods", ",", "0", ",", "newMethods", "=", "new", "AbstractMethodDeclaration", "[", "this", ".", "methods", ".", "length", "+", "1", "]", ",", "1", ",", "this", ".", "methods", ".", "length", ")", ";", "newMethods", "[", "0", "]", "=", "constructor", ";", "this", ".", "methods", "=", "newMethods", ";", "}", "}", "return", "constructor", ";", "}", "public", "MethodBinding", "createDefaultConstructorWithBinding", "(", "MethodBinding", "inheritedConstructorBinding", ",", "boolean", "eraseThrownExceptions", ")", "{", "String", "baseName", "=", "\"$anonymous\"", ";", "TypeBinding", "[", "]", "argumentTypes", "=", "inheritedConstructorBinding", ".", "parameters", ";", "int", "argumentsLength", "=", "argumentTypes", ".", "length", ";", "ConstructorDeclaration", "constructor", "=", "new", "ConstructorDeclaration", "(", "this", ".", "compilationResult", ")", ";", "constructor", ".", "selector", "=", "new", "char", "[", "]", "{", "'x'", "}", ";", "constructor", ".", "sourceStart", "=", "this", ".", "sourceStart", ";", "constructor", ".", "sourceEnd", "=", "this", ".", "sourceEnd", ";", "int", "newModifiers", "=", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccVisibilityMASK", ";", "if", "(", "inheritedConstructorBinding", ".", "isVarargs", "(", ")", ")", "{", "newModifiers", "|=", "ClassFileConstants", ".", "AccVarargs", ";", "}", "constructor", ".", "modifiers", "=", "newModifiers", ";", "constructor", ".", "bits", "|=", "ASTNode", ".", "IsDefaultConstructor", ";", "if", "(", "argumentsLength", ">", "0", ")", "{", "Argument", "[", "]", "arguments", "=", "(", "constructor", ".", "arguments", "=", "new", "Argument", "[", "argumentsLength", "]", ")", ";", "for", "(", "int", "i", "=", "argumentsLength", ";", "--", "i", ">=", "0", ";", ")", "{", "arguments", "[", "i", "]", "=", "new", "Argument", "(", "(", "baseName", "+", "i", ")", ".", "toCharArray", "(", ")", ",", "0L", ",", "null", ",", "ClassFileConstants", ".", "AccDefault", ")", ";", "}", "}", "constructor", ".", "constructorCall", "=", "SuperReference", ".", "implicitSuperConstructorCall", "(", ")", ";", "constructor", ".", "constructorCall", ".", "sourceStart", "=", "this", ".", "sourceStart", ";", "constructor", ".", "constructorCall", ".", "sourceEnd", "=", "this", ".", "sourceEnd", ";", "if", "(", "argumentsLength", ">", "0", ")", "{", "Expression", "[", "]", "args", ";", "args", "=", "constructor", ".", "constructorCall", ".", "arguments", "=", "new", "Expression", "[", "argumentsLength", "]", ";", "for", "(", "int", "i", "=", "argumentsLength", ";", "--", "i", ">=", "0", ";", ")", "{", "args", "[", "i", "]", "=", "new", "SingleNameReference", "(", "(", "baseName", "+", "i", ")", ".", "toCharArray", "(", ")", ",", "0L", ")", ";", "}", "}", "if", "(", "this", ".", "methods", "==", "null", ")", "{", "this", ".", "methods", "=", "new", "AbstractMethodDeclaration", "[", "]", "{", "constructor", "}", ";", "}", "else", "{", "AbstractMethodDeclaration", "[", "]", "newMethods", ";", "System", ".", "arraycopy", "(", "this", ".", "methods", ",", "0", ",", "newMethods", "=", "new", "AbstractMethodDeclaration", "[", "this", ".", "methods", ".", "length", "+", "1", "]", ",", "1", ",", "this", ".", "methods", ".", "length", ")", ";", "newMethods", "[", "0", "]", "=", "constructor", ";", "this", ".", "methods", "=", "newMethods", ";", "}", "ReferenceBinding", "[", "]", "thrownExceptions", "=", "eraseThrownExceptions", "?", "this", ".", "scope", ".", "environment", "(", ")", ".", "convertToRawTypes", "(", "inheritedConstructorBinding", ".", "thrownExceptions", ",", "true", ",", "true", ")", ":", "inheritedConstructorBinding", ".", "thrownExceptions", ";", "SourceTypeBinding", "sourceType", "=", "this", ".", "binding", ";", "constructor", ".", "binding", "=", "new", "MethodBinding", "(", "constructor", ".", "modifiers", ",", "argumentsLength", "==", "0", "?", "Binding", ".", "NO_PARAMETERS", ":", "argumentTypes", ",", "thrownExceptions", ",", "sourceType", ")", ";", "constructor", ".", "binding", ".", "tagBits", "|=", "(", "inheritedConstructorBinding", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", ";", "constructor", ".", "binding", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccIsDefaultConstructor", ";", "constructor", ".", "scope", "=", "new", "MethodScope", "(", "this", ".", "scope", ",", "constructor", ",", "true", ")", ";", "constructor", ".", "bindArguments", "(", ")", ";", "constructor", ".", "constructorCall", ".", "resolve", "(", "constructor", ".", "scope", ")", ";", "MethodBinding", "[", "]", "methodBindings", "=", "sourceType", ".", "methods", "(", ")", ";", "int", "length", ";", "System", ".", "arraycopy", "(", "methodBindings", ",", "0", ",", "methodBindings", "=", "new", "MethodBinding", "[", "(", "length", "=", "methodBindings", ".", "length", ")", "+", "1", "]", ",", "1", ",", "length", ")", ";", "methodBindings", "[", "0", "]", "=", "constructor", ".", "binding", ";", "if", "(", "++", "length", ">", "1", ")", "ReferenceBinding", ".", "sortMethods", "(", "methodBindings", ",", "0", ",", "length", ")", ";", "sourceType", ".", "setMethods", "(", "methodBindings", ")", ";", "return", "constructor", ".", "binding", ";", "}", "public", "FieldDeclaration", "declarationOf", "(", "FieldBinding", "fieldBinding", ")", "{", "if", "(", "fieldBinding", "!=", "null", "&&", "this", ".", "fields", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "fields", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "FieldDeclaration", "fieldDecl", ";", "if", "(", "(", "fieldDecl", "=", "this", ".", "fields", "[", "i", "]", ")", ".", "binding", "==", "fieldBinding", ")", "return", "fieldDecl", ";", "}", "}", "return", "null", ";", "}", "public", "TypeDeclaration", "declarationOf", "(", "MemberTypeBinding", "memberTypeBinding", ")", "{", "if", "(", "memberTypeBinding", "!=", "null", "&&", "this", ".", "memberTypes", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "memberTypes", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "TypeDeclaration", "memberTypeDecl", ";", "if", "(", "(", "memberTypeDecl", "=", "this", ".", "memberTypes", "[", "i", "]", ")", ".", "binding", "==", "memberTypeBinding", ")", "return", "memberTypeDecl", ";", "}", "}", "return", "null", ";", "}", "public", "AbstractMethodDeclaration", "declarationOf", "(", "MethodBinding", "methodBinding", ")", "{", "if", "(", "methodBinding", "!=", "null", "&&", "this", ".", "methods", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "methods", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "AbstractMethodDeclaration", "methodDecl", ";", "if", "(", "(", "methodDecl", "=", "this", ".", "methods", "[", "i", "]", ")", ".", "binding", "==", "methodBinding", ")", "return", "methodDecl", ";", "}", "}", "return", "null", ";", "}", "public", "TypeDeclaration", "declarationOfType", "(", "char", "[", "]", "[", "]", "typeName", ")", "{", "int", "typeNameLength", "=", "typeName", ".", "length", ";", "if", "(", "typeNameLength", "<", "1", "||", "!", "CharOperation", ".", "equals", "(", "typeName", "[", "0", "]", ",", "this", ".", "name", ")", ")", "{", "return", "null", ";", "}", "if", "(", "typeNameLength", "==", "1", ")", "{", "return", "this", ";", "}", "char", "[", "]", "[", "]", "subTypeName", "=", "new", "char", "[", "typeNameLength", "-", "1", "]", "[", "]", ";", "System", ".", "arraycopy", "(", "typeName", ",", "1", ",", "subTypeName", ",", "0", ",", "typeNameLength", "-", "1", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "memberTypes", ".", "length", ";", "i", "++", ")", "{", "TypeDeclaration", "typeDecl", "=", "this", ".", "memberTypes", "[", "i", "]", ".", "declarationOfType", "(", "subTypeName", ")", ";", "if", "(", "typeDecl", "!=", "null", ")", "{", "return", "typeDecl", ";", "}", "}", "return", "null", ";", "}", "public", "void", "generateCode", "(", "ClassFile", "enclosingClassFile", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "HasBeenGenerated", ")", "!=", "0", ")", "return", ";", "this", ".", "bits", "|=", "ASTNode", ".", "HasBeenGenerated", ";", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "{", "if", "(", "this", ".", "binding", "==", "null", ")", "return", ";", "ClassFile", ".", "createProblemType", "(", "this", ",", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ")", ";", "return", ";", "}", "try", "{", "ClassFile", "classFile", "=", "ClassFile", ".", "getNewInstance", "(", "this", ".", "binding", ")", ";", "classFile", ".", "initialize", "(", "this", ".", "binding", ",", "enclosingClassFile", ",", "false", ")", ";", "if", "(", "this", ".", "binding", ".", "isMemberType", "(", ")", ")", "{", "classFile", ".", "recordInnerClasses", "(", "this", ".", "binding", ")", ";", "}", "else", "if", "(", "this", ".", "binding", ".", "isLocalType", "(", ")", ")", "{", "enclosingClassFile", ".", "recordInnerClasses", "(", "this", ".", "binding", ")", ";", "classFile", ".", "recordInnerClasses", "(", "this", ".", "binding", ")", ";", "}", "TypeVariableBinding", "[", "]", "typeVariables", "=", "this", ".", "binding", ".", "typeVariables", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "typeVariables", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "TypeVariableBinding", "typeVariableBinding", "=", "typeVariables", "[", "i", "]", ";", "if", "(", "(", "typeVariableBinding", ".", "tagBits", "&", "TagBits", ".", "ContainsNestedTypeReferences", ")", "!=", "0", ")", "{", "Util", ".", "recordNestedType", "(", "classFile", ",", "typeVariableBinding", ")", ";", "}", "}", "classFile", ".", "addFieldInfos", "(", ")", ";", "if", "(", "this", ".", "memberTypes", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "memberTypes", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "TypeDeclaration", "memberType", "=", "this", ".", "memberTypes", "[", "i", "]", ";", "classFile", ".", "recordInnerClasses", "(", "memberType", ".", "binding", ")", ";", "memberType", ".", "generateCode", "(", "this", ".", "scope", ",", "classFile", ")", ";", "}", "}", "classFile", ".", "setForMethodInfos", "(", ")", ";", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "methods", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "this", ".", "methods", "[", "i", "]", ".", "generateCode", "(", "this", ".", "scope", ",", "classFile", ")", ";", "}", "}", "classFile", ".", "addSpecialMethods", "(", ")", ";", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "{", "throw", "new", "AbortType", "(", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ",", "null", ")", ";", "}", "classFile", ".", "addAttributes", "(", ")", ";", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ".", "record", "(", "this", ".", "binding", ".", "constantPoolName", "(", ")", ",", "classFile", ")", ";", "}", "catch", "(", "AbortType", "e", ")", "{", "if", "(", "this", ".", "binding", "==", "null", ")", "return", ";", "ClassFile", ".", "createProblemType", "(", "this", ",", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ")", ";", "}", "}", "public", "void", "generateCode", "(", "BlockScope", "blockScope", ",", "CodeStream", "codeStream", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsReachable", ")", "==", "0", ")", "{", "return", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "HasBeenGenerated", ")", "!=", "0", ")", "return", ";", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "this", ".", "binding", "!=", "null", ")", "{", "SyntheticArgumentBinding", "[", "]", "enclosingInstances", "=", "(", "(", "NestedTypeBinding", ")", "this", ".", "binding", ")", ".", "syntheticEnclosingInstances", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "slotSize", "=", "0", ",", "count", "=", "enclosingInstances", "==", "null", "?", "0", ":", "enclosingInstances", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "SyntheticArgumentBinding", "enclosingInstance", "=", "enclosingInstances", "[", "i", "]", ";", "enclosingInstance", ".", "resolvedPosition", "=", "++", "slotSize", ";", "if", "(", "slotSize", ">", "0xFF", ")", "{", "blockScope", ".", "problemReporter", "(", ")", ".", "noMoreAvailableSpaceForArgument", "(", "enclosingInstance", ",", "blockScope", ".", "referenceType", "(", ")", ")", ";", "}", "}", "}", "generateCode", "(", "codeStream", ".", "classFile", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "void", "generateCode", "(", "ClassScope", "classScope", ",", "ClassFile", "enclosingClassFile", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "HasBeenGenerated", ")", "!=", "0", ")", "return", ";", "if", "(", "this", ".", "binding", "!=", "null", ")", "{", "SyntheticArgumentBinding", "[", "]", "enclosingInstances", "=", "(", "(", "NestedTypeBinding", ")", "this", ".", "binding", ")", ".", "syntheticEnclosingInstances", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "slotSize", "=", "0", ",", "count", "=", "enclosingInstances", "==", "null", "?", "0", ":", "enclosingInstances", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "SyntheticArgumentBinding", "enclosingInstance", "=", "enclosingInstances", "[", "i", "]", ";", "enclosingInstance", ".", "resolvedPosition", "=", "++", "slotSize", ";", "if", "(", "slotSize", ">", "0xFF", ")", "{", "classScope", ".", "problemReporter", "(", ")", ".", "noMoreAvailableSpaceForArgument", "(", "enclosingInstance", ",", "classScope", ".", "referenceType", "(", ")", ")", ";", "}", "}", "}", "generateCode", "(", "enclosingClassFile", ")", ";", "}", "public", "void", "generateCode", "(", "CompilationUnitScope", "unitScope", ")", "{", "generateCode", "(", "(", "ClassFile", ")", "null", ")", ";", "}", "public", "boolean", "hasErrors", "(", ")", "{", "return", "this", ".", "ignoreFurtherInvestigation", ";", "}", "private", "void", "internalAnalyseCode", "(", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "!", "this", ".", "binding", ".", "isUsed", "(", ")", "&&", "this", ".", "binding", ".", "isOrEnclosedByPrivateType", "(", ")", ")", "{", "if", "(", "!", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ".", "hasSyntaxError", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "unusedPrivateType", "(", "this", ")", ";", "}", "}", "InitializationFlowContext", "initializerContext", "=", "new", "InitializationFlowContext", "(", "null", ",", "this", ",", "flowInfo", ",", "flowContext", ",", "this", ".", "initializerScope", ")", ";", "InitializationFlowContext", "staticInitializerContext", "=", "new", "InitializationFlowContext", "(", "null", ",", "this", ",", "flowInfo", ",", "flowContext", ",", "this", ".", "staticInitializerScope", ")", ";", "FlowInfo", "nonStaticFieldInfo", "=", "flowInfo", ".", "unconditionalFieldLessCopy", "(", ")", ";", "FlowInfo", "staticFieldInfo", "=", "flowInfo", ".", "unconditionalFieldLessCopy", "(", ")", ";", "if", "(", "this", ".", "fields", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "fields", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "FieldDeclaration", "field", "=", "this", ".", "fields", "[", "i", "]", ";", "if", "(", "field", ".", "isStatic", "(", ")", ")", "{", "if", "(", "(", "staticFieldInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "!=", "0", ")", "field", ".", "bits", "&=", "~", "ASTNode", ".", "IsReachable", ";", "staticInitializerContext", ".", "handledExceptions", "=", "Binding", ".", "ANY_EXCEPTION", ";", "staticFieldInfo", "=", "field", ".", "analyseCode", "(", "this", ".", "staticInitializerScope", ",", "staticInitializerContext", ",", "staticFieldInfo", ")", ";", "if", "(", "staticFieldInfo", "==", "FlowInfo", ".", "DEAD_END", ")", "{", "this", ".", "staticInitializerScope", ".", "problemReporter", "(", ")", ".", "initializerMustCompleteNormally", "(", "field", ")", ";", "staticFieldInfo", "=", "FlowInfo", ".", "initial", "(", "this", ".", "maxFieldCount", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", ";", "}", "}", "else", "{", "if", "(", "(", "nonStaticFieldInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "!=", "0", ")", "field", ".", "bits", "&=", "~", "ASTNode", ".", "IsReachable", ";", "initializerContext", ".", "handledExceptions", "=", "Binding", ".", "ANY_EXCEPTION", ";", "nonStaticFieldInfo", "=", "field", ".", "analyseCode", "(", "this", ".", "initializerScope", ",", "initializerContext", ",", "nonStaticFieldInfo", ")", ";", "if", "(", "nonStaticFieldInfo", "==", "FlowInfo", ".", "DEAD_END", ")", "{", "this", ".", "initializerScope", ".", "problemReporter", "(", ")", ".", "initializerMustCompleteNormally", "(", "field", ")", ";", "nonStaticFieldInfo", "=", "FlowInfo", ".", "initial", "(", "this", ".", "maxFieldCount", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", ";", "}", "}", "}", "}", "if", "(", "this", ".", "memberTypes", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "memberTypes", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "if", "(", "flowContext", "!=", "null", ")", "{", "this", ".", "memberTypes", "[", "i", "]", ".", "analyseCode", "(", "this", ".", "scope", ",", "flowContext", ",", "nonStaticFieldInfo", ".", "copy", "(", ")", ".", "setReachMode", "(", "flowInfo", ".", "reachMode", "(", ")", ")", ")", ";", "}", "else", "{", "this", ".", "memberTypes", "[", "i", "]", ".", "analyseCode", "(", "this", ".", "scope", ")", ";", "}", "}", "}", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "UnconditionalFlowInfo", "outerInfo", "=", "flowInfo", ".", "unconditionalFieldLessCopy", "(", ")", ";", "FlowInfo", "constructorInfo", "=", "nonStaticFieldInfo", ".", "unconditionalInits", "(", ")", ".", "discardNonFieldInitializations", "(", ")", ".", "addInitializationsFrom", "(", "outerInfo", ")", ";", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "methods", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "AbstractMethodDeclaration", "method", "=", "this", ".", "methods", "[", "i", "]", ";", "if", "(", "method", ".", "ignoreFurtherInvestigation", ")", "continue", ";", "if", "(", "method", ".", "isInitializationMethod", "(", ")", ")", "{", "if", "(", "method", ".", "isStatic", "(", ")", ")", "{", "method", ".", "analyseCode", "(", "this", ".", "scope", ",", "staticInitializerContext", ",", "staticFieldInfo", ".", "unconditionalInits", "(", ")", ".", "discardNonFieldInitializations", "(", ")", ".", "addInitializationsFrom", "(", "outerInfo", ")", ")", ";", "}", "else", "{", "(", "(", "ConstructorDeclaration", ")", "method", ")", ".", "analyseCode", "(", "this", ".", "scope", ",", "initializerContext", ",", "constructorInfo", ".", "copy", "(", ")", ",", "flowInfo", ".", "reachMode", "(", ")", ")", ";", "}", "}", "else", "{", "method", ".", "analyseCode", "(", "this", ".", "scope", ",", "null", ",", "flowInfo", ".", "copy", "(", ")", ")", ";", "}", "}", "}", "if", "(", "this", ".", "binding", ".", "isEnum", "(", ")", "&&", "!", "this", ".", "binding", ".", "isAnonymousType", "(", ")", ")", "{", "this", ".", "enumValuesSyntheticfield", "=", "this", ".", "binding", ".", "addSyntheticFieldForEnumValues", "(", ")", ";", "}", "}", "public", "final", "static", "int", "kind", "(", "int", "flags", ")", "{", "switch", "(", "flags", "&", "(", "ClassFileConstants", ".", "AccInterface", "|", "ClassFileConstants", ".", "AccAnnotation", "|", "ClassFileConstants", ".", "AccEnum", ")", ")", "{", "case", "ClassFileConstants", ".", "AccInterface", ":", "return", "TypeDeclaration", ".", "INTERFACE_DECL", ";", "case", "ClassFileConstants", ".", "AccInterface", "|", "ClassFileConstants", ".", "AccAnnotation", ":", "return", "TypeDeclaration", ".", "ANNOTATION_TYPE_DECL", ";", "case", "ClassFileConstants", ".", "AccEnum", ":", "return", "TypeDeclaration", ".", "ENUM_DECL", ";", "default", ":", "return", "TypeDeclaration", ".", "CLASS_DECL", ";", "}", "}", "public", "void", "manageEnclosingInstanceAccessIfNecessary", "(", "BlockScope", "currentScope", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "!=", "0", ")", "return", ";", "NestedTypeBinding", "nestedType", "=", "(", "NestedTypeBinding", ")", "this", ".", "binding", ";", "MethodScope", "methodScope", "=", "currentScope", ".", "methodScope", "(", ")", ";", "if", "(", "!", "methodScope", ".", "isStatic", "&&", "!", "methodScope", ".", "isConstructorCall", ")", "{", "nestedType", ".", "addSyntheticArgumentAndField", "(", "nestedType", ".", "enclosingType", "(", ")", ")", ";", "}", "if", "(", "nestedType", ".", "isAnonymousType", "(", ")", ")", "{", "ReferenceBinding", "superclassBinding", "=", "(", "ReferenceBinding", ")", "nestedType", ".", "superclass", ".", "erasure", "(", ")", ";", "if", "(", "superclassBinding", ".", "enclosingType", "(", ")", "!=", "null", "&&", "!", "superclassBinding", ".", "isStatic", "(", ")", ")", "{", "if", "(", "!", "superclassBinding", ".", "isLocalType", "(", ")", "||", "(", "(", "NestedTypeBinding", ")", "superclassBinding", ")", ".", "getSyntheticField", "(", "superclassBinding", ".", "enclosingType", "(", ")", ",", "true", ")", "!=", "null", ")", "{", "nestedType", ".", "addSyntheticArgument", "(", "superclassBinding", ".", "enclosingType", "(", ")", ")", ";", "}", "}", "if", "(", "!", "methodScope", ".", "isStatic", "&&", "methodScope", ".", "isConstructorCall", "&&", "currentScope", ".", "compilerOptions", "(", ")", ".", "complianceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "ReferenceBinding", "enclosing", "=", "nestedType", ".", "enclosingType", "(", ")", ";", "if", "(", "enclosing", ".", "isNestedType", "(", ")", ")", "{", "NestedTypeBinding", "nestedEnclosing", "=", "(", "NestedTypeBinding", ")", "enclosing", ";", "SyntheticArgumentBinding", "syntheticEnclosingInstanceArgument", "=", "nestedEnclosing", ".", "getSyntheticArgument", "(", "nestedEnclosing", ".", "enclosingType", "(", ")", ",", "true", ")", ";", "if", "(", "syntheticEnclosingInstanceArgument", "!=", "null", ")", "{", "nestedType", ".", "addSyntheticArgumentAndField", "(", "syntheticEnclosingInstanceArgument", ")", ";", "}", "}", "}", "}", "}", "public", "void", "manageEnclosingInstanceAccessIfNecessary", "(", "ClassScope", "currentScope", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "==", "0", ")", "{", "NestedTypeBinding", "nestedType", "=", "(", "NestedTypeBinding", ")", "this", ".", "binding", ";", "nestedType", ".", "addSyntheticArgumentAndField", "(", "this", ".", "binding", ".", "enclosingType", "(", ")", ")", ";", "}", "}", "public", "final", "boolean", "needClassInitMethod", "(", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "ContainsAssertion", ")", "!=", "0", ")", "return", "true", ";", "switch", "(", "kind", "(", "this", ".", "modifiers", ")", ")", "{", "case", "TypeDeclaration", ".", "INTERFACE_DECL", ":", "case", "TypeDeclaration", ".", "ANNOTATION_TYPE_DECL", ":", "return", "this", ".", "fields", "!=", "null", ";", "case", "TypeDeclaration", ".", "ENUM_DECL", ":", "return", "true", ";", "}", "if", "(", "this", ".", "fields", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "this", ".", "fields", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "{", "FieldDeclaration", "field", "=", "this", ".", "fields", "[", "i", "]", ";", "if", "(", "(", "field", ".", "modifiers", "&", "ClassFileConstants", ".", "AccStatic", ")", "!=", "0", ")", "return", "true", ";", "}", "}", "return", "false", ";", "}", "public", "void", "parseMethods", "(", "Parser", "parser", ",", "CompilationUnitDeclaration", "unit", ")", "{", "if", "(", "unit", ".", "ignoreMethodBodies", ")", "return", ";", "if", "(", "this", ".", "memberTypes", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "memberTypes", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeDeclaration", "typeDeclaration", "=", "this", ".", "memberTypes", "[", "i", "]", ";", "typeDeclaration", ".", "parseMethods", "(", "parser", ",", "unit", ")", ";", "this", ".", "bits", "|=", "(", "typeDeclaration", ".", "bits", "&", "ASTNode", ".", "HasSyntaxErrors", ")", ";", "}", "}", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "methods", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "AbstractMethodDeclaration", "abstractMethodDeclaration", "=", "this", ".", "methods", "[", "i", "]", ";", "abstractMethodDeclaration", ".", "parseStatements", "(", "parser", ",", "unit", ")", ";", "this", ".", "bits", "|=", "(", "abstractMethodDeclaration", ".", "bits", "&", "ASTNode", ".", "HasSyntaxErrors", ")", ";", "}", "}", "if", "(", "this", ".", "fields", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "fields", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "final", "FieldDeclaration", "fieldDeclaration", "=", "this", ".", "fields", "[", "i", "]", ";", "switch", "(", "fieldDeclaration", ".", "getKind", "(", ")", ")", "{", "case", "AbstractVariableDeclaration", ".", "INITIALIZER", ":", "(", "(", "Initializer", ")", "fieldDeclaration", ")", ".", "parseStatements", "(", "parser", ",", "this", ",", "unit", ")", ";", "this", ".", "bits", "|=", "(", "fieldDeclaration", ".", "bits", "&", "ASTNode", ".", "HasSyntaxErrors", ")", ";", "break", ";", "}", "}", "}", "}", "public", "StringBuffer", "print", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "if", "(", "this", ".", "javadoc", "!=", "null", ")", "{", "this", ".", "javadoc", ".", "print", "(", "indent", ",", "output", ")", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsAnonymousType", ")", "==", "0", ")", "{", "printIndent", "(", "indent", ",", "output", ")", ";", "printHeader", "(", "0", ",", "output", ")", ";", "}", "return", "printBody", "(", "indent", ",", "output", ")", ";", "}", "public", "StringBuffer", "printBody", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "output", ".", "append", "(", "\"", "{\"", ")", ";", "if", "(", "this", ".", "memberTypes", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "memberTypes", ".", "length", ";", "i", "++", ")", "{", "if", "(", "this", ".", "memberTypes", "[", "i", "]", "!=", "null", ")", "{", "output", ".", "append", "(", "'\\n'", ")", ";", "this", ".", "memberTypes", "[", "i", "]", ".", "print", "(", "indent", "+", "1", ",", "output", ")", ";", "}", "}", "}", "if", "(", "this", ".", "fields", "!=", "null", ")", "{", "for", "(", "int", "fieldI", "=", "0", ";", "fieldI", "<", "this", ".", "fields", ".", "length", ";", "fieldI", "++", ")", "{", "if", "(", "this", ".", "fields", "[", "fieldI", "]", "!=", "null", ")", "{", "output", ".", "append", "(", "'\\n'", ")", ";", "this", ".", "fields", "[", "fieldI", "]", ".", "print", "(", "indent", "+", "1", ",", "output", ")", ";", "}", "}", "}", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "methods", ".", "length", ";", "i", "++", ")", "{", "if", "(", "this", ".", "methods", "[", "i", "]", "!=", "null", ")", "{", "output", ".", "append", "(", "'\\n'", ")", ";", "this", ".", "methods", "[", "i", "]", ".", "print", "(", "indent", "+", "1", ",", "output", ")", ";", "}", "}", "}", "output", ".", "append", "(", "'\\n'", ")", ";", "return", "printIndent", "(", "indent", ",", "output", ")", ".", "append", "(", "'}'", ")", ";", "}", "public", "StringBuffer", "printHeader", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "printModifiers", "(", "this", ".", "modifiers", ",", "output", ")", ";", "if", "(", "this", ".", "annotations", "!=", "null", ")", "printAnnotations", "(", "this", ".", "annotations", ",", "output", ")", ";", "switch", "(", "kind", "(", "this", ".", "modifiers", ")", ")", "{", "case", "TypeDeclaration", ".", "CLASS_DECL", ":", "output", ".", "append", "(", "\"class", "\"", ")", ";", "break", ";", "case", "TypeDeclaration", ".", "INTERFACE_DECL", ":", "output", ".", "append", "(", "\"interface", "\"", ")", ";", "break", ";", "case", "TypeDeclaration", ".", "ENUM_DECL", ":", "output", ".", "append", "(", "\"enum", "\"", ")", ";", "break", ";", "case", "TypeDeclaration", ".", "ANNOTATION_TYPE_DECL", ":", "output", ".", "append", "(", "\"@interface", "\"", ")", ";", "break", ";", "}", "output", ".", "append", "(", "this", ".", "name", ")", ";", "if", "(", "this", ".", "typeParameters", "!=", "null", ")", "{", "output", ".", "append", "(", "\"<\"", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "typeParameters", ".", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "output", ".", "append", "(", "\",", "\"", ")", ";", "this", ".", "typeParameters", "[", "i", "]", ".", "print", "(", "0", ",", "output", ")", ";", "}", "output", ".", "append", "(", "\">\"", ")", ";", "}", "if", "(", "this", ".", "superclass", "!=", "null", ")", "{", "output", ".", "append", "(", "\"", "extends", "\"", ")", ";", "this", ".", "superclass", ".", "print", "(", "0", ",", "output", ")", ";", "}", "if", "(", "this", ".", "superInterfaces", "!=", "null", "&&", "this", ".", "superInterfaces", ".", "length", ">", "0", ")", "{", "switch", "(", "kind", "(", "this", ".", "modifiers", ")", ")", "{", "case", "TypeDeclaration", ".", "CLASS_DECL", ":", "case", "TypeDeclaration", ".", "ENUM_DECL", ":", "output", ".", "append", "(", "\"", "implements", "\"", ")", ";", "break", ";", "case", "TypeDeclaration", ".", "INTERFACE_DECL", ":", "case", "TypeDeclaration", ".", "ANNOTATION_TYPE_DECL", ":", "output", ".", "append", "(", "\"", "extends", "\"", ")", ";", "break", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "superInterfaces", ".", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "output", ".", "append", "(", "\",", "\"", ")", ";", "this", ".", "superInterfaces", "[", "i", "]", ".", "print", "(", "0", ",", "output", ")", ";", "}", "}", "return", "output", ";", "}", "public", "StringBuffer", "printStatement", "(", "int", "tab", ",", "StringBuffer", "output", ")", "{", "return", "print", "(", "tab", ",", "output", ")", ";", "}", "public", "void", "resolve", "(", ")", "{", "SourceTypeBinding", "sourceType", "=", "this", ".", "binding", ";", "if", "(", "sourceType", "==", "null", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "return", ";", "}", "try", "{", "boolean", "old", "=", "this", ".", "staticInitializerScope", ".", "insideTypeAnnotation", ";", "try", "{", "this", ".", "staticInitializerScope", ".", "insideTypeAnnotation", "=", "true", ";", "resolveAnnotations", "(", "this", ".", "staticInitializerScope", ",", "this", ".", "annotations", ",", "sourceType", ")", ";", "}", "finally", "{", "this", ".", "staticInitializerScope", ".", "insideTypeAnnotation", "=", "old", ";", "}", "if", "(", "(", "sourceType", ".", "getAnnotationTagBits", "(", ")", "&", "TagBits", ".", "AnnotationDeprecated", ")", "==", "0", "&&", "(", "sourceType", ".", "modifiers", "&", "ClassFileConstants", ".", "AccDeprecated", ")", "!=", "0", "&&", "this", ".", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "missingDeprecatedAnnotationForType", "(", "this", ")", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "UndocumentedEmptyBlock", ")", "!=", "0", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "undocumentedEmptyBlock", "(", "this", ".", "bodyStart", "-", "1", ",", "this", ".", "bodyEnd", ")", ";", "}", "boolean", "needSerialVersion", "=", "this", ".", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "MissingSerialVersion", ")", "!=", "ProblemSeverities", ".", "Ignore", "&&", "sourceType", ".", "isClass", "(", ")", "&&", "sourceType", ".", "findSuperTypeOriginatingFrom", "(", "TypeIds", ".", "T_JavaIoExternalizable", ",", "false", ")", "==", "null", "&&", "sourceType", ".", "findSuperTypeOriginatingFrom", "(", "TypeIds", ".", "T_JavaIoSerializable", ",", "false", ")", "!=", "null", ";", "if", "(", "needSerialVersion", ")", "{", "CompilationUnitScope", "compilationUnitScope", "=", "this", ".", "scope", ".", "compilationUnitScope", "(", ")", ";", "MethodBinding", "methodBinding", "=", "sourceType", ".", "getExactMethod", "(", "TypeConstants", ".", "WRITEREPLACE", ",", "Binding", ".", "NO_TYPES", ",", "compilationUnitScope", ")", ";", "ReferenceBinding", "[", "]", "throwsExceptions", ";", "needSerialVersion", "=", "methodBinding", "==", "null", "||", "!", "methodBinding", ".", "isValidBinding", "(", ")", "||", "methodBinding", ".", "returnType", ".", "id", "!=", "TypeIds", ".", "T_JavaLangObject", "||", "(", "throwsExceptions", "=", "methodBinding", ".", "thrownExceptions", ")", ".", "length", "!=", "1", "||", "throwsExceptions", "[", "0", "]", ".", "id", "!=", "TypeIds", ".", "T_JavaIoObjectStreamException", ";", "if", "(", "needSerialVersion", ")", "{", "boolean", "hasWriteObjectMethod", "=", "false", ";", "boolean", "hasReadObjectMethod", "=", "false", ";", "TypeBinding", "argumentTypeBinding", "=", "this", ".", "scope", ".", "getType", "(", "TypeConstants", ".", "JAVA_IO_OBJECTOUTPUTSTREAM", ",", "3", ")", ";", "if", "(", "argumentTypeBinding", ".", "isValidBinding", "(", ")", ")", "{", "methodBinding", "=", "sourceType", ".", "getExactMethod", "(", "TypeConstants", ".", "WRITEOBJECT", ",", "new", "TypeBinding", "[", "]", "{", "argumentTypeBinding", "}", ",", "compilationUnitScope", ")", ";", "hasWriteObjectMethod", "=", "methodBinding", "!=", "null", "&&", "methodBinding", ".", "isValidBinding", "(", ")", "&&", "methodBinding", ".", "modifiers", "==", "ClassFileConstants", ".", "AccPrivate", "&&", "methodBinding", ".", "returnType", "==", "TypeBinding", ".", "VOID", "&&", "(", "throwsExceptions", "=", "methodBinding", ".", "thrownExceptions", ")", ".", "length", "==", "1", "&&", "throwsExceptions", "[", "0", "]", ".", "id", "==", "TypeIds", ".", "T_JavaIoException", ";", "}", "argumentTypeBinding", "=", "this", ".", "scope", ".", "getType", "(", "TypeConstants", ".", "JAVA_IO_OBJECTINPUTSTREAM", ",", "3", ")", ";", "if", "(", "argumentTypeBinding", ".", "isValidBinding", "(", ")", ")", "{", "methodBinding", "=", "sourceType", ".", "getExactMethod", "(", "TypeConstants", ".", "READOBJECT", ",", "new", "TypeBinding", "[", "]", "{", "argumentTypeBinding", "}", ",", "compilationUnitScope", ")", ";", "hasReadObjectMethod", "=", "methodBinding", "!=", "null", "&&", "methodBinding", ".", "isValidBinding", "(", ")", "&&", "methodBinding", ".", "modifiers", "==", "ClassFileConstants", ".", "AccPrivate", "&&", "methodBinding", ".", "returnType", "==", "TypeBinding", ".", "VOID", "&&", "(", "throwsExceptions", "=", "methodBinding", ".", "thrownExceptions", ")", ".", "length", "==", "1", "&&", "throwsExceptions", "[", "0", "]", ".", "id", "==", "TypeIds", ".", "T_JavaIoException", ";", "}", "needSerialVersion", "=", "!", "hasWriteObjectMethod", "||", "!", "hasReadObjectMethod", ";", "}", "}", "if", "(", "sourceType", ".", "findSuperTypeOriginatingFrom", "(", "TypeIds", ".", "T_JavaLangThrowable", ",", "true", ")", "!=", "null", ")", "{", "ReferenceBinding", "current", "=", "sourceType", ";", "checkEnclosedInGeneric", ":", "do", "{", "if", "(", "current", ".", "isGenericType", "(", ")", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "genericTypeCannotExtendThrowable", "(", "this", ")", ";", "break", "checkEnclosedInGeneric", ";", "}", "if", "(", "current", ".", "isStatic", "(", ")", ")", "break", "checkEnclosedInGeneric", ";", "if", "(", "current", ".", "isLocalType", "(", ")", ")", "{", "NestedTypeBinding", "nestedType", "=", "(", "NestedTypeBinding", ")", "current", ".", "erasure", "(", ")", ";", "if", "(", "nestedType", ".", "scope", ".", "methodScope", "(", ")", ".", "isStatic", ")", "break", "checkEnclosedInGeneric", ";", "}", "}", "while", "(", "(", "current", "=", "current", ".", "enclosingType", "(", ")", ")", "!=", "null", ")", ";", "}", "int", "localMaxFieldCount", "=", "0", ";", "int", "lastVisibleFieldID", "=", "-", "1", ";", "boolean", "hasEnumConstants", "=", "false", ";", "FieldDeclaration", "[", "]", "enumConstantsWithoutBody", "=", "null", ";", "if", "(", "this", ".", "typeParameters", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "typeParameters", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "this", ".", "typeParameters", "[", "i", "]", ".", "resolve", "(", "this", ".", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "memberTypes", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "memberTypes", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "this", ".", "memberTypes", "[", "i", "]", ".", "resolve", "(", "this", ".", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "fields", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "fields", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "FieldDeclaration", "field", "=", "this", ".", "fields", "[", "i", "]", ";", "switch", "(", "field", ".", "getKind", "(", ")", ")", "{", "case", "AbstractVariableDeclaration", ".", "ENUM_CONSTANT", ":", "hasEnumConstants", "=", "true", ";", "if", "(", "!", "(", "field", ".", "initialization", "instanceof", "QualifiedAllocationExpression", ")", ")", "{", "if", "(", "enumConstantsWithoutBody", "==", "null", ")", "enumConstantsWithoutBody", "=", "new", "FieldDeclaration", "[", "count", "]", ";", "enumConstantsWithoutBody", "[", "i", "]", "=", "field", ";", "}", "case", "AbstractVariableDeclaration", ".", "FIELD", ":", "FieldBinding", "fieldBinding", "=", "field", ".", "binding", ";", "if", "(", "fieldBinding", "==", "null", ")", "{", "if", "(", "field", ".", "initialization", "!=", "null", ")", "field", ".", "initialization", ".", "resolve", "(", "field", ".", "isStatic", "(", ")", "?", "this", ".", "staticInitializerScope", ":", "this", ".", "initializerScope", ")", ";", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "continue", ";", "}", "if", "(", "needSerialVersion", "&&", "(", "(", "fieldBinding", ".", "modifiers", "&", "(", "ClassFileConstants", ".", "AccStatic", "|", "ClassFileConstants", ".", "AccFinal", ")", ")", "==", "(", "ClassFileConstants", ".", "AccStatic", "|", "ClassFileConstants", ".", "AccFinal", ")", ")", "&&", "CharOperation", ".", "equals", "(", "TypeConstants", ".", "SERIALVERSIONUID", ",", "fieldBinding", ".", "name", ")", "&&", "TypeBinding", ".", "LONG", "==", "fieldBinding", ".", "type", ")", "{", "needSerialVersion", "=", "false", ";", "}", "localMaxFieldCount", "++", ";", "lastVisibleFieldID", "=", "field", ".", "binding", ".", "id", ";", "break", ";", "case", "AbstractVariableDeclaration", ".", "INITIALIZER", ":", "(", "(", "Initializer", ")", "field", ")", ".", "lastVisibleFieldID", "=", "lastVisibleFieldID", "+", "1", ";", "break", ";", "}", "field", ".", "resolve", "(", "field", ".", "isStatic", "(", ")", "?", "this", ".", "staticInitializerScope", ":", "this", ".", "initializerScope", ")", ";", "}", "}", "if", "(", "this", ".", "maxFieldCount", "<", "localMaxFieldCount", ")", "{", "this", ".", "maxFieldCount", "=", "localMaxFieldCount", ";", "}", "if", "(", "needSerialVersion", ")", "{", "TypeBinding", "javaxRmiCorbaStub", "=", "this", ".", "scope", ".", "getType", "(", "TypeConstants", ".", "JAVAX_RMI_CORBA_STUB", ",", "4", ")", ";", "if", "(", "javaxRmiCorbaStub", ".", "isValidBinding", "(", ")", ")", "{", "ReferenceBinding", "superclassBinding", "=", "this", ".", "binding", ".", "superclass", ";", "loop", ":", "while", "(", "superclassBinding", "!=", "null", ")", "{", "if", "(", "superclassBinding", "==", "javaxRmiCorbaStub", ")", "{", "needSerialVersion", "=", "false", ";", "break", "loop", ";", "}", "superclassBinding", "=", "superclassBinding", ".", "superclass", "(", ")", ";", "}", "}", "if", "(", "needSerialVersion", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "missingSerialVersion", "(", "this", ")", ";", "}", "}", "switch", "(", "kind", "(", "this", ".", "modifiers", ")", ")", "{", "case", "TypeDeclaration", ".", "ANNOTATION_TYPE_DECL", ":", "if", "(", "this", ".", "superclass", "!=", "null", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "annotationTypeDeclarationCannotHaveSuperclass", "(", "this", ")", ";", "}", "if", "(", "this", ".", "superInterfaces", "!=", "null", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "annotationTypeDeclarationCannotHaveSuperinterfaces", "(", "this", ")", ";", "}", "break", ";", "case", "TypeDeclaration", ".", "ENUM_DECL", ":", "if", "(", "this", ".", "binding", ".", "isAbstract", "(", ")", ")", "{", "if", "(", "!", "hasEnumConstants", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "methods", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "final", "AbstractMethodDeclaration", "methodDeclaration", "=", "this", ".", "methods", "[", "i", "]", ";", "if", "(", "methodDeclaration", ".", "isAbstract", "(", ")", "&&", "methodDeclaration", ".", "binding", "!=", "null", ")", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "enumAbstractMethodMustBeImplemented", "(", "methodDeclaration", ")", ";", "}", "}", "else", "if", "(", "enumConstantsWithoutBody", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "methods", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "final", "AbstractMethodDeclaration", "methodDeclaration", "=", "this", ".", "methods", "[", "i", "]", ";", "if", "(", "methodDeclaration", ".", "isAbstract", "(", ")", "&&", "methodDeclaration", ".", "binding", "!=", "null", ")", "{", "for", "(", "int", "f", "=", "0", ",", "l", "=", "enumConstantsWithoutBody", ".", "length", ";", "f", "<", "l", ";", "f", "++", ")", "if", "(", "enumConstantsWithoutBody", "[", "f", "]", "!=", "null", ")", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "enumConstantMustImplementAbstractMethod", "(", "methodDeclaration", ",", "enumConstantsWithoutBody", "[", "f", "]", ")", ";", "}", "}", "}", "}", "break", ";", "}", "int", "missingAbstractMethodslength", "=", "this", ".", "missingAbstractMethods", "==", "null", "?", "0", ":", "this", ".", "missingAbstractMethods", ".", "length", ";", "int", "methodsLength", "=", "this", ".", "methods", "==", "null", "?", "0", ":", "this", ".", "methods", ".", "length", ";", "if", "(", "(", "methodsLength", "+", "missingAbstractMethodslength", ")", ">", "0xFFFF", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "tooManyMethods", "(", "this", ")", ";", "}", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "methods", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "this", ".", "methods", "[", "i", "]", ".", "resolve", "(", "this", ".", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "javadoc", "!=", "null", ")", "{", "if", "(", "this", ".", "scope", "!=", "null", "&&", "(", "this", ".", "name", "!=", "TypeConstants", ".", "PACKAGE_INFO_NAME", ")", ")", "{", "this", ".", "javadoc", ".", "resolve", "(", "this", ".", "scope", ")", ";", "}", "}", "else", "if", "(", "!", "sourceType", ".", "isLocalType", "(", ")", ")", "{", "int", "visibility", "=", "sourceType", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccVisibilityMASK", ";", "ProblemReporter", "reporter", "=", "this", ".", "scope", ".", "problemReporter", "(", ")", ";", "int", "severity", "=", "reporter", ".", "computeSeverity", "(", "IProblem", ".", "JavadocMissing", ")", ";", "if", "(", "severity", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "if", "(", "this", ".", "enclosingType", "!=", "null", ")", "{", "visibility", "=", "Util", ".", "computeOuterMostVisibility", "(", "this", ".", "enclosingType", ",", "visibility", ")", ";", "}", "int", "javadocModifiers", "=", "(", "this", ".", "binding", ".", "modifiers", "&", "~", "ExtraCompilerModifiers", ".", "AccVisibilityMASK", ")", "|", "visibility", ";", "reporter", ".", "javadocMissing", "(", "this", ".", "sourceStart", ",", "this", ".", "sourceEnd", ",", "severity", ",", "javadocModifiers", ")", ";", "}", "}", "}", "catch", "(", "AbortType", "e", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "return", ";", "}", "}", "public", "void", "resolve", "(", "BlockScope", "blockScope", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsAnonymousType", ")", "==", "0", ")", "{", "Binding", "existing", "=", "blockScope", ".", "getType", "(", "this", ".", "name", ")", ";", "if", "(", "existing", "instanceof", "ReferenceBinding", "&&", "existing", "!=", "this", ".", "binding", "&&", "existing", ".", "isValidBinding", "(", ")", ")", "{", "ReferenceBinding", "existingType", "=", "(", "ReferenceBinding", ")", "existing", ";", "if", "(", "existingType", "instanceof", "TypeVariableBinding", ")", "{", "blockScope", ".", "problemReporter", "(", ")", ".", "typeHiding", "(", "this", ",", "(", "TypeVariableBinding", ")", "existingType", ")", ";", "Scope", "outerScope", "=", "blockScope", ".", "parent", ";", "checkOuterScope", ":", "while", "(", "outerScope", "!=", "null", ")", "{", "Binding", "existing2", "=", "outerScope", ".", "getType", "(", "this", ".", "name", ")", ";", "if", "(", "existing2", "instanceof", "TypeVariableBinding", "&&", "existing2", ".", "isValidBinding", "(", ")", ")", "{", "TypeVariableBinding", "tvb", "=", "(", "TypeVariableBinding", ")", "existingType", ";", "Binding", "declaringElement", "=", "tvb", ".", "declaringElement", ";", "if", "(", "declaringElement", "instanceof", "ReferenceBinding", "&&", "CharOperation", ".", "equals", "(", "(", "(", "ReferenceBinding", ")", "declaringElement", ")", ".", "sourceName", "(", ")", ",", "this", ".", "name", ")", ")", "{", "blockScope", ".", "problemReporter", "(", ")", ".", "typeCollidesWithEnclosingType", "(", "this", ")", ";", "break", "checkOuterScope", ";", "}", "}", "else", "if", "(", "existing2", "instanceof", "ReferenceBinding", "&&", "existing2", ".", "isValidBinding", "(", ")", "&&", "outerScope", ".", "isDefinedInType", "(", "(", "ReferenceBinding", ")", "existing2", ")", ")", "{", "blockScope", ".", "problemReporter", "(", ")", ".", "typeCollidesWithEnclosingType", "(", "this", ")", ";", "break", "checkOuterScope", ";", "}", "else", "if", "(", "existing2", "==", "null", ")", "{", "break", "checkOuterScope", ";", "}", "outerScope", "=", "outerScope", ".", "parent", ";", "}", "}", "else", "if", "(", "existingType", "instanceof", "LocalTypeBinding", "&&", "(", "(", "LocalTypeBinding", ")", "existingType", ")", ".", "scope", ".", "methodScope", "(", ")", "==", "blockScope", ".", "methodScope", "(", ")", ")", "{", "blockScope", ".", "problemReporter", "(", ")", ".", "duplicateNestedType", "(", "this", ")", ";", "}", "else", "if", "(", "blockScope", ".", "isDefinedInType", "(", "existingType", ")", ")", "{", "blockScope", ".", "problemReporter", "(", ")", ".", "typeCollidesWithEnclosingType", "(", "this", ")", ";", "}", "else", "if", "(", "blockScope", ".", "isDefinedInSameUnit", "(", "existingType", ")", ")", "{", "blockScope", ".", "problemReporter", "(", ")", ".", "typeHiding", "(", "this", ",", "existingType", ")", ";", "}", "}", "blockScope", ".", "addLocalType", "(", "this", ")", ";", "}", "if", "(", "this", ".", "binding", "!=", "null", ")", "{", "blockScope", ".", "referenceCompilationUnit", "(", ")", ".", "record", "(", "(", "LocalTypeBinding", ")", "this", ".", "binding", ")", ";", "resolve", "(", ")", ";", "updateMaxFieldCount", "(", ")", ";", "}", "}", "public", "void", "resolve", "(", "ClassScope", "upperScope", ")", "{", "if", "(", "this", ".", "binding", "!=", "null", "&&", "this", ".", "binding", "instanceof", "LocalTypeBinding", ")", "{", "upperScope", ".", "referenceCompilationUnit", "(", ")", ".", "record", "(", "(", "LocalTypeBinding", ")", "this", ".", "binding", ")", ";", "}", "resolve", "(", ")", ";", "updateMaxFieldCount", "(", ")", ";", "}", "public", "void", "resolve", "(", "CompilationUnitScope", "upperScope", ")", "{", "resolve", "(", ")", ";", "updateMaxFieldCount", "(", ")", ";", "}", "public", "void", "tagAsHavingErrors", "(", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "CompilationUnitScope", "unitScope", ")", "{", "try", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "unitScope", ")", ")", "{", "if", "(", "this", ".", "javadoc", "!=", "null", ")", "{", "this", ".", "javadoc", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "annotations", "!=", "null", ")", "{", "int", "annotationsLength", "=", "this", ".", "annotations", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotationsLength", ";", "i", "++", ")", "this", ".", "annotations", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "staticInitializerScope", ")", ";", "}", "if", "(", "this", ".", "superclass", "!=", "null", ")", "this", ".", "superclass", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "if", "(", "this", ".", "superInterfaces", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "superInterfaces", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "this", ".", "superInterfaces", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "typeParameters", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "typeParameters", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "typeParameters", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "memberTypes", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "memberTypes", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "this", ".", "memberTypes", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "fields", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "fields", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "FieldDeclaration", "field", ";", "if", "(", "(", "field", "=", "this", ".", "fields", "[", "i", "]", ")", ".", "isStatic", "(", ")", ")", "{", "field", ".", "traverse", "(", "visitor", ",", "this", ".", "staticInitializerScope", ")", ";", "}", "else", "{", "field", ".", "traverse", "(", "visitor", ",", "this", ".", "initializerScope", ")", ";", "}", "}", "}", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "methods", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "this", ".", "methods", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "unitScope", ")", ";", "}", "catch", "(", "AbortType", "e", ")", "{", "}", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "try", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "if", "(", "this", ".", "javadoc", "!=", "null", ")", "{", "this", ".", "javadoc", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "annotations", "!=", "null", ")", "{", "int", "annotationsLength", "=", "this", ".", "annotations", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotationsLength", ";", "i", "++", ")", "this", ".", "annotations", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "staticInitializerScope", ")", ";", "}", "if", "(", "this", ".", "superclass", "!=", "null", ")", "this", ".", "superclass", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "if", "(", "this", ".", "superInterfaces", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "superInterfaces", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "this", ".", "superInterfaces", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "typeParameters", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "typeParameters", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "typeParameters", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "memberTypes", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "memberTypes", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "this", ".", "memberTypes", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "fields", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "fields", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "FieldDeclaration", "field", ";", "if", "(", "(", "field", "=", "this", ".", "fields", "[", "i", "]", ")", ".", "isStatic", "(", ")", ")", "{", "}", "else", "{", "field", ".", "traverse", "(", "visitor", ",", "this", ".", "initializerScope", ")", ";", "}", "}", "}", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "methods", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "this", ".", "methods", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "catch", "(", "AbortType", "e", ")", "{", "}", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "classScope", ")", "{", "try", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "classScope", ")", ")", "{", "if", "(", "this", ".", "javadoc", "!=", "null", ")", "{", "this", ".", "javadoc", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "annotations", "!=", "null", ")", "{", "int", "annotationsLength", "=", "this", ".", "annotations", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotationsLength", ";", "i", "++", ")", "this", ".", "annotations", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "staticInitializerScope", ")", ";", "}", "if", "(", "this", ".", "superclass", "!=", "null", ")", "this", ".", "superclass", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "if", "(", "this", ".", "superInterfaces", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "superInterfaces", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "this", ".", "superInterfaces", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "typeParameters", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "typeParameters", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "typeParameters", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "memberTypes", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "memberTypes", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "this", ".", "memberTypes", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "fields", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "fields", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "FieldDeclaration", "field", ";", "if", "(", "(", "field", "=", "this", ".", "fields", "[", "i", "]", ")", ".", "isStatic", "(", ")", ")", "{", "field", ".", "traverse", "(", "visitor", ",", "this", ".", "staticInitializerScope", ")", ";", "}", "else", "{", "field", ".", "traverse", "(", "visitor", ",", "this", ".", "initializerScope", ")", ";", "}", "}", "}", "if", "(", "this", ".", "methods", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "methods", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "this", ".", "methods", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "classScope", ")", ";", "}", "catch", "(", "AbortType", "e", ")", "{", "}", "}", "void", "updateMaxFieldCount", "(", ")", "{", "if", "(", "this", ".", "binding", "==", "null", ")", "return", ";", "TypeDeclaration", "outerMostType", "=", "this", ".", "scope", ".", "outerMostClassScope", "(", ")", ".", "referenceType", "(", ")", ";", "if", "(", "this", ".", "maxFieldCount", ">", "outerMostType", ".", "maxFieldCount", ")", "{", "outerMostType", ".", "maxFieldCount", "=", "this", ".", "maxFieldCount", ";", "}", "else", "{", "this", ".", "maxFieldCount", "=", "outerMostType", ".", "maxFieldCount", ";", "}", "}", "public", "boolean", "isSecondary", "(", ")", "{", "return", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsSecondaryType", ")", "!=", "0", ";", "}", "public", "boolean", "isScannerUsableOnThisDeclaration", "(", ")", "{", "return", "true", ";", "}", "}", "</s>" ]
4,202
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "Argument", "extends", "LocalDeclaration", "{", "private", "final", "static", "char", "[", "]", "SET", "=", "\"set\"", ".", "toCharArray", "(", ")", ";", "public", "Argument", "(", "char", "[", "]", "name", ",", "long", "posNom", ",", "TypeReference", "tr", ",", "int", "modifiers", ")", "{", "super", "(", "name", ",", "(", "int", ")", "(", "posNom", ">>>", "32", ")", ",", "(", "int", ")", "posNom", ")", ";", "this", ".", "declarationSourceEnd", "=", "(", "int", ")", "posNom", ";", "this", ".", "modifiers", "=", "modifiers", ";", "this", ".", "type", "=", "tr", ";", "this", ".", "bits", "|=", "(", "IsLocalDeclarationReachable", "|", "IsArgument", ")", ";", "}", "public", "void", "bind", "(", "MethodScope", "scope", ",", "TypeBinding", "typeBinding", ",", "boolean", "used", ")", "{", "Binding", "existingVariable", "=", "scope", ".", "getBinding", "(", "this", ".", "name", ",", "Binding", ".", "VARIABLE", ",", "this", ",", "false", ")", ";", "if", "(", "existingVariable", "!=", "null", "&&", "existingVariable", ".", "isValidBinding", "(", ")", ")", "{", "if", "(", "existingVariable", "instanceof", "LocalVariableBinding", "&&", "this", ".", "hiddenVariableDepth", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "redefineArgument", "(", "this", ")", ";", "}", "else", "{", "boolean", "isSpecialArgument", "=", "false", ";", "if", "(", "existingVariable", "instanceof", "FieldBinding", ")", "{", "if", "(", "scope", ".", "isInsideConstructor", "(", ")", ")", "{", "isSpecialArgument", "=", "true", ";", "}", "else", "{", "AbstractMethodDeclaration", "methodDecl", "=", "scope", ".", "referenceMethod", "(", ")", ";", "if", "(", "methodDecl", "!=", "null", "&&", "CharOperation", ".", "prefixEquals", "(", "SET", ",", "methodDecl", ".", "selector", ")", ")", "{", "isSpecialArgument", "=", "true", ";", "}", "}", "}", "scope", ".", "problemReporter", "(", ")", ".", "localVariableHiding", "(", "this", ",", "existingVariable", ",", "isSpecialArgument", ")", ";", "}", "}", "if", "(", "this", ".", "binding", "==", "null", ")", "{", "this", ".", "binding", "=", "new", "LocalVariableBinding", "(", "this", ",", "typeBinding", ",", "this", ".", "modifiers", ",", "true", ")", ";", "}", "else", "if", "(", "!", "this", ".", "binding", ".", "type", ".", "isValidBinding", "(", ")", ")", "{", "AbstractMethodDeclaration", "methodDecl", "=", "scope", ".", "referenceMethod", "(", ")", ";", "if", "(", "methodDecl", "!=", "null", ")", "{", "MethodBinding", "methodBinding", "=", "methodDecl", ".", "binding", ";", "if", "(", "methodBinding", "!=", "null", ")", "{", "methodBinding", ".", "tagBits", "|=", "TagBits", ".", "HasUnresolvedArguments", ";", "}", "}", "}", "scope", ".", "addLocalVariable", "(", "this", ".", "binding", ")", ";", "resolveAnnotations", "(", "scope", ",", "this", ".", "annotations", ",", "this", ".", "binding", ")", ";", "this", ".", "binding", ".", "declaration", "=", "this", ";", "this", ".", "binding", ".", "useFlag", "=", "used", "?", "LocalVariableBinding", ".", "USED", ":", "LocalVariableBinding", ".", "UNUSED", ";", "}", "public", "int", "getKind", "(", ")", "{", "return", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsArgument", ")", "!=", "0", "?", "PARAMETER", ":", "LOCAL_VARIABLE", ";", "}", "public", "boolean", "isVarArgs", "(", ")", "{", "return", "this", ".", "type", "!=", "null", "&&", "(", "this", ".", "type", ".", "bits", "&", "IsVarArgs", ")", "!=", "0", ";", "}", "public", "StringBuffer", "print", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "indent", ",", "output", ")", ";", "printModifiers", "(", "this", ".", "modifiers", ",", "output", ")", ";", "if", "(", "this", ".", "annotations", "!=", "null", ")", "printAnnotations", "(", "this", ".", "annotations", ",", "output", ")", ";", "if", "(", "this", ".", "type", "==", "null", ")", "{", "output", ".", "append", "(", "\"<no", "type>", "\"", ")", ";", "}", "else", "{", "this", ".", "type", ".", "print", "(", "0", ",", "output", ")", ".", "append", "(", "'", "'", ")", ";", "}", "return", "output", ".", "append", "(", "this", ".", "name", ")", ";", "}", "public", "StringBuffer", "printStatement", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "print", "(", "indent", ",", "output", ")", ".", "append", "(", "';'", ")", ";", "}", "public", "TypeBinding", "resolveForCatch", "(", "BlockScope", "scope", ")", "{", "TypeBinding", "exceptionType", "=", "this", ".", "type", ".", "resolveType", "(", "scope", ",", "true", ")", ";", "boolean", "hasError", ";", "if", "(", "exceptionType", "==", "null", ")", "{", "hasError", "=", "true", ";", "}", "else", "{", "hasError", "=", "false", ";", "switch", "(", "exceptionType", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "PARAMETERIZED_TYPE", ":", "if", "(", "exceptionType", ".", "isBoundParameterizedType", "(", ")", ")", "{", "hasError", "=", "true", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidParameterizedExceptionType", "(", "exceptionType", ",", "this", ")", ";", "}", "break", ";", "case", "Binding", ".", "TYPE_PARAMETER", ":", "scope", ".", "problemReporter", "(", ")", ".", "invalidTypeVariableAsException", "(", "exceptionType", ",", "this", ")", ";", "hasError", "=", "true", ";", "break", ";", "}", "if", "(", "exceptionType", ".", "findSuperTypeOriginatingFrom", "(", "TypeIds", ".", "T_JavaLangThrowable", ",", "true", ")", "==", "null", "&&", "exceptionType", ".", "isValidBinding", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotThrowType", "(", "this", ".", "type", ",", "exceptionType", ")", ";", "hasError", "=", "true", ";", "}", "}", "Binding", "existingVariable", "=", "scope", ".", "getBinding", "(", "this", ".", "name", ",", "Binding", ".", "VARIABLE", ",", "this", ",", "false", ")", ";", "if", "(", "existingVariable", "!=", "null", "&&", "existingVariable", ".", "isValidBinding", "(", ")", ")", "{", "if", "(", "existingVariable", "instanceof", "LocalVariableBinding", "&&", "this", ".", "hiddenVariableDepth", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "redefineArgument", "(", "this", ")", ";", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableHiding", "(", "this", ",", "existingVariable", ",", "false", ")", ";", "}", "}", "if", "(", "(", "this", ".", "type", ".", "bits", "&", "ASTNode", ".", "IsUnionType", ")", "!=", "0", ")", "{", "this", ".", "binding", "=", "new", "CatchParameterBinding", "(", "this", ",", "exceptionType", ",", "this", ".", "modifiers", "|", "ClassFileConstants", ".", "AccFinal", ",", "false", ")", ";", "this", ".", "binding", ".", "tagBits", "|=", "TagBits", ".", "MultiCatchParameter", ";", "}", "else", "{", "this", ".", "binding", "=", "new", "CatchParameterBinding", "(", "this", ",", "exceptionType", ",", "this", ".", "modifiers", ",", "false", ")", ";", "}", "resolveAnnotations", "(", "scope", ",", "this", ".", "annotations", ",", "this", ".", "binding", ")", ";", "scope", ".", "addLocalVariable", "(", "this", ".", "binding", ")", ";", "this", ".", "binding", ".", "setConstant", "(", "Constant", ".", "NotAConstant", ")", ";", "if", "(", "hasError", ")", "return", "null", ";", "return", "exceptionType", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "annotations", "!=", "null", ")", "{", "int", "annotationsLength", "=", "this", ".", "annotations", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotationsLength", ";", "i", "++", ")", "this", ".", "annotations", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "if", "(", "this", ".", "type", "!=", "null", ")", "this", ".", "type", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "annotations", "!=", "null", ")", "{", "int", "annotationsLength", "=", "this", ".", "annotations", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotationsLength", ";", "i", "++", ")", "this", ".", "annotations", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "if", "(", "this", ".", "type", "!=", "null", ")", "this", ".", "type", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
4,203
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "ClassLiteralAccess", "extends", "Expression", "{", "public", "TypeReference", "type", ";", "public", "TypeBinding", "targetType", ";", "FieldBinding", "syntheticField", ";", "public", "ClassLiteralAccess", "(", "int", "sourceEnd", ",", "TypeReference", "type", ")", "{", "this", ".", "type", "=", "type", ";", "type", ".", "bits", "|=", "IgnoreRawTypeCheck", ";", "this", ".", "sourceStart", "=", "type", ".", "sourceStart", ";", "this", ".", "sourceEnd", "=", "sourceEnd", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "SourceTypeBinding", "sourceType", "=", "currentScope", ".", "outerMostClassScope", "(", ")", ".", "enclosingSourceType", "(", ")", ";", "if", "(", "!", "sourceType", ".", "isInterface", "(", ")", "&&", "!", "this", ".", "targetType", ".", "isBaseType", "(", ")", "&&", "currentScope", ".", "compilerOptions", "(", ")", ".", "targetJDK", "<", "ClassFileConstants", ".", "JDK1_5", ")", "{", "this", ".", "syntheticField", "=", "sourceType", ".", "addSyntheticFieldForClassLiteral", "(", "this", ".", "targetType", ",", "currentScope", ")", ";", "}", "return", "flowInfo", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateClassLiteralAccessForType", "(", "this", ".", "type", ".", "resolvedType", ",", "this", ".", "syntheticField", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "this", ".", "type", ".", "print", "(", "0", ",", "output", ")", ".", "append", "(", "\".class\"", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "(", "this", ".", "targetType", "=", "this", ".", "type", ".", "resolveType", "(", "scope", ",", "true", ")", ")", "==", "null", ")", "return", "null", ";", "this", ".", "targetType", "=", "scope", ".", "environment", "(", ")", ".", "convertToRawType", "(", "this", ".", "targetType", ",", "true", ")", ";", "if", "(", "this", ".", "targetType", ".", "isArrayType", "(", ")", ")", "{", "ArrayBinding", "arrayBinding", "=", "(", "ArrayBinding", ")", "this", ".", "targetType", ";", "TypeBinding", "leafComponentType", "=", "arrayBinding", ".", "leafComponentType", ";", "if", "(", "leafComponentType", "==", "TypeBinding", ".", "VOID", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotAllocateVoidArray", "(", "this", ")", ";", "return", "null", ";", "}", "else", "if", "(", "leafComponentType", ".", "isTypeVariable", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "illegalClassLiteralForTypeVariable", "(", "(", "TypeVariableBinding", ")", "leafComponentType", ",", "this", ")", ";", "}", "}", "else", "if", "(", "this", ".", "targetType", ".", "isTypeVariable", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "illegalClassLiteralForTypeVariable", "(", "(", "TypeVariableBinding", ")", "this", ".", "targetType", ",", "this", ")", ";", "}", "ReferenceBinding", "classType", "=", "scope", ".", "getJavaLangClass", "(", ")", ";", "if", "(", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "TypeBinding", "boxedType", "=", "null", ";", "if", "(", "this", ".", "targetType", ".", "id", "==", "T_void", ")", "{", "boxedType", "=", "scope", ".", "environment", "(", ")", ".", "getResolvedType", "(", "JAVA_LANG_VOID", ",", "scope", ")", ";", "}", "else", "{", "boxedType", "=", "scope", ".", "boxing", "(", "this", ".", "targetType", ")", ";", "}", "this", ".", "resolvedType", "=", "scope", ".", "environment", "(", ")", ".", "createParameterizedType", "(", "classType", ",", "new", "TypeBinding", "[", "]", "{", "boxedType", "}", ",", "null", ")", ";", "}", "else", "{", "this", ".", "resolvedType", "=", "classType", ";", "}", "return", "this", ".", "resolvedType", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "this", ".", "type", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
4,204
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "BreakStatement", "extends", "BranchStatement", "{", "public", "BreakStatement", "(", "char", "[", "]", "label", ",", "int", "sourceStart", ",", "int", "e", ")", "{", "super", "(", "label", ",", "sourceStart", ",", "e", ")", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "FlowContext", "targetContext", "=", "(", "this", ".", "label", "==", "null", ")", "?", "flowContext", ".", "getTargetContextForDefaultBreak", "(", ")", ":", "flowContext", ".", "getTargetContextForBreakLabel", "(", "this", ".", "label", ")", ";", "if", "(", "targetContext", "==", "null", ")", "{", "if", "(", "this", ".", "label", "==", "null", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "invalidBreak", "(", "this", ")", ";", "}", "else", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "undefinedLabel", "(", "this", ")", ";", "}", "return", "flowInfo", ";", "}", "this", ".", "initStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "flowInfo", ")", ";", "this", ".", "targetLabel", "=", "targetContext", ".", "breakLabel", "(", ")", ";", "FlowContext", "traversedContext", "=", "flowContext", ";", "int", "subCount", "=", "0", ";", "this", ".", "subroutines", "=", "new", "SubRoutineStatement", "[", "5", "]", ";", "do", "{", "SubRoutineStatement", "sub", ";", "if", "(", "(", "sub", "=", "traversedContext", ".", "subroutine", "(", ")", ")", "!=", "null", ")", "{", "if", "(", "subCount", "==", "this", ".", "subroutines", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "subroutines", ",", "0", ",", "(", "this", ".", "subroutines", "=", "new", "SubRoutineStatement", "[", "subCount", "*", "2", "]", ")", ",", "0", ",", "subCount", ")", ";", "}", "this", ".", "subroutines", "[", "subCount", "++", "]", "=", "sub", ";", "if", "(", "sub", ".", "isSubRoutineEscaping", "(", ")", ")", "{", "break", ";", "}", "}", "traversedContext", ".", "recordReturnFrom", "(", "flowInfo", ".", "unconditionalInits", "(", ")", ")", ";", "traversedContext", ".", "recordBreakTo", "(", "targetContext", ")", ";", "if", "(", "traversedContext", "instanceof", "InsideSubRoutineFlowContext", ")", "{", "ASTNode", "node", "=", "traversedContext", ".", "associatedNode", ";", "if", "(", "node", "instanceof", "TryStatement", ")", "{", "TryStatement", "tryStatement", "=", "(", "TryStatement", ")", "node", ";", "flowInfo", ".", "addInitializationsFrom", "(", "tryStatement", ".", "subRoutineInits", ")", ";", "}", "}", "else", "if", "(", "traversedContext", "==", "targetContext", ")", "{", "targetContext", ".", "recordBreakFrom", "(", "flowInfo", ")", ";", "break", ";", "}", "}", "while", "(", "(", "traversedContext", "=", "traversedContext", ".", "parent", ")", "!=", "null", ")", ";", "if", "(", "subCount", "!=", "this", ".", "subroutines", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "subroutines", ",", "0", ",", "(", "this", ".", "subroutines", "=", "new", "SubRoutineStatement", "[", "subCount", "]", ")", ",", "0", ",", "subCount", ")", ";", "}", "return", "FlowInfo", ".", "DEAD_END", ";", "}", "public", "StringBuffer", "printStatement", "(", "int", "tab", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "tab", ",", "output", ")", ".", "append", "(", "\"break", "\"", ")", ";", "if", "(", "this", ".", "label", "!=", "null", ")", "output", ".", "append", "(", "'", "'", ")", ".", "append", "(", "this", ".", "label", ")", ";", "return", "output", ".", "append", "(", "';'", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockscope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "blockscope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "blockscope", ")", ";", "}", "}", "</s>" ]
4,205
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "FloatUtil", ";", "public", "class", "DoubleLiteral", "extends", "NumberLiteral", "{", "double", "value", ";", "public", "DoubleLiteral", "(", "char", "[", "]", "token", ",", "int", "s", ",", "int", "e", ")", "{", "super", "(", "token", ",", "s", ",", "e", ")", ";", "}", "public", "void", "computeConstant", "(", ")", "{", "Double", "computedValue", ";", "boolean", "containsUnderscores", "=", "CharOperation", ".", "indexOf", "(", "'_'", ",", "this", ".", "source", ")", ">", "0", ";", "if", "(", "containsUnderscores", ")", "{", "this", ".", "source", "=", "CharOperation", ".", "remove", "(", "this", ".", "source", ",", "'_'", ")", ";", "}", "try", "{", "computedValue", "=", "Double", ".", "valueOf", "(", "String", ".", "valueOf", "(", "this", ".", "source", ")", ")", ";", "}", "catch", "(", "NumberFormatException", "e", ")", "{", "try", "{", "double", "v", "=", "FloatUtil", ".", "valueOfHexDoubleLiteral", "(", "this", ".", "source", ")", ";", "if", "(", "v", "==", "Double", ".", "POSITIVE_INFINITY", ")", "{", "return", ";", "}", "if", "(", "Double", ".", "isNaN", "(", "v", ")", ")", "{", "return", ";", "}", "this", ".", "value", "=", "v", ";", "this", ".", "constant", "=", "DoubleConstant", ".", "fromValue", "(", "v", ")", ";", "}", "catch", "(", "NumberFormatException", "e1", ")", "{", "}", "return", ";", "}", "final", "double", "doubleValue", "=", "computedValue", ".", "doubleValue", "(", ")", ";", "if", "(", "doubleValue", ">", "Double", ".", "MAX_VALUE", ")", "{", "return", ";", "}", "if", "(", "doubleValue", "<", "Double", ".", "MIN_VALUE", ")", "{", "boolean", "isHexaDecimal", "=", "false", ";", "label", ":", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "source", ".", "length", ";", "i", "++", ")", "{", "switch", "(", "this", ".", "source", "[", "i", "]", ")", "{", "case", "'0'", ":", "case", "'.'", ":", "break", ";", "case", "'x'", ":", "case", "'X'", ":", "isHexaDecimal", "=", "true", ";", "break", ";", "case", "'e'", ":", "case", "'E'", ":", "case", "'f'", ":", "case", "'F'", ":", "case", "'d'", ":", "case", "'D'", ":", "if", "(", "isHexaDecimal", ")", "{", "return", ";", "}", "break", "label", ";", "case", "'p'", ":", "case", "'P'", ":", "break", "label", ";", "default", ":", "return", ";", "}", "}", "}", "this", ".", "value", "=", "doubleValue", ";", "this", ".", "constant", "=", "DoubleConstant", ".", "fromValue", "(", "this", ".", "value", ")", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "TypeBinding", "literalType", "(", "BlockScope", "scope", ")", "{", "return", "TypeBinding", ".", "DOUBLE", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
4,206
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "CompilerOptions", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "ProblemSeverities", ";", "public", "class", "SingleTypeReference", "extends", "TypeReference", "{", "public", "char", "[", "]", "token", ";", "public", "SingleTypeReference", "(", "char", "[", "]", "source", ",", "long", "pos", ")", "{", "this", ".", "token", "=", "source", ";", "this", ".", "sourceStart", "=", "(", "int", ")", "(", "pos", ">>>", "32", ")", ";", "this", ".", "sourceEnd", "=", "(", "int", ")", "(", "pos", "&", "0x00000000FFFFFFFFL", ")", ";", "}", "public", "TypeReference", "copyDims", "(", "int", "dim", ")", "{", "return", "new", "ArrayTypeReference", "(", "this", ".", "token", ",", "dim", ",", "(", "(", "(", "long", ")", "this", ".", "sourceStart", ")", "<<", "32", ")", "+", "this", ".", "sourceEnd", ")", ";", "}", "public", "char", "[", "]", "getLastToken", "(", ")", "{", "return", "this", ".", "token", ";", "}", "protected", "TypeBinding", "getTypeBinding", "(", "Scope", "scope", ")", "{", "if", "(", "this", ".", "resolvedType", "!=", "null", ")", "return", "this", ".", "resolvedType", ";", "this", ".", "resolvedType", "=", "scope", ".", "getType", "(", "this", ".", "token", ")", ";", "if", "(", "scope", ".", "kind", "==", "Scope", ".", "CLASS_SCOPE", "&&", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "if", "(", "(", "(", "ClassScope", ")", "scope", ")", ".", "detectHierarchyCycle", "(", "this", ".", "resolvedType", ",", "this", ")", ")", "return", "null", ";", "return", "this", ".", "resolvedType", ";", "}", "public", "char", "[", "]", "[", "]", "getTypeName", "(", ")", "{", "return", "new", "char", "[", "]", "[", "]", "{", "this", ".", "token", "}", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "output", ".", "append", "(", "this", ".", "token", ")", ";", "}", "public", "TypeBinding", "resolveTypeEnclosing", "(", "BlockScope", "scope", ",", "ReferenceBinding", "enclosingType", ")", "{", "TypeBinding", "memberType", "=", "this", ".", "resolvedType", "=", "scope", ".", "getMemberType", "(", "this", ".", "token", ",", "enclosingType", ")", ";", "boolean", "hasError", "=", "false", ";", "if", "(", "!", "memberType", ".", "isValidBinding", "(", ")", ")", "{", "hasError", "=", "true", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidEnclosingType", "(", "this", ",", "memberType", ",", "enclosingType", ")", ";", "memberType", "=", "(", "(", "ReferenceBinding", ")", "memberType", ")", ".", "closestMatch", "(", ")", ";", "if", "(", "memberType", "==", "null", ")", "{", "return", "null", ";", "}", "}", "if", "(", "isTypeUseDeprecated", "(", "memberType", ",", "scope", ")", ")", "reportDeprecatedType", "(", "memberType", ",", "scope", ")", ";", "memberType", "=", "scope", ".", "environment", "(", ")", ".", "convertToRawType", "(", "memberType", ",", "false", ")", ";", "if", "(", "memberType", ".", "isRawType", "(", ")", "&&", "(", "this", ".", "bits", "&", "IgnoreRawTypeCheck", ")", "==", "0", "&&", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "RawTypeReference", ")", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "rawTypeReference", "(", "this", ",", "memberType", ")", ";", "}", "if", "(", "hasError", ")", "{", "return", "memberType", ";", "}", "return", "this", ".", "resolvedType", "=", "memberType", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
4,207
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "LabeledStatement", "extends", "Statement", "{", "public", "Statement", "statement", ";", "public", "char", "[", "]", "label", ";", "public", "BranchLabel", "targetLabel", ";", "public", "int", "labelEnd", ";", "int", "mergedInitStateIndex", "=", "-", "1", ";", "public", "LabeledStatement", "(", "char", "[", "]", "label", ",", "Statement", "statement", ",", "long", "labelPosition", ",", "int", "sourceEnd", ")", "{", "this", ".", "statement", "=", "statement", ";", "if", "(", "statement", "instanceof", "EmptyStatement", ")", "statement", ".", "bits", "|=", "IsUsefulEmptyStatement", ";", "this", ".", "label", "=", "label", ";", "this", ".", "sourceStart", "=", "(", "int", ")", "(", "labelPosition", ">>>", "32", ")", ";", "this", ".", "labelEnd", "=", "(", "int", ")", "labelPosition", ";", "this", ".", "sourceEnd", "=", "sourceEnd", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "statement", "==", "null", ")", "{", "return", "flowInfo", ";", "}", "else", "{", "LabelFlowContext", "labelContext", ";", "FlowInfo", "statementInfo", ",", "mergedInfo", ";", "statementInfo", "=", "this", ".", "statement", ".", "analyseCode", "(", "currentScope", ",", "(", "labelContext", "=", "new", "LabelFlowContext", "(", "flowContext", ",", "this", ",", "this", ".", "label", ",", "(", "this", ".", "targetLabel", "=", "new", "BranchLabel", "(", ")", ")", ",", "currentScope", ")", ")", ",", "flowInfo", ")", ";", "boolean", "reinjectNullInfo", "=", "(", "statementInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", "&&", "(", "labelContext", ".", "initsOnBreak", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ";", "mergedInfo", "=", "statementInfo", ".", "mergedWith", "(", "labelContext", ".", "initsOnBreak", ")", ";", "if", "(", "reinjectNullInfo", ")", "{", "(", "(", "UnconditionalFlowInfo", ")", "mergedInfo", ")", ".", "addInitializationsFrom", "(", "flowInfo", ".", "unconditionalFieldLessCopy", "(", ")", ")", ".", "addInitializationsFrom", "(", "labelContext", ".", "initsOnBreak", ".", "unconditionalFieldLessCopy", "(", ")", ")", ";", "}", "this", ".", "mergedInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "mergedInfo", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "LabelUsed", ")", "==", "0", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "unusedLabel", "(", "this", ")", ";", "}", "return", "mergedInfo", ";", "}", "}", "public", "ASTNode", "concreteStatement", "(", ")", "{", "return", "this", ".", "statement", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "IsReachable", ")", "==", "0", ")", "{", "return", ";", "}", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "this", ".", "targetLabel", "!=", "null", ")", "{", "this", ".", "targetLabel", ".", "initialize", "(", "codeStream", ")", ";", "if", "(", "this", ".", "statement", "!=", "null", ")", "{", "this", ".", "statement", ".", "generateCode", "(", "currentScope", ",", "codeStream", ")", ";", "}", "this", ".", "targetLabel", ".", "place", "(", ")", ";", "}", "if", "(", "this", ".", "mergedInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "StringBuffer", "printStatement", "(", "int", "tab", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "tab", ",", "output", ")", ".", "append", "(", "this", ".", "label", ")", ".", "append", "(", "\":", "\"", ")", ";", "if", "(", "this", ".", "statement", "==", "null", ")", "output", ".", "append", "(", "';'", ")", ";", "else", "this", ".", "statement", ".", "printStatement", "(", "0", ",", "output", ")", ";", "return", "output", ";", "}", "public", "void", "resolve", "(", "BlockScope", "scope", ")", "{", "if", "(", "this", ".", "statement", "!=", "null", ")", "{", "this", ".", "statement", ".", "resolve", "(", "scope", ")", ";", "}", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "if", "(", "this", ".", "statement", "!=", "null", ")", "this", ".", "statement", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
4,208
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ClassFile", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "CompilationResult", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "BranchLabel", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "ConstantPool", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "Opcodes", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "ExceptionHandlingFlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "InitializationFlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Binding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ClassScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "FieldBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MethodScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "SourceTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "SyntheticMethodBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "Parser", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "AbortMethod", ";", "public", "class", "Clinit", "extends", "AbstractMethodDeclaration", "{", "private", "static", "int", "ENUM_CONSTANTS_THRESHOLD", "=", "2000", ";", "private", "FieldBinding", "assertionSyntheticFieldBinding", "=", "null", ";", "private", "FieldBinding", "classLiteralSyntheticField", "=", "null", ";", "public", "Clinit", "(", "CompilationResult", "compilationResult", ")", "{", "super", "(", "compilationResult", ")", ";", "this", ".", "modifiers", "=", "0", ";", "this", ".", "selector", "=", "TypeConstants", ".", "CLINIT", ";", "}", "public", "void", "analyseCode", "(", "ClassScope", "classScope", ",", "InitializationFlowContext", "staticInitializerFlowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "return", ";", "try", "{", "ExceptionHandlingFlowContext", "clinitContext", "=", "new", "ExceptionHandlingFlowContext", "(", "staticInitializerFlowContext", ".", "parent", ",", "this", ",", "Binding", ".", "NO_EXCEPTIONS", ",", "staticInitializerFlowContext", ",", "this", ".", "scope", ",", "FlowInfo", ".", "DEAD_END", ")", ";", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "==", "0", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "NeedFreeReturn", ";", "}", "flowInfo", "=", "flowInfo", ".", "mergedWith", "(", "staticInitializerFlowContext", ".", "initsOnReturn", ")", ";", "FieldBinding", "[", "]", "fields", "=", "this", ".", "scope", ".", "enclosingSourceType", "(", ")", ".", "fields", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "count", "=", "fields", ".", "length", ";", "i", "<", "count", ";", "i", "++", ")", "{", "FieldBinding", "field", ";", "if", "(", "(", "field", "=", "fields", "[", "i", "]", ")", ".", "isStatic", "(", ")", "&&", "field", ".", "isFinal", "(", ")", "&&", "(", "!", "flowInfo", ".", "isDefinitelyAssigned", "(", "fields", "[", "i", "]", ")", ")", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "uninitializedBlankFinalField", "(", "field", ",", "this", ".", "scope", ".", "referenceType", "(", ")", ".", "declarationOf", "(", "field", ".", "original", "(", ")", ")", ")", ";", "}", "}", "staticInitializerFlowContext", ".", "checkInitializerExceptions", "(", "this", ".", "scope", ",", "clinitContext", ",", "flowInfo", ")", ";", "}", "catch", "(", "AbortMethod", "e", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "}", "}", "public", "void", "generateCode", "(", "ClassScope", "classScope", ",", "ClassFile", "classFile", ")", "{", "int", "clinitOffset", "=", "0", ";", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "{", "return", ";", "}", "boolean", "restart", "=", "false", ";", "do", "{", "try", "{", "clinitOffset", "=", "classFile", ".", "contentsOffset", ";", "this", ".", "generateCode", "(", "classScope", ",", "classFile", ",", "clinitOffset", ")", ";", "restart", "=", "false", ";", "}", "catch", "(", "AbortMethod", "e", ")", "{", "if", "(", "e", ".", "compilationResult", "==", "CodeStream", ".", "RESTART_IN_WIDE_MODE", ")", "{", "classFile", ".", "contentsOffset", "=", "clinitOffset", ";", "classFile", ".", "methodCount", "--", ";", "classFile", ".", "codeStream", ".", "resetInWideMode", "(", ")", ";", "restart", "=", "true", ";", "}", "else", "if", "(", "e", ".", "compilationResult", "==", "CodeStream", ".", "RESTART_CODE_GEN_FOR_UNUSED_LOCALS_MODE", ")", "{", "classFile", ".", "contentsOffset", "=", "clinitOffset", ";", "classFile", ".", "methodCount", "--", ";", "classFile", ".", "codeStream", ".", "resetForCodeGenUnusedLocals", "(", ")", ";", "restart", "=", "true", ";", "}", "else", "{", "classFile", ".", "contentsOffset", "=", "clinitOffset", ";", "classFile", ".", "methodCount", "--", ";", "restart", "=", "false", ";", "}", "}", "}", "while", "(", "restart", ")", ";", "}", "private", "void", "generateCode", "(", "ClassScope", "classScope", ",", "ClassFile", "classFile", ",", "int", "clinitOffset", ")", "{", "ConstantPool", "constantPool", "=", "classFile", ".", "constantPool", ";", "int", "constantPoolOffset", "=", "constantPool", ".", "currentOffset", ";", "int", "constantPoolIndex", "=", "constantPool", ".", "currentIndex", ";", "classFile", ".", "generateMethodInfoHeaderForClinit", "(", ")", ";", "int", "codeAttributeOffset", "=", "classFile", ".", "contentsOffset", ";", "classFile", ".", "generateCodeAttributeHeader", "(", ")", ";", "CodeStream", "codeStream", "=", "classFile", ".", "codeStream", ";", "resolve", "(", "classScope", ")", ";", "codeStream", ".", "reset", "(", "this", ",", "classFile", ")", ";", "TypeDeclaration", "declaringType", "=", "classScope", ".", "referenceContext", ";", "MethodScope", "staticInitializerScope", "=", "declaringType", ".", "staticInitializerScope", ";", "staticInitializerScope", ".", "computeLocalVariablePositions", "(", "0", ",", "codeStream", ")", ";", "if", "(", "this", ".", "assertionSyntheticFieldBinding", "!=", "null", ")", "{", "codeStream", ".", "generateClassLiteralAccessForType", "(", "classScope", ".", "outerMostClassScope", "(", ")", ".", "enclosingSourceType", "(", ")", ",", "this", ".", "classLiteralSyntheticField", ")", ";", "codeStream", ".", "invokeJavaLangClassDesiredAssertionStatus", "(", ")", ";", "BranchLabel", "falseLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "codeStream", ".", "ifne", "(", "falseLabel", ")", ";", "codeStream", ".", "iconst_1", "(", ")", ";", "BranchLabel", "jumpLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "codeStream", ".", "decrStackSize", "(", "1", ")", ";", "codeStream", ".", "goto_", "(", "jumpLabel", ")", ";", "falseLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_0", "(", ")", ";", "jumpLabel", ".", "place", "(", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_putstatic", ",", "this", ".", "assertionSyntheticFieldBinding", ",", "null", ")", ";", "}", "final", "FieldDeclaration", "[", "]", "fieldDeclarations", "=", "declaringType", ".", "fields", ";", "BlockScope", "lastInitializerScope", "=", "null", ";", "int", "remainingFieldCount", "=", "0", ";", "if", "(", "TypeDeclaration", ".", "kind", "(", "declaringType", ".", "modifiers", ")", "==", "TypeDeclaration", ".", "ENUM_DECL", ")", "{", "int", "enumCount", "=", "declaringType", ".", "enumConstantsCounter", ";", "if", "(", "enumCount", ">", "ENUM_CONSTANTS_THRESHOLD", ")", "{", "int", "begin", "=", "-", "1", ";", "int", "count", "=", "0", ";", "if", "(", "fieldDeclarations", "!=", "null", ")", "{", "int", "max", "=", "fieldDeclarations", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "max", ";", "i", "++", ")", "{", "FieldDeclaration", "fieldDecl", "=", "fieldDeclarations", "[", "i", "]", ";", "if", "(", "fieldDecl", ".", "isStatic", "(", ")", ")", "{", "if", "(", "fieldDecl", ".", "getKind", "(", ")", "==", "AbstractVariableDeclaration", ".", "ENUM_CONSTANT", ")", "{", "if", "(", "begin", "==", "-", "1", ")", "{", "begin", "=", "i", ";", "}", "count", "++", ";", "if", "(", "count", ">", "ENUM_CONSTANTS_THRESHOLD", ")", "{", "SyntheticMethodBinding", "syntheticMethod", "=", "declaringType", ".", "binding", ".", "addSyntheticMethodForEnumInitialization", "(", "begin", ",", "i", ")", ";", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "syntheticMethod", ",", "null", ")", ";", "begin", "=", "i", ";", "count", "=", "1", ";", "}", "}", "}", "}", "if", "(", "count", "!=", "0", ")", "{", "SyntheticMethodBinding", "syntheticMethod", "=", "declaringType", ".", "binding", ".", "addSyntheticMethodForEnumInitialization", "(", "begin", ",", "max", ")", ";", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "syntheticMethod", ",", "null", ")", ";", "}", "}", "}", "else", "if", "(", "fieldDeclarations", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "fieldDeclarations", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "FieldDeclaration", "fieldDecl", "=", "fieldDeclarations", "[", "i", "]", ";", "if", "(", "fieldDecl", ".", "isStatic", "(", ")", ")", "{", "if", "(", "fieldDecl", ".", "getKind", "(", ")", "==", "AbstractVariableDeclaration", ".", "ENUM_CONSTANT", ")", "{", "fieldDecl", ".", "generateCode", "(", "staticInitializerScope", ",", "codeStream", ")", ";", "}", "else", "{", "remainingFieldCount", "++", ";", "}", "}", "}", "}", "codeStream", ".", "generateInlinedValue", "(", "enumCount", ")", ";", "codeStream", ".", "anewarray", "(", "declaringType", ".", "binding", ")", ";", "if", "(", "enumCount", ">", "0", ")", "{", "if", "(", "fieldDeclarations", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "fieldDeclarations", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "FieldDeclaration", "fieldDecl", "=", "fieldDeclarations", "[", "i", "]", ";", "if", "(", "fieldDecl", ".", "getKind", "(", ")", "==", "AbstractVariableDeclaration", ".", "ENUM_CONSTANT", ")", "{", "codeStream", ".", "dup", "(", ")", ";", "codeStream", ".", "generateInlinedValue", "(", "fieldDecl", ".", "binding", ".", "id", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "fieldDecl", ".", "binding", ",", "null", ")", ";", "codeStream", ".", "aastore", "(", ")", ";", "}", "}", "}", "}", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_putstatic", ",", "declaringType", ".", "enumValuesSyntheticfield", ",", "null", ")", ";", "if", "(", "remainingFieldCount", "!=", "0", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "fieldDeclarations", ".", "length", ";", "i", "<", "max", "&&", "remainingFieldCount", ">=", "0", ";", "i", "++", ")", "{", "FieldDeclaration", "fieldDecl", "=", "fieldDeclarations", "[", "i", "]", ";", "switch", "(", "fieldDecl", ".", "getKind", "(", ")", ")", "{", "case", "AbstractVariableDeclaration", ".", "ENUM_CONSTANT", ":", "break", ";", "case", "AbstractVariableDeclaration", ".", "INITIALIZER", ":", "if", "(", "!", "fieldDecl", ".", "isStatic", "(", ")", ")", "{", "break", ";", "}", "remainingFieldCount", "--", ";", "lastInitializerScope", "=", "(", "(", "Initializer", ")", "fieldDecl", ")", ".", "block", ".", "scope", ";", "fieldDecl", ".", "generateCode", "(", "staticInitializerScope", ",", "codeStream", ")", ";", "break", ";", "case", "AbstractVariableDeclaration", ".", "FIELD", ":", "if", "(", "!", "fieldDecl", ".", "binding", ".", "isStatic", "(", ")", ")", "{", "break", ";", "}", "remainingFieldCount", "--", ";", "lastInitializerScope", "=", "null", ";", "fieldDecl", ".", "generateCode", "(", "staticInitializerScope", ",", "codeStream", ")", ";", "break", ";", "}", "}", "}", "}", "else", "{", "if", "(", "fieldDeclarations", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "fieldDeclarations", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "FieldDeclaration", "fieldDecl", "=", "fieldDeclarations", "[", "i", "]", ";", "switch", "(", "fieldDecl", ".", "getKind", "(", ")", ")", "{", "case", "AbstractVariableDeclaration", ".", "INITIALIZER", ":", "if", "(", "!", "fieldDecl", ".", "isStatic", "(", ")", ")", "break", ";", "lastInitializerScope", "=", "(", "(", "Initializer", ")", "fieldDecl", ")", ".", "block", ".", "scope", ";", "fieldDecl", ".", "generateCode", "(", "staticInitializerScope", ",", "codeStream", ")", ";", "break", ";", "case", "AbstractVariableDeclaration", ".", "FIELD", ":", "if", "(", "!", "fieldDecl", ".", "binding", ".", "isStatic", "(", ")", ")", "break", ";", "lastInitializerScope", "=", "null", ";", "fieldDecl", ".", "generateCode", "(", "staticInitializerScope", ",", "codeStream", ")", ";", "break", ";", "}", "}", "}", "}", "if", "(", "codeStream", ".", "position", "==", "0", ")", "{", "classFile", ".", "contentsOffset", "=", "clinitOffset", ";", "classFile", ".", "methodCount", "--", ";", "constantPool", ".", "resetForClinit", "(", "constantPoolIndex", ",", "constantPoolOffset", ")", ";", "}", "else", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "NeedFreeReturn", ")", "!=", "0", ")", "{", "int", "before", "=", "codeStream", ".", "position", ";", "codeStream", ".", "return_", "(", ")", ";", "if", "(", "lastInitializerScope", "!=", "null", ")", "{", "codeStream", ".", "updateLastRecordedEndPC", "(", "lastInitializerScope", ",", "before", ")", ";", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "0", ",", "declaringType", ".", "sourceStart", ")", ";", "classFile", ".", "completeCodeAttributeForClinit", "(", "codeAttributeOffset", ")", ";", "}", "}", "public", "boolean", "isClinit", "(", ")", "{", "return", "true", ";", "}", "public", "boolean", "isInitializationMethod", "(", ")", "{", "return", "true", ";", "}", "public", "boolean", "isStatic", "(", ")", "{", "return", "true", ";", "}", "public", "void", "parseStatements", "(", "Parser", "parser", ",", "CompilationUnitDeclaration", "unit", ")", "{", "}", "public", "StringBuffer", "print", "(", "int", "tab", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "tab", ",", "output", ")", ".", "append", "(", "\"<clinit>()\"", ")", ";", "printBody", "(", "tab", "+", "1", ",", "output", ")", ";", "return", "output", ";", "}", "public", "void", "resolve", "(", "ClassScope", "classScope", ")", "{", "this", ".", "scope", "=", "new", "MethodScope", "(", "classScope", ",", "classScope", ".", "referenceContext", ",", "true", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "classScope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "classScope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "classScope", ")", ";", "}", "public", "void", "setAssertionSupport", "(", "FieldBinding", "assertionSyntheticFieldBinding", ",", "boolean", "needClassLiteralField", ")", "{", "this", ".", "assertionSyntheticFieldBinding", "=", "assertionSyntheticFieldBinding", ";", "if", "(", "needClassLiteralField", ")", "{", "SourceTypeBinding", "sourceType", "=", "this", ".", "scope", ".", "outerMostClassScope", "(", ")", ".", "enclosingSourceType", "(", ")", ";", "if", "(", "!", "sourceType", ".", "isInterface", "(", ")", "&&", "!", "sourceType", ".", "isBaseType", "(", ")", ")", "{", "this", ".", "classLiteralSyntheticField", "=", "sourceType", ".", "addSyntheticFieldForClassLiteral", "(", "sourceType", ",", "this", ".", "scope", ")", ";", "}", "}", "}", "}", "</s>" ]
4,209
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ClassFile", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "CompilationResult", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ClassScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "Parser", ";", "public", "class", "AnnotationMethodDeclaration", "extends", "MethodDeclaration", "{", "public", "Expression", "defaultValue", ";", "public", "int", "extendedDimensions", ";", "public", "AnnotationMethodDeclaration", "(", "CompilationResult", "compilationResult", ")", "{", "super", "(", "compilationResult", ")", ";", "}", "public", "void", "generateCode", "(", "ClassFile", "classFile", ")", "{", "classFile", ".", "generateMethodInfoHeader", "(", "this", ".", "binding", ")", ";", "int", "methodAttributeOffset", "=", "classFile", ".", "contentsOffset", ";", "int", "attributeNumber", "=", "classFile", ".", "generateMethodInfoAttributes", "(", "this", ".", "binding", ",", "this", ")", ";", "classFile", ".", "completeMethodInfo", "(", "this", ".", "binding", ",", "methodAttributeOffset", ",", "attributeNumber", ")", ";", "}", "public", "boolean", "isAnnotationMethod", "(", ")", "{", "return", "true", ";", "}", "public", "boolean", "isMethod", "(", ")", "{", "return", "false", ";", "}", "public", "void", "parseStatements", "(", "Parser", "parser", ",", "CompilationUnitDeclaration", "unit", ")", "{", "}", "public", "StringBuffer", "print", "(", "int", "tab", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "tab", ",", "output", ")", ";", "printModifiers", "(", "this", ".", "modifiers", ",", "output", ")", ";", "if", "(", "this", ".", "annotations", "!=", "null", ")", "printAnnotations", "(", "this", ".", "annotations", ",", "output", ")", ";", "TypeParameter", "[", "]", "typeParams", "=", "typeParameters", "(", ")", ";", "if", "(", "typeParams", "!=", "null", ")", "{", "output", ".", "append", "(", "'<'", ")", ";", "int", "max", "=", "typeParams", ".", "length", "-", "1", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "max", ";", "j", "++", ")", "{", "typeParams", "[", "j", "]", ".", "print", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "\",", "\"", ")", ";", "}", "typeParams", "[", "max", "]", ".", "print", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "'>'", ")", ";", "}", "printReturnType", "(", "0", ",", "output", ")", ".", "append", "(", "this", ".", "selector", ")", ".", "append", "(", "'('", ")", ";", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "arguments", ".", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "output", ".", "append", "(", "\",", "\"", ")", ";", "this", ".", "arguments", "[", "i", "]", ".", "print", "(", "0", ",", "output", ")", ";", "}", "}", "output", ".", "append", "(", "')'", ")", ";", "if", "(", "this", ".", "thrownExceptions", "!=", "null", ")", "{", "output", ".", "append", "(", "\"", "throws", "\"", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "thrownExceptions", ".", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "output", ".", "append", "(", "\",", "\"", ")", ";", "this", ".", "thrownExceptions", "[", "i", "]", ".", "print", "(", "0", ",", "output", ")", ";", "}", "}", "if", "(", "this", ".", "defaultValue", "!=", "null", ")", "{", "output", ".", "append", "(", "\"", "default", "\"", ")", ";", "this", ".", "defaultValue", ".", "print", "(", "0", ",", "output", ")", ";", "}", "printBody", "(", "tab", "+", "1", ",", "output", ")", ";", "return", "output", ";", "}", "public", "void", "resolveStatements", "(", ")", "{", "super", ".", "resolveStatements", "(", ")", ";", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "annotationMembersCannotHaveParameters", "(", "this", ")", ";", "}", "if", "(", "this", ".", "typeParameters", "!=", "null", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "annotationMembersCannotHaveTypeParameters", "(", "this", ")", ";", "}", "if", "(", "this", ".", "extendedDimensions", "!=", "0", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "illegalExtendedDimensions", "(", "this", ")", ";", "}", "if", "(", "this", ".", "binding", "==", "null", ")", "return", ";", "TypeBinding", "returnTypeBinding", "=", "this", ".", "binding", ".", "returnType", ";", "if", "(", "returnTypeBinding", "!=", "null", ")", "{", "checkAnnotationMethodType", ":", "{", "TypeBinding", "leafReturnType", "=", "returnTypeBinding", ".", "leafComponentType", "(", ")", ";", "if", "(", "returnTypeBinding", ".", "dimensions", "(", ")", "<=", "1", ")", "{", "switch", "(", "leafReturnType", ".", "erasure", "(", ")", ".", "id", ")", "{", "case", "T_byte", ":", "case", "T_short", ":", "case", "T_char", ":", "case", "T_int", ":", "case", "T_long", ":", "case", "T_float", ":", "case", "T_double", ":", "case", "T_boolean", ":", "case", "T_JavaLangString", ":", "case", "T_JavaLangClass", ":", "break", "checkAnnotationMethodType", ";", "}", "if", "(", "leafReturnType", ".", "isEnum", "(", ")", "||", "leafReturnType", ".", "isAnnotationType", "(", ")", ")", "break", "checkAnnotationMethodType", ";", "}", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "invalidAnnotationMemberType", "(", "this", ")", ";", "}", "if", "(", "this", ".", "defaultValue", "!=", "null", ")", "{", "MemberValuePair", "pair", "=", "new", "MemberValuePair", "(", "this", ".", "selector", ",", "this", ".", "sourceStart", ",", "this", ".", "sourceEnd", ",", "this", ".", "defaultValue", ")", ";", "pair", ".", "binding", "=", "this", ".", "binding", ";", "pair", ".", "resolveTypeExpecting", "(", "this", ".", "scope", ",", "returnTypeBinding", ")", ";", "this", ".", "binding", ".", "setDefaultValue", "(", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ElementValuePair", ".", "getValue", "(", "this", ".", "defaultValue", ")", ")", ";", "}", "else", "{", "this", ".", "binding", ".", "setDefaultValue", "(", "null", ")", ";", "}", "}", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "classScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "classScope", ")", ")", "{", "if", "(", "this", ".", "annotations", "!=", "null", ")", "{", "int", "annotationsLength", "=", "this", ".", "annotations", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "annotationsLength", ";", "i", "++", ")", "this", ".", "annotations", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "returnType", "!=", "null", ")", "{", "this", ".", "returnType", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "if", "(", "this", ".", "defaultValue", "!=", "null", ")", "{", "this", ".", "defaultValue", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "classScope", ")", ";", "}", "}", "</s>" ]
4,210
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "StringConstant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "public", "class", "StringLiteral", "extends", "Literal", "{", "char", "[", "]", "source", ";", "int", "lineNumber", ";", "public", "StringLiteral", "(", "char", "[", "]", "token", ",", "int", "start", ",", "int", "end", ",", "int", "lineNumber", ")", "{", "this", "(", "start", ",", "end", ")", ";", "this", ".", "source", "=", "token", ";", "this", ".", "lineNumber", "=", "lineNumber", "-", "1", ";", "}", "public", "StringLiteral", "(", "int", "s", ",", "int", "e", ")", "{", "super", "(", "s", ",", "e", ")", ";", "}", "public", "void", "computeConstant", "(", ")", "{", "this", ".", "constant", "=", "StringConstant", ".", "fromValue", "(", "String", ".", "valueOf", "(", "this", ".", "source", ")", ")", ";", "}", "public", "ExtendedStringLiteral", "extendWith", "(", "CharLiteral", "lit", ")", "{", "return", "new", "ExtendedStringLiteral", "(", "this", ",", "lit", ")", ";", "}", "public", "ExtendedStringLiteral", "extendWith", "(", "StringLiteral", "lit", ")", "{", "return", "new", "ExtendedStringLiteral", "(", "this", ",", "lit", ")", ";", "}", "public", "StringLiteralConcatenation", "extendsWith", "(", "StringLiteral", "lit", ")", "{", "return", "new", "StringLiteralConcatenation", "(", "this", ",", "lit", ")", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "ldc", "(", "this", ".", "constant", ".", "stringValue", "(", ")", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "TypeBinding", "literalType", "(", "BlockScope", "scope", ")", "{", "return", "scope", ".", "getJavaLangString", "(", ")", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "output", ".", "append", "(", "'\\\"'", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "source", ".", "length", ";", "i", "++", ")", "{", "switch", "(", "this", ".", "source", "[", "i", "]", ")", "{", "case", "'\\b'", ":", "output", ".", "append", "(", "\"\\\\b\"", ")", ";", "break", ";", "case", "'\\t'", ":", "output", ".", "append", "(", "\"\\\\t\"", ")", ";", "break", ";", "case", "'\\n'", ":", "output", ".", "append", "(", "\"\\\\n\"", ")", ";", "break", ";", "case", "'\\f'", ":", "output", ".", "append", "(", "\"\\\\f\"", ")", ";", "break", ";", "case", "'\\r'", ":", "output", ".", "append", "(", "\"\\\\r\"", ")", ";", "break", ";", "case", "'\\\"'", ":", "output", ".", "append", "(", "\"\\\\\\\"\"", ")", ";", "break", ";", "case", "'\\''", ":", "output", ".", "append", "(", "\"\\\\'\"", ")", ";", "break", ";", "case", "'\\\\'", ":", "output", ".", "append", "(", "\"\\\\\\\\\"", ")", ";", "break", ";", "default", ":", "output", ".", "append", "(", "this", ".", "source", "[", "i", "]", ")", ";", "}", "}", "output", ".", "append", "(", "'\\\"'", ")", ";", "return", "output", ";", "}", "public", "char", "[", "]", "source", "(", ")", "{", "return", "this", ".", "source", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
4,211
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "InstanceOfExpression", "extends", "OperatorExpression", "{", "public", "Expression", "expression", ";", "public", "TypeReference", "type", ";", "public", "InstanceOfExpression", "(", "Expression", "expression", ",", "TypeReference", "type", ")", "{", "this", ".", "expression", "=", "expression", ";", "this", ".", "type", "=", "type", ";", "type", ".", "bits", "|=", "IgnoreRawTypeCheck", ";", "this", ".", "bits", "|=", "INSTANCEOF", "<<", "OperatorSHIFT", ";", "this", ".", "sourceStart", "=", "expression", ".", "sourceStart", ";", "this", ".", "sourceEnd", "=", "type", ".", "sourceEnd", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "LocalVariableBinding", "local", "=", "this", ".", "expression", ".", "localVariableBinding", "(", ")", ";", "if", "(", "local", "!=", "null", "&&", "(", "local", ".", "type", ".", "tagBits", "&", "TagBits", ".", "IsBaseType", ")", "==", "0", ")", "{", "flowInfo", "=", "this", ".", "expression", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "FlowInfo", "initsWhenTrue", "=", "flowInfo", ".", "copy", "(", ")", ";", "initsWhenTrue", ".", "markAsComparedEqualToNonNull", "(", "local", ")", ";", "if", "(", "(", "flowContext", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "!=", "0", ")", "{", "initsWhenTrue", ".", "markedAsNullOrNonNullInAssertExpression", "(", "local", ")", ";", "}", "flowContext", ".", "recordUsingNullReference", "(", "currentScope", ",", "local", ",", "this", ".", "expression", ",", "FlowContext", ".", "CAN_ONLY_NULL", "|", "FlowContext", ".", "IN_INSTANCEOF", ",", "flowInfo", ")", ";", "return", "FlowInfo", ".", "conditional", "(", "initsWhenTrue", ",", "flowInfo", ".", "copy", "(", ")", ")", ";", "}", "return", "this", ".", "expression", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "instance_of", "(", "this", ".", "type", ".", "resolvedType", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "codeStream", ".", "pop", "(", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "StringBuffer", "printExpressionNoParenthesis", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "this", ".", "expression", ".", "printExpression", "(", "indent", ",", "output", ")", ".", "append", "(", "\"", "instanceof", "\"", ")", ";", "return", "this", ".", "type", ".", "print", "(", "0", ",", "output", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "TypeBinding", "expressionType", "=", "this", ".", "expression", ".", "resolveType", "(", "scope", ")", ";", "TypeBinding", "checkedType", "=", "this", ".", "type", ".", "resolveType", "(", "scope", ",", "true", ")", ";", "if", "(", "expressionType", "==", "null", "||", "checkedType", "==", "null", ")", "return", "null", ";", "if", "(", "!", "checkedType", ".", "isReifiable", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "illegalInstanceOfGenericType", "(", "checkedType", ",", "this", ")", ";", "}", "else", "if", "(", "(", "expressionType", "!=", "TypeBinding", ".", "NULL", "&&", "expressionType", ".", "isBaseType", "(", ")", ")", "||", "!", "checkCastTypesCompatibility", "(", "scope", ",", "checkedType", ",", "expressionType", ",", "null", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "notCompatibleTypesError", "(", "this", ",", "expressionType", ",", "checkedType", ")", ";", "}", "return", "this", ".", "resolvedType", "=", "TypeBinding", ".", "BOOLEAN", ";", "}", "public", "void", "tagAsUnnecessaryCast", "(", "Scope", "scope", ",", "TypeBinding", "castType", ")", "{", "if", "(", "this", ".", "expression", ".", "resolvedType", "!=", "TypeBinding", ".", "NULL", ")", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryInstanceof", "(", "this", ",", "castType", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "this", ".", "expression", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "this", ".", "type", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
4,212
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "ParameterizedSingleTypeReference", "extends", "ArrayTypeReference", "{", "public", "TypeReference", "[", "]", "typeArguments", ";", "public", "ParameterizedSingleTypeReference", "(", "char", "[", "]", "name", ",", "TypeReference", "[", "]", "typeArguments", ",", "int", "dim", ",", "long", "pos", ")", "{", "super", "(", "name", ",", "dim", ",", "pos", ")", ";", "this", ".", "originalSourceEnd", "=", "this", ".", "sourceEnd", ";", "this", ".", "typeArguments", "=", "typeArguments", ";", "}", "public", "void", "checkBounds", "(", "Scope", "scope", ")", "{", "if", "(", "this", ".", "resolvedType", "==", "null", ")", "return", ";", "if", "(", "this", ".", "resolvedType", ".", "leafComponentType", "(", ")", "instanceof", "ParameterizedTypeBinding", ")", "{", "ParameterizedTypeBinding", "parameterizedType", "=", "(", "ParameterizedTypeBinding", ")", "this", ".", "resolvedType", ".", "leafComponentType", "(", ")", ";", "ReferenceBinding", "currentType", "=", "parameterizedType", ".", "genericType", "(", ")", ";", "TypeVariableBinding", "[", "]", "typeVariables", "=", "currentType", ".", "typeVariables", "(", ")", ";", "TypeBinding", "[", "]", "argTypes", "=", "parameterizedType", ".", "arguments", ";", "if", "(", "argTypes", "!=", "null", "&&", "typeVariables", "!=", "null", ")", "{", "parameterizedType", ".", "boundCheck", "(", "scope", ",", "this", ".", "typeArguments", ")", ";", "}", "}", "}", "public", "TypeReference", "copyDims", "(", "int", "dim", ")", "{", "return", "new", "ParameterizedSingleTypeReference", "(", "this", ".", "token", ",", "this", ".", "typeArguments", ",", "dim", ",", "(", "(", "(", "long", ")", "this", ".", "sourceStart", ")", "<<", "32", ")", "+", "this", ".", "sourceEnd", ")", ";", "}", "public", "char", "[", "]", "[", "]", "getParameterizedTypeName", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "5", ")", ";", "buffer", ".", "append", "(", "this", ".", "token", ")", ".", "append", "(", "'<'", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "typeArguments", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "buffer", ".", "append", "(", "','", ")", ";", "buffer", ".", "append", "(", "CharOperation", ".", "concatWith", "(", "this", ".", "typeArguments", "[", "i", "]", ".", "getParameterizedTypeName", "(", ")", ",", "'.'", ")", ")", ";", "}", "buffer", ".", "append", "(", "'>'", ")", ";", "int", "nameLength", "=", "buffer", ".", "length", "(", ")", ";", "char", "[", "]", "name", "=", "new", "char", "[", "nameLength", "]", ";", "buffer", ".", "getChars", "(", "0", ",", "nameLength", ",", "name", ",", "0", ")", ";", "int", "dim", "=", "this", ".", "dimensions", ";", "if", "(", "dim", ">", "0", ")", "{", "char", "[", "]", "dimChars", "=", "new", "char", "[", "dim", "*", "2", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "dim", ";", "i", "++", ")", "{", "int", "index", "=", "i", "*", "2", ";", "dimChars", "[", "index", "]", "=", "'['", ";", "dimChars", "[", "index", "+", "1", "]", "=", "']'", ";", "}", "name", "=", "CharOperation", ".", "concat", "(", "name", ",", "dimChars", ")", ";", "}", "return", "new", "char", "[", "]", "[", "]", "{", "name", "}", ";", "}", "protected", "TypeBinding", "getTypeBinding", "(", "Scope", "scope", ")", "{", "return", "null", ";", "}", "private", "TypeBinding", "internalResolveType", "(", "Scope", "scope", ",", "ReferenceBinding", "enclosingType", ",", "boolean", "checkBounds", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DidResolve", ")", "!=", "0", ")", "{", "if", "(", "this", ".", "resolvedType", "!=", "null", ")", "{", "if", "(", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "return", "this", ".", "resolvedType", ";", "}", "else", "{", "switch", "(", "this", ".", "resolvedType", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "case", "ProblemReasons", ".", "NotVisible", ":", "case", "ProblemReasons", ".", "InheritedNameHidesEnclosingName", ":", "TypeBinding", "type", "=", "this", ".", "resolvedType", ".", "closestMatch", "(", ")", ";", "return", "type", ";", "default", ":", "return", "null", ";", "}", "}", "}", "}", "this", ".", "bits", "|=", "ASTNode", ".", "DidResolve", ";", "TypeBinding", "type", "=", "internalResolveLeafType", "(", "scope", ",", "enclosingType", ",", "checkBounds", ")", ";", "if", "(", "type", "==", "null", ")", "{", "this", ".", "resolvedType", "=", "createArrayType", "(", "scope", ",", "this", ".", "resolvedType", ")", ";", "return", "null", ";", "}", "else", "{", "type", "=", "createArrayType", "(", "scope", ",", "type", ")", ";", "if", "(", "!", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "return", "type", ";", "else", "return", "this", ".", "resolvedType", "=", "type", ";", "}", "}", "private", "TypeBinding", "internalResolveLeafType", "(", "Scope", "scope", ",", "ReferenceBinding", "enclosingType", ",", "boolean", "checkBounds", ")", "{", "ReferenceBinding", "currentType", ";", "if", "(", "enclosingType", "==", "null", ")", "{", "this", ".", "resolvedType", "=", "scope", ".", "getType", "(", "this", ".", "token", ")", ";", "if", "(", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "currentType", "=", "(", "ReferenceBinding", ")", "this", ".", "resolvedType", ";", "}", "else", "{", "reportInvalidType", "(", "scope", ")", ";", "switch", "(", "this", ".", "resolvedType", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "case", "ProblemReasons", ".", "NotVisible", ":", "case", "ProblemReasons", ".", "InheritedNameHidesEnclosingName", ":", "TypeBinding", "type", "=", "this", ".", "resolvedType", ".", "closestMatch", "(", ")", ";", "if", "(", "type", "instanceof", "ReferenceBinding", ")", "{", "currentType", "=", "(", "ReferenceBinding", ")", "type", ";", "break", ";", "}", "default", ":", "boolean", "isClassScope", "=", "scope", ".", "kind", "==", "Scope", ".", "CLASS_SCOPE", ";", "int", "argLength", "=", "this", ".", "typeArguments", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "argLength", ";", "i", "++", ")", "{", "TypeReference", "typeArgument", "=", "this", ".", "typeArguments", "[", "i", "]", ";", "if", "(", "isClassScope", ")", "{", "typeArgument", ".", "resolveType", "(", "(", "ClassScope", ")", "scope", ")", ";", "}", "else", "{", "typeArgument", ".", "resolveType", "(", "(", "BlockScope", ")", "scope", ",", "checkBounds", ")", ";", "}", "}", "return", "null", ";", "}", "}", "enclosingType", "=", "currentType", ".", "enclosingType", "(", ")", ";", "if", "(", "enclosingType", "!=", "null", ")", "{", "enclosingType", "=", "currentType", ".", "isStatic", "(", ")", "?", "(", "ReferenceBinding", ")", "scope", ".", "environment", "(", ")", ".", "convertToRawType", "(", "enclosingType", ",", "false", ")", ":", "scope", ".", "environment", "(", ")", ".", "convertToParameterizedType", "(", "enclosingType", ")", ";", "currentType", "=", "scope", ".", "environment", "(", ")", ".", "createParameterizedType", "(", "(", "ReferenceBinding", ")", "currentType", ".", "erasure", "(", ")", ",", "null", ",", "enclosingType", ")", ";", "}", "}", "else", "{", "this", ".", "resolvedType", "=", "currentType", "=", "scope", ".", "getMemberType", "(", "this", ".", "token", ",", "enclosingType", ")", ";", "if", "(", "!", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "invalidEnclosingType", "(", "this", ",", "currentType", ",", "enclosingType", ")", ";", "return", "null", ";", "}", "if", "(", "isTypeUseDeprecated", "(", "currentType", ",", "scope", ")", ")", "scope", ".", "problemReporter", "(", ")", ".", "deprecatedType", "(", "currentType", ",", "this", ")", ";", "ReferenceBinding", "currentEnclosing", "=", "currentType", ".", "enclosingType", "(", ")", ";", "if", "(", "currentEnclosing", "!=", "null", "&&", "currentEnclosing", ".", "erasure", "(", ")", "!=", "enclosingType", ".", "erasure", "(", ")", ")", "{", "enclosingType", "=", "currentEnclosing", ";", "}", "}", "boolean", "isClassScope", "=", "scope", ".", "kind", "==", "Scope", ".", "CLASS_SCOPE", ";", "TypeReference", "keep", "=", "null", ";", "if", "(", "isClassScope", ")", "{", "keep", "=", "(", "(", "ClassScope", ")", "scope", ")", ".", "superTypeReference", ";", "(", "(", "ClassScope", ")", "scope", ")", ".", "superTypeReference", "=", "null", ";", "}", "int", "argLength", "=", "this", ".", "typeArguments", ".", "length", ";", "TypeBinding", "[", "]", "argTypes", "=", "new", "TypeBinding", "[", "argLength", "]", ";", "boolean", "argHasError", "=", "false", ";", "ReferenceBinding", "currentOriginal", "=", "(", "ReferenceBinding", ")", "currentType", ".", "original", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "argLength", ";", "i", "++", ")", "{", "TypeReference", "typeArgument", "=", "this", ".", "typeArguments", "[", "i", "]", ";", "TypeBinding", "argType", "=", "isClassScope", "?", "typeArgument", ".", "resolveTypeArgument", "(", "(", "ClassScope", ")", "scope", ",", "currentOriginal", ",", "i", ")", ":", "typeArgument", ".", "resolveTypeArgument", "(", "(", "BlockScope", ")", "scope", ",", "currentOriginal", ",", "i", ")", ";", "if", "(", "argType", "==", "null", ")", "{", "argHasError", "=", "true", ";", "}", "else", "{", "argTypes", "[", "i", "]", "=", "argType", ";", "}", "}", "if", "(", "argHasError", ")", "{", "return", "null", ";", "}", "if", "(", "isClassScope", ")", "{", "(", "(", "ClassScope", ")", "scope", ")", ".", "superTypeReference", "=", "keep", ";", "if", "(", "(", "(", "ClassScope", ")", "scope", ")", ".", "detectHierarchyCycle", "(", "currentOriginal", ",", "this", ")", ")", "return", "null", ";", "}", "final", "boolean", "isDiamond", "=", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsDiamond", ")", "!=", "0", ";", "TypeVariableBinding", "[", "]", "typeVariables", "=", "currentOriginal", ".", "typeVariables", "(", ")", ";", "if", "(", "typeVariables", "==", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "boolean", "isCompliant15", "=", "scope", ".", "compilerOptions", "(", ")", ".", "originalSourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "if", "(", "(", "currentOriginal", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "==", "0", ")", "{", "if", "(", "isCompliant15", ")", "{", "this", ".", "resolvedType", "=", "currentType", ";", "scope", ".", "problemReporter", "(", ")", ".", "nonGenericTypeCannotBeParameterized", "(", "0", ",", "this", ",", "currentType", ",", "argTypes", ")", ";", "return", "null", ";", "}", "}", "if", "(", "!", "isCompliant15", ")", "{", "if", "(", "!", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "return", "currentType", ";", "return", "this", ".", "resolvedType", "=", "currentType", ";", "}", "}", "else", "if", "(", "argLength", "!=", "typeVariables", ".", "length", ")", "{", "if", "(", "!", "isDiamond", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "incorrectArityForParameterizedType", "(", "this", ",", "currentType", ",", "argTypes", ")", ";", "return", "null", ";", "}", "}", "else", "if", "(", "!", "currentType", ".", "isStatic", "(", ")", ")", "{", "ReferenceBinding", "actualEnclosing", "=", "currentType", ".", "enclosingType", "(", ")", ";", "if", "(", "actualEnclosing", "!=", "null", "&&", "actualEnclosing", ".", "isRawType", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "rawMemberTypeCannotBeParameterized", "(", "this", ",", "scope", ".", "environment", "(", ")", ".", "createRawType", "(", "currentOriginal", ",", "actualEnclosing", ")", ",", "argTypes", ")", ";", "return", "null", ";", "}", "}", "ParameterizedTypeBinding", "parameterizedType", "=", "scope", ".", "environment", "(", ")", ".", "createParameterizedType", "(", "currentOriginal", ",", "argTypes", ",", "enclosingType", ")", ";", "if", "(", "!", "isDiamond", ")", "{", "if", "(", "checkBounds", ")", "parameterizedType", ".", "boundCheck", "(", "scope", ",", "this", ".", "typeArguments", ")", ";", "else", "scope", ".", "deferBoundCheck", "(", "this", ")", ";", "}", "if", "(", "isTypeUseDeprecated", "(", "parameterizedType", ",", "scope", ")", ")", "reportDeprecatedType", "(", "parameterizedType", ",", "scope", ")", ";", "if", "(", "!", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "return", "parameterizedType", ";", "}", "return", "this", ".", "resolvedType", "=", "parameterizedType", ";", "}", "private", "TypeBinding", "createArrayType", "(", "Scope", "scope", ",", "TypeBinding", "type", ")", "{", "if", "(", "this", ".", "dimensions", ">", "0", ")", "{", "if", "(", "this", ".", "dimensions", ">", "255", ")", "scope", ".", "problemReporter", "(", ")", ".", "tooManyDimensions", "(", "this", ")", ";", "return", "scope", ".", "createArrayType", "(", "type", ",", "this", ".", "dimensions", ")", ";", "}", "return", "type", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "output", ".", "append", "(", "this", ".", "token", ")", ";", "output", ".", "append", "(", "\"<\"", ")", ";", "int", "length", "=", "this", ".", "typeArguments", ".", "length", ";", "if", "(", "length", ">", "0", ")", "{", "int", "max", "=", "length", "-", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "max", ";", "i", "++", ")", "{", "this", ".", "typeArguments", "[", "i", "]", ".", "print", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "\",", "\"", ")", ";", "}", "this", ".", "typeArguments", "[", "max", "]", ".", "print", "(", "0", ",", "output", ")", ";", "}", "output", ".", "append", "(", "\">\"", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "IsVarArgs", ")", "!=", "0", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "dimensions", "-", "1", ";", "i", "++", ")", "{", "output", ".", "append", "(", "\"[]\"", ")", ";", "}", "output", ".", "append", "(", "\"...\"", ")", ";", "}", "else", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "dimensions", ";", "i", "++", ")", "{", "output", ".", "append", "(", "\"[]\"", ")", ";", "}", "}", "return", "output", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ",", "boolean", "checkBounds", ")", "{", "return", "internalResolveType", "(", "scope", ",", "null", ",", "checkBounds", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "ClassScope", "scope", ")", "{", "return", "internalResolveType", "(", "scope", ",", "null", ",", "false", ")", ";", "}", "public", "TypeBinding", "resolveTypeEnclosing", "(", "BlockScope", "scope", ",", "ReferenceBinding", "enclosingType", ")", "{", "return", "internalResolveType", "(", "scope", ",", "enclosingType", ",", "true", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "typeArguments", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "this", ".", "typeArguments", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "typeArguments", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "this", ".", "typeArguments", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
4,213
[ "<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", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "LongConstant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "ScannerHelper", ";", "public", "class", "LongLiteral", "extends", "NumberLiteral", "{", "private", "static", "final", "char", "[", "]", "HEXA_MIN_VALUE", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "private", "static", "final", "char", "[", "]", "HEXA_MINUS_ONE_VALUE", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "private", "static", "final", "char", "[", "]", "OCTAL_MIN_VALUE", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "private", "static", "final", "char", "[", "]", "OCTAL_MINUS_ONE_VALUE", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "private", "static", "final", "char", "[", "]", "DECIMAL_MIN_VALUE", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "private", "static", "final", "char", "[", "]", "DECIMAL_MAX_VALUE", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "private", "char", "[", "]", "reducedForm", ";", "public", "static", "LongLiteral", "buildLongLiteral", "(", "char", "[", "]", "token", ",", "int", "s", ",", "int", "e", ")", "{", "char", "[", "]", "longReducedToken", "=", "removePrefixZerosAndUnderscores", "(", "token", ",", "true", ")", ";", "return", "new", "LongLiteral", "(", "token", ",", "longReducedToken", "!=", "token", "?", "longReducedToken", ":", "null", ",", "s", ",", "e", ")", ";", "}", "LongLiteral", "(", "char", "[", "]", "token", ",", "char", "[", "]", "reducedForm", ",", "int", "start", ",", "int", "end", ")", "{", "super", "(", "token", ",", "start", ",", "end", ")", ";", "this", ".", "reducedForm", "=", "reducedForm", ";", "}", "public", "LongLiteral", "convertToMinValue", "(", ")", "{", "if", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "ParenthesizedMASK", ")", ">>", "ASTNode", ".", "ParenthesizedSHIFT", ")", "!=", "0", ")", "{", "return", "this", ";", "}", "char", "[", "]", "token", "=", "this", ".", "reducedForm", "!=", "null", "?", "this", ".", "reducedForm", ":", "this", ".", "source", ";", "switch", "(", "token", ".", "length", ")", "{", "case", "20", ":", "if", "(", "CharOperation", ".", "equals", "(", "token", ",", "DECIMAL_MIN_VALUE", ",", "false", ")", ")", "{", "return", "new", "LongLiteralMinValue", "(", "this", ".", "source", ",", "this", ".", "reducedForm", ",", "this", ".", "sourceStart", ",", "this", ".", "sourceEnd", ")", ";", "}", "break", ";", "}", "return", "this", ";", "}", "public", "void", "computeConstant", "(", ")", "{", "char", "[", "]", "token", "=", "this", ".", "reducedForm", "!=", "null", "?", "this", ".", "reducedForm", ":", "this", ".", "source", ";", "int", "tokenLength", "=", "token", ".", "length", ";", "int", "length", "=", "tokenLength", "-", "1", ";", "int", "radix", "=", "10", ";", "int", "j", "=", "0", ";", "if", "(", "token", "[", "0", "]", "==", "'0'", ")", "{", "if", "(", "length", "==", "1", ")", "{", "this", ".", "constant", "=", "LongConstant", ".", "fromValue", "(", "0L", ")", ";", "return", ";", "}", "if", "(", "(", "token", "[", "1", "]", "==", "'x'", ")", "||", "(", "token", "[", "1", "]", "==", "'X'", ")", ")", "{", "radix", "=", "16", ";", "j", "=", "2", ";", "}", "else", "if", "(", "(", "token", "[", "1", "]", "==", "'b'", ")", "||", "(", "token", "[", "1", "]", "==", "'B'", ")", ")", "{", "radix", "=", "2", ";", "j", "=", "2", ";", "}", "else", "{", "radix", "=", "8", ";", "j", "=", "1", ";", "}", "}", "switch", "(", "radix", ")", "{", "case", "2", ":", "if", "(", "(", "length", "-", "2", ")", ">", "64", ")", "{", "return", ";", "}", "computeValue", "(", "token", ",", "length", ",", "radix", ",", "j", ")", ";", "break", ";", "case", "16", ":", "if", "(", "tokenLength", "<=", "19", ")", "{", "if", "(", "CharOperation", ".", "equals", "(", "token", ",", "HEXA_MINUS_ONE_VALUE", ")", ")", "{", "this", ".", "constant", "=", "LongConstant", ".", "fromValue", "(", "-", "1L", ")", ";", "return", ";", "}", "computeValue", "(", "token", ",", "length", ",", "radix", ",", "j", ")", ";", "}", "break", ";", "case", "10", ":", "if", "(", "tokenLength", ">", "DECIMAL_MAX_VALUE", ".", "length", "||", "(", "tokenLength", "==", "DECIMAL_MAX_VALUE", ".", "length", "&&", "CharOperation", ".", "compareTo", "(", "token", ",", "DECIMAL_MAX_VALUE", ",", "0", ",", "length", ")", ">", "0", ")", ")", "{", "return", ";", "}", "computeValue", "(", "token", ",", "length", ",", "radix", ",", "j", ")", ";", "break", ";", "case", "8", ":", "if", "(", "tokenLength", "<=", "24", ")", "{", "if", "(", "tokenLength", "==", "24", "&&", "token", "[", "j", "]", ">", "'1'", ")", "{", "return", ";", "}", "if", "(", "CharOperation", ".", "equals", "(", "token", ",", "OCTAL_MINUS_ONE_VALUE", ")", ")", "{", "this", ".", "constant", "=", "LongConstant", ".", "fromValue", "(", "-", "1L", ")", ";", "return", ";", "}", "computeValue", "(", "token", ",", "length", ",", "radix", ",", "j", ")", ";", "}", "break", ";", "}", "}", "private", "void", "computeValue", "(", "char", "[", "]", "token", ",", "int", "tokenLength", ",", "int", "radix", ",", "int", "j", ")", "{", "int", "digitValue", ";", "long", "computedValue", "=", "0", ";", "while", "(", "j", "<", "tokenLength", ")", "{", "if", "(", "(", "digitValue", "=", "ScannerHelper", ".", "digit", "(", "token", "[", "j", "++", "]", ",", "radix", ")", ")", "<", "0", ")", "{", "return", ";", "}", "computedValue", "=", "(", "computedValue", "*", "radix", ")", "+", "digitValue", ";", "}", "this", ".", "constant", "=", "LongConstant", ".", "fromValue", "(", "computedValue", ")", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "TypeBinding", "literalType", "(", "BlockScope", "scope", ")", "{", "return", "TypeBinding", ".", "LONG", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
4,214
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ArrayBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "public", "class", "ArrayReference", "extends", "Reference", "{", "public", "Expression", "receiver", ";", "public", "Expression", "position", ";", "public", "ArrayReference", "(", "Expression", "rec", ",", "Expression", "pos", ")", "{", "this", ".", "receiver", "=", "rec", ";", "this", ".", "position", "=", "pos", ";", "this", ".", "sourceStart", "=", "rec", ".", "sourceStart", ";", "}", "public", "FlowInfo", "analyseAssignment", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ",", "Assignment", "assignment", ",", "boolean", "compoundAssignment", ")", "{", "if", "(", "assignment", ".", "expression", "==", "null", ")", "{", "return", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "return", "assignment", ".", "expression", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ")", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "this", ".", "receiver", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "flowInfo", "=", "this", ".", "receiver", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "return", "this", ".", "position", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "public", "void", "generateAssignment", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "Assignment", "assignment", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "receiver", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "if", "(", "this", ".", "receiver", "instanceof", "CastExpression", "&&", "(", "(", "CastExpression", ")", "this", ".", "receiver", ")", ".", "innermostCastedExpression", "(", ")", ".", "resolvedType", "==", "TypeBinding", ".", "NULL", ")", "{", "codeStream", ".", "checkcast", "(", "this", ".", "receiver", ".", "resolvedType", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "this", ".", "position", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "assignment", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "arrayAtPut", "(", "this", ".", "resolvedType", ".", "id", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "assignment", ".", "implicitConversion", ")", ";", "}", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "receiver", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "if", "(", "this", ".", "receiver", "instanceof", "CastExpression", "&&", "(", "(", "CastExpression", ")", "this", ".", "receiver", ")", ".", "innermostCastedExpression", "(", ")", ".", "resolvedType", "==", "TypeBinding", ".", "NULL", ")", "{", "codeStream", ".", "checkcast", "(", "this", ".", "receiver", ".", "resolvedType", ")", ";", "}", "this", ".", "position", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "arrayAt", "(", "this", ".", "resolvedType", ".", "id", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "boolean", "isUnboxing", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ";", "if", "(", "isUnboxing", ")", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "switch", "(", "isUnboxing", "?", "postConversionType", "(", "currentScope", ")", ".", "id", ":", "this", ".", "resolvedType", ".", "id", ")", "{", "case", "T_long", ":", "case", "T_double", ":", "codeStream", ".", "pop2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "pop", "(", ")", ";", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "void", "generateCompoundAssignment", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "Expression", "expression", ",", "int", "operator", ",", "int", "assignmentImplicitConversion", ",", "boolean", "valueRequired", ")", "{", "this", ".", "receiver", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "if", "(", "this", ".", "receiver", "instanceof", "CastExpression", "&&", "(", "(", "CastExpression", ")", "this", ".", "receiver", ")", ".", "innermostCastedExpression", "(", ")", ".", "resolvedType", "==", "TypeBinding", ".", "NULL", ")", "{", "codeStream", ".", "checkcast", "(", "this", ".", "receiver", ".", "resolvedType", ")", ";", "}", "this", ".", "position", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "dup2", "(", ")", ";", "codeStream", ".", "arrayAt", "(", "this", ".", "resolvedType", ".", "id", ")", ";", "int", "operationTypeID", ";", "switch", "(", "operationTypeID", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ")", "{", "case", "T_JavaLangString", ":", "case", "T_JavaLangObject", ":", "case", "T_undefined", ":", "codeStream", ".", "generateStringConcatenationAppend", "(", "currentScope", ",", "null", ",", "expression", ")", ";", "break", ";", "default", ":", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "if", "(", "expression", "==", "IntLiteral", ".", "One", ")", "{", "codeStream", ".", "generateConstant", "(", "expression", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "}", "codeStream", ".", "sendOperator", "(", "operator", ",", "operationTypeID", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "assignmentImplicitConversion", ")", ";", "}", "codeStream", ".", "arrayAtPut", "(", "this", ".", "resolvedType", ".", "id", ",", "valueRequired", ")", ";", "}", "public", "void", "generatePostIncrement", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "CompoundAssignment", "postIncrement", ",", "boolean", "valueRequired", ")", "{", "this", ".", "receiver", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "if", "(", "this", ".", "receiver", "instanceof", "CastExpression", "&&", "(", "(", "CastExpression", ")", "this", ".", "receiver", ")", ".", "innermostCastedExpression", "(", ")", ".", "resolvedType", "==", "TypeBinding", ".", "NULL", ")", "{", "codeStream", ".", "checkcast", "(", "this", ".", "receiver", ".", "resolvedType", ")", ";", "}", "this", ".", "position", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "dup2", "(", ")", ";", "codeStream", ".", "arrayAt", "(", "this", ".", "resolvedType", ".", "id", ")", ";", "if", "(", "valueRequired", ")", "{", "switch", "(", "this", ".", "resolvedType", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "codeStream", ".", "dup2_x2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "dup_x2", "(", ")", ";", "break", ";", "}", "}", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "generateConstant", "(", "postIncrement", ".", "expression", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "sendOperator", "(", "postIncrement", ".", "operator", ",", "this", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "postIncrement", ".", "preAssignImplicitConversion", ")", ";", "codeStream", ".", "arrayAtPut", "(", "this", ".", "resolvedType", ".", "id", ",", "false", ")", ";", "}", "public", "int", "nullStatus", "(", "FlowInfo", "flowInfo", ")", "{", "return", "FlowInfo", ".", "UNKNOWN", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "this", ".", "receiver", ".", "printExpression", "(", "0", ",", "output", ")", ".", "append", "(", "'['", ")", ";", "return", "this", ".", "position", ".", "printExpression", "(", "0", ",", "output", ")", ".", "append", "(", "']'", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "this", ".", "receiver", "instanceof", "CastExpression", "&&", "(", "(", "CastExpression", ")", "this", ".", "receiver", ")", ".", "innermostCastedExpression", "(", ")", "instanceof", "NullLiteral", ")", "{", "this", ".", "receiver", ".", "bits", "|=", "ASTNode", ".", "DisableUnnecessaryCastCheck", ";", "}", "TypeBinding", "arrayType", "=", "this", ".", "receiver", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "arrayType", "!=", "null", ")", "{", "this", ".", "receiver", ".", "computeConversion", "(", "scope", ",", "arrayType", ",", "arrayType", ")", ";", "if", "(", "arrayType", ".", "isArrayType", "(", ")", ")", "{", "TypeBinding", "elementType", "=", "(", "(", "ArrayBinding", ")", "arrayType", ")", ".", "elementsType", "(", ")", ";", "this", ".", "resolvedType", "=", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsStrictlyAssigned", ")", "==", "0", ")", "?", "elementType", ".", "capture", "(", "scope", ",", "this", ".", "sourceEnd", ")", ":", "elementType", ";", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "referenceMustBeArrayTypeAt", "(", "arrayType", ",", "this", ")", ";", "}", "}", "TypeBinding", "positionType", "=", "this", ".", "position", ".", "resolveTypeExpecting", "(", "scope", ",", "TypeBinding", ".", "INT", ")", ";", "if", "(", "positionType", "!=", "null", ")", "{", "this", ".", "position", ".", "computeConversion", "(", "scope", ",", "TypeBinding", ".", "INT", ",", "positionType", ")", ";", "}", "return", "this", ".", "resolvedType", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "this", ".", "receiver", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "this", ".", "position", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
4,215
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "InitializationFlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "abstract", "class", "AbstractMethodDeclaration", "extends", "ASTNode", "implements", "ProblemSeverities", ",", "ReferenceContext", "{", "public", "MethodScope", "scope", ";", "public", "char", "[", "]", "selector", ";", "public", "int", "declarationSourceStart", ";", "public", "int", "declarationSourceEnd", ";", "public", "int", "modifiers", ";", "public", "int", "modifiersSourceStart", ";", "public", "Annotation", "[", "]", "annotations", ";", "public", "Argument", "[", "]", "arguments", ";", "public", "TypeReference", "[", "]", "thrownExceptions", ";", "public", "Statement", "[", "]", "statements", ";", "public", "int", "explicitDeclarations", ";", "public", "MethodBinding", "binding", ";", "public", "boolean", "ignoreFurtherInvestigation", "=", "false", ";", "public", "Javadoc", "javadoc", ";", "public", "int", "bodyStart", ";", "public", "int", "bodyEnd", "=", "-", "1", ";", "public", "CompilationResult", "compilationResult", ";", "AbstractMethodDeclaration", "(", "CompilationResult", "compilationResult", ")", "{", "this", ".", "compilationResult", "=", "compilationResult", ";", "}", "public", "void", "abort", "(", "int", "abortLevel", ",", "CategorizedProblem", "problem", ")", "{", "switch", "(", "abortLevel", ")", "{", "case", "AbortCompilation", ":", "throw", "new", "AbortCompilation", "(", "this", ".", "compilationResult", ",", "problem", ")", ";", "case", "AbortCompilationUnit", ":", "throw", "new", "AbortCompilationUnit", "(", "this", ".", "compilationResult", ",", "problem", ")", ";", "case", "AbortType", ":", "throw", "new", "AbortType", "(", "this", ".", "compilationResult", ",", "problem", ")", ";", "default", ":", "throw", "new", "AbortMethod", "(", "this", ".", "compilationResult", ",", "problem", ")", ";", "}", "}", "public", "abstract", "void", "analyseCode", "(", "ClassScope", "classScope", ",", "InitializationFlowContext", "initializationContext", ",", "FlowInfo", "info", ")", ";", "public", "void", "bindArguments", "(", ")", "{", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "if", "(", "this", ".", "binding", "==", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "arguments", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "arguments", "[", "i", "]", ".", "bind", "(", "this", ".", "scope", ",", "null", ",", "true", ")", ";", "}", "return", ";", "}", "boolean", "used", "=", "this", ".", "binding", ".", "isAbstract", "(", ")", "||", "this", ".", "binding", ".", "isNative", "(", ")", ";", "AnnotationBinding", "[", "]", "[", "]", "paramAnnotations", "=", "null", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "arguments", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "Argument", "argument", "=", "this", ".", "arguments", "[", "i", "]", ";", "argument", ".", "bind", "(", "this", ".", "scope", ",", "this", ".", "binding", ".", "parameters", "[", "i", "]", ",", "used", ")", ";", "if", "(", "argument", ".", "annotations", "!=", "null", ")", "{", "if", "(", "paramAnnotations", "==", "null", ")", "{", "paramAnnotations", "=", "new", "AnnotationBinding", "[", "length", "]", "[", "]", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "i", ";", "j", "++", ")", "{", "paramAnnotations", "[", "j", "]", "=", "Binding", ".", "NO_ANNOTATIONS", ";", "}", "}", "paramAnnotations", "[", "i", "]", "=", "argument", ".", "binding", ".", "getAnnotations", "(", ")", ";", "}", "else", "if", "(", "paramAnnotations", "!=", "null", ")", "{", "paramAnnotations", "[", "i", "]", "=", "Binding", ".", "NO_ANNOTATIONS", ";", "}", "}", "if", "(", "paramAnnotations", "!=", "null", ")", "this", ".", "binding", ".", "setParameterAnnotations", "(", "paramAnnotations", ")", ";", "}", "}", "public", "void", "bindThrownExceptions", "(", ")", "{", "if", "(", "this", ".", "thrownExceptions", "!=", "null", "&&", "this", ".", "binding", "!=", "null", "&&", "this", ".", "binding", ".", "thrownExceptions", "!=", "null", ")", "{", "int", "thrownExceptionLength", "=", "this", ".", "thrownExceptions", ".", "length", ";", "int", "length", "=", "this", ".", "binding", ".", "thrownExceptions", ".", "length", ";", "if", "(", "length", "==", "thrownExceptionLength", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "thrownExceptions", "[", "i", "]", ".", "resolvedType", "=", "this", ".", "binding", ".", "thrownExceptions", "[", "i", "]", ";", "}", "}", "else", "{", "int", "bindingIndex", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "thrownExceptionLength", "&&", "bindingIndex", "<", "length", ";", "i", "++", ")", "{", "TypeReference", "thrownException", "=", "this", ".", "thrownExceptions", "[", "i", "]", ";", "ReferenceBinding", "thrownExceptionBinding", "=", "this", ".", "binding", ".", "thrownExceptions", "[", "bindingIndex", "]", ";", "char", "[", "]", "[", "]", "bindingCompoundName", "=", "thrownExceptionBinding", ".", "compoundName", ";", "if", "(", "bindingCompoundName", "==", "null", ")", "continue", ";", "if", "(", "thrownException", "instanceof", "SingleTypeReference", ")", "{", "int", "lengthName", "=", "bindingCompoundName", ".", "length", ";", "char", "[", "]", "thrownExceptionTypeName", "=", "thrownException", ".", "getTypeName", "(", ")", "[", "0", "]", ";", "if", "(", "CharOperation", ".", "equals", "(", "thrownExceptionTypeName", ",", "bindingCompoundName", "[", "lengthName", "-", "1", "]", ")", ")", "{", "thrownException", ".", "resolvedType", "=", "thrownExceptionBinding", ";", "bindingIndex", "++", ";", "}", "}", "else", "{", "if", "(", "CharOperation", ".", "equals", "(", "thrownException", ".", "getTypeName", "(", ")", ",", "bindingCompoundName", ")", ")", "{", "thrownException", ".", "resolvedType", "=", "thrownExceptionBinding", ";", "bindingIndex", "++", ";", "}", "}", "}", "}", "}", "}", "public", "CompilationResult", "compilationResult", "(", ")", "{", "return", "this", ".", "compilationResult", ";", "}", "public", "void", "generateCode", "(", "ClassScope", "classScope", ",", "ClassFile", "classFile", ")", "{", "int", "problemResetPC", "=", "0", ";", "classFile", ".", "codeStream", ".", "wideMode", "=", "false", ";", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "{", "if", "(", "this", ".", "binding", "==", "null", ")", "return", ";", "int", "problemsLength", ";", "CategorizedProblem", "[", "]", "problems", "=", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ".", "getProblems", "(", ")", ";", "CategorizedProblem", "[", "]", "problemsCopy", "=", "new", "CategorizedProblem", "[", "problemsLength", "=", "problems", ".", "length", "]", ";", "System", ".", "arraycopy", "(", "problems", ",", "0", ",", "problemsCopy", ",", "0", ",", "problemsLength", ")", ";", "classFile", ".", "addProblemMethod", "(", "this", ",", "this", ".", "binding", ",", "problemsCopy", ")", ";", "return", ";", "}", "boolean", "restart", "=", "false", ";", "boolean", "abort", "=", "false", ";", "do", "{", "try", "{", "problemResetPC", "=", "classFile", ".", "contentsOffset", ";", "this", ".", "generateCode", "(", "classFile", ")", ";", "restart", "=", "false", ";", "}", "catch", "(", "AbortMethod", "e", ")", "{", "if", "(", "e", ".", "compilationResult", "==", "CodeStream", ".", "RESTART_IN_WIDE_MODE", ")", "{", "classFile", ".", "contentsOffset", "=", "problemResetPC", ";", "classFile", ".", "methodCount", "--", ";", "classFile", ".", "codeStream", ".", "resetInWideMode", "(", ")", ";", "restart", "=", "true", ";", "}", "else", "if", "(", "e", ".", "compilationResult", "==", "CodeStream", ".", "RESTART_CODE_GEN_FOR_UNUSED_LOCALS_MODE", ")", "{", "classFile", ".", "contentsOffset", "=", "problemResetPC", ";", "classFile", ".", "methodCount", "--", ";", "classFile", ".", "codeStream", ".", "resetForCodeGenUnusedLocals", "(", ")", ";", "restart", "=", "true", ";", "}", "else", "{", "restart", "=", "false", ";", "abort", "=", "true", ";", "}", "}", "}", "while", "(", "restart", ")", ";", "if", "(", "abort", ")", "{", "int", "problemsLength", ";", "CategorizedProblem", "[", "]", "problems", "=", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ".", "getAllProblems", "(", ")", ";", "CategorizedProblem", "[", "]", "problemsCopy", "=", "new", "CategorizedProblem", "[", "problemsLength", "=", "problems", ".", "length", "]", ";", "System", ".", "arraycopy", "(", "problems", ",", "0", ",", "problemsCopy", ",", "0", ",", "problemsLength", ")", ";", "classFile", ".", "addProblemMethod", "(", "this", ",", "this", ".", "binding", ",", "problemsCopy", ",", "problemResetPC", ")", ";", "}", "}", "public", "void", "generateCode", "(", "ClassFile", "classFile", ")", "{", "classFile", ".", "generateMethodInfoHeader", "(", "this", ".", "binding", ")", ";", "int", "methodAttributeOffset", "=", "classFile", ".", "contentsOffset", ";", "int", "attributeNumber", "=", "classFile", ".", "generateMethodInfoAttributes", "(", "this", ".", "binding", ")", ";", "if", "(", "(", "!", "this", ".", "binding", ".", "isNative", "(", ")", ")", "&&", "(", "!", "this", ".", "binding", ".", "isAbstract", "(", ")", ")", ")", "{", "int", "codeAttributeOffset", "=", "classFile", ".", "contentsOffset", ";", "classFile", ".", "generateCodeAttributeHeader", "(", ")", ";", "CodeStream", "codeStream", "=", "classFile", ".", "codeStream", ";", "codeStream", ".", "reset", "(", "this", ",", "classFile", ")", ";", "this", ".", "scope", ".", "computeLocalVariablePositions", "(", "this", ".", "binding", ".", "isStatic", "(", ")", "?", "0", ":", "1", ",", "codeStream", ")", ";", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "arguments", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "LocalVariableBinding", "argBinding", ";", "codeStream", ".", "addVisibleLocalVariable", "(", "argBinding", "=", "this", ".", "arguments", "[", "i", "]", ".", "binding", ")", ";", "argBinding", ".", "recordInitializationStartPC", "(", "0", ")", ";", "}", "}", "if", "(", "this", ".", "statements", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "statements", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "this", ".", "statements", "[", "i", "]", ".", "generateCode", "(", "this", ".", "scope", ",", "codeStream", ")", ";", "}", "if", "(", "this", ".", "ignoreFurtherInvestigation", ")", "{", "throw", "new", "AbortMethod", "(", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ",", "null", ")", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "NeedFreeReturn", ")", "!=", "0", ")", "{", "codeStream", ".", "return_", "(", ")", ";", "}", "codeStream", ".", "exitUserScope", "(", "this", ".", "scope", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "0", ",", "this", ".", "declarationSourceEnd", ")", ";", "try", "{", "classFile", ".", "completeCodeAttribute", "(", "codeAttributeOffset", ")", ";", "}", "catch", "(", "NegativeArraySizeException", "e", ")", "{", "throw", "new", "AbortMethod", "(", "this", ".", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ",", "null", ")", ";", "}", "attributeNumber", "++", ";", "}", "else", "{", "checkArgumentsSize", "(", ")", ";", "}", "classFile", ".", "completeMethodInfo", "(", "this", ".", "binding", ",", "methodAttributeOffset", ",", "attributeNumber", ")", ";", "}", "private", "void", "checkArgumentsSize", "(", ")", "{", "TypeBinding", "[", "]", "parameters", "=", "this", ".", "binding", ".", "parameters", ";", "int", "size", "=", "1", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "parameters", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "switch", "(", "parameters", "[", "i", "]", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "size", "+=", "2", ";", "break", ";", "default", ":", "size", "++", ";", "break", ";", "}", "if", "(", "size", ">", "0xFF", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "noMoreAvailableSpaceForArgument", "(", "this", ".", "scope", ".", "locals", "[", "i", "]", ",", "this", ".", "scope", ".", "locals", "[", "i", "]", ".", "declaration", ")", ";", "}", "}", "}", "public", "boolean", "hasErrors", "(", ")", "{", "return", "this", ".", "ignoreFurtherInvestigation", ";", "}", "public", "boolean", "isAbstract", "(", ")", "{", "if", "(", "this", ".", "binding", "!=", "null", ")", "return", "this", ".", "binding", ".", "isAbstract", "(", ")", ";", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccAbstract", ")", "!=", "0", ";", "}", "public", "boolean", "isAnnotationMethod", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isClinit", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isConstructor", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isDefaultConstructor", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isInitializationMethod", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isMethod", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isNative", "(", ")", "{", "if", "(", "this", ".", "binding", "!=", "null", ")", "return", "this", ".", "binding", ".", "isNative", "(", ")", ";", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccNative", ")", "!=", "0", ";", "}", "public", "boolean", "isStatic", "(", ")", "{", "if", "(", "this", ".", "binding", "!=", "null", ")", "return", "this", ".", "binding", ".", "isStatic", "(", ")", ";", "return", "(", "this", ".", "modifiers", "&", "ClassFileConstants", ".", "AccStatic", ")", "!=", "0", ";", "}", "public", "abstract", "void", "parseStatements", "(", "Parser", "parser", ",", "CompilationUnitDeclaration", "unit", ")", ";", "public", "StringBuffer", "print", "(", "int", "tab", ",", "StringBuffer", "output", ")", "{", "if", "(", "this", ".", "javadoc", "!=", "null", ")", "{", "this", ".", "javadoc", ".", "print", "(", "tab", ",", "output", ")", ";", "}", "printIndent", "(", "tab", ",", "output", ")", ";", "printModifiers", "(", "this", ".", "modifiers", ",", "output", ")", ";", "if", "(", "this", ".", "annotations", "!=", "null", ")", "printAnnotations", "(", "this", ".", "annotations", ",", "output", ")", ";", "TypeParameter", "[", "]", "typeParams", "=", "typeParameters", "(", ")", ";", "if", "(", "typeParams", "!=", "null", ")", "{", "output", ".", "append", "(", "'<'", ")", ";", "int", "max", "=", "typeParams", ".", "length", "-", "1", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "max", ";", "j", "++", ")", "{", "typeParams", "[", "j", "]", ".", "print", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "\",", "\"", ")", ";", "}", "typeParams", "[", "max", "]", ".", "print", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "'>'", ")", ";", "}", "printReturnType", "(", "0", ",", "output", ")", ".", "append", "(", "this", ".", "selector", ")", ".", "append", "(", "'('", ")", ";", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "arguments", ".", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "output", ".", "append", "(", "\",", "\"", ")", ";", "this", ".", "arguments", "[", "i", "]", ".", "print", "(", "0", ",", "output", ")", ";", "}", "}", "output", ".", "append", "(", "')'", ")", ";", "if", "(", "this", ".", "thrownExceptions", "!=", "null", ")", "{", "output", ".", "append", "(", "\"", "throws", "\"", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "thrownExceptions", ".", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "output", ".", "append", "(", "\",", "\"", ")", ";", "this", ".", "thrownExceptions", "[", "i", "]", ".", "print", "(", "0", ",", "output", ")", ";", "}", "}", "printBody", "(", "tab", "+", "1", ",", "output", ")", ";", "return", "output", ";", "}", "public", "StringBuffer", "printBody", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "if", "(", "isAbstract", "(", ")", "||", "(", "this", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccSemicolonBody", ")", "!=", "0", ")", "return", "output", ".", "append", "(", "';'", ")", ";", "output", ".", "append", "(", "\"", "{\"", ")", ";", "if", "(", "this", ".", "statements", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "statements", ".", "length", ";", "i", "++", ")", "{", "output", ".", "append", "(", "'\\n'", ")", ";", "this", ".", "statements", "[", "i", "]", ".", "printStatement", "(", "indent", ",", "output", ")", ";", "}", "}", "output", ".", "append", "(", "'\\n'", ")", ";", "printIndent", "(", "indent", "==", "0", "?", "0", ":", "indent", "-", "1", ",", "output", ")", ".", "append", "(", "'}'", ")", ";", "return", "output", ";", "}", "public", "StringBuffer", "printReturnType", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "output", ";", "}", "public", "void", "resolve", "(", "ClassScope", "upperScope", ")", "{", "if", "(", "this", ".", "binding", "==", "null", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "}", "try", "{", "bindArguments", "(", ")", ";", "bindThrownExceptions", "(", ")", ";", "resolveJavadoc", "(", ")", ";", "resolveAnnotations", "(", "this", ".", "scope", ",", "this", ".", "annotations", ",", "this", ".", "binding", ")", ";", "resolveStatements", "(", ")", ";", "if", "(", "this", ".", "binding", "!=", "null", "&&", "(", "this", ".", "binding", ".", "getAnnotationTagBits", "(", ")", "&", "TagBits", ".", "AnnotationDeprecated", ")", "==", "0", "&&", "(", "this", ".", "binding", ".", "modifiers", "&", "ClassFileConstants", ".", "AccDeprecated", ")", "!=", "0", "&&", "this", ".", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "missingDeprecatedAnnotationForMethod", "(", "this", ")", ";", "}", "}", "catch", "(", "AbortMethod", "e", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "}", "}", "public", "void", "resolveJavadoc", "(", ")", "{", "if", "(", "this", ".", "binding", "==", "null", ")", "return", ";", "if", "(", "this", ".", "javadoc", "!=", "null", ")", "{", "this", ".", "javadoc", ".", "resolve", "(", "this", ".", "scope", ")", ";", "return", ";", "}", "if", "(", "this", ".", "binding", ".", "declaringClass", "!=", "null", "&&", "!", "this", ".", "binding", ".", "declaringClass", ".", "isLocalType", "(", ")", ")", "{", "int", "javadocVisibility", "=", "this", ".", "binding", ".", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccVisibilityMASK", ";", "ClassScope", "classScope", "=", "this", ".", "scope", ".", "classScope", "(", ")", ";", "ProblemReporter", "reporter", "=", "this", ".", "scope", ".", "problemReporter", "(", ")", ";", "int", "severity", "=", "reporter", ".", "computeSeverity", "(", "IProblem", ".", "JavadocMissing", ")", ";", "if", "(", "severity", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "if", "(", "classScope", "!=", "null", ")", "{", "javadocVisibility", "=", "Util", ".", "computeOuterMostVisibility", "(", "classScope", ".", "referenceType", "(", ")", ",", "javadocVisibility", ")", ";", "}", "int", "javadocModifiers", "=", "(", "this", ".", "binding", ".", "modifiers", "&", "~", "ExtraCompilerModifiers", ".", "AccVisibilityMASK", ")", "|", "javadocVisibility", ";", "reporter", ".", "javadocMissing", "(", "this", ".", "sourceStart", ",", "this", ".", "sourceEnd", ",", "severity", ",", "javadocModifiers", ")", ";", "}", "}", "}", "public", "void", "resolveStatements", "(", ")", "{", "if", "(", "this", ".", "statements", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "statements", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "statements", "[", "i", "]", ".", "resolve", "(", "this", ".", "scope", ")", ";", "}", "}", "else", "if", "(", "(", "this", ".", "bits", "&", "UndocumentedEmptyBlock", ")", "!=", "0", ")", "{", "if", "(", "!", "this", ".", "isConstructor", "(", ")", "||", "this", ".", "arguments", "!=", "null", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "undocumentedEmptyBlock", "(", "this", ".", "bodyStart", "-", "1", ",", "this", ".", "bodyEnd", "+", "1", ")", ";", "}", "}", "}", "public", "void", "tagAsHavingErrors", "(", ")", "{", "this", ".", "ignoreFurtherInvestigation", "=", "true", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "classScope", ")", "{", "}", "public", "TypeParameter", "[", "]", "typeParameters", "(", ")", "{", "return", "null", ";", "}", "}", "</s>" ]
4,216
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "JavadocImplicitTypeReference", "extends", "TypeReference", "{", "public", "char", "[", "]", "token", ";", "public", "JavadocImplicitTypeReference", "(", "char", "[", "]", "name", ",", "int", "pos", ")", "{", "super", "(", ")", ";", "this", ".", "token", "=", "name", ";", "this", ".", "sourceStart", "=", "pos", ";", "this", ".", "sourceEnd", "=", "pos", ";", "}", "public", "TypeReference", "copyDims", "(", "int", "dim", ")", "{", "return", "null", ";", "}", "protected", "TypeBinding", "getTypeBinding", "(", "Scope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "return", "this", ".", "resolvedType", "=", "scope", ".", "enclosingReceiverType", "(", ")", ";", "}", "public", "char", "[", "]", "getLastToken", "(", ")", "{", "return", "this", ".", "token", ";", "}", "public", "char", "[", "]", "[", "]", "getTypeName", "(", ")", "{", "if", "(", "this", ".", "token", "!=", "null", ")", "{", "char", "[", "]", "[", "]", "tokens", "=", "{", "this", ".", "token", "}", ";", "return", "tokens", ";", "}", "return", "null", ";", "}", "public", "boolean", "isThis", "(", ")", "{", "return", "true", ";", "}", "protected", "TypeBinding", "internalResolveType", "(", "Scope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "this", ".", "resolvedType", "!=", "null", ")", "{", "if", "(", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "return", "this", ".", "resolvedType", ";", "}", "else", "{", "switch", "(", "this", ".", "resolvedType", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "case", "ProblemReasons", ".", "NotVisible", ":", "TypeBinding", "type", "=", "this", ".", "resolvedType", ".", "closestMatch", "(", ")", ";", "return", "type", ";", "default", ":", "return", "null", ";", "}", "}", "}", "boolean", "hasError", ";", "TypeBinding", "type", "=", "this", ".", "resolvedType", "=", "getTypeBinding", "(", "scope", ")", ";", "if", "(", "type", "==", "null", ")", "{", "return", "null", ";", "}", "else", "if", "(", "(", "hasError", "=", "!", "type", ".", "isValidBinding", "(", ")", ")", "==", "true", ")", "{", "reportInvalidType", "(", "scope", ")", ";", "switch", "(", "type", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "case", "ProblemReasons", ".", "NotVisible", ":", "type", "=", "type", ".", "closestMatch", "(", ")", ";", "if", "(", "type", "==", "null", ")", "return", "null", ";", "break", ";", "default", ":", "return", "null", ";", "}", "}", "if", "(", "type", ".", "isArrayType", "(", ")", "&&", "(", "(", "ArrayBinding", ")", "type", ")", ".", "leafComponentType", "==", "TypeBinding", ".", "VOID", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotAllocateVoidArray", "(", "this", ")", ";", "return", "null", ";", "}", "if", "(", "isTypeUseDeprecated", "(", "type", ",", "scope", ")", ")", "{", "reportDeprecatedType", "(", "type", ",", "scope", ")", ";", "}", "if", "(", "type", ".", "isGenericType", "(", ")", "||", "type", ".", "isParameterizedType", "(", ")", ")", "{", "type", "=", "scope", ".", "environment", "(", ")", ".", "convertToRawType", "(", "type", ",", "true", ")", ";", "}", "if", "(", "hasError", ")", "{", "return", "type", ";", "}", "return", "this", ".", "resolvedType", "=", "type", ";", "}", "protected", "void", "reportInvalidType", "(", "Scope", "scope", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidType", "(", "this", ",", "this", ".", "resolvedType", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "protected", "void", "reportDeprecatedType", "(", "TypeBinding", "type", ",", "Scope", "scope", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocDeprecatedType", "(", "type", ",", "this", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "new", "StringBuffer", "(", ")", ";", "}", "}", "</s>" ]
4,217
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "public", "class", "ExtendedStringLiteral", "extends", "StringLiteral", "{", "public", "ExtendedStringLiteral", "(", "StringLiteral", "str", ",", "CharLiteral", "character", ")", "{", "super", "(", "str", ".", "source", ",", "str", ".", "sourceStart", ",", "str", ".", "sourceEnd", ",", "str", ".", "lineNumber", ")", ";", "extendWith", "(", "character", ")", ";", "}", "public", "ExtendedStringLiteral", "(", "StringLiteral", "str1", ",", "StringLiteral", "str2", ")", "{", "super", "(", "str1", ".", "source", ",", "str1", ".", "sourceStart", ",", "str1", ".", "sourceEnd", ",", "str1", ".", "lineNumber", ")", ";", "extendWith", "(", "str2", ")", ";", "}", "public", "ExtendedStringLiteral", "extendWith", "(", "CharLiteral", "lit", ")", "{", "int", "length", "=", "this", ".", "source", ".", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "source", ",", "0", ",", "(", "this", ".", "source", "=", "new", "char", "[", "length", "+", "1", "]", ")", ",", "0", ",", "length", ")", ";", "this", ".", "source", "[", "length", "]", "=", "lit", ".", "value", ";", "this", ".", "sourceEnd", "=", "lit", ".", "sourceEnd", ";", "return", "this", ";", "}", "public", "ExtendedStringLiteral", "extendWith", "(", "StringLiteral", "lit", ")", "{", "int", "length", "=", "this", ".", "source", ".", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "source", ",", "0", ",", "this", ".", "source", "=", "new", "char", "[", "length", "+", "lit", ".", "source", ".", "length", "]", ",", "0", ",", "length", ")", ";", "System", ".", "arraycopy", "(", "lit", ".", "source", ",", "0", ",", "this", ".", "source", ",", "length", ",", "lit", ".", "source", ".", "length", ")", ";", "this", ".", "sourceEnd", "=", "lit", ".", "sourceEnd", ";", "return", "this", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "output", ".", "append", "(", "\"\"", ")", ".", "append", "(", "this", ".", "source", ")", ".", "append", "(", "'}'", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
4,218
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "public", "class", "SuperReference", "extends", "ThisReference", "{", "public", "SuperReference", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "super", "(", "sourceStart", ",", "sourceEnd", ")", ";", "}", "public", "static", "ExplicitConstructorCall", "implicitSuperConstructorCall", "(", ")", "{", "return", "new", "ExplicitConstructorCall", "(", "ExplicitConstructorCall", ".", "ImplicitSuper", ")", ";", "}", "public", "boolean", "isImplicitThis", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isSuper", "(", ")", "{", "return", "true", ";", "}", "public", "boolean", "isThis", "(", ")", "{", "return", "false", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "output", ".", "append", "(", "\"super\"", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "!", "checkAccess", "(", "scope", ".", "methodScope", "(", ")", ")", ")", "return", "null", ";", "ReferenceBinding", "enclosingReceiverType", "=", "scope", ".", "enclosingReceiverType", "(", ")", ";", "if", "(", "enclosingReceiverType", ".", "id", "==", "T_JavaLangObject", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotUseSuperInJavaLangObject", "(", "this", ")", ";", "return", "null", ";", "}", "return", "this", ".", "resolvedType", "=", "enclosingReceiverType", ".", "superclass", "(", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ",", "boolean", "valueRequired", ")", "{", "currentScope", ".", "resetEnclosingMethodStaticFlag", "(", ")", ";", "return", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "}", "</s>" ]
4,219
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "public", "abstract", "class", "MagicLiteral", "extends", "Literal", "{", "public", "MagicLiteral", "(", "int", "start", ",", "int", "end", ")", "{", "super", "(", "start", ",", "end", ")", ";", "}", "public", "boolean", "isValidJavaStatement", "(", ")", "{", "return", "false", ";", "}", "public", "char", "[", "]", "source", "(", ")", "{", "return", "null", ";", "}", "}", "</s>" ]
4,220
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "public", "class", "LongLiteralMinValue", "extends", "LongLiteral", "{", "final", "static", "char", "[", "]", "CharValue", "=", "new", "char", "[", "]", "{", "'-'", ",", "'9'", ",", "'2'", ",", "'2'", ",", "'3'", ",", "'3'", ",", "'7'", ",", "'2'", ",", "'0'", ",", "'3'", ",", "'6'", ",", "'8'", ",", "'5'", ",", "'4'", ",", "'7'", ",", "'7'", ",", "'5'", ",", "'8'", ",", "'0'", ",", "'8'", ",", "'L'", "}", ";", "public", "LongLiteralMinValue", "(", "char", "[", "]", "token", ",", "char", "[", "]", "reducedForm", ",", "int", "start", ",", "int", "end", ")", "{", "super", "(", "token", ",", "reducedForm", ",", "start", ",", "end", ")", ";", "this", ".", "constant", "=", "LongConstant", ".", "fromValue", "(", "Long", ".", "MIN_VALUE", ")", ";", "}", "public", "void", "computeConstant", "(", ")", "{", "}", "}", "</s>" ]
4,221
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "SingleMemberAnnotation", "extends", "Annotation", "{", "public", "Expression", "memberValue", ";", "private", "MemberValuePair", "[", "]", "singlePairs", ";", "public", "SingleMemberAnnotation", "(", "TypeReference", "type", ",", "int", "sourceStart", ")", "{", "this", ".", "type", "=", "type", ";", "this", ".", "sourceStart", "=", "sourceStart", ";", "this", ".", "sourceEnd", "=", "type", ".", "sourceEnd", ";", "}", "public", "ElementValuePair", "[", "]", "computeElementValuePairs", "(", ")", "{", "return", "new", "ElementValuePair", "[", "]", "{", "memberValuePairs", "(", ")", "[", "0", "]", ".", "compilerElementPair", "}", ";", "}", "public", "MemberValuePair", "[", "]", "memberValuePairs", "(", ")", "{", "if", "(", "this", ".", "singlePairs", "==", "null", ")", "{", "this", ".", "singlePairs", "=", "new", "MemberValuePair", "[", "]", "{", "new", "MemberValuePair", "(", "VALUE", ",", "this", ".", "memberValue", ".", "sourceStart", ",", "this", ".", "memberValue", ".", "sourceEnd", ",", "this", ".", "memberValue", ")", "}", ";", "}", "return", "this", ".", "singlePairs", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "super", ".", "printExpression", "(", "indent", ",", "output", ")", ";", "output", ".", "append", "(", "'('", ")", ";", "this", ".", "memberValue", ".", "printExpression", "(", "indent", ",", "output", ")", ";", "return", "output", ".", "append", "(", "')'", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "type", "!=", "null", ")", "{", "this", ".", "type", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "if", "(", "this", ".", "memberValue", "!=", "null", ")", "{", "this", ".", "memberValue", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
4,222
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "CompilerOptions", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ArrayBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Binding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "InvocationSite", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "LocalVariableBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "LookupEnvironment", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MethodBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ParameterizedGenericMethodBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ParameterizedTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "PolymorphicMethodBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Scope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TagBits", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "ProblemSeverities", ";", "public", "class", "CastExpression", "extends", "Expression", "{", "public", "Expression", "expression", ";", "public", "TypeReference", "type", ";", "public", "TypeBinding", "expectedType", ";", "public", "CastExpression", "(", "Expression", "expression", ",", "TypeReference", "type", ")", "{", "this", ".", "expression", "=", "expression", ";", "this", ".", "type", "=", "type", ";", "type", ".", "bits", "|=", "ASTNode", ".", "IgnoreRawTypeCheck", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "FlowInfo", "result", "=", "this", ".", "expression", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "if", "(", "(", "this", ".", "expression", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "this", ".", "expression", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "return", "result", ";", "}", "public", "static", "void", "checkNeedForAssignedCast", "(", "BlockScope", "scope", ",", "TypeBinding", "expectedType", ",", "CastExpression", "rhs", ")", "{", "if", "(", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "UnnecessaryTypeCheck", ")", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "TypeBinding", "castedExpressionType", "=", "rhs", ".", "expression", ".", "resolvedType", ";", "if", "(", "castedExpressionType", "==", "null", "||", "rhs", ".", "resolvedType", ".", "isBaseType", "(", ")", ")", "return", ";", "if", "(", "castedExpressionType", ".", "isCompatibleWith", "(", "expectedType", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "rhs", ")", ";", "}", "}", "public", "static", "void", "checkNeedForCastCast", "(", "BlockScope", "scope", ",", "CastExpression", "enclosingCast", ")", "{", "if", "(", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "UnnecessaryTypeCheck", ")", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "CastExpression", "nestedCast", "=", "(", "CastExpression", ")", "enclosingCast", ".", "expression", ";", "if", "(", "(", "nestedCast", ".", "bits", "&", "ASTNode", ".", "UnnecessaryCast", ")", "==", "0", ")", "return", ";", "CastExpression", "alternateCast", "=", "new", "CastExpression", "(", "null", ",", "enclosingCast", ".", "type", ")", ";", "alternateCast", ".", "resolvedType", "=", "enclosingCast", ".", "resolvedType", ";", "if", "(", "!", "alternateCast", ".", "checkCastTypesCompatibility", "(", "scope", ",", "enclosingCast", ".", "resolvedType", ",", "nestedCast", ".", "expression", ".", "resolvedType", ",", "null", ")", ")", "return", ";", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "nestedCast", ")", ";", "}", "public", "static", "void", "checkNeedForEnclosingInstanceCast", "(", "BlockScope", "scope", ",", "Expression", "enclosingInstance", ",", "TypeBinding", "enclosingInstanceType", ",", "TypeBinding", "memberType", ")", "{", "if", "(", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "UnnecessaryTypeCheck", ")", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "TypeBinding", "castedExpressionType", "=", "(", "(", "CastExpression", ")", "enclosingInstance", ")", ".", "expression", ".", "resolvedType", ";", "if", "(", "castedExpressionType", "==", "null", ")", "return", ";", "if", "(", "castedExpressionType", "==", "enclosingInstanceType", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "(", "CastExpression", ")", "enclosingInstance", ")", ";", "}", "else", "if", "(", "castedExpressionType", "==", "TypeBinding", ".", "NULL", ")", "{", "return", ";", "}", "else", "{", "TypeBinding", "alternateEnclosingInstanceType", "=", "castedExpressionType", ";", "if", "(", "castedExpressionType", ".", "isBaseType", "(", ")", "||", "castedExpressionType", ".", "isArrayType", "(", ")", ")", "return", ";", "if", "(", "memberType", "==", "scope", ".", "getMemberType", "(", "memberType", ".", "sourceName", "(", ")", ",", "(", "ReferenceBinding", ")", "alternateEnclosingInstanceType", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "(", "CastExpression", ")", "enclosingInstance", ")", ";", "}", "}", "}", "public", "static", "void", "checkNeedForArgumentCast", "(", "BlockScope", "scope", ",", "int", "operator", ",", "int", "operatorSignature", ",", "Expression", "expression", ",", "int", "expressionTypeId", ")", "{", "if", "(", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "UnnecessaryTypeCheck", ")", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "if", "(", "(", "expression", ".", "bits", "&", "ASTNode", ".", "UnnecessaryCast", ")", "==", "0", "&&", "expression", ".", "resolvedType", ".", "isBaseType", "(", ")", ")", "{", "return", ";", "}", "else", "{", "TypeBinding", "alternateLeftType", "=", "(", "(", "CastExpression", ")", "expression", ")", ".", "expression", ".", "resolvedType", ";", "if", "(", "alternateLeftType", "==", "null", ")", "return", ";", "if", "(", "alternateLeftType", ".", "id", "==", "expressionTypeId", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "(", "CastExpression", ")", "expression", ")", ";", "return", ";", "}", "}", "}", "public", "static", "void", "checkNeedForArgumentCasts", "(", "BlockScope", "scope", ",", "Expression", "receiver", ",", "TypeBinding", "receiverType", ",", "MethodBinding", "binding", ",", "Expression", "[", "]", "arguments", ",", "TypeBinding", "[", "]", "argumentTypes", ",", "final", "InvocationSite", "invocationSite", ")", "{", "if", "(", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "UnnecessaryTypeCheck", ")", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "int", "length", "=", "argumentTypes", ".", "length", ";", "TypeBinding", "[", "]", "rawArgumentTypes", "=", "argumentTypes", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "Expression", "argument", "=", "arguments", "[", "i", "]", ";", "if", "(", "argument", "instanceof", "CastExpression", ")", "{", "if", "(", "(", "argument", ".", "bits", "&", "ASTNode", ".", "UnnecessaryCast", ")", "==", "0", "&&", "argument", ".", "resolvedType", ".", "isBaseType", "(", ")", ")", "{", "continue", ";", "}", "TypeBinding", "castedExpressionType", "=", "(", "(", "CastExpression", ")", "argument", ")", ".", "expression", ".", "resolvedType", ";", "if", "(", "castedExpressionType", "==", "null", ")", "return", ";", "if", "(", "castedExpressionType", "==", "argumentTypes", "[", "i", "]", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "(", "CastExpression", ")", "argument", ")", ";", "}", "else", "if", "(", "castedExpressionType", "==", "TypeBinding", ".", "NULL", ")", "{", "continue", ";", "}", "else", "if", "(", "(", "argument", ".", "implicitConversion", "&", "TypeIds", ".", "BOXING", ")", "!=", "0", ")", "{", "continue", ";", "}", "else", "{", "if", "(", "rawArgumentTypes", "==", "argumentTypes", ")", "{", "System", ".", "arraycopy", "(", "rawArgumentTypes", ",", "0", ",", "rawArgumentTypes", "=", "new", "TypeBinding", "[", "length", "]", ",", "0", ",", "length", ")", ";", "}", "rawArgumentTypes", "[", "i", "]", "=", "castedExpressionType", ";", "}", "}", "}", "if", "(", "rawArgumentTypes", "!=", "argumentTypes", ")", "{", "checkAlternateBinding", "(", "scope", ",", "receiver", ",", "receiverType", ",", "binding", ",", "arguments", ",", "argumentTypes", ",", "rawArgumentTypes", ",", "invocationSite", ")", ";", "}", "}", "public", "static", "void", "checkNeedForArgumentCasts", "(", "BlockScope", "scope", ",", "int", "operator", ",", "int", "operatorSignature", ",", "Expression", "left", ",", "int", "leftTypeId", ",", "boolean", "leftIsCast", ",", "Expression", "right", ",", "int", "rightTypeId", ",", "boolean", "rightIsCast", ")", "{", "if", "(", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "UnnecessaryTypeCheck", ")", "==", "ProblemSeverities", ".", "Ignore", ")", "return", ";", "int", "alternateLeftTypeId", "=", "leftTypeId", ";", "if", "(", "leftIsCast", ")", "{", "if", "(", "(", "left", ".", "bits", "&", "ASTNode", ".", "UnnecessaryCast", ")", "==", "0", "&&", "left", ".", "resolvedType", ".", "isBaseType", "(", ")", ")", "{", "leftIsCast", "=", "false", ";", "}", "else", "{", "TypeBinding", "alternateLeftType", "=", "(", "(", "CastExpression", ")", "left", ")", ".", "expression", ".", "resolvedType", ";", "if", "(", "alternateLeftType", "==", "null", ")", "return", ";", "if", "(", "(", "alternateLeftTypeId", "=", "alternateLeftType", ".", "id", ")", "==", "leftTypeId", "||", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "alternateLeftType", ")", ".", "id", "==", "leftTypeId", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "(", "CastExpression", ")", "left", ")", ";", "leftIsCast", "=", "false", ";", "}", "else", "if", "(", "alternateLeftTypeId", "==", "TypeIds", ".", "T_null", ")", "{", "alternateLeftTypeId", "=", "leftTypeId", ";", "leftIsCast", "=", "false", ";", "}", "}", "}", "int", "alternateRightTypeId", "=", "rightTypeId", ";", "if", "(", "rightIsCast", ")", "{", "if", "(", "(", "right", ".", "bits", "&", "ASTNode", ".", "UnnecessaryCast", ")", "==", "0", "&&", "right", ".", "resolvedType", ".", "isBaseType", "(", ")", ")", "{", "rightIsCast", "=", "false", ";", "}", "else", "{", "TypeBinding", "alternateRightType", "=", "(", "(", "CastExpression", ")", "right", ")", ".", "expression", ".", "resolvedType", ";", "if", "(", "alternateRightType", "==", "null", ")", "return", ";", "if", "(", "(", "alternateRightTypeId", "=", "alternateRightType", ".", "id", ")", "==", "rightTypeId", "||", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "alternateRightType", ")", ".", "id", "==", "rightTypeId", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "(", "CastExpression", ")", "right", ")", ";", "rightIsCast", "=", "false", ";", "}", "else", "if", "(", "alternateRightTypeId", "==", "TypeIds", ".", "T_null", ")", "{", "alternateRightTypeId", "=", "rightTypeId", ";", "rightIsCast", "=", "false", ";", "}", "}", "}", "if", "(", "leftIsCast", "||", "rightIsCast", ")", "{", "if", "(", "alternateLeftTypeId", ">", "15", "||", "alternateRightTypeId", ">", "15", ")", "{", "if", "(", "alternateLeftTypeId", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "alternateRightTypeId", "=", "TypeIds", ".", "T_JavaLangObject", ";", "}", "else", "if", "(", "alternateRightTypeId", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "alternateLeftTypeId", "=", "TypeIds", ".", "T_JavaLangObject", ";", "}", "else", "{", "return", ";", "}", "}", "int", "alternateOperatorSignature", "=", "OperatorExpression", ".", "OperatorSignatures", "[", "operator", "]", "[", "(", "alternateLeftTypeId", "<<", "4", ")", "+", "alternateRightTypeId", "]", ";", "final", "int", "CompareMASK", "=", "(", "0xF", "<<", "16", ")", "+", "(", "0xF", "<<", "8", ")", "+", "0xF", ";", "if", "(", "(", "operatorSignature", "&", "CompareMASK", ")", "==", "(", "alternateOperatorSignature", "&", "CompareMASK", ")", ")", "{", "if", "(", "leftIsCast", ")", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "(", "CastExpression", ")", "left", ")", ";", "if", "(", "rightIsCast", ")", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "(", "CastExpression", ")", "right", ")", ";", "}", "}", "}", "private", "static", "void", "checkAlternateBinding", "(", "BlockScope", "scope", ",", "Expression", "receiver", ",", "TypeBinding", "receiverType", ",", "MethodBinding", "binding", ",", "Expression", "[", "]", "arguments", ",", "TypeBinding", "[", "]", "originalArgumentTypes", ",", "TypeBinding", "[", "]", "alternateArgumentTypes", ",", "final", "InvocationSite", "invocationSite", ")", "{", "InvocationSite", "fakeInvocationSite", "=", "new", "InvocationSite", "(", ")", "{", "public", "TypeBinding", "[", "]", "genericTypeArguments", "(", ")", "{", "return", "null", ";", "}", "public", "boolean", "isSuperAccess", "(", ")", "{", "return", "invocationSite", ".", "isSuperAccess", "(", ")", ";", "}", "public", "boolean", "isTypeAccess", "(", ")", "{", "return", "invocationSite", ".", "isTypeAccess", "(", ")", ";", "}", "public", "void", "setActualReceiverType", "(", "ReferenceBinding", "actualReceiverType", ")", "{", "}", "public", "void", "setDepth", "(", "int", "depth", ")", "{", "}", "public", "void", "setFieldIndex", "(", "int", "depth", ")", "{", "}", "public", "int", "sourceStart", "(", ")", "{", "return", "0", ";", "}", "public", "int", "sourceEnd", "(", ")", "{", "return", "0", ";", "}", "public", "TypeBinding", "expectedType", "(", ")", "{", "return", "invocationSite", ".", "expectedType", "(", ")", ";", "}", "}", ";", "MethodBinding", "bindingIfNoCast", ";", "if", "(", "binding", ".", "isConstructor", "(", ")", ")", "{", "bindingIfNoCast", "=", "scope", ".", "getConstructor", "(", "(", "ReferenceBinding", ")", "receiverType", ",", "alternateArgumentTypes", ",", "fakeInvocationSite", ")", ";", "}", "else", "{", "bindingIfNoCast", "=", "receiver", ".", "isImplicitThis", "(", ")", "?", "scope", ".", "getImplicitMethod", "(", "binding", ".", "selector", ",", "alternateArgumentTypes", ",", "fakeInvocationSite", ")", ":", "scope", ".", "getMethod", "(", "receiverType", ",", "binding", ".", "selector", ",", "alternateArgumentTypes", ",", "fakeInvocationSite", ")", ";", "}", "if", "(", "bindingIfNoCast", "==", "binding", ")", "{", "int", "argumentLength", "=", "originalArgumentTypes", ".", "length", ";", "if", "(", "binding", ".", "isVarargs", "(", ")", ")", "{", "int", "paramLength", "=", "binding", ".", "parameters", ".", "length", ";", "if", "(", "paramLength", "==", "argumentLength", ")", "{", "int", "varargsIndex", "=", "paramLength", "-", "1", ";", "ArrayBinding", "varargsType", "=", "(", "ArrayBinding", ")", "binding", ".", "parameters", "[", "varargsIndex", "]", ";", "TypeBinding", "lastArgType", "=", "alternateArgumentTypes", "[", "varargsIndex", "]", ";", "if", "(", "varargsType", ".", "dimensions", "!=", "lastArgType", ".", "dimensions", "(", ")", ")", "{", "return", ";", "}", "if", "(", "lastArgType", ".", "isCompatibleWith", "(", "varargsType", ".", "elementsType", "(", ")", ")", "&&", "lastArgType", ".", "isCompatibleWith", "(", "varargsType", ")", ")", "{", "return", ";", "}", "}", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "argumentLength", ";", "i", "++", ")", "{", "if", "(", "originalArgumentTypes", "[", "i", "]", "!=", "alternateArgumentTypes", "[", "i", "]", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "(", "CastExpression", ")", "arguments", "[", "i", "]", ")", ";", "}", "}", "}", "}", "public", "boolean", "checkUnsafeCast", "(", "Scope", "scope", ",", "TypeBinding", "castType", ",", "TypeBinding", "expressionType", ",", "TypeBinding", "match", ",", "boolean", "isNarrowing", ")", "{", "if", "(", "match", "==", "castType", ")", "{", "if", "(", "!", "isNarrowing", "&&", "match", "==", "this", ".", "resolvedType", ".", "leafComponentType", "(", ")", ")", "{", "tagAsUnnecessaryCast", "(", "scope", ",", "castType", ")", ";", "}", "return", "true", ";", "}", "if", "(", "match", "!=", "null", ")", "{", "if", "(", "isNarrowing", "?", "match", ".", "isProvablyDistinct", "(", "expressionType", ")", ":", "castType", ".", "isProvablyDistinct", "(", "match", ")", ")", "{", "return", "false", ";", "}", "}", "switch", "(", "castType", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "PARAMETERIZED_TYPE", ":", "if", "(", "!", "castType", ".", "isReifiable", "(", ")", ")", "{", "if", "(", "match", "==", "null", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "UnsafeCast", ";", "return", "true", ";", "}", "switch", "(", "match", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "PARAMETERIZED_TYPE", ":", "if", "(", "isNarrowing", ")", "{", "if", "(", "expressionType", ".", "isRawType", "(", ")", "||", "!", "expressionType", ".", "isEquivalentTo", "(", "match", ")", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "UnsafeCast", ";", "return", "true", ";", "}", "ParameterizedTypeBinding", "paramCastType", "=", "(", "ParameterizedTypeBinding", ")", "castType", ";", "ParameterizedTypeBinding", "paramMatch", "=", "(", "ParameterizedTypeBinding", ")", "match", ";", "TypeBinding", "[", "]", "castArguments", "=", "paramCastType", ".", "arguments", ";", "int", "length", "=", "castArguments", "==", "null", "?", "0", ":", "castArguments", ".", "length", ";", "if", "(", "paramMatch", ".", "arguments", "==", "null", "||", "length", ">", "paramMatch", ".", "arguments", ".", "length", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "UnsafeCast", ";", "}", "else", "if", "(", "(", "paramCastType", ".", "tagBits", "&", "(", "TagBits", ".", "HasDirectWildcard", "|", "TagBits", ".", "HasTypeVariable", ")", ")", "!=", "0", ")", "{", "nextAlternateArgument", ":", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "switch", "(", "castArguments", "[", "i", "]", ".", "kind", "(", ")", ")", "{", "case", "Binding", ".", "WILDCARD_TYPE", ":", "case", "Binding", ".", "TYPE_PARAMETER", ":", "break", ";", "default", ":", "continue", "nextAlternateArgument", ";", "}", "TypeBinding", "[", "]", "alternateArguments", ";", "System", ".", "arraycopy", "(", "paramCastType", ".", "arguments", ",", "0", ",", "alternateArguments", "=", "new", "TypeBinding", "[", "length", "]", ",", "0", ",", "length", ")", ";", "alternateArguments", "[", "i", "]", "=", "scope", ".", "getJavaLangObject", "(", ")", ";", "LookupEnvironment", "environment", "=", "scope", ".", "environment", "(", ")", ";", "ParameterizedTypeBinding", "alternateCastType", "=", "environment", ".", "createParameterizedType", "(", "(", "ReferenceBinding", ")", "castType", ".", "erasure", "(", ")", ",", "alternateArguments", ",", "castType", ".", "enclosingType", "(", ")", ")", ";", "if", "(", "alternateCastType", ".", "findSuperTypeOriginatingFrom", "(", "expressionType", ")", "==", "match", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "UnsafeCast", ";", "break", ";", "}", "}", "}", "return", "true", ";", "}", "else", "{", "if", "(", "!", "match", ".", "isEquivalentTo", "(", "castType", ")", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "UnsafeCast", ";", "return", "true", ";", "}", "}", "break", ";", "case", "Binding", ".", "RAW_TYPE", ":", "this", ".", "bits", "|=", "ASTNode", ".", "UnsafeCast", ";", "return", "true", ";", "default", ":", "if", "(", "isNarrowing", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "UnsafeCast", ";", "return", "true", ";", "}", "break", ";", "}", "}", "break", ";", "case", "Binding", ".", "ARRAY_TYPE", ":", "TypeBinding", "leafType", "=", "castType", ".", "leafComponentType", "(", ")", ";", "if", "(", "isNarrowing", "&&", "(", "!", "leafType", ".", "isReifiable", "(", ")", "||", "leafType", ".", "isTypeVariable", "(", ")", ")", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "UnsafeCast", ";", "return", "true", ";", "}", "break", ";", "case", "Binding", ".", "TYPE_PARAMETER", ":", "this", ".", "bits", "|=", "ASTNode", ".", "UnsafeCast", ";", "return", "true", ";", "}", "if", "(", "!", "isNarrowing", "&&", "match", "==", "this", ".", "resolvedType", ".", "leafComponentType", "(", ")", ")", "{", "tagAsUnnecessaryCast", "(", "scope", ",", "castType", ")", ";", "}", "return", "true", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "boolean", "needRuntimeCheckcast", "=", "(", "this", ".", "bits", "&", "ASTNode", ".", "GenerateCheckcast", ")", "!=", "0", ";", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "valueRequired", "||", "needRuntimeCheckcast", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "if", "(", "needRuntimeCheckcast", ")", "{", "codeStream", ".", "checkcast", "(", "this", ".", "resolvedType", ")", ";", "}", "if", "(", "!", "valueRequired", ")", "{", "codeStream", ".", "pop", "(", ")", ";", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "this", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", "||", "needRuntimeCheckcast", ")", ";", "if", "(", "needRuntimeCheckcast", "&&", "this", ".", "expression", ".", "postConversionType", "(", "currentScope", ")", "!=", "this", ".", "resolvedType", ".", "erasure", "(", ")", ")", "{", "codeStream", ".", "checkcast", "(", "this", ".", "resolvedType", ")", ";", "}", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "else", "if", "(", "needRuntimeCheckcast", ")", "{", "codeStream", ".", "pop", "(", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "Expression", "innermostCastedExpression", "(", ")", "{", "Expression", "current", "=", "this", ".", "expression", ";", "while", "(", "current", "instanceof", "CastExpression", ")", "{", "current", "=", "(", "(", "CastExpression", ")", "current", ")", ".", "expression", ";", "}", "return", "current", ";", "}", "public", "LocalVariableBinding", "localVariableBinding", "(", ")", "{", "return", "this", ".", "expression", ".", "localVariableBinding", "(", ")", ";", "}", "public", "int", "nullStatus", "(", "FlowInfo", "flowInfo", ")", "{", "return", "this", ".", "expression", ".", "nullStatus", "(", "flowInfo", ")", ";", "}", "public", "Constant", "optimizedBooleanConstant", "(", ")", "{", "switch", "(", "this", ".", "resolvedType", ".", "id", ")", "{", "case", "T_boolean", ":", "case", "T_JavaLangBoolean", ":", "return", "this", ".", "expression", ".", "optimizedBooleanConstant", "(", ")", ";", "}", "return", "Constant", ".", "NotAConstant", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "output", ".", "append", "(", "'('", ")", ";", "this", ".", "type", ".", "print", "(", "0", ",", "output", ")", ".", "append", "(", "\")", "\"", ")", ";", "return", "this", ".", "expression", ".", "printExpression", "(", "0", ",", "output", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "this", ".", "implicitConversion", "=", "TypeIds", ".", "T_undefined", ";", "boolean", "exprContainCast", "=", "false", ";", "TypeBinding", "castType", "=", "this", ".", "resolvedType", "=", "this", ".", "type", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "this", ".", "expression", "instanceof", "CastExpression", ")", "{", "this", ".", "expression", ".", "bits", "|=", "ASTNode", ".", "DisableUnnecessaryCastCheck", ";", "exprContainCast", "=", "true", ";", "}", "TypeBinding", "expressionType", "=", "this", ".", "expression", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "this", ".", "expression", "instanceof", "MessageSend", ")", "{", "MessageSend", "messageSend", "=", "(", "MessageSend", ")", "this", ".", "expression", ";", "MethodBinding", "methodBinding", "=", "messageSend", ".", "binding", ";", "if", "(", "methodBinding", "!=", "null", "&&", "methodBinding", ".", "isPolymorphic", "(", ")", ")", "{", "messageSend", ".", "binding", "=", "scope", ".", "environment", "(", ")", ".", "updatePolymorphicMethodReturnType", "(", "(", "PolymorphicMethodBinding", ")", "methodBinding", ",", "castType", ")", ";", "expressionType", "=", "castType", ";", "}", "}", "if", "(", "castType", "!=", "null", ")", "{", "if", "(", "expressionType", "!=", "null", ")", "{", "boolean", "isLegal", "=", "checkCastTypesCompatibility", "(", "scope", ",", "castType", ",", "expressionType", ",", "this", ".", "expression", ")", ";", "if", "(", "isLegal", ")", "{", "this", ".", "expression", ".", "computeConversion", "(", "scope", ",", "castType", ",", "expressionType", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "UnsafeCast", ")", "!=", "0", ")", "{", "if", "(", "scope", ".", "compilerOptions", "(", ")", ".", "reportUnavoidableGenericTypeProblems", "||", "!", "this", ".", "expression", ".", "forcedToBeRaw", "(", "scope", ".", "referenceContext", "(", ")", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unsafeCast", "(", "this", ",", "scope", ")", ";", "}", "}", "else", "{", "if", "(", "castType", ".", "isRawType", "(", ")", "&&", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "RawTypeReference", ")", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "rawTypeReference", "(", "this", ".", "type", ",", "castType", ")", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "(", "ASTNode", ".", "UnnecessaryCast", "|", "ASTNode", ".", "DisableUnnecessaryCastCheck", ")", ")", "==", "ASTNode", ".", "UnnecessaryCast", ")", "{", "if", "(", "!", "isIndirectlyUsed", "(", ")", ")", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "this", ")", ";", "}", "}", "}", "else", "{", "if", "(", "(", "castType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "typeCastError", "(", "this", ",", "castType", ",", "expressionType", ")", ";", "}", "this", ".", "bits", "|=", "ASTNode", ".", "DisableUnnecessaryCastCheck", ";", "}", "}", "this", ".", "resolvedType", "=", "castType", ".", "capture", "(", "scope", ",", "this", ".", "sourceEnd", ")", ";", "if", "(", "exprContainCast", ")", "{", "checkNeedForCastCast", "(", "scope", ",", "this", ")", ";", "}", "}", "return", "this", ".", "resolvedType", ";", "}", "public", "void", "setExpectedType", "(", "TypeBinding", "expectedType", ")", "{", "this", ".", "expectedType", "=", "expectedType", ";", "}", "private", "boolean", "isIndirectlyUsed", "(", ")", "{", "if", "(", "this", ".", "expression", "instanceof", "MessageSend", ")", "{", "MethodBinding", "method", "=", "(", "(", "MessageSend", ")", "this", ".", "expression", ")", ".", "binding", ";", "if", "(", "method", "instanceof", "ParameterizedGenericMethodBinding", "&&", "(", "(", "ParameterizedGenericMethodBinding", ")", "method", ")", ".", "inferredReturnType", ")", "{", "if", "(", "this", ".", "expectedType", "==", "null", ")", "return", "true", ";", "if", "(", "this", ".", "resolvedType", "!=", "this", ".", "expectedType", ")", "return", "true", ";", "}", "}", "if", "(", "this", ".", "expectedType", "!=", "null", "&&", "this", ".", "resolvedType", ".", "isBaseType", "(", ")", "&&", "!", "this", ".", "resolvedType", ".", "isCompatibleWith", "(", "this", ".", "expectedType", ")", ")", "{", "return", "true", ";", "}", "return", "false", ";", "}", "public", "void", "tagAsNeedCheckCast", "(", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "GenerateCheckcast", ";", "}", "public", "void", "tagAsUnnecessaryCast", "(", "Scope", "scope", ",", "TypeBinding", "castType", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "UnnecessaryCast", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "this", ".", "type", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "this", ".", "expression", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
4,223
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "OR_OR_Expression", "extends", "BinaryExpression", "{", "int", "rightInitStateIndex", "=", "-", "1", ";", "int", "mergedInitStateIndex", "=", "-", "1", ";", "public", "OR_OR_Expression", "(", "Expression", "left", ",", "Expression", "right", ",", "int", "operator", ")", "{", "super", "(", "left", ",", "right", ",", "operator", ")", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "Constant", "cst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ";", "boolean", "isLeftOptimizedTrue", "=", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "true", ";", "boolean", "isLeftOptimizedFalse", "=", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "false", ";", "if", "(", "isLeftOptimizedFalse", ")", "{", "FlowInfo", "mergedInfo", "=", "this", ".", "left", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "mergedInfo", "=", "this", ".", "right", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "mergedInfo", ")", ";", "this", ".", "mergedInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "mergedInfo", ")", ";", "return", "mergedInfo", ";", "}", "FlowInfo", "leftInfo", "=", "this", ".", "left", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "FlowInfo", "rightInfo", "=", "leftInfo", ".", "initsWhenFalse", "(", ")", ".", "unconditionalCopy", "(", ")", ";", "this", ".", "rightInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "rightInfo", ")", ";", "int", "previousMode", "=", "rightInfo", ".", "reachMode", "(", ")", ";", "if", "(", "isLeftOptimizedTrue", ")", "{", "if", "(", "(", "rightInfo", ".", "reachMode", "(", ")", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "fakeReachable", "(", "this", ".", "right", ")", ";", "rightInfo", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", ";", "}", "}", "rightInfo", "=", "this", ".", "right", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "rightInfo", ")", ";", "if", "(", "(", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "this", ".", "left", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "if", "(", "(", "this", ".", "right", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "this", ".", "right", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "FlowInfo", "leftInfoWhenTrueForMerging", "=", "leftInfo", ".", "initsWhenTrue", "(", ")", ".", "unconditionalCopy", "(", ")", ".", "addPotentialInitializationsFrom", "(", "rightInfo", ".", "unconditionalInitsWithoutSideEffect", "(", ")", ")", ";", "FlowInfo", "mergedInfo", "=", "FlowInfo", ".", "conditional", "(", "leftInfoWhenTrueForMerging", ".", "unconditionalInits", "(", ")", ".", "mergedWith", "(", "rightInfo", ".", "safeInitsWhenTrue", "(", ")", ".", "setReachMode", "(", "previousMode", ")", ".", "unconditionalInits", "(", ")", ")", ",", "rightInfo", ".", "initsWhenFalse", "(", ")", ")", ";", "this", ".", "mergedInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "mergedInfo", ")", ";", "return", "mergedInfo", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "valueRequired", ")", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "Constant", "cst", "=", "this", ".", "right", ".", "constant", ";", "if", "(", "cst", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "cst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "iconst_1", "(", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "if", "(", "this", ".", "mergedInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "}", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "BranchLabel", "trueLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ",", "endLabel", ";", "cst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ";", "boolean", "leftIsConst", "=", "cst", "!=", "Constant", ".", "NotAConstant", ";", "boolean", "leftIsTrue", "=", "leftIsConst", "&&", "cst", ".", "booleanValue", "(", ")", "==", "true", ";", "cst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ";", "boolean", "rightIsConst", "=", "cst", "!=", "Constant", ".", "NotAConstant", ";", "boolean", "rightIsTrue", "=", "rightIsConst", "&&", "cst", ".", "booleanValue", "(", ")", "==", "true", ";", "generateOperands", ":", "{", "if", "(", "leftIsConst", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "leftIsTrue", ")", "{", "break", "generateOperands", ";", "}", "}", "else", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "null", ",", "true", ")", ";", "}", "if", "(", "this", ".", "rightInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "rightInitStateIndex", ")", ";", "}", "if", "(", "rightIsConst", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "}", "else", "{", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "null", ",", "valueRequired", ")", ";", "}", "}", "if", "(", "this", ".", "mergedInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "}", "if", "(", "valueRequired", ")", "{", "if", "(", "leftIsConst", "&&", "leftIsTrue", ")", "{", "codeStream", ".", "iconst_1", "(", ")", ";", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "else", "{", "if", "(", "rightIsConst", "&&", "rightIsTrue", ")", "{", "codeStream", ".", "iconst_1", "(", ")", ";", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "else", "{", "codeStream", ".", "iconst_0", "(", ")", ";", "}", "if", "(", "trueLabel", ".", "forwardReferenceCount", "(", ")", ">", "0", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "IsReturnedValue", ")", "!=", "0", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "generateReturnBytecode", "(", "this", ")", ";", "trueLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_1", "(", ")", ";", "}", "else", "{", "codeStream", ".", "goto_", "(", "endLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ";", "codeStream", ".", "decrStackSize", "(", "1", ")", ";", "trueLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_1", "(", ")", ";", "endLabel", ".", "place", "(", ")", ";", "}", "}", "else", "{", "trueLabel", ".", "place", "(", ")", ";", "}", "}", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "else", "{", "trueLabel", ".", "place", "(", ")", ";", "}", "}", "public", "void", "generateOptimizedBoolean", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "super", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "return", ";", "}", "Constant", "cst", "=", "this", ".", "right", ".", "constant", ";", "if", "(", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "false", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "if", "(", "this", ".", "mergedInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "cst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ";", "boolean", "leftIsConst", "=", "cst", "!=", "Constant", ".", "NotAConstant", ";", "boolean", "leftIsTrue", "=", "leftIsConst", "&&", "cst", ".", "booleanValue", "(", ")", "==", "true", ";", "cst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ";", "boolean", "rightIsConst", "=", "cst", "!=", "Constant", ".", "NotAConstant", ";", "boolean", "rightIsTrue", "=", "rightIsConst", "&&", "cst", ".", "booleanValue", "(", ")", "==", "true", ";", "generateOperands", ":", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "null", ",", "!", "leftIsConst", ")", ";", "if", "(", "leftIsTrue", ")", "{", "if", "(", "valueRequired", ")", "codeStream", ".", "goto_", "(", "trueLabel", ")", ";", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "break", "generateOperands", ";", "}", "if", "(", "this", ".", "rightInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "rightInitStateIndex", ")", ";", "}", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "null", ",", "valueRequired", "&&", "!", "rightIsConst", ")", ";", "if", "(", "valueRequired", "&&", "rightIsTrue", ")", "{", "codeStream", ".", "goto_", "(", "trueLabel", ")", ";", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "BranchLabel", "internalTrueLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "internalTrueLabel", ",", "null", ",", "!", "leftIsConst", ")", ";", "if", "(", "leftIsTrue", ")", "{", "internalTrueLabel", ".", "place", "(", ")", ";", "break", "generateOperands", ";", "}", "if", "(", "this", ".", "rightInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "rightInitStateIndex", ")", ";", "}", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "null", ",", "falseLabel", ",", "valueRequired", "&&", "!", "rightIsConst", ")", ";", "if", "(", "valueRequired", "&&", "rightIsConst", "&&", "!", "rightIsTrue", ")", "{", "codeStream", ".", "goto_", "(", "falseLabel", ")", ";", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "internalTrueLabel", ".", "place", "(", ")", ";", "}", "else", "{", "}", "}", "}", "if", "(", "this", ".", "mergedInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "}", "}", "public", "boolean", "isCompactableOperation", "(", ")", "{", "return", "false", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "TypeBinding", "result", "=", "super", ".", "resolveType", "(", "scope", ")", ";", "Binding", "leftDirect", "=", "Expression", ".", "getDirectBinding", "(", "this", ".", "left", ")", ";", "if", "(", "leftDirect", "!=", "null", "&&", "leftDirect", "==", "Expression", ".", "getDirectBinding", "(", "this", ".", "right", ")", ")", "{", "if", "(", "!", "(", "this", ".", "right", "instanceof", "Assignment", ")", ")", "scope", ".", "problemReporter", "(", ")", ".", "comparingIdenticalExpressions", "(", "this", ")", ";", "}", "return", "result", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "this", ".", "left", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "this", ".", "right", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
4,224
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "abstract", "class", "Literal", "extends", "Expression", "{", "public", "Literal", "(", "int", "s", ",", "int", "e", ")", "{", "this", ".", "sourceStart", "=", "s", ";", "this", ".", "sourceEnd", "=", "e", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "return", "flowInfo", ";", "}", "public", "abstract", "void", "computeConstant", "(", ")", ";", "public", "abstract", "TypeBinding", "literalType", "(", "BlockScope", "scope", ")", ";", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "output", ".", "append", "(", "source", "(", ")", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "this", ".", "resolvedType", "=", "literalType", "(", "scope", ")", ";", "computeConstant", "(", ")", ";", "if", "(", "this", ".", "constant", "==", "null", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "constantOutOfRange", "(", "this", ",", "this", ".", "resolvedType", ")", ";", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "}", "return", "this", ".", "resolvedType", ";", "}", "public", "abstract", "char", "[", "]", "source", "(", ")", ";", "}", "</s>" ]
4,225
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "AbortCompilation", ";", "public", "class", "ArrayQualifiedTypeReference", "extends", "QualifiedTypeReference", "{", "int", "dimensions", ";", "public", "ArrayQualifiedTypeReference", "(", "char", "[", "]", "[", "]", "sources", ",", "int", "dim", ",", "long", "[", "]", "poss", ")", "{", "super", "(", "sources", ",", "poss", ")", ";", "this", ".", "dimensions", "=", "dim", ";", "}", "public", "int", "dimensions", "(", ")", "{", "return", "this", ".", "dimensions", ";", "}", "public", "char", "[", "]", "[", "]", "getParameterizedTypeName", "(", ")", "{", "int", "dim", "=", "this", ".", "dimensions", ";", "char", "[", "]", "dimChars", "=", "new", "char", "[", "dim", "*", "2", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "dim", ";", "i", "++", ")", "{", "int", "index", "=", "i", "*", "2", ";", "dimChars", "[", "index", "]", "=", "'['", ";", "dimChars", "[", "index", "+", "1", "]", "=", "']'", ";", "}", "int", "length", "=", "this", ".", "tokens", ".", "length", ";", "char", "[", "]", "[", "]", "qParamName", "=", "new", "char", "[", "length", "]", "[", "]", ";", "System", ".", "arraycopy", "(", "this", ".", "tokens", ",", "0", ",", "qParamName", ",", "0", ",", "length", "-", "1", ")", ";", "qParamName", "[", "length", "-", "1", "]", "=", "CharOperation", ".", "concat", "(", "this", ".", "tokens", "[", "length", "-", "1", "]", ",", "dimChars", ")", ";", "return", "qParamName", ";", "}", "protected", "TypeBinding", "getTypeBinding", "(", "Scope", "scope", ")", "{", "if", "(", "this", ".", "resolvedType", "!=", "null", ")", "return", "this", ".", "resolvedType", ";", "if", "(", "this", ".", "dimensions", ">", "255", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "tooManyDimensions", "(", "this", ")", ";", "}", "LookupEnvironment", "env", "=", "scope", ".", "environment", "(", ")", ";", "try", "{", "env", ".", "missingClassFileLocation", "=", "this", ";", "TypeBinding", "leafComponentType", "=", "super", ".", "getTypeBinding", "(", "scope", ")", ";", "if", "(", "leafComponentType", "!=", "null", ")", "{", "return", "this", ".", "resolvedType", "=", "scope", ".", "createArrayType", "(", "leafComponentType", ",", "this", ".", "dimensions", ")", ";", "}", "return", "null", ";", "}", "catch", "(", "AbortCompilation", "e", ")", "{", "e", ".", "updateContext", "(", "this", ",", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "compilationResult", ")", ";", "throw", "e", ";", "}", "finally", "{", "env", ".", "missingClassFileLocation", "=", "null", ";", "}", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "super", ".", "printExpression", "(", "indent", ",", "output", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "IsVarArgs", ")", "!=", "0", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "dimensions", "-", "1", ";", "i", "++", ")", "{", "output", ".", "append", "(", "\"[]\"", ")", ";", "}", "output", ".", "append", "(", "\"...\"", ")", ";", "}", "else", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "dimensions", ";", "i", "++", ")", "{", "output", ".", "append", "(", "\"[]\"", ")", ";", "}", "}", "return", "output", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
4,226
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "BinaryExpression", "extends", "OperatorExpression", "{", "public", "Expression", "left", ",", "right", ";", "public", "Constant", "optimizedBooleanConstant", ";", "public", "BinaryExpression", "(", "Expression", "left", ",", "Expression", "right", ",", "int", "operator", ")", "{", "this", ".", "left", "=", "left", ";", "this", ".", "right", "=", "right", ";", "this", ".", "bits", "|=", "operator", "<<", "ASTNode", ".", "OperatorSHIFT", ";", "this", ".", "sourceStart", "=", "left", ".", "sourceStart", ";", "this", ".", "sourceEnd", "=", "right", ".", "sourceEnd", ";", "}", "public", "BinaryExpression", "(", "BinaryExpression", "expression", ")", "{", "this", ".", "left", "=", "expression", ".", "left", ";", "this", ".", "right", "=", "expression", ".", "right", ";", "this", ".", "bits", "=", "expression", ".", "bits", ";", "this", ".", "sourceStart", "=", "expression", ".", "sourceStart", ";", "this", ".", "sourceEnd", "=", "expression", ".", "sourceEnd", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "resolvedType", ".", "id", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "return", "this", ".", "right", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "this", ".", "left", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ")", ".", "unconditionalInits", "(", ")", ";", "}", "else", "{", "this", ".", "left", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "flowInfo", "=", "this", ".", "left", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "this", ".", "right", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "return", "this", ".", "right", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "}", "}", "public", "void", "computeConstant", "(", "BlockScope", "scope", ",", "int", "leftId", ",", "int", "rightId", ")", "{", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", ")", "{", "try", "{", "this", ".", "constant", "=", "Constant", ".", "computeConstantOperation", "(", "this", ".", "left", ".", "constant", ",", "leftId", ",", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ",", "this", ".", "right", ".", "constant", ",", "rightId", ")", ";", "}", "catch", "(", "ArithmeticException", "e", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "}", "}", "else", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "this", ".", "optimizedBooleanConstant", "(", "leftId", ",", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ",", "rightId", ")", ";", "}", "}", "public", "Constant", "optimizedBooleanConstant", "(", ")", "{", "return", "this", ".", "optimizedBooleanConstant", "==", "null", "?", "this", ".", "constant", ":", "this", ".", "optimizedBooleanConstant", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "valueRequired", ")", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "switch", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ")", "{", "case", "PLUS", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_JavaLangString", ":", "codeStream", ".", "generateStringConcatenationAppend", "(", "currentScope", ",", "this", ".", "left", ",", "this", ".", "right", ")", ";", "if", "(", "!", "valueRequired", ")", "codeStream", ".", "pop", "(", ")", ";", "break", ";", "case", "T_int", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "iadd", "(", ")", ";", "break", ";", "case", "T_long", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "ladd", "(", ")", ";", "break", ";", "case", "T_double", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "dadd", "(", ")", ";", "break", ";", "case", "T_float", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "fadd", "(", ")", ";", "break", ";", "}", "break", ";", "case", "MINUS", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_int", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "isub", "(", ")", ";", "break", ";", "case", "T_long", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "lsub", "(", ")", ";", "break", ";", "case", "T_double", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "dsub", "(", ")", ";", "break", ";", "case", "T_float", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "fsub", "(", ")", ";", "break", ";", "}", "break", ";", "case", "MULTIPLY", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_int", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "imul", "(", ")", ";", "break", ";", "case", "T_long", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "lmul", "(", ")", ";", "break", ";", "case", "T_double", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "dmul", "(", ")", ";", "break", ";", "case", "T_float", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "fmul", "(", ")", ";", "break", ";", "}", "break", ";", "case", "DIVIDE", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_int", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "idiv", "(", ")", ";", "if", "(", "!", "valueRequired", ")", "codeStream", ".", "pop", "(", ")", ";", "break", ";", "case", "T_long", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "ldiv", "(", ")", ";", "if", "(", "!", "valueRequired", ")", "codeStream", ".", "pop2", "(", ")", ";", "break", ";", "case", "T_double", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "ddiv", "(", ")", ";", "break", ";", "case", "T_float", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "fdiv", "(", ")", ";", "break", ";", "}", "break", ";", "case", "REMAINDER", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_int", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "irem", "(", ")", ";", "if", "(", "!", "valueRequired", ")", "codeStream", ".", "pop", "(", ")", ";", "break", ";", "case", "T_long", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "lrem", "(", ")", ";", "if", "(", "!", "valueRequired", ")", "codeStream", ".", "pop2", "(", ")", ";", "break", ";", "case", "T_double", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "drem", "(", ")", ";", "break", ";", "case", "T_float", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "frem", "(", ")", ";", "break", ";", "}", "break", ";", "case", "AND", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_int", ":", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_int", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "iconst_0", "(", ")", ";", "}", "else", "{", "if", "(", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_int", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "iconst_0", "(", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "iand", "(", ")", ";", "}", "}", "break", ";", "case", "T_long", ":", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_long", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "longValue", "(", ")", "==", "0L", ")", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "lconst_0", "(", ")", ";", "}", "else", "{", "if", "(", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_long", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "longValue", "(", ")", "==", "0L", ")", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "lconst_0", "(", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "land", "(", ")", ";", "}", "}", "break", ";", "case", "T_boolean", ":", "generateLogicalAnd", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "break", ";", "}", "break", ";", "case", "OR", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_int", ":", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_int", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "else", "{", "if", "(", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_int", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "ior", "(", ")", ";", "}", "}", "break", ";", "case", "T_long", ":", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_long", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "longValue", "(", ")", "==", "0L", ")", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "else", "{", "if", "(", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_long", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "longValue", "(", ")", "==", "0L", ")", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "lor", "(", ")", ";", "}", "}", "break", ";", "case", "T_boolean", ":", "generateLogicalOr", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "break", ";", "}", "break", ";", "case", "XOR", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_int", ":", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_int", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "else", "{", "if", "(", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_int", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "ixor", "(", ")", ";", "}", "}", "break", ";", "case", "T_long", ":", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_long", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "longValue", "(", ")", "==", "0L", ")", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "else", "{", "if", "(", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_long", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "longValue", "(", ")", "==", "0L", ")", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "lxor", "(", ")", ";", "}", "}", "break", ";", "case", "T_boolean", ":", "generateLogicalXor", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "break", ";", "}", "break", ";", "case", "LEFT_SHIFT", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_int", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "ishl", "(", ")", ";", "break", ";", "case", "T_long", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "lshl", "(", ")", ";", "}", "break", ";", "case", "RIGHT_SHIFT", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_int", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "ishr", "(", ")", ";", "break", ";", "case", "T_long", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "lshr", "(", ")", ";", "}", "break", ";", "case", "UNSIGNED_RIGHT_SHIFT", ":", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "{", "case", "T_int", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "iushr", "(", ")", ";", "break", ";", "case", "T_long", ":", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "codeStream", ".", "lushr", "(", ")", ";", "}", "break", ";", "case", "GREATER", ":", "BranchLabel", "falseLabel", ",", "endLabel", ";", "generateOptimizedGreaterThan", "(", "currentScope", ",", "codeStream", ",", "null", ",", "(", "falseLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_1", "(", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsReturnedValue", ")", "!=", "0", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "generateReturnBytecode", "(", "this", ")", ";", "falseLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_0", "(", ")", ";", "}", "else", "{", "codeStream", ".", "goto_", "(", "endLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ";", "codeStream", ".", "decrStackSize", "(", "1", ")", ";", "falseLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_0", "(", ")", ";", "endLabel", ".", "place", "(", ")", ";", "}", "}", "break", ";", "case", "GREATER_EQUAL", ":", "generateOptimizedGreaterThanOrEqual", "(", "currentScope", ",", "codeStream", ",", "null", ",", "(", "falseLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_1", "(", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsReturnedValue", ")", "!=", "0", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "generateReturnBytecode", "(", "this", ")", ";", "falseLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_0", "(", ")", ";", "}", "else", "{", "codeStream", ".", "goto_", "(", "endLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ";", "codeStream", ".", "decrStackSize", "(", "1", ")", ";", "falseLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_0", "(", ")", ";", "endLabel", ".", "place", "(", ")", ";", "}", "}", "break", ";", "case", "LESS", ":", "generateOptimizedLessThan", "(", "currentScope", ",", "codeStream", ",", "null", ",", "(", "falseLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_1", "(", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsReturnedValue", ")", "!=", "0", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "generateReturnBytecode", "(", "this", ")", ";", "falseLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_0", "(", ")", ";", "}", "else", "{", "codeStream", ".", "goto_", "(", "endLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ";", "codeStream", ".", "decrStackSize", "(", "1", ")", ";", "falseLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_0", "(", ")", ";", "endLabel", ".", "place", "(", ")", ";", "}", "}", "break", ";", "case", "LESS_EQUAL", ":", "generateOptimizedLessThanOrEqual", "(", "currentScope", ",", "codeStream", ",", "null", ",", "(", "falseLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_1", "(", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsReturnedValue", ")", "!=", "0", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "generateReturnBytecode", "(", "this", ")", ";", "falseLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_0", "(", ")", ";", "}", "else", "{", "codeStream", ".", "goto_", "(", "endLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ";", "codeStream", ".", "decrStackSize", "(", "1", ")", ";", "falseLabel", ".", "place", "(", ")", ";", "codeStream", ".", "iconst_0", "(", ")", ";", "endLabel", ".", "place", "(", ")", ";", "}", "}", "}", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "void", "generateOptimizedBoolean", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "if", "(", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "constant", ".", "typeID", "(", ")", "==", "TypeIds", ".", "T_boolean", ")", ")", "{", "super", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "return", ";", "}", "switch", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ")", "{", "case", "LESS", ":", "generateOptimizedLessThan", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "return", ";", "case", "LESS_EQUAL", ":", "generateOptimizedLessThanOrEqual", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "return", ";", "case", "GREATER", ":", "generateOptimizedGreaterThan", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "return", ";", "case", "GREATER_EQUAL", ":", "generateOptimizedGreaterThanOrEqual", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "return", ";", "case", "AND", ":", "generateOptimizedLogicalAnd", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "return", ";", "case", "OR", ":", "generateOptimizedLogicalOr", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "return", ";", "case", "XOR", ":", "generateOptimizedLogicalXor", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "return", ";", "}", "super", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "}", "public", "void", "generateOptimizedGreaterThan", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "int", "promotedTypeID", "=", "(", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ";", "if", "(", "promotedTypeID", "==", "TypeIds", ".", "T_int", ")", "{", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "iflt", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "ifge", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "if", "(", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "ifgt", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "ifle", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "}", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "switch", "(", "promotedTypeID", ")", "{", "case", "T_int", ":", "codeStream", ".", "if_icmpgt", "(", "trueLabel", ")", ";", "break", ";", "case", "T_float", ":", "codeStream", ".", "fcmpl", "(", ")", ";", "codeStream", ".", "ifgt", "(", "trueLabel", ")", ";", "break", ";", "case", "T_long", ":", "codeStream", ".", "lcmp", "(", ")", ";", "codeStream", ".", "ifgt", "(", "trueLabel", ")", ";", "break", ";", "case", "T_double", ":", "codeStream", ".", "dcmpl", "(", ")", ";", "codeStream", ".", "ifgt", "(", "trueLabel", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "switch", "(", "promotedTypeID", ")", "{", "case", "T_int", ":", "codeStream", ".", "if_icmple", "(", "falseLabel", ")", ";", "break", ";", "case", "T_float", ":", "codeStream", ".", "fcmpl", "(", ")", ";", "codeStream", ".", "ifle", "(", "falseLabel", ")", ";", "break", ";", "case", "T_long", ":", "codeStream", ".", "lcmp", "(", ")", ";", "codeStream", ".", "ifle", "(", "falseLabel", ")", ";", "break", ";", "case", "T_double", ":", "codeStream", ".", "dcmpl", "(", ")", ";", "codeStream", ".", "ifle", "(", "falseLabel", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "else", "{", "}", "}", "}", "}", "public", "void", "generateOptimizedGreaterThanOrEqual", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "int", "promotedTypeID", "=", "(", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ";", "if", "(", "promotedTypeID", "==", "TypeIds", ".", "T_int", ")", "{", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "ifle", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "ifgt", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "if", "(", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "ifge", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "iflt", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "}", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "switch", "(", "promotedTypeID", ")", "{", "case", "T_int", ":", "codeStream", ".", "if_icmpge", "(", "trueLabel", ")", ";", "break", ";", "case", "T_float", ":", "codeStream", ".", "fcmpl", "(", ")", ";", "codeStream", ".", "ifge", "(", "trueLabel", ")", ";", "break", ";", "case", "T_long", ":", "codeStream", ".", "lcmp", "(", ")", ";", "codeStream", ".", "ifge", "(", "trueLabel", ")", ";", "break", ";", "case", "T_double", ":", "codeStream", ".", "dcmpl", "(", ")", ";", "codeStream", ".", "ifge", "(", "trueLabel", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "switch", "(", "promotedTypeID", ")", "{", "case", "T_int", ":", "codeStream", ".", "if_icmplt", "(", "falseLabel", ")", ";", "break", ";", "case", "T_float", ":", "codeStream", ".", "fcmpl", "(", ")", ";", "codeStream", ".", "iflt", "(", "falseLabel", ")", ";", "break", ";", "case", "T_long", ":", "codeStream", ".", "lcmp", "(", ")", ";", "codeStream", ".", "iflt", "(", "falseLabel", ")", ";", "break", ";", "case", "T_double", ":", "codeStream", ".", "dcmpl", "(", ")", ";", "codeStream", ".", "iflt", "(", "falseLabel", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "else", "{", "}", "}", "}", "}", "public", "void", "generateOptimizedLessThan", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "int", "promotedTypeID", "=", "(", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ";", "if", "(", "promotedTypeID", "==", "TypeIds", ".", "T_int", ")", "{", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "ifgt", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "ifle", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "if", "(", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "iflt", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "ifge", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "}", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "switch", "(", "promotedTypeID", ")", "{", "case", "T_int", ":", "codeStream", ".", "if_icmplt", "(", "trueLabel", ")", ";", "break", ";", "case", "T_float", ":", "codeStream", ".", "fcmpg", "(", ")", ";", "codeStream", ".", "iflt", "(", "trueLabel", ")", ";", "break", ";", "case", "T_long", ":", "codeStream", ".", "lcmp", "(", ")", ";", "codeStream", ".", "iflt", "(", "trueLabel", ")", ";", "break", ";", "case", "T_double", ":", "codeStream", ".", "dcmpg", "(", ")", ";", "codeStream", ".", "iflt", "(", "trueLabel", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "switch", "(", "promotedTypeID", ")", "{", "case", "T_int", ":", "codeStream", ".", "if_icmpge", "(", "falseLabel", ")", ";", "break", ";", "case", "T_float", ":", "codeStream", ".", "fcmpg", "(", ")", ";", "codeStream", ".", "ifge", "(", "falseLabel", ")", ";", "break", ";", "case", "T_long", ":", "codeStream", ".", "lcmp", "(", ")", ";", "codeStream", ".", "ifge", "(", "falseLabel", ")", ";", "break", ";", "case", "T_double", ":", "codeStream", ".", "dcmpg", "(", ")", ";", "codeStream", ".", "ifge", "(", "falseLabel", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "else", "{", "}", "}", "}", "}", "public", "void", "generateOptimizedLessThanOrEqual", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "int", "promotedTypeID", "=", "(", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ";", "if", "(", "promotedTypeID", "==", "TypeIds", ".", "T_int", ")", "{", "if", "(", "(", "this", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "left", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "ifge", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "iflt", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "if", "(", "(", "this", ".", "right", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "this", ".", "right", ".", "constant", ".", "intValue", "(", ")", "==", "0", ")", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "ifle", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "ifgt", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "}", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "switch", "(", "promotedTypeID", ")", "{", "case", "T_int", ":", "codeStream", ".", "if_icmple", "(", "trueLabel", ")", ";", "break", ";", "case", "T_float", ":", "codeStream", ".", "fcmpg", "(", ")", ";", "codeStream", ".", "ifle", "(", "trueLabel", ")", ";", "break", ";", "case", "T_long", ":", "codeStream", ".", "lcmp", "(", ")", ";", "codeStream", ".", "ifle", "(", "trueLabel", ")", ";", "break", ";", "case", "T_double", ":", "codeStream", ".", "dcmpg", "(", ")", ";", "codeStream", ".", "ifle", "(", "trueLabel", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "switch", "(", "promotedTypeID", ")", "{", "case", "T_int", ":", "codeStream", ".", "if_icmpgt", "(", "falseLabel", ")", ";", "break", ";", "case", "T_float", ":", "codeStream", ".", "fcmpg", "(", ")", ";", "codeStream", ".", "ifgt", "(", "falseLabel", ")", ";", "break", ";", "case", "T_long", ":", "codeStream", ".", "lcmp", "(", ")", ";", "codeStream", ".", "ifgt", "(", "falseLabel", ")", ";", "break", ";", "case", "T_double", ":", "codeStream", ".", "dcmpg", "(", ")", ";", "codeStream", ".", "ifgt", "(", "falseLabel", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "return", ";", "}", "else", "{", "}", "}", "}", "}", "public", "void", "generateLogicalAnd", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "Constant", "condConst", ";", "if", "(", "(", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", "==", "TypeIds", ".", "T_boolean", ")", "{", "if", "(", "(", "condConst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_0", "(", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "return", ";", "}", "if", "(", "(", "condConst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_0", "(", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "return", ";", "}", "}", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iand", "(", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "public", "void", "generateLogicalOr", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "Constant", "condConst", ";", "if", "(", "(", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", "==", "TypeIds", ".", "T_boolean", ")", "{", "if", "(", "(", "condConst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_1", "(", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "return", ";", "}", "if", "(", "(", "condConst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_1", "(", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "}", "return", ";", "}", "}", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "ior", "(", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "public", "void", "generateLogicalXor", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "Constant", "condConst", ";", "if", "(", "(", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", "==", "TypeIds", ".", "T_boolean", ")", "{", "if", "(", "(", "condConst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_1", "(", ")", ";", "}", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "ixor", "(", ")", ";", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "}", "return", ";", "}", "if", "(", "(", "condConst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iconst_1", "(", ")", ";", "codeStream", ".", "ixor", "(", ")", ";", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "}", "else", "{", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "}", "return", ";", "}", "}", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "ixor", "(", ")", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "public", "void", "generateOptimizedLogicalAnd", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "Constant", "condConst", ";", "if", "(", "(", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", "==", "TypeIds", ".", "T_boolean", ")", "{", "if", "(", "(", "condConst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "!=", "null", ")", "{", "codeStream", ".", "goto_", "(", "falseLabel", ")", ";", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "return", ";", "}", "if", "(", "(", "condConst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "}", "else", "{", "BranchLabel", "internalTrueLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "internalTrueLabel", ",", "falseLabel", ",", "false", ")", ";", "internalTrueLabel", ".", "place", "(", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "falseLabel", "!=", "null", ")", "{", "codeStream", ".", "goto_", "(", "falseLabel", ")", ";", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "return", ";", "}", "}", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "iand", "(", ")", ";", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "ifne", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "ifeq", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "public", "void", "generateOptimizedLogicalOr", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "Constant", "condConst", ";", "if", "(", "(", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", "==", "TypeIds", ".", "T_boolean", ")", "{", "if", "(", "(", "condConst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "BranchLabel", "internalFalseLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "internalFalseLabel", ",", "false", ")", ";", "internalFalseLabel", ".", "place", "(", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "goto_", "(", "trueLabel", ")", ";", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "}", "return", ";", "}", "if", "(", "(", "condConst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "BranchLabel", "internalFalseLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "internalFalseLabel", ",", "false", ")", ";", "internalFalseLabel", ".", "place", "(", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "if", "(", "valueRequired", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "goto_", "(", "trueLabel", ")", ";", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "}", "return", ";", "}", "}", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "ior", "(", ")", ";", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "ifne", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "ifeq", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "public", "void", "generateOptimizedLogicalXor", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "BranchLabel", "trueLabel", ",", "BranchLabel", "falseLabel", ",", "boolean", "valueRequired", ")", "{", "Constant", "condConst", ";", "if", "(", "(", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", "==", "TypeIds", ".", "T_boolean", ")", "{", "if", "(", "(", "condConst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "falseLabel", ",", "trueLabel", ",", "valueRequired", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "}", "return", ";", "}", "if", "(", "(", "condConst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "condConst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "falseLabel", ",", "trueLabel", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "}", "else", "{", "this", ".", "left", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "trueLabel", ",", "falseLabel", ",", "false", ")", ";", "}", "return", ";", "}", "}", "this", ".", "left", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "this", ".", "right", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "ixor", "(", ")", ";", "if", "(", "falseLabel", "==", "null", ")", "{", "if", "(", "trueLabel", "!=", "null", ")", "{", "codeStream", ".", "ifne", "(", "trueLabel", ")", ";", "}", "}", "else", "{", "if", "(", "trueLabel", "==", "null", ")", "{", "codeStream", ".", "ifeq", "(", "falseLabel", ")", ";", "}", "else", "{", "}", "}", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "currentScope", ",", "codeStream", ".", "position", ")", ";", "}", "public", "void", "generateOptimizedStringConcatenation", "(", "BlockScope", "blockScope", ",", "CodeStream", "codeStream", ",", "int", "typeID", ")", "{", "if", "(", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ")", "==", "OperatorIds", ".", "PLUS", ")", "&&", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "==", "TypeIds", ".", "T_JavaLangString", ")", ")", "{", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "invokeStringConcatenationAppendForType", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "}", "else", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "left", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "left", ".", "sourceStart", ")", ";", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "right", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "this", ".", "right", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "right", ".", "sourceStart", ")", ";", "}", "}", "else", "{", "super", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "typeID", ")", ";", "}", "}", "public", "void", "generateOptimizedStringConcatenationCreation", "(", "BlockScope", "blockScope", ",", "CodeStream", "codeStream", ",", "int", "typeID", ")", "{", "if", "(", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ")", "==", "OperatorIds", ".", "PLUS", ")", "&&", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "==", "TypeIds", ".", "T_JavaLangString", ")", ")", "{", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "codeStream", ".", "newStringContatenation", "(", ")", ";", "codeStream", ".", "dup", "(", ")", ";", "codeStream", ".", "ldc", "(", "this", ".", "constant", ".", "stringValue", "(", ")", ")", ";", "codeStream", ".", "invokeStringConcatenationStringConstructor", "(", ")", ";", "}", "else", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "left", ".", "generateOptimizedStringConcatenationCreation", "(", "blockScope", ",", "codeStream", ",", "this", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "left", ".", "sourceStart", ")", ";", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "right", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "this", ".", "right", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "right", ".", "sourceStart", ")", ";", "}", "}", "else", "{", "super", ".", "generateOptimizedStringConcatenationCreation", "(", "blockScope", ",", "codeStream", ",", "typeID", ")", ";", "}", "}", "public", "boolean", "isCompactableOperation", "(", ")", "{", "return", "true", ";", "}", "void", "nonRecursiveResolveTypeUpwards", "(", "BlockScope", "scope", ")", "{", "boolean", "leftIsCast", ",", "rightIsCast", ";", "TypeBinding", "leftType", "=", "this", ".", "left", ".", "resolvedType", ";", "if", "(", "(", "rightIsCast", "=", "this", ".", "right", "instanceof", "CastExpression", ")", "==", "true", ")", "{", "this", ".", "right", ".", "bits", "|=", "ASTNode", ".", "DisableUnnecessaryCastCheck", ";", "}", "TypeBinding", "rightType", "=", "this", ".", "right", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "leftType", "==", "null", "||", "rightType", "==", "null", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "return", ";", "}", "int", "leftTypeID", "=", "leftType", ".", "id", ";", "int", "rightTypeID", "=", "rightType", ".", "id", ";", "boolean", "use15specifics", "=", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "if", "(", "use15specifics", ")", "{", "if", "(", "!", "leftType", ".", "isBaseType", "(", ")", "&&", "rightTypeID", "!=", "TypeIds", ".", "T_JavaLangString", "&&", "rightTypeID", "!=", "TypeIds", ".", "T_null", ")", "{", "leftTypeID", "=", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "leftType", ")", ".", "id", ";", "}", "if", "(", "!", "rightType", ".", "isBaseType", "(", ")", "&&", "leftTypeID", "!=", "TypeIds", ".", "T_JavaLangString", "&&", "leftTypeID", "!=", "TypeIds", ".", "T_null", ")", "{", "rightTypeID", "=", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "rightType", ")", ".", "id", ";", "}", "}", "if", "(", "leftTypeID", ">", "15", "||", "rightTypeID", ">", "15", ")", "{", "if", "(", "leftTypeID", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "rightTypeID", "=", "TypeIds", ".", "T_JavaLangObject", ";", "}", "else", "if", "(", "rightTypeID", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "leftTypeID", "=", "TypeIds", ".", "T_JavaLangObject", ";", "}", "else", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidOperator", "(", "this", ",", "leftType", ",", "rightType", ")", ";", "return", ";", "}", "}", "if", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ")", "==", "OperatorIds", ".", "PLUS", ")", "{", "if", "(", "leftTypeID", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "this", ".", "left", ".", "computeConversion", "(", "scope", ",", "leftType", ",", "leftType", ")", ";", "if", "(", "rightType", ".", "isArrayType", "(", ")", "&&", "(", "(", "ArrayBinding", ")", "rightType", ")", ".", "elementsType", "(", ")", "==", "TypeBinding", ".", "CHAR", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "signalNoImplicitStringConversionForCharArrayExpression", "(", "this", ".", "right", ")", ";", "}", "}", "if", "(", "rightTypeID", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "this", ".", "right", ".", "computeConversion", "(", "scope", ",", "rightType", ",", "rightType", ")", ";", "if", "(", "leftType", ".", "isArrayType", "(", ")", "&&", "(", "(", "ArrayBinding", ")", "leftType", ")", ".", "elementsType", "(", ")", "==", "TypeBinding", ".", "CHAR", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "signalNoImplicitStringConversionForCharArrayExpression", "(", "this", ".", "left", ")", ";", "}", "}", "}", "int", "operator", "=", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ";", "int", "operatorSignature", "=", "OperatorExpression", ".", "OperatorSignatures", "[", "operator", "]", "[", "(", "leftTypeID", "<<", "4", ")", "+", "rightTypeID", "]", ";", "this", ".", "left", ".", "computeConversion", "(", "scope", ",", "TypeBinding", ".", "wellKnownType", "(", "scope", ",", "(", "operatorSignature", ">>>", "16", ")", "&", "0x0000F", ")", ",", "leftType", ")", ";", "this", ".", "right", ".", "computeConversion", "(", "scope", ",", "TypeBinding", ".", "wellKnownType", "(", "scope", ",", "(", "operatorSignature", ">>>", "8", ")", "&", "0x0000F", ")", ",", "rightType", ")", ";", "this", ".", "bits", "|=", "operatorSignature", "&", "0xF", ";", "switch", "(", "operatorSignature", "&", "0xF", ")", "{", "case", "T_boolean", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "BOOLEAN", ";", "break", ";", "case", "T_byte", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "BYTE", ";", "break", ";", "case", "T_char", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "CHAR", ";", "break", ";", "case", "T_double", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "DOUBLE", ";", "break", ";", "case", "T_float", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "FLOAT", ";", "break", ";", "case", "T_int", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "INT", ";", "break", ";", "case", "T_long", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "LONG", ";", "break", ";", "case", "T_JavaLangString", ":", "this", ".", "resolvedType", "=", "scope", ".", "getJavaLangString", "(", ")", ";", "break", ";", "default", ":", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidOperator", "(", "this", ",", "leftType", ",", "rightType", ")", ";", "return", ";", "}", "if", "(", "(", "leftIsCast", "=", "(", "this", ".", "left", "instanceof", "CastExpression", ")", ")", "==", "true", "||", "rightIsCast", ")", "{", "CastExpression", ".", "checkNeedForArgumentCasts", "(", "scope", ",", "operator", ",", "operatorSignature", ",", "this", ".", "left", ",", "leftTypeID", ",", "leftIsCast", ",", "this", ".", "right", ",", "rightTypeID", ",", "rightIsCast", ")", ";", "}", "computeConstant", "(", "scope", ",", "leftTypeID", ",", "rightTypeID", ")", ";", "}", "public", "void", "optimizedBooleanConstant", "(", "int", "leftId", ",", "int", "operator", ",", "int", "rightId", ")", "{", "switch", "(", "operator", ")", "{", "case", "AND", ":", "if", "(", "(", "leftId", "!=", "TypeIds", ".", "T_boolean", ")", "||", "(", "rightId", "!=", "TypeIds", ".", "T_boolean", ")", ")", "return", ";", "case", "AND_AND", ":", "Constant", "cst", ";", "if", "(", "(", "cst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "cst", ".", "booleanValue", "(", ")", "==", "false", ")", "{", "this", ".", "optimizedBooleanConstant", "=", "cst", ";", "return", ";", "}", "else", "{", "if", "(", "(", "cst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "this", ".", "optimizedBooleanConstant", "=", "cst", ";", "}", "return", ";", "}", "}", "if", "(", "(", "cst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "cst", ".", "booleanValue", "(", ")", "==", "false", ")", "{", "this", ".", "optimizedBooleanConstant", "=", "cst", ";", "}", "}", "return", ";", "case", "OR", ":", "if", "(", "(", "leftId", "!=", "TypeIds", ".", "T_boolean", ")", "||", "(", "rightId", "!=", "TypeIds", ".", "T_boolean", ")", ")", "return", ";", "case", "OR_OR", ":", "if", "(", "(", "cst", "=", "this", ".", "left", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "cst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "optimizedBooleanConstant", "=", "cst", ";", "return", ";", "}", "else", "{", "if", "(", "(", "cst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "this", ".", "optimizedBooleanConstant", "=", "cst", ";", "}", "return", ";", "}", "}", "if", "(", "(", "cst", "=", "this", ".", "right", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "cst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "optimizedBooleanConstant", "=", "cst", ";", "}", "}", "}", "}", "public", "StringBuffer", "printExpressionNoParenthesis", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "this", ".", "left", ".", "printExpression", "(", "indent", ",", "output", ")", ".", "append", "(", "'", "'", ")", ".", "append", "(", "operatorToString", "(", ")", ")", ".", "append", "(", "'", "'", ")", ";", "return", "this", ".", "right", ".", "printExpression", "(", "0", ",", "output", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "boolean", "leftIsCast", ",", "rightIsCast", ";", "if", "(", "(", "leftIsCast", "=", "this", ".", "left", "instanceof", "CastExpression", ")", "==", "true", ")", "this", ".", "left", ".", "bits", "|=", "ASTNode", ".", "DisableUnnecessaryCastCheck", ";", "TypeBinding", "leftType", "=", "this", ".", "left", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "(", "rightIsCast", "=", "this", ".", "right", "instanceof", "CastExpression", ")", "==", "true", ")", "this", ".", "right", ".", "bits", "|=", "ASTNode", ".", "DisableUnnecessaryCastCheck", ";", "TypeBinding", "rightType", "=", "this", ".", "right", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "leftType", "==", "null", "||", "rightType", "==", "null", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "return", "null", ";", "}", "int", "leftTypeID", "=", "leftType", ".", "id", ";", "int", "rightTypeID", "=", "rightType", ".", "id", ";", "boolean", "use15specifics", "=", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "if", "(", "use15specifics", ")", "{", "if", "(", "!", "leftType", ".", "isBaseType", "(", ")", "&&", "rightTypeID", "!=", "TypeIds", ".", "T_JavaLangString", "&&", "rightTypeID", "!=", "TypeIds", ".", "T_null", ")", "{", "leftTypeID", "=", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "leftType", ")", ".", "id", ";", "}", "if", "(", "!", "rightType", ".", "isBaseType", "(", ")", "&&", "leftTypeID", "!=", "TypeIds", ".", "T_JavaLangString", "&&", "leftTypeID", "!=", "TypeIds", ".", "T_null", ")", "{", "rightTypeID", "=", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "rightType", ")", ".", "id", ";", "}", "}", "if", "(", "leftTypeID", ">", "15", "||", "rightTypeID", ">", "15", ")", "{", "if", "(", "leftTypeID", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "rightTypeID", "=", "TypeIds", ".", "T_JavaLangObject", ";", "}", "else", "if", "(", "rightTypeID", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "leftTypeID", "=", "TypeIds", ".", "T_JavaLangObject", ";", "}", "else", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidOperator", "(", "this", ",", "leftType", ",", "rightType", ")", ";", "return", "null", ";", "}", "}", "if", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ")", "==", "OperatorIds", ".", "PLUS", ")", "{", "if", "(", "leftTypeID", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "this", ".", "left", ".", "computeConversion", "(", "scope", ",", "leftType", ",", "leftType", ")", ";", "if", "(", "rightType", ".", "isArrayType", "(", ")", "&&", "(", "(", "ArrayBinding", ")", "rightType", ")", ".", "elementsType", "(", ")", "==", "TypeBinding", ".", "CHAR", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "signalNoImplicitStringConversionForCharArrayExpression", "(", "this", ".", "right", ")", ";", "}", "}", "if", "(", "rightTypeID", "==", "TypeIds", ".", "T_JavaLangString", ")", "{", "this", ".", "right", ".", "computeConversion", "(", "scope", ",", "rightType", ",", "rightType", ")", ";", "if", "(", "leftType", ".", "isArrayType", "(", ")", "&&", "(", "(", "ArrayBinding", ")", "leftType", ")", ".", "elementsType", "(", ")", "==", "TypeBinding", ".", "CHAR", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "signalNoImplicitStringConversionForCharArrayExpression", "(", "this", ".", "left", ")", ";", "}", "}", "}", "int", "operator", "=", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ";", "int", "operatorSignature", "=", "OperatorExpression", ".", "OperatorSignatures", "[", "operator", "]", "[", "(", "leftTypeID", "<<", "4", ")", "+", "rightTypeID", "]", ";", "this", ".", "left", ".", "computeConversion", "(", "scope", ",", "TypeBinding", ".", "wellKnownType", "(", "scope", ",", "(", "operatorSignature", ">>>", "16", ")", "&", "0x0000F", ")", ",", "leftType", ")", ";", "this", ".", "right", ".", "computeConversion", "(", "scope", ",", "TypeBinding", ".", "wellKnownType", "(", "scope", ",", "(", "operatorSignature", ">>>", "8", ")", "&", "0x0000F", ")", ",", "rightType", ")", ";", "this", ".", "bits", "|=", "operatorSignature", "&", "0xF", ";", "switch", "(", "operatorSignature", "&", "0xF", ")", "{", "case", "T_boolean", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "BOOLEAN", ";", "break", ";", "case", "T_byte", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "BYTE", ";", "break", ";", "case", "T_char", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "CHAR", ";", "break", ";", "case", "T_double", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "DOUBLE", ";", "break", ";", "case", "T_float", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "FLOAT", ";", "break", ";", "case", "T_int", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "INT", ";", "break", ";", "case", "T_long", ":", "this", ".", "resolvedType", "=", "TypeBinding", ".", "LONG", ";", "break", ";", "case", "T_JavaLangString", ":", "this", ".", "resolvedType", "=", "scope", ".", "getJavaLangString", "(", ")", ";", "break", ";", "default", ":", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidOperator", "(", "this", ",", "leftType", ",", "rightType", ")", ";", "return", "null", ";", "}", "if", "(", "leftIsCast", "||", "rightIsCast", ")", "{", "CastExpression", ".", "checkNeedForArgumentCasts", "(", "scope", ",", "operator", ",", "operatorSignature", ",", "this", ".", "left", ",", "leftTypeID", ",", "leftIsCast", ",", "this", ".", "right", ",", "rightTypeID", ",", "rightIsCast", ")", ";", "}", "computeConstant", "(", "scope", ",", "leftTypeID", ",", "rightTypeID", ")", ";", "return", "this", ".", "resolvedType", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "this", ".", "left", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "this", ".", "right", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
4,227
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "Opcodes", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "CompilerOptions", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Binding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ClassScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "FieldBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "LocalVariableBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MethodBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MethodScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MissingTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemFieldBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemReasons", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Scope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "SourceTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "SyntheticMethodBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TagBits", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "VariableBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "ProblemSeverities", ";", "public", "class", "QualifiedNameReference", "extends", "NameReference", "{", "public", "char", "[", "]", "[", "]", "tokens", ";", "public", "long", "[", "]", "sourcePositions", ";", "public", "FieldBinding", "[", "]", "otherBindings", ";", "int", "[", "]", "otherDepths", ";", "public", "int", "indexOfFirstFieldBinding", ";", "public", "SyntheticMethodBinding", "syntheticWriteAccessor", ";", "public", "SyntheticMethodBinding", "[", "]", "syntheticReadAccessors", ";", "public", "TypeBinding", "genericCast", ";", "public", "TypeBinding", "[", "]", "otherGenericCasts", ";", "public", "QualifiedNameReference", "(", "char", "[", "]", "[", "]", "tokens", ",", "long", "[", "]", "positions", ",", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "tokens", "=", "tokens", ";", "this", ".", "sourcePositions", "=", "positions", ";", "this", ".", "sourceStart", "=", "sourceStart", ";", "this", ".", "sourceEnd", "=", "sourceEnd", ";", "}", "public", "FlowInfo", "analyseAssignment", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ",", "Assignment", "assignment", ",", "boolean", "isCompound", ")", "{", "int", "otherBindingsCount", "=", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ";", "boolean", "needValue", "=", "otherBindingsCount", "==", "0", "||", "!", "this", ".", "otherBindings", "[", "0", "]", ".", "isStatic", "(", ")", ";", "boolean", "complyTo14", "=", "currentScope", ".", "compilerOptions", "(", ")", ".", "complianceLevel", ">=", "ClassFileConstants", ".", "JDK1_4", ";", "FieldBinding", "lastFieldBinding", "=", "null", ";", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "lastFieldBinding", "=", "(", "FieldBinding", ")", "this", ".", "binding", ";", "if", "(", "needValue", "||", "complyTo14", ")", "{", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "lastFieldBinding", ",", "0", ",", "flowInfo", ")", ";", "}", "if", "(", "lastFieldBinding", ".", "isBlankFinal", "(", ")", "&&", "this", ".", "otherBindings", "!=", "null", "&&", "currentScope", ".", "needBlankFinalFieldInitializationCheck", "(", "lastFieldBinding", ")", ")", "{", "FlowInfo", "fieldInits", "=", "flowContext", ".", "getInitsForFinalBlankInitializationCheck", "(", "lastFieldBinding", ".", "declaringClass", ".", "original", "(", ")", ",", "flowInfo", ")", ";", "if", "(", "!", "fieldInits", ".", "isDefinitelyAssigned", "(", "lastFieldBinding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "uninitializedBlankFinalField", "(", "lastFieldBinding", ",", "this", ")", ";", "}", "}", "if", "(", "!", "lastFieldBinding", ".", "isStatic", "(", ")", ")", "{", "currentScope", ".", "resetEnclosingMethodStaticFlag", "(", ")", ";", "}", "break", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "localBinding", ";", "if", "(", "!", "flowInfo", ".", "isDefinitelyAssigned", "(", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "uninitializedLocalVariable", "(", "localBinding", ",", "this", ")", ";", "}", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ")", "{", "localBinding", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "}", "else", "if", "(", "localBinding", ".", "useFlag", "==", "LocalVariableBinding", ".", "UNUSED", ")", "{", "localBinding", ".", "useFlag", "=", "LocalVariableBinding", ".", "FAKE_USED", ";", "}", "if", "(", "needValue", ")", "{", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ",", "true", ")", ";", "}", "}", "if", "(", "needValue", ")", "{", "manageEnclosingInstanceAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ")", ";", "}", "if", "(", "this", ".", "otherBindings", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "otherBindingsCount", "-", "1", ";", "i", "++", ")", "{", "lastFieldBinding", "=", "this", ".", "otherBindings", "[", "i", "]", ";", "needValue", "=", "!", "this", ".", "otherBindings", "[", "i", "+", "1", "]", ".", "isStatic", "(", ")", ";", "if", "(", "needValue", "||", "complyTo14", ")", "{", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "lastFieldBinding", ",", "i", "+", "1", ",", "flowInfo", ")", ";", "}", "}", "lastFieldBinding", "=", "this", ".", "otherBindings", "[", "otherBindingsCount", "-", "1", "]", ";", "}", "if", "(", "isCompound", ")", "{", "if", "(", "otherBindingsCount", "==", "0", "&&", "lastFieldBinding", ".", "isBlankFinal", "(", ")", "&&", "currentScope", ".", "needBlankFinalFieldInitializationCheck", "(", "lastFieldBinding", ")", ")", "{", "FlowInfo", "fieldInits", "=", "flowContext", ".", "getInitsForFinalBlankInitializationCheck", "(", "lastFieldBinding", ".", "declaringClass", ",", "flowInfo", ")", ";", "if", "(", "!", "fieldInits", ".", "isDefinitelyAssigned", "(", "lastFieldBinding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "uninitializedBlankFinalField", "(", "lastFieldBinding", ",", "this", ")", ";", "}", "}", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "lastFieldBinding", ",", "otherBindingsCount", ",", "flowInfo", ")", ";", "}", "if", "(", "assignment", ".", "expression", "!=", "null", ")", "{", "flowInfo", "=", "assignment", ".", "expression", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "}", "if", "(", "lastFieldBinding", ".", "isFinal", "(", ")", ")", "{", "if", "(", "otherBindingsCount", "==", "0", "&&", "this", ".", "indexOfFirstFieldBinding", "==", "1", "&&", "lastFieldBinding", ".", "isBlankFinal", "(", ")", "&&", "!", "isCompound", "&&", "currentScope", ".", "allowBlankFinalFieldAssignment", "(", "lastFieldBinding", ")", ")", "{", "if", "(", "flowInfo", ".", "isPotentiallyAssigned", "(", "lastFieldBinding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "duplicateInitializationOfBlankFinalField", "(", "lastFieldBinding", ",", "this", ")", ";", "}", "else", "{", "flowContext", ".", "recordSettingFinal", "(", "lastFieldBinding", ",", "this", ",", "flowInfo", ")", ";", "}", "flowInfo", ".", "markAsDefinitelyAssigned", "(", "lastFieldBinding", ")", ";", "}", "else", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "cannotAssignToFinalField", "(", "lastFieldBinding", ",", "this", ")", ";", "if", "(", "otherBindingsCount", "==", "0", "&&", "currentScope", ".", "allowBlankFinalFieldAssignment", "(", "lastFieldBinding", ")", ")", "{", "flowInfo", ".", "markAsDefinitelyAssigned", "(", "lastFieldBinding", ")", ";", "}", "}", "}", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "lastFieldBinding", ",", "-", "1", ",", "flowInfo", ")", ";", "return", "flowInfo", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "return", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ",", "true", ")", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ",", "boolean", "valueRequired", ")", "{", "int", "otherBindingsCount", "=", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ";", "boolean", "needValue", "=", "otherBindingsCount", "==", "0", "?", "valueRequired", ":", "!", "this", ".", "otherBindings", "[", "0", "]", ".", "isStatic", "(", ")", ";", "boolean", "complyTo14", "=", "currentScope", ".", "compilerOptions", "(", ")", ".", "complianceLevel", ">=", "ClassFileConstants", ".", "JDK1_4", ";", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "if", "(", "needValue", "||", "complyTo14", ")", "{", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "(", "FieldBinding", ")", "this", ".", "binding", ",", "0", ",", "flowInfo", ")", ";", "}", "FieldBinding", "fieldBinding", "=", "(", "FieldBinding", ")", "this", ".", "binding", ";", "if", "(", "this", ".", "indexOfFirstFieldBinding", "==", "1", ")", "{", "if", "(", "fieldBinding", ".", "isBlankFinal", "(", ")", "&&", "currentScope", ".", "needBlankFinalFieldInitializationCheck", "(", "fieldBinding", ")", ")", "{", "FlowInfo", "fieldInits", "=", "flowContext", ".", "getInitsForFinalBlankInitializationCheck", "(", "fieldBinding", ".", "declaringClass", ".", "original", "(", ")", ",", "flowInfo", ")", ";", "if", "(", "!", "fieldInits", ".", "isDefinitelyAssigned", "(", "fieldBinding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "uninitializedBlankFinalField", "(", "fieldBinding", ",", "this", ")", ";", "}", "}", "}", "if", "(", "!", "fieldBinding", ".", "isStatic", "(", ")", ")", "{", "currentScope", ".", "resetEnclosingMethodStaticFlag", "(", ")", ";", "}", "break", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "localBinding", ";", "if", "(", "!", "flowInfo", ".", "isDefinitelyAssigned", "(", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "uninitializedLocalVariable", "(", "localBinding", ",", "this", ")", ";", "}", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ")", "{", "localBinding", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "}", "else", "if", "(", "localBinding", ".", "useFlag", "==", "LocalVariableBinding", ".", "UNUSED", ")", "{", "localBinding", ".", "useFlag", "=", "LocalVariableBinding", ".", "FAKE_USED", ";", "}", "if", "(", "needValue", ")", "{", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ",", "true", ")", ";", "}", "}", "if", "(", "needValue", ")", "{", "manageEnclosingInstanceAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ")", ";", "}", "if", "(", "this", ".", "otherBindings", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "otherBindingsCount", ";", "i", "++", ")", "{", "needValue", "=", "i", "<", "otherBindingsCount", "-", "1", "?", "!", "this", ".", "otherBindings", "[", "i", "+", "1", "]", ".", "isStatic", "(", ")", ":", "valueRequired", ";", "if", "(", "needValue", "||", "complyTo14", ")", "{", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "this", ".", "otherBindings", "[", "i", "]", ",", "i", "+", "1", ",", "flowInfo", ")", ";", "}", "}", "}", "return", "flowInfo", ";", "}", "public", "void", "checkNPE", "(", "BlockScope", "scope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ",", "boolean", "checkString", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "==", "Binding", ".", "LOCAL", ")", "{", "LocalVariableBinding", "local", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "if", "(", "local", "!=", "null", "&&", "(", "local", ".", "type", ".", "tagBits", "&", "TagBits", ".", "IsBaseType", ")", "==", "0", "&&", "(", "checkString", "||", "local", ".", "type", ".", "id", "!=", "TypeIds", ".", "T_JavaLangString", ")", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsNonNull", ")", "==", "0", ")", "{", "flowContext", ".", "recordUsingNullReference", "(", "scope", ",", "local", ",", "this", ",", "FlowContext", ".", "MAY_NULL", ",", "flowInfo", ")", ";", "}", "flowInfo", ".", "markAsComparedEqualToNonNull", "(", "local", ")", ";", "if", "(", "(", "flowContext", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "!=", "0", ")", "{", "flowInfo", ".", "markedAsNullOrNonNullInAssertExpression", "(", "local", ")", ";", "}", "if", "(", "flowContext", ".", "initsOnFinally", "!=", "null", ")", "{", "flowContext", ".", "initsOnFinally", ".", "markAsComparedEqualToNonNull", "(", "local", ")", ";", "if", "(", "(", "flowContext", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "!=", "0", ")", "{", "flowContext", ".", "initsOnFinally", ".", "markedAsNullOrNonNullInAssertExpression", "(", "local", ")", ";", "}", "}", "}", "}", "}", "public", "void", "computeConversion", "(", "Scope", "scope", ",", "TypeBinding", "runtimeTimeType", ",", "TypeBinding", "compileTimeType", ")", "{", "if", "(", "runtimeTimeType", "==", "null", "||", "compileTimeType", "==", "null", ")", "return", ";", "FieldBinding", "field", "=", "null", ";", "int", "length", "=", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ";", "if", "(", "length", "==", "0", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "Binding", ".", "FIELD", ")", "!=", "0", "&&", "this", ".", "binding", "!=", "null", "&&", "this", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "field", "=", "(", "FieldBinding", ")", "this", ".", "binding", ";", "}", "}", "else", "{", "field", "=", "this", ".", "otherBindings", "[", "length", "-", "1", "]", ";", "}", "if", "(", "field", "!=", "null", ")", "{", "FieldBinding", "originalBinding", "=", "field", ".", "original", "(", ")", ";", "TypeBinding", "originalType", "=", "originalBinding", ".", "type", ";", "if", "(", "originalType", ".", "leafComponentType", "(", ")", ".", "isTypeVariable", "(", ")", ")", "{", "TypeBinding", "targetType", "=", "(", "!", "compileTimeType", ".", "isBaseType", "(", ")", "&&", "runtimeTimeType", ".", "isBaseType", "(", ")", ")", "?", "compileTimeType", ":", "runtimeTimeType", ";", "TypeBinding", "typeCast", "=", "originalType", ".", "genericCast", "(", "targetType", ")", ";", "setGenericCast", "(", "length", ",", "typeCast", ")", ";", "if", "(", "typeCast", "instanceof", "ReferenceBinding", ")", "{", "ReferenceBinding", "referenceCast", "=", "(", "ReferenceBinding", ")", "typeCast", ";", "if", "(", "!", "referenceCast", ".", "canBeSeenBy", "(", "scope", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "invalidType", "(", "this", ",", "new", "ProblemReferenceBinding", "(", "CharOperation", ".", "splitOn", "(", "'.'", ",", "referenceCast", ".", "shortReadableName", "(", ")", ")", ",", "referenceCast", ",", "ProblemReasons", ".", "NotVisible", ")", ")", ";", "}", "}", "}", "}", "super", ".", "computeConversion", "(", "scope", ",", "runtimeTimeType", ",", "compileTimeType", ")", ";", "}", "public", "void", "generateAssignment", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "Assignment", "assignment", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "FieldBinding", "lastFieldBinding", "=", "generateReadSequence", "(", "currentScope", ",", "codeStream", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "assignment", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "fieldStore", "(", "currentScope", ",", "codeStream", ",", "lastFieldBinding", ",", "this", ".", "syntheticWriteAccessor", ",", "getFinalReceiverType", "(", ")", ",", "false", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "assignment", ".", "implicitConversion", ")", ";", "}", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "}", "else", "{", "FieldBinding", "lastFieldBinding", "=", "generateReadSequence", "(", "currentScope", ",", "codeStream", ")", ";", "if", "(", "lastFieldBinding", "!=", "null", ")", "{", "boolean", "isStatic", "=", "lastFieldBinding", ".", "isStatic", "(", ")", ";", "Constant", "fieldConstant", "=", "lastFieldBinding", ".", "constant", "(", ")", ";", "if", "(", "fieldConstant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "!", "isStatic", ")", "{", "codeStream", ".", "invokeObjectGetClass", "(", ")", ";", "codeStream", ".", "pop", "(", ")", ";", "}", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "fieldConstant", ",", "this", ".", "implicitConversion", ")", ";", "}", "}", "else", "{", "boolean", "isFirst", "=", "lastFieldBinding", "==", "this", ".", "binding", "&&", "(", "this", ".", "indexOfFirstFieldBinding", "==", "1", "||", "lastFieldBinding", ".", "declaringClass", "==", "currentScope", ".", "enclosingReceiverType", "(", ")", ")", "&&", "this", ".", "otherBindings", "==", "null", ";", "TypeBinding", "requiredGenericCast", "=", "getGenericCast", "(", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ")", ";", "if", "(", "valueRequired", "||", "(", "!", "isFirst", "&&", "currentScope", ".", "compilerOptions", "(", ")", ".", "complianceLevel", ">=", "ClassFileConstants", ".", "JDK1_4", ")", "||", "(", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "||", "requiredGenericCast", "!=", "null", ")", "{", "int", "lastFieldPc", "=", "codeStream", ".", "position", ";", "if", "(", "lastFieldBinding", ".", "declaringClass", "==", "null", ")", "{", "codeStream", ".", "arraylength", "(", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "codeStream", ".", "pop", "(", ")", ";", "}", "}", "else", "{", "SyntheticMethodBinding", "accessor", "=", "this", ".", "syntheticReadAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticReadAccessors", "[", "this", ".", "syntheticReadAccessors", ".", "length", "-", "1", "]", ";", "if", "(", "accessor", "==", "null", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "lastFieldBinding", ",", "getFinalReceiverType", "(", ")", ",", "isFirst", ")", ";", "if", "(", "isStatic", ")", "{", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "lastFieldBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getfield", ",", "lastFieldBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "accessor", ",", "null", ")", ";", "}", "if", "(", "requiredGenericCast", "!=", "null", ")", "codeStream", ".", "checkcast", "(", "requiredGenericCast", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "boolean", "isUnboxing", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ";", "if", "(", "isUnboxing", ")", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "switch", "(", "isUnboxing", "?", "postConversionType", "(", "currentScope", ")", ".", "id", ":", "lastFieldBinding", ".", "type", ".", "id", ")", "{", "case", "T_long", ":", "case", "T_double", ":", "codeStream", ".", "pop2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "pop", "(", ")", ";", "break", ";", "}", "}", "}", "int", "fieldPosition", "=", "(", "int", ")", "(", "this", ".", "sourcePositions", "[", "this", ".", "sourcePositions", ".", "length", "-", "1", "]", ">>>", "32", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "lastFieldPc", ",", "fieldPosition", ")", ";", "}", "else", "{", "if", "(", "!", "isStatic", ")", "{", "codeStream", ".", "invokeObjectGetClass", "(", ")", ";", "codeStream", ".", "pop", "(", ")", ";", "}", "}", "}", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "void", "generateCompoundAssignment", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "Expression", "expression", ",", "int", "operator", ",", "int", "assignmentImplicitConversion", ",", "boolean", "valueRequired", ")", "{", "FieldBinding", "lastFieldBinding", "=", "generateReadSequence", "(", "currentScope", ",", "codeStream", ")", ";", "reportOnlyUselesslyReadPrivateField", "(", "currentScope", ",", "lastFieldBinding", ",", "valueRequired", ")", ";", "boolean", "isFirst", "=", "lastFieldBinding", "==", "this", ".", "binding", "&&", "(", "this", ".", "indexOfFirstFieldBinding", "==", "1", "||", "lastFieldBinding", ".", "declaringClass", "==", "currentScope", ".", "enclosingReceiverType", "(", ")", ")", "&&", "this", ".", "otherBindings", "==", "null", ";", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "lastFieldBinding", ",", "getFinalReceiverType", "(", ")", ",", "isFirst", ")", ";", "SyntheticMethodBinding", "accessor", "=", "this", ".", "syntheticReadAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticReadAccessors", "[", "this", ".", "syntheticReadAccessors", ".", "length", "-", "1", "]", ";", "if", "(", "lastFieldBinding", ".", "isStatic", "(", ")", ")", "{", "if", "(", "accessor", "==", "null", ")", "{", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "lastFieldBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "accessor", ",", "null", ")", ";", "}", "}", "else", "{", "codeStream", ".", "dup", "(", ")", ";", "if", "(", "accessor", "==", "null", ")", "{", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getfield", ",", "lastFieldBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "accessor", ",", "null", ")", ";", "}", "}", "int", "operationTypeID", ";", "switch", "(", "operationTypeID", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ")", "{", "case", "T_JavaLangString", ":", "case", "T_JavaLangObject", ":", "case", "T_undefined", ":", "codeStream", ".", "generateStringConcatenationAppend", "(", "currentScope", ",", "null", ",", "expression", ")", ";", "break", ";", "default", ":", "TypeBinding", "requiredGenericCast", "=", "getGenericCast", "(", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ")", ";", "if", "(", "requiredGenericCast", "!=", "null", ")", "codeStream", ".", "checkcast", "(", "requiredGenericCast", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "if", "(", "expression", "==", "IntLiteral", ".", "One", ")", "{", "codeStream", ".", "generateConstant", "(", "expression", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "}", "codeStream", ".", "sendOperator", "(", "operator", ",", "operationTypeID", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "assignmentImplicitConversion", ")", ";", "}", "fieldStore", "(", "currentScope", ",", "codeStream", ",", "lastFieldBinding", ",", "this", ".", "syntheticWriteAccessor", ",", "getFinalReceiverType", "(", ")", ",", "false", ",", "valueRequired", ")", ";", "}", "public", "void", "generatePostIncrement", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "CompoundAssignment", "postIncrement", ",", "boolean", "valueRequired", ")", "{", "FieldBinding", "lastFieldBinding", "=", "generateReadSequence", "(", "currentScope", ",", "codeStream", ")", ";", "reportOnlyUselesslyReadPrivateField", "(", "currentScope", ",", "lastFieldBinding", ",", "valueRequired", ")", ";", "boolean", "isFirst", "=", "lastFieldBinding", "==", "this", ".", "binding", "&&", "(", "this", ".", "indexOfFirstFieldBinding", "==", "1", "||", "lastFieldBinding", ".", "declaringClass", "==", "currentScope", ".", "enclosingReceiverType", "(", ")", ")", "&&", "this", ".", "otherBindings", "==", "null", ";", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "lastFieldBinding", ",", "getFinalReceiverType", "(", ")", ",", "isFirst", ")", ";", "SyntheticMethodBinding", "accessor", "=", "this", ".", "syntheticReadAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticReadAccessors", "[", "this", ".", "syntheticReadAccessors", ".", "length", "-", "1", "]", ";", "if", "(", "lastFieldBinding", ".", "isStatic", "(", ")", ")", "{", "if", "(", "accessor", "==", "null", ")", "{", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "lastFieldBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "accessor", ",", "constantPoolDeclaringClass", ")", ";", "}", "}", "else", "{", "codeStream", ".", "dup", "(", ")", ";", "if", "(", "accessor", "==", "null", ")", "{", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getfield", ",", "lastFieldBinding", ",", "null", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "accessor", ",", "null", ")", ";", "}", "}", "TypeBinding", "requiredGenericCast", "=", "getGenericCast", "(", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ")", ";", "TypeBinding", "operandType", ";", "if", "(", "requiredGenericCast", "!=", "null", ")", "{", "codeStream", ".", "checkcast", "(", "requiredGenericCast", ")", ";", "operandType", "=", "requiredGenericCast", ";", "}", "else", "{", "operandType", "=", "lastFieldBinding", ".", "type", ";", "}", "if", "(", "valueRequired", ")", "{", "if", "(", "lastFieldBinding", ".", "isStatic", "(", ")", ")", "{", "switch", "(", "operandType", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "codeStream", ".", "dup2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "dup", "(", ")", ";", "break", ";", "}", "}", "else", "{", "switch", "(", "operandType", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "codeStream", ".", "dup2_x1", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "dup_x1", "(", ")", ";", "break", ";", "}", "}", "}", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "generateConstant", "(", "postIncrement", ".", "expression", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "sendOperator", "(", "postIncrement", ".", "operator", ",", "this", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "postIncrement", ".", "preAssignImplicitConversion", ")", ";", "fieldStore", "(", "currentScope", ",", "codeStream", ",", "lastFieldBinding", ",", "this", ".", "syntheticWriteAccessor", ",", "getFinalReceiverType", "(", ")", ",", "false", ",", "false", ")", ";", "}", "public", "FieldBinding", "generateReadSequence", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ")", "{", "int", "otherBindingsCount", "=", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ";", "boolean", "needValue", "=", "otherBindingsCount", "==", "0", "||", "!", "this", ".", "otherBindings", "[", "0", "]", ".", "isStatic", "(", ")", ";", "FieldBinding", "lastFieldBinding", ";", "TypeBinding", "lastGenericCast", ";", "TypeBinding", "lastReceiverType", ";", "boolean", "complyTo14", "=", "currentScope", ".", "compilerOptions", "(", ")", ".", "complianceLevel", ">=", "ClassFileConstants", ".", "JDK1_4", ";", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "lastFieldBinding", "=", "(", "(", "FieldBinding", ")", "this", ".", "binding", ")", ".", "original", "(", ")", ";", "lastGenericCast", "=", "this", ".", "genericCast", ";", "lastReceiverType", "=", "this", ".", "actualReceiverType", ";", "if", "(", "lastFieldBinding", ".", "constant", "(", ")", "!=", "Constant", ".", "NotAConstant", ")", "{", "break", ";", "}", "if", "(", "(", "needValue", "&&", "!", "lastFieldBinding", ".", "isStatic", "(", ")", ")", "||", "lastGenericCast", "!=", "null", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", "{", "ReferenceBinding", "targetType", "=", "currentScope", ".", "enclosingSourceType", "(", ")", ".", "enclosingTypeAt", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ")", ";", "Object", "[", "]", "emulationPath", "=", "currentScope", ".", "getEmulationPath", "(", "targetType", ",", "true", ",", "false", ")", ";", "codeStream", ".", "generateOuterAccess", "(", "emulationPath", ",", "this", ",", "targetType", ",", "currentScope", ")", ";", "}", "else", "{", "generateReceiver", "(", "codeStream", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "break", ";", "case", "Binding", ".", "LOCAL", ":", "lastFieldBinding", "=", "null", ";", "lastGenericCast", "=", "null", ";", "LocalVariableBinding", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "lastReceiverType", "=", "localBinding", ".", "type", ";", "if", "(", "!", "needValue", ")", "break", ";", "Constant", "localConstant", "=", "localBinding", ".", "constant", "(", ")", ";", "if", "(", "localConstant", "!=", "Constant", ".", "NotAConstant", ")", "{", "codeStream", ".", "generateConstant", "(", "localConstant", ",", "0", ")", ";", "}", "else", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", "{", "VariableBinding", "[", "]", "path", "=", "currentScope", ".", "getEmulationPath", "(", "localBinding", ")", ";", "codeStream", ".", "generateOuterAccess", "(", "path", ",", "this", ",", "localBinding", ",", "currentScope", ")", ";", "}", "else", "{", "codeStream", ".", "load", "(", "localBinding", ")", ";", "}", "}", "break", ";", "default", ":", "return", "null", ";", "}", "int", "positionsLength", "=", "this", ".", "sourcePositions", ".", "length", ";", "FieldBinding", "initialFieldBinding", "=", "lastFieldBinding", ";", "if", "(", "this", ".", "otherBindings", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "otherBindingsCount", ";", "i", "++", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "FieldBinding", "nextField", "=", "this", ".", "otherBindings", "[", "i", "]", ".", "original", "(", ")", ";", "TypeBinding", "nextGenericCast", "=", "this", ".", "otherGenericCasts", "==", "null", "?", "null", ":", "this", ".", "otherGenericCasts", "[", "i", "]", ";", "if", "(", "lastFieldBinding", "!=", "null", ")", "{", "needValue", "=", "!", "nextField", ".", "isStatic", "(", ")", ";", "Constant", "fieldConstant", "=", "lastFieldBinding", ".", "constant", "(", ")", ";", "if", "(", "fieldConstant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "i", ">", "0", "&&", "!", "lastFieldBinding", ".", "isStatic", "(", ")", ")", "{", "codeStream", ".", "invokeObjectGetClass", "(", ")", ";", "codeStream", ".", "pop", "(", ")", ";", "}", "if", "(", "needValue", ")", "{", "codeStream", ".", "generateConstant", "(", "fieldConstant", ",", "0", ")", ";", "}", "}", "else", "{", "if", "(", "needValue", "||", "(", "i", ">", "0", "&&", "complyTo14", ")", "||", "lastGenericCast", "!=", "null", ")", "{", "MethodBinding", "accessor", "=", "this", ".", "syntheticReadAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticReadAccessors", "[", "i", "]", ";", "if", "(", "accessor", "==", "null", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "lastFieldBinding", ",", "lastReceiverType", ",", "i", "==", "0", "&&", "this", ".", "indexOfFirstFieldBinding", "==", "1", ")", ";", "if", "(", "lastFieldBinding", ".", "isStatic", "(", ")", ")", "{", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "lastFieldBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getfield", ",", "lastFieldBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "accessor", ",", "null", ")", ";", "}", "if", "(", "lastGenericCast", "!=", "null", ")", "{", "codeStream", ".", "checkcast", "(", "lastGenericCast", ")", ";", "lastReceiverType", "=", "lastGenericCast", ";", "}", "else", "{", "lastReceiverType", "=", "lastFieldBinding", ".", "type", ";", "}", "if", "(", "!", "needValue", ")", "codeStream", ".", "pop", "(", ")", ";", "}", "else", "{", "if", "(", "lastFieldBinding", "==", "initialFieldBinding", ")", "{", "if", "(", "lastFieldBinding", ".", "isStatic", "(", ")", ")", "{", "if", "(", "initialFieldBinding", ".", "declaringClass", "!=", "this", ".", "actualReceiverType", ".", "erasure", "(", ")", ")", "{", "MethodBinding", "accessor", "=", "this", ".", "syntheticReadAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticReadAccessors", "[", "i", "]", ";", "if", "(", "accessor", "==", "null", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "lastFieldBinding", ",", "lastReceiverType", ",", "i", "==", "0", "&&", "this", ".", "indexOfFirstFieldBinding", "==", "1", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "lastFieldBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "accessor", ",", "null", ")", ";", "}", "codeStream", ".", "pop", "(", ")", ";", "}", "}", "}", "else", "if", "(", "!", "lastFieldBinding", ".", "isStatic", "(", ")", ")", "{", "codeStream", ".", "invokeObjectGetClass", "(", ")", ";", "codeStream", ".", "pop", "(", ")", ";", "}", "lastReceiverType", "=", "lastFieldBinding", ".", "type", ";", "}", "if", "(", "(", "positionsLength", "-", "otherBindingsCount", "+", "i", "-", "1", ")", ">=", "0", ")", "{", "int", "fieldPosition", "=", "(", "int", ")", "(", "this", ".", "sourcePositions", "[", "positionsLength", "-", "otherBindingsCount", "+", "i", "-", "1", "]", ">>>", "32", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "fieldPosition", ")", ";", "}", "}", "}", "lastFieldBinding", "=", "nextField", ";", "lastGenericCast", "=", "nextGenericCast", ";", "}", "}", "return", "lastFieldBinding", ";", "}", "public", "void", "generateReceiver", "(", "CodeStream", "codeStream", ")", "{", "codeStream", ".", "aload_0", "(", ")", ";", "}", "public", "TypeBinding", "[", "]", "genericTypeArguments", "(", ")", "{", "return", "null", ";", "}", "protected", "FieldBinding", "getCodegenBinding", "(", "int", "index", ")", "{", "if", "(", "index", "==", "0", ")", "{", "return", "(", "(", "FieldBinding", ")", "this", ".", "binding", ")", ".", "original", "(", ")", ";", "}", "else", "{", "return", "this", ".", "otherBindings", "[", "index", "-", "1", "]", ".", "original", "(", ")", ";", "}", "}", "protected", "TypeBinding", "getFinalReceiverType", "(", ")", "{", "int", "otherBindingsCount", "=", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ";", "switch", "(", "otherBindingsCount", ")", "{", "case", "0", ":", "return", "this", ".", "actualReceiverType", ";", "case", "1", ":", "return", "this", ".", "genericCast", "!=", "null", "?", "this", ".", "genericCast", ":", "(", "(", "VariableBinding", ")", "this", ".", "binding", ")", ".", "type", ";", "default", ":", "TypeBinding", "previousGenericCast", "=", "this", ".", "otherGenericCasts", "==", "null", "?", "null", ":", "this", ".", "otherGenericCasts", "[", "otherBindingsCount", "-", "2", "]", ";", "return", "previousGenericCast", "!=", "null", "?", "previousGenericCast", ":", "this", ".", "otherBindings", "[", "otherBindingsCount", "-", "2", "]", ".", "type", ";", "}", "}", "protected", "TypeBinding", "getGenericCast", "(", "int", "index", ")", "{", "if", "(", "index", "==", "0", ")", "{", "return", "this", ".", "genericCast", ";", "}", "else", "{", "if", "(", "this", ".", "otherGenericCasts", "==", "null", ")", "return", "null", ";", "return", "this", ".", "otherGenericCasts", "[", "index", "-", "1", "]", ";", "}", "}", "public", "TypeBinding", "getOtherFieldBindings", "(", "BlockScope", "scope", ")", "{", "int", "length", "=", "this", ".", "tokens", ".", "length", ";", "FieldBinding", "field", "=", "(", "(", "this", ".", "bits", "&", "Binding", ".", "FIELD", ")", "!=", "0", ")", "?", "(", "FieldBinding", ")", "this", ".", "binding", ":", "null", ";", "TypeBinding", "type", "=", "(", "(", "VariableBinding", ")", "this", ".", "binding", ")", ".", "type", ";", "int", "index", "=", "this", ".", "indexOfFirstFieldBinding", ";", "if", "(", "index", "==", "length", ")", "{", "this", ".", "constant", "=", "(", "(", "FieldBinding", ")", "this", ".", "binding", ")", ".", "constant", "(", ")", ";", "return", "(", "type", "!=", "null", "&&", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsStrictlyAssigned", ")", "==", "0", ")", "?", "type", ".", "capture", "(", "scope", ",", "this", ".", "sourceEnd", ")", ":", "type", ";", "}", "int", "otherBindingsLength", "=", "length", "-", "index", ";", "this", ".", "otherBindings", "=", "new", "FieldBinding", "[", "otherBindingsLength", "]", ";", "this", ".", "otherDepths", "=", "new", "int", "[", "otherBindingsLength", "]", ";", "this", ".", "constant", "=", "(", "(", "VariableBinding", ")", "this", ".", "binding", ")", ".", "constant", "(", ")", ";", "int", "firstDepth", "=", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ";", "while", "(", "index", "<", "length", ")", "{", "char", "[", "]", "token", "=", "this", ".", "tokens", "[", "index", "]", ";", "if", "(", "type", "==", "null", ")", "return", "null", ";", "this", ".", "bits", "&=", "~", "ASTNode", ".", "DepthMASK", ";", "FieldBinding", "previousField", "=", "field", ";", "field", "=", "scope", ".", "getField", "(", "type", ".", "capture", "(", "scope", ",", "(", "int", ")", "this", ".", "sourcePositions", "[", "index", "]", ")", ",", "token", ",", "this", ")", ";", "int", "place", "=", "index", "-", "this", ".", "indexOfFirstFieldBinding", ";", "this", ".", "otherBindings", "[", "place", "]", "=", "field", ";", "this", ".", "otherDepths", "[", "place", "]", "=", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ";", "if", "(", "field", ".", "isValidBinding", "(", ")", ")", "{", "if", "(", "previousField", "!=", "null", ")", "{", "TypeBinding", "fieldReceiverType", "=", "type", ";", "TypeBinding", "oldReceiverType", "=", "fieldReceiverType", ";", "fieldReceiverType", "=", "fieldReceiverType", ".", "getErasureCompatibleType", "(", "field", ".", "declaringClass", ")", ";", "FieldBinding", "originalBinding", "=", "previousField", ".", "original", "(", ")", ";", "if", "(", "fieldReceiverType", "!=", "oldReceiverType", "||", "originalBinding", ".", "type", ".", "leafComponentType", "(", ")", ".", "isTypeVariable", "(", ")", ")", "{", "setGenericCast", "(", "index", "-", "1", ",", "originalBinding", ".", "type", ".", "genericCast", "(", "fieldReceiverType", ")", ")", ";", "}", "}", "if", "(", "isFieldUseDeprecated", "(", "field", ",", "scope", ",", "index", "+", "1", "==", "length", "?", "this", ".", "bits", ":", "0", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "deprecatedField", "(", "field", ",", "this", ")", ";", "}", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "this", ".", "constant", "=", "field", ".", "constant", "(", ")", ";", "}", "if", "(", "field", ".", "isStatic", "(", ")", ")", "{", "if", "(", "(", "field", ".", "modifiers", "&", "ClassFileConstants", ".", "AccEnum", ")", "!=", "0", ")", "{", "ReferenceBinding", "declaringClass", "=", "field", ".", "original", "(", ")", ".", "declaringClass", ";", "MethodScope", "methodScope", "=", "scope", ".", "methodScope", "(", ")", ";", "SourceTypeBinding", "sourceType", "=", "methodScope", ".", "enclosingSourceType", "(", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsStrictlyAssigned", ")", "==", "0", "&&", "sourceType", "==", "declaringClass", "&&", "methodScope", ".", "lastVisibleFieldID", ">=", "0", "&&", "field", ".", "id", ">=", "methodScope", ".", "lastVisibleFieldID", "&&", "(", "!", "field", ".", "isStatic", "(", ")", "||", "methodScope", ".", "isStatic", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "forwardReference", "(", "this", ",", "index", ",", "field", ")", ";", "}", "if", "(", "(", "sourceType", "==", "declaringClass", "||", "sourceType", ".", "superclass", "==", "declaringClass", ")", "&&", "field", ".", "constant", "(", ")", "==", "Constant", ".", "NotAConstant", "&&", "!", "methodScope", ".", "isStatic", "&&", "methodScope", ".", "isInsideInitializerOrConstructor", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "enumStaticFieldUsedDuringInitialization", "(", "field", ",", "this", ")", ";", "}", "}", "scope", ".", "problemReporter", "(", ")", ".", "nonStaticAccessToStaticField", "(", "this", ",", "field", ",", "index", ")", ";", "if", "(", "field", ".", "declaringClass", "!=", "type", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "indirectAccessToStaticField", "(", "this", ",", "field", ")", ";", "}", "}", "type", "=", "field", ".", "type", ";", "index", "++", ";", "}", "else", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidField", "(", "this", ",", "field", ",", "index", ",", "type", ")", ";", "setDepth", "(", "firstDepth", ")", ";", "return", "null", ";", "}", "}", "setDepth", "(", "firstDepth", ")", ";", "type", "=", "(", "this", ".", "otherBindings", "[", "otherBindingsLength", "-", "1", "]", ")", ".", "type", ";", "return", "(", "type", "!=", "null", "&&", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsStrictlyAssigned", ")", "==", "0", ")", "?", "type", ".", "capture", "(", "scope", ",", "this", ".", "sourceEnd", ")", ":", "type", ";", "}", "public", "void", "manageEnclosingInstanceAccessIfNecessary", "(", "BlockScope", "currentScope", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "==", "0", ")", "||", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", ")", "{", "return", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "==", "Binding", ".", "LOCAL", ")", "{", "LocalVariableBinding", "localVariableBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "if", "(", "localVariableBinding", "!=", "null", ")", "{", "if", "(", "(", "localVariableBinding", ".", "tagBits", "&", "TagBits", ".", "NotInitialized", ")", "!=", "0", ")", "{", "return", ";", "}", "switch", "(", "localVariableBinding", ".", "useFlag", ")", "{", "case", "LocalVariableBinding", ".", "FAKE_USED", ":", "case", "LocalVariableBinding", ".", "USED", ":", "currentScope", ".", "emulateOuterAccess", "(", "localVariableBinding", ")", ";", "}", "}", "}", "}", "public", "void", "manageSyntheticAccessIfNecessary", "(", "BlockScope", "currentScope", ",", "FieldBinding", "fieldBinding", ",", "int", "index", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "!=", "0", ")", "return", ";", "if", "(", "fieldBinding", ".", "constant", "(", ")", "!=", "Constant", ".", "NotAConstant", ")", "return", ";", "if", "(", "fieldBinding", ".", "isPrivate", "(", ")", ")", "{", "FieldBinding", "codegenField", "=", "getCodegenBinding", "(", "index", "<", "0", "?", "(", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ")", ":", "index", ")", ";", "ReferenceBinding", "declaringClass", "=", "codegenField", ".", "declaringClass", ";", "if", "(", "declaringClass", "!=", "currentScope", ".", "enclosingSourceType", "(", ")", ")", "{", "setSyntheticAccessor", "(", "fieldBinding", ",", "index", ",", "(", "(", "SourceTypeBinding", ")", "declaringClass", ")", ".", "addSyntheticMethod", "(", "codegenField", ",", "index", ">=", "0", ",", "false", ")", ")", ";", "currentScope", ".", "problemReporter", "(", ")", ".", "needToEmulateFieldAccess", "(", "codegenField", ",", "this", ",", "index", ">=", "0", ")", ";", "return", ";", "}", "}", "else", "if", "(", "fieldBinding", ".", "isProtected", "(", ")", ")", "{", "int", "depth", "=", "(", "index", "==", "0", "||", "(", "index", "<", "0", "&&", "this", ".", "otherDepths", "==", "null", ")", ")", "?", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ":", "this", ".", "otherDepths", "[", "index", "<", "0", "?", "this", ".", "otherDepths", ".", "length", "-", "1", ":", "index", "-", "1", "]", ";", "if", "(", "depth", ">", "0", "&&", "(", "fieldBinding", ".", "declaringClass", ".", "getPackage", "(", ")", "!=", "currentScope", ".", "enclosingSourceType", "(", ")", ".", "getPackage", "(", ")", ")", ")", "{", "FieldBinding", "codegenField", "=", "getCodegenBinding", "(", "index", "<", "0", "?", "(", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ")", ":", "index", ")", ";", "setSyntheticAccessor", "(", "fieldBinding", ",", "index", ",", "(", "(", "SourceTypeBinding", ")", "currentScope", ".", "enclosingSourceType", "(", ")", ".", "enclosingTypeAt", "(", "depth", ")", ")", ".", "addSyntheticMethod", "(", "codegenField", ",", "index", ">=", "0", ",", "false", ")", ")", ";", "currentScope", ".", "problemReporter", "(", ")", ".", "needToEmulateFieldAccess", "(", "codegenField", ",", "this", ",", "index", ">=", "0", ")", ";", "return", ";", "}", "}", "}", "public", "int", "nullStatus", "(", "FlowInfo", "flowInfo", ")", "{", "return", "FlowInfo", ".", "UNKNOWN", ";", "}", "public", "Constant", "optimizedBooleanConstant", "(", ")", "{", "switch", "(", "this", ".", "resolvedType", ".", "id", ")", "{", "case", "T_boolean", ":", "case", "T_JavaLangBoolean", ":", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "return", "this", ".", "constant", ";", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "if", "(", "this", ".", "otherBindings", "==", "null", ")", "return", "(", "(", "FieldBinding", ")", "this", ".", "binding", ")", ".", "constant", "(", ")", ";", "case", "Binding", ".", "LOCAL", ":", "return", "this", ".", "otherBindings", "[", "this", ".", "otherBindings", ".", "length", "-", "1", "]", ".", "constant", "(", ")", ";", "}", "}", "return", "Constant", ".", "NotAConstant", ";", "}", "public", "TypeBinding", "postConversionType", "(", "Scope", "scope", ")", "{", "TypeBinding", "convertedType", "=", "this", ".", "resolvedType", ";", "TypeBinding", "requiredGenericCast", "=", "getGenericCast", "(", "this", ".", "otherBindings", "==", "null", "?", "0", ":", "this", ".", "otherBindings", ".", "length", ")", ";", "if", "(", "requiredGenericCast", "!=", "null", ")", "convertedType", "=", "requiredGenericCast", ";", "int", "runtimeType", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ";", "switch", "(", "runtimeType", ")", "{", "case", "T_boolean", ":", "convertedType", "=", "TypeBinding", ".", "BOOLEAN", ";", "break", ";", "case", "T_byte", ":", "convertedType", "=", "TypeBinding", ".", "BYTE", ";", "break", ";", "case", "T_short", ":", "convertedType", "=", "TypeBinding", ".", "SHORT", ";", "break", ";", "case", "T_char", ":", "convertedType", "=", "TypeBinding", ".", "CHAR", ";", "break", ";", "case", "T_int", ":", "convertedType", "=", "TypeBinding", ".", "INT", ";", "break", ";", "case", "T_float", ":", "convertedType", "=", "TypeBinding", ".", "FLOAT", ";", "break", ";", "case", "T_long", ":", "convertedType", "=", "TypeBinding", ".", "LONG", ";", "break", ";", "case", "T_double", ":", "convertedType", "=", "TypeBinding", ".", "DOUBLE", ";", "break", ";", "default", ":", "}", "if", "(", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "BOXING", ")", "!=", "0", ")", "{", "convertedType", "=", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "convertedType", ")", ";", "}", "return", "convertedType", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "tokens", ".", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "output", ".", "append", "(", "'.'", ")", ";", "output", ".", "append", "(", "this", ".", "tokens", "[", "i", "]", ")", ";", "}", "return", "output", ";", "}", "public", "TypeBinding", "reportError", "(", "BlockScope", "scope", ")", "{", "if", "(", "this", ".", "binding", "instanceof", "ProblemFieldBinding", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "invalidField", "(", "this", ",", "(", "FieldBinding", ")", "this", ".", "binding", ")", ";", "}", "else", "if", "(", "this", ".", "binding", "instanceof", "ProblemReferenceBinding", "||", "this", ".", "binding", "instanceof", "MissingTypeBinding", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "invalidType", "(", "this", ",", "(", "TypeBinding", ")", "this", ".", "binding", ")", ";", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "unresolvableReference", "(", "this", ",", "this", ".", "binding", ")", ";", "}", "return", "null", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "this", ".", "actualReceiverType", "=", "scope", ".", "enclosingReceiverType", "(", ")", ";", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "(", "this", ".", "binding", "=", "scope", ".", "getBinding", "(", "this", ".", "tokens", ",", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ",", "this", ",", "true", ")", ")", ".", "isValidBinding", "(", ")", ")", "{", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "VARIABLE", ":", "case", "Binding", ".", "TYPE", "|", "Binding", ".", "VARIABLE", ":", "if", "(", "this", ".", "binding", "instanceof", "LocalVariableBinding", ")", "{", "this", ".", "bits", "&=", "~", "ASTNode", ".", "RestrictiveFlagMASK", ";", "this", ".", "bits", "|=", "Binding", ".", "LOCAL", ";", "LocalVariableBinding", "local", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "if", "(", "!", "local", ".", "isFinal", "(", ")", "&&", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotReferToNonFinalOuterLocal", "(", "(", "LocalVariableBinding", ")", "this", ".", "binding", ",", "this", ")", ";", "}", "if", "(", "local", ".", "type", "!=", "null", "&&", "(", "local", ".", "type", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "return", "null", ";", "}", "this", ".", "resolvedType", "=", "getOtherFieldBindings", "(", "scope", ")", ";", "if", "(", "this", ".", "resolvedType", "!=", "null", "&&", "(", "this", ".", "resolvedType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "FieldBinding", "lastField", "=", "this", ".", "otherBindings", "[", "this", ".", "otherBindings", ".", "length", "-", "1", "]", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidField", "(", "this", ",", "new", "ProblemFieldBinding", "(", "lastField", ".", "declaringClass", ",", "lastField", ".", "name", ",", "ProblemReasons", ".", "NotFound", ")", ",", "this", ".", "tokens", ".", "length", ",", "this", ".", "resolvedType", ".", "leafComponentType", "(", ")", ")", ";", "return", "null", ";", "}", "return", "this", ".", "resolvedType", ";", "}", "if", "(", "this", ".", "binding", "instanceof", "FieldBinding", ")", "{", "this", ".", "bits", "&=", "~", "ASTNode", ".", "RestrictiveFlagMASK", ";", "this", ".", "bits", "|=", "Binding", ".", "FIELD", ";", "FieldBinding", "fieldBinding", "=", "(", "FieldBinding", ")", "this", ".", "binding", ";", "MethodScope", "methodScope", "=", "scope", ".", "methodScope", "(", ")", ";", "ReferenceBinding", "declaringClass", "=", "fieldBinding", ".", "original", "(", ")", ".", "declaringClass", ";", "SourceTypeBinding", "sourceType", "=", "methodScope", ".", "enclosingSourceType", "(", ")", ";", "if", "(", "(", "this", ".", "indexOfFirstFieldBinding", "==", "1", "||", "(", "fieldBinding", ".", "modifiers", "&", "ClassFileConstants", ".", "AccEnum", ")", "!=", "0", "||", "(", "!", "fieldBinding", ".", "isFinal", "(", ")", "&&", "declaringClass", ".", "isEnum", "(", ")", ")", ")", "&&", "sourceType", "==", "declaringClass", "&&", "methodScope", ".", "lastVisibleFieldID", ">=", "0", "&&", "fieldBinding", ".", "id", ">=", "methodScope", ".", "lastVisibleFieldID", "&&", "(", "!", "fieldBinding", ".", "isStatic", "(", ")", "||", "methodScope", ".", "isStatic", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "forwardReference", "(", "this", ",", "this", ".", "indexOfFirstFieldBinding", "-", "1", ",", "fieldBinding", ")", ";", "}", "if", "(", "isFieldUseDeprecated", "(", "fieldBinding", ",", "scope", ",", "this", ".", "indexOfFirstFieldBinding", "==", "this", ".", "tokens", ".", "length", "?", "this", ".", "bits", ":", "0", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "deprecatedField", "(", "fieldBinding", ",", "this", ")", ";", "}", "if", "(", "fieldBinding", ".", "isStatic", "(", ")", ")", "{", "if", "(", "declaringClass", ".", "isEnum", "(", ")", ")", "{", "if", "(", "(", "sourceType", "==", "declaringClass", "||", "sourceType", ".", "superclass", "==", "declaringClass", ")", "&&", "fieldBinding", ".", "constant", "(", ")", "==", "Constant", ".", "NotAConstant", "&&", "!", "methodScope", ".", "isStatic", "&&", "methodScope", ".", "isInsideInitializerOrConstructor", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "enumStaticFieldUsedDuringInitialization", "(", "fieldBinding", ",", "this", ")", ";", "}", "}", "if", "(", "this", ".", "indexOfFirstFieldBinding", ">", "1", "&&", "fieldBinding", ".", "declaringClass", "!=", "this", ".", "actualReceiverType", "&&", "fieldBinding", ".", "declaringClass", ".", "canBeSeenBy", "(", "scope", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "indirectAccessToStaticField", "(", "this", ",", "fieldBinding", ")", ";", "}", "}", "else", "{", "if", "(", "this", ".", "indexOfFirstFieldBinding", "==", "1", "&&", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "UnqualifiedFieldAccess", ")", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unqualifiedFieldAccess", "(", "this", ",", "fieldBinding", ")", ";", "}", "if", "(", "this", ".", "indexOfFirstFieldBinding", ">", "1", "||", "scope", ".", "methodScope", "(", ")", ".", "isStatic", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "staticFieldAccessToNonStaticVariable", "(", "this", ",", "fieldBinding", ")", ";", "return", "null", ";", "}", "}", "this", ".", "resolvedType", "=", "getOtherFieldBindings", "(", "scope", ")", ";", "if", "(", "this", ".", "resolvedType", "!=", "null", "&&", "(", "this", ".", "resolvedType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "FieldBinding", "lastField", "=", "this", ".", "indexOfFirstFieldBinding", "==", "this", ".", "tokens", ".", "length", "?", "(", "FieldBinding", ")", "this", ".", "binding", ":", "this", ".", "otherBindings", "[", "this", ".", "otherBindings", ".", "length", "-", "1", "]", ";", "scope", ".", "problemReporter", "(", ")", ".", "invalidField", "(", "this", ",", "new", "ProblemFieldBinding", "(", "lastField", ".", "declaringClass", ",", "lastField", ".", "name", ",", "ProblemReasons", ".", "NotFound", ")", ",", "this", ".", "tokens", ".", "length", ",", "this", ".", "resolvedType", ".", "leafComponentType", "(", ")", ")", ";", "return", "null", ";", "}", "return", "this", ".", "resolvedType", ";", "}", "this", ".", "bits", "&=", "~", "ASTNode", ".", "RestrictiveFlagMASK", ";", "this", ".", "bits", "|=", "Binding", ".", "TYPE", ";", "case", "Binding", ".", "TYPE", ":", "TypeBinding", "type", "=", "(", "TypeBinding", ")", "this", ".", "binding", ";", "type", "=", "scope", ".", "environment", "(", ")", ".", "convertToRawType", "(", "type", ",", "false", ")", ";", "return", "this", ".", "resolvedType", "=", "type", ";", "}", "}", "return", "this", ".", "resolvedType", "=", "reportError", "(", "scope", ")", ";", "}", "public", "void", "setFieldIndex", "(", "int", "index", ")", "{", "this", ".", "indexOfFirstFieldBinding", "=", "index", ";", "}", "protected", "void", "setGenericCast", "(", "int", "index", ",", "TypeBinding", "someGenericCast", ")", "{", "if", "(", "someGenericCast", "==", "null", ")", "return", ";", "if", "(", "index", "==", "0", ")", "{", "this", ".", "genericCast", "=", "someGenericCast", ";", "}", "else", "{", "if", "(", "this", ".", "otherGenericCasts", "==", "null", ")", "{", "this", ".", "otherGenericCasts", "=", "new", "TypeBinding", "[", "this", ".", "otherBindings", ".", "length", "]", ";", "}", "this", ".", "otherGenericCasts", "[", "index", "-", "1", "]", "=", "someGenericCast", ";", "}", "}", "protected", "void", "setSyntheticAccessor", "(", "FieldBinding", "fieldBinding", ",", "int", "index", ",", "SyntheticMethodBinding", "syntheticAccessor", ")", "{", "if", "(", "index", "<", "0", ")", "{", "this", ".", "syntheticWriteAccessor", "=", "syntheticAccessor", ";", "}", "else", "{", "if", "(", "this", ".", "syntheticReadAccessors", "==", "null", ")", "{", "this", ".", "syntheticReadAccessors", "=", "new", "SyntheticMethodBinding", "[", "this", ".", "otherBindings", "==", "null", "?", "1", ":", "this", ".", "otherBindings", ".", "length", "+", "1", "]", ";", "}", "this", ".", "syntheticReadAccessors", "[", "index", "]", "=", "syntheticAccessor", ";", "}", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "String", "unboundReferenceErrorName", "(", ")", "{", "return", "new", "String", "(", "this", ".", "tokens", "[", "0", "]", ")", ";", "}", "}", "</s>" ]
4,228
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "BranchLabel", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "IntConstant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Binding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "FieldBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "public", "class", "CaseStatement", "extends", "Statement", "{", "public", "Expression", "constantExpression", ";", "public", "BranchLabel", "targetLabel", ";", "public", "CaseStatement", "(", "Expression", "constantExpression", ",", "int", "sourceEnd", ",", "int", "sourceStart", ")", "{", "this", ".", "constantExpression", "=", "constantExpression", ";", "this", ".", "sourceEnd", "=", "sourceEnd", ";", "this", ".", "sourceStart", "=", "sourceStart", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "constantExpression", "!=", "null", ")", "{", "if", "(", "this", ".", "constantExpression", ".", "constant", "==", "Constant", ".", "NotAConstant", "&&", "!", "this", ".", "constantExpression", ".", "resolvedType", ".", "isEnum", "(", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "caseExpressionMustBeConstant", "(", "this", ".", "constantExpression", ")", ";", "}", "this", ".", "constantExpression", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "return", "flowInfo", ";", "}", "public", "StringBuffer", "printStatement", "(", "int", "tab", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "tab", ",", "output", ")", ";", "if", "(", "this", ".", "constantExpression", "==", "null", ")", "{", "output", ".", "append", "(", "\"default", ":\"", ")", ";", "}", "else", "{", "output", ".", "append", "(", "\"case", "\"", ")", ";", "this", ".", "constantExpression", ".", "printExpression", "(", "0", ",", "output", ")", ".", "append", "(", "\"", ":\"", ")", ";", "}", "return", "output", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsReachable", ")", "==", "0", ")", "{", "return", ";", "}", "int", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "targetLabel", ".", "place", "(", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "void", "resolve", "(", "BlockScope", "scope", ")", "{", "}", "public", "Constant", "resolveCase", "(", "BlockScope", "scope", ",", "TypeBinding", "switchExpressionType", ",", "SwitchStatement", "switchStatement", ")", "{", "scope", ".", "enclosingCase", "=", "this", ";", "if", "(", "this", ".", "constantExpression", "==", "null", ")", "{", "if", "(", "switchStatement", ".", "defaultCase", "!=", "null", ")", "scope", ".", "problemReporter", "(", ")", ".", "duplicateDefaultCase", "(", "this", ")", ";", "switchStatement", ".", "defaultCase", "=", "this", ";", "return", "Constant", ".", "NotAConstant", ";", "}", "switchStatement", ".", "cases", "[", "switchStatement", ".", "caseCount", "++", "]", "=", "this", ";", "if", "(", "switchExpressionType", "!=", "null", "&&", "switchExpressionType", ".", "isEnum", "(", ")", "&&", "(", "this", ".", "constantExpression", "instanceof", "SingleNameReference", ")", ")", "{", "(", "(", "SingleNameReference", ")", "this", ".", "constantExpression", ")", ".", "setActualReceiverType", "(", "(", "ReferenceBinding", ")", "switchExpressionType", ")", ";", "}", "TypeBinding", "caseType", "=", "this", ".", "constantExpression", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "caseType", "==", "null", "||", "switchExpressionType", "==", "null", ")", "return", "Constant", ".", "NotAConstant", ";", "if", "(", "this", ".", "constantExpression", ".", "isConstantValueOfTypeAssignableToType", "(", "caseType", ",", "switchExpressionType", ")", "||", "caseType", ".", "isCompatibleWith", "(", "switchExpressionType", ")", ")", "{", "if", "(", "caseType", ".", "isEnum", "(", ")", ")", "{", "if", "(", "(", "(", "this", ".", "constantExpression", ".", "bits", "&", "ASTNode", ".", "ParenthesizedMASK", ")", ">>", "ASTNode", ".", "ParenthesizedSHIFT", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "enumConstantsCannotBeSurroundedByParenthesis", "(", "this", ".", "constantExpression", ")", ";", "}", "if", "(", "this", ".", "constantExpression", "instanceof", "NameReference", "&&", "(", "this", ".", "constantExpression", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "==", "Binding", ".", "FIELD", ")", "{", "NameReference", "reference", "=", "(", "NameReference", ")", "this", ".", "constantExpression", ";", "FieldBinding", "field", "=", "reference", ".", "fieldBinding", "(", ")", ";", "if", "(", "(", "field", ".", "modifiers", "&", "ClassFileConstants", ".", "AccEnum", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "enumSwitchCannotTargetField", "(", "reference", ",", "field", ")", ";", "}", "else", "if", "(", "reference", "instanceof", "QualifiedNameReference", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotUseQualifiedEnumConstantInCaseLabel", "(", "reference", ",", "field", ")", ";", "}", "return", "IntConstant", ".", "fromValue", "(", "field", ".", "original", "(", ")", ".", "id", "+", "1", ")", ";", "}", "}", "else", "{", "return", "this", ".", "constantExpression", ".", "constant", ";", "}", "}", "else", "if", "(", "isBoxingCompatible", "(", "caseType", ",", "switchExpressionType", ",", "this", ".", "constantExpression", ",", "scope", ")", ")", "{", "return", "this", ".", "constantExpression", ".", "constant", ";", "}", "scope", ".", "problemReporter", "(", ")", ".", "typeMismatchError", "(", "caseType", ",", "switchExpressionType", ",", "this", ".", "constantExpression", ",", "switchStatement", ".", "expression", ")", ";", "return", "Constant", ".", "NotAConstant", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "if", "(", "this", ".", "constantExpression", "!=", "null", ")", "this", ".", "constantExpression", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
4,229
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "ParameterizedQualifiedTypeReference", "extends", "ArrayQualifiedTypeReference", "{", "public", "TypeReference", "[", "]", "[", "]", "typeArguments", ";", "public", "ParameterizedQualifiedTypeReference", "(", "char", "[", "]", "[", "]", "tokens", ",", "TypeReference", "[", "]", "[", "]", "typeArguments", ",", "int", "dim", ",", "long", "[", "]", "positions", ")", "{", "super", "(", "tokens", ",", "dim", ",", "positions", ")", ";", "this", ".", "typeArguments", "=", "typeArguments", ";", "}", "public", "void", "checkBounds", "(", "Scope", "scope", ")", "{", "if", "(", "this", ".", "resolvedType", "==", "null", ")", "return", ";", "checkBounds", "(", "(", "ReferenceBinding", ")", "this", ".", "resolvedType", ".", "leafComponentType", "(", ")", ",", "scope", ",", "this", ".", "typeArguments", ".", "length", "-", "1", ")", ";", "}", "public", "void", "checkBounds", "(", "ReferenceBinding", "type", ",", "Scope", "scope", ",", "int", "index", ")", "{", "if", "(", "index", ">", "0", "&&", "type", ".", "enclosingType", "(", ")", "!=", "null", ")", "{", "checkBounds", "(", "type", ".", "enclosingType", "(", ")", ",", "scope", ",", "index", "-", "1", ")", ";", "}", "if", "(", "type", ".", "isParameterizedTypeWithActualArguments", "(", ")", ")", "{", "ParameterizedTypeBinding", "parameterizedType", "=", "(", "ParameterizedTypeBinding", ")", "type", ";", "ReferenceBinding", "currentType", "=", "parameterizedType", ".", "genericType", "(", ")", ";", "TypeVariableBinding", "[", "]", "typeVariables", "=", "currentType", ".", "typeVariables", "(", ")", ";", "if", "(", "typeVariables", "!=", "null", ")", "{", "parameterizedType", ".", "boundCheck", "(", "scope", ",", "this", ".", "typeArguments", "[", "index", "]", ")", ";", "}", "}", "}", "public", "TypeReference", "copyDims", "(", "int", "dim", ")", "{", "return", "new", "ParameterizedQualifiedTypeReference", "(", "this", ".", "tokens", ",", "this", ".", "typeArguments", ",", "dim", ",", "this", ".", "sourcePositions", ")", ";", "}", "public", "char", "[", "]", "[", "]", "getParameterizedTypeName", "(", ")", "{", "int", "length", "=", "this", ".", "tokens", ".", "length", ";", "char", "[", "]", "[", "]", "qParamName", "=", "new", "char", "[", "length", "]", "[", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeReference", "[", "]", "arguments", "=", "this", ".", "typeArguments", "[", "i", "]", ";", "if", "(", "arguments", "==", "null", ")", "{", "qParamName", "[", "i", "]", "=", "this", ".", "tokens", "[", "i", "]", ";", "}", "else", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "5", ")", ";", "buffer", ".", "append", "(", "this", ".", "tokens", "[", "i", "]", ")", ";", "buffer", ".", "append", "(", "'<'", ")", ";", "for", "(", "int", "j", "=", "0", ",", "argLength", "=", "arguments", ".", "length", ";", "j", "<", "argLength", ";", "j", "++", ")", "{", "if", "(", "j", ">", "0", ")", "buffer", ".", "append", "(", "','", ")", ";", "buffer", ".", "append", "(", "CharOperation", ".", "concatWith", "(", "arguments", "[", "j", "]", ".", "getParameterizedTypeName", "(", ")", ",", "'.'", ")", ")", ";", "}", "buffer", ".", "append", "(", "'>'", ")", ";", "int", "nameLength", "=", "buffer", ".", "length", "(", ")", ";", "qParamName", "[", "i", "]", "=", "new", "char", "[", "nameLength", "]", ";", "buffer", ".", "getChars", "(", "0", ",", "nameLength", ",", "qParamName", "[", "i", "]", ",", "0", ")", ";", "}", "}", "int", "dim", "=", "this", ".", "dimensions", ";", "if", "(", "dim", ">", "0", ")", "{", "char", "[", "]", "dimChars", "=", "new", "char", "[", "dim", "*", "2", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "dim", ";", "i", "++", ")", "{", "int", "index", "=", "i", "*", "2", ";", "dimChars", "[", "index", "]", "=", "'['", ";", "dimChars", "[", "index", "+", "1", "]", "=", "']'", ";", "}", "qParamName", "[", "length", "-", "1", "]", "=", "CharOperation", ".", "concat", "(", "qParamName", "[", "length", "-", "1", "]", ",", "dimChars", ")", ";", "}", "return", "qParamName", ";", "}", "protected", "TypeBinding", "getTypeBinding", "(", "Scope", "scope", ")", "{", "return", "null", ";", "}", "private", "TypeBinding", "internalResolveType", "(", "Scope", "scope", ",", "boolean", "checkBounds", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DidResolve", ")", "!=", "0", ")", "{", "if", "(", "this", ".", "resolvedType", "!=", "null", ")", "{", "if", "(", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "return", "this", ".", "resolvedType", ";", "}", "else", "{", "switch", "(", "this", ".", "resolvedType", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NotFound", ":", "case", "ProblemReasons", ".", "NotVisible", ":", "case", "ProblemReasons", ".", "InheritedNameHidesEnclosingName", ":", "TypeBinding", "type", "=", "this", ".", "resolvedType", ".", "closestMatch", "(", ")", ";", "return", "type", ";", "default", ":", "return", "null", ";", "}", "}", "}", "}", "this", ".", "bits", "|=", "ASTNode", ".", "DidResolve", ";", "TypeBinding", "type", "=", "internalResolveLeafType", "(", "scope", ",", "checkBounds", ")", ";", "createArrayType", "(", "scope", ")", ";", "return", "type", "==", "null", "?", "type", ":", "this", ".", "resolvedType", ";", "}", "private", "TypeBinding", "internalResolveLeafType", "(", "Scope", "scope", ",", "boolean", "checkBounds", ")", "{", "boolean", "isClassScope", "=", "scope", ".", "kind", "==", "Scope", ".", "CLASS_SCOPE", ";", "Binding", "binding", "=", "scope", ".", "getPackage", "(", "this", ".", "tokens", ")", ";", "if", "(", "binding", "!=", "null", "&&", "!", "binding", ".", "isValidBinding", "(", ")", ")", "{", "this", ".", "resolvedType", "=", "(", "ReferenceBinding", ")", "binding", ";", "reportInvalidType", "(", "scope", ")", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "tokens", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "TypeReference", "[", "]", "args", "=", "this", ".", "typeArguments", "[", "i", "]", ";", "if", "(", "args", "!=", "null", ")", "{", "int", "argLength", "=", "args", ".", "length", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "argLength", ";", "j", "++", ")", "{", "TypeReference", "typeArgument", "=", "args", "[", "j", "]", ";", "if", "(", "isClassScope", ")", "{", "typeArgument", ".", "resolveType", "(", "(", "ClassScope", ")", "scope", ")", ";", "}", "else", "{", "typeArgument", ".", "resolveType", "(", "(", "BlockScope", ")", "scope", ",", "checkBounds", ")", ";", "}", "}", "}", "}", "return", "null", ";", "}", "PackageBinding", "packageBinding", "=", "binding", "==", "null", "?", "null", ":", "(", "PackageBinding", ")", "binding", ";", "boolean", "typeIsConsistent", "=", "true", ";", "ReferenceBinding", "qualifyingType", "=", "null", ";", "for", "(", "int", "i", "=", "packageBinding", "==", "null", "?", "0", ":", "packageBinding", ".", "compoundName", ".", "length", ",", "max", "=", "this", ".", "tokens", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "findNextTypeBinding", "(", "i", ",", "scope", ",", "packageBinding", ")", ";", "if", "(", "!", "(", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", ")", "{", "reportInvalidType", "(", "scope", ")", ";", "for", "(", "int", "j", "=", "i", ";", "j", "<", "max", ";", "j", "++", ")", "{", "TypeReference", "[", "]", "args", "=", "this", ".", "typeArguments", "[", "j", "]", ";", "if", "(", "args", "!=", "null", ")", "{", "int", "argLength", "=", "args", ".", "length", ";", "for", "(", "int", "k", "=", "0", ";", "k", "<", "argLength", ";", "k", "++", ")", "{", "TypeReference", "typeArgument", "=", "args", "[", "k", "]", ";", "if", "(", "isClassScope", ")", "{", "typeArgument", ".", "resolveType", "(", "(", "ClassScope", ")", "scope", ")", ";", "}", "else", "{", "typeArgument", ".", "resolveType", "(", "(", "BlockScope", ")", "scope", ")", ";", "}", "}", "}", "}", "return", "null", ";", "}", "ReferenceBinding", "currentType", "=", "(", "ReferenceBinding", ")", "this", ".", "resolvedType", ";", "if", "(", "qualifyingType", "==", "null", ")", "{", "qualifyingType", "=", "currentType", ".", "enclosingType", "(", ")", ";", "if", "(", "qualifyingType", "!=", "null", ")", "{", "qualifyingType", "=", "currentType", ".", "isStatic", "(", ")", "?", "(", "ReferenceBinding", ")", "scope", ".", "environment", "(", ")", ".", "convertToRawType", "(", "qualifyingType", ",", "false", ")", ":", "scope", ".", "environment", "(", ")", ".", "convertToParameterizedType", "(", "qualifyingType", ")", ";", "}", "}", "else", "{", "if", "(", "typeIsConsistent", "&&", "currentType", ".", "isStatic", "(", ")", "&&", "(", "qualifyingType", ".", "isParameterizedTypeWithActualArguments", "(", ")", "||", "qualifyingType", ".", "isGenericType", "(", ")", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "staticMemberOfParameterizedType", "(", "this", ",", "scope", ".", "environment", "(", ")", ".", "createParameterizedType", "(", "(", "ReferenceBinding", ")", "currentType", ".", "erasure", "(", ")", ",", "null", ",", "qualifyingType", ")", ",", "i", ")", ";", "typeIsConsistent", "=", "false", ";", "}", "ReferenceBinding", "enclosingType", "=", "currentType", ".", "enclosingType", "(", ")", ";", "if", "(", "enclosingType", "!=", "null", "&&", "enclosingType", ".", "erasure", "(", ")", "!=", "qualifyingType", ".", "erasure", "(", ")", ")", "{", "qualifyingType", "=", "enclosingType", ";", "}", "}", "TypeReference", "[", "]", "args", "=", "this", ".", "typeArguments", "[", "i", "]", ";", "if", "(", "args", "!=", "null", ")", "{", "TypeReference", "keep", "=", "null", ";", "if", "(", "isClassScope", ")", "{", "keep", "=", "(", "(", "ClassScope", ")", "scope", ")", ".", "superTypeReference", ";", "(", "(", "ClassScope", ")", "scope", ")", ".", "superTypeReference", "=", "null", ";", "}", "int", "argLength", "=", "args", ".", "length", ";", "boolean", "isDiamond", "=", "argLength", "==", "0", "&&", "(", "i", "==", "(", "max", "-", "1", ")", ")", "&&", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsDiamond", ")", "!=", "0", ")", ";", "TypeBinding", "[", "]", "argTypes", "=", "new", "TypeBinding", "[", "argLength", "]", ";", "boolean", "argHasError", "=", "false", ";", "ReferenceBinding", "currentOriginal", "=", "(", "ReferenceBinding", ")", "currentType", ".", "original", "(", ")", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "argLength", ";", "j", "++", ")", "{", "TypeReference", "arg", "=", "args", "[", "j", "]", ";", "TypeBinding", "argType", "=", "isClassScope", "?", "arg", ".", "resolveTypeArgument", "(", "(", "ClassScope", ")", "scope", ",", "currentOriginal", ",", "j", ")", ":", "arg", ".", "resolveTypeArgument", "(", "(", "BlockScope", ")", "scope", ",", "currentOriginal", ",", "j", ")", ";", "if", "(", "argType", "==", "null", ")", "{", "argHasError", "=", "true", ";", "}", "else", "{", "argTypes", "[", "j", "]", "=", "argType", ";", "}", "}", "if", "(", "argHasError", ")", "{", "return", "null", ";", "}", "if", "(", "isClassScope", ")", "{", "(", "(", "ClassScope", ")", "scope", ")", ".", "superTypeReference", "=", "keep", ";", "if", "(", "(", "(", "ClassScope", ")", "scope", ")", ".", "detectHierarchyCycle", "(", "currentOriginal", ",", "this", ")", ")", "return", "null", ";", "}", "TypeVariableBinding", "[", "]", "typeVariables", "=", "currentOriginal", ".", "typeVariables", "(", ")", ";", "if", "(", "typeVariables", "==", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "if", "(", "scope", ".", "compilerOptions", "(", ")", ".", "originalSourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "nonGenericTypeCannotBeParameterized", "(", "i", ",", "this", ",", "currentType", ",", "argTypes", ")", ";", "return", "null", ";", "}", "this", ".", "resolvedType", "=", "(", "qualifyingType", "!=", "null", "&&", "qualifyingType", ".", "isParameterizedType", "(", ")", ")", "?", "scope", ".", "environment", "(", ")", ".", "createParameterizedType", "(", "currentOriginal", ",", "null", ",", "qualifyingType", ")", ":", "currentType", ";", "return", "this", ".", "resolvedType", ";", "}", "else", "if", "(", "argLength", "!=", "typeVariables", ".", "length", ")", "{", "if", "(", "!", "isDiamond", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "incorrectArityForParameterizedType", "(", "this", ",", "currentType", ",", "argTypes", ",", "i", ")", ";", "return", "null", ";", "}", "}", "if", "(", "typeIsConsistent", "&&", "!", "currentType", ".", "isStatic", "(", ")", ")", "{", "ReferenceBinding", "actualEnclosing", "=", "currentType", ".", "enclosingType", "(", ")", ";", "if", "(", "actualEnclosing", "!=", "null", "&&", "actualEnclosing", ".", "isRawType", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "rawMemberTypeCannotBeParameterized", "(", "this", ",", "scope", ".", "environment", "(", ")", ".", "createRawType", "(", "currentOriginal", ",", "actualEnclosing", ")", ",", "argTypes", ")", ";", "typeIsConsistent", "=", "false", ";", "}", "}", "ParameterizedTypeBinding", "parameterizedType", "=", "scope", ".", "environment", "(", ")", ".", "createParameterizedType", "(", "currentOriginal", ",", "argTypes", ",", "qualifyingType", ")", ";", "if", "(", "!", "isDiamond", ")", "{", "if", "(", "checkBounds", ")", "parameterizedType", ".", "boundCheck", "(", "scope", ",", "args", ")", ";", "else", "scope", ".", "deferBoundCheck", "(", "this", ")", ";", "}", "qualifyingType", "=", "parameterizedType", ";", "}", "else", "{", "ReferenceBinding", "currentOriginal", "=", "(", "ReferenceBinding", ")", "currentType", ".", "original", "(", ")", ";", "if", "(", "isClassScope", ")", "if", "(", "(", "(", "ClassScope", ")", "scope", ")", ".", "detectHierarchyCycle", "(", "currentOriginal", ",", "this", ")", ")", "return", "null", ";", "if", "(", "currentOriginal", ".", "isGenericType", "(", ")", ")", "{", "if", "(", "typeIsConsistent", "&&", "qualifyingType", "!=", "null", "&&", "qualifyingType", ".", "isParameterizedType", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "parameterizedMemberTypeMissingArguments", "(", "this", ",", "scope", ".", "environment", "(", ")", ".", "createParameterizedType", "(", "currentOriginal", ",", "null", ",", "qualifyingType", ")", ",", "i", ")", ";", "typeIsConsistent", "=", "false", ";", "}", "qualifyingType", "=", "scope", ".", "environment", "(", ")", ".", "createRawType", "(", "currentOriginal", ",", "qualifyingType", ")", ";", "}", "else", "{", "qualifyingType", "=", "(", "qualifyingType", "!=", "null", "&&", "qualifyingType", ".", "isParameterizedType", "(", ")", ")", "?", "scope", ".", "environment", "(", ")", ".", "createParameterizedType", "(", "currentOriginal", ",", "null", ",", "qualifyingType", ")", ":", "currentType", ";", "}", "}", "if", "(", "isTypeUseDeprecated", "(", "qualifyingType", ",", "scope", ")", ")", "reportDeprecatedType", "(", "qualifyingType", ",", "scope", ",", "i", ")", ";", "this", ".", "resolvedType", "=", "qualifyingType", ";", "}", "return", "this", ".", "resolvedType", ";", "}", "private", "void", "createArrayType", "(", "Scope", "scope", ")", "{", "if", "(", "this", ".", "dimensions", ">", "0", ")", "{", "if", "(", "this", ".", "dimensions", ">", "255", ")", "scope", ".", "problemReporter", "(", ")", ".", "tooManyDimensions", "(", "this", ")", ";", "this", ".", "resolvedType", "=", "scope", ".", "createArrayType", "(", "this", ".", "resolvedType", ",", "this", ".", "dimensions", ")", ";", "}", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "int", "length", "=", "this", ".", "tokens", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", "-", "1", ";", "i", "++", ")", "{", "output", ".", "append", "(", "this", ".", "tokens", "[", "i", "]", ")", ";", "TypeReference", "[", "]", "typeArgument", "=", "this", ".", "typeArguments", "[", "i", "]", ";", "if", "(", "typeArgument", "!=", "null", ")", "{", "output", ".", "append", "(", "'<'", ")", ";", "int", "typeArgumentLength", "=", "typeArgument", ".", "length", ";", "if", "(", "typeArgumentLength", ">", "0", ")", "{", "int", "max", "=", "typeArgumentLength", "-", "1", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "max", ";", "j", "++", ")", "{", "typeArgument", "[", "j", "]", ".", "print", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "\",", "\"", ")", ";", "}", "typeArgument", "[", "max", "]", ".", "print", "(", "0", ",", "output", ")", ";", "}", "output", ".", "append", "(", "'>'", ")", ";", "}", "output", ".", "append", "(", "'.'", ")", ";", "}", "output", ".", "append", "(", "this", ".", "tokens", "[", "length", "-", "1", "]", ")", ";", "TypeReference", "[", "]", "typeArgument", "=", "this", ".", "typeArguments", "[", "length", "-", "1", "]", ";", "if", "(", "typeArgument", "!=", "null", ")", "{", "output", ".", "append", "(", "'<'", ")", ";", "int", "typeArgumentLength", "=", "typeArgument", ".", "length", ";", "if", "(", "typeArgumentLength", ">", "0", ")", "{", "int", "max", "=", "typeArgumentLength", "-", "1", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "max", ";", "j", "++", ")", "{", "typeArgument", "[", "j", "]", ".", "print", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "\",", "\"", ")", ";", "}", "typeArgument", "[", "max", "]", ".", "print", "(", "0", ",", "output", ")", ";", "}", "output", ".", "append", "(", "'>'", ")", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "IsVarArgs", ")", "!=", "0", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "dimensions", "-", "1", ";", "i", "++", ")", "{", "output", ".", "append", "(", "\"[]\"", ")", ";", "}", "output", ".", "append", "(", "\"...\"", ")", ";", "}", "else", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "dimensions", ";", "i", "++", ")", "{", "output", ".", "append", "(", "\"[]\"", ")", ";", "}", "}", "return", "output", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ",", "boolean", "checkBounds", ")", "{", "return", "internalResolveType", "(", "scope", ",", "checkBounds", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "ClassScope", "scope", ")", "{", "return", "internalResolveType", "(", "scope", ",", "false", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "typeArguments", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "if", "(", "this", ".", "typeArguments", "[", "i", "]", "!=", "null", ")", "{", "for", "(", "int", "j", "=", "0", ",", "max2", "=", "this", ".", "typeArguments", "[", "i", "]", ".", "length", ";", "j", "<", "max2", ";", "j", "++", ")", "{", "this", ".", "typeArguments", "[", "i", "]", "[", "j", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "typeArguments", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "if", "(", "this", ".", "typeArguments", "[", "i", "]", "!=", "null", ")", "{", "for", "(", "int", "j", "=", "0", ",", "max2", "=", "this", ".", "typeArguments", "[", "i", "]", ".", "length", ";", "j", "<", "max2", ";", "j", "++", ")", "{", "this", ".", "typeArguments", "[", "i", "]", "[", "j", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
4,230
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "public", "class", "CombinedBinaryExpression", "extends", "BinaryExpression", "{", "public", "int", "arity", ";", "public", "int", "arityMax", ";", "public", "static", "final", "int", "ARITY_MAX_MAX", "=", "160", ";", "public", "static", "final", "int", "ARITY_MAX_MIN", "=", "20", ";", "public", "static", "int", "defaultArityMaxStartingValue", "=", "ARITY_MAX_MIN", ";", "public", "BinaryExpression", "referencesTable", "[", "]", ";", "public", "CombinedBinaryExpression", "(", "Expression", "left", ",", "Expression", "right", ",", "int", "operator", ",", "int", "arity", ")", "{", "super", "(", "left", ",", "right", ",", "operator", ")", ";", "initArity", "(", "left", ",", "arity", ")", ";", "}", "public", "CombinedBinaryExpression", "(", "CombinedBinaryExpression", "expression", ")", "{", "super", "(", "expression", ")", ";", "initArity", "(", "expression", ".", "left", ",", "expression", ".", "arity", ")", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "referencesTable", "==", "null", ")", "{", "return", "super", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "BinaryExpression", "cursor", ";", "if", "(", "(", "cursor", "=", "this", ".", "referencesTable", "[", "0", "]", ")", ".", "resolvedType", ".", "id", "!=", "TypeIds", ".", "T_JavaLangString", ")", "{", "cursor", ".", "left", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "flowInfo", "=", "cursor", ".", "left", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "end", "=", "this", ".", "arity", ";", "i", "<", "end", ";", "i", "++", ")", "{", "if", "(", "(", "cursor", "=", "this", ".", "referencesTable", "[", "i", "]", ")", ".", "resolvedType", ".", "id", "!=", "TypeIds", ".", "T_JavaLangString", ")", "{", "cursor", ".", "right", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "flowInfo", "=", "cursor", ".", "right", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "}", "if", "(", "this", ".", "resolvedType", ".", "id", "!=", "TypeIds", ".", "T_JavaLangString", ")", "{", "this", ".", "right", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "return", "this", ".", "right", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "}", "public", "void", "generateOptimizedStringConcatenation", "(", "BlockScope", "blockScope", ",", "CodeStream", "codeStream", ",", "int", "typeID", ")", "{", "if", "(", "this", ".", "referencesTable", "==", "null", ")", "{", "super", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "typeID", ")", ";", "}", "else", "{", "if", "(", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ")", "==", "OperatorIds", ".", "PLUS", ")", "&&", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "==", "TypeIds", ".", "T_JavaLangString", ")", ")", "{", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "invokeStringConcatenationAppendForType", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "}", "else", "{", "BinaryExpression", "cursor", "=", "this", ".", "referencesTable", "[", "0", "]", ";", "int", "restart", "=", "0", ";", "int", "pc", "=", "codeStream", ".", "position", ";", "for", "(", "restart", "=", "this", ".", "arity", "-", "1", ";", "restart", ">=", "0", ";", "restart", "--", ")", "{", "if", "(", "(", "cursor", "=", "this", ".", "referencesTable", "[", "restart", "]", ")", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "codeStream", ".", "generateConstant", "(", "cursor", ".", "constant", ",", "cursor", ".", "implicitConversion", ")", ";", "codeStream", ".", "invokeStringConcatenationAppendForType", "(", "cursor", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "break", ";", "}", "}", "restart", "++", ";", "if", "(", "restart", "==", "0", ")", "{", "cursor", ".", "left", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "cursor", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "}", "int", "pcAux", ";", "for", "(", "int", "i", "=", "restart", ";", "i", "<", "this", ".", "arity", ";", "i", "++", ")", "{", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "(", "cursor", "=", "this", ".", "referencesTable", "[", "i", "]", ")", ".", "left", ".", "sourceStart", ")", ";", "pcAux", "=", "codeStream", ".", "position", ";", "cursor", ".", "right", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "cursor", ".", "right", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pcAux", ",", "cursor", ".", "right", ".", "sourceStart", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "left", ".", "sourceStart", ")", ";", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "right", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "this", ".", "right", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "right", ".", "sourceStart", ")", ";", "}", "}", "else", "{", "super", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "typeID", ")", ";", "}", "}", "}", "public", "void", "generateOptimizedStringConcatenationCreation", "(", "BlockScope", "blockScope", ",", "CodeStream", "codeStream", ",", "int", "typeID", ")", "{", "if", "(", "this", ".", "referencesTable", "==", "null", ")", "{", "super", ".", "generateOptimizedStringConcatenationCreation", "(", "blockScope", ",", "codeStream", ",", "typeID", ")", ";", "}", "else", "{", "if", "(", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ")", "==", "OperatorIds", ".", "PLUS", ")", "&&", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "==", "TypeIds", ".", "T_JavaLangString", ")", "&&", "this", ".", "constant", "==", "Constant", ".", "NotAConstant", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "BinaryExpression", "cursor", "=", "this", ".", "referencesTable", "[", "this", ".", "arity", "-", "1", "]", ";", "int", "restart", "=", "0", ";", "for", "(", "restart", "=", "this", ".", "arity", "-", "1", ";", "restart", ">=", "0", ";", "restart", "--", ")", "{", "if", "(", "(", "(", "(", "(", "cursor", "=", "this", ".", "referencesTable", "[", "restart", "]", ")", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ")", "==", "OperatorIds", ".", "PLUS", ")", "&&", "(", "(", "cursor", ".", "bits", "&", "ASTNode", ".", "ReturnTypeIDMASK", ")", "==", "TypeIds", ".", "T_JavaLangString", ")", ")", "{", "if", "(", "cursor", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "codeStream", ".", "newStringContatenation", "(", ")", ";", "codeStream", ".", "dup", "(", ")", ";", "codeStream", ".", "ldc", "(", "cursor", ".", "constant", ".", "stringValue", "(", ")", ")", ";", "codeStream", ".", "invokeStringConcatenationStringConstructor", "(", ")", ";", "break", ";", "}", "}", "else", "{", "cursor", ".", "generateOptimizedStringConcatenationCreation", "(", "blockScope", ",", "codeStream", ",", "cursor", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "break", ";", "}", "}", "restart", "++", ";", "if", "(", "restart", "==", "0", ")", "{", "cursor", ".", "left", ".", "generateOptimizedStringConcatenationCreation", "(", "blockScope", ",", "codeStream", ",", "cursor", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "}", "int", "pcAux", ";", "for", "(", "int", "i", "=", "restart", ";", "i", "<", "this", ".", "arity", ";", "i", "++", ")", "{", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "(", "cursor", "=", "this", ".", "referencesTable", "[", "i", "]", ")", ".", "left", ".", "sourceStart", ")", ";", "pcAux", "=", "codeStream", ".", "position", ";", "cursor", ".", "right", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "cursor", ".", "right", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pcAux", ",", "cursor", ".", "right", ".", "sourceStart", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "left", ".", "sourceStart", ")", ";", "pc", "=", "codeStream", ".", "position", ";", "this", ".", "right", ".", "generateOptimizedStringConcatenation", "(", "blockScope", ",", "codeStream", ",", "this", ".", "right", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "right", ".", "sourceStart", ")", ";", "}", "else", "{", "super", ".", "generateOptimizedStringConcatenationCreation", "(", "blockScope", ",", "codeStream", ",", "typeID", ")", ";", "}", "}", "}", "private", "void", "initArity", "(", "Expression", "expression", ",", "int", "value", ")", "{", "this", ".", "arity", "=", "value", ";", "if", "(", "value", ">", "1", ")", "{", "this", ".", "referencesTable", "=", "new", "BinaryExpression", "[", "value", "]", ";", "this", ".", "referencesTable", "[", "value", "-", "1", "]", "=", "(", "BinaryExpression", ")", "expression", ";", "for", "(", "int", "i", "=", "value", "-", "1", ";", "i", ">", "0", ";", "i", "--", ")", "{", "this", ".", "referencesTable", "[", "i", "-", "1", "]", "=", "(", "BinaryExpression", ")", "this", ".", "referencesTable", "[", "i", "]", ".", "left", ";", "}", "}", "else", "{", "this", ".", "arityMax", "=", "defaultArityMaxStartingValue", ";", "}", "}", "public", "StringBuffer", "printExpressionNoParenthesis", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "if", "(", "this", ".", "referencesTable", "==", "null", ")", "{", "return", "super", ".", "printExpressionNoParenthesis", "(", "indent", ",", "output", ")", ";", "}", "String", "operatorString", "=", "operatorToString", "(", ")", ";", "for", "(", "int", "i", "=", "this", ".", "arity", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "output", ".", "append", "(", "'('", ")", ";", "}", "output", "=", "this", ".", "referencesTable", "[", "0", "]", ".", "left", ".", "printExpression", "(", "indent", ",", "output", ")", ";", "for", "(", "int", "i", "=", "0", ",", "end", "=", "this", ".", "arity", ";", "i", "<", "end", ";", "i", "++", ")", "{", "output", ".", "append", "(", "'", "'", ")", ".", "append", "(", "operatorString", ")", ".", "append", "(", "'", "'", ")", ";", "output", "=", "this", ".", "referencesTable", "[", "i", "]", ".", "right", ".", "printExpression", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "')'", ")", ";", "}", "output", ".", "append", "(", "'", "'", ")", ".", "append", "(", "operatorString", ")", ".", "append", "(", "'", "'", ")", ";", "return", "this", ".", "right", ".", "printExpression", "(", "0", ",", "output", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "if", "(", "this", ".", "referencesTable", "==", "null", ")", "{", "return", "super", ".", "resolveType", "(", "scope", ")", ";", "}", "BinaryExpression", "cursor", ";", "if", "(", "(", "cursor", "=", "this", ".", "referencesTable", "[", "0", "]", ")", ".", "left", "instanceof", "CastExpression", ")", "{", "cursor", ".", "left", ".", "bits", "|=", "ASTNode", ".", "DisableUnnecessaryCastCheck", ";", "}", "cursor", ".", "left", ".", "resolveType", "(", "scope", ")", ";", "for", "(", "int", "i", "=", "0", ",", "end", "=", "this", ".", "arity", ";", "i", "<", "end", ";", "i", "++", ")", "{", "this", ".", "referencesTable", "[", "i", "]", ".", "nonRecursiveResolveTypeUpwards", "(", "scope", ")", ";", "}", "nonRecursiveResolveTypeUpwards", "(", "scope", ")", ";", "return", "this", ".", "resolvedType", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "this", ".", "referencesTable", "==", "null", ")", "{", "super", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "else", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "int", "restart", ";", "for", "(", "restart", "=", "this", ".", "arity", "-", "1", ";", "restart", ">=", "0", ";", "restart", "--", ")", "{", "if", "(", "!", "visitor", ".", "visit", "(", "this", ".", "referencesTable", "[", "restart", "]", ",", "scope", ")", ")", "{", "visitor", ".", "endVisit", "(", "this", ".", "referencesTable", "[", "restart", "]", ",", "scope", ")", ";", "break", ";", "}", "}", "restart", "++", ";", "if", "(", "restart", "==", "0", ")", "{", "this", ".", "referencesTable", "[", "0", "]", ".", "left", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "for", "(", "int", "i", "=", "restart", ",", "end", "=", "this", ".", "arity", ";", "i", "<", "end", ";", "i", "++", ")", "{", "this", ".", "referencesTable", "[", "i", "]", ".", "right", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ".", "referencesTable", "[", "i", "]", ",", "scope", ")", ";", "}", "this", ".", "right", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "public", "void", "tuneArityMax", "(", ")", "{", "if", "(", "this", ".", "arityMax", "<", "ARITY_MAX_MAX", ")", "{", "this", ".", "arityMax", "*=", "2", ";", "}", "}", "}", "</s>" ]
4,231
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "ArrayAllocationExpression", "extends", "Expression", "{", "public", "TypeReference", "type", ";", "public", "Expression", "[", "]", "dimensions", ";", "public", "ArrayInitializer", "initializer", ";", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "dimensions", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "Expression", "dim", ";", "if", "(", "(", "dim", "=", "this", ".", "dimensions", "[", "i", "]", ")", "!=", "null", ")", "{", "flowInfo", "=", "dim", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "if", "(", "(", "dim", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "dim", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "}", "}", "if", "(", "this", ".", "initializer", "!=", "null", ")", "{", "return", "this", ".", "initializer", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "return", "flowInfo", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "this", ".", "initializer", "!=", "null", ")", "{", "this", ".", "initializer", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "valueRequired", ")", ";", "return", ";", "}", "int", "explicitDimCount", "=", "0", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "dimensions", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "Expression", "dimExpression", ";", "if", "(", "(", "dimExpression", "=", "this", ".", "dimensions", "[", "i", "]", ")", "==", "null", ")", "break", ";", "dimExpression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "explicitDimCount", "++", ";", "}", "if", "(", "explicitDimCount", "==", "1", ")", "{", "codeStream", ".", "newArray", "(", "(", "ArrayBinding", ")", "this", ".", "resolvedType", ")", ";", "}", "else", "{", "codeStream", ".", "multianewarray", "(", "this", ".", "resolvedType", ",", "explicitDimCount", ")", ";", "}", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "codeStream", ".", "pop", "(", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "output", ".", "append", "(", "\"new", "\"", ")", ";", "this", ".", "type", ".", "print", "(", "0", ",", "output", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "dimensions", ".", "length", ";", "i", "++", ")", "{", "if", "(", "this", ".", "dimensions", "[", "i", "]", "==", "null", ")", "output", ".", "append", "(", "\"[]\"", ")", ";", "else", "{", "output", ".", "append", "(", "'['", ")", ";", "this", ".", "dimensions", "[", "i", "]", ".", "printExpression", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "']'", ")", ";", "}", "}", "if", "(", "this", ".", "initializer", "!=", "null", ")", "this", ".", "initializer", ".", "printExpression", "(", "0", ",", "output", ")", ";", "return", "output", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "TypeBinding", "referenceType", "=", "this", ".", "type", ".", "resolveType", "(", "scope", ",", "true", ")", ";", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "referenceType", "==", "TypeBinding", ".", "VOID", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotAllocateVoidArray", "(", "this", ")", ";", "referenceType", "=", "null", ";", "}", "int", "explicitDimIndex", "=", "-", "1", ";", "loop", ":", "for", "(", "int", "i", "=", "this", ".", "dimensions", ".", "length", ";", "--", "i", ">=", "0", ";", ")", "{", "if", "(", "this", ".", "dimensions", "[", "i", "]", "!=", "null", ")", "{", "if", "(", "explicitDimIndex", "<", "0", ")", "explicitDimIndex", "=", "i", ";", "}", "else", "if", "(", "explicitDimIndex", ">", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "incorrectLocationForNonEmptyDimension", "(", "this", ",", "explicitDimIndex", ")", ";", "break", "loop", ";", "}", "}", "if", "(", "this", ".", "initializer", "==", "null", ")", "{", "if", "(", "explicitDimIndex", "<", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "mustDefineDimensionsOrInitializer", "(", "this", ")", ";", "}", "if", "(", "referenceType", "!=", "null", "&&", "!", "referenceType", ".", "isReifiable", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "illegalGenericArray", "(", "referenceType", ",", "this", ")", ";", "}", "}", "else", "if", "(", "explicitDimIndex", ">=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotDefineDimensionsAndInitializer", "(", "this", ")", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "explicitDimIndex", ";", "i", "++", ")", "{", "Expression", "dimExpression", ";", "if", "(", "(", "dimExpression", "=", "this", ".", "dimensions", "[", "i", "]", ")", "!=", "null", ")", "{", "TypeBinding", "dimensionType", "=", "dimExpression", ".", "resolveTypeExpecting", "(", "scope", ",", "TypeBinding", ".", "INT", ")", ";", "if", "(", "dimensionType", "!=", "null", ")", "{", "this", ".", "dimensions", "[", "i", "]", ".", "computeConversion", "(", "scope", ",", "TypeBinding", ".", "INT", ",", "dimensionType", ")", ";", "}", "}", "}", "if", "(", "referenceType", "!=", "null", ")", "{", "if", "(", "this", ".", "dimensions", ".", "length", ">", "255", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "tooManyDimensions", "(", "this", ")", ";", "}", "this", ".", "resolvedType", "=", "scope", ".", "createArrayType", "(", "referenceType", ",", "this", ".", "dimensions", ".", "length", ")", ";", "if", "(", "this", ".", "initializer", "!=", "null", ")", "{", "if", "(", "(", "this", ".", "initializer", ".", "resolveTypeExpecting", "(", "scope", ",", "this", ".", "resolvedType", ")", ")", "!=", "null", ")", "this", ".", "initializer", ".", "binding", "=", "(", "ArrayBinding", ")", "this", ".", "resolvedType", ";", "}", "if", "(", "(", "referenceType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "return", "null", ";", "}", "}", "return", "this", ".", "resolvedType", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "int", "dimensionsLength", "=", "this", ".", "dimensions", ".", "length", ";", "this", ".", "type", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "dimensionsLength", ";", "i", "++", ")", "{", "if", "(", "this", ".", "dimensions", "[", "i", "]", "!=", "null", ")", "this", ".", "dimensions", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "if", "(", "this", ".", "initializer", "!=", "null", ")", "this", ".", "initializer", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
4,232
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "CompilerOptions", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "JavadocTagConstants", ";", "public", "class", "Javadoc", "extends", "ASTNode", "{", "public", "JavadocSingleNameReference", "[", "]", "paramReferences", ";", "public", "JavadocSingleTypeReference", "[", "]", "paramTypeParameters", ";", "public", "TypeReference", "[", "]", "exceptionReferences", ";", "public", "JavadocReturnStatement", "returnStatement", ";", "public", "Expression", "[", "]", "seeReferences", ";", "public", "long", "[", "]", "inheritedPositions", "=", "null", ";", "public", "JavadocSingleNameReference", "[", "]", "invalidParameters", ";", "public", "long", "valuePositions", "=", "-", "1", ";", "public", "Javadoc", "(", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "sourceStart", "=", "sourceStart", ";", "this", ".", "sourceEnd", "=", "sourceEnd", ";", "this", ".", "bits", "|=", "ASTNode", ".", "ResolveJavadoc", ";", "}", "boolean", "canBeSeen", "(", "int", "visibility", ",", "int", "modifiers", ")", "{", "if", "(", "modifiers", "<", "0", ")", "return", "true", ";", "switch", "(", "modifiers", "&", "ExtraCompilerModifiers", ".", "AccVisibilityMASK", ")", "{", "case", "ClassFileConstants", ".", "AccPublic", ":", "return", "true", ";", "case", "ClassFileConstants", ".", "AccProtected", ":", "return", "(", "visibility", "!=", "ClassFileConstants", ".", "AccPublic", ")", ";", "case", "ClassFileConstants", ".", "AccDefault", ":", "return", "(", "visibility", "==", "ClassFileConstants", ".", "AccDefault", "||", "visibility", "==", "ClassFileConstants", ".", "AccPrivate", ")", ";", "case", "ClassFileConstants", ".", "AccPrivate", ":", "return", "(", "visibility", "==", "ClassFileConstants", ".", "AccPrivate", ")", ";", "}", "return", "true", ";", "}", "public", "ASTNode", "getNodeStartingAt", "(", "int", "start", ")", "{", "int", "length", "=", "0", ";", "if", "(", "this", ".", "paramReferences", "!=", "null", ")", "{", "length", "=", "this", ".", "paramReferences", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "JavadocSingleNameReference", "param", "=", "this", ".", "paramReferences", "[", "i", "]", ";", "if", "(", "param", ".", "sourceStart", "==", "start", ")", "{", "return", "param", ";", "}", "}", "}", "if", "(", "this", ".", "invalidParameters", "!=", "null", ")", "{", "length", "=", "this", ".", "invalidParameters", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "JavadocSingleNameReference", "param", "=", "this", ".", "invalidParameters", "[", "i", "]", ";", "if", "(", "param", ".", "sourceStart", "==", "start", ")", "{", "return", "param", ";", "}", "}", "}", "if", "(", "this", ".", "paramTypeParameters", "!=", "null", ")", "{", "length", "=", "this", ".", "paramTypeParameters", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "JavadocSingleTypeReference", "param", "=", "this", ".", "paramTypeParameters", "[", "i", "]", ";", "if", "(", "param", ".", "sourceStart", "==", "start", ")", "{", "return", "param", ";", "}", "}", "}", "if", "(", "this", ".", "exceptionReferences", "!=", "null", ")", "{", "length", "=", "this", ".", "exceptionReferences", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeReference", "typeRef", "=", "this", ".", "exceptionReferences", "[", "i", "]", ";", "if", "(", "typeRef", ".", "sourceStart", "==", "start", ")", "{", "return", "typeRef", ";", "}", "}", "}", "if", "(", "this", ".", "seeReferences", "!=", "null", ")", "{", "length", "=", "this", ".", "seeReferences", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Expression", "expression", "=", "this", ".", "seeReferences", "[", "i", "]", ";", "if", "(", "expression", ".", "sourceStart", "==", "start", ")", "{", "return", "expression", ";", "}", "else", "if", "(", "expression", "instanceof", "JavadocAllocationExpression", ")", "{", "JavadocAllocationExpression", "allocationExpr", "=", "(", "JavadocAllocationExpression", ")", "this", ".", "seeReferences", "[", "i", "]", ";", "if", "(", "allocationExpr", ".", "binding", "!=", "null", "&&", "allocationExpr", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "if", "(", "allocationExpr", ".", "arguments", "!=", "null", ")", "{", "for", "(", "int", "j", "=", "0", ",", "l", "=", "allocationExpr", ".", "arguments", ".", "length", ";", "j", "<", "l", ";", "j", "++", ")", "{", "if", "(", "allocationExpr", ".", "arguments", "[", "j", "]", ".", "sourceStart", "==", "start", ")", "{", "return", "allocationExpr", ".", "arguments", "[", "j", "]", ";", "}", "}", "}", "}", "}", "else", "if", "(", "expression", "instanceof", "JavadocMessageSend", ")", "{", "JavadocMessageSend", "messageSend", "=", "(", "JavadocMessageSend", ")", "this", ".", "seeReferences", "[", "i", "]", ";", "if", "(", "messageSend", ".", "binding", "!=", "null", "&&", "messageSend", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "if", "(", "messageSend", ".", "arguments", "!=", "null", ")", "{", "for", "(", "int", "j", "=", "0", ",", "l", "=", "messageSend", ".", "arguments", ".", "length", ";", "j", "<", "l", ";", "j", "++", ")", "{", "if", "(", "messageSend", ".", "arguments", "[", "j", "]", ".", "sourceStart", "==", "start", ")", "{", "return", "messageSend", ".", "arguments", "[", "j", "]", ";", "}", "}", "}", "}", "}", "}", "}", "return", "null", ";", "}", "public", "StringBuffer", "print", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "indent", ",", "output", ")", ".", "append", "(", "\"/**n\"", ")", ";", "if", "(", "this", ".", "paramReferences", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "paramReferences", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "printIndent", "(", "indent", "+", "1", ",", "output", ")", ".", "append", "(", "\"", "*", "@param", "\"", ")", ";", "this", ".", "paramReferences", "[", "i", "]", ".", "print", "(", "indent", ",", "output", ")", ".", "append", "(", "'\\n'", ")", ";", "}", "}", "if", "(", "this", ".", "paramTypeParameters", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "paramTypeParameters", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "printIndent", "(", "indent", "+", "1", ",", "output", ")", ".", "append", "(", "\"", "*", "@param", "<\"", ")", ";", "this", ".", "paramTypeParameters", "[", "i", "]", ".", "print", "(", "indent", ",", "output", ")", ".", "append", "(", "\">n\"", ")", ";", "}", "}", "if", "(", "this", ".", "returnStatement", "!=", "null", ")", "{", "printIndent", "(", "indent", "+", "1", ",", "output", ")", ".", "append", "(", "\"", "*", "@\"", ")", ";", "this", ".", "returnStatement", ".", "print", "(", "indent", ",", "output", ")", ".", "append", "(", "'\\n'", ")", ";", "}", "if", "(", "this", ".", "exceptionReferences", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "exceptionReferences", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "printIndent", "(", "indent", "+", "1", ",", "output", ")", ".", "append", "(", "\"", "*", "@throws", "\"", ")", ";", "this", ".", "exceptionReferences", "[", "i", "]", ".", "print", "(", "indent", ",", "output", ")", ".", "append", "(", "'\\n'", ")", ";", "}", "}", "if", "(", "this", ".", "seeReferences", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "seeReferences", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "printIndent", "(", "indent", "+", "1", ",", "output", ")", ".", "append", "(", "\"", "*", "@see", "\"", ")", ";", "this", ".", "seeReferences", "[", "i", "]", ".", "print", "(", "indent", ",", "output", ")", ".", "append", "(", "'\\n'", ")", ";", "}", "}", "printIndent", "(", "indent", ",", "output", ")", ".", "append", "(", "\"", "*/n\"", ")", ";", "return", "output", ";", "}", "public", "void", "resolve", "(", "ClassScope", "scope", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "ResolveJavadoc", ")", "==", "0", ")", "{", "return", ";", "}", "if", "(", "this", ".", "inheritedPositions", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "inheritedPositions", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "++", "i", ")", "{", "int", "start", "=", "(", "int", ")", "(", "this", ".", "inheritedPositions", "[", "i", "]", ">>>", "32", ")", ";", "int", "end", "=", "(", "int", ")", "this", ".", "inheritedPositions", "[", "i", "]", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "start", ",", "end", ")", ";", "}", "}", "int", "paramTagsSize", "=", "this", ".", "paramReferences", "==", "null", "?", "0", ":", "this", ".", "paramReferences", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "paramTagsSize", ";", "i", "++", ")", "{", "JavadocSingleNameReference", "param", "=", "this", ".", "paramReferences", "[", "i", "]", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "param", ".", "tagSourceStart", ",", "param", ".", "tagSourceEnd", ")", ";", "}", "resolveTypeParameterTags", "(", "scope", ",", "true", ")", ";", "if", "(", "this", ".", "returnStatement", "!=", "null", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "this", ".", "returnStatement", ".", "sourceStart", ",", "this", ".", "returnStatement", ".", "sourceEnd", ")", ";", "}", "int", "throwsTagsLength", "=", "this", ".", "exceptionReferences", "==", "null", "?", "0", ":", "this", ".", "exceptionReferences", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "throwsTagsLength", ";", "i", "++", ")", "{", "TypeReference", "typeRef", "=", "this", ".", "exceptionReferences", "[", "i", "]", ";", "int", "start", ",", "end", ";", "if", "(", "typeRef", "instanceof", "JavadocSingleTypeReference", ")", "{", "JavadocSingleTypeReference", "singleRef", "=", "(", "JavadocSingleTypeReference", ")", "typeRef", ";", "start", "=", "singleRef", ".", "tagSourceStart", ";", "end", "=", "singleRef", ".", "tagSourceEnd", ";", "}", "else", "if", "(", "typeRef", "instanceof", "JavadocQualifiedTypeReference", ")", "{", "JavadocQualifiedTypeReference", "qualifiedRef", "=", "(", "JavadocQualifiedTypeReference", ")", "typeRef", ";", "start", "=", "qualifiedRef", ".", "tagSourceStart", ";", "end", "=", "qualifiedRef", ".", "tagSourceEnd", ";", "}", "else", "{", "start", "=", "typeRef", ".", "sourceStart", ";", "end", "=", "typeRef", ".", "sourceEnd", ";", "}", "scope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "start", ",", "end", ")", ";", "}", "int", "seeTagsLength", "=", "this", ".", "seeReferences", "==", "null", "?", "0", ":", "this", ".", "seeReferences", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "seeTagsLength", ";", "i", "++", ")", "{", "resolveReference", "(", "this", ".", "seeReferences", "[", "i", "]", ",", "scope", ")", ";", "}", "boolean", "source15", "=", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "if", "(", "!", "source15", "&&", "this", ".", "valuePositions", "!=", "-", "1", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "(", "int", ")", "(", "this", ".", "valuePositions", ">>>", "32", ")", ",", "(", "int", ")", "this", ".", "valuePositions", ")", ";", "}", "}", "public", "void", "resolve", "(", "CompilationUnitScope", "unitScope", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "ResolveJavadoc", ")", "==", "0", ")", "{", "return", ";", "}", "}", "public", "void", "resolve", "(", "MethodScope", "methScope", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "ResolveJavadoc", ")", "==", "0", ")", "{", "return", ";", "}", "AbstractMethodDeclaration", "methDecl", "=", "methScope", ".", "referenceMethod", "(", ")", ";", "boolean", "overriding", "=", "methDecl", "==", "null", "||", "methDecl", ".", "binding", "==", "null", "?", "false", ":", "!", "methDecl", ".", "binding", ".", "isStatic", "(", ")", "&&", "(", "(", "methDecl", ".", "binding", ".", "modifiers", "&", "(", "ExtraCompilerModifiers", ".", "AccImplementing", "|", "ExtraCompilerModifiers", ".", "AccOverriding", ")", ")", "!=", "0", ")", ";", "int", "seeTagsLength", "=", "this", ".", "seeReferences", "==", "null", "?", "0", ":", "this", ".", "seeReferences", ".", "length", ";", "boolean", "superRef", "=", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "seeTagsLength", ";", "i", "++", ")", "{", "resolveReference", "(", "this", ".", "seeReferences", "[", "i", "]", ",", "methScope", ")", ";", "if", "(", "methDecl", "!=", "null", "&&", "!", "superRef", ")", "{", "if", "(", "!", "methDecl", ".", "isConstructor", "(", ")", ")", "{", "if", "(", "overriding", "&&", "this", ".", "seeReferences", "[", "i", "]", "instanceof", "JavadocMessageSend", ")", "{", "JavadocMessageSend", "messageSend", "=", "(", "JavadocMessageSend", ")", "this", ".", "seeReferences", "[", "i", "]", ";", "if", "(", "messageSend", ".", "binding", "!=", "null", "&&", "messageSend", ".", "binding", ".", "isValidBinding", "(", ")", "&&", "messageSend", ".", "actualReceiverType", "instanceof", "ReferenceBinding", ")", "{", "ReferenceBinding", "methodReceiverType", "=", "(", "ReferenceBinding", ")", "messageSend", ".", "actualReceiverType", ";", "TypeBinding", "superType", "=", "methDecl", ".", "binding", ".", "declaringClass", ".", "findSuperTypeOriginatingFrom", "(", "methodReceiverType", ")", ";", "if", "(", "superType", "!=", "null", "&&", "superType", ".", "original", "(", ")", "!=", "methDecl", ".", "binding", ".", "declaringClass", "&&", "CharOperation", ".", "equals", "(", "messageSend", ".", "selector", ",", "methDecl", ".", "selector", ")", ")", "{", "if", "(", "methScope", ".", "environment", "(", ")", ".", "methodVerifier", "(", ")", ".", "doesMethodOverride", "(", "methDecl", ".", "binding", ",", "messageSend", ".", "binding", ".", "original", "(", ")", ")", ")", "{", "superRef", "=", "true", ";", "}", "}", "}", "}", "}", "else", "if", "(", "this", ".", "seeReferences", "[", "i", "]", "instanceof", "JavadocAllocationExpression", ")", "{", "JavadocAllocationExpression", "allocationExpr", "=", "(", "JavadocAllocationExpression", ")", "this", ".", "seeReferences", "[", "i", "]", ";", "if", "(", "allocationExpr", ".", "binding", "!=", "null", "&&", "allocationExpr", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "ReferenceBinding", "allocType", "=", "(", "ReferenceBinding", ")", "allocationExpr", ".", "resolvedType", ".", "original", "(", ")", ";", "ReferenceBinding", "superType", "=", "(", "ReferenceBinding", ")", "methDecl", ".", "binding", ".", "declaringClass", ".", "findSuperTypeOriginatingFrom", "(", "allocType", ")", ";", "if", "(", "superType", "!=", "null", "&&", "superType", ".", "original", "(", ")", "!=", "methDecl", ".", "binding", ".", "declaringClass", ")", "{", "MethodBinding", "superConstructor", "=", "methScope", ".", "getConstructor", "(", "superType", ",", "methDecl", ".", "binding", ".", "parameters", ",", "allocationExpr", ")", ";", "if", "(", "superConstructor", ".", "isValidBinding", "(", ")", "&&", "superConstructor", ".", "original", "(", ")", "==", "allocationExpr", ".", "binding", ".", "original", "(", ")", ")", "{", "if", "(", "superConstructor", ".", "areParametersEqual", "(", "methDecl", ".", "binding", ")", ")", "{", "superRef", "=", "true", ";", "}", "}", "}", "}", "}", "}", "}", "if", "(", "!", "superRef", "&&", "methDecl", "!=", "null", "&&", "methDecl", ".", "annotations", "!=", "null", ")", "{", "int", "length", "=", "methDecl", ".", "annotations", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", "&&", "!", "superRef", ";", "i", "++", ")", "{", "superRef", "=", "(", "methDecl", ".", "binding", ".", "tagBits", "&", "TagBits", ".", "AnnotationOverride", ")", "!=", "0", ";", "}", "}", "boolean", "reportMissing", "=", "methDecl", "==", "null", "||", "!", "(", "(", "overriding", "&&", "this", ".", "inheritedPositions", "!=", "null", ")", "||", "superRef", "||", "(", "methDecl", ".", "binding", ".", "declaringClass", "!=", "null", "&&", "methDecl", ".", "binding", ".", "declaringClass", ".", "isLocalType", "(", ")", ")", ")", ";", "if", "(", "!", "overriding", "&&", "this", ".", "inheritedPositions", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "inheritedPositions", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "++", "i", ")", "{", "int", "start", "=", "(", "int", ")", "(", "this", ".", "inheritedPositions", "[", "i", "]", ">>>", "32", ")", ";", "int", "end", "=", "(", "int", ")", "this", ".", "inheritedPositions", "[", "i", "]", ";", "methScope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "start", ",", "end", ")", ";", "}", "}", "CompilerOptions", "compilerOptions", "=", "methScope", ".", "compilerOptions", "(", ")", ";", "resolveParamTags", "(", "methScope", ",", "reportMissing", ",", "compilerOptions", ".", "reportUnusedParameterIncludeDocCommentReference", ")", ";", "resolveTypeParameterTags", "(", "methScope", ",", "reportMissing", "&&", "compilerOptions", ".", "reportMissingJavadocTagsMethodTypeParameters", ")", ";", "if", "(", "this", ".", "returnStatement", "==", "null", ")", "{", "if", "(", "reportMissing", "&&", "methDecl", "!=", "null", ")", "{", "if", "(", "methDecl", ".", "isMethod", "(", ")", ")", "{", "MethodDeclaration", "meth", "=", "(", "MethodDeclaration", ")", "methDecl", ";", "if", "(", "meth", ".", "binding", ".", "returnType", "!=", "TypeBinding", ".", "VOID", ")", "{", "methScope", ".", "problemReporter", "(", ")", ".", "javadocMissingReturnTag", "(", "meth", ".", "returnType", ".", "sourceStart", ",", "meth", ".", "returnType", ".", "sourceEnd", ",", "methDecl", ".", "binding", ".", "modifiers", ")", ";", "}", "}", "}", "}", "else", "{", "this", ".", "returnStatement", ".", "resolve", "(", "methScope", ")", ";", "}", "resolveThrowsTags", "(", "methScope", ",", "reportMissing", ")", ";", "boolean", "source15", "=", "compilerOptions", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "if", "(", "!", "source15", "&&", "methDecl", "!=", "null", "&&", "this", ".", "valuePositions", "!=", "-", "1", ")", "{", "methScope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "(", "int", ")", "(", "this", ".", "valuePositions", ">>>", "32", ")", ",", "(", "int", ")", "this", ".", "valuePositions", ")", ";", "}", "int", "length", "=", "this", ".", "invalidParameters", "==", "null", "?", "0", ":", "this", ".", "invalidParameters", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "invalidParameters", "[", "i", "]", ".", "resolve", "(", "methScope", ",", "false", ",", "false", ")", ";", "}", "}", "private", "void", "resolveReference", "(", "Expression", "reference", ",", "Scope", "scope", ")", "{", "int", "problemCount", "=", "scope", ".", "referenceContext", "(", ")", ".", "compilationResult", "(", ")", ".", "problemCount", ";", "switch", "(", "scope", ".", "kind", ")", "{", "case", "Scope", ".", "METHOD_SCOPE", ":", "reference", ".", "resolveType", "(", "(", "MethodScope", ")", "scope", ")", ";", "break", ";", "case", "Scope", ".", "CLASS_SCOPE", ":", "reference", ".", "resolveType", "(", "(", "ClassScope", ")", "scope", ")", ";", "break", ";", "}", "boolean", "hasProblems", "=", "scope", ".", "referenceContext", "(", ")", ".", "compilationResult", "(", ")", ".", "problemCount", ">", "problemCount", ";", "boolean", "source15", "=", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "int", "scopeModifiers", "=", "-", "1", ";", "if", "(", "reference", "instanceof", "JavadocFieldReference", ")", "{", "JavadocFieldReference", "fieldRef", "=", "(", "JavadocFieldReference", ")", "reference", ";", "if", "(", "fieldRef", ".", "methodBinding", "!=", "null", ")", "{", "if", "(", "fieldRef", ".", "tagValue", "==", "JavadocTagConstants", ".", "TAG_VALUE_VALUE", ")", "{", "if", "(", "scopeModifiers", "==", "-", "1", ")", "scopeModifiers", "=", "scope", ".", "getDeclarationModifiers", "(", ")", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidValueReference", "(", "fieldRef", ".", "sourceStart", ",", "fieldRef", ".", "sourceEnd", ",", "scopeModifiers", ")", ";", "}", "else", "if", "(", "fieldRef", ".", "actualReceiverType", "!=", "null", ")", "{", "if", "(", "scope", ".", "enclosingSourceType", "(", ")", ".", "isCompatibleWith", "(", "fieldRef", ".", "actualReceiverType", ")", ")", "{", "fieldRef", ".", "bits", "|=", "ASTNode", ".", "SuperAccess", ";", "}", "ReferenceBinding", "resolvedType", "=", "(", "ReferenceBinding", ")", "fieldRef", ".", "actualReceiverType", ";", "if", "(", "CharOperation", ".", "equals", "(", "resolvedType", ".", "sourceName", "(", ")", ",", "fieldRef", ".", "token", ")", ")", "{", "fieldRef", ".", "methodBinding", "=", "scope", ".", "getConstructor", "(", "resolvedType", ",", "Binding", ".", "NO_TYPES", ",", "fieldRef", ")", ";", "}", "else", "{", "fieldRef", ".", "methodBinding", "=", "scope", ".", "findMethod", "(", "resolvedType", ",", "fieldRef", ".", "token", ",", "Binding", ".", "NO_TYPES", ",", "fieldRef", ")", ";", "}", "}", "}", "else", "if", "(", "source15", "&&", "fieldRef", ".", "binding", "!=", "null", "&&", "fieldRef", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "if", "(", "fieldRef", ".", "tagValue", "==", "JavadocTagConstants", ".", "TAG_VALUE_VALUE", "&&", "!", "fieldRef", ".", "binding", ".", "isStatic", "(", ")", ")", "{", "if", "(", "scopeModifiers", "==", "-", "1", ")", "scopeModifiers", "=", "scope", ".", "getDeclarationModifiers", "(", ")", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidValueReference", "(", "fieldRef", ".", "sourceStart", ",", "fieldRef", ".", "sourceEnd", ",", "scopeModifiers", ")", ";", "}", "}", "if", "(", "!", "hasProblems", "&&", "fieldRef", ".", "binding", "!=", "null", "&&", "fieldRef", ".", "binding", ".", "isValidBinding", "(", ")", "&&", "fieldRef", ".", "actualReceiverType", "instanceof", "ReferenceBinding", ")", "{", "ReferenceBinding", "resolvedType", "=", "(", "ReferenceBinding", ")", "fieldRef", ".", "actualReceiverType", ";", "verifyTypeReference", "(", "fieldRef", ",", "fieldRef", ".", "receiver", ",", "scope", ",", "source15", ",", "resolvedType", ",", "fieldRef", ".", "binding", ".", "modifiers", ")", ";", "}", "return", ";", "}", "if", "(", "!", "hasProblems", "&&", "(", "reference", "instanceof", "JavadocSingleTypeReference", "||", "reference", "instanceof", "JavadocQualifiedTypeReference", ")", "&&", "reference", ".", "resolvedType", "instanceof", "ReferenceBinding", ")", "{", "ReferenceBinding", "resolvedType", "=", "(", "ReferenceBinding", ")", "reference", ".", "resolvedType", ";", "verifyTypeReference", "(", "reference", ",", "reference", ",", "scope", ",", "source15", ",", "resolvedType", ",", "resolvedType", ".", "modifiers", ")", ";", "}", "if", "(", "reference", "instanceof", "JavadocMessageSend", ")", "{", "JavadocMessageSend", "msgSend", "=", "(", "JavadocMessageSend", ")", "reference", ";", "if", "(", "source15", "&&", "msgSend", ".", "tagValue", "==", "JavadocTagConstants", ".", "TAG_VALUE_VALUE", ")", "{", "if", "(", "scopeModifiers", "==", "-", "1", ")", "scopeModifiers", "=", "scope", ".", "getDeclarationModifiers", "(", ")", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidValueReference", "(", "msgSend", ".", "sourceStart", ",", "msgSend", ".", "sourceEnd", ",", "scopeModifiers", ")", ";", "}", "if", "(", "!", "hasProblems", "&&", "msgSend", ".", "binding", "!=", "null", "&&", "msgSend", ".", "binding", ".", "isValidBinding", "(", ")", "&&", "msgSend", ".", "actualReceiverType", "instanceof", "ReferenceBinding", ")", "{", "ReferenceBinding", "resolvedType", "=", "(", "ReferenceBinding", ")", "msgSend", ".", "actualReceiverType", ";", "verifyTypeReference", "(", "msgSend", ",", "msgSend", ".", "receiver", ",", "scope", ",", "source15", ",", "resolvedType", ",", "msgSend", ".", "binding", ".", "modifiers", ")", ";", "}", "}", "else", "if", "(", "reference", "instanceof", "JavadocAllocationExpression", ")", "{", "JavadocAllocationExpression", "alloc", "=", "(", "JavadocAllocationExpression", ")", "reference", ";", "if", "(", "source15", "&&", "alloc", ".", "tagValue", "==", "JavadocTagConstants", ".", "TAG_VALUE_VALUE", ")", "{", "if", "(", "scopeModifiers", "==", "-", "1", ")", "scopeModifiers", "=", "scope", ".", "getDeclarationModifiers", "(", ")", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidValueReference", "(", "alloc", ".", "sourceStart", ",", "alloc", ".", "sourceEnd", ",", "scopeModifiers", ")", ";", "}", "if", "(", "!", "hasProblems", "&&", "alloc", ".", "binding", "!=", "null", "&&", "alloc", ".", "binding", ".", "isValidBinding", "(", ")", "&&", "alloc", ".", "resolvedType", "instanceof", "ReferenceBinding", ")", "{", "ReferenceBinding", "resolvedType", "=", "(", "ReferenceBinding", ")", "alloc", ".", "resolvedType", ";", "verifyTypeReference", "(", "alloc", ",", "alloc", ".", "type", ",", "scope", ",", "source15", ",", "resolvedType", ",", "alloc", ".", "binding", ".", "modifiers", ")", ";", "}", "}", "if", "(", "reference", ".", "resolvedType", "!=", "null", "&&", "reference", ".", "resolvedType", ".", "isTypeVariable", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidReference", "(", "reference", ".", "sourceStart", ",", "reference", ".", "sourceEnd", ")", ";", "}", "}", "private", "void", "resolveParamTags", "(", "MethodScope", "scope", ",", "boolean", "reportMissing", ",", "boolean", "considerParamRefAsUsage", ")", "{", "AbstractMethodDeclaration", "methodDecl", "=", "scope", ".", "referenceMethod", "(", ")", ";", "int", "paramTagsSize", "=", "this", ".", "paramReferences", "==", "null", "?", "0", ":", "this", ".", "paramReferences", ".", "length", ";", "if", "(", "methodDecl", "==", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "paramTagsSize", ";", "i", "++", ")", "{", "JavadocSingleNameReference", "param", "=", "this", ".", "paramReferences", "[", "i", "]", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "param", ".", "tagSourceStart", ",", "param", ".", "tagSourceEnd", ")", ";", "}", "return", ";", "}", "int", "argumentsSize", "=", "methodDecl", ".", "arguments", "==", "null", "?", "0", ":", "methodDecl", ".", "arguments", ".", "length", ";", "if", "(", "paramTagsSize", "==", "0", ")", "{", "if", "(", "reportMissing", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "argumentsSize", ";", "i", "++", ")", "{", "Argument", "arg", "=", "methodDecl", ".", "arguments", "[", "i", "]", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocMissingParamTag", "(", "arg", ".", "name", ",", "arg", ".", "sourceStart", ",", "arg", ".", "sourceEnd", ",", "methodDecl", ".", "binding", ".", "modifiers", ")", ";", "}", "}", "}", "else", "{", "LocalVariableBinding", "[", "]", "bindings", "=", "new", "LocalVariableBinding", "[", "paramTagsSize", "]", ";", "int", "maxBindings", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "paramTagsSize", ";", "i", "++", ")", "{", "JavadocSingleNameReference", "param", "=", "this", ".", "paramReferences", "[", "i", "]", ";", "param", ".", "resolve", "(", "scope", ",", "true", ",", "considerParamRefAsUsage", ")", ";", "if", "(", "param", ".", "binding", "!=", "null", "&&", "param", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "boolean", "found", "=", "false", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "maxBindings", "&&", "!", "found", ";", "j", "++", ")", "{", "if", "(", "bindings", "[", "j", "]", "==", "param", ".", "binding", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocDuplicatedParamTag", "(", "param", ".", "token", ",", "param", ".", "sourceStart", ",", "param", ".", "sourceEnd", ",", "methodDecl", ".", "binding", ".", "modifiers", ")", ";", "found", "=", "true", ";", "}", "}", "if", "(", "!", "found", ")", "{", "bindings", "[", "maxBindings", "++", "]", "=", "(", "LocalVariableBinding", ")", "param", ".", "binding", ";", "}", "}", "}", "if", "(", "reportMissing", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "argumentsSize", ";", "i", "++", ")", "{", "Argument", "arg", "=", "methodDecl", ".", "arguments", "[", "i", "]", ";", "boolean", "found", "=", "false", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "maxBindings", "&&", "!", "found", ";", "j", "++", ")", "{", "LocalVariableBinding", "binding", "=", "bindings", "[", "j", "]", ";", "if", "(", "arg", ".", "binding", "==", "binding", ")", "{", "found", "=", "true", ";", "}", "}", "if", "(", "!", "found", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocMissingParamTag", "(", "arg", ".", "name", ",", "arg", ".", "sourceStart", ",", "arg", ".", "sourceEnd", ",", "methodDecl", ".", "binding", ".", "modifiers", ")", ";", "}", "}", "}", "}", "}", "private", "void", "resolveTypeParameterTags", "(", "Scope", "scope", ",", "boolean", "reportMissing", ")", "{", "int", "paramTypeParamLength", "=", "this", ".", "paramTypeParameters", "==", "null", "?", "0", ":", "this", ".", "paramTypeParameters", ".", "length", ";", "TypeParameter", "[", "]", "parameters", "=", "null", ";", "TypeVariableBinding", "[", "]", "typeVariables", "=", "null", ";", "int", "modifiers", "=", "-", "1", ";", "switch", "(", "scope", ".", "kind", ")", "{", "case", "Scope", ".", "METHOD_SCOPE", ":", "AbstractMethodDeclaration", "methodDeclaration", "=", "(", "(", "MethodScope", ")", "scope", ")", ".", "referenceMethod", "(", ")", ";", "if", "(", "methodDeclaration", "==", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "paramTypeParamLength", ";", "i", "++", ")", "{", "JavadocSingleTypeReference", "param", "=", "this", ".", "paramTypeParameters", "[", "i", "]", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "param", ".", "tagSourceStart", ",", "param", ".", "tagSourceEnd", ")", ";", "}", "return", ";", "}", "parameters", "=", "methodDeclaration", ".", "typeParameters", "(", ")", ";", "typeVariables", "=", "methodDeclaration", ".", "binding", ".", "typeVariables", ";", "modifiers", "=", "methodDeclaration", ".", "binding", ".", "modifiers", ";", "break", ";", "case", "Scope", ".", "CLASS_SCOPE", ":", "TypeDeclaration", "typeDeclaration", "=", "(", "(", "ClassScope", ")", "scope", ")", ".", "referenceContext", ";", "parameters", "=", "typeDeclaration", ".", "typeParameters", ";", "typeVariables", "=", "typeDeclaration", ".", "binding", ".", "typeVariables", ";", "modifiers", "=", "typeDeclaration", ".", "binding", ".", "modifiers", ";", "break", ";", "}", "if", "(", "typeVariables", "==", "null", "||", "typeVariables", ".", "length", "==", "0", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "paramTypeParamLength", ";", "i", "++", ")", "{", "JavadocSingleTypeReference", "param", "=", "this", ".", "paramTypeParameters", "[", "i", "]", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "param", ".", "tagSourceStart", ",", "param", ".", "tagSourceEnd", ")", ";", "}", "return", ";", "}", "if", "(", "parameters", "!=", "null", ")", "{", "reportMissing", "=", "reportMissing", "&&", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ";", "int", "typeParametersLength", "=", "parameters", ".", "length", ";", "if", "(", "paramTypeParamLength", "==", "0", ")", "{", "if", "(", "reportMissing", ")", "{", "for", "(", "int", "i", "=", "0", ",", "l", "=", "typeParametersLength", ";", "i", "<", "l", ";", "i", "++", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocMissingParamTag", "(", "parameters", "[", "i", "]", ".", "name", ",", "parameters", "[", "i", "]", ".", "sourceStart", ",", "parameters", "[", "i", "]", ".", "sourceEnd", ",", "modifiers", ")", ";", "}", "}", "}", "else", "if", "(", "typeVariables", ".", "length", "==", "typeParametersLength", ")", "{", "TypeVariableBinding", "[", "]", "bindings", "=", "new", "TypeVariableBinding", "[", "paramTypeParamLength", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "paramTypeParamLength", ";", "i", "++", ")", "{", "JavadocSingleTypeReference", "param", "=", "this", ".", "paramTypeParameters", "[", "i", "]", ";", "TypeBinding", "paramBindind", "=", "param", ".", "internalResolveType", "(", "scope", ")", ";", "if", "(", "paramBindind", "!=", "null", "&&", "paramBindind", ".", "isValidBinding", "(", ")", ")", "{", "if", "(", "paramBindind", ".", "isTypeVariable", "(", ")", ")", "{", "boolean", "duplicate", "=", "false", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "i", "&&", "!", "duplicate", ";", "j", "++", ")", "{", "if", "(", "bindings", "[", "j", "]", "==", "param", ".", "resolvedType", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocDuplicatedParamTag", "(", "param", ".", "token", ",", "param", ".", "sourceStart", ",", "param", ".", "sourceEnd", ",", "modifiers", ")", ";", "duplicate", "=", "true", ";", "}", "}", "if", "(", "!", "duplicate", ")", "{", "bindings", "[", "i", "]", "=", "(", "TypeVariableBinding", ")", "param", ".", "resolvedType", ";", "}", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocUndeclaredParamTagName", "(", "param", ".", "token", ",", "param", ".", "sourceStart", ",", "param", ".", "sourceEnd", ",", "modifiers", ")", ";", "}", "}", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "typeParametersLength", ";", "i", "++", ")", "{", "TypeParameter", "parameter", "=", "parameters", "[", "i", "]", ";", "boolean", "found", "=", "false", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "paramTypeParamLength", "&&", "!", "found", ";", "j", "++", ")", "{", "if", "(", "parameter", ".", "binding", "==", "bindings", "[", "j", "]", ")", "{", "found", "=", "true", ";", "bindings", "[", "j", "]", "=", "null", ";", "}", "}", "if", "(", "!", "found", "&&", "reportMissing", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocMissingParamTag", "(", "parameter", ".", "name", ",", "parameter", ".", "sourceStart", ",", "parameter", ".", "sourceEnd", ",", "modifiers", ")", ";", "}", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "paramTypeParamLength", ";", "i", "++", ")", "{", "if", "(", "bindings", "[", "i", "]", "!=", "null", ")", "{", "JavadocSingleTypeReference", "param", "=", "this", ".", "paramTypeParameters", "[", "i", "]", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocUndeclaredParamTagName", "(", "param", ".", "token", ",", "param", ".", "sourceStart", ",", "param", ".", "sourceEnd", ",", "modifiers", ")", ";", "}", "}", "}", "}", "}", "private", "void", "resolveThrowsTags", "(", "MethodScope", "methScope", ",", "boolean", "reportMissing", ")", "{", "AbstractMethodDeclaration", "md", "=", "methScope", ".", "referenceMethod", "(", ")", ";", "int", "throwsTagsLength", "=", "this", ".", "exceptionReferences", "==", "null", "?", "0", ":", "this", ".", "exceptionReferences", ".", "length", ";", "if", "(", "md", "==", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "throwsTagsLength", ";", "i", "++", ")", "{", "TypeReference", "typeRef", "=", "this", ".", "exceptionReferences", "[", "i", "]", ";", "int", "start", "=", "typeRef", ".", "sourceStart", ";", "int", "end", "=", "typeRef", ".", "sourceEnd", ";", "if", "(", "typeRef", "instanceof", "JavadocQualifiedTypeReference", ")", "{", "start", "=", "(", "(", "JavadocQualifiedTypeReference", ")", "typeRef", ")", ".", "tagSourceStart", ";", "end", "=", "(", "(", "JavadocQualifiedTypeReference", ")", "typeRef", ")", ".", "tagSourceEnd", ";", "}", "else", "if", "(", "typeRef", "instanceof", "JavadocSingleTypeReference", ")", "{", "start", "=", "(", "(", "JavadocSingleTypeReference", ")", "typeRef", ")", ".", "tagSourceStart", ";", "end", "=", "(", "(", "JavadocSingleTypeReference", ")", "typeRef", ")", ".", "tagSourceEnd", ";", "}", "methScope", ".", "problemReporter", "(", ")", ".", "javadocUnexpectedTag", "(", "start", ",", "end", ")", ";", "}", "return", ";", "}", "int", "boundExceptionLength", "=", "(", "md", ".", "binding", "==", "null", ")", "?", "0", ":", "md", ".", "binding", ".", "thrownExceptions", ".", "length", ";", "int", "thrownExceptionLength", "=", "md", ".", "thrownExceptions", "==", "null", "?", "0", ":", "md", ".", "thrownExceptions", ".", "length", ";", "if", "(", "throwsTagsLength", "==", "0", ")", "{", "if", "(", "reportMissing", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "boundExceptionLength", ";", "i", "++", ")", "{", "ReferenceBinding", "exceptionBinding", "=", "md", ".", "binding", ".", "thrownExceptions", "[", "i", "]", ";", "if", "(", "exceptionBinding", "!=", "null", "&&", "exceptionBinding", ".", "isValidBinding", "(", ")", ")", "{", "int", "j", "=", "i", ";", "while", "(", "j", "<", "thrownExceptionLength", "&&", "exceptionBinding", "!=", "md", ".", "thrownExceptions", "[", "j", "]", ".", "resolvedType", ")", "j", "++", ";", "if", "(", "j", "<", "thrownExceptionLength", ")", "{", "methScope", ".", "problemReporter", "(", ")", ".", "javadocMissingThrowsTag", "(", "md", ".", "thrownExceptions", "[", "j", "]", ",", "md", ".", "binding", ".", "modifiers", ")", ";", "}", "}", "}", "}", "}", "else", "{", "int", "maxRef", "=", "0", ";", "TypeReference", "[", "]", "typeReferences", "=", "new", "TypeReference", "[", "throwsTagsLength", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "throwsTagsLength", ";", "i", "++", ")", "{", "TypeReference", "typeRef", "=", "this", ".", "exceptionReferences", "[", "i", "]", ";", "typeRef", ".", "resolve", "(", "methScope", ")", ";", "TypeBinding", "typeBinding", "=", "typeRef", ".", "resolvedType", ";", "if", "(", "typeBinding", "!=", "null", "&&", "typeBinding", ".", "isValidBinding", "(", ")", "&&", "typeBinding", ".", "isClass", "(", ")", ")", "{", "typeReferences", "[", "maxRef", "++", "]", "=", "typeRef", ";", "}", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "boundExceptionLength", ";", "i", "++", ")", "{", "ReferenceBinding", "exceptionBinding", "=", "md", ".", "binding", ".", "thrownExceptions", "[", "i", "]", ";", "if", "(", "exceptionBinding", "!=", "null", ")", "exceptionBinding", "=", "(", "ReferenceBinding", ")", "exceptionBinding", ".", "erasure", "(", ")", ";", "boolean", "found", "=", "false", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "maxRef", "&&", "!", "found", ";", "j", "++", ")", "{", "if", "(", "typeReferences", "[", "j", "]", "!=", "null", ")", "{", "TypeBinding", "typeBinding", "=", "typeReferences", "[", "j", "]", ".", "resolvedType", ";", "if", "(", "exceptionBinding", "==", "typeBinding", ")", "{", "found", "=", "true", ";", "typeReferences", "[", "j", "]", "=", "null", ";", "}", "}", "}", "if", "(", "!", "found", "&&", "reportMissing", ")", "{", "if", "(", "exceptionBinding", "!=", "null", "&&", "exceptionBinding", ".", "isValidBinding", "(", ")", ")", "{", "int", "k", "=", "i", ";", "while", "(", "k", "<", "thrownExceptionLength", "&&", "exceptionBinding", "!=", "md", ".", "thrownExceptions", "[", "k", "]", ".", "resolvedType", ")", "k", "++", ";", "if", "(", "k", "<", "thrownExceptionLength", ")", "{", "methScope", ".", "problemReporter", "(", ")", ".", "javadocMissingThrowsTag", "(", "md", ".", "thrownExceptions", "[", "k", "]", ",", "md", ".", "binding", ".", "modifiers", ")", ";", "}", "}", "}", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "maxRef", ";", "i", "++", ")", "{", "TypeReference", "typeRef", "=", "typeReferences", "[", "i", "]", ";", "if", "(", "typeRef", "!=", "null", ")", "{", "boolean", "compatible", "=", "false", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "thrownExceptionLength", "&&", "!", "compatible", ";", "j", "++", ")", "{", "TypeBinding", "exceptionBinding", "=", "md", ".", "thrownExceptions", "[", "j", "]", ".", "resolvedType", ";", "if", "(", "exceptionBinding", "!=", "null", ")", "{", "compatible", "=", "typeRef", ".", "resolvedType", ".", "isCompatibleWith", "(", "exceptionBinding", ")", ";", "}", "}", "if", "(", "!", "compatible", "&&", "!", "typeRef", ".", "resolvedType", ".", "isUncheckedException", "(", "false", ")", ")", "{", "methScope", ".", "problemReporter", "(", ")", ".", "javadocInvalidThrowsClassName", "(", "typeRef", ",", "md", ".", "binding", ".", "modifiers", ")", ";", "}", "}", "}", "}", "}", "private", "void", "verifyTypeReference", "(", "Expression", "reference", ",", "Expression", "typeReference", ",", "Scope", "scope", ",", "boolean", "source15", ",", "ReferenceBinding", "resolvedType", ",", "int", "modifiers", ")", "{", "if", "(", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "int", "scopeModifiers", "=", "-", "1", ";", "if", "(", "!", "canBeSeen", "(", "scope", ".", "problemReporter", "(", ")", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "modifiers", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocHiddenReference", "(", "typeReference", ".", "sourceStart", ",", "reference", ".", "sourceEnd", ",", "scope", ",", "modifiers", ")", ";", "return", ";", "}", "if", "(", "reference", "!=", "typeReference", ")", "{", "if", "(", "!", "canBeSeen", "(", "scope", ".", "problemReporter", "(", ")", ".", "options", ".", "reportInvalidJavadocTagsVisibility", ",", "resolvedType", ".", "modifiers", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocHiddenReference", "(", "typeReference", ".", "sourceStart", ",", "typeReference", ".", "sourceEnd", ",", "scope", ",", "resolvedType", ".", "modifiers", ")", ";", "return", ";", "}", "}", "if", "(", "resolvedType", ".", "isMemberType", "(", ")", ")", "{", "ReferenceBinding", "topLevelType", "=", "resolvedType", ";", "int", "packageLength", "=", "topLevelType", ".", "fPackage", ".", "compoundName", ".", "length", ";", "int", "depth", "=", "resolvedType", ".", "depth", "(", ")", ";", "int", "idx", "=", "depth", "+", "packageLength", ";", "char", "[", "]", "[", "]", "computedCompoundName", "=", "new", "char", "[", "idx", "+", "1", "]", "[", "]", ";", "computedCompoundName", "[", "idx", "]", "=", "topLevelType", ".", "sourceName", ";", "while", "(", "topLevelType", ".", "enclosingType", "(", ")", "!=", "null", ")", "{", "topLevelType", "=", "topLevelType", ".", "enclosingType", "(", ")", ";", "computedCompoundName", "[", "--", "idx", "]", "=", "topLevelType", ".", "sourceName", ";", "}", "for", "(", "int", "i", "=", "packageLength", ";", "--", "i", ">=", "0", ";", ")", "{", "computedCompoundName", "[", "--", "idx", "]", "=", "topLevelType", ".", "fPackage", ".", "compoundName", "[", "i", "]", ";", "}", "ClassScope", "topLevelScope", "=", "scope", ".", "classScope", "(", ")", ";", "if", "(", "topLevelScope", ".", "parent", ".", "kind", "!=", "Scope", ".", "COMPILATION_UNIT_SCOPE", "||", "!", "CharOperation", ".", "equals", "(", "topLevelType", ".", "sourceName", ",", "topLevelScope", ".", "referenceContext", ".", "name", ")", ")", "{", "topLevelScope", "=", "topLevelScope", ".", "outerMostClassScope", "(", ")", ";", "if", "(", "typeReference", "instanceof", "JavadocSingleTypeReference", ")", "{", "if", "(", "(", "!", "source15", "&&", "depth", "==", "1", ")", "||", "topLevelType", "!=", "topLevelScope", ".", "referenceContext", ".", "binding", ")", "{", "boolean", "hasValidImport", "=", "false", ";", "if", "(", "source15", ")", "{", "CompilationUnitScope", "unitScope", "=", "topLevelScope", ".", "compilationUnitScope", "(", ")", ";", "ImportBinding", "[", "]", "imports", "=", "unitScope", ".", "imports", ";", "int", "length", "=", "imports", "==", "null", "?", "0", ":", "imports", ".", "length", ";", "mainLoop", ":", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "char", "[", "]", "[", "]", "compoundName", "=", "imports", "[", "i", "]", ".", "compoundName", ";", "int", "compoundNameLength", "=", "compoundName", ".", "length", ";", "if", "(", "(", "imports", "[", "i", "]", ".", "onDemand", "&&", "compoundNameLength", "==", "computedCompoundName", ".", "length", "-", "1", ")", "||", "(", "compoundNameLength", "==", "computedCompoundName", ".", "length", ")", ")", "{", "for", "(", "int", "j", "=", "compoundNameLength", ";", "--", "j", ">=", "0", ";", ")", "{", "if", "(", "CharOperation", ".", "equals", "(", "imports", "[", "i", "]", ".", "compoundName", "[", "j", "]", ",", "computedCompoundName", "[", "j", "]", ")", ")", "{", "if", "(", "j", "==", "0", ")", "{", "hasValidImport", "=", "true", ";", "ImportReference", "importReference", "=", "imports", "[", "i", "]", ".", "reference", ";", "if", "(", "importReference", "!=", "null", ")", "{", "importReference", ".", "bits", "|=", "ASTNode", ".", "Used", ";", "}", "break", "mainLoop", ";", "}", "}", "else", "{", "break", ";", "}", "}", "}", "}", "if", "(", "!", "hasValidImport", ")", "{", "if", "(", "scopeModifiers", "==", "-", "1", ")", "scopeModifiers", "=", "scope", ".", "getDeclarationModifiers", "(", ")", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidMemberTypeQualification", "(", "typeReference", ".", "sourceStart", ",", "typeReference", ".", "sourceEnd", ",", "scopeModifiers", ")", ";", "}", "}", "else", "{", "if", "(", "scopeModifiers", "==", "-", "1", ")", "scopeModifiers", "=", "scope", ".", "getDeclarationModifiers", "(", ")", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidMemberTypeQualification", "(", "typeReference", ".", "sourceStart", ",", "typeReference", ".", "sourceEnd", ",", "scopeModifiers", ")", ";", "return", ";", "}", "}", "}", "}", "if", "(", "typeReference", "instanceof", "JavadocQualifiedTypeReference", "&&", "!", "scope", ".", "isDefinedInSameUnit", "(", "resolvedType", ")", ")", "{", "char", "[", "]", "[", "]", "typeRefName", "=", "(", "(", "JavadocQualifiedTypeReference", ")", "typeReference", ")", ".", "getTypeName", "(", ")", ";", "int", "skipLength", "=", "0", ";", "if", "(", "topLevelScope", ".", "getCurrentPackage", "(", ")", "==", "resolvedType", ".", "getPackage", "(", ")", "&&", "typeRefName", ".", "length", "<", "computedCompoundName", ".", "length", ")", "{", "skipLength", "=", "resolvedType", ".", "fPackage", ".", "compoundName", ".", "length", ";", "}", "boolean", "valid", "=", "true", ";", "if", "(", "typeRefName", ".", "length", "==", "computedCompoundName", ".", "length", "-", "skipLength", ")", "{", "checkQualification", ":", "for", "(", "int", "i", "=", "0", ";", "i", "<", "typeRefName", ".", "length", ";", "i", "++", ")", "{", "if", "(", "!", "CharOperation", ".", "equals", "(", "typeRefName", "[", "i", "]", ",", "computedCompoundName", "[", "i", "+", "skipLength", "]", ")", ")", "{", "valid", "=", "false", ";", "break", "checkQualification", ";", "}", "}", "}", "else", "{", "valid", "=", "false", ";", "}", "if", "(", "!", "valid", ")", "{", "if", "(", "scopeModifiers", "==", "-", "1", ")", "scopeModifiers", "=", "scope", ".", "getDeclarationModifiers", "(", ")", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidMemberTypeQualification", "(", "typeReference", ".", "sourceStart", ",", "typeReference", ".", "sourceEnd", ",", "scopeModifiers", ")", ";", "return", ";", "}", "}", "}", "if", "(", "scope", ".", "referenceCompilationUnit", "(", ")", ".", "isPackageInfo", "(", ")", "&&", "typeReference", "instanceof", "JavadocSingleTypeReference", ")", "{", "if", "(", "resolvedType", ".", "fPackage", ".", "compoundName", ".", "length", ">", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidReference", "(", "typeReference", ".", "sourceStart", ",", "typeReference", ".", "sourceEnd", ")", ";", "return", ";", "}", "}", "}", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "paramReferences", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "paramReferences", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "paramReferences", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "paramTypeParameters", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "paramTypeParameters", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "paramTypeParameters", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "returnStatement", "!=", "null", ")", "{", "this", ".", "returnStatement", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "if", "(", "this", ".", "exceptionReferences", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "exceptionReferences", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "exceptionReferences", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "seeReferences", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "seeReferences", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "seeReferences", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "paramReferences", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "paramReferences", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "paramReferences", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "paramTypeParameters", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "paramTypeParameters", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "paramTypeParameters", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "returnStatement", "!=", "null", ")", "{", "this", ".", "returnStatement", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "if", "(", "this", ".", "exceptionReferences", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "exceptionReferences", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "exceptionReferences", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "seeReferences", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "seeReferences", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "seeReferences", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
4,233
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ".", "ScannerHelper", ";", "public", "class", "CharLiteral", "extends", "NumberLiteral", "{", "char", "value", ";", "public", "CharLiteral", "(", "char", "[", "]", "token", ",", "int", "s", ",", "int", "e", ")", "{", "super", "(", "token", ",", "s", ",", "e", ")", ";", "computeValue", "(", ")", ";", "}", "public", "void", "computeConstant", "(", ")", "{", "this", ".", "constant", "=", "CharConstant", ".", "fromValue", "(", "this", ".", "value", ")", ";", "}", "private", "void", "computeValue", "(", ")", "{", "if", "(", "(", "this", ".", "value", "=", "this", ".", "source", "[", "1", "]", ")", "!=", "'\\\\'", ")", "return", ";", "char", "digit", ";", "switch", "(", "digit", "=", "this", ".", "source", "[", "2", "]", ")", "{", "case", "'b'", ":", "this", ".", "value", "=", "'\\b'", ";", "break", ";", "case", "'t'", ":", "this", ".", "value", "=", "'\\t'", ";", "break", ";", "case", "'n'", ":", "this", ".", "value", "=", "'\\n'", ";", "break", ";", "case", "'f'", ":", "this", ".", "value", "=", "'\\f'", ";", "break", ";", "case", "'r'", ":", "this", ".", "value", "=", "'\\r'", ";", "break", ";", "case", "'\\\"'", ":", "this", ".", "value", "=", "'\\\"'", ";", "break", ";", "case", "'\\''", ":", "this", ".", "value", "=", "'\\''", ";", "break", ";", "case", "'\\\\'", ":", "this", ".", "value", "=", "'\\\\'", ";", "break", ";", "default", ":", "int", "number", "=", "ScannerHelper", ".", "getNumericValue", "(", "digit", ")", ";", "if", "(", "(", "digit", "=", "this", ".", "source", "[", "3", "]", ")", "!=", "'\\''", ")", "number", "=", "(", "number", "*", "8", ")", "+", "ScannerHelper", ".", "getNumericValue", "(", "digit", ")", ";", "else", "{", "this", ".", "constant", "=", "CharConstant", ".", "fromValue", "(", "this", ".", "value", "=", "(", "char", ")", "number", ")", ";", "break", ";", "}", "if", "(", "(", "digit", "=", "this", ".", "source", "[", "4", "]", ")", "!=", "'\\''", ")", "number", "=", "(", "number", "*", "8", ")", "+", "ScannerHelper", ".", "getNumericValue", "(", "digit", ")", ";", "this", ".", "value", "=", "(", "char", ")", "number", ";", "break", ";", "}", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "TypeBinding", "literalType", "(", "BlockScope", "scope", ")", "{", "return", "TypeBinding", ".", "CHAR", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
4,234
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "Opcodes", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "CompilerOptions", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Binding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ClassScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "FieldBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "LocalVariableBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MethodBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MethodScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MissingTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemFieldBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemReasons", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Scope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "SourceTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TagBits", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "VariableBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "AbortMethod", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "ProblemSeverities", ";", "public", "class", "SingleNameReference", "extends", "NameReference", "implements", "OperatorIds", "{", "public", "static", "final", "int", "READ", "=", "0", ";", "public", "static", "final", "int", "WRITE", "=", "1", ";", "public", "char", "[", "]", "token", ";", "public", "MethodBinding", "[", "]", "syntheticAccessors", ";", "public", "TypeBinding", "genericCast", ";", "public", "SingleNameReference", "(", "char", "[", "]", "source", ",", "long", "pos", ")", "{", "super", "(", ")", ";", "this", ".", "token", "=", "source", ";", "this", ".", "sourceStart", "=", "(", "int", ")", "(", "pos", ">>>", "32", ")", ";", "this", ".", "sourceEnd", "=", "(", "int", ")", "pos", ";", "}", "public", "FlowInfo", "analyseAssignment", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ",", "Assignment", "assignment", ",", "boolean", "isCompound", ")", "{", "boolean", "isReachable", "=", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ";", "if", "(", "isCompound", ")", "{", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "FieldBinding", "fieldBinding", "=", "(", "FieldBinding", ")", "this", ".", "binding", ";", "if", "(", "fieldBinding", ".", "isBlankFinal", "(", ")", "&&", "currentScope", ".", "needBlankFinalFieldInitializationCheck", "(", "fieldBinding", ")", ")", "{", "FlowInfo", "fieldInits", "=", "flowContext", ".", "getInitsForFinalBlankInitializationCheck", "(", "fieldBinding", ".", "declaringClass", ".", "original", "(", ")", ",", "flowInfo", ")", ";", "if", "(", "!", "fieldInits", ".", "isDefinitelyAssigned", "(", "fieldBinding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "uninitializedBlankFinalField", "(", "fieldBinding", ",", "this", ")", ";", "}", "}", "if", "(", "!", "fieldBinding", ".", "isStatic", "(", ")", ")", "{", "currentScope", ".", "resetEnclosingMethodStaticFlag", "(", ")", ";", "}", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ",", "true", ")", ";", "break", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "localBinding", ";", "if", "(", "!", "flowInfo", ".", "isDefinitelyAssigned", "(", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "uninitializedLocalVariable", "(", "localBinding", ",", "this", ")", ";", "}", "if", "(", "localBinding", ".", "useFlag", "!=", "LocalVariableBinding", ".", "USED", ")", "{", "if", "(", "isReachable", "&&", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "localBinding", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "}", "else", "{", "if", "(", "localBinding", ".", "useFlag", "<=", "LocalVariableBinding", ".", "UNUSED", ")", "localBinding", ".", "useFlag", "--", ";", "}", "}", "}", "}", "if", "(", "assignment", ".", "expression", "!=", "null", ")", "{", "flowInfo", "=", "assignment", ".", "expression", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "}", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ",", "false", ")", ";", "FieldBinding", "fieldBinding", "=", "(", "FieldBinding", ")", "this", ".", "binding", ";", "if", "(", "fieldBinding", ".", "isFinal", "(", ")", ")", "{", "if", "(", "!", "isCompound", "&&", "fieldBinding", ".", "isBlankFinal", "(", ")", "&&", "currentScope", ".", "allowBlankFinalFieldAssignment", "(", "fieldBinding", ")", ")", "{", "if", "(", "flowInfo", ".", "isPotentiallyAssigned", "(", "fieldBinding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "duplicateInitializationOfBlankFinalField", "(", "fieldBinding", ",", "this", ")", ";", "}", "else", "{", "flowContext", ".", "recordSettingFinal", "(", "fieldBinding", ",", "this", ",", "flowInfo", ")", ";", "}", "flowInfo", ".", "markAsDefinitelyAssigned", "(", "fieldBinding", ")", ";", "}", "else", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "cannotAssignToFinalField", "(", "fieldBinding", ",", "this", ")", ";", "}", "}", "if", "(", "!", "fieldBinding", ".", "isStatic", "(", ")", ")", "{", "currentScope", ".", "resetEnclosingMethodStaticFlag", "(", ")", ";", "}", "break", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "if", "(", "!", "flowInfo", ".", "isDefinitelyAssigned", "(", "localBinding", ")", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "FirstAssignmentToLocal", ";", "}", "else", "{", "this", ".", "bits", "&=", "~", "ASTNode", ".", "FirstAssignmentToLocal", ";", "}", "if", "(", "localBinding", ".", "isFinal", "(", ")", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "==", "0", ")", "{", "if", "(", "(", "isReachable", "&&", "isCompound", ")", "||", "!", "localBinding", ".", "isBlankFinal", "(", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "cannotAssignToFinalLocal", "(", "localBinding", ",", "this", ")", ";", "}", "else", "if", "(", "flowInfo", ".", "isPotentiallyAssigned", "(", "localBinding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "duplicateInitializationOfFinalLocal", "(", "localBinding", ",", "this", ")", ";", "}", "else", "{", "flowContext", ".", "recordSettingFinal", "(", "localBinding", ",", "this", ",", "flowInfo", ")", ";", "}", "}", "else", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "cannotAssignToFinalOuterLocal", "(", "localBinding", ",", "this", ")", ";", "}", "}", "else", "if", "(", "(", "localBinding", ".", "tagBits", "&", "TagBits", ".", "IsArgument", ")", "!=", "0", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "parameterAssignment", "(", "localBinding", ",", "this", ")", ";", "}", "flowInfo", ".", "markAsDefinitelyAssigned", "(", "localBinding", ")", ";", "}", "manageEnclosingInstanceAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ")", ";", "return", "flowInfo", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "return", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ",", "true", ")", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ",", "boolean", "valueRequired", ")", "{", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "if", "(", "valueRequired", "||", "currentScope", ".", "compilerOptions", "(", ")", ".", "complianceLevel", ">=", "ClassFileConstants", ".", "JDK1_4", ")", "{", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ",", "true", ")", ";", "}", "FieldBinding", "fieldBinding", "=", "(", "FieldBinding", ")", "this", ".", "binding", ";", "if", "(", "fieldBinding", ".", "isBlankFinal", "(", ")", "&&", "currentScope", ".", "needBlankFinalFieldInitializationCheck", "(", "fieldBinding", ")", ")", "{", "FlowInfo", "fieldInits", "=", "flowContext", ".", "getInitsForFinalBlankInitializationCheck", "(", "fieldBinding", ".", "declaringClass", ".", "original", "(", ")", ",", "flowInfo", ")", ";", "if", "(", "!", "fieldInits", ".", "isDefinitelyAssigned", "(", "fieldBinding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "uninitializedBlankFinalField", "(", "fieldBinding", ",", "this", ")", ";", "}", "}", "if", "(", "!", "fieldBinding", ".", "isStatic", "(", ")", ")", "{", "currentScope", ".", "resetEnclosingMethodStaticFlag", "(", ")", ";", "}", "break", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "localBinding", ";", "if", "(", "!", "flowInfo", ".", "isDefinitelyAssigned", "(", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "uninitializedLocalVariable", "(", "localBinding", ",", "this", ")", ";", "}", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ")", "{", "localBinding", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "}", "else", "if", "(", "localBinding", ".", "useFlag", "==", "LocalVariableBinding", ".", "UNUSED", ")", "{", "localBinding", ".", "useFlag", "=", "LocalVariableBinding", ".", "FAKE_USED", ";", "}", "}", "if", "(", "valueRequired", ")", "{", "manageEnclosingInstanceAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ")", ";", "}", "return", "flowInfo", ";", "}", "public", "TypeBinding", "checkFieldAccess", "(", "BlockScope", "scope", ")", "{", "FieldBinding", "fieldBinding", "=", "(", "FieldBinding", ")", "this", ".", "binding", ";", "this", ".", "constant", "=", "fieldBinding", ".", "constant", "(", ")", ";", "this", ".", "bits", "&=", "~", "ASTNode", ".", "RestrictiveFlagMASK", ";", "this", ".", "bits", "|=", "Binding", ".", "FIELD", ";", "MethodScope", "methodScope", "=", "scope", ".", "methodScope", "(", ")", ";", "if", "(", "fieldBinding", ".", "isStatic", "(", ")", ")", "{", "ReferenceBinding", "declaringClass", "=", "fieldBinding", ".", "declaringClass", ";", "if", "(", "declaringClass", ".", "isEnum", "(", ")", ")", "{", "SourceTypeBinding", "sourceType", "=", "scope", ".", "enclosingSourceType", "(", ")", ";", "if", "(", "this", ".", "constant", "==", "Constant", ".", "NotAConstant", "&&", "!", "methodScope", ".", "isStatic", "&&", "(", "sourceType", "==", "declaringClass", "||", "sourceType", ".", "superclass", "==", "declaringClass", ")", "&&", "methodScope", ".", "isInsideInitializerOrConstructor", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "enumStaticFieldUsedDuringInitialization", "(", "fieldBinding", ",", "this", ")", ";", "}", "}", "}", "else", "{", "if", "(", "scope", ".", "compilerOptions", "(", ")", ".", "getSeverity", "(", "CompilerOptions", ".", "UnqualifiedFieldAccess", ")", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unqualifiedFieldAccess", "(", "this", ",", "fieldBinding", ")", ";", "}", "if", "(", "methodScope", ".", "isStatic", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "staticFieldAccessToNonStaticVariable", "(", "this", ",", "fieldBinding", ")", ";", "return", "fieldBinding", ".", "type", ";", "}", "}", "if", "(", "isFieldUseDeprecated", "(", "fieldBinding", ",", "scope", ",", "this", ".", "bits", ")", ")", "scope", ".", "problemReporter", "(", ")", ".", "deprecatedField", "(", "fieldBinding", ",", "this", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsStrictlyAssigned", ")", "==", "0", "&&", "methodScope", ".", "enclosingSourceType", "(", ")", "==", "fieldBinding", ".", "original", "(", ")", ".", "declaringClass", "&&", "methodScope", ".", "lastVisibleFieldID", ">=", "0", "&&", "fieldBinding", ".", "id", ">=", "methodScope", ".", "lastVisibleFieldID", "&&", "(", "!", "fieldBinding", ".", "isStatic", "(", ")", "||", "methodScope", ".", "isStatic", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "forwardReference", "(", "this", ",", "0", ",", "fieldBinding", ")", ";", "this", ".", "bits", "|=", "ASTNode", ".", "IgnoreNoEffectAssignCheck", ";", "}", "return", "fieldBinding", ".", "type", ";", "}", "public", "void", "computeConversion", "(", "Scope", "scope", ",", "TypeBinding", "runtimeTimeType", ",", "TypeBinding", "compileTimeType", ")", "{", "if", "(", "runtimeTimeType", "==", "null", "||", "compileTimeType", "==", "null", ")", "return", ";", "if", "(", "(", "this", ".", "bits", "&", "Binding", ".", "FIELD", ")", "!=", "0", "&&", "this", ".", "binding", "!=", "null", "&&", "this", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "FieldBinding", "field", "=", "(", "FieldBinding", ")", "this", ".", "binding", ";", "FieldBinding", "originalBinding", "=", "field", ".", "original", "(", ")", ";", "TypeBinding", "originalType", "=", "originalBinding", ".", "type", ";", "if", "(", "originalType", ".", "leafComponentType", "(", ")", ".", "isTypeVariable", "(", ")", ")", "{", "TypeBinding", "targetType", "=", "(", "!", "compileTimeType", ".", "isBaseType", "(", ")", "&&", "runtimeTimeType", ".", "isBaseType", "(", ")", ")", "?", "compileTimeType", ":", "runtimeTimeType", ";", "this", ".", "genericCast", "=", "originalType", ".", "genericCast", "(", "scope", ".", "boxing", "(", "targetType", ")", ")", ";", "if", "(", "this", ".", "genericCast", "instanceof", "ReferenceBinding", ")", "{", "ReferenceBinding", "referenceCast", "=", "(", "ReferenceBinding", ")", "this", ".", "genericCast", ";", "if", "(", "!", "referenceCast", ".", "canBeSeenBy", "(", "scope", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "invalidType", "(", "this", ",", "new", "ProblemReferenceBinding", "(", "CharOperation", ".", "splitOn", "(", "'.'", ",", "referenceCast", ".", "shortReadableName", "(", ")", ")", ",", "referenceCast", ",", "ProblemReasons", ".", "NotVisible", ")", ")", ";", "}", "}", "}", "}", "super", ".", "computeConversion", "(", "scope", ",", "runtimeTimeType", ",", "compileTimeType", ")", ";", "}", "public", "void", "generateAssignment", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "Assignment", "assignment", ",", "boolean", "valueRequired", ")", "{", "if", "(", "assignment", ".", "expression", ".", "isCompactableOperation", "(", ")", ")", "{", "BinaryExpression", "operation", "=", "(", "BinaryExpression", ")", "assignment", ".", "expression", ";", "int", "operator", "=", "(", "operation", ".", "bits", "&", "ASTNode", ".", "OperatorMASK", ")", ">>", "ASTNode", ".", "OperatorSHIFT", ";", "SingleNameReference", "variableReference", ";", "if", "(", "(", "operation", ".", "left", "instanceof", "SingleNameReference", ")", "&&", "(", "(", "variableReference", "=", "(", "SingleNameReference", ")", "operation", ".", "left", ")", ".", "binding", "==", "this", ".", "binding", ")", ")", "{", "variableReference", ".", "generateCompoundAssignment", "(", "currentScope", ",", "codeStream", ",", "this", ".", "syntheticAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "WRITE", "]", ",", "operation", ".", "right", ",", "operator", ",", "operation", ".", "implicitConversion", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "assignment", ".", "implicitConversion", ")", ";", "}", "return", ";", "}", "if", "(", "(", "operation", ".", "right", "instanceof", "SingleNameReference", ")", "&&", "(", "(", "operator", "==", "OperatorIds", ".", "PLUS", ")", "||", "(", "operator", "==", "OperatorIds", ".", "MULTIPLY", ")", ")", "&&", "(", "(", "variableReference", "=", "(", "SingleNameReference", ")", "operation", ".", "right", ")", ".", "binding", "==", "this", ".", "binding", ")", "&&", "(", "operation", ".", "left", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "(", "(", "operation", ".", "left", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ")", "!=", "TypeIds", ".", "T_JavaLangString", ")", "&&", "(", "(", "(", "operation", ".", "right", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ")", "!=", "TypeIds", ".", "T_JavaLangString", ")", ")", "{", "variableReference", ".", "generateCompoundAssignment", "(", "currentScope", ",", "codeStream", ",", "this", ".", "syntheticAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "WRITE", "]", ",", "operation", ".", "left", ",", "operator", ",", "operation", ".", "implicitConversion", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "assignment", ".", "implicitConversion", ")", ";", "}", "return", ";", "}", "}", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "int", "pc", "=", "codeStream", ".", "position", ";", "FieldBinding", "codegenBinding", "=", "(", "(", "FieldBinding", ")", "this", ".", "binding", ")", ".", "original", "(", ")", ";", "if", "(", "!", "codegenBinding", ".", "isStatic", "(", ")", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", "{", "ReferenceBinding", "targetType", "=", "currentScope", ".", "enclosingSourceType", "(", ")", ".", "enclosingTypeAt", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ")", ";", "Object", "[", "]", "emulationPath", "=", "currentScope", ".", "getEmulationPath", "(", "targetType", ",", "true", ",", "false", ")", ";", "codeStream", ".", "generateOuterAccess", "(", "emulationPath", ",", "this", ",", "targetType", ",", "currentScope", ")", ";", "}", "else", "{", "generateReceiver", "(", "codeStream", ")", ";", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "assignment", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "fieldStore", "(", "currentScope", ",", "codeStream", ",", "codegenBinding", ",", "this", ".", "syntheticAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "WRITE", "]", ",", "this", ".", "actualReceiverType", ",", "true", ",", "valueRequired", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "assignment", ".", "implicitConversion", ")", ";", "}", "return", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "if", "(", "localBinding", ".", "resolvedPosition", "!=", "-", "1", ")", "{", "assignment", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "}", "else", "{", "if", "(", "assignment", ".", "expression", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "assignment", ".", "expression", ".", "constant", ",", "assignment", ".", "implicitConversion", ")", ";", "}", "}", "else", "{", "assignment", ".", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "assignment", ".", "implicitConversion", ")", ";", "}", "else", "{", "switch", "(", "localBinding", ".", "type", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "codeStream", ".", "pop2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "pop", "(", ")", ";", "break", ";", "}", "}", "}", "return", ";", "}", "if", "(", "localBinding", ".", "type", ".", "isArrayType", "(", ")", "&&", "(", "assignment", ".", "expression", ".", "resolvedType", "==", "TypeBinding", ".", "NULL", "||", "(", "(", "assignment", ".", "expression", "instanceof", "CastExpression", ")", "&&", "(", "(", "(", "CastExpression", ")", "assignment", ".", "expression", ")", ".", "innermostCastedExpression", "(", ")", ".", "resolvedType", "==", "TypeBinding", ".", "NULL", ")", ")", ")", ")", "{", "codeStream", ".", "checkcast", "(", "localBinding", ".", "type", ")", ";", "}", "codeStream", ".", "store", "(", "localBinding", ",", "valueRequired", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "FirstAssignmentToLocal", ")", "!=", "0", ")", "{", "localBinding", ".", "recordInitializationStartPC", "(", "codeStream", ".", "position", ")", ";", "}", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "assignment", ".", "implicitConversion", ")", ";", "}", "}", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "this", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "else", "{", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "FieldBinding", "codegenField", "=", "(", "(", "FieldBinding", ")", "this", ".", "binding", ")", ".", "original", "(", ")", ";", "Constant", "fieldConstant", "=", "codegenField", ".", "constant", "(", ")", ";", "if", "(", "fieldConstant", "!=", "Constant", ".", "NotAConstant", ")", "{", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateConstant", "(", "fieldConstant", ",", "this", ".", "implicitConversion", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "if", "(", "codegenField", ".", "isStatic", "(", ")", ")", "{", "if", "(", "!", "valueRequired", "&&", "(", "(", "FieldBinding", ")", "this", ".", "binding", ")", ".", "original", "(", ")", ".", "declaringClass", "==", "this", ".", "actualReceiverType", ".", "erasure", "(", ")", "&&", "(", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "==", "0", ")", "&&", "this", ".", "genericCast", "==", "null", ")", "{", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "if", "(", "(", "this", ".", "syntheticAccessors", "==", "null", ")", "||", "(", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", "==", "null", ")", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "codegenField", ",", "this", ".", "actualReceiverType", ",", "true", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "codegenField", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", ",", "null", ")", ";", "}", "}", "else", "{", "if", "(", "!", "valueRequired", "&&", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "==", "0", "&&", "this", ".", "genericCast", "==", "null", ")", "{", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", "{", "ReferenceBinding", "targetType", "=", "currentScope", ".", "enclosingSourceType", "(", ")", ".", "enclosingTypeAt", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ")", ";", "Object", "[", "]", "emulationPath", "=", "currentScope", ".", "getEmulationPath", "(", "targetType", ",", "true", ",", "false", ")", ";", "codeStream", ".", "generateOuterAccess", "(", "emulationPath", ",", "this", ",", "targetType", ",", "currentScope", ")", ";", "}", "else", "{", "generateReceiver", "(", "codeStream", ")", ";", "}", "if", "(", "(", "this", ".", "syntheticAccessors", "==", "null", ")", "||", "(", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", "==", "null", ")", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "codegenField", ",", "this", ".", "actualReceiverType", ",", "true", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getfield", ",", "codegenField", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", ",", "null", ")", ";", "}", "}", "break", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "if", "(", "localBinding", ".", "resolvedPosition", "==", "-", "1", ")", "{", "if", "(", "valueRequired", ")", "{", "localBinding", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "throw", "new", "AbortMethod", "(", "CodeStream", ".", "RESTART_CODE_GEN_FOR_UNUSED_LOCALS_MODE", ",", "null", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "if", "(", "!", "valueRequired", "&&", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "==", "0", ")", "{", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", "{", "VariableBinding", "[", "]", "path", "=", "currentScope", ".", "getEmulationPath", "(", "localBinding", ")", ";", "codeStream", ".", "generateOuterAccess", "(", "path", ",", "this", ",", "localBinding", ",", "currentScope", ")", ";", "}", "else", "{", "codeStream", ".", "load", "(", "localBinding", ")", ";", "}", "break", ";", "default", ":", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "return", ";", "}", "}", "if", "(", "this", ".", "genericCast", "!=", "null", ")", "codeStream", ".", "checkcast", "(", "this", ".", "genericCast", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "boolean", "isUnboxing", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ";", "if", "(", "isUnboxing", ")", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "switch", "(", "isUnboxing", "?", "postConversionType", "(", "currentScope", ")", ".", "id", ":", "this", ".", "resolvedType", ".", "id", ")", "{", "case", "T_long", ":", "case", "T_double", ":", "codeStream", ".", "pop2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "pop", "(", ")", ";", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "void", "generateCompoundAssignment", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "Expression", "expression", ",", "int", "operator", ",", "int", "assignmentImplicitConversion", ",", "boolean", "valueRequired", ")", "{", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "Reference", ".", "reportOnlyUselesslyReadLocal", "(", "currentScope", ",", "localBinding", ",", "valueRequired", ")", ";", "break", ";", "case", "Binding", ".", "FIELD", ":", "reportOnlyUselesslyReadPrivateField", "(", "currentScope", ",", "(", "FieldBinding", ")", "this", ".", "binding", ",", "valueRequired", ")", ";", "}", "this", ".", "generateCompoundAssignment", "(", "currentScope", ",", "codeStream", ",", "this", ".", "syntheticAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "WRITE", "]", ",", "expression", ",", "operator", ",", "assignmentImplicitConversion", ",", "valueRequired", ")", ";", "}", "public", "void", "generateCompoundAssignment", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "MethodBinding", "writeAccessor", ",", "Expression", "expression", ",", "int", "operator", ",", "int", "assignmentImplicitConversion", ",", "boolean", "valueRequired", ")", "{", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "FieldBinding", "codegenField", "=", "(", "(", "FieldBinding", ")", "this", ".", "binding", ")", ".", "original", "(", ")", ";", "if", "(", "codegenField", ".", "isStatic", "(", ")", ")", "{", "if", "(", "(", "this", ".", "syntheticAccessors", "==", "null", ")", "||", "(", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", "==", "null", ")", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "codegenField", ",", "this", ".", "actualReceiverType", ",", "true", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "codegenField", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", ",", "null", ")", ";", "}", "}", "else", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", "{", "ReferenceBinding", "targetType", "=", "currentScope", ".", "enclosingSourceType", "(", ")", ".", "enclosingTypeAt", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ")", ";", "Object", "[", "]", "emulationPath", "=", "currentScope", ".", "getEmulationPath", "(", "targetType", ",", "true", ",", "false", ")", ";", "codeStream", ".", "generateOuterAccess", "(", "emulationPath", ",", "this", ",", "targetType", ",", "currentScope", ")", ";", "}", "else", "{", "codeStream", ".", "aload_0", "(", ")", ";", "}", "codeStream", ".", "dup", "(", ")", ";", "if", "(", "(", "this", ".", "syntheticAccessors", "==", "null", ")", "||", "(", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", "==", "null", ")", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "codegenField", ",", "this", ".", "actualReceiverType", ",", "true", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getfield", ",", "codegenField", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", ",", "null", ")", ";", "}", "}", "break", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "Constant", "assignConstant", ";", "switch", "(", "localBinding", ".", "type", ".", "id", ")", "{", "case", "T_JavaLangString", ":", "codeStream", ".", "generateStringConcatenationAppend", "(", "currentScope", ",", "this", ",", "expression", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "dup", "(", ")", ";", "}", "codeStream", ".", "store", "(", "localBinding", ",", "false", ")", ";", "return", ";", "case", "T_int", ":", "assignConstant", "=", "expression", ".", "constant", ";", "if", "(", "localBinding", ".", "resolvedPosition", "==", "-", "1", ")", "{", "if", "(", "valueRequired", ")", "{", "localBinding", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "throw", "new", "AbortMethod", "(", "CodeStream", ".", "RESTART_CODE_GEN_FOR_UNUSED_LOCALS_MODE", ",", "null", ")", ";", "}", "else", "if", "(", "assignConstant", "==", "Constant", ".", "NotAConstant", ")", "{", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "}", "return", ";", "}", "if", "(", "(", "assignConstant", "!=", "Constant", ".", "NotAConstant", ")", "&&", "(", "assignConstant", ".", "typeID", "(", ")", "!=", "TypeIds", ".", "T_float", ")", "&&", "(", "assignConstant", ".", "typeID", "(", ")", "!=", "TypeIds", ".", "T_double", ")", ")", "{", "switch", "(", "operator", ")", "{", "case", "PLUS", ":", "int", "increment", "=", "assignConstant", ".", "intValue", "(", ")", ";", "if", "(", "increment", "!=", "(", "short", ")", "increment", ")", "break", ";", "codeStream", ".", "iinc", "(", "localBinding", ".", "resolvedPosition", ",", "increment", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "load", "(", "localBinding", ")", ";", "}", "return", ";", "case", "MINUS", ":", "increment", "=", "-", "assignConstant", ".", "intValue", "(", ")", ";", "if", "(", "increment", "!=", "(", "short", ")", "increment", ")", "break", ";", "codeStream", ".", "iinc", "(", "localBinding", ".", "resolvedPosition", ",", "increment", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "load", "(", "localBinding", ")", ";", "}", "return", ";", "}", "}", "default", ":", "if", "(", "localBinding", ".", "resolvedPosition", "==", "-", "1", ")", "{", "assignConstant", "=", "expression", ".", "constant", ";", "if", "(", "valueRequired", ")", "{", "localBinding", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "throw", "new", "AbortMethod", "(", "CodeStream", ".", "RESTART_CODE_GEN_FOR_UNUSED_LOCALS_MODE", ",", "null", ")", ";", "}", "else", "if", "(", "assignConstant", "==", "Constant", ".", "NotAConstant", ")", "{", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "}", "return", ";", "}", "codeStream", ".", "load", "(", "localBinding", ")", ";", "}", "}", "int", "operationTypeID", ";", "switch", "(", "operationTypeID", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ")", "{", "case", "T_JavaLangString", ":", "case", "T_JavaLangObject", ":", "case", "T_undefined", ":", "codeStream", ".", "generateStringConcatenationAppend", "(", "currentScope", ",", "null", ",", "expression", ")", ";", "break", ";", "default", ":", "if", "(", "this", ".", "genericCast", "!=", "null", ")", "codeStream", ".", "checkcast", "(", "this", ".", "genericCast", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "if", "(", "expression", "==", "IntLiteral", ".", "One", ")", "{", "codeStream", ".", "generateConstant", "(", "expression", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "expression", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "}", "codeStream", ".", "sendOperator", "(", "operator", ",", "operationTypeID", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "assignmentImplicitConversion", ")", ";", "}", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "FieldBinding", "codegenField", "=", "(", "(", "FieldBinding", ")", "this", ".", "binding", ")", ".", "original", "(", ")", ";", "fieldStore", "(", "currentScope", ",", "codeStream", ",", "codegenField", ",", "writeAccessor", ",", "this", ".", "actualReceiverType", ",", "true", ",", "valueRequired", ")", ";", "return", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "if", "(", "valueRequired", ")", "{", "switch", "(", "localBinding", ".", "type", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "codeStream", ".", "dup2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "dup", "(", ")", ";", "break", ";", "}", "}", "codeStream", ".", "store", "(", "localBinding", ",", "false", ")", ";", "}", "}", "public", "void", "generatePostIncrement", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "CompoundAssignment", "postIncrement", ",", "boolean", "valueRequired", ")", "{", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "FieldBinding", "fieldBinding", "=", "(", "FieldBinding", ")", "this", ".", "binding", ";", "reportOnlyUselesslyReadPrivateField", "(", "currentScope", ",", "fieldBinding", ",", "valueRequired", ")", ";", "FieldBinding", "codegenField", "=", "fieldBinding", ".", "original", "(", ")", ";", "if", "(", "codegenField", ".", "isStatic", "(", ")", ")", "{", "if", "(", "(", "this", ".", "syntheticAccessors", "==", "null", ")", "||", "(", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", "==", "null", ")", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "codegenField", ",", "this", ".", "actualReceiverType", ",", "true", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getstatic", ",", "codegenField", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", ",", "null", ")", ";", "}", "}", "else", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", "{", "ReferenceBinding", "targetType", "=", "currentScope", ".", "enclosingSourceType", "(", ")", ".", "enclosingTypeAt", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ")", ";", "Object", "[", "]", "emulationPath", "=", "currentScope", ".", "getEmulationPath", "(", "targetType", ",", "true", ",", "false", ")", ";", "codeStream", ".", "generateOuterAccess", "(", "emulationPath", ",", "this", ",", "targetType", ",", "currentScope", ")", ";", "}", "else", "{", "codeStream", ".", "aload_0", "(", ")", ";", "}", "codeStream", ".", "dup", "(", ")", ";", "if", "(", "(", "this", ".", "syntheticAccessors", "==", "null", ")", "||", "(", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", "==", "null", ")", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "codegenField", ",", "this", ".", "actualReceiverType", ",", "true", ")", ";", "codeStream", ".", "fieldAccess", "(", "Opcodes", ".", "OPC_getfield", ",", "codegenField", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "READ", "]", ",", "null", ")", ";", "}", "}", "TypeBinding", "operandType", ";", "if", "(", "this", ".", "genericCast", "!=", "null", ")", "{", "codeStream", ".", "checkcast", "(", "this", ".", "genericCast", ")", ";", "operandType", "=", "this", ".", "genericCast", ";", "}", "else", "{", "operandType", "=", "codegenField", ".", "type", ";", "}", "if", "(", "valueRequired", ")", "{", "if", "(", "codegenField", ".", "isStatic", "(", ")", ")", "{", "switch", "(", "operandType", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "codeStream", ".", "dup2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "dup", "(", ")", ";", "break", ";", "}", "}", "else", "{", "switch", "(", "operandType", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "codeStream", ".", "dup2_x1", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "dup_x1", "(", ")", ";", "break", ";", "}", "}", "}", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "generateConstant", "(", "postIncrement", ".", "expression", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "sendOperator", "(", "postIncrement", ".", "operator", ",", "this", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "postIncrement", ".", "preAssignImplicitConversion", ")", ";", "fieldStore", "(", "currentScope", ",", "codeStream", ",", "codegenField", ",", "this", ".", "syntheticAccessors", "==", "null", "?", "null", ":", "this", ".", "syntheticAccessors", "[", "SingleNameReference", ".", "WRITE", "]", ",", "this", ".", "actualReceiverType", ",", "true", ",", "false", ")", ";", "return", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "localBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "Reference", ".", "reportOnlyUselesslyReadLocal", "(", "currentScope", ",", "localBinding", ",", "valueRequired", ")", ";", "if", "(", "localBinding", ".", "resolvedPosition", "==", "-", "1", ")", "{", "if", "(", "valueRequired", ")", "{", "localBinding", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "throw", "new", "AbortMethod", "(", "CodeStream", ".", "RESTART_CODE_GEN_FOR_UNUSED_LOCALS_MODE", ",", "null", ")", ";", "}", "return", ";", "}", "if", "(", "localBinding", ".", "type", "==", "TypeBinding", ".", "INT", ")", "{", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "load", "(", "localBinding", ")", ";", "}", "if", "(", "postIncrement", ".", "operator", "==", "OperatorIds", ".", "PLUS", ")", "{", "codeStream", ".", "iinc", "(", "localBinding", ".", "resolvedPosition", ",", "1", ")", ";", "}", "else", "{", "codeStream", ".", "iinc", "(", "localBinding", ".", "resolvedPosition", ",", "-", "1", ")", ";", "}", "}", "else", "{", "codeStream", ".", "load", "(", "localBinding", ")", ";", "if", "(", "valueRequired", ")", "{", "switch", "(", "localBinding", ".", "type", ".", "id", ")", "{", "case", "TypeIds", ".", "T_long", ":", "case", "TypeIds", ".", "T_double", ":", "codeStream", ".", "dup2", "(", ")", ";", "break", ";", "default", ":", "codeStream", ".", "dup", "(", ")", ";", "break", ";", "}", "}", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "generateConstant", "(", "postIncrement", ".", "expression", ".", "constant", ",", "this", ".", "implicitConversion", ")", ";", "codeStream", ".", "sendOperator", "(", "postIncrement", ".", "operator", ",", "this", ".", "implicitConversion", "&", "TypeIds", ".", "COMPILE_TYPE_MASK", ")", ";", "codeStream", ".", "generateImplicitConversion", "(", "postIncrement", ".", "preAssignImplicitConversion", ")", ";", "codeStream", ".", "store", "(", "localBinding", ",", "false", ")", ";", "}", "}", "}", "public", "void", "generateReceiver", "(", "CodeStream", "codeStream", ")", "{", "codeStream", ".", "aload_0", "(", ")", ";", "}", "public", "TypeBinding", "[", "]", "genericTypeArguments", "(", ")", "{", "return", "null", ";", "}", "public", "LocalVariableBinding", "localVariableBinding", "(", ")", "{", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "break", ";", "case", "Binding", ".", "LOCAL", ":", "return", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "}", "return", "null", ";", "}", "public", "void", "manageEnclosingInstanceAccessIfNecessary", "(", "BlockScope", "currentScope", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "==", "0", ")", "||", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", ")", "{", "return", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "==", "Binding", ".", "LOCAL", ")", "{", "LocalVariableBinding", "localVariableBinding", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "if", "(", "localVariableBinding", "!=", "null", ")", "{", "if", "(", "(", "localVariableBinding", ".", "tagBits", "&", "TagBits", ".", "NotInitialized", ")", "!=", "0", ")", "{", "return", ";", "}", "switch", "(", "localVariableBinding", ".", "useFlag", ")", "{", "case", "LocalVariableBinding", ".", "FAKE_USED", ":", "case", "LocalVariableBinding", ".", "USED", ":", "currentScope", ".", "emulateOuterAccess", "(", "localVariableBinding", ")", ";", "}", "}", "}", "}", "public", "void", "manageSyntheticAccessIfNecessary", "(", "BlockScope", "currentScope", ",", "FlowInfo", "flowInfo", ",", "boolean", "isReadAccess", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "!=", "0", ")", "return", ";", "if", "(", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "return", ";", "if", "(", "(", "this", ".", "bits", "&", "Binding", ".", "FIELD", ")", "!=", "0", ")", "{", "FieldBinding", "fieldBinding", "=", "(", "FieldBinding", ")", "this", ".", "binding", ";", "FieldBinding", "codegenField", "=", "fieldBinding", ".", "original", "(", ")", ";", "if", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", "&&", "(", "codegenField", ".", "isPrivate", "(", ")", "||", "(", "codegenField", ".", "isProtected", "(", ")", "&&", "codegenField", ".", "declaringClass", ".", "getPackage", "(", ")", "!=", "currentScope", ".", "enclosingSourceType", "(", ")", ".", "getPackage", "(", ")", ")", ")", ")", "{", "if", "(", "this", ".", "syntheticAccessors", "==", "null", ")", "this", ".", "syntheticAccessors", "=", "new", "MethodBinding", "[", "2", "]", ";", "this", ".", "syntheticAccessors", "[", "isReadAccess", "?", "SingleNameReference", ".", "READ", ":", "SingleNameReference", ".", "WRITE", "]", "=", "(", "(", "SourceTypeBinding", ")", "currentScope", ".", "enclosingSourceType", "(", ")", ".", "enclosingTypeAt", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ")", ")", ".", "addSyntheticMethod", "(", "codegenField", ",", "isReadAccess", ",", "false", ")", ";", "currentScope", ".", "problemReporter", "(", ")", ".", "needToEmulateFieldAccess", "(", "codegenField", ",", "this", ",", "isReadAccess", ")", ";", "return", ";", "}", "}", "}", "public", "int", "nullStatus", "(", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "constant", "!=", "null", "&&", "this", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "return", "FlowInfo", ".", "NON_NULL", ";", "}", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "FIELD", ":", "return", "FlowInfo", ".", "UNKNOWN", ";", "case", "Binding", ".", "LOCAL", ":", "LocalVariableBinding", "local", "=", "(", "LocalVariableBinding", ")", "this", ".", "binding", ";", "if", "(", "local", "!=", "null", ")", "return", "flowInfo", ".", "nullStatus", "(", "local", ")", ";", "}", "return", "FlowInfo", ".", "NON_NULL", ";", "}", "public", "TypeBinding", "postConversionType", "(", "Scope", "scope", ")", "{", "TypeBinding", "convertedType", "=", "this", ".", "resolvedType", ";", "if", "(", "this", ".", "genericCast", "!=", "null", ")", "convertedType", "=", "this", ".", "genericCast", ";", "int", "runtimeType", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ";", "switch", "(", "runtimeType", ")", "{", "case", "T_boolean", ":", "convertedType", "=", "TypeBinding", ".", "BOOLEAN", ";", "break", ";", "case", "T_byte", ":", "convertedType", "=", "TypeBinding", ".", "BYTE", ";", "break", ";", "case", "T_short", ":", "convertedType", "=", "TypeBinding", ".", "SHORT", ";", "break", ";", "case", "T_char", ":", "convertedType", "=", "TypeBinding", ".", "CHAR", ";", "break", ";", "case", "T_int", ":", "convertedType", "=", "TypeBinding", ".", "INT", ";", "break", ";", "case", "T_float", ":", "convertedType", "=", "TypeBinding", ".", "FLOAT", ";", "break", ";", "case", "T_long", ":", "convertedType", "=", "TypeBinding", ".", "LONG", ";", "break", ";", "case", "T_double", ":", "convertedType", "=", "TypeBinding", ".", "DOUBLE", ";", "break", ";", "default", ":", "}", "if", "(", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "BOXING", ")", "!=", "0", ")", "{", "convertedType", "=", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "convertedType", ")", ";", "}", "return", "convertedType", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "output", ".", "append", "(", "this", ".", "token", ")", ";", "}", "public", "TypeBinding", "reportError", "(", "BlockScope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "this", ".", "binding", "instanceof", "ProblemFieldBinding", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "invalidField", "(", "this", ",", "(", "FieldBinding", ")", "this", ".", "binding", ")", ";", "}", "else", "if", "(", "this", ".", "binding", "instanceof", "ProblemReferenceBinding", "||", "this", ".", "binding", "instanceof", "MissingTypeBinding", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "invalidType", "(", "this", ",", "(", "TypeBinding", ")", "this", ".", "binding", ")", ";", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "unresolvableReference", "(", "this", ",", "this", ".", "binding", ")", ";", "}", "return", "null", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "if", "(", "this", ".", "actualReceiverType", "!=", "null", ")", "{", "this", ".", "binding", "=", "scope", ".", "getField", "(", "this", ".", "actualReceiverType", ",", "this", ".", "token", ",", "this", ")", ";", "}", "else", "{", "this", ".", "actualReceiverType", "=", "scope", ".", "enclosingSourceType", "(", ")", ";", "this", ".", "binding", "=", "scope", ".", "getBinding", "(", "this", ".", "token", ",", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ",", "this", ",", "true", ")", ";", "}", "if", "(", "this", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "switch", "(", "this", ".", "bits", "&", "ASTNode", ".", "RestrictiveFlagMASK", ")", "{", "case", "Binding", ".", "VARIABLE", ":", "case", "Binding", ".", "VARIABLE", "|", "Binding", ".", "TYPE", ":", "if", "(", "this", ".", "binding", "instanceof", "VariableBinding", ")", "{", "VariableBinding", "variable", "=", "(", "VariableBinding", ")", "this", ".", "binding", ";", "TypeBinding", "variableType", ";", "if", "(", "this", ".", "binding", "instanceof", "LocalVariableBinding", ")", "{", "this", ".", "bits", "&=", "~", "ASTNode", ".", "RestrictiveFlagMASK", ";", "this", ".", "bits", "|=", "Binding", ".", "LOCAL", ";", "if", "(", "!", "variable", ".", "isFinal", "(", ")", "&&", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotReferToNonFinalOuterLocal", "(", "(", "LocalVariableBinding", ")", "variable", ",", "this", ")", ";", "}", "variableType", "=", "variable", ".", "type", ";", "this", ".", "constant", "=", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsStrictlyAssigned", ")", "==", "0", "?", "variable", ".", "constant", "(", ")", ":", "Constant", ".", "NotAConstant", ";", "}", "else", "{", "variableType", "=", "checkFieldAccess", "(", "scope", ")", ";", "}", "if", "(", "variableType", "!=", "null", ")", "{", "this", ".", "resolvedType", "=", "variableType", "=", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsStrictlyAssigned", ")", "==", "0", ")", "?", "variableType", ".", "capture", "(", "scope", ",", "this", ".", "sourceEnd", ")", ":", "variableType", ")", ";", "if", "(", "(", "variableType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "Binding", ".", "LOCAL", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "invalidType", "(", "this", ",", "variableType", ")", ";", "}", "return", "null", ";", "}", "}", "return", "variableType", ";", "}", "this", ".", "bits", "&=", "~", "ASTNode", ".", "RestrictiveFlagMASK", ";", "this", ".", "bits", "|=", "Binding", ".", "TYPE", ";", "case", "Binding", ".", "TYPE", ":", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "TypeBinding", "type", "=", "(", "TypeBinding", ")", "this", ".", "binding", ";", "if", "(", "isTypeUseDeprecated", "(", "type", ",", "scope", ")", ")", "scope", ".", "problemReporter", "(", ")", ".", "deprecatedType", "(", "type", ",", "this", ")", ";", "type", "=", "scope", ".", "environment", "(", ")", ".", "convertToRawType", "(", "type", ",", "false", ")", ";", "return", "this", ".", "resolvedType", "=", "type", ";", "}", "}", "return", "this", ".", "resolvedType", "=", "reportError", "(", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "String", "unboundReferenceErrorName", "(", ")", "{", "return", "new", "String", "(", "this", ".", "token", ")", ";", "}", "}", "</s>" ]
4,235
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "JavadocFieldReference", "extends", "FieldReference", "{", "public", "int", "tagSourceStart", ",", "tagSourceEnd", ";", "public", "int", "tagValue", ";", "public", "MethodBinding", "methodBinding", ";", "public", "JavadocFieldReference", "(", "char", "[", "]", "source", ",", "long", "pos", ")", "{", "super", "(", "source", ",", "pos", ")", ";", "this", ".", "bits", "|=", "InsideJavadoc", ";", "}", "protected", "TypeBinding", "internalResolveType", "(", "Scope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "this", ".", "receiver", "==", "null", ")", "{", "this", ".", "actualReceiverType", "=", "scope", ".", "enclosingReceiverType", "(", ")", ";", "}", "else", "if", "(", "scope", ".", "kind", "==", "Scope", ".", "CLASS_SCOPE", ")", "{", "this", ".", "actualReceiverType", "=", "this", ".", "receiver", ".", "resolveType", "(", "(", "ClassScope", ")", "scope", ")", ";", "}", "else", "{", "this", ".", "actualReceiverType", "=", "this", ".", "receiver", ".", "resolveType", "(", "(", "BlockScope", ")", "scope", ")", ";", "}", "if", "(", "this", ".", "actualReceiverType", "==", "null", ")", "{", "return", "null", ";", "}", "Binding", "fieldBinding", "=", "(", "this", ".", "receiver", "!=", "null", "&&", "this", ".", "receiver", ".", "isThis", "(", ")", ")", "?", "scope", ".", "classScope", "(", ")", ".", "getBinding", "(", "this", ".", "token", ",", "this", ".", "bits", "&", "RestrictiveFlagMASK", ",", "this", ",", "true", ")", ":", "scope", ".", "getField", "(", "this", ".", "actualReceiverType", ",", "this", ".", "token", ",", "this", ")", ";", "if", "(", "!", "fieldBinding", ".", "isValidBinding", "(", ")", ")", "{", "switch", "(", "fieldBinding", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "NonStaticReferenceInConstructorInvocation", ":", "case", "ProblemReasons", ".", "NonStaticReferenceInStaticContext", ":", "case", "ProblemReasons", ".", "InheritedNameHidesEnclosingName", ":", "FieldBinding", "closestMatch", "=", "(", "(", "ProblemFieldBinding", ")", "fieldBinding", ")", ".", "closestMatch", ";", "if", "(", "closestMatch", "!=", "null", ")", "{", "fieldBinding", "=", "closestMatch", ";", "}", "}", "}", "if", "(", "!", "fieldBinding", ".", "isValidBinding", "(", ")", "||", "!", "(", "fieldBinding", "instanceof", "FieldBinding", ")", ")", "{", "if", "(", "this", ".", "receiver", ".", "resolvedType", "instanceof", "ProblemReferenceBinding", ")", "{", "return", "null", ";", "}", "if", "(", "this", ".", "actualReceiverType", "instanceof", "ReferenceBinding", ")", "{", "ReferenceBinding", "refBinding", "=", "(", "ReferenceBinding", ")", "this", ".", "actualReceiverType", ";", "char", "[", "]", "selector", "=", "this", ".", "token", ";", "MethodBinding", "possibleMethod", "=", "null", ";", "if", "(", "CharOperation", ".", "equals", "(", "this", ".", "actualReceiverType", ".", "sourceName", "(", ")", ",", "selector", ")", ")", "{", "possibleMethod", "=", "scope", ".", "getConstructor", "(", "refBinding", ",", "Binding", ".", "NO_TYPES", ",", "this", ")", ";", "}", "else", "{", "possibleMethod", "=", "this", ".", "receiver", ".", "isThis", "(", ")", "?", "scope", ".", "getImplicitMethod", "(", "selector", ",", "Binding", ".", "NO_TYPES", ",", "this", ")", ":", "scope", ".", "getMethod", "(", "refBinding", ",", "selector", ",", "Binding", ".", "NO_TYPES", ",", "this", ")", ";", "}", "if", "(", "possibleMethod", ".", "isValidBinding", "(", ")", ")", "{", "this", ".", "methodBinding", "=", "possibleMethod", ";", "}", "else", "{", "ProblemMethodBinding", "problemMethodBinding", "=", "(", "ProblemMethodBinding", ")", "possibleMethod", ";", "if", "(", "problemMethodBinding", ".", "closestMatch", "==", "null", ")", "{", "if", "(", "fieldBinding", ".", "isValidBinding", "(", ")", ")", "{", "fieldBinding", "=", "new", "ProblemFieldBinding", "(", "refBinding", ",", "fieldBinding", ".", "readableName", "(", ")", ",", "ProblemReasons", ".", "NotFound", ")", ";", "}", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidField", "(", "this", ",", "fieldBinding", ",", "this", ".", "actualReceiverType", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "else", "{", "this", ".", "methodBinding", "=", "problemMethodBinding", ".", "closestMatch", ";", "}", "}", "}", "return", "null", ";", "}", "this", ".", "binding", "=", "(", "FieldBinding", ")", "fieldBinding", ";", "if", "(", "isFieldUseDeprecated", "(", "this", ".", "binding", ",", "scope", ",", "this", ".", "bits", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocDeprecatedField", "(", "this", ".", "binding", ",", "this", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "return", "this", ".", "resolvedType", "=", "this", ".", "binding", ".", "type", ";", "}", "public", "boolean", "isSuperAccess", "(", ")", "{", "return", "(", "this", ".", "bits", "&", "ASTNode", ".", "SuperAccess", ")", "!=", "0", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "if", "(", "this", ".", "receiver", "!=", "null", ")", "{", "this", ".", "receiver", ".", "printExpression", "(", "0", ",", "output", ")", ";", "}", "output", ".", "append", "(", "'#'", ")", ".", "append", "(", "this", ".", "token", ")", ";", "return", "output", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "return", "internalResolveType", "(", "scope", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "ClassScope", "scope", ")", "{", "return", "internalResolveType", "(", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "receiver", "!=", "null", ")", "{", "this", ".", "receiver", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "receiver", "!=", "null", ")", "{", "this", ".", "receiver", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
4,236
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ClassScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Scope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "public", "class", "JavadocArrayQualifiedTypeReference", "extends", "ArrayQualifiedTypeReference", "{", "public", "int", "tagSourceStart", ",", "tagSourceEnd", ";", "public", "JavadocArrayQualifiedTypeReference", "(", "JavadocQualifiedTypeReference", "typeRef", ",", "int", "dim", ")", "{", "super", "(", "typeRef", ".", "tokens", ",", "dim", ",", "typeRef", ".", "sourcePositions", ")", ";", "}", "protected", "void", "reportInvalidType", "(", "Scope", "scope", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidType", "(", "this", ",", "this", ".", "resolvedType", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "protected", "void", "reportDeprecatedType", "(", "TypeBinding", "type", ",", "Scope", "scope", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocDeprecatedType", "(", "type", ",", "this", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
4,237
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "JavadocArgumentExpression", "extends", "Expression", "{", "public", "char", "[", "]", "token", ";", "public", "Argument", "argument", ";", "public", "JavadocArgumentExpression", "(", "char", "[", "]", "name", ",", "int", "startPos", ",", "int", "endPos", ",", "TypeReference", "typeRef", ")", "{", "this", ".", "token", "=", "name", ";", "this", ".", "sourceStart", "=", "startPos", ";", "this", ".", "sourceEnd", "=", "endPos", ";", "long", "pos", "=", "(", "(", "(", "long", ")", "startPos", ")", "<<", "32", ")", "+", "endPos", ";", "this", ".", "argument", "=", "new", "Argument", "(", "name", ",", "pos", ",", "typeRef", ",", "ClassFileConstants", ".", "AccDefault", ")", ";", "this", ".", "bits", "|=", "InsideJavadoc", ";", "}", "private", "TypeBinding", "internalResolveType", "(", "Scope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "this", ".", "resolvedType", "!=", "null", ")", "return", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", "?", "this", ".", "resolvedType", ":", "null", ";", "if", "(", "this", ".", "argument", "!=", "null", ")", "{", "TypeReference", "typeRef", "=", "this", ".", "argument", ".", "type", ";", "if", "(", "typeRef", "!=", "null", ")", "{", "this", ".", "resolvedType", "=", "typeRef", ".", "getTypeBinding", "(", "scope", ")", ";", "typeRef", ".", "resolvedType", "=", "this", ".", "resolvedType", ";", "if", "(", "this", ".", "resolvedType", "==", "null", ")", "{", "return", "null", ";", "}", "if", "(", "typeRef", "instanceof", "SingleTypeReference", "&&", "this", ".", "resolvedType", ".", "leafComponentType", "(", ")", ".", "enclosingType", "(", ")", "!=", "null", "&&", "scope", ".", "compilerOptions", "(", ")", ".", "complianceLevel", "<=", "ClassFileConstants", ".", "JDK1_4", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidMemberTypeQualification", "(", "this", ".", "sourceStart", ",", "this", ".", "sourceEnd", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "else", "if", "(", "typeRef", "instanceof", "QualifiedTypeReference", ")", "{", "TypeBinding", "enclosingType", "=", "this", ".", "resolvedType", ".", "leafComponentType", "(", ")", ".", "enclosingType", "(", ")", ";", "if", "(", "enclosingType", "!=", "null", ")", "{", "int", "compoundLength", "=", "2", ";", "while", "(", "(", "enclosingType", "=", "enclosingType", ".", "enclosingType", "(", ")", ")", "!=", "null", ")", "compoundLength", "++", ";", "int", "typeNameLength", "=", "typeRef", ".", "getTypeName", "(", ")", ".", "length", ";", "if", "(", "typeNameLength", "!=", "compoundLength", "&&", "typeNameLength", "!=", "(", "compoundLength", "+", "this", ".", "resolvedType", ".", "getPackage", "(", ")", ".", "compoundName", ".", "length", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidMemberTypeQualification", "(", "typeRef", ".", "sourceStart", ",", "typeRef", ".", "sourceEnd", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "}", "}", "if", "(", "!", "this", ".", "resolvedType", ".", "isValidBinding", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidType", "(", "typeRef", ",", "this", ".", "resolvedType", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "return", "null", ";", "}", "if", "(", "isTypeUseDeprecated", "(", "this", ".", "resolvedType", ",", "scope", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocDeprecatedType", "(", "this", ".", "resolvedType", ",", "typeRef", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "return", "this", ".", "resolvedType", "=", "scope", ".", "environment", "(", ")", ".", "convertToRawType", "(", "this", ".", "resolvedType", ",", "true", ")", ";", "}", "}", "return", "null", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "if", "(", "this", ".", "argument", "==", "null", ")", "{", "if", "(", "this", ".", "token", "!=", "null", ")", "{", "output", ".", "append", "(", "this", ".", "token", ")", ";", "}", "}", "else", "{", "this", ".", "argument", ".", "print", "(", "indent", ",", "output", ")", ";", "}", "return", "output", ";", "}", "public", "void", "resolve", "(", "BlockScope", "scope", ")", "{", "if", "(", "this", ".", "argument", "!=", "null", ")", "{", "this", ".", "argument", ".", "resolve", "(", "scope", ")", ";", "}", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "return", "internalResolveType", "(", "scope", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "ClassScope", "scope", ")", "{", "return", "internalResolveType", "(", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "if", "(", "this", ".", "argument", "!=", "null", ")", "{", "this", ".", "argument", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "if", "(", "this", ".", "argument", "!=", "null", ")", "{", "this", ".", "argument", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
4,238
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "IfStatement", "extends", "Statement", "{", "public", "Expression", "condition", ";", "public", "Statement", "thenStatement", ";", "public", "Statement", "elseStatement", ";", "int", "thenInitStateIndex", "=", "-", "1", ";", "int", "elseInitStateIndex", "=", "-", "1", ";", "int", "mergedInitStateIndex", "=", "-", "1", ";", "public", "IfStatement", "(", "Expression", "condition", ",", "Statement", "thenStatement", ",", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "condition", "=", "condition", ";", "this", ".", "thenStatement", "=", "thenStatement", ";", "if", "(", "thenStatement", "instanceof", "EmptyStatement", ")", "thenStatement", ".", "bits", "|=", "IsUsefulEmptyStatement", ";", "this", ".", "sourceStart", "=", "sourceStart", ";", "this", ".", "sourceEnd", "=", "sourceEnd", ";", "}", "public", "IfStatement", "(", "Expression", "condition", ",", "Statement", "thenStatement", ",", "Statement", "elseStatement", ",", "int", "sourceStart", ",", "int", "sourceEnd", ")", "{", "this", ".", "condition", "=", "condition", ";", "this", ".", "thenStatement", "=", "thenStatement", ";", "if", "(", "thenStatement", "instanceof", "EmptyStatement", ")", "thenStatement", ".", "bits", "|=", "IsUsefulEmptyStatement", ";", "this", ".", "elseStatement", "=", "elseStatement", ";", "if", "(", "elseStatement", "instanceof", "IfStatement", ")", "elseStatement", ".", "bits", "|=", "IsElseIfStatement", ";", "if", "(", "elseStatement", "instanceof", "EmptyStatement", ")", "elseStatement", ".", "bits", "|=", "IsUsefulEmptyStatement", ";", "this", ".", "sourceStart", "=", "sourceStart", ";", "this", ".", "sourceEnd", "=", "sourceEnd", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "FlowInfo", "conditionFlowInfo", "=", "this", ".", "condition", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "int", "initialComplaintLevel", "=", "(", "flowInfo", ".", "reachMode", "(", ")", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", "?", "Statement", ".", "COMPLAINED_FAKE_REACHABLE", ":", "Statement", ".", "NOT_COMPLAINED", ";", "Constant", "cst", "=", "this", ".", "condition", ".", "optimizedBooleanConstant", "(", ")", ";", "if", "(", "(", "this", ".", "condition", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "this", ".", "condition", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "boolean", "isConditionOptimizedTrue", "=", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "true", ";", "boolean", "isConditionOptimizedFalse", "=", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "false", ";", "FlowInfo", "thenFlowInfo", "=", "conditionFlowInfo", ".", "safeInitsWhenTrue", "(", ")", ";", "if", "(", "isConditionOptimizedFalse", ")", "{", "thenFlowInfo", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", ";", "}", "FlowInfo", "elseFlowInfo", "=", "conditionFlowInfo", ".", "initsWhenFalse", "(", ")", ".", "copy", "(", ")", ";", "if", "(", "isConditionOptimizedTrue", ")", "{", "elseFlowInfo", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", ";", "}", "if", "(", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ")", "&&", "(", "(", "thenFlowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", ")", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "IsThenStatementUnreachable", ";", "}", "else", "if", "(", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", ")", "&&", "(", "(", "elseFlowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", ")", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "IsElseStatementUnreachable", ";", "}", "if", "(", "this", ".", "thenStatement", "!=", "null", ")", "{", "this", ".", "thenInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "thenFlowInfo", ")", ";", "if", "(", "isConditionOptimizedFalse", "||", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsThenStatementUnreachable", ")", "!=", "0", ")", ")", "{", "if", "(", "!", "isKnowDeadCodePattern", "(", "this", ".", "condition", ")", "||", "currentScope", ".", "compilerOptions", "(", ")", ".", "reportDeadCodeInTrivialIfStatement", ")", "{", "this", ".", "thenStatement", ".", "complainIfUnreachable", "(", "thenFlowInfo", ",", "currentScope", ",", "initialComplaintLevel", ")", ";", "}", "else", "{", "this", ".", "bits", "&=", "~", "ASTNode", ".", "IsThenStatementUnreachable", ";", "}", "}", "thenFlowInfo", "=", "this", ".", "thenStatement", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "thenFlowInfo", ")", ";", "}", "if", "(", "(", "thenFlowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "!=", "0", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "ThenExit", ";", "}", "if", "(", "this", ".", "elseStatement", "!=", "null", ")", "{", "if", "(", "thenFlowInfo", "==", "FlowInfo", ".", "DEAD_END", "&&", "(", "this", ".", "bits", "&", "IsElseIfStatement", ")", "==", "0", "&&", "!", "(", "this", ".", "elseStatement", "instanceof", "IfStatement", ")", ")", "{", "currentScope", ".", "problemReporter", "(", ")", ".", "unnecessaryElse", "(", "this", ".", "elseStatement", ")", ";", "}", "this", ".", "elseInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "elseFlowInfo", ")", ";", "if", "(", "isConditionOptimizedTrue", "||", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsElseStatementUnreachable", ")", "!=", "0", ")", ")", "{", "if", "(", "!", "isKnowDeadCodePattern", "(", "this", ".", "condition", ")", "||", "currentScope", ".", "compilerOptions", "(", ")", ".", "reportDeadCodeInTrivialIfStatement", ")", "{", "this", ".", "elseStatement", ".", "complainIfUnreachable", "(", "elseFlowInfo", ",", "currentScope", ",", "initialComplaintLevel", ")", ";", "}", "else", "{", "this", ".", "bits", "&=", "~", "ASTNode", ".", "IsElseStatementUnreachable", ";", "}", "}", "elseFlowInfo", "=", "this", ".", "elseStatement", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "elseFlowInfo", ")", ";", "}", "FlowInfo", "mergedInfo", "=", "FlowInfo", ".", "mergedOptimizedBranchesIfElse", "(", "thenFlowInfo", ",", "isConditionOptimizedTrue", ",", "elseFlowInfo", ",", "isConditionOptimizedFalse", ",", "true", ",", "flowInfo", ",", "this", ")", ";", "this", ".", "mergedInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "mergedInfo", ")", ";", "return", "mergedInfo", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "IsReachable", ")", "==", "0", ")", "{", "return", ";", "}", "int", "pc", "=", "codeStream", ".", "position", ";", "BranchLabel", "endifLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "Constant", "cst", ";", "boolean", "hasThenPart", "=", "!", "(", "(", "(", "cst", "=", "this", ".", "condition", ".", "optimizedBooleanConstant", "(", ")", ")", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "false", ")", "||", "this", ".", "thenStatement", "==", "null", "||", "this", ".", "thenStatement", ".", "isEmptyBlock", "(", ")", ")", ";", "boolean", "hasElsePart", "=", "!", "(", "(", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "true", ")", "||", "this", ".", "elseStatement", "==", "null", "||", "this", ".", "elseStatement", ".", "isEmptyBlock", "(", ")", ")", ";", "if", "(", "hasThenPart", ")", "{", "BranchLabel", "falseLabel", "=", "null", ";", "if", "(", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "true", ")", "{", "this", ".", "condition", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "}", "else", "{", "this", ".", "condition", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "null", ",", "hasElsePart", "?", "(", "falseLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ")", ":", "endifLabel", ",", "true", ")", ";", "}", "if", "(", "this", ".", "thenInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "thenInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "thenInitStateIndex", ")", ";", "}", "this", ".", "thenStatement", ".", "generateCode", "(", "currentScope", ",", "codeStream", ")", ";", "if", "(", "hasElsePart", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "ThenExit", ")", "==", "0", ")", "{", "this", ".", "thenStatement", ".", "branchChainTo", "(", "endifLabel", ")", ";", "int", "position", "=", "codeStream", ".", "position", ";", "codeStream", ".", "goto_", "(", "endifLabel", ")", ";", "codeStream", ".", "updateLastRecordedEndPC", "(", "(", "this", ".", "thenStatement", "instanceof", "Block", ")", "?", "(", "(", "Block", ")", "this", ".", "thenStatement", ")", ".", "scope", ":", "currentScope", ",", "position", ")", ";", "}", "if", "(", "this", ".", "elseInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "elseInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "elseInitStateIndex", ")", ";", "}", "if", "(", "falseLabel", "!=", "null", ")", "falseLabel", ".", "place", "(", ")", ";", "this", ".", "elseStatement", ".", "generateCode", "(", "currentScope", ",", "codeStream", ")", ";", "}", "}", "else", "if", "(", "hasElsePart", ")", "{", "if", "(", "cst", "!=", "Constant", ".", "NotAConstant", "&&", "cst", ".", "booleanValue", "(", ")", "==", "false", ")", "{", "this", ".", "condition", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "}", "else", "{", "this", ".", "condition", ".", "generateOptimizedBoolean", "(", "currentScope", ",", "codeStream", ",", "endifLabel", ",", "null", ",", "true", ")", ";", "}", "if", "(", "this", ".", "elseInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "elseInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "elseInitStateIndex", ")", ";", "}", "this", ".", "elseStatement", ".", "generateCode", "(", "currentScope", ",", "codeStream", ")", ";", "}", "else", "{", "this", ".", "condition", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "if", "(", "this", ".", "mergedInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "}", "endifLabel", ".", "place", "(", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "StringBuffer", "printStatement", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "printIndent", "(", "indent", ",", "output", ")", ".", "append", "(", "\"if", "(\"", ")", ";", "this", ".", "condition", ".", "printExpression", "(", "0", ",", "output", ")", ".", "append", "(", "\")n\"", ")", ";", "this", ".", "thenStatement", ".", "printStatement", "(", "indent", "+", "2", ",", "output", ")", ";", "if", "(", "this", ".", "elseStatement", "!=", "null", ")", "{", "output", ".", "append", "(", "'\\n'", ")", ";", "printIndent", "(", "indent", ",", "output", ")", ";", "output", ".", "append", "(", "\"elsen\"", ")", ";", "this", ".", "elseStatement", ".", "printStatement", "(", "indent", "+", "2", ",", "output", ")", ";", "}", "return", "output", ";", "}", "public", "void", "resolve", "(", "BlockScope", "scope", ")", "{", "TypeBinding", "type", "=", "this", ".", "condition", ".", "resolveTypeExpecting", "(", "scope", ",", "TypeBinding", ".", "BOOLEAN", ")", ";", "this", ".", "condition", ".", "computeConversion", "(", "scope", ",", "type", ",", "type", ")", ";", "if", "(", "this", ".", "thenStatement", "!=", "null", ")", "this", ".", "thenStatement", ".", "resolve", "(", "scope", ")", ";", "if", "(", "this", ".", "elseStatement", "!=", "null", ")", "this", ".", "elseStatement", ".", "resolve", "(", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "this", ".", "condition", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "if", "(", "this", ".", "thenStatement", "!=", "null", ")", "this", ".", "thenStatement", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "if", "(", "this", ".", "elseStatement", "!=", "null", ")", "this", ".", "elseStatement", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
4,239
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "JavadocSingleNameReference", "extends", "SingleNameReference", "{", "public", "int", "tagSourceStart", ",", "tagSourceEnd", ";", "public", "JavadocSingleNameReference", "(", "char", "[", "]", "source", ",", "long", "pos", ",", "int", "tagStart", ",", "int", "tagEnd", ")", "{", "super", "(", "source", ",", "pos", ")", ";", "this", ".", "tagSourceStart", "=", "tagStart", ";", "this", ".", "tagSourceEnd", "=", "tagEnd", ";", "this", ".", "bits", "|=", "InsideJavadoc", ";", "}", "public", "void", "resolve", "(", "BlockScope", "scope", ")", "{", "resolve", "(", "scope", ",", "true", ",", "scope", ".", "compilerOptions", "(", ")", ".", "reportUnusedParameterIncludeDocCommentReference", ")", ";", "}", "public", "void", "resolve", "(", "BlockScope", "scope", ",", "boolean", "warn", ",", "boolean", "considerParamRefAsUsage", ")", "{", "LocalVariableBinding", "variableBinding", "=", "scope", ".", "findVariable", "(", "this", ".", "token", ")", ";", "if", "(", "variableBinding", "!=", "null", "&&", "variableBinding", ".", "isValidBinding", "(", ")", "&&", "(", "(", "variableBinding", ".", "tagBits", "&", "TagBits", ".", "IsArgument", ")", "!=", "0", ")", ")", "{", "this", ".", "binding", "=", "variableBinding", ";", "if", "(", "considerParamRefAsUsage", ")", "{", "variableBinding", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "}", "return", ";", "}", "if", "(", "warn", ")", "{", "try", "{", "MethodScope", "methScope", "=", "(", "MethodScope", ")", "scope", ";", "scope", ".", "problemReporter", "(", ")", ".", "javadocUndeclaredParamTagName", "(", "this", ".", "token", ",", "this", ".", "sourceStart", ",", "this", ".", "sourceEnd", ",", "methScope", ".", "referenceMethod", "(", ")", ".", "modifiers", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocUndeclaredParamTagName", "(", "this", ".", "token", ",", "this", ".", "sourceStart", ",", "this", ".", "sourceEnd", ",", "-", "1", ")", ";", "}", "}", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
4,240
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ClassScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Scope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "public", "class", "JavadocArraySingleTypeReference", "extends", "ArrayTypeReference", "{", "public", "JavadocArraySingleTypeReference", "(", "char", "[", "]", "name", ",", "int", "dim", ",", "long", "pos", ")", "{", "super", "(", "name", ",", "dim", ",", "pos", ")", ";", "this", ".", "bits", "|=", "InsideJavadoc", ";", "}", "protected", "void", "reportInvalidType", "(", "Scope", "scope", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocInvalidType", "(", "this", ",", "this", ".", "resolvedType", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "protected", "void", "reportDeprecatedType", "(", "TypeBinding", "type", ",", "Scope", "scope", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "javadocDeprecatedType", "(", "type", ",", "this", ",", "scope", ".", "getDeclarationModifiers", "(", ")", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "ClassScope", "scope", ")", "{", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ";", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
4,241
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "ArrayInitializer", "extends", "Expression", "{", "public", "Expression", "[", "]", "expressions", ";", "public", "ArrayBinding", "binding", ";", "public", "ArrayInitializer", "(", ")", "{", "super", "(", ")", ";", "}", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "this", ".", "expressions", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "expressions", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "flowInfo", "=", "this", ".", "expressions", "[", "i", "]", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "}", "}", "return", "flowInfo", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "int", "expressionLength", "=", "(", "this", ".", "expressions", "==", "null", ")", "?", "0", ":", "this", ".", "expressions", ".", "length", ";", "codeStream", ".", "generateInlinedValue", "(", "expressionLength", ")", ";", "codeStream", ".", "newArray", "(", "this", ".", "binding", ")", ";", "if", "(", "this", ".", "expressions", "!=", "null", ")", "{", "int", "elementsTypeID", "=", "this", ".", "binding", ".", "dimensions", ">", "1", "?", "-", "1", ":", "this", ".", "binding", ".", "leafComponentType", ".", "id", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "expressionLength", ";", "i", "++", ")", "{", "Expression", "expr", ";", "if", "(", "(", "expr", "=", "this", ".", "expressions", "[", "i", "]", ")", ".", "constant", "!=", "Constant", ".", "NotAConstant", ")", "{", "switch", "(", "elementsTypeID", ")", "{", "case", "T_int", ":", "case", "T_short", ":", "case", "T_byte", ":", "case", "T_char", ":", "case", "T_long", ":", "if", "(", "expr", ".", "constant", ".", "longValue", "(", ")", "!=", "0", ")", "{", "codeStream", ".", "dup", "(", ")", ";", "codeStream", ".", "generateInlinedValue", "(", "i", ")", ";", "expr", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "arrayAtPut", "(", "elementsTypeID", ",", "false", ")", ";", "}", "break", ";", "case", "T_float", ":", "case", "T_double", ":", "double", "constantValue", "=", "expr", ".", "constant", ".", "doubleValue", "(", ")", ";", "if", "(", "constantValue", "==", "-", "0.0", "||", "constantValue", "!=", "0", ")", "{", "codeStream", ".", "dup", "(", ")", ";", "codeStream", ".", "generateInlinedValue", "(", "i", ")", ";", "expr", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "arrayAtPut", "(", "elementsTypeID", ",", "false", ")", ";", "}", "break", ";", "case", "T_boolean", ":", "if", "(", "expr", ".", "constant", ".", "booleanValue", "(", ")", "!=", "false", ")", "{", "codeStream", ".", "dup", "(", ")", ";", "codeStream", ".", "generateInlinedValue", "(", "i", ")", ";", "expr", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "arrayAtPut", "(", "elementsTypeID", ",", "false", ")", ";", "}", "break", ";", "default", ":", "if", "(", "!", "(", "expr", "instanceof", "NullLiteral", ")", ")", "{", "codeStream", ".", "dup", "(", ")", ";", "codeStream", ".", "generateInlinedValue", "(", "i", ")", ";", "expr", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "arrayAtPut", "(", "elementsTypeID", ",", "false", ")", ";", "}", "}", "}", "else", "if", "(", "!", "(", "expr", "instanceof", "NullLiteral", ")", ")", "{", "codeStream", ".", "dup", "(", ")", ";", "codeStream", ".", "generateInlinedValue", "(", "i", ")", ";", "expr", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "arrayAtPut", "(", "elementsTypeID", ",", "false", ")", ";", "}", "}", "}", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "codeStream", ".", "pop", "(", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "output", ".", "append", "(", "'{'", ")", ";", "if", "(", "this", ".", "expressions", "!=", "null", ")", "{", "int", "j", "=", "20", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "expressions", ".", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "output", ".", "append", "(", "\",", "\"", ")", ";", "this", ".", "expressions", "[", "i", "]", ".", "printExpression", "(", "0", ",", "output", ")", ";", "j", "--", ";", "if", "(", "j", "==", "0", ")", "{", "output", ".", "append", "(", "'\\n'", ")", ";", "printIndent", "(", "indent", "+", "1", ",", "output", ")", ";", "j", "=", "20", ";", "}", "}", "}", "return", "output", ".", "append", "(", "'}'", ")", ";", "}", "public", "TypeBinding", "resolveTypeExpecting", "(", "BlockScope", "scope", ",", "TypeBinding", "expectedType", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "if", "(", "expectedType", "instanceof", "ArrayBinding", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "IsAnnotationDefaultValue", ")", "==", "0", ")", "{", "TypeBinding", "leafComponentType", "=", "expectedType", ".", "leafComponentType", "(", ")", ";", "if", "(", "!", "leafComponentType", ".", "isReifiable", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "illegalGenericArray", "(", "leafComponentType", ",", "this", ")", ";", "}", "}", "this", ".", "resolvedType", "=", "this", ".", "binding", "=", "(", "ArrayBinding", ")", "expectedType", ";", "if", "(", "this", ".", "expressions", "==", "null", ")", "return", "this", ".", "binding", ";", "TypeBinding", "elementType", "=", "this", ".", "binding", ".", "elementsType", "(", ")", ";", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "expressions", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "Expression", "expression", "=", "this", ".", "expressions", "[", "i", "]", ";", "expression", ".", "setExpectedType", "(", "elementType", ")", ";", "TypeBinding", "expressionType", "=", "expression", "instanceof", "ArrayInitializer", "?", "expression", ".", "resolveTypeExpecting", "(", "scope", ",", "elementType", ")", ":", "expression", ".", "resolveType", "(", "scope", ")", ";", "if", "(", "expressionType", "==", "null", ")", "continue", ";", "if", "(", "elementType", "!=", "expressionType", ")", "scope", ".", "compilationUnitScope", "(", ")", ".", "recordTypeConversion", "(", "elementType", ",", "expressionType", ")", ";", "if", "(", "expression", ".", "isConstantValueOfTypeAssignableToType", "(", "expressionType", ",", "elementType", ")", "||", "expressionType", ".", "isCompatibleWith", "(", "elementType", ")", ")", "{", "expression", ".", "computeConversion", "(", "scope", ",", "elementType", ",", "expressionType", ")", ";", "}", "else", "if", "(", "isBoxingCompatible", "(", "expressionType", ",", "elementType", ",", "expression", ",", "scope", ")", ")", "{", "expression", ".", "computeConversion", "(", "scope", ",", "elementType", ",", "expressionType", ")", ";", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "typeMismatchError", "(", "expressionType", ",", "elementType", ",", "expression", ",", "null", ")", ";", "}", "}", "return", "this", ".", "binding", ";", "}", "TypeBinding", "leafElementType", "=", "null", ";", "int", "dim", "=", "1", ";", "if", "(", "this", ".", "expressions", "==", "null", ")", "{", "leafElementType", "=", "scope", ".", "getJavaLangObject", "(", ")", ";", "}", "else", "{", "Expression", "expression", "=", "this", ".", "expressions", "[", "0", "]", ";", "while", "(", "expression", "!=", "null", "&&", "expression", "instanceof", "ArrayInitializer", ")", "{", "dim", "++", ";", "Expression", "[", "]", "subExprs", "=", "(", "(", "ArrayInitializer", ")", "expression", ")", ".", "expressions", ";", "if", "(", "subExprs", "==", "null", ")", "{", "leafElementType", "=", "scope", ".", "getJavaLangObject", "(", ")", ";", "expression", "=", "null", ";", "break", ";", "}", "expression", "=", "(", "(", "ArrayInitializer", ")", "expression", ")", ".", "expressions", "[", "0", "]", ";", "}", "if", "(", "expression", "!=", "null", ")", "{", "leafElementType", "=", "expression", ".", "resolveType", "(", "scope", ")", ";", "}", "for", "(", "int", "i", "=", "1", ",", "length", "=", "this", ".", "expressions", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "expression", "=", "this", ".", "expressions", "[", "i", "]", ";", "if", "(", "expression", "!=", "null", ")", "{", "expression", ".", "resolveType", "(", "scope", ")", ";", "}", "}", "}", "if", "(", "leafElementType", "!=", "null", ")", "{", "this", ".", "resolvedType", "=", "scope", ".", "createArrayType", "(", "leafElementType", ",", "dim", ")", ";", "if", "(", "expectedType", "!=", "null", ")", "scope", ".", "problemReporter", "(", ")", ".", "typeMismatchError", "(", "this", ".", "resolvedType", ",", "expectedType", ",", "this", ",", "null", ")", ";", "}", "return", "null", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "scope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "scope", ")", ")", "{", "if", "(", "this", ".", "expressions", "!=", "null", ")", "{", "int", "expressionsLength", "=", "this", ".", "expressions", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "expressionsLength", ";", "i", "++", ")", "this", ".", "expressions", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "scope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "scope", ")", ";", "}", "}", "</s>" ]
4,242
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "abstract", "class", "Statement", "extends", "ASTNode", "{", "protected", "static", "boolean", "isKnowDeadCodePattern", "(", "Expression", "expression", ")", "{", "if", "(", "expression", "instanceof", "UnaryExpression", ")", "{", "expression", "=", "(", "(", "UnaryExpression", ")", "expression", ")", ".", "expression", ";", "}", "if", "(", "expression", "instanceof", "Reference", ")", "return", "true", ";", "return", "false", ";", "}", "public", "abstract", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", ";", "public", "static", "final", "int", "NOT_COMPLAINED", "=", "0", ";", "public", "static", "final", "int", "COMPLAINED_FAKE_REACHABLE", "=", "1", ";", "public", "static", "final", "int", "COMPLAINED_UNREACHABLE", "=", "2", ";", "protected", "int", "checkAgainstNullAnnotation", "(", "BlockScope", "currentScope", ",", "LocalVariableBinding", "local", ",", "int", "nullStatus", ")", "{", "return", "nullStatus", ";", "}", "public", "void", "branchChainTo", "(", "BranchLabel", "label", ")", "{", "}", "public", "int", "complainIfUnreachable", "(", "FlowInfo", "flowInfo", ",", "BlockScope", "scope", ",", "int", "previousComplaintLevel", ")", "{", "if", "(", "(", "flowInfo", ".", "reachMode", "(", ")", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", ")", "{", "if", "(", "(", "flowInfo", ".", "reachMode", "(", ")", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "!=", "0", ")", "this", ".", "bits", "&=", "~", "ASTNode", ".", "IsReachable", ";", "if", "(", "flowInfo", "==", "FlowInfo", ".", "DEAD_END", ")", "{", "if", "(", "previousComplaintLevel", "<", "COMPLAINED_UNREACHABLE", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unreachableCode", "(", "this", ")", ";", "}", "return", "COMPLAINED_UNREACHABLE", ";", "}", "else", "{", "if", "(", "previousComplaintLevel", "<", "COMPLAINED_FAKE_REACHABLE", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "fakeReachable", "(", "this", ")", ";", "}", "return", "COMPLAINED_FAKE_REACHABLE", ";", "}", "}", "return", "previousComplaintLevel", ";", "}", "public", "void", "generateArguments", "(", "MethodBinding", "binding", ",", "Expression", "[", "]", "arguments", ",", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ")", "{", "if", "(", "binding", ".", "isVarargs", "(", ")", ")", "{", "TypeBinding", "[", "]", "params", "=", "binding", ".", "parameters", ";", "int", "paramLength", "=", "params", ".", "length", ";", "int", "varArgIndex", "=", "paramLength", "-", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "varArgIndex", ";", "i", "++", ")", "{", "arguments", "[", "i", "]", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "}", "ArrayBinding", "varArgsType", "=", "(", "ArrayBinding", ")", "params", "[", "varArgIndex", "]", ";", "ArrayBinding", "codeGenVarArgsType", "=", "(", "ArrayBinding", ")", "binding", ".", "parameters", "[", "varArgIndex", "]", ".", "erasure", "(", ")", ";", "int", "elementsTypeID", "=", "varArgsType", ".", "elementsType", "(", ")", ".", "id", ";", "int", "argLength", "=", "arguments", "==", "null", "?", "0", ":", "arguments", ".", "length", ";", "if", "(", "argLength", ">", "paramLength", ")", "{", "codeStream", ".", "generateInlinedValue", "(", "argLength", "-", "varArgIndex", ")", ";", "codeStream", ".", "newArray", "(", "codeGenVarArgsType", ")", ";", "for", "(", "int", "i", "=", "varArgIndex", ";", "i", "<", "argLength", ";", "i", "++", ")", "{", "codeStream", ".", "dup", "(", ")", ";", "codeStream", ".", "generateInlinedValue", "(", "i", "-", "varArgIndex", ")", ";", "arguments", "[", "i", "]", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "arrayAtPut", "(", "elementsTypeID", ",", "false", ")", ";", "}", "}", "else", "if", "(", "argLength", "==", "paramLength", ")", "{", "TypeBinding", "lastType", "=", "arguments", "[", "varArgIndex", "]", ".", "resolvedType", ";", "if", "(", "lastType", "==", "TypeBinding", ".", "NULL", "||", "(", "varArgsType", ".", "dimensions", "(", ")", "==", "lastType", ".", "dimensions", "(", ")", "&&", "lastType", ".", "isCompatibleWith", "(", "varArgsType", ")", ")", ")", "{", "arguments", "[", "varArgIndex", "]", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "}", "else", "{", "codeStream", ".", "generateInlinedValue", "(", "1", ")", ";", "codeStream", ".", "newArray", "(", "codeGenVarArgsType", ")", ";", "codeStream", ".", "dup", "(", ")", ";", "codeStream", ".", "generateInlinedValue", "(", "0", ")", ";", "arguments", "[", "varArgIndex", "]", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "codeStream", ".", "arrayAtPut", "(", "elementsTypeID", ",", "false", ")", ";", "}", "}", "else", "{", "codeStream", ".", "generateInlinedValue", "(", "0", ")", ";", "codeStream", ".", "newArray", "(", "codeGenVarArgsType", ")", ";", "}", "}", "else", "if", "(", "arguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "arguments", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "arguments", "[", "i", "]", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "}", "}", "public", "abstract", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ")", ";", "protected", "boolean", "isBoxingCompatible", "(", "TypeBinding", "expressionType", ",", "TypeBinding", "targetType", ",", "Expression", "expression", ",", "Scope", "scope", ")", "{", "if", "(", "scope", ".", "isBoxingCompatibleWith", "(", "expressionType", ",", "targetType", ")", ")", "return", "true", ";", "return", "expressionType", ".", "isBaseType", "(", ")", "&&", "!", "targetType", ".", "isBaseType", "(", ")", "&&", "!", "targetType", ".", "isTypeVariable", "(", ")", "&&", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ".", "JDK1_5", "&&", "expression", ".", "isConstantValueOfTypeAssignableToType", "(", "expressionType", ",", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "targetType", ")", ")", ";", "}", "public", "boolean", "isEmptyBlock", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isValidJavaStatement", "(", ")", "{", "return", "true", ";", "}", "public", "StringBuffer", "print", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "return", "printStatement", "(", "indent", ",", "output", ")", ";", "}", "public", "abstract", "StringBuffer", "printStatement", "(", "int", "indent", ",", "StringBuffer", "output", ")", ";", "public", "abstract", "void", "resolve", "(", "BlockScope", "scope", ")", ";", "public", "Constant", "resolveCase", "(", "BlockScope", "scope", ",", "TypeBinding", "testType", ",", "SwitchStatement", "switchStatement", ")", "{", "resolve", "(", "scope", ")", ";", "return", "Constant", ".", "NotAConstant", ";", "}", "public", "TypeBinding", "expectedType", "(", ")", "{", "return", "null", ";", "}", "}", "</s>" ]
4,243
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "*", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "class", "TryStatement", "extends", "SubRoutineStatement", "{", "static", "final", "char", "[", "]", "SECRET_RETURN_ADDRESS_NAME", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "static", "final", "char", "[", "]", "SECRET_ANY_HANDLER_NAME", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "static", "final", "char", "[", "]", "SECRET_PRIMARY_EXCEPTION_VARIABLE_NAME", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "static", "final", "char", "[", "]", "SECRET_CAUGHT_THROWABLE_VARIABLE_NAME", "=", "\"\"", ".", "toCharArray", "(", ")", ";", "static", "final", "char", "[", "]", "SECRET_RETURN_VALUE_NAME", "=", "\"", "returnValue\"", ".", "toCharArray", "(", ")", ";", "private", "static", "LocalDeclaration", "[", "]", "NO_RESOURCES", "=", "new", "LocalDeclaration", "[", "0", "]", ";", "public", "LocalDeclaration", "[", "]", "resources", "=", "NO_RESOURCES", ";", "public", "Block", "tryBlock", ";", "public", "Block", "[", "]", "catchBlocks", ";", "public", "Argument", "[", "]", "catchArguments", ";", "public", "Block", "finallyBlock", ";", "BlockScope", "scope", ";", "public", "UnconditionalFlowInfo", "subRoutineInits", ";", "ReferenceBinding", "[", "]", "caughtExceptionTypes", ";", "boolean", "[", "]", "catchExits", ";", "BranchLabel", "subRoutineStartLabel", ";", "public", "LocalVariableBinding", "anyExceptionVariable", ",", "returnAddressVariable", ",", "secretReturnValue", ";", "ExceptionLabel", "[", "]", "declaredExceptionLabels", ";", "private", "Object", "[", "]", "reusableJSRTargets", ";", "private", "BranchLabel", "[", "]", "reusableJSRSequenceStartLabels", ";", "private", "int", "[", "]", "reusableJSRStateIndexes", ";", "private", "int", "reusableJSRTargetsCount", "=", "0", ";", "private", "static", "final", "int", "NO_FINALLY", "=", "0", ";", "private", "static", "final", "int", "FINALLY_SUBROUTINE", "=", "1", ";", "private", "static", "final", "int", "FINALLY_DOES_NOT_COMPLETE", "=", "2", ";", "private", "static", "final", "int", "FINALLY_INLINE", "=", "3", ";", "int", "mergedInitStateIndex", "=", "-", "1", ";", "int", "preTryInitStateIndex", "=", "-", "1", ";", "int", "postTryInitStateIndex", "=", "-", "1", ";", "int", "[", "]", "postResourcesInitStateIndexes", ";", "int", "naturalExitMergeInitStateIndex", "=", "-", "1", ";", "int", "[", "]", "catchExitInitStateIndexes", ";", "private", "LocalVariableBinding", "primaryExceptionVariable", ";", "private", "LocalVariableBinding", "caughtThrowableVariable", ";", "private", "ExceptionLabel", "[", "]", "resourceExceptionLabels", ";", "private", "int", "[", "]", "caughtExceptionsCatchBlocks", ";", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "this", ".", "preTryInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "flowInfo", ")", ";", "if", "(", "this", ".", "anyExceptionVariable", "!=", "null", ")", "{", "this", ".", "anyExceptionVariable", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "}", "if", "(", "this", ".", "primaryExceptionVariable", "!=", "null", ")", "{", "this", ".", "primaryExceptionVariable", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "}", "if", "(", "this", ".", "caughtThrowableVariable", "!=", "null", ")", "{", "this", ".", "caughtThrowableVariable", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "}", "if", "(", "this", ".", "returnAddressVariable", "!=", "null", ")", "{", "this", ".", "returnAddressVariable", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "}", "int", "resourcesLength", "=", "this", ".", "resources", ".", "length", ";", "if", "(", "resourcesLength", ">", "0", ")", "{", "this", ".", "postResourcesInitStateIndexes", "=", "new", "int", "[", "resourcesLength", "]", ";", "}", "if", "(", "this", ".", "subRoutineStartLabel", "==", "null", ")", "{", "ExceptionHandlingFlowContext", "handlingContext", "=", "new", "ExceptionHandlingFlowContext", "(", "flowContext", ",", "this", ",", "this", ".", "caughtExceptionTypes", ",", "this", ".", "caughtExceptionsCatchBlocks", ",", "this", ".", "catchArguments", ",", "null", ",", "this", ".", "scope", ",", "flowInfo", ".", "unconditionalInits", "(", ")", ")", ";", "handlingContext", ".", "initsOnFinally", "=", "new", "NullInfoRegistry", "(", "flowInfo", ".", "unconditionalInits", "(", ")", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resourcesLength", ";", "i", "++", ")", "{", "flowInfo", "=", "this", ".", "resources", "[", "i", "]", ".", "analyseCode", "(", "currentScope", ",", "handlingContext", ",", "flowInfo", ".", "copy", "(", ")", ")", ";", "this", ".", "postResourcesInitStateIndexes", "[", "i", "]", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "flowInfo", ")", ";", "this", ".", "resources", "[", "i", "]", ".", "binding", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "TypeBinding", "type", "=", "this", ".", "resources", "[", "i", "]", ".", "binding", ".", "type", ";", "if", "(", "type", "!=", "null", "&&", "type", ".", "isValidBinding", "(", ")", ")", "{", "ReferenceBinding", "binding", "=", "(", "ReferenceBinding", ")", "type", ";", "MethodBinding", "closeMethod", "=", "binding", ".", "getExactMethod", "(", "ConstantPool", ".", "Close", ",", "new", "TypeBinding", "[", "0", "]", ",", "this", ".", "scope", ".", "compilationUnitScope", "(", ")", ")", ";", "if", "(", "closeMethod", "!=", "null", "&&", "closeMethod", ".", "returnType", ".", "id", "==", "TypeIds", ".", "T_void", ")", "{", "ReferenceBinding", "[", "]", "thrownExceptions", "=", "closeMethod", ".", "thrownExceptions", ";", "for", "(", "int", "j", "=", "0", ",", "length", "=", "thrownExceptions", ".", "length", ";", "j", "<", "length", ";", "j", "++", ")", "{", "handlingContext", ".", "checkExceptionHandlers", "(", "thrownExceptions", "[", "j", "]", ",", "this", ".", "resources", "[", "i", "]", ",", "flowInfo", ",", "currentScope", ",", "true", ")", ";", "}", "}", "}", "}", "FlowInfo", "tryInfo", ";", "if", "(", "this", ".", "tryBlock", ".", "isEmptyBlock", "(", ")", ")", "{", "tryInfo", "=", "flowInfo", ";", "}", "else", "{", "tryInfo", "=", "this", ".", "tryBlock", ".", "analyseCode", "(", "currentScope", ",", "handlingContext", ",", "flowInfo", ".", "copy", "(", ")", ")", ";", "if", "(", "(", "tryInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "!=", "0", ")", "this", ".", "bits", "|=", "ASTNode", ".", "IsTryBlockExiting", ";", "}", "if", "(", "resourcesLength", ">", "0", ")", "{", "this", ".", "postTryInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "tryInfo", ")", ";", "}", "handlingContext", ".", "complainIfUnusedExceptionHandlers", "(", "this", ".", "scope", ",", "this", ")", ";", "if", "(", "this", ".", "catchArguments", "!=", "null", ")", "{", "int", "catchCount", ";", "this", ".", "catchExits", "=", "new", "boolean", "[", "catchCount", "=", "this", ".", "catchBlocks", ".", "length", "]", ";", "this", ".", "catchExitInitStateIndexes", "=", "new", "int", "[", "catchCount", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "catchCount", ";", "i", "++", ")", "{", "FlowInfo", "catchInfo", ";", "if", "(", "isUncheckedCatchBlock", "(", "i", ")", ")", "{", "catchInfo", "=", "handlingContext", ".", "initsOnFinally", ".", "mitigateNullInfoOf", "(", "flowInfo", ".", "unconditionalCopy", "(", ")", ".", "addPotentialInitializationsFrom", "(", "handlingContext", ".", "initsOnException", "(", "i", ")", ")", ".", "addPotentialInitializationsFrom", "(", "tryInfo", ")", ".", "addPotentialInitializationsFrom", "(", "handlingContext", ".", "initsOnReturn", ")", ")", ";", "}", "else", "{", "FlowInfo", "initsOnException", "=", "handlingContext", ".", "initsOnException", "(", "i", ")", ";", "catchInfo", "=", "flowInfo", ".", "nullInfoLessUnconditionalCopy", "(", ")", ".", "addPotentialInitializationsFrom", "(", "initsOnException", ")", ".", "addNullInfoFrom", "(", "initsOnException", ")", ".", "addPotentialInitializationsFrom", "(", "tryInfo", ".", "nullInfoLessUnconditionalCopy", "(", ")", ")", ".", "addPotentialInitializationsFrom", "(", "handlingContext", ".", "initsOnReturn", ".", "nullInfoLessUnconditionalCopy", "(", ")", ")", ";", "}", "LocalVariableBinding", "catchArg", "=", "this", ".", "catchArguments", "[", "i", "]", ".", "binding", ";", "catchInfo", ".", "markAsDefinitelyAssigned", "(", "catchArg", ")", ";", "catchInfo", ".", "markAsDefinitelyNonNull", "(", "catchArg", ")", ";", "if", "(", "this", ".", "tryBlock", ".", "statements", "==", "null", "&&", "this", ".", "resources", "==", "NO_RESOURCES", ")", "{", "catchInfo", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", ";", "}", "catchInfo", "=", "this", ".", "catchBlocks", "[", "i", "]", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "catchInfo", ")", ";", "this", ".", "catchExitInitStateIndexes", "[", "i", "]", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "catchInfo", ")", ";", "this", ".", "catchExits", "[", "i", "]", "=", "(", "catchInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "!=", "0", ";", "tryInfo", "=", "tryInfo", ".", "mergedWith", "(", "catchInfo", ".", "unconditionalInits", "(", ")", ")", ";", "}", "}", "this", ".", "mergedInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "tryInfo", ")", ";", "if", "(", "flowContext", ".", "initsOnFinally", "!=", "null", ")", "{", "flowContext", ".", "initsOnFinally", ".", "add", "(", "handlingContext", ".", "initsOnFinally", ")", ";", "}", "return", "tryInfo", ";", "}", "else", "{", "InsideSubRoutineFlowContext", "insideSubContext", ";", "FinallyFlowContext", "finallyContext", ";", "UnconditionalFlowInfo", "subInfo", ";", "insideSubContext", "=", "new", "InsideSubRoutineFlowContext", "(", "flowContext", ",", "this", ")", ";", "subInfo", "=", "this", ".", "finallyBlock", ".", "analyseCode", "(", "currentScope", ",", "finallyContext", "=", "new", "FinallyFlowContext", "(", "flowContext", ",", "this", ".", "finallyBlock", ")", ",", "flowInfo", ".", "nullInfoLessUnconditionalCopy", "(", ")", ")", ".", "unconditionalInits", "(", ")", ";", "if", "(", "subInfo", "==", "FlowInfo", ".", "DEAD_END", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "IsSubRoutineEscaping", ";", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "finallyMustCompleteNormally", "(", "this", ".", "finallyBlock", ")", ";", "}", "this", ".", "subRoutineInits", "=", "subInfo", ";", "ExceptionHandlingFlowContext", "handlingContext", "=", "new", "ExceptionHandlingFlowContext", "(", "insideSubContext", ",", "this", ",", "this", ".", "caughtExceptionTypes", ",", "this", ".", "caughtExceptionsCatchBlocks", ",", "this", ".", "catchArguments", ",", "null", ",", "this", ".", "scope", ",", "flowInfo", ".", "unconditionalInits", "(", ")", ")", ";", "handlingContext", ".", "initsOnFinally", "=", "new", "NullInfoRegistry", "(", "flowInfo", ".", "unconditionalInits", "(", ")", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resourcesLength", ";", "i", "++", ")", "{", "flowInfo", "=", "this", ".", "resources", "[", "i", "]", ".", "analyseCode", "(", "currentScope", ",", "handlingContext", ",", "flowInfo", ".", "copy", "(", ")", ")", ";", "this", ".", "postResourcesInitStateIndexes", "[", "i", "]", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "flowInfo", ")", ";", "this", ".", "resources", "[", "i", "]", ".", "binding", ".", "useFlag", "=", "LocalVariableBinding", ".", "USED", ";", "TypeBinding", "type", "=", "this", ".", "resources", "[", "i", "]", ".", "binding", ".", "type", ";", "if", "(", "type", "!=", "null", "&&", "type", ".", "isValidBinding", "(", ")", ")", "{", "ReferenceBinding", "binding", "=", "(", "ReferenceBinding", ")", "type", ";", "MethodBinding", "closeMethod", "=", "binding", ".", "getExactMethod", "(", "ConstantPool", ".", "Close", ",", "new", "TypeBinding", "[", "0", "]", ",", "this", ".", "scope", ".", "compilationUnitScope", "(", ")", ")", ";", "if", "(", "closeMethod", "!=", "null", "&&", "closeMethod", ".", "returnType", ".", "id", "==", "TypeIds", ".", "T_void", ")", "{", "ReferenceBinding", "[", "]", "thrownExceptions", "=", "closeMethod", ".", "thrownExceptions", ";", "for", "(", "int", "j", "=", "0", ",", "length", "=", "thrownExceptions", ".", "length", ";", "j", "<", "length", ";", "j", "++", ")", "{", "handlingContext", ".", "checkExceptionHandlers", "(", "thrownExceptions", "[", "j", "]", ",", "this", ".", "resources", "[", "i", "]", ",", "flowInfo", ",", "currentScope", ",", "true", ")", ";", "}", "}", "}", "}", "FlowInfo", "tryInfo", ";", "if", "(", "this", ".", "tryBlock", ".", "isEmptyBlock", "(", ")", ")", "{", "tryInfo", "=", "flowInfo", ";", "}", "else", "{", "tryInfo", "=", "this", ".", "tryBlock", ".", "analyseCode", "(", "currentScope", ",", "handlingContext", ",", "flowInfo", ".", "copy", "(", ")", ")", ";", "if", "(", "(", "tryInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "!=", "0", ")", "this", ".", "bits", "|=", "ASTNode", ".", "IsTryBlockExiting", ";", "}", "if", "(", "resourcesLength", ">", "0", ")", "{", "this", ".", "postTryInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "tryInfo", ")", ";", "}", "handlingContext", ".", "complainIfUnusedExceptionHandlers", "(", "this", ".", "scope", ",", "this", ")", ";", "if", "(", "this", ".", "catchArguments", "!=", "null", ")", "{", "int", "catchCount", ";", "this", ".", "catchExits", "=", "new", "boolean", "[", "catchCount", "=", "this", ".", "catchBlocks", ".", "length", "]", ";", "this", ".", "catchExitInitStateIndexes", "=", "new", "int", "[", "catchCount", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "catchCount", ";", "i", "++", ")", "{", "FlowInfo", "catchInfo", ";", "if", "(", "isUncheckedCatchBlock", "(", "i", ")", ")", "{", "catchInfo", "=", "handlingContext", ".", "initsOnFinally", ".", "mitigateNullInfoOf", "(", "flowInfo", ".", "unconditionalCopy", "(", ")", ".", "addPotentialInitializationsFrom", "(", "handlingContext", ".", "initsOnException", "(", "i", ")", ")", ".", "addPotentialInitializationsFrom", "(", "tryInfo", ")", ".", "addPotentialInitializationsFrom", "(", "handlingContext", ".", "initsOnReturn", ")", ")", ";", "}", "else", "{", "FlowInfo", "initsOnException", "=", "handlingContext", ".", "initsOnException", "(", "i", ")", ";", "catchInfo", "=", "flowInfo", ".", "nullInfoLessUnconditionalCopy", "(", ")", ".", "addPotentialInitializationsFrom", "(", "initsOnException", ")", ".", "addNullInfoFrom", "(", "initsOnException", ")", ".", "addPotentialInitializationsFrom", "(", "tryInfo", ".", "nullInfoLessUnconditionalCopy", "(", ")", ")", ".", "addPotentialInitializationsFrom", "(", "handlingContext", ".", "initsOnReturn", ".", "nullInfoLessUnconditionalCopy", "(", ")", ")", ";", "}", "LocalVariableBinding", "catchArg", "=", "this", ".", "catchArguments", "[", "i", "]", ".", "binding", ";", "catchInfo", ".", "markAsDefinitelyAssigned", "(", "catchArg", ")", ";", "catchInfo", ".", "markAsDefinitelyNonNull", "(", "catchArg", ")", ";", "if", "(", "this", ".", "tryBlock", ".", "statements", "==", "null", "&&", "this", ".", "resources", "==", "NO_RESOURCES", ")", "{", "catchInfo", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", ";", "}", "catchInfo", "=", "this", ".", "catchBlocks", "[", "i", "]", ".", "analyseCode", "(", "currentScope", ",", "insideSubContext", ",", "catchInfo", ")", ";", "this", ".", "catchExitInitStateIndexes", "[", "i", "]", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "catchInfo", ")", ";", "this", ".", "catchExits", "[", "i", "]", "=", "(", "catchInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "!=", "0", ";", "tryInfo", "=", "tryInfo", ".", "mergedWith", "(", "catchInfo", ".", "unconditionalInits", "(", ")", ")", ";", "}", "}", "finallyContext", ".", "complainOnDeferredChecks", "(", "handlingContext", ".", "initsOnFinally", ".", "mitigateNullInfoOf", "(", "(", "tryInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", "?", "flowInfo", ".", "unconditionalCopy", "(", ")", ".", "addPotentialInitializationsFrom", "(", "tryInfo", ")", ".", "addPotentialInitializationsFrom", "(", "insideSubContext", ".", "initsOnReturn", ")", ":", "insideSubContext", ".", "initsOnReturn", ")", ",", "currentScope", ")", ";", "if", "(", "flowContext", ".", "initsOnFinally", "!=", "null", ")", "{", "flowContext", ".", "initsOnFinally", ".", "add", "(", "handlingContext", ".", "initsOnFinally", ")", ";", "}", "this", ".", "naturalExitMergeInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "tryInfo", ")", ";", "if", "(", "subInfo", "==", "FlowInfo", ".", "DEAD_END", ")", "{", "this", ".", "mergedInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "subInfo", ")", ";", "return", "subInfo", ";", "}", "else", "{", "FlowInfo", "mergedInfo", "=", "tryInfo", ".", "addInitializationsFrom", "(", "subInfo", ")", ";", "this", ".", "mergedInitStateIndex", "=", "currentScope", ".", "methodScope", "(", ")", ".", "recordInitializationStates", "(", "mergedInfo", ")", ";", "return", "mergedInfo", ";", "}", "}", "}", "private", "boolean", "isUncheckedCatchBlock", "(", "int", "catchBlock", ")", "{", "if", "(", "this", ".", "caughtExceptionsCatchBlocks", "==", "null", ")", "{", "return", "this", ".", "caughtExceptionTypes", "[", "catchBlock", "]", ".", "isUncheckedException", "(", "true", ")", ";", "}", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "caughtExceptionsCatchBlocks", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "this", ".", "caughtExceptionsCatchBlocks", "[", "i", "]", "==", "catchBlock", ")", "{", "if", "(", "this", ".", "caughtExceptionTypes", "[", "i", "]", ".", "isUncheckedException", "(", "true", ")", ")", "{", "return", "true", ";", "}", "}", "}", "return", "false", ";", "}", "public", "ExceptionLabel", "enterAnyExceptionHandler", "(", "CodeStream", "codeStream", ")", "{", "if", "(", "this", ".", "subRoutineStartLabel", "==", "null", ")", "return", "null", ";", "return", "super", ".", "enterAnyExceptionHandler", "(", "codeStream", ")", ";", "}", "public", "void", "enterDeclaredExceptionHandlers", "(", "CodeStream", "codeStream", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "declaredExceptionLabels", "==", "null", "?", "0", ":", "this", ".", "declaredExceptionLabels", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "declaredExceptionLabels", "[", "i", "]", ".", "placeStart", "(", ")", ";", "}", "}", "public", "void", "exitAnyExceptionHandler", "(", ")", "{", "if", "(", "this", ".", "subRoutineStartLabel", "==", "null", ")", "return", ";", "super", ".", "exitAnyExceptionHandler", "(", ")", ";", "}", "public", "void", "exitDeclaredExceptionHandlers", "(", "CodeStream", "codeStream", ")", "{", "for", "(", "int", "i", "=", "0", ",", "length", "=", "this", ".", "declaredExceptionLabels", "==", "null", "?", "0", ":", "this", ".", "declaredExceptionLabels", ".", "length", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "declaredExceptionLabels", "[", "i", "]", ".", "placeEnd", "(", ")", ";", "}", "}", "private", "int", "finallyMode", "(", ")", "{", "if", "(", "this", ".", "subRoutineStartLabel", "==", "null", ")", "{", "return", "NO_FINALLY", ";", "}", "else", "if", "(", "isSubRoutineEscaping", "(", ")", ")", "{", "return", "FINALLY_DOES_NOT_COMPLETE", ";", "}", "else", "if", "(", "this", ".", "scope", ".", "compilerOptions", "(", ")", ".", "inlineJsrBytecode", ")", "{", "return", "FINALLY_INLINE", ";", "}", "else", "{", "return", "FINALLY_SUBROUTINE", ";", "}", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsReachable", ")", "==", "0", ")", "{", "return", ";", "}", "boolean", "isStackMapFrameCodeStream", "=", "codeStream", "instanceof", "StackMapFrameCodeStream", ";", "this", ".", "anyExceptionLabel", "=", "null", ";", "this", ".", "reusableJSRTargets", "=", "null", ";", "this", ".", "reusableJSRSequenceStartLabels", "=", "null", ";", "this", ".", "reusableJSRTargetsCount", "=", "0", ";", "int", "pc", "=", "codeStream", ".", "position", ";", "int", "finallyMode", "=", "finallyMode", "(", ")", ";", "boolean", "requiresNaturalExit", "=", "false", ";", "int", "maxCatches", "=", "this", ".", "catchArguments", "==", "null", "?", "0", ":", "this", ".", "catchArguments", ".", "length", ";", "ExceptionLabel", "[", "]", "exceptionLabels", ";", "if", "(", "maxCatches", ">", "0", ")", "{", "exceptionLabels", "=", "new", "ExceptionLabel", "[", "maxCatches", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "maxCatches", ";", "i", "++", ")", "{", "Argument", "argument", "=", "this", ".", "catchArguments", "[", "i", "]", ";", "ExceptionLabel", "exceptionLabel", "=", "null", ";", "if", "(", "(", "argument", ".", "binding", ".", "tagBits", "&", "TagBits", ".", "MultiCatchParameter", ")", "!=", "0", ")", "{", "MultiCatchExceptionLabel", "multiCatchExceptionLabel", "=", "new", "MultiCatchExceptionLabel", "(", "codeStream", ",", "argument", ".", "binding", ".", "type", ")", ";", "multiCatchExceptionLabel", ".", "initialize", "(", "(", "UnionTypeReference", ")", "argument", ".", "type", ")", ";", "exceptionLabel", "=", "multiCatchExceptionLabel", ";", "}", "else", "{", "exceptionLabel", "=", "new", "ExceptionLabel", "(", "codeStream", ",", "argument", ".", "binding", ".", "type", ")", ";", "}", "exceptionLabel", ".", "placeStart", "(", ")", ";", "exceptionLabels", "[", "i", "]", "=", "exceptionLabel", ";", "}", "}", "else", "{", "exceptionLabels", "=", "null", ";", "}", "if", "(", "this", ".", "subRoutineStartLabel", "!=", "null", ")", "{", "this", ".", "subRoutineStartLabel", ".", "initialize", "(", "codeStream", ")", ";", "enterAnyExceptionHandler", "(", "codeStream", ")", ";", "}", "try", "{", "this", ".", "declaredExceptionLabels", "=", "exceptionLabels", ";", "int", "resourceCount", "=", "this", ".", "resources", ".", "length", ";", "if", "(", "resourceCount", ">", "0", ")", "{", "this", ".", "resourceExceptionLabels", "=", "new", "ExceptionLabel", "[", "resourceCount", "+", "1", "]", ";", "codeStream", ".", "aconst_null", "(", ")", ";", "codeStream", ".", "store", "(", "this", ".", "primaryExceptionVariable", ",", "false", ")", ";", "codeStream", ".", "addVariable", "(", "this", ".", "primaryExceptionVariable", ")", ";", "codeStream", ".", "aconst_null", "(", ")", ";", "codeStream", ".", "store", "(", "this", ".", "caughtThrowableVariable", ",", "false", ")", ";", "codeStream", ".", "addVariable", "(", "this", ".", "caughtThrowableVariable", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "resourceCount", ";", "i", "++", ")", "{", "this", ".", "resourceExceptionLabels", "[", "i", "]", "=", "new", "ExceptionLabel", "(", "codeStream", ",", "null", ")", ";", "this", ".", "resourceExceptionLabels", "[", "i", "]", ".", "placeStart", "(", ")", ";", "if", "(", "i", "<", "resourceCount", ")", "{", "this", ".", "resources", "[", "i", "]", ".", "generateCode", "(", "this", ".", "scope", ",", "codeStream", ")", ";", "}", "}", "}", "this", ".", "tryBlock", ".", "generateCode", "(", "this", ".", "scope", ",", "codeStream", ")", ";", "if", "(", "resourceCount", ">", "0", ")", "{", "for", "(", "int", "i", "=", "resourceCount", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "BranchLabel", "exitLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "this", ".", "resourceExceptionLabels", "[", "i", "]", ".", "placeEnd", "(", ")", ";", "LocalVariableBinding", "localVariable", "=", "i", ">", "0", "?", "this", ".", "resources", "[", "i", "-", "1", "]", ".", "binding", ":", "null", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsTryBlockExiting", ")", "==", "0", ")", "{", "if", "(", "i", ">", "0", ")", "{", "int", "invokeCloseStartPc", "=", "codeStream", ".", "position", ";", "if", "(", "this", ".", "postTryInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "postTryInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "postTryInitStateIndex", ")", ";", "}", "codeStream", ".", "load", "(", "localVariable", ")", ";", "codeStream", ".", "ifnull", "(", "exitLabel", ")", ";", "codeStream", ".", "load", "(", "localVariable", ")", ";", "codeStream", ".", "invokeAutoCloseableClose", "(", "localVariable", ".", "type", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "invokeCloseStartPc", ",", "this", ".", "tryBlock", ".", "sourceEnd", ")", ";", "}", "codeStream", ".", "goto_", "(", "exitLabel", ")", ";", "}", "if", "(", "i", ">", "0", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "postResourcesInitStateIndexes", "[", "i", "-", "1", "]", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "postResourcesInitStateIndexes", "[", "i", "-", "1", "]", ")", ";", "}", "codeStream", ".", "pushExceptionOnStack", "(", "this", ".", "scope", ".", "getJavaLangThrowable", "(", ")", ")", ";", "this", ".", "resourceExceptionLabels", "[", "i", "]", ".", "place", "(", ")", ";", "if", "(", "i", "==", "resourceCount", ")", "{", "codeStream", ".", "store", "(", "this", ".", "primaryExceptionVariable", ",", "false", ")", ";", "}", "else", "{", "BranchLabel", "elseLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ",", "postElseLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "codeStream", ".", "store", "(", "this", ".", "caughtThrowableVariable", ",", "false", ")", ";", "codeStream", ".", "load", "(", "this", ".", "primaryExceptionVariable", ")", ";", "codeStream", ".", "ifnonnull", "(", "elseLabel", ")", ";", "codeStream", ".", "load", "(", "this", ".", "caughtThrowableVariable", ")", ";", "codeStream", ".", "store", "(", "this", ".", "primaryExceptionVariable", ",", "false", ")", ";", "codeStream", ".", "goto_", "(", "postElseLabel", ")", ";", "elseLabel", ".", "place", "(", ")", ";", "codeStream", ".", "load", "(", "this", ".", "primaryExceptionVariable", ")", ";", "codeStream", ".", "load", "(", "this", ".", "caughtThrowableVariable", ")", ";", "codeStream", ".", "if_acmpeq", "(", "postElseLabel", ")", ";", "codeStream", ".", "load", "(", "this", ".", "primaryExceptionVariable", ")", ";", "codeStream", ".", "load", "(", "this", ".", "caughtThrowableVariable", ")", ";", "codeStream", ".", "invokeThrowableAddSuppressed", "(", ")", ";", "postElseLabel", ".", "place", "(", ")", ";", "}", "if", "(", "i", ">", "0", ")", "{", "BranchLabel", "postCloseLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "int", "invokeCloseStartPc", "=", "codeStream", ".", "position", ";", "codeStream", ".", "load", "(", "localVariable", ")", ";", "codeStream", ".", "ifnull", "(", "postCloseLabel", ")", ";", "codeStream", ".", "load", "(", "localVariable", ")", ";", "codeStream", ".", "invokeAutoCloseableClose", "(", "localVariable", ".", "type", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "invokeCloseStartPc", ",", "this", ".", "tryBlock", ".", "sourceEnd", ")", ";", "codeStream", ".", "removeVariable", "(", "localVariable", ")", ";", "postCloseLabel", ".", "place", "(", ")", ";", "}", "codeStream", ".", "load", "(", "this", ".", "primaryExceptionVariable", ")", ";", "codeStream", ".", "athrow", "(", ")", ";", "exitLabel", ".", "place", "(", ")", ";", "}", "codeStream", ".", "removeVariable", "(", "this", ".", "primaryExceptionVariable", ")", ";", "codeStream", ".", "removeVariable", "(", "this", ".", "caughtThrowableVariable", ")", ";", "}", "}", "finally", "{", "this", ".", "declaredExceptionLabels", "=", "null", ";", "}", "boolean", "tryBlockHasSomeCode", "=", "codeStream", ".", "position", "!=", "pc", ";", "if", "(", "tryBlockHasSomeCode", ")", "{", "BranchLabel", "naturalExitLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "BranchLabel", "postCatchesFinallyLabel", "=", "null", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "maxCatches", ";", "i", "++", ")", "{", "exceptionLabels", "[", "i", "]", ".", "placeEnd", "(", ")", ";", "}", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsTryBlockExiting", ")", "==", "0", ")", "{", "int", "position", "=", "codeStream", ".", "position", ";", "switch", "(", "finallyMode", ")", "{", "case", "FINALLY_SUBROUTINE", ":", "case", "FINALLY_INLINE", ":", "requiresNaturalExit", "=", "true", ";", "if", "(", "this", ".", "naturalExitMergeInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "}", "codeStream", ".", "goto_", "(", "naturalExitLabel", ")", ";", "break", ";", "case", "NO_FINALLY", ":", "if", "(", "this", ".", "naturalExitMergeInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "}", "codeStream", ".", "goto_", "(", "naturalExitLabel", ")", ";", "break", ";", "case", "FINALLY_DOES_NOT_COMPLETE", ":", "codeStream", ".", "goto_", "(", "this", ".", "subRoutineStartLabel", ")", ";", "break", ";", "}", "codeStream", ".", "updateLastRecordedEndPC", "(", "this", ".", "tryBlock", ".", "scope", ",", "position", ")", ";", "}", "exitAnyExceptionHandler", "(", ")", ";", "if", "(", "this", ".", "catchArguments", "!=", "null", ")", "{", "postCatchesFinallyLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "maxCatches", ";", "i", "++", ")", "{", "if", "(", "exceptionLabels", "[", "i", "]", ".", "getCount", "(", ")", "==", "0", ")", "continue", ";", "enterAnyExceptionHandler", "(", "codeStream", ")", ";", "if", "(", "this", ".", "preTryInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "preTryInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "preTryInitStateIndex", ")", ";", "}", "codeStream", ".", "pushExceptionOnStack", "(", "exceptionLabels", "[", "i", "]", ".", "exceptionType", ")", ";", "exceptionLabels", "[", "i", "]", ".", "place", "(", ")", ";", "LocalVariableBinding", "catchVar", ";", "int", "varPC", "=", "codeStream", ".", "position", ";", "if", "(", "(", "catchVar", "=", "this", ".", "catchArguments", "[", "i", "]", ".", "binding", ")", ".", "resolvedPosition", "!=", "-", "1", ")", "{", "codeStream", ".", "store", "(", "catchVar", ",", "false", ")", ";", "catchVar", ".", "recordInitializationStartPC", "(", "codeStream", ".", "position", ")", ";", "codeStream", ".", "addVisibleLocalVariable", "(", "catchVar", ")", ";", "}", "else", "{", "codeStream", ".", "pop", "(", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "varPC", ",", "this", ".", "catchArguments", "[", "i", "]", ".", "sourceStart", ")", ";", "this", ".", "catchBlocks", "[", "i", "]", ".", "generateCode", "(", "this", ".", "scope", ",", "codeStream", ")", ";", "exitAnyExceptionHandler", "(", ")", ";", "if", "(", "!", "this", ".", "catchExits", "[", "i", "]", ")", "{", "switch", "(", "finallyMode", ")", "{", "case", "FINALLY_INLINE", ":", "if", "(", "isStackMapFrameCodeStream", ")", "{", "(", "(", "StackMapFrameCodeStream", ")", "codeStream", ")", ".", "pushStateIndex", "(", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "}", "if", "(", "this", ".", "catchExitInitStateIndexes", "[", "i", "]", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "catchExitInitStateIndexes", "[", "i", "]", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "catchExitInitStateIndexes", "[", "i", "]", ")", ";", "}", "this", ".", "finallyBlock", ".", "generateCode", "(", "this", ".", "scope", ",", "codeStream", ")", ";", "codeStream", ".", "goto_", "(", "postCatchesFinallyLabel", ")", ";", "if", "(", "isStackMapFrameCodeStream", ")", "{", "(", "(", "StackMapFrameCodeStream", ")", "codeStream", ")", ".", "popStateIndex", "(", ")", ";", "}", "break", ";", "case", "FINALLY_SUBROUTINE", ":", "requiresNaturalExit", "=", "true", ";", "case", "NO_FINALLY", ":", "if", "(", "this", ".", "naturalExitMergeInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "}", "codeStream", ".", "goto_", "(", "naturalExitLabel", ")", ";", "break", ";", "case", "FINALLY_DOES_NOT_COMPLETE", ":", "codeStream", ".", "goto_", "(", "this", ".", "subRoutineStartLabel", ")", ";", "break", ";", "}", "}", "}", "}", "ExceptionLabel", "naturalExitExceptionHandler", "=", "requiresNaturalExit", "&&", "(", "finallyMode", "==", "FINALLY_SUBROUTINE", ")", "?", "new", "ExceptionLabel", "(", "codeStream", ",", "null", ")", ":", "null", ";", "int", "finallySequenceStartPC", "=", "codeStream", ".", "position", ";", "if", "(", "this", ".", "subRoutineStartLabel", "!=", "null", "&&", "this", ".", "anyExceptionLabel", ".", "getCount", "(", ")", "!=", "0", ")", "{", "codeStream", ".", "pushExceptionOnStack", "(", "this", ".", "scope", ".", "getJavaLangThrowable", "(", ")", ")", ";", "if", "(", "this", ".", "preTryInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "preTryInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "preTryInitStateIndex", ")", ";", "}", "placeAllAnyExceptionHandler", "(", ")", ";", "if", "(", "naturalExitExceptionHandler", "!=", "null", ")", "naturalExitExceptionHandler", ".", "place", "(", ")", ";", "switch", "(", "finallyMode", ")", "{", "case", "FINALLY_SUBROUTINE", ":", "codeStream", ".", "store", "(", "this", ".", "anyExceptionVariable", ",", "false", ")", ";", "codeStream", ".", "jsr", "(", "this", ".", "subRoutineStartLabel", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "finallySequenceStartPC", ",", "this", ".", "finallyBlock", ".", "sourceStart", ")", ";", "int", "position", "=", "codeStream", ".", "position", ";", "codeStream", ".", "throwAnyException", "(", "this", ".", "anyExceptionVariable", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "position", ",", "this", ".", "finallyBlock", ".", "sourceEnd", ")", ";", "this", ".", "subRoutineStartLabel", ".", "place", "(", ")", ";", "codeStream", ".", "pushExceptionOnStack", "(", "this", ".", "scope", ".", "getJavaLangThrowable", "(", ")", ")", ";", "position", "=", "codeStream", ".", "position", ";", "codeStream", ".", "store", "(", "this", ".", "returnAddressVariable", ",", "false", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "position", ",", "this", ".", "finallyBlock", ".", "sourceStart", ")", ";", "this", ".", "finallyBlock", ".", "generateCode", "(", "this", ".", "scope", ",", "codeStream", ")", ";", "position", "=", "codeStream", ".", "position", ";", "codeStream", ".", "ret", "(", "this", ".", "returnAddressVariable", ".", "resolvedPosition", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "position", ",", "this", ".", "finallyBlock", ".", "sourceEnd", ")", ";", "break", ";", "case", "FINALLY_INLINE", ":", "codeStream", ".", "store", "(", "this", ".", "anyExceptionVariable", ",", "false", ")", ";", "codeStream", ".", "addVariable", "(", "this", ".", "anyExceptionVariable", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "finallySequenceStartPC", ",", "this", ".", "finallyBlock", ".", "sourceStart", ")", ";", "this", ".", "finallyBlock", ".", "generateCode", "(", "currentScope", ",", "codeStream", ")", ";", "position", "=", "codeStream", ".", "position", ";", "codeStream", ".", "throwAnyException", "(", "this", ".", "anyExceptionVariable", ")", ";", "codeStream", ".", "removeVariable", "(", "this", ".", "anyExceptionVariable", ")", ";", "if", "(", "this", ".", "preTryInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "preTryInitStateIndex", ")", ";", "}", "this", ".", "subRoutineStartLabel", ".", "place", "(", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "position", ",", "this", ".", "finallyBlock", ".", "sourceEnd", ")", ";", "break", ";", "case", "FINALLY_DOES_NOT_COMPLETE", ":", "codeStream", ".", "pop", "(", ")", ";", "this", ".", "subRoutineStartLabel", ".", "place", "(", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "finallySequenceStartPC", ",", "this", ".", "finallyBlock", ".", "sourceStart", ")", ";", "this", ".", "finallyBlock", ".", "generateCode", "(", "this", ".", "scope", ",", "codeStream", ")", ";", "break", ";", "}", "if", "(", "requiresNaturalExit", ")", "{", "switch", "(", "finallyMode", ")", "{", "case", "FINALLY_SUBROUTINE", ":", "naturalExitLabel", ".", "place", "(", ")", ";", "int", "position", "=", "codeStream", ".", "position", ";", "naturalExitExceptionHandler", ".", "placeStart", "(", ")", ";", "codeStream", ".", "jsr", "(", "this", ".", "subRoutineStartLabel", ")", ";", "naturalExitExceptionHandler", ".", "placeEnd", "(", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "position", ",", "this", ".", "finallyBlock", ".", "sourceEnd", ")", ";", "break", ";", "case", "FINALLY_INLINE", ":", "if", "(", "isStackMapFrameCodeStream", ")", "{", "(", "(", "StackMapFrameCodeStream", ")", "codeStream", ")", ".", "pushStateIndex", "(", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "}", "if", "(", "this", ".", "naturalExitMergeInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "naturalExitMergeInitStateIndex", ")", ";", "}", "naturalExitLabel", ".", "place", "(", ")", ";", "this", ".", "finallyBlock", ".", "generateCode", "(", "this", ".", "scope", ",", "codeStream", ")", ";", "if", "(", "postCatchesFinallyLabel", "!=", "null", ")", "{", "position", "=", "codeStream", ".", "position", ";", "codeStream", ".", "goto_", "(", "postCatchesFinallyLabel", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "position", ",", "this", ".", "finallyBlock", ".", "sourceEnd", ")", ";", "}", "if", "(", "isStackMapFrameCodeStream", ")", "{", "(", "(", "StackMapFrameCodeStream", ")", "codeStream", ")", ".", "popStateIndex", "(", ")", ";", "}", "break", ";", "case", "FINALLY_DOES_NOT_COMPLETE", ":", "break", ";", "default", ":", "naturalExitLabel", ".", "place", "(", ")", ";", "break", ";", "}", "}", "if", "(", "postCatchesFinallyLabel", "!=", "null", ")", "{", "postCatchesFinallyLabel", ".", "place", "(", ")", ";", "}", "}", "else", "{", "naturalExitLabel", ".", "place", "(", ")", ";", "}", "}", "else", "{", "if", "(", "this", ".", "subRoutineStartLabel", "!=", "null", ")", "{", "this", ".", "finallyBlock", ".", "generateCode", "(", "this", ".", "scope", ",", "codeStream", ")", ";", "}", "}", "if", "(", "this", ".", "mergedInitStateIndex", "!=", "-", "1", ")", "{", "codeStream", ".", "removeNotDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "codeStream", ".", "addDefinitelyAssignedVariables", "(", "currentScope", ",", "this", ".", "mergedInitStateIndex", ")", ";", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "}", "public", "boolean", "generateSubRoutineInvocation", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "Object", "targetLocation", ",", "int", "stateIndex", ",", "LocalVariableBinding", "secretLocal", ")", "{", "int", "resourceCount", "=", "this", ".", "resources", ".", "length", ";", "if", "(", "resourceCount", ">", "0", ")", "{", "for", "(", "int", "i", "=", "resourceCount", ";", "i", ">", "0", ";", "--", "i", ")", "{", "this", ".", "resourceExceptionLabels", "[", "i", "]", ".", "placeEnd", "(", ")", ";", "LocalVariableBinding", "localVariable", "=", "this", ".", "resources", "[", "i", "-", "1", "]", ".", "binding", ";", "BranchLabel", "exitLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "int", "invokeCloseStartPc", "=", "codeStream", ".", "position", ";", "codeStream", ".", "load", "(", "localVariable", ")", ";", "codeStream", ".", "ifnull", "(", "exitLabel", ")", ";", "codeStream", ".", "load", "(", "localVariable", ")", ";", "codeStream", ".", "invokeAutoCloseableClose", "(", "localVariable", ".", "type", ")", ";", "codeStream", ".", "recordPositionsFrom", "(", "invokeCloseStartPc", ",", "this", ".", "tryBlock", ".", "sourceEnd", ")", ";", "exitLabel", ".", "place", "(", ")", ";", "}", "for", "(", "int", "i", "=", "resourceCount", ";", "i", ">", "0", ";", "--", "i", ")", "{", "this", ".", "resourceExceptionLabels", "[", "i", "]", ".", "placeStart", "(", ")", ";", "}", "}", "boolean", "isStackMapFrameCodeStream", "=", "codeStream", "instanceof", "StackMapFrameCodeStream", ";", "int", "finallyMode", "=", "finallyMode", "(", ")", ";", "switch", "(", "finallyMode", ")", "{", "case", "FINALLY_DOES_NOT_COMPLETE", ":", "codeStream", ".", "goto_", "(", "this", ".", "subRoutineStartLabel", ")", ";", "return", "true", ";", "case", "NO_FINALLY", ":", "exitDeclaredExceptionHandlers", "(", "codeStream", ")", ";", "return", "false", ";", "}", "if", "(", "targetLocation", "!=", "null", ")", "{", "boolean", "reuseTargetLocation", "=", "true", ";", "if", "(", "this", ".", "reusableJSRTargetsCount", ">", "0", ")", "{", "nextReusableTarget", ":", "for", "(", "int", "i", "=", "0", ",", "count", "=", "this", ".", "reusableJSRTargetsCount", ";", "i", "<", "count", ";", "i", "++", ")", "{", "Object", "reusableJSRTarget", "=", "this", ".", "reusableJSRTargets", "[", "i", "]", ";", "differentTarget", ":", "{", "if", "(", "targetLocation", "==", "reusableJSRTarget", ")", "break", "differentTarget", ";", "if", "(", "targetLocation", "instanceof", "Constant", "&&", "reusableJSRTarget", "instanceof", "Constant", "&&", "(", "(", "Constant", ")", "targetLocation", ")", ".", "hasSameValue", "(", "(", "Constant", ")", "reusableJSRTarget", ")", ")", "{", "break", "differentTarget", ";", "}", "continue", "nextReusableTarget", ";", "}", "if", "(", "(", "this", ".", "reusableJSRStateIndexes", "[", "i", "]", "!=", "stateIndex", ")", "&&", "finallyMode", "==", "FINALLY_INLINE", ")", "{", "reuseTargetLocation", "=", "false", ";", "break", "nextReusableTarget", ";", "}", "else", "{", "codeStream", ".", "goto_", "(", "this", ".", "reusableJSRSequenceStartLabels", "[", "i", "]", ")", ";", "return", "true", ";", "}", "}", "}", "else", "{", "this", ".", "reusableJSRTargets", "=", "new", "Object", "[", "3", "]", ";", "this", ".", "reusableJSRSequenceStartLabels", "=", "new", "BranchLabel", "[", "3", "]", ";", "this", ".", "reusableJSRStateIndexes", "=", "new", "int", "[", "3", "]", ";", "}", "if", "(", "reuseTargetLocation", ")", "{", "if", "(", "this", ".", "reusableJSRTargetsCount", "==", "this", ".", "reusableJSRTargets", ".", "length", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "reusableJSRTargets", ",", "0", ",", "this", ".", "reusableJSRTargets", "=", "new", "Object", "[", "2", "*", "this", ".", "reusableJSRTargetsCount", "]", ",", "0", ",", "this", ".", "reusableJSRTargetsCount", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "reusableJSRSequenceStartLabels", ",", "0", ",", "this", ".", "reusableJSRSequenceStartLabels", "=", "new", "BranchLabel", "[", "2", "*", "this", ".", "reusableJSRTargetsCount", "]", ",", "0", ",", "this", ".", "reusableJSRTargetsCount", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "reusableJSRStateIndexes", ",", "0", ",", "this", ".", "reusableJSRStateIndexes", "=", "new", "int", "[", "2", "*", "this", ".", "reusableJSRTargetsCount", "]", ",", "0", ",", "this", ".", "reusableJSRTargetsCount", ")", ";", "}", "this", ".", "reusableJSRTargets", "[", "this", ".", "reusableJSRTargetsCount", "]", "=", "targetLocation", ";", "BranchLabel", "reusableJSRSequenceStartLabel", "=", "new", "BranchLabel", "(", "codeStream", ")", ";", "reusableJSRSequenceStartLabel", ".", "place", "(", ")", ";", "this", ".", "reusableJSRStateIndexes", "[", "this", ".", "reusableJSRTargetsCount", "]", "=", "stateIndex", ";", "this", ".", "reusableJSRSequenceStartLabels", "[", "this", ".", "reusableJSRTargetsCount", "++", "]", "=", "reusableJSRSequenceStartLabel", ";", "}", "}", "if", "(", "finallyMode", "==", "FINALLY_INLINE", ")", "{", "if", "(", "isStackMapFrameCodeStream", ")", "{", "(", "(", "StackMapFrameCodeStream", ")", "codeStream", ")", ".", "pushStateIndex", "(", "stateIndex", ")", ";", "}", "exitAnyExceptionHandler", "(", ")", ";", "exitDeclaredExceptionHandlers", "(", "codeStream", ")", ";", "this", ".", "finallyBlock", ".", "generateCode", "(", "currentScope", ",", "codeStream", ")", ";", "if", "(", "isStackMapFrameCodeStream", ")", "{", "(", "(", "StackMapFrameCodeStream", ")", "codeStream", ")", ".", "popStateIndex", "(", ")", ";", "}", "}", "else", "{", "codeStream", ".", "jsr", "(", "this", ".", "subRoutineStartLabel", ")", ";", "exitAnyExceptionHandler", "(", ")", ";", "exitDeclaredExceptionHandlers", "(", "codeStream", ")", ";", "}", "return", "false", ";", "}", "public", "boolean", "isSubRoutineEscaping", "(", ")", "{", "return", "(", "this", ".", "bits", "&", "ASTNode", ".", "IsSubRoutineEscaping", ")", "!=", "0", ";", "}", "public", "StringBuffer", "printStatement", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "int", "length", "=", "this", ".", "resources", ".", "length", ";", "printIndent", "(", "indent", ",", "output", ")", ".", "append", "(", "\"try\"", "+", "(", "length", "==", "0", "?", "\"n\"", ":", "\"", "(\"", ")", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "resources", "[", "i", "]", ".", "printAsExpression", "(", "0", ",", "output", ")", ";", "if", "(", "i", "!=", "length", "-", "1", ")", "{", "output", ".", "append", "(", "\";n\"", ")", ";", "printIndent", "(", "indent", "+", "2", ",", "output", ")", ";", "}", "}", "if", "(", "length", ">", "0", ")", "{", "output", ".", "append", "(", "\")n\"", ")", ";", "}", "this", ".", "tryBlock", ".", "printStatement", "(", "indent", "+", "1", ",", "output", ")", ";", "if", "(", "this", ".", "catchBlocks", "!=", "null", ")", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "catchBlocks", ".", "length", ";", "i", "++", ")", "{", "output", ".", "append", "(", "'\\n'", ")", ";", "printIndent", "(", "indent", ",", "output", ")", ".", "append", "(", "\"catch", "(\"", ")", ";", "this", ".", "catchArguments", "[", "i", "]", ".", "print", "(", "0", ",", "output", ")", ".", "append", "(", "\")n\"", ")", ";", "this", ".", "catchBlocks", "[", "i", "]", ".", "printStatement", "(", "indent", "+", "1", ",", "output", ")", ";", "}", "if", "(", "this", ".", "finallyBlock", "!=", "null", ")", "{", "output", ".", "append", "(", "'\\n'", ")", ";", "printIndent", "(", "indent", ",", "output", ")", ".", "append", "(", "\"finallyn\"", ")", ";", "this", ".", "finallyBlock", ".", "printStatement", "(", "indent", "+", "1", ",", "output", ")", ";", "}", "return", "output", ";", "}", "public", "void", "resolve", "(", "BlockScope", "upperScope", ")", "{", "this", ".", "scope", "=", "new", "BlockScope", "(", "upperScope", ")", ";", "BlockScope", "finallyScope", "=", "null", ";", "BlockScope", "resourceManagementScope", "=", "null", ";", "int", "resourceCount", "=", "this", ".", "resources", ".", "length", ";", "if", "(", "resourceCount", ">", "0", ")", "{", "resourceManagementScope", "=", "new", "BlockScope", "(", "this", ".", "scope", ")", ";", "this", ".", "primaryExceptionVariable", "=", "new", "LocalVariableBinding", "(", "TryStatement", ".", "SECRET_PRIMARY_EXCEPTION_VARIABLE_NAME", ",", "this", ".", "scope", ".", "getJavaLangThrowable", "(", ")", ",", "ClassFileConstants", ".", "AccDefault", ",", "false", ")", ";", "resourceManagementScope", ".", "addLocalVariable", "(", "this", ".", "primaryExceptionVariable", ")", ";", "this", ".", "primaryExceptionVariable", ".", "setConstant", "(", "Constant", ".", "NotAConstant", ")", ";", "this", ".", "caughtThrowableVariable", "=", "new", "LocalVariableBinding", "(", "TryStatement", ".", "SECRET_CAUGHT_THROWABLE_VARIABLE_NAME", ",", "this", ".", "scope", ".", "getJavaLangThrowable", "(", ")", ",", "ClassFileConstants", ".", "AccDefault", ",", "false", ")", ";", "resourceManagementScope", ".", "addLocalVariable", "(", "this", ".", "caughtThrowableVariable", ")", ";", "this", ".", "caughtThrowableVariable", ".", "setConstant", "(", "Constant", ".", "NotAConstant", ")", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resourceCount", ";", "i", "++", ")", "{", "this", ".", "resources", "[", "i", "]", ".", "resolve", "(", "resourceManagementScope", ")", ";", "LocalVariableBinding", "localVariableBinding", "=", "this", ".", "resources", "[", "i", "]", ".", "binding", ";", "if", "(", "localVariableBinding", "!=", "null", "&&", "localVariableBinding", ".", "isValidBinding", "(", ")", ")", "{", "localVariableBinding", ".", "modifiers", "|=", "ClassFileConstants", ".", "AccFinal", ";", "localVariableBinding", ".", "tagBits", "|=", "TagBits", ".", "IsResource", ";", "TypeBinding", "resourceType", "=", "localVariableBinding", ".", "type", ";", "if", "(", "resourceType", "instanceof", "ReferenceBinding", ")", "{", "if", "(", "resourceType", ".", "findSuperTypeOriginatingFrom", "(", "TypeIds", ".", "T_JavaLangAutoCloseable", ",", "false", ")", "==", "null", "&&", "resourceType", ".", "isValidBinding", "(", ")", ")", "{", "upperScope", ".", "problemReporter", "(", ")", ".", "resourceHasToImplementAutoCloseable", "(", "resourceType", ",", "this", ".", "resources", "[", "i", "]", ".", "type", ")", ";", "localVariableBinding", ".", "type", "=", "new", "ProblemReferenceBinding", "(", "CharOperation", ".", "splitOn", "(", "'.'", ",", "resourceType", ".", "shortReadableName", "(", ")", ")", ",", "null", ",", "ProblemReasons", ".", "InvalidTypeForAutoManagedResource", ")", ";", "}", "}", "else", "if", "(", "resourceType", "!=", "null", ")", "{", "upperScope", ".", "problemReporter", "(", ")", ".", "resourceHasToImplementAutoCloseable", "(", "resourceType", ",", "this", ".", "resources", "[", "i", "]", ".", "type", ")", ";", "localVariableBinding", ".", "type", "=", "new", "ProblemReferenceBinding", "(", "CharOperation", ".", "splitOn", "(", "'.'", ",", "resourceType", ".", "shortReadableName", "(", ")", ")", ",", "null", ",", "ProblemReasons", ".", "InvalidTypeForAutoManagedResource", ")", ";", "}", "}", "}", "BlockScope", "tryScope", "=", "new", "BlockScope", "(", "resourceManagementScope", "!=", "null", "?", "resourceManagementScope", ":", "this", ".", "scope", ")", ";", "if", "(", "this", ".", "finallyBlock", "!=", "null", ")", "{", "if", "(", "this", ".", "finallyBlock", ".", "isEmptyBlock", "(", ")", ")", "{", "if", "(", "(", "this", ".", "finallyBlock", ".", "bits", "&", "ASTNode", ".", "UndocumentedEmptyBlock", ")", "!=", "0", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "undocumentedEmptyBlock", "(", "this", ".", "finallyBlock", ".", "sourceStart", ",", "this", ".", "finallyBlock", ".", "sourceEnd", ")", ";", "}", "}", "else", "{", "finallyScope", "=", "new", "BlockScope", "(", "this", ".", "scope", ",", "false", ")", ";", "MethodScope", "methodScope", "=", "this", ".", "scope", ".", "methodScope", "(", ")", ";", "if", "(", "!", "upperScope", ".", "compilerOptions", "(", ")", ".", "inlineJsrBytecode", ")", "{", "this", ".", "returnAddressVariable", "=", "new", "LocalVariableBinding", "(", "TryStatement", ".", "SECRET_RETURN_ADDRESS_NAME", ",", "upperScope", ".", "getJavaLangObject", "(", ")", ",", "ClassFileConstants", ".", "AccDefault", ",", "false", ")", ";", "finallyScope", ".", "addLocalVariable", "(", "this", ".", "returnAddressVariable", ")", ";", "this", ".", "returnAddressVariable", ".", "setConstant", "(", "Constant", ".", "NotAConstant", ")", ";", "}", "this", ".", "subRoutineStartLabel", "=", "new", "BranchLabel", "(", ")", ";", "this", ".", "anyExceptionVariable", "=", "new", "LocalVariableBinding", "(", "TryStatement", ".", "SECRET_ANY_HANDLER_NAME", ",", "this", ".", "scope", ".", "getJavaLangThrowable", "(", ")", ",", "ClassFileConstants", ".", "AccDefault", ",", "false", ")", ";", "finallyScope", ".", "addLocalVariable", "(", "this", ".", "anyExceptionVariable", ")", ";", "this", ".", "anyExceptionVariable", ".", "setConstant", "(", "Constant", ".", "NotAConstant", ")", ";", "if", "(", "!", "methodScope", ".", "isInsideInitializer", "(", ")", ")", "{", "MethodBinding", "methodBinding", "=", "(", "(", "AbstractMethodDeclaration", ")", "methodScope", ".", "referenceContext", ")", ".", "binding", ";", "if", "(", "methodBinding", "!=", "null", ")", "{", "TypeBinding", "methodReturnType", "=", "methodBinding", ".", "returnType", ";", "if", "(", "methodReturnType", ".", "id", "!=", "TypeIds", ".", "T_void", ")", "{", "this", ".", "secretReturnValue", "=", "new", "LocalVariableBinding", "(", "TryStatement", ".", "SECRET_RETURN_VALUE_NAME", ",", "methodReturnType", ",", "ClassFileConstants", ".", "AccDefault", ",", "false", ")", ";", "finallyScope", ".", "addLocalVariable", "(", "this", ".", "secretReturnValue", ")", ";", "this", ".", "secretReturnValue", ".", "setConstant", "(", "Constant", ".", "NotAConstant", ")", ";", "}", "}", "}", "this", ".", "finallyBlock", ".", "resolveUsing", "(", "finallyScope", ")", ";", "int", "shiftScopesLength", "=", "this", ".", "catchArguments", "==", "null", "?", "1", ":", "this", ".", "catchArguments", ".", "length", "+", "1", ";", "finallyScope", ".", "shiftScopes", "=", "new", "BlockScope", "[", "shiftScopesLength", "]", ";", "finallyScope", ".", "shiftScopes", "[", "0", "]", "=", "tryScope", ";", "}", "}", "this", ".", "tryBlock", ".", "resolveUsing", "(", "tryScope", ")", ";", "if", "(", "this", ".", "catchBlocks", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "catchArguments", ".", "length", ";", "TypeBinding", "[", "]", "argumentTypes", "=", "new", "TypeBinding", "[", "length", "]", ";", "boolean", "containsUnionTypes", "=", "false", ";", "boolean", "catchHasError", "=", "false", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "BlockScope", "catchScope", "=", "new", "BlockScope", "(", "this", ".", "scope", ")", ";", "if", "(", "finallyScope", "!=", "null", ")", "{", "finallyScope", ".", "shiftScopes", "[", "i", "+", "1", "]", "=", "catchScope", ";", "}", "Argument", "catchArgument", "=", "this", ".", "catchArguments", "[", "i", "]", ";", "containsUnionTypes", "|=", "(", "catchArgument", ".", "type", ".", "bits", "&", "ASTNode", ".", "IsUnionType", ")", "!=", "0", ";", "if", "(", "(", "argumentTypes", "[", "i", "]", "=", "catchArgument", ".", "resolveForCatch", "(", "catchScope", ")", ")", "==", "null", ")", "{", "catchHasError", "=", "true", ";", "}", "this", ".", "catchBlocks", "[", "i", "]", ".", "resolveUsing", "(", "catchScope", ")", ";", "}", "if", "(", "catchHasError", ")", "{", "return", ";", "}", "verifyDuplicationAndOrder", "(", "length", ",", "argumentTypes", ",", "containsUnionTypes", ")", ";", "}", "else", "{", "this", ".", "caughtExceptionTypes", "=", "new", "ReferenceBinding", "[", "0", "]", ";", "}", "if", "(", "finallyScope", "!=", "null", ")", "{", "this", ".", "scope", ".", "addSubscope", "(", "finallyScope", ")", ";", "}", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "LocalDeclaration", "[", "]", "localDeclarations", "=", "this", ".", "resources", ";", "for", "(", "int", "i", "=", "0", ",", "max", "=", "localDeclarations", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "localDeclarations", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "this", ".", "tryBlock", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "if", "(", "this", ".", "catchArguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "catchBlocks", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "this", ".", "catchArguments", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "this", ".", "catchBlocks", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "}", "if", "(", "this", ".", "finallyBlock", "!=", "null", ")", "this", ".", "finallyBlock", ".", "traverse", "(", "visitor", ",", "this", ".", "scope", ")", ";", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "protected", "void", "verifyDuplicationAndOrder", "(", "int", "length", ",", "TypeBinding", "[", "]", "argumentTypes", ",", "boolean", "containsUnionTypes", ")", "{", "if", "(", "containsUnionTypes", ")", "{", "int", "totalCount", "=", "0", ";", "ReferenceBinding", "[", "]", "[", "]", "allExceptionTypes", "=", "new", "ReferenceBinding", "[", "length", "]", "[", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "ReferenceBinding", "currentExceptionType", "=", "(", "ReferenceBinding", ")", "argumentTypes", "[", "i", "]", ";", "TypeReference", "catchArgumentType", "=", "this", ".", "catchArguments", "[", "i", "]", ".", "type", ";", "if", "(", "(", "catchArgumentType", ".", "bits", "&", "ASTNode", ".", "IsUnionType", ")", "!=", "0", ")", "{", "TypeReference", "[", "]", "typeReferences", "=", "(", "(", "UnionTypeReference", ")", "catchArgumentType", ")", ".", "typeReferences", ";", "int", "typeReferencesLength", "=", "typeReferences", ".", "length", ";", "ReferenceBinding", "[", "]", "unionExceptionTypes", "=", "new", "ReferenceBinding", "[", "typeReferencesLength", "]", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "typeReferencesLength", ";", "j", "++", ")", "{", "unionExceptionTypes", "[", "j", "]", "=", "(", "ReferenceBinding", ")", "typeReferences", "[", "j", "]", ".", "resolvedType", ";", "}", "totalCount", "+=", "typeReferencesLength", ";", "allExceptionTypes", "[", "i", "]", "=", "unionExceptionTypes", ";", "}", "else", "{", "allExceptionTypes", "[", "i", "]", "=", "new", "ReferenceBinding", "[", "]", "{", "currentExceptionType", "}", ";", "totalCount", "++", ";", "}", "}", "this", ".", "caughtExceptionTypes", "=", "new", "ReferenceBinding", "[", "totalCount", "]", ";", "this", ".", "caughtExceptionsCatchBlocks", "=", "new", "int", "[", "totalCount", "]", ";", "for", "(", "int", "i", "=", "0", ",", "l", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "ReferenceBinding", "[", "]", "currentExceptions", "=", "allExceptionTypes", "[", "i", "]", ";", "loop", ":", "for", "(", "int", "j", "=", "0", ",", "max", "=", "currentExceptions", ".", "length", ";", "j", "<", "max", ";", "j", "++", ")", "{", "ReferenceBinding", "exception", "=", "currentExceptions", "[", "j", "]", ";", "this", ".", "caughtExceptionTypes", "[", "l", "]", "=", "exception", ";", "this", ".", "caughtExceptionsCatchBlocks", "[", "l", "++", "]", "=", "i", ";", "for", "(", "int", "k", "=", "0", ";", "k", "<", "i", ";", "k", "++", ")", "{", "ReferenceBinding", "[", "]", "exceptions", "=", "allExceptionTypes", "[", "k", "]", ";", "for", "(", "int", "n", "=", "0", ",", "max2", "=", "exceptions", ".", "length", ";", "n", "<", "max2", ";", "n", "++", ")", "{", "ReferenceBinding", "currentException", "=", "exceptions", "[", "n", "]", ";", "if", "(", "exception", ".", "isCompatibleWith", "(", "currentException", ")", ")", "{", "TypeReference", "catchArgumentType", "=", "this", ".", "catchArguments", "[", "i", "]", ".", "type", ";", "if", "(", "(", "catchArgumentType", ".", "bits", "&", "ASTNode", ".", "IsUnionType", ")", "!=", "0", ")", "{", "catchArgumentType", "=", "(", "(", "UnionTypeReference", ")", "catchArgumentType", ")", ".", "typeReferences", "[", "j", "]", ";", "}", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "wrongSequenceOfExceptionTypesError", "(", "catchArgumentType", ",", "exception", ",", "currentException", ")", ";", "break", "loop", ";", "}", "}", "}", "}", "}", "}", "else", "{", "this", ".", "caughtExceptionTypes", "=", "new", "ReferenceBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "caughtExceptionTypes", "[", "i", "]", "=", "(", "ReferenceBinding", ")", "argumentTypes", "[", "i", "]", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "i", ";", "j", "++", ")", "{", "if", "(", "this", ".", "caughtExceptionTypes", "[", "i", "]", ".", "isCompatibleWith", "(", "argumentTypes", "[", "j", "]", ")", ")", "{", "this", ".", "scope", ".", "problemReporter", "(", ")", ".", "wrongSequenceOfExceptionTypesError", "(", "this", ".", "catchArguments", "[", "i", "]", ".", "type", ",", "this", ".", "caughtExceptionTypes", "[", "i", "]", ",", "argumentTypes", "[", "j", "]", ")", ";", "}", "}", "}", "}", "}", "}", "</s>" ]
4,244
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ASTVisitor", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ".", "ClassFileConstants", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "CodeStream", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "codegen", ".", "Opcodes", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "CompilerOptions", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "Constant", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "impl", ".", "ReferenceContext", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Binding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "BlockScope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ExtraCompilerModifiers", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "InvocationSite", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MethodBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "MissingTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "PolymorphicMethodBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemMethodBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemReasons", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ProblemReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "RawTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "ReferenceBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "Scope", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "SourceTypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TagBits", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeBinding", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "TypeIds", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "problem", ".", "ProblemSeverities", ";", "public", "class", "MessageSend", "extends", "Expression", "implements", "InvocationSite", "{", "public", "Expression", "receiver", ";", "public", "char", "[", "]", "selector", ";", "public", "Expression", "[", "]", "arguments", ";", "public", "MethodBinding", "binding", ";", "public", "MethodBinding", "syntheticAccessor", ";", "public", "TypeBinding", "expectedType", ";", "public", "long", "nameSourcePosition", ";", "public", "TypeBinding", "actualReceiverType", ";", "public", "TypeBinding", "valueCast", ";", "public", "TypeReference", "[", "]", "typeArguments", ";", "public", "TypeBinding", "[", "]", "genericTypeArguments", ";", "public", "FlowInfo", "analyseCode", "(", "BlockScope", "currentScope", ",", "FlowContext", "flowContext", ",", "FlowInfo", "flowInfo", ")", "{", "boolean", "nonStatic", "=", "!", "this", ".", "binding", ".", "isStatic", "(", ")", ";", "flowInfo", "=", "this", ".", "receiver", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ",", "nonStatic", ")", ".", "unconditionalInits", "(", ")", ";", "if", "(", "nonStatic", ")", "{", "this", ".", "receiver", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "if", "(", "this", ".", "receiver", ".", "isThis", "(", ")", ")", "{", "currentScope", ".", "resetEnclosingMethodStaticFlag", "(", ")", ";", "}", "}", "else", "if", "(", "this", ".", "receiver", ".", "isThis", "(", ")", ")", "{", "if", "(", "(", "this", ".", "receiver", ".", "bits", "&", "ASTNode", ".", "IsImplicitThis", ")", "==", "0", ")", "{", "currentScope", ".", "resetEnclosingMethodStaticFlag", "(", ")", ";", "}", "}", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "arguments", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "if", "(", "(", "this", ".", "arguments", "[", "i", "]", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "this", ".", "arguments", "[", "i", "]", ".", "checkNPE", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ";", "}", "flowInfo", "=", "this", ".", "arguments", "[", "i", "]", ".", "analyseCode", "(", "currentScope", ",", "flowContext", ",", "flowInfo", ")", ".", "unconditionalInits", "(", ")", ";", "}", "}", "ReferenceBinding", "[", "]", "thrownExceptions", ";", "if", "(", "(", "thrownExceptions", "=", "this", ".", "binding", ".", "thrownExceptions", ")", "!=", "Binding", ".", "NO_EXCEPTIONS", ")", "{", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "Unchecked", ")", "!=", "0", "&&", "this", ".", "genericTypeArguments", "==", "null", ")", "{", "thrownExceptions", "=", "currentScope", ".", "environment", "(", ")", ".", "convertToRawTypes", "(", "this", ".", "binding", ".", "thrownExceptions", ",", "true", ",", "true", ")", ";", "}", "flowContext", ".", "checkExceptionHandlers", "(", "thrownExceptions", ",", "this", ",", "flowInfo", ".", "copy", "(", ")", ",", "currentScope", ")", ";", "}", "manageSyntheticAccessIfNecessary", "(", "currentScope", ",", "flowInfo", ")", ";", "return", "flowInfo", ";", "}", "public", "void", "computeConversion", "(", "Scope", "scope", ",", "TypeBinding", "runtimeTimeType", ",", "TypeBinding", "compileTimeType", ")", "{", "if", "(", "runtimeTimeType", "==", "null", "||", "compileTimeType", "==", "null", ")", "return", ";", "if", "(", "this", ".", "binding", "!=", "null", "&&", "this", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "MethodBinding", "originalBinding", "=", "this", ".", "binding", ".", "original", "(", ")", ";", "TypeBinding", "originalType", "=", "originalBinding", ".", "returnType", ";", "if", "(", "originalType", ".", "leafComponentType", "(", ")", ".", "isTypeVariable", "(", ")", ")", "{", "TypeBinding", "targetType", "=", "(", "!", "compileTimeType", ".", "isBaseType", "(", ")", "&&", "runtimeTimeType", ".", "isBaseType", "(", ")", ")", "?", "compileTimeType", ":", "runtimeTimeType", ";", "this", ".", "valueCast", "=", "originalType", ".", "genericCast", "(", "targetType", ")", ";", "}", "else", "if", "(", "this", ".", "binding", "==", "scope", ".", "environment", "(", ")", ".", "arrayClone", "&&", "runtimeTimeType", ".", "id", "!=", "TypeIds", ".", "T_JavaLangObject", "&&", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "this", ".", "valueCast", "=", "runtimeTimeType", ";", "}", "if", "(", "this", ".", "valueCast", "instanceof", "ReferenceBinding", ")", "{", "ReferenceBinding", "referenceCast", "=", "(", "ReferenceBinding", ")", "this", ".", "valueCast", ";", "if", "(", "!", "referenceCast", ".", "canBeSeenBy", "(", "scope", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "invalidType", "(", "this", ",", "new", "ProblemReferenceBinding", "(", "CharOperation", ".", "splitOn", "(", "'.'", ",", "referenceCast", ".", "shortReadableName", "(", ")", ")", ",", "referenceCast", ",", "ProblemReasons", ".", "NotVisible", ")", ")", ";", "}", "}", "}", "super", ".", "computeConversion", "(", "scope", ",", "runtimeTimeType", ",", "compileTimeType", ")", ";", "}", "public", "void", "generateCode", "(", "BlockScope", "currentScope", ",", "CodeStream", "codeStream", ",", "boolean", "valueRequired", ")", "{", "int", "pc", "=", "codeStream", ".", "position", ";", "MethodBinding", "codegenBinding", "=", "this", ".", "binding", "instanceof", "PolymorphicMethodBinding", "?", "this", ".", "binding", ":", "this", ".", "binding", ".", "original", "(", ")", ";", "boolean", "isStatic", "=", "codegenBinding", ".", "isStatic", "(", ")", ";", "if", "(", "isStatic", ")", "{", "this", ".", "receiver", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "false", ")", ";", "}", "else", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", "&&", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", ")", "{", "ReferenceBinding", "targetType", "=", "currentScope", ".", "enclosingSourceType", "(", ")", ".", "enclosingTypeAt", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ")", ";", "Object", "[", "]", "path", "=", "currentScope", ".", "getEmulationPath", "(", "targetType", ",", "true", ",", "false", ")", ";", "codeStream", ".", "generateOuterAccess", "(", "path", ",", "this", ",", "targetType", ",", "currentScope", ")", ";", "}", "else", "{", "this", ".", "receiver", ".", "generateCode", "(", "currentScope", ",", "codeStream", ",", "true", ")", ";", "if", "(", "(", "this", ".", "bits", "&", "NeedReceiverGenericCast", ")", "!=", "0", ")", "{", "codeStream", ".", "checkcast", "(", "this", ".", "actualReceiverType", ")", ";", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "this", ".", "sourceStart", ")", ";", "generateArguments", "(", "this", ".", "binding", ",", "this", ".", "arguments", ",", "currentScope", ",", "codeStream", ")", ";", "pc", "=", "codeStream", ".", "position", ";", "if", "(", "this", ".", "syntheticAccessor", "==", "null", ")", "{", "TypeBinding", "constantPoolDeclaringClass", "=", "CodeStream", ".", "getConstantPoolDeclaringClass", "(", "currentScope", ",", "codegenBinding", ",", "this", ".", "actualReceiverType", ",", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", ")", ";", "if", "(", "isStatic", ")", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "codegenBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "if", "(", "(", "this", ".", "receiver", ".", "isSuper", "(", ")", ")", "||", "codegenBinding", ".", "isPrivate", "(", ")", ")", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokespecial", ",", "codegenBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "if", "(", "constantPoolDeclaringClass", ".", "isInterface", "(", ")", ")", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokeinterface", ",", "codegenBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokevirtual", ",", "codegenBinding", ",", "constantPoolDeclaringClass", ")", ";", "}", "}", "else", "{", "codeStream", ".", "invoke", "(", "Opcodes", ".", "OPC_invokestatic", ",", "this", ".", "syntheticAccessor", ",", "null", ")", ";", "}", "if", "(", "this", ".", "valueCast", "!=", "null", ")", "codeStream", ".", "checkcast", "(", "this", ".", "valueCast", ")", ";", "if", "(", "valueRequired", ")", "{", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "}", "else", "{", "boolean", "isUnboxing", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ";", "if", "(", "isUnboxing", ")", "codeStream", ".", "generateImplicitConversion", "(", "this", ".", "implicitConversion", ")", ";", "switch", "(", "isUnboxing", "?", "postConversionType", "(", "currentScope", ")", ".", "id", ":", "codegenBinding", ".", "returnType", ".", "id", ")", "{", "case", "T_long", ":", "case", "T_double", ":", "codeStream", ".", "pop2", "(", ")", ";", "break", ";", "case", "T_void", ":", "break", ";", "default", ":", "codeStream", ".", "pop", "(", ")", ";", "}", "}", "codeStream", ".", "recordPositionsFrom", "(", "pc", ",", "(", "int", ")", "(", "this", ".", "nameSourcePosition", ">>>", "32", ")", ")", ";", "}", "public", "TypeBinding", "[", "]", "genericTypeArguments", "(", ")", "{", "return", "this", ".", "genericTypeArguments", ";", "}", "public", "boolean", "isSuperAccess", "(", ")", "{", "return", "this", ".", "receiver", ".", "isSuper", "(", ")", ";", "}", "public", "boolean", "isTypeAccess", "(", ")", "{", "return", "this", ".", "receiver", "!=", "null", "&&", "this", ".", "receiver", ".", "isTypeReference", "(", ")", ";", "}", "public", "void", "manageSyntheticAccessIfNecessary", "(", "BlockScope", "currentScope", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE_OR_DEAD", ")", "!=", "0", ")", "return", ";", "MethodBinding", "codegenBinding", "=", "this", ".", "binding", ".", "original", "(", ")", ";", "if", "(", "this", ".", "binding", ".", "isPrivate", "(", ")", ")", "{", "if", "(", "currentScope", ".", "enclosingSourceType", "(", ")", "!=", "codegenBinding", ".", "declaringClass", ")", "{", "this", ".", "syntheticAccessor", "=", "(", "(", "SourceTypeBinding", ")", "codegenBinding", ".", "declaringClass", ")", ".", "addSyntheticMethod", "(", "codegenBinding", ",", "false", ")", ";", "currentScope", ".", "problemReporter", "(", ")", ".", "needToEmulateMethodAccess", "(", "codegenBinding", ",", "this", ")", ";", "return", ";", "}", "}", "else", "if", "(", "this", ".", "receiver", "instanceof", "QualifiedSuperReference", ")", "{", "SourceTypeBinding", "destinationType", "=", "(", "SourceTypeBinding", ")", "(", "(", "(", "QualifiedSuperReference", ")", "this", ".", "receiver", ")", ".", "currentCompatibleType", ")", ";", "this", ".", "syntheticAccessor", "=", "destinationType", ".", "addSyntheticMethod", "(", "codegenBinding", ",", "isSuperAccess", "(", ")", ")", ";", "currentScope", ".", "problemReporter", "(", ")", ".", "needToEmulateMethodAccess", "(", "codegenBinding", ",", "this", ")", ";", "return", ";", "}", "else", "if", "(", "this", ".", "binding", ".", "isProtected", "(", ")", ")", "{", "SourceTypeBinding", "enclosingSourceType", ";", "if", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", "!=", "0", ")", "&&", "codegenBinding", ".", "declaringClass", ".", "getPackage", "(", ")", "!=", "(", "enclosingSourceType", "=", "currentScope", ".", "enclosingSourceType", "(", ")", ")", ".", "getPackage", "(", ")", ")", "{", "SourceTypeBinding", "currentCompatibleType", "=", "(", "SourceTypeBinding", ")", "enclosingSourceType", ".", "enclosingTypeAt", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "DepthMASK", ")", ">>", "ASTNode", ".", "DepthSHIFT", ")", ";", "this", ".", "syntheticAccessor", "=", "currentCompatibleType", ".", "addSyntheticMethod", "(", "codegenBinding", ",", "isSuperAccess", "(", ")", ")", ";", "currentScope", ".", "problemReporter", "(", ")", ".", "needToEmulateMethodAccess", "(", "codegenBinding", ",", "this", ")", ";", "return", ";", "}", "}", "}", "public", "int", "nullStatus", "(", "FlowInfo", "flowInfo", ")", "{", "return", "FlowInfo", ".", "UNKNOWN", ";", "}", "public", "TypeBinding", "postConversionType", "(", "Scope", "scope", ")", "{", "TypeBinding", "convertedType", "=", "this", ".", "resolvedType", ";", "if", "(", "this", ".", "valueCast", "!=", "null", ")", "convertedType", "=", "this", ".", "valueCast", ";", "int", "runtimeType", "=", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "IMPLICIT_CONVERSION_MASK", ")", ">>", "4", ";", "switch", "(", "runtimeType", ")", "{", "case", "T_boolean", ":", "convertedType", "=", "TypeBinding", ".", "BOOLEAN", ";", "break", ";", "case", "T_byte", ":", "convertedType", "=", "TypeBinding", ".", "BYTE", ";", "break", ";", "case", "T_short", ":", "convertedType", "=", "TypeBinding", ".", "SHORT", ";", "break", ";", "case", "T_char", ":", "convertedType", "=", "TypeBinding", ".", "CHAR", ";", "break", ";", "case", "T_int", ":", "convertedType", "=", "TypeBinding", ".", "INT", ";", "break", ";", "case", "T_float", ":", "convertedType", "=", "TypeBinding", ".", "FLOAT", ";", "break", ";", "case", "T_long", ":", "convertedType", "=", "TypeBinding", ".", "LONG", ";", "break", ";", "case", "T_double", ":", "convertedType", "=", "TypeBinding", ".", "DOUBLE", ";", "break", ";", "default", ":", "}", "if", "(", "(", "this", ".", "implicitConversion", "&", "TypeIds", ".", "BOXING", ")", "!=", "0", ")", "{", "convertedType", "=", "scope", ".", "environment", "(", ")", ".", "computeBoxingType", "(", "convertedType", ")", ";", "}", "return", "convertedType", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "if", "(", "!", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", ")", "this", ".", "receiver", ".", "printExpression", "(", "0", ",", "output", ")", ".", "append", "(", "'.'", ")", ";", "if", "(", "this", ".", "typeArguments", "!=", "null", ")", "{", "output", ".", "append", "(", "'<'", ")", ";", "int", "max", "=", "this", ".", "typeArguments", ".", "length", "-", "1", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "max", ";", "j", "++", ")", "{", "this", ".", "typeArguments", "[", "j", "]", ".", "print", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "\",", "\"", ")", ";", "}", "this", ".", "typeArguments", "[", "max", "]", ".", "print", "(", "0", ",", "output", ")", ";", "output", ".", "append", "(", "'>'", ")", ";", "}", "output", ".", "append", "(", "this", ".", "selector", ")", ".", "append", "(", "'('", ")", ";", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "arguments", ".", "length", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "output", ".", "append", "(", "\",", "\"", ")", ";", "this", ".", "arguments", "[", "i", "]", ".", "printExpression", "(", "0", ",", "output", ")", ";", "}", "}", "return", "output", ".", "append", "(", "')'", ")", ";", "}", "public", "TypeBinding", "resolveType", "(", "BlockScope", "scope", ")", "{", "this", ".", "constant", "=", "Constant", ".", "NotAConstant", ";", "boolean", "receiverCast", "=", "false", ",", "argsContainCast", "=", "false", ";", "if", "(", "this", ".", "receiver", "instanceof", "CastExpression", ")", "{", "this", ".", "receiver", ".", "bits", "|=", "ASTNode", ".", "DisableUnnecessaryCastCheck", ";", "receiverCast", "=", "true", ";", "}", "this", ".", "actualReceiverType", "=", "this", ".", "receiver", ".", "resolveType", "(", "scope", ")", ";", "boolean", "receiverIsType", "=", "this", ".", "receiver", "instanceof", "NameReference", "&&", "(", "(", "(", "NameReference", ")", "this", ".", "receiver", ")", ".", "bits", "&", "Binding", ".", "TYPE", ")", "!=", "0", ";", "if", "(", "receiverCast", "&&", "this", ".", "actualReceiverType", "!=", "null", ")", "{", "if", "(", "(", "(", "CastExpression", ")", "this", ".", "receiver", ")", ".", "expression", ".", "resolvedType", "==", "this", ".", "actualReceiverType", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryCast", "(", "(", "CastExpression", ")", "this", ".", "receiver", ")", ";", "}", "}", "if", "(", "this", ".", "typeArguments", "!=", "null", ")", "{", "int", "length", "=", "this", ".", "typeArguments", ".", "length", ";", "boolean", "argHasError", "=", "scope", ".", "compilerOptions", "(", ")", ".", "sourceLevel", "<", "ClassFileConstants", ".", "JDK1_5", ";", "this", ".", "genericTypeArguments", "=", "new", "TypeBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "TypeReference", "typeReference", "=", "this", ".", "typeArguments", "[", "i", "]", ";", "if", "(", "(", "this", ".", "genericTypeArguments", "[", "i", "]", "=", "typeReference", ".", "resolveType", "(", "scope", ",", "true", ")", ")", "==", "null", ")", "{", "argHasError", "=", "true", ";", "}", "if", "(", "argHasError", "&&", "typeReference", "instanceof", "Wildcard", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "illegalUsageOfWildcard", "(", "typeReference", ")", ";", "}", "}", "if", "(", "argHasError", ")", "{", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "arguments", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "{", "this", ".", "arguments", "[", "i", "]", ".", "resolveType", "(", "scope", ")", ";", "}", "}", "return", "null", ";", "}", "}", "TypeBinding", "[", "]", "argumentTypes", "=", "Binding", ".", "NO_PARAMETERS", ";", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "boolean", "argHasError", "=", "false", ";", "int", "length", "=", "this", ".", "arguments", ".", "length", ";", "argumentTypes", "=", "new", "TypeBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "Expression", "argument", "=", "this", ".", "arguments", "[", "i", "]", ";", "if", "(", "argument", "instanceof", "CastExpression", ")", "{", "argument", ".", "bits", "|=", "ASTNode", ".", "DisableUnnecessaryCastCheck", ";", "argsContainCast", "=", "true", ";", "}", "if", "(", "(", "argumentTypes", "[", "i", "]", "=", "argument", ".", "resolveType", "(", "scope", ")", ")", "==", "null", ")", "{", "argHasError", "=", "true", ";", "}", "}", "if", "(", "argHasError", ")", "{", "if", "(", "this", ".", "actualReceiverType", "instanceof", "ReferenceBinding", ")", "{", "TypeBinding", "[", "]", "pseudoArgs", "=", "new", "TypeBinding", "[", "length", "]", ";", "for", "(", "int", "i", "=", "length", ";", "--", "i", ">=", "0", ";", ")", "pseudoArgs", "[", "i", "]", "=", "argumentTypes", "[", "i", "]", "==", "null", "?", "TypeBinding", ".", "NULL", ":", "argumentTypes", "[", "i", "]", ";", "this", ".", "binding", "=", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", "?", "scope", ".", "getImplicitMethod", "(", "this", ".", "selector", ",", "pseudoArgs", ",", "this", ")", ":", "scope", ".", "findMethod", "(", "(", "ReferenceBinding", ")", "this", ".", "actualReceiverType", ",", "this", ".", "selector", ",", "pseudoArgs", ",", "this", ")", ";", "if", "(", "this", ".", "binding", "!=", "null", "&&", "!", "this", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "MethodBinding", "closestMatch", "=", "(", "(", "ProblemMethodBinding", ")", "this", ".", "binding", ")", ".", "closestMatch", ";", "if", "(", "closestMatch", "!=", "null", ")", "{", "if", "(", "closestMatch", ".", "original", "(", ")", ".", "typeVariables", "!=", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "closestMatch", "=", "scope", ".", "environment", "(", ")", ".", "createParameterizedGenericMethod", "(", "closestMatch", ".", "original", "(", ")", ",", "(", "RawTypeBinding", ")", "null", ")", ";", "}", "this", ".", "binding", "=", "closestMatch", ";", "MethodBinding", "closestMatchOriginal", "=", "closestMatch", ".", "original", "(", ")", ";", "if", "(", "closestMatchOriginal", ".", "isOrEnclosedByPrivateType", "(", ")", "&&", "!", "scope", ".", "isDefinedInMethod", "(", "closestMatchOriginal", ")", ")", "{", "closestMatchOriginal", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccLocallyUsed", ";", "}", "}", "}", "}", "return", "null", ";", "}", "}", "if", "(", "this", ".", "actualReceiverType", "==", "null", ")", "{", "return", "null", ";", "}", "if", "(", "this", ".", "actualReceiverType", ".", "isBaseType", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "errorNoMethodFor", "(", "this", ",", "this", ".", "actualReceiverType", ",", "argumentTypes", ")", ";", "return", "null", ";", "}", "this", ".", "binding", "=", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", "?", "scope", ".", "getImplicitMethod", "(", "this", ".", "selector", ",", "argumentTypes", ",", "this", ")", ":", "scope", ".", "getMethod", "(", "this", ".", "actualReceiverType", ",", "this", ".", "selector", ",", "argumentTypes", ",", "this", ")", ";", "if", "(", "!", "this", ".", "binding", ".", "isValidBinding", "(", ")", ")", "{", "if", "(", "this", ".", "binding", ".", "declaringClass", "==", "null", ")", "{", "if", "(", "this", ".", "actualReceiverType", "instanceof", "ReferenceBinding", ")", "{", "this", ".", "binding", ".", "declaringClass", "=", "(", "ReferenceBinding", ")", "this", ".", "actualReceiverType", ";", "}", "else", "{", "scope", ".", "problemReporter", "(", ")", ".", "errorNoMethodFor", "(", "this", ",", "this", ".", "actualReceiverType", ",", "argumentTypes", ")", ";", "return", "null", ";", "}", "}", "ReferenceBinding", "declaringClass", "=", "this", ".", "binding", ".", "declaringClass", ";", "boolean", "avoidSecondary", "=", "declaringClass", "!=", "null", "&&", "declaringClass", ".", "isAnonymousType", "(", ")", "&&", "declaringClass", ".", "superclass", "(", ")", "instanceof", "MissingTypeBinding", ";", "if", "(", "!", "avoidSecondary", ")", "scope", ".", "problemReporter", "(", ")", ".", "invalidMethod", "(", "this", ",", "this", ".", "binding", ")", ";", "MethodBinding", "closestMatch", "=", "(", "(", "ProblemMethodBinding", ")", "this", ".", "binding", ")", ".", "closestMatch", ";", "switch", "(", "this", ".", "binding", ".", "problemId", "(", ")", ")", "{", "case", "ProblemReasons", ".", "Ambiguous", ":", "break", ";", "case", "ProblemReasons", ".", "NotVisible", ":", "case", "ProblemReasons", ".", "NonStaticReferenceInConstructorInvocation", ":", "case", "ProblemReasons", ".", "NonStaticReferenceInStaticContext", ":", "case", "ProblemReasons", ".", "ReceiverTypeNotVisible", ":", "case", "ProblemReasons", ".", "ParameterBoundMismatch", ":", "if", "(", "closestMatch", "!=", "null", ")", "this", ".", "resolvedType", "=", "closestMatch", ".", "returnType", ";", "break", ";", "}", "if", "(", "closestMatch", "!=", "null", ")", "{", "this", ".", "binding", "=", "closestMatch", ";", "MethodBinding", "closestMatchOriginal", "=", "closestMatch", ".", "original", "(", ")", ";", "if", "(", "closestMatchOriginal", ".", "isOrEnclosedByPrivateType", "(", ")", "&&", "!", "scope", ".", "isDefinedInMethod", "(", "closestMatchOriginal", ")", ")", "{", "closestMatchOriginal", ".", "modifiers", "|=", "ExtraCompilerModifiers", ".", "AccLocallyUsed", ";", "}", "}", "return", "(", "this", ".", "resolvedType", "!=", "null", "&&", "(", "this", ".", "resolvedType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "==", "0", ")", "?", "this", ".", "resolvedType", ":", "null", ";", "}", "final", "CompilerOptions", "compilerOptions", "=", "scope", ".", "compilerOptions", "(", ")", ";", "if", "(", "compilerOptions", ".", "complianceLevel", "<=", "ClassFileConstants", ".", "JDK1_6", "&&", "this", ".", "binding", ".", "isPolymorphic", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "polymorphicMethodNotBelow17", "(", "this", ")", ";", "return", "null", ";", "}", "if", "(", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "InsideExpressionStatement", ")", "!=", "0", ")", "&&", "this", ".", "binding", ".", "isPolymorphic", "(", ")", ")", "{", "this", ".", "binding", "=", "scope", ".", "environment", "(", ")", ".", "updatePolymorphicMethodReturnType", "(", "(", "PolymorphicMethodBinding", ")", "this", ".", "binding", ",", "TypeBinding", ".", "VOID", ")", ";", "}", "if", "(", "(", "this", ".", "binding", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "missingTypeInMethod", "(", "this", ",", "this", ".", "binding", ")", ";", "}", "if", "(", "!", "this", ".", "binding", ".", "isStatic", "(", ")", ")", "{", "if", "(", "receiverIsType", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "mustUseAStaticMethod", "(", "this", ",", "this", ".", "binding", ")", ";", "if", "(", "this", ".", "actualReceiverType", ".", "isRawType", "(", ")", "&&", "(", "this", ".", "receiver", ".", "bits", "&", "ASTNode", ".", "IgnoreRawTypeCheck", ")", "==", "0", "&&", "compilerOptions", ".", "getSeverity", "(", "CompilerOptions", ".", "RawTypeReference", ")", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "rawTypeReference", "(", "this", ".", "receiver", ",", "this", ".", "actualReceiverType", ")", ";", "}", "}", "else", "{", "TypeBinding", "oldReceiverType", "=", "this", ".", "actualReceiverType", ";", "this", ".", "actualReceiverType", "=", "this", ".", "actualReceiverType", ".", "getErasureCompatibleType", "(", "this", ".", "binding", ".", "declaringClass", ")", ";", "this", ".", "receiver", ".", "computeConversion", "(", "scope", ",", "this", ".", "actualReceiverType", ",", "this", ".", "actualReceiverType", ")", ";", "if", "(", "this", ".", "actualReceiverType", "!=", "oldReceiverType", "&&", "this", ".", "receiver", ".", "postConversionType", "(", "scope", ")", "!=", "this", ".", "actualReceiverType", ")", "{", "this", ".", "bits", "|=", "NeedReceiverGenericCast", ";", "}", "}", "}", "else", "{", "if", "(", "!", "(", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", "||", "this", ".", "receiver", ".", "isSuper", "(", ")", "||", "receiverIsType", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "nonStaticAccessToStaticMethod", "(", "this", ",", "this", ".", "binding", ")", ";", "}", "if", "(", "!", "this", ".", "receiver", ".", "isImplicitThis", "(", ")", "&&", "this", ".", "binding", ".", "declaringClass", "!=", "this", ".", "actualReceiverType", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "indirectAccessToStaticMethod", "(", "this", ",", "this", ".", "binding", ")", ";", "}", "}", "if", "(", "checkInvocationArguments", "(", "scope", ",", "this", ".", "receiver", ",", "this", ".", "actualReceiverType", ",", "this", ".", "binding", ",", "this", ".", "arguments", ",", "argumentTypes", ",", "argsContainCast", ",", "this", ")", ")", "{", "this", ".", "bits", "|=", "ASTNode", ".", "Unchecked", ";", "}", "if", "(", "this", ".", "binding", ".", "isAbstract", "(", ")", ")", "{", "if", "(", "this", ".", "receiver", ".", "isSuper", "(", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "cannotDireclyInvokeAbstractMethod", "(", "this", ",", "this", ".", "binding", ")", ";", "}", "}", "if", "(", "isMethodUseDeprecated", "(", "this", ".", "binding", ",", "scope", ",", "true", ")", ")", "scope", ".", "problemReporter", "(", ")", ".", "deprecatedMethod", "(", "this", ".", "binding", ",", "this", ")", ";", "if", "(", "this", ".", "binding", "==", "scope", ".", "environment", "(", ")", ".", "arrayClone", "&&", "compilerOptions", ".", "sourceLevel", ">=", "ClassFileConstants", ".", "JDK1_5", ")", "{", "this", ".", "resolvedType", "=", "this", ".", "actualReceiverType", ";", "}", "else", "{", "TypeBinding", "returnType", ";", "if", "(", "(", "this", ".", "bits", "&", "ASTNode", ".", "Unchecked", ")", "!=", "0", "&&", "this", ".", "genericTypeArguments", "==", "null", ")", "{", "returnType", "=", "this", ".", "binding", ".", "returnType", ";", "if", "(", "returnType", "!=", "null", ")", "{", "returnType", "=", "scope", ".", "environment", "(", ")", ".", "convertToRawType", "(", "returnType", ".", "erasure", "(", ")", ",", "true", ")", ";", "}", "}", "else", "{", "returnType", "=", "this", ".", "binding", ".", "returnType", ";", "if", "(", "returnType", "!=", "null", ")", "{", "returnType", "=", "returnType", ".", "capture", "(", "scope", ",", "this", ".", "sourceEnd", ")", ";", "}", "}", "this", ".", "resolvedType", "=", "returnType", ";", "}", "if", "(", "this", ".", "receiver", ".", "isSuper", "(", ")", "&&", "compilerOptions", ".", "getSeverity", "(", "CompilerOptions", ".", "OverridingMethodWithoutSuperInvocation", ")", "!=", "ProblemSeverities", ".", "Ignore", ")", "{", "final", "ReferenceContext", "referenceContext", "=", "scope", ".", "methodScope", "(", ")", ".", "referenceContext", ";", "if", "(", "referenceContext", "instanceof", "AbstractMethodDeclaration", ")", "{", "final", "AbstractMethodDeclaration", "abstractMethodDeclaration", "=", "(", "AbstractMethodDeclaration", ")", "referenceContext", ";", "MethodBinding", "enclosingMethodBinding", "=", "abstractMethodDeclaration", ".", "binding", ";", "if", "(", "enclosingMethodBinding", ".", "isOverriding", "(", ")", "&&", "CharOperation", ".", "equals", "(", "this", ".", "binding", ".", "selector", ",", "enclosingMethodBinding", ".", "selector", ")", "&&", "this", ".", "binding", ".", "areParametersEqual", "(", "enclosingMethodBinding", ")", ")", "{", "abstractMethodDeclaration", ".", "bits", "|=", "ASTNode", ".", "OverridingMethodWithSupercall", ";", "}", "}", "}", "if", "(", "this", ".", "typeArguments", "!=", "null", "&&", "this", ".", "binding", ".", "original", "(", ")", ".", "typeVariables", "==", "Binding", ".", "NO_TYPE_VARIABLES", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "unnecessaryTypeArgumentsForMethodInvocation", "(", "this", ".", "binding", ",", "this", ".", "genericTypeArguments", ",", "this", ".", "typeArguments", ")", ";", "}", "return", "(", "this", ".", "resolvedType", ".", "tagBits", "&", "TagBits", ".", "HasMissingType", ")", "==", "0", "?", "this", ".", "resolvedType", ":", "null", ";", "}", "public", "void", "setActualReceiverType", "(", "ReferenceBinding", "receiverType", ")", "{", "if", "(", "receiverType", "==", "null", ")", "return", ";", "this", ".", "actualReceiverType", "=", "receiverType", ";", "}", "public", "void", "setDepth", "(", "int", "depth", ")", "{", "this", ".", "bits", "&=", "~", "ASTNode", ".", "DepthMASK", ";", "if", "(", "depth", ">", "0", ")", "{", "this", ".", "bits", "|=", "(", "depth", "&", "0xFF", ")", "<<", "ASTNode", ".", "DepthSHIFT", ";", "}", "}", "public", "void", "setExpectedType", "(", "TypeBinding", "expectedType", ")", "{", "this", ".", "expectedType", "=", "expectedType", ";", "}", "public", "void", "setFieldIndex", "(", "int", "depth", ")", "{", "}", "public", "TypeBinding", "expectedType", "(", ")", "{", "return", "this", ".", "expectedType", ";", "}", "public", "void", "traverse", "(", "ASTVisitor", "visitor", ",", "BlockScope", "blockScope", ")", "{", "if", "(", "visitor", ".", "visit", "(", "this", ",", "blockScope", ")", ")", "{", "this", ".", "receiver", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "if", "(", "this", ".", "typeArguments", "!=", "null", ")", "{", "for", "(", "int", "i", "=", "0", ",", "typeArgumentsLength", "=", "this", ".", "typeArguments", ".", "length", ";", "i", "<", "typeArgumentsLength", ";", "i", "++", ")", "{", "this", ".", "typeArguments", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "}", "if", "(", "this", ".", "arguments", "!=", "null", ")", "{", "int", "argumentsLength", "=", "this", ".", "arguments", ".", "length", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "argumentsLength", ";", "i", "++", ")", "this", ".", "arguments", "[", "i", "]", ".", "traverse", "(", "visitor", ",", "blockScope", ")", ";", "}", "}", "visitor", ".", "endVisit", "(", "this", ",", "blockScope", ")", ";", "}", "}", "</s>" ]
4,245
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "flow", ".", "FlowInfo", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "public", "abstract", "class", "OperatorExpression", "extends", "Expression", "implements", "OperatorIds", "{", "public", "static", "int", "[", "]", "[", "]", "OperatorSignatures", "=", "new", "int", "[", "NumberOfTables", "]", "[", "]", ";", "static", "{", "classInitialize", "(", ")", ";", "}", "public", "OperatorExpression", "(", ")", "{", "super", "(", ")", ";", "}", "public", "static", "final", "void", "classInitialize", "(", ")", "{", "OperatorSignatures", "[", "AND", "]", "=", "get_AND", "(", ")", ";", "OperatorSignatures", "[", "AND_AND", "]", "=", "get_AND_AND", "(", ")", ";", "OperatorSignatures", "[", "DIVIDE", "]", "=", "get_DIVIDE", "(", ")", ";", "OperatorSignatures", "[", "EQUAL_EQUAL", "]", "=", "get_EQUAL_EQUAL", "(", ")", ";", "OperatorSignatures", "[", "GREATER", "]", "=", "get_GREATER", "(", ")", ";", "OperatorSignatures", "[", "GREATER_EQUAL", "]", "=", "get_GREATER_EQUAL", "(", ")", ";", "OperatorSignatures", "[", "LEFT_SHIFT", "]", "=", "get_LEFT_SHIFT", "(", ")", ";", "OperatorSignatures", "[", "LESS", "]", "=", "get_LESS", "(", ")", ";", "OperatorSignatures", "[", "LESS_EQUAL", "]", "=", "get_LESS_EQUAL", "(", ")", ";", "OperatorSignatures", "[", "MINUS", "]", "=", "get_MINUS", "(", ")", ";", "OperatorSignatures", "[", "MULTIPLY", "]", "=", "get_MULTIPLY", "(", ")", ";", "OperatorSignatures", "[", "OR", "]", "=", "get_OR", "(", ")", ";", "OperatorSignatures", "[", "OR_OR", "]", "=", "get_OR_OR", "(", ")", ";", "OperatorSignatures", "[", "PLUS", "]", "=", "get_PLUS", "(", ")", ";", "OperatorSignatures", "[", "REMAINDER", "]", "=", "get_REMAINDER", "(", ")", ";", "OperatorSignatures", "[", "RIGHT_SHIFT", "]", "=", "get_RIGHT_SHIFT", "(", ")", ";", "OperatorSignatures", "[", "UNSIGNED_RIGHT_SHIFT", "]", "=", "get_UNSIGNED_RIGHT_SHIFT", "(", ")", ";", "OperatorSignatures", "[", "XOR", "]", "=", "get_XOR", "(", ")", ";", "}", "public", "static", "final", "String", "generateTableTestCase", "(", ")", "{", "int", "[", "]", "operators", "=", "new", "int", "[", "]", "{", "AND", ",", "AND_AND", ",", "DIVIDE", ",", "GREATER", ",", "GREATER_EQUAL", ",", "LEFT_SHIFT", ",", "LESS", ",", "LESS_EQUAL", ",", "MINUS", ",", "MULTIPLY", ",", "OR", ",", "OR_OR", ",", "PLUS", ",", "REMAINDER", ",", "RIGHT_SHIFT", ",", "UNSIGNED_RIGHT_SHIFT", ",", "XOR", "}", ";", "class", "Decode", "{", "public", "final", "String", "constant", "(", "int", "code", ")", "{", "switch", "(", "code", ")", "{", "case", "T_boolean", ":", "return", "\"true\"", ";", "case", "T_byte", ":", "return", "\"((byte)", "3)\"", ";", "case", "T_char", ":", "return", "\"'A'\"", ";", "case", "T_double", ":", "return", "\"300.0d\"", ";", "case", "T_float", ":", "return", "\"100.0f\"", ";", "case", "T_int", ":", "return", "\"1\"", ";", "case", "T_long", ":", "return", "\"7L\"", ";", "case", "T_JavaLangString", ":", "return", "\"\"", ";", "case", "T_null", ":", "return", "\"null\"", ";", "case", "T_short", ":", "return", "\"((short)", "5)\"", ";", "case", "T_JavaLangObject", ":", "return", "\"null\"", ";", "}", "return", "Util", ".", "EMPTY_STRING", ";", "}", "public", "final", "String", "type", "(", "int", "code", ")", "{", "switch", "(", "code", ")", "{", "case", "T_boolean", ":", "return", "\"z\"", ";", "case", "T_byte", ":", "return", "\"b\"", ";", "case", "T_char", ":", "return", "\"c\"", ";", "case", "T_double", ":", "return", "\"d\"", ";", "case", "T_float", ":", "return", "\"f\"", ";", "case", "T_int", ":", "return", "\"i\"", ";", "case", "T_long", ":", "return", "\"l\"", ";", "case", "T_JavaLangString", ":", "return", "\"str\"", ";", "case", "T_null", ":", "return", "\"null\"", ";", "case", "T_short", ":", "return", "\"s\"", ";", "case", "T_JavaLangObject", ":", "return", "\"obj\"", ";", "}", "return", "\"xxx\"", ";", "}", "public", "final", "String", "operator", "(", "int", "operator", ")", "{", "switch", "(", "operator", ")", "{", "case", "EQUAL_EQUAL", ":", "return", "\"==\"", ";", "case", "LESS_EQUAL", ":", "return", "\"<=\"", ";", "case", "GREATER_EQUAL", ":", "return", "\">=\"", ";", "case", "LEFT_SHIFT", ":", "return", "\"<<\"", ";", "case", "RIGHT_SHIFT", ":", "return", "\">>\"", ";", "case", "UNSIGNED_RIGHT_SHIFT", ":", "return", "\">>>\"", ";", "case", "OR_OR", ":", "return", "\"||\"", ";", "case", "AND_AND", ":", "return", "\"&&\"", ";", "case", "PLUS", ":", "return", "\"+\"", ";", "case", "MINUS", ":", "return", "\"-\"", ";", "case", "NOT", ":", "return", "\"!\"", ";", "case", "REMAINDER", ":", "return", "\"%\"", ";", "case", "XOR", ":", "return", "\"^\"", ";", "case", "AND", ":", "return", "\"&\"", ";", "case", "MULTIPLY", ":", "return", "\"*\"", ";", "case", "OR", ":", "return", "\"|\"", ";", "case", "TWIDDLE", ":", "return", "\"~\"", ";", "case", "DIVIDE", ":", "return", "\"/\"", ";", "case", "GREATER", ":", "return", "\">\"", ";", "case", "LESS", ":", "return", "\"<\"", ";", "}", "return", "\"????\"", ";", "}", "}", "Decode", "decode", "=", "new", "Decode", "(", ")", ";", "String", "s", ";", "s", "=", "\"\"", "+", "\"\"", "+", "\"\"", "+", "\"\"", "+", "\"\"", "+", "decode", ".", "constant", "(", "T_JavaLangString", ")", "+", "\";n\"", "+", "\"\"", "+", "decode", ".", "constant", "(", "T_int", ")", "+", "\";n\"", "+", "\"\"", "+", "decode", ".", "constant", "(", "T_boolean", ")", "+", "\";n\"", "+", "\"\"", "+", "decode", ".", "constant", "(", "T_char", ")", "+", "\";n\"", "+", "\"\"", "+", "decode", ".", "constant", "(", "T_float", ")", "+", "\";n\"", "+", "\"\"", "+", "decode", ".", "constant", "(", "T_double", ")", "+", "\";n\"", "+", "\"\"", "+", "decode", ".", "constant", "(", "T_byte", ")", "+", "\";n\"", "+", "\"\"", "+", "decode", ".", "constant", "(", "T_short", ")", "+", "\";n\"", "+", "\"\"", "+", "decode", ".", "constant", "(", "T_long", ")", "+", "\";n\"", "+", "\"\"", "+", "decode", ".", "constant", "(", "T_JavaLangObject", ")", "+", "\";n\"", "+", "\"n\"", ";", "int", "error", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "operators", ".", "length", ";", "i", "++", ")", "{", "int", "operator", "=", "operators", "[", "i", "]", ";", "for", "(", "int", "left", "=", "0", ";", "left", "<", "16", ";", "left", "++", ")", "for", "(", "int", "right", "=", "0", ";", "right", "<", "16", ";", "right", "++", ")", "{", "int", "result", "=", "(", "OperatorSignatures", "[", "operator", "]", "[", "(", "left", "<<", "4", ")", "+", "right", "]", ")", "&", "0x0000F", ";", "if", "(", "result", "!=", "T_undefined", ")", "{", "s", "+=", "\"tt\"", "+", "decode", ".", "type", "(", "result", ")", "+", "\"0\"", "+", "\"", "=", "\"", "+", "decode", ".", "type", "(", "left", ")", ";", "s", "+=", "\"", "\"", "+", "decode", ".", "operator", "(", "operator", ")", "+", "\"", "\"", "+", "decode", ".", "type", "(", "right", ")", "+", "\";n\"", ";", "String", "begin", "=", "result", "==", "T_JavaLangString", "?", "\"ttif", "(!", "\"", ":", "\"ttif", "(", "\"", ";", "String", "test", "=", "result", "==", "T_JavaLangString", "?", "\".equals(\"", ":", "\"", "!=", "(\"", ";", "s", "+=", "begin", "+", "decode", ".", "type", "(", "result", ")", "+", "\"0\"", "+", "test", "+", "decode", ".", "constant", "(", "left", ")", "+", "\"", "\"", "+", "decode", ".", "operator", "(", "operator", ")", "+", "\"", "\"", "+", "decode", ".", "constant", "(", "right", ")", "+", "\"))n\"", ";", "s", "+=", "\"\"", "+", "(", "++", "error", ")", "+", "\");n\"", ";", "}", "}", "}", "return", "s", "+=", "\"\"", ";", "}", "public", "static", "final", "int", "[", "]", "get_AND", "(", ")", "{", "int", "[", "]", "table", "=", "new", "int", "[", "16", "*", "16", "]", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Byte2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Byte2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Short2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Char2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Int2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Short2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_boolean", "<<", "4", ")", "+", "T_boolean", "]", "=", "(", "Boolean2Boolean", "<<", "12", ")", "+", "(", "Boolean2Boolean", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Char2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Int2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "return", "table", ";", "}", "public", "static", "final", "int", "[", "]", "get_AND_AND", "(", ")", "{", "int", "[", "]", "table", "=", "new", "int", "[", "16", "*", "16", "]", ";", "table", "[", "(", "T_boolean", "<<", "4", ")", "+", "T_boolean", "]", "=", "(", "Boolean2Boolean", "<<", "12", ")", "+", "(", "Boolean2Boolean", "<<", "4", ")", "+", "T_boolean", ";", "return", "table", ";", "}", "public", "static", "final", "int", "[", "]", "get_DIVIDE", "(", ")", "{", "return", "get_MINUS", "(", ")", ";", "}", "public", "static", "final", "int", "[", "]", "get_EQUAL_EQUAL", "(", ")", "{", "int", "[", "]", "table", "=", "new", "int", "[", "16", "*", "16", "]", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Byte2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Byte2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Byte2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Byte2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Short2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Long2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Long2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Char2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Int2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Short2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Short2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Short2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "T_JavaLangObject", "<<", "16", ")", "+", "(", "T_JavaLangString", "<<", "12", ")", "+", "(", "T_JavaLangObject", "<<", "8", ")", "+", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_JavaLangObject", "]", "=", "(", "T_JavaLangObject", "<<", "16", ")", "+", "(", "T_JavaLangString", "<<", "12", ")", "+", "(", "T_JavaLangObject", "<<", "8", ")", "+", "(", "T_JavaLangObject", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_null", "]", "=", "(", "T_JavaLangObject", "<<", "16", ")", "+", "(", "T_JavaLangString", "<<", "12", ")", "+", "(", "T_JavaLangObject", "<<", "8", ")", "+", "(", "T_null", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_JavaLangObject", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "T_JavaLangObject", "<<", "16", ")", "+", "(", "T_JavaLangObject", "<<", "12", ")", "+", "(", "T_JavaLangObject", "<<", "8", ")", "+", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_JavaLangObject", "<<", "4", ")", "+", "T_JavaLangObject", "]", "=", "(", "T_JavaLangObject", "<<", "16", ")", "+", "(", "T_JavaLangObject", "<<", "12", ")", "+", "(", "T_JavaLangObject", "<<", "8", ")", "+", "(", "T_JavaLangObject", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_JavaLangObject", "<<", "4", ")", "+", "T_null", "]", "=", "(", "T_JavaLangObject", "<<", "16", ")", "+", "(", "T_JavaLangObject", "<<", "12", ")", "+", "(", "T_JavaLangObject", "<<", "8", ")", "+", "(", "T_null", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Byte2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Long2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Short2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Float2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Char2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Int2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Byte2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Long2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Short2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Float2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Char2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Int2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_boolean", "<<", "4", ")", "+", "T_boolean", "]", "=", "(", "Boolean2Boolean", "<<", "12", ")", "+", "(", "Boolean2Boolean", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Char2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Char2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Char2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Int2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Int2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Int2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_null", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "T_JavaLangObject", "<<", "16", ")", "+", "(", "T_null", "<<", "12", ")", "+", "(", "T_JavaLangObject", "<<", "8", ")", "+", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_null", "<<", "4", ")", "+", "T_JavaLangObject", "]", "=", "(", "T_JavaLangObject", "<<", "16", ")", "+", "(", "T_null", "<<", "12", ")", "+", "(", "T_JavaLangObject", "<<", "8", ")", "+", "(", "T_JavaLangObject", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_null", "<<", "4", ")", "+", "T_null", "]", "=", "(", "T_JavaLangObject", "<<", "16", ")", "+", "(", "T_null", "<<", "12", ")", "+", "(", "T_JavaLangObject", "<<", "8", ")", "+", "(", "T_null", "<<", "4", ")", "+", "T_boolean", ";", "return", "table", ";", "}", "public", "static", "final", "int", "[", "]", "get_GREATER", "(", ")", "{", "return", "get_LESS", "(", ")", ";", "}", "public", "static", "final", "int", "[", "]", "get_GREATER_EQUAL", "(", ")", "{", "return", "get_LESS", "(", ")", ";", "}", "public", "static", "final", "int", "[", "]", "get_LEFT_SHIFT", "(", ")", "{", "int", "[", "]", "table", "=", "new", "int", "[", "16", "*", "16", "]", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Long2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Long2Int", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Long2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Long2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Long2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "return", "table", ";", "}", "public", "static", "final", "int", "[", "]", "get_LESS", "(", ")", "{", "int", "[", "]", "table", "=", "new", "int", "[", "16", "*", "16", "]", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Byte2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Byte2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Byte2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Byte2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Short2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Long2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Long2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Char2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Int2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Short2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Short2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Short2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Byte2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Long2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Short2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Float2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Char2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Int2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Byte2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Long2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Short2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Float2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Char2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Int2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Char2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Char2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Char2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Int2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Int2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Int2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_boolean", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_boolean", ";", "return", "table", ";", "}", "public", "static", "final", "int", "[", "]", "get_LESS_EQUAL", "(", ")", "{", "return", "get_LESS", "(", ")", ";", "}", "public", "static", "final", "int", "[", "]", "get_MINUS", "(", ")", "{", "int", "[", "]", "table", "=", "(", "int", "[", "]", ")", "get_PLUS", "(", ")", ".", "clone", "(", ")", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_byte", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_long", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_short", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_void", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_JavaLangObject", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_double", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_float", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_boolean", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_char", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_int", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_null", "]", "=", "T_undefined", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_void", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_JavaLangObject", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_boolean", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_null", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "T_undefined", ";", "table", "[", "(", "T_null", "<<", "4", ")", "+", "T_null", "]", "=", "T_undefined", ";", "return", "table", ";", "}", "public", "static", "final", "int", "[", "]", "get_MULTIPLY", "(", ")", "{", "return", "get_MINUS", "(", ")", ";", "}", "public", "static", "final", "int", "[", "]", "get_OR", "(", ")", "{", "return", "get_AND", "(", ")", ";", "}", "public", "static", "final", "int", "[", "]", "get_OR_OR", "(", ")", "{", "return", "get_AND_AND", "(", ")", ";", "}", "public", "static", "final", "int", "[", "]", "get_PLUS", "(", ")", "{", "int", "[", "]", "table", "=", "new", "int", "[", "16", "*", "16", "]", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Byte2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "Byte2Byte", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Byte2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Byte2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_byte", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Byte2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Byte2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Short2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Long2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Long2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Char2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_long", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Long2Long", "<<", "12", ")", "+", "(", "Int2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Short2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "Short2Short", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Short2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Short2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_short", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Short2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "Byte2Byte", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_long", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_short", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "Short2Short", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_JavaLangObject", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "Object2Object", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_double", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_float", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_boolean", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "Boolean2Boolean", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_char", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "Char2Char", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_int", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangString", "<<", "4", ")", "+", "T_null", "]", "=", "(", "String2String", "<<", "12", ")", "+", "(", "T_null", "<<", "8", ")", "+", "(", "T_null", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_JavaLangObject", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "Object2Object", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Byte2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Long2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Short2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Float2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Char2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_double", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Double2Double", "<<", "12", ")", "+", "(", "Int2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Byte2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Long2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Short2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Float2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Char2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_float", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Float2Float", "<<", "12", ")", "+", "(", "Int2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_boolean", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "Boolean2Boolean", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Char2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "Char2Char", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Char2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Char2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_char", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Char2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_byte", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Byte2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_long", "]", "=", "(", "Int2Long", "<<", "12", ")", "+", "(", "Long2Long", "<<", "4", ")", "+", "T_long", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_short", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Short2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_double", "]", "=", "(", "Int2Double", "<<", "12", ")", "+", "(", "Double2Double", "<<", "4", ")", "+", "T_double", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_float", "]", "=", "(", "Int2Float", "<<", "12", ")", "+", "(", "Float2Float", "<<", "4", ")", "+", "T_float", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_char", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Char2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_int", "<<", "4", ")", "+", "T_int", "]", "=", "(", "Int2Int", "<<", "12", ")", "+", "(", "Int2Int", "<<", "4", ")", "+", "T_int", ";", "table", "[", "(", "T_null", "<<", "4", ")", "+", "T_JavaLangString", "]", "=", "(", "T_null", "<<", "16", ")", "+", "(", "T_null", "<<", "12", ")", "+", "(", "String2String", "<<", "4", ")", "+", "T_JavaLangString", ";", "return", "table", ";", "}", "public", "static", "final", "int", "[", "]", "get_REMAINDER", "(", ")", "{", "return", "get_MINUS", "(", ")", ";", "}", "public", "static", "final", "int", "[", "]", "get_RIGHT_SHIFT", "(", ")", "{", "return", "get_LEFT_SHIFT", "(", ")", ";", "}", "public", "static", "final", "int", "[", "]", "get_UNSIGNED_RIGHT_SHIFT", "(", ")", "{", "return", "get_LEFT_SHIFT", "(", ")", ";", "}", "public", "static", "final", "int", "[", "]", "get_XOR", "(", ")", "{", "return", "get_AND", "(", ")", ";", "}", "public", "String", "operatorToString", "(", ")", "{", "switch", "(", "(", "this", ".", "bits", "&", "OperatorMASK", ")", ">>", "OperatorSHIFT", ")", "{", "case", "EQUAL_EQUAL", ":", "return", "\"==\"", ";", "case", "LESS_EQUAL", ":", "return", "\"<=\"", ";", "case", "GREATER_EQUAL", ":", "return", "\">=\"", ";", "case", "NOT_EQUAL", ":", "return", "\"!=\"", ";", "case", "LEFT_SHIFT", ":", "return", "\"<<\"", ";", "case", "RIGHT_SHIFT", ":", "return", "\">>\"", ";", "case", "UNSIGNED_RIGHT_SHIFT", ":", "return", "\">>>\"", ";", "case", "OR_OR", ":", "return", "\"||\"", ";", "case", "AND_AND", ":", "return", "\"&&\"", ";", "case", "PLUS", ":", "return", "\"+\"", ";", "case", "MINUS", ":", "return", "\"-\"", ";", "case", "NOT", ":", "return", "\"!\"", ";", "case", "REMAINDER", ":", "return", "\"%\"", ";", "case", "XOR", ":", "return", "\"^\"", ";", "case", "AND", ":", "return", "\"&\"", ";", "case", "MULTIPLY", ":", "return", "\"*\"", ";", "case", "OR", ":", "return", "\"|\"", ";", "case", "TWIDDLE", ":", "return", "\"~\"", ";", "case", "DIVIDE", ":", "return", "\"/\"", ";", "case", "GREATER", ":", "return", "\">\"", ";", "case", "LESS", ":", "return", "\"<\"", ";", "case", "QUESTIONCOLON", ":", "return", "\"?:\"", ";", "case", "EQUAL", ":", "return", "\"=\"", ";", "}", "return", "\"\"", ";", "}", "public", "int", "nullStatus", "(", "FlowInfo", "flowInfo", ")", "{", "return", "FlowInfo", ".", "NON_NULL", ";", "}", "public", "StringBuffer", "printExpression", "(", "int", "indent", ",", "StringBuffer", "output", ")", "{", "output", ".", "append", "(", "'('", ")", ";", "return", "printExpressionNoParenthesis", "(", "0", ",", "output", ")", ".", "append", "(", "')'", ")", ";", "}", "public", "abstract", "StringBuffer", "printExpressionNoParenthesis", "(", "int", "indent", ",", "StringBuffer", "output", ")", ";", "}", "</s>" ]
4,246
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "*", ";", "public", "abstract", "class", "NameReference", "extends", "Reference", "implements", "InvocationSite", "{", "public", "Binding", "binding", ";", "public", "TypeBinding", "actualReceiverType", ";", "public", "NameReference", "(", ")", "{", "this", ".", "bits", "|=", "Binding", ".", "TYPE", "|", "Binding", ".", "VARIABLE", ";", "}", "public", "FieldBinding", "fieldBinding", "(", ")", "{", "return", "(", "FieldBinding", ")", "this", ".", "binding", ";", "}", "public", "boolean", "isSuperAccess", "(", ")", "{", "return", "false", ";", "}", "public", "boolean", "isTypeAccess", "(", ")", "{", "return", "this", ".", "binding", "==", "null", "||", "this", ".", "binding", "instanceof", "ReferenceBinding", ";", "}", "public", "boolean", "isTypeReference", "(", ")", "{", "return", "this", ".", "binding", "instanceof", "ReferenceBinding", ";", "}", "public", "void", "setActualReceiverType", "(", "ReferenceBinding", "receiverType", ")", "{", "if", "(", "receiverType", "==", "null", ")", "return", ";", "this", ".", "actualReceiverType", "=", "receiverType", ";", "}", "public", "void", "setDepth", "(", "int", "depth", ")", "{", "this", ".", "bits", "&=", "~", "DepthMASK", ";", "if", "(", "depth", ">", "0", ")", "{", "this", ".", "bits", "|=", "(", "depth", "&", "0xFF", ")", "<<", "DepthSHIFT", ";", "}", "}", "public", "void", "setFieldIndex", "(", "int", "index", ")", "{", "}", "public", "abstract", "String", "unboundReferenceErrorName", "(", ")", ";", "}", "</s>" ]
4,247
[ "<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>" ]
4,248
[ "<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>" ]
4,249
[ "<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>" ]
4,250
[ "<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>" ]
4,251
[ "<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>" ]
4,252
[ "<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>" ]
4,253
[ "<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>" ]
4,254
[ "<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>" ]
4,255
[ "<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>" ]
4,256
[ "<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", "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>" ]
4,257
[ "<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", ".", "getNumericValue", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", ")", ">", "15", "||", "c1", "<", "0", "||", "(", "c2", "=", "ScannerHelper", ".", "getNumericValue", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", ")", ">", "15", "||", "c2", "<", "0", "||", "(", "c3", "=", "ScannerHelper", ".", "getNumericValue", "(", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", ")", ">", "15", "||", "c3", "<", "0", "||", "(", "c4", "=", "ScannerHelper", ".", "getNumericValue", "(", "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", ".", "getNumericValue", "(", "this", ".", "currentCharacter", ")", ";", "if", "(", "number", ">=", "0", "&&", "number", "<=", "7", ")", "{", "boolean", "zeroToThreeNot", "=", "number", ">", "3", ";", "if", "(", "ScannerHelper", ".", "isDigit", "(", "this", ".", "currentCharacter", "=", "this", ".", "source", "[", "this", ".", "currentPosition", "++", "]", ")", ")", "{", "int", "digit", "=", "ScannerHelper", ".", "getNumericValue", "(", "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", ".", "getNumericValue", "(", "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>" ]
4,258
[ "<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", ".", "getNumericValue", "(", "this", ".", "source", "[", "idx", "++", "]", ")", ")", ">", "15", "||", "c1", "<", "0", ")", "||", "(", "(", "c2", "=", "ScannerHelper", ".", "getNumericValue", "(", "this", ".", "source", "[", "idx", "++", "]", ")", ")", ">", "15", "||", "c2", "<", "0", ")", "||", "(", "(", "c3", "=", "ScannerHelper", ".", "getNumericValue", "(", "this", ".", "source", "[", "idx", "++", "]", ")", ")", ">", "15", "||", "c3", "<", "0", ")", "||", "(", "(", "c4", "=", "ScannerHelper", ".", "getNumericValue", "(", "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", ".", "getNumericValue", "(", "this", ".", "source", "[", "this", ".", "index", "++", "]", ")", ")", ">", "15", "||", "c1", "<", "0", ")", "||", "(", "(", "c2", "=", "ScannerHelper", ".", "getNumericValue", "(", "this", ".", "source", "[", "this", ".", "index", "++", "]", ")", ")", ">", "15", "||", "c2", "<", "0", ")", "||", "(", "(", "c3", "=", "ScannerHelper", ".", "getNumericValue", "(", "this", ".", "source", "[", "this", ".", "index", "++", "]", ")", ")", ">", "15", "||", "c3", "<", "0", ")", "||", "(", "(", "c4", "=", "ScannerHelper", ".", "getNumericValue", "(", "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>" ]
4,259
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "parser", ";", "public", "interface", "ParserBasicInformation", "{", "int", "ERROR_SYMBOL", "=", "110", ",", "MAX_NAME_LENGTH", "=", "41", ",", "NUM_STATES", "=", "1002", ",", "NT_OFFSET", "=", "110", ",", "SCOPE_UBOUND", "=", "137", ",", "SCOPE_SIZE", "=", "138", ",", "LA_STATE_OFFSET", "=", "12446", ",", "MAX_LA", "=", "1", ",", "NUM_RULES", "=", "722", ",", "NUM_TERMINALS", "=", "110", ",", "NUM_NON_TERMINALS", "=", "323", ",", "NUM_SYMBOLS", "=", "433", ",", "START_STATE", "=", "1084", ",", "EOFT_SYMBOL", "=", "69", ",", "EOLT_SYMBOL", "=", "69", ",", "ACCEPT_ACTION", "=", "12445", ",", "ERROR_ACTION", "=", "12446", ";", "}", "</s>" ]
4,260
[ "<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>" ]
4,261
[ "<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>" ]
4,262
[ "<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", "{", "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>" ]
4,263
[ "<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>" ]
4,264
[ "<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>" ]
4,265
[ "<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", ";", "}", "}", "}", "</s>" ]
4,266
[ "<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", ".", "Locale", ";", "import", "java", ".", "util", ".", "MissingResourceException", ";", "import", "java", ".", "util", ".", "ResourceBundle", ";", "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", "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", "=", "\"\"", ";", "private", "final", "static", "String", "READABLE_NAMES_FILE_NAME", "=", "\"\"", "+", "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", "+", "\".properties\"", ",", "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_NAME", ")", ";", "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", "]", ";", "ResourceBundle", "bundle", ";", "try", "{", "bundle", "=", "ResourceBundle", ".", "getBundle", "(", "filename", ",", "Locale", ".", "getDefault", "(", ")", ")", ";", "}", "catch", "(", "MissingResourceException", "e", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", "+", "filename", ".", "replace", "(", "'.'", ",", "'/'", ")", "+", "\"\"", "+", "Locale", ".", "getDefault", "(", ")", ")", ";", "throw", "e", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "NT_OFFSET", "+", "1", ";", "i", "++", ")", "{", "result", "[", "i", "]", "=", "name", "[", "i", "]", ";", "}", "for", "(", "int", "i", "=", "NT_OFFSET", ";", "i", "<", "name", ".", "length", ";", "i", "++", ")", "{", "try", "{", "String", "n", "=", "bundle", ".", "getString", "(", "name", "[", "i", "]", ")", ";", "if", "(", "n", "!=", "null", "&&", "n", ".", "length", "(", ")", ">", "0", ")", "{", "result", "[", "i", "]", "=", "n", ";", "}", "else", "{", "result", "[", "i", "]", "=", "name", "[", "i", "]", ";", "}", "}", "catch", "(", "MissingResourceException", "e", ")", "{", "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", ";", "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", ";", "}", "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", ";", "}", "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", ".", "getNumericValue", "(", "source", "[", "this", ".", "endStatementPosition", "-", "3", "]", ")", ")", ">", "15", "||", "c1", "<", "0", "||", "(", "c2", "=", "ScannerHelper", ".", "getNumericValue", "(", "source", "[", "this", ".", "endStatementPosition", "-", "2", "]", ")", ")", ">", "15", "||", "c2", "<", "0", "||", "(", "c3", "=", "ScannerHelper", ".", "getNumericValue", "(", "source", "[", "this", ".", "endStatementPosition", "-", "1", "]", ")", ")", ">", "15", "||", "c3", "<", "0", "||", "(", "c4", "=", "ScannerHelper", ".", "getNumericValue", "(", "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", ")", "{", "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", ")", ";", "}", "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", "(", "\"\"", ")", ";", "}", "consumeClassInstanceCreationExpressionName", "(", ")", ";", "break", ";", "case", "372", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassBodyopt", "(", ")", ";", "break", ";", "case", "374", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnterAnonymousClassBody", "(", "false", ")", ";", "break", ";", "case", "375", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassBodyopt", "(", ")", ";", "break", ";", "case", "377", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnterAnonymousClassBody", "(", "true", ")", ";", "break", ";", "case", "379", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArgumentList", "(", ")", ";", "break", ";", "case", "380", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArrayCreationHeader", "(", ")", ";", "break", ";", "case", "381", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArrayCreationHeader", "(", ")", ";", "break", ";", "case", "382", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArrayCreationExpressionWithoutInitializer", "(", ")", ";", "break", ";", "case", "383", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArrayCreationExpressionWithInitializer", "(", ")", ";", "break", ";", "case", "384", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArrayCreationExpressionWithoutInitializer", "(", ")", ";", "break", ";", "case", "385", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArrayCreationExpressionWithInitializer", "(", ")", ";", "break", ";", "case", "387", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeDimWithOrWithOutExprs", "(", ")", ";", "break", ";", "case", "389", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeDimWithOrWithOutExpr", "(", ")", ";", "break", ";", "case", "390", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeDims", "(", ")", ";", "break", ";", "case", "393", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeOneDimLoop", "(", ")", ";", "break", ";", "case", "394", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeFieldAccess", "(", "false", ")", ";", "break", ";", "case", "395", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeFieldAccess", "(", "true", ")", ";", "break", ";", "case", "396", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodInvocationName", "(", ")", ";", "break", ";", "case", "397", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodInvocationNameWithTypeArguments", "(", ")", ";", "break", ";", "case", "398", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodInvocationPrimaryWithTypeArguments", "(", ")", ";", "break", ";", "case", "399", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodInvocationPrimary", "(", ")", ";", "break", ";", "case", "400", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodInvocationSuperWithTypeArguments", "(", ")", ";", "break", ";", "case", "401", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodInvocationSuper", "(", ")", ";", "break", ";", "case", "402", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArrayAccess", "(", "true", ")", ";", "break", ";", "case", "403", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArrayAccess", "(", "false", ")", ";", "break", ";", "case", "404", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArrayAccess", "(", "false", ")", ";", "break", ";", "case", "406", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePostfixExpression", "(", ")", ";", "break", ";", "case", "409", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "PLUS", ",", "true", ")", ";", "break", ";", "case", "410", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "MINUS", ",", "true", ")", ";", "break", ";", "case", "411", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumePushPosition", "(", ")", ";", "break", ";", "case", "414", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "PLUS", ")", ";", "break", ";", "case", "415", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "MINUS", ")", ";", "break", ";", "case", "417", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "PLUS", ",", "false", ")", ";", "break", ";", "case", "418", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "MINUS", ",", "false", ")", ";", "break", ";", "case", "420", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "TWIDDLE", ")", ";", "break", ";", "case", "421", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "NOT", ")", ";", "break", ";", "case", "423", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeCastExpressionWithPrimitiveType", "(", ")", ";", "break", ";", "case", "424", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeCastExpressionWithGenericsArray", "(", ")", ";", "break", ";", "case", "425", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeCastExpressionWithQualifiedGenericsArray", "(", ")", ";", "break", ";", "case", "426", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeCastExpressionLL1", "(", ")", ";", "break", ";", "case", "427", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeCastExpressionWithNameArray", "(", ")", ";", "break", ";", "case", "428", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeOnlyTypeArgumentsForCastExpression", "(", ")", ";", "break", ";", "case", "429", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInsideCastExpression", "(", ")", ";", "break", ";", "case", "430", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInsideCastExpressionLL1", "(", ")", ";", "break", ";", "case", "431", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInsideCastExpressionWithQualifiedGenerics", "(", ")", ";", "break", ";", "case", "433", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "MULTIPLY", ")", ";", "break", ";", "case", "434", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "DIVIDE", ")", ";", "break", ";", "case", "435", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "REMAINDER", ")", ";", "break", ";", "case", "437", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "PLUS", ")", ";", "break", ";", "case", "438", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "MINUS", ")", ";", "break", ";", "case", "440", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "LEFT_SHIFT", ")", ";", "break", ";", "case", "441", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "RIGHT_SHIFT", ")", ";", "break", ";", "case", "442", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "UNSIGNED_RIGHT_SHIFT", ")", ";", "break", ";", "case", "444", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "LESS", ")", ";", "break", ";", "case", "445", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "GREATER", ")", ";", "break", ";", "case", "446", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "LESS_EQUAL", ")", ";", "break", ";", "case", "447", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "GREATER_EQUAL", ")", ";", "break", ";", "case", "449", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInstanceOfExpression", "(", ")", ";", "break", ";", "case", "451", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEqualityExpression", "(", "OperatorIds", ".", "EQUAL_EQUAL", ")", ";", "break", ";", "case", "452", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEqualityExpression", "(", "OperatorIds", ".", "NOT_EQUAL", ")", ";", "break", ";", "case", "454", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "AND", ")", ";", "break", ";", "case", "456", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "XOR", ")", ";", "break", ";", "case", "458", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "OR", ")", ";", "break", ";", "case", "460", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "AND_AND", ")", ";", "break", ";", "case", "462", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "OR_OR", ")", ";", "break", ";", "case", "464", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeConditionalExpression", "(", "OperatorIds", ".", "QUESTIONCOLON", ")", ";", "break", ";", "case", "467", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignment", "(", ")", ";", "break", ";", "case", "469", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "ignoreExpressionAssignment", "(", ")", ";", "break", ";", "case", "470", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "EQUAL", ")", ";", "break", ";", "case", "471", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "MULTIPLY", ")", ";", "break", ";", "case", "472", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "DIVIDE", ")", ";", "break", ";", "case", "473", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "REMAINDER", ")", ";", "break", ";", "case", "474", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "PLUS", ")", ";", "break", ";", "case", "475", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "MINUS", ")", ";", "break", ";", "case", "476", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "LEFT_SHIFT", ")", ";", "break", ";", "case", "477", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "RIGHT_SHIFT", ")", ";", "break", ";", "case", "478", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "UNSIGNED_RIGHT_SHIFT", ")", ";", "break", ";", "case", "479", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "AND", ")", ";", "break", ";", "case", "480", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "XOR", ")", ";", "break", ";", "case", "481", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAssignmentOperator", "(", "OR", ")", ";", "break", ";", "case", "485", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyExpression", "(", ")", ";", "break", ";", "case", "490", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyClassBodyDeclarationsopt", "(", ")", ";", "break", ";", "case", "491", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeClassBodyDeclarationsopt", "(", ")", ";", "break", ";", "case", "492", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeDefaultModifiers", "(", ")", ";", "break", ";", "case", "493", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeModifiers", "(", ")", ";", "break", ";", "case", "494", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyBlockStatementsopt", "(", ")", ";", "break", ";", "case", "496", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"Dimsopt", "::=\"", ")", ";", "}", "consumeEmptyDimsopt", "(", ")", ";", "break", ";", "case", "498", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyArgumentListopt", "(", ")", ";", "break", ";", "case", "502", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeFormalParameterListopt", "(", ")", ";", "break", ";", "case", "506", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyInterfaceMemberDeclarationsopt", "(", ")", ";", "break", ";", "case", "507", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInterfaceMemberDeclarationsopt", "(", ")", ";", "break", ";", "case", "508", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeNestedType", "(", ")", ";", "break", ";", "case", "509", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyForInitopt", "(", ")", ";", "break", ";", "case", "511", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyForUpdateopt", "(", ")", ";", "break", ";", "case", "515", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyCatchesopt", "(", ")", ";", "break", ";", "case", "517", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumDeclaration", "(", ")", ";", "break", ";", "case", "518", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumHeader", "(", ")", ";", "break", ";", "case", "519", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumHeaderName", "(", ")", ";", "break", ";", "case", "520", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumHeaderNameWithTypeParameters", "(", ")", ";", "break", ";", "case", "521", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumBodyNoConstants", "(", ")", ";", "break", ";", "case", "522", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumBodyNoConstants", "(", ")", ";", "break", ";", "case", "523", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumBodyWithConstants", "(", ")", ";", "break", ";", "case", "524", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumBodyWithConstants", "(", ")", ";", "break", ";", "case", "526", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumConstants", "(", ")", ";", "break", ";", "case", "527", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumConstantHeaderName", "(", ")", ";", "break", ";", "case", "528", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumConstantHeader", "(", ")", ";", "break", ";", "case", "529", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumConstantWithClassBody", "(", ")", ";", "break", ";", "case", "530", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumConstantNoClassBody", "(", ")", ";", "break", ";", "case", "531", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeArguments", "(", ")", ";", "break", ";", "case", "532", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyArguments", "(", ")", ";", "break", ";", "case", "534", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnumDeclarations", "(", ")", ";", "break", ";", "case", "535", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyEnumDeclarations", "(", ")", ";", "break", ";", "case", "537", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnhancedForStatement", "(", ")", ";", "break", ";", "case", "538", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnhancedForStatement", "(", ")", ";", "break", ";", "case", "539", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnhancedForStatementHeaderInit", "(", "false", ")", ";", "break", ";", "case", "540", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnhancedForStatementHeaderInit", "(", "true", ")", ";", "break", ";", "case", "541", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnhancedForStatementHeader", "(", ")", ";", "break", ";", "case", "542", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeImportDeclaration", "(", ")", ";", "break", ";", "case", "543", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeSingleStaticImportDeclarationName", "(", ")", ";", "break", ";", "case", "544", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeImportDeclaration", "(", ")", ";", "break", ";", "case", "545", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeStaticImportOnDemandDeclarationName", "(", ")", ";", "break", ";", "case", "546", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeArguments", "(", ")", ";", "break", ";", "case", "547", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeOnlyTypeArguments", "(", ")", ";", "break", ";", "case", "549", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeArgumentList1", "(", ")", ";", "break", ";", "case", "551", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeArgumentList", "(", ")", ";", "break", ";", "case", "552", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeArgument", "(", ")", ";", "break", ";", "case", "556", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeReferenceType1", "(", ")", ";", "break", ";", "case", "557", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeArgumentReferenceType1", "(", ")", ";", "break", ";", "case", "559", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeArgumentList2", "(", ")", ";", "break", ";", "case", "562", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeReferenceType2", "(", ")", ";", "break", ";", "case", "563", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeArgumentReferenceType2", "(", ")", ";", "break", ";", "case", "565", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeArgumentList3", "(", ")", ";", "break", ";", "case", "568", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeReferenceType3", "(", ")", ";", "break", ";", "case", "569", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcard", "(", ")", ";", "break", ";", "case", "570", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcardWithBounds", "(", ")", ";", "break", ";", "case", "571", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcardBoundsExtends", "(", ")", ";", "break", ";", "case", "572", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcardBoundsSuper", "(", ")", ";", "break", ";", "case", "573", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcard1", "(", ")", ";", "break", ";", "case", "574", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcard1WithBounds", "(", ")", ";", "break", ";", "case", "575", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcardBounds1Extends", "(", ")", ";", "break", ";", "case", "576", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcardBounds1Super", "(", ")", ";", "break", ";", "case", "577", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcard2", "(", ")", ";", "break", ";", "case", "578", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcard2WithBounds", "(", ")", ";", "break", ";", "case", "579", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcardBounds2Extends", "(", ")", ";", "break", ";", "case", "580", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcardBounds2Super", "(", ")", ";", "break", ";", "case", "581", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcard3", "(", ")", ";", "break", ";", "case", "582", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcard3WithBounds", "(", ")", ";", "break", ";", "case", "583", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcardBounds3Extends", "(", ")", ";", "break", ";", "case", "584", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeWildcardBounds3Super", "(", ")", ";", "break", ";", "case", "585", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeParameterHeader", "(", ")", ";", "break", ";", "case", "586", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeParameters", "(", ")", ";", "break", ";", "case", "588", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeParameterList", "(", ")", ";", "break", ";", "case", "590", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeParameterWithExtends", "(", ")", ";", "break", ";", "case", "591", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeParameterWithExtendsAndBounds", "(", ")", ";", "break", ";", "case", "593", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAdditionalBoundList", "(", ")", ";", "break", ";", "case", "594", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAdditionalBound", "(", ")", ";", "break", ";", "case", "596", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeParameterList1", "(", ")", ";", "break", ";", "case", "597", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeParameter1", "(", ")", ";", "break", ";", "case", "598", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeParameter1WithExtends", "(", ")", ";", "break", ";", "case", "599", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeTypeParameter1WithExtendsAndBounds", "(", ")", ";", "break", ";", "case", "601", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAdditionalBoundList1", "(", ")", ";", "break", ";", "case", "602", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAdditionalBound1", "(", ")", ";", "break", ";", "case", "608", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "PLUS", ")", ";", "break", ";", "case", "609", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "MINUS", ")", ";", "break", ";", "case", "612", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "TWIDDLE", ")", ";", "break", ";", "case", "613", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeUnaryExpression", "(", "OperatorIds", ".", "NOT", ")", ";", "break", ";", "case", "616", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "MULTIPLY", ")", ";", "break", ";", "case", "617", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "MULTIPLY", ")", ";", "break", ";", "case", "618", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "DIVIDE", ")", ";", "break", ";", "case", "619", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "DIVIDE", ")", ";", "break", ";", "case", "620", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "REMAINDER", ")", ";", "break", ";", "case", "621", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "REMAINDER", ")", ";", "break", ";", "case", "623", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "PLUS", ")", ";", "break", ";", "case", "624", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "PLUS", ")", ";", "break", ";", "case", "625", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "MINUS", ")", ";", "break", ";", "case", "626", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "MINUS", ")", ";", "break", ";", "case", "628", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "LEFT_SHIFT", ")", ";", "break", ";", "case", "629", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "LEFT_SHIFT", ")", ";", "break", ";", "case", "630", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "RIGHT_SHIFT", ")", ";", "break", ";", "case", "631", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "RIGHT_SHIFT", ")", ";", "break", ";", "case", "632", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "UNSIGNED_RIGHT_SHIFT", ")", ";", "break", ";", "case", "633", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "UNSIGNED_RIGHT_SHIFT", ")", ";", "break", ";", "case", "635", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "LESS", ")", ";", "break", ";", "case", "636", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "LESS", ")", ";", "break", ";", "case", "637", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "GREATER", ")", ";", "break", ";", "case", "638", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "GREATER", ")", ";", "break", ";", "case", "639", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "LESS_EQUAL", ")", ";", "break", ";", "case", "640", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "LESS_EQUAL", ")", ";", "break", ";", "case", "641", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "GREATER_EQUAL", ")", ";", "break", ";", "case", "642", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "GREATER_EQUAL", ")", ";", "break", ";", "case", "644", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInstanceOfExpressionWithName", "(", ")", ";", "break", ";", "case", "645", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeInstanceOfExpression", "(", ")", ";", "break", ";", "case", "647", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEqualityExpression", "(", "OperatorIds", ".", "EQUAL_EQUAL", ")", ";", "break", ";", "case", "648", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEqualityExpressionWithName", "(", "OperatorIds", ".", "EQUAL_EQUAL", ")", ";", "break", ";", "case", "649", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEqualityExpression", "(", "OperatorIds", ".", "NOT_EQUAL", ")", ";", "break", ";", "case", "650", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEqualityExpressionWithName", "(", "OperatorIds", ".", "NOT_EQUAL", ")", ";", "break", ";", "case", "652", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "AND", ")", ";", "break", ";", "case", "653", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "AND", ")", ";", "break", ";", "case", "655", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "XOR", ")", ";", "break", ";", "case", "656", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "XOR", ")", ";", "break", ";", "case", "658", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "OR", ")", ";", "break", ";", "case", "659", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "OR", ")", ";", "break", ";", "case", "661", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "AND_AND", ")", ";", "break", ";", "case", "662", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "AND_AND", ")", ";", "break", ";", "case", "664", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpression", "(", "OperatorIds", ".", "OR_OR", ")", ";", "break", ";", "case", "665", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeBinaryExpressionWithName", "(", "OperatorIds", ".", "OR_OR", ")", ";", "break", ";", "case", "667", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeConditionalExpression", "(", "OperatorIds", ".", "QUESTIONCOLON", ")", ";", "break", ";", "case", "668", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeConditionalExpressionWithName", "(", "OperatorIds", ".", "QUESTIONCOLON", ")", ";", "break", ";", "case", "672", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAnnotationTypeDeclarationHeaderName", "(", ")", ";", "break", ";", "case", "673", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAnnotationTypeDeclarationHeaderNameWithTypeParameters", "(", ")", ";", "break", ";", "case", "674", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAnnotationTypeDeclarationHeaderNameWithTypeParameters", "(", ")", ";", "break", ";", "case", "675", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAnnotationTypeDeclarationHeaderName", "(", ")", ";", "break", ";", "case", "676", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAnnotationTypeDeclarationHeader", "(", ")", ";", "break", ";", "case", "677", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAnnotationTypeDeclaration", "(", ")", ";", "break", ";", "case", "679", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyAnnotationTypeMemberDeclarationsopt", "(", ")", ";", "break", ";", "case", "680", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAnnotationTypeMemberDeclarationsopt", "(", ")", ";", "break", ";", "case", "682", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAnnotationTypeMemberDeclarations", "(", ")", ";", "break", ";", "case", "683", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodHeaderNameWithTypeParameters", "(", "true", ")", ";", "break", ";", "case", "684", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodHeaderName", "(", "true", ")", ";", "break", ";", "case", "685", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyMethodHeaderDefaultValue", "(", ")", ";", "break", ";", "case", "686", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodHeaderDefaultValue", "(", ")", ";", "break", ";", "case", "687", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodHeader", "(", ")", ";", "break", ";", "case", "688", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAnnotationTypeMemberDeclaration", "(", ")", ";", "break", ";", "case", "696", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeAnnotationName", "(", ")", ";", "break", ";", "case", "697", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeNormalAnnotation", "(", ")", ";", "break", ";", "case", "698", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyMemberValuePairsopt", "(", ")", ";", "break", ";", "case", "701", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMemberValuePairs", "(", ")", ";", "break", ";", "case", "702", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMemberValuePair", "(", ")", ";", "break", ";", "case", "703", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnterMemberValue", "(", ")", ";", "break", ";", "case", "704", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeExitMemberValue", "(", ")", ";", "break", ";", "case", "706", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMemberValueAsName", "(", ")", ";", "break", ";", "case", "709", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMemberValueArrayInitializer", "(", ")", ";", "break", ";", "case", "710", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMemberValueArrayInitializer", "(", ")", ";", "break", ";", "case", "711", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyMemberValueArrayInitializer", "(", ")", ";", "break", ";", "case", "712", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEmptyMemberValueArrayInitializer", "(", ")", ";", "break", ";", "case", "713", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeEnterMemberValueArrayInitializer", "(", ")", ";", "break", ";", "case", "715", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMemberValues", "(", ")", ";", "break", ";", "case", "716", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMarkerAnnotation", "(", ")", ";", "break", ";", "case", "717", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeSingleMemberAnnotationMemberValue", "(", ")", ";", "break", ";", "case", "718", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeSingleMemberAnnotation", "(", ")", ";", "break", ";", "case", "719", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeRecoveryMethodHeaderNameWithTypeParameters", "(", ")", ";", "break", ";", "case", "720", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeRecoveryMethodHeaderName", "(", ")", ";", "break", ";", "case", "721", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodHeader", "(", ")", ";", "break", ";", "case", "722", ":", "if", "(", "DEBUG", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "consumeMethodHeader", "(", ")", ";", "break", ";", "}", "}", "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", ".", "getNumericValue", "(", "comment", "[", "index", "[", "0", "]", "++", "]", ")", ")", ">", "15", "||", "c1", "<", "0", ")", "||", "(", "(", "c2", "=", "ScannerHelper", ".", "getNumericValue", "(", "comment", "[", "index", "[", "0", "]", "++", "]", ")", ")", ">", "15", "||", "c2", "<", "0", ")", "||", "(", "(", "c3", "=", "ScannerHelper", ".", "getNumericValue", "(", "comment", "[", "index", "[", "0", "]", "++", "]", ")", ")", ">", "15", "||", "c3", "<", "0", ")", "||", "(", "(", "c4", "=", "ScannerHelper", ".", "getNumericValue", "(", "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", ")", "return", "false", ";", "if", "(", "source", "[", "charPos", "]", "!=", "commentPrefixTag", "[", "iTag", "]", ")", "return", "false", ";", "}", "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", ")", "{", "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", ";", "}", "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", ".", "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>" ]
4,267
[ "<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>" ]
4,268
[ "<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>" ]
4,269
[ "<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", ".", "getNumericValue", "(", "this", ".", "source", "[", "this", ".", "index", "++", "]", ")", ")", ">", "15", "||", "c1", "<", "0", ")", "||", "(", "(", "c2", "=", "ScannerHelper", ".", "getNumericValue", "(", "this", ".", "source", "[", "this", ".", "index", "++", "]", ")", ")", ">", "15", "||", "c2", "<", "0", ")", "||", "(", "(", "c3", "=", "ScannerHelper", ".", "getNumericValue", "(", "this", ".", "source", "[", "this", ".", "index", "++", "]", ")", ")", ">", "15", "||", "c3", "<", "0", ")", "||", "(", "(", "c4", "=", "ScannerHelper", ".", "getNumericValue", "(", "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>" ]
4,270
[ "<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", ";", "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>" ]
4,271
[ "<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>" ]
4,272
[ "<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>" ]
4,273
[ "<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>" ]
4,274
[ "<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>" ]
4,275
[ "<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", ".", "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", ".", "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", ".", "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", ":", "return", "CompilerOptions", ".", "PotentialNullReference", ";", "case", "IProblem", ".", "RedundantLocalVariableNullAssignment", ":", "case", "IProblem", ".", "RedundantNullCheckOnNonNullLocalVariable", ":", "case", "IProblem", ".", "RedundantNullCheckOnNullLocalVariable", ":", "case", "IProblem", ".", "NonNullLocalVariableComparisonYieldsFalse", ":", "case", "IProblem", ".", "NullLocalVariableComparisonYieldsFalse", ":", "case", "IProblem", ".", "NullLocalVariableInstanceofYieldsFalse", ":", "return", "CompilerOptions", ".", "RedundantNullCheck", ";", "case", "IProblem", ".", "BoxingConversion", ":", "case", "IProblem", ".", "UnboxingConversion", ":", "return", "CompilerOptions", ".", "AutoBoxing", ";", "case", "IProblem", ".", "MissingEnumConstantCase", ":", "return", "CompilerOptions", ".", "IncompleteEnumSwitch", ";", "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", ".", "RedundantSpecificationOfTypeArguments", ":", "return", "CompilerOptions", ".", "RedundantSpecificationOfTypeArguments", ";", "}", "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", ":", "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", ".", "IncompleteEnumSwitch", ":", "case", "CompilerOptions", ".", "FallthroughCase", ":", "case", "CompilerOptions", ".", "OverridingMethodWithoutSuperInvocation", ":", "case", "CompilerOptions", ".", "ComparingIdentical", ":", "case", "CompilerOptions", ".", "MissingSynchronizedModifierInInheritedMethod", ":", "case", "CompilerOptions", ".", "ShouldImplementHashcode", ":", "case", "CompilerOptions", ".", "DeadCode", ":", "case", "CompilerOptions", ".", "UnusedObjectAllocation", ":", "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", ";", "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", ";", "this", ".", "handle", "(", "IProblem", ".", "DuplicateTypes", ",", "arguments", ",", "arguments", ",", "typeDecl", ".", "sourceStart", ",", "typeDecl", ".", "sourceEnd", ",", "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", "{", "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", ".", "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", ".", "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", "=", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "NonNullLocalVariableComparisonYieldsFalse", ",", "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", "=", "new", "String", "[", "]", "{", "new", "String", "(", "local", ".", "name", ")", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "RedundantNullCheckOnNonNullLocalVariable", ",", "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", "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", "(", "IProblem", ".", "MissingEnumConstantCase", ",", "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", "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", ")", "{", "String", "[", "]", "arguments", "=", "new", "String", "[", "]", "{", "CharOperation", ".", "toString", "(", "compUnitDecl", ".", "compilationResult", ".", "compilationUnit", ".", "getPackageName", "(", ")", ")", ",", "compUnitDecl", ".", "currentPackage", "==", "null", "?", "\"\"", ":", "CharOperation", ".", "toString", "(", "compUnitDecl", ".", "currentPackage", ".", "tokens", ")", ",", "}", ";", "this", ".", "handle", "(", "IProblem", ".", "PackageIsNotExpectedPackage", ",", "arguments", ",", "arguments", ",", "compUnitDecl", ".", "currentPackage", "==", "null", "?", "0", ":", "compUnitDecl", ".", "currentPackage", ".", "sourceStart", ",", "compUnitDecl", ".", "currentPackage", "==", "null", "?", "0", ":", "compUnitDecl", ".", "currentPackage", ".", "sourceEnd", ")", ";", "}", "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", "(", "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", "(", "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", "(", "IProblem", ".", "UninitializedLocalVariable", ",", "arguments", ",", "arguments", ",", "nodeSourceStart", "(", "binding", ",", "location", ")", ",", "nodeSourceEnd", "(", "binding", ",", "location", ")", ")", ";", "}", "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", ";", "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", ";", "}", "}", "}", "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", ";", "}", "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", ")", ";", "}", "public", "void", "unusedPrivateType", "(", "TypeDeclaration", "typeDecl", ")", "{", "int", "severity", "=", "computeSeverity", "(", "IProblem", ".", "UnusedPrivateType", ")", ";", "if", "(", "severity", "==", "ProblemSeverities", ".", "Ignore", ")", "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", ")", ";", "}", "}", "}", "</s>" ]
4,276
[ "<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>" ]
4,277
[ "<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>" ]
4,278
[ "<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>" ]
4,279
[ "<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>" ]
4,280
[ "<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>" ]
4,281
[ "<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>" ]
4,282
[ "<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", ".", "internal", ".", "compiler", ".", "CompilationResult", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "IErrorHandlingPolicy", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "IProblemFactory", ";", "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", "(", "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", ":", "record", "(", "problem", ",", "unitResult", ",", "referenceContext", ")", ";", "if", "(", "(", "severity", "&", "ProblemSeverities", ".", "Fatal", ")", "!=", "0", ")", "{", "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", ")", ";", "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", ")", "{", "unitResult", ".", "record", "(", "problem", ",", "referenceContext", ")", ";", "}", "public", "void", "record", "(", "CategorizedProblem", "problem", ",", "CompilationResult", "unitResult", ",", "ReferenceContext", "referenceContext", ",", "boolean", "b", ")", "{", "record", "(", "problem", ",", "unitResult", ",", "referenceContext", ")", ";", "}", "}", "</s>" ]
4,283
[ "<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>" ]
4,284
[ "<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>" ]
4,285
[ "<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", ".", "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", ".", "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", ";", "Expression", "[", "]", "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", ".", "parent", ";", "while", "(", "context", "!=", "null", ")", "{", "context", ".", "removeFinalAssignmentIfAny", "(", "this", ".", "finalAssignments", "[", "i", "]", ")", ";", "context", "=", "context", ".", "parent", ";", "}", "}", "}", "}", "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", "]", ";", "Expression", "expression", "=", "this", ".", "nullReferences", "[", "i", "]", ";", "switch", "(", "this", ".", "nullCheckTypes", "[", "i", "]", ")", "{", "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", "]", "==", "(", "CAN_ONLY_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ")", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNonNull", "(", "local", ",", "expression", ")", ";", "}", "}", "else", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNonNullComparedToNull", "(", "local", ",", "expression", ")", ";", "}", "}", "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", "]", "==", "(", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ")", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNonNull", "(", "local", ",", "expression", ")", ";", "}", "}", "else", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNonNullComparedToNull", "(", "local", ",", "expression", ")", ";", "}", "}", "continue", ";", "}", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "this", ".", "nullReferences", "[", "i", "]", "=", "null", ";", "if", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "==", "(", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NULL", ")", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNull", "(", "local", ",", "expression", ")", ";", "}", "}", "else", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullComparedToNonNull", "(", "local", ",", "expression", ")", ";", "}", "}", "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", ":", "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", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "expression", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "expression", ")", ";", "continue", ";", "}", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNull", "(", "local", ",", "expression", ")", ";", "}", "continue", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "expression", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "expression", ")", ";", "continue", ";", "}", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "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", ")", "==", "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", ")", "==", "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", ",", "expression", ")", ";", "continue", ";", "}", "break", ";", "default", ":", "}", "this", ".", "parent", ".", "recordUsingNullReference", "(", "scope", ",", "local", ",", "expression", ",", "this", ".", "nullCheckTypes", "[", "i", "]", ",", "flowInfo", ")", ";", "}", "}", "else", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "nullCount", ";", "i", "++", ")", "{", "Expression", "expression", "=", "this", ".", "nullReferences", "[", "i", "]", ";", "LocalVariableBinding", "local", "=", "this", ".", "nullLocals", "[", "i", "]", ";", "switch", "(", "this", ".", "nullCheckTypes", "[", "i", "]", ")", "{", "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", "]", "==", "(", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ")", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNonNull", "(", "local", ",", "expression", ")", ";", "}", "}", "else", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNonNullComparedToNull", "(", "local", ",", "expression", ")", ";", "}", "}", "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", ":", "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", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "expression", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "expression", ")", ";", "continue", ";", "}", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNull", "(", "local", ",", "expression", ")", ";", "}", "continue", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "expression", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "expression", ")", ";", "continue", ";", "}", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "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", ")", "==", "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", ")", "==", "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", ",", "expression", ")", ";", "continue", ";", "}", "if", "(", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", ")", "{", "this", ".", "nullReferences", "[", "i", "]", "=", "null", ";", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "expression", ")", ";", "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", ",", "Expression", "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", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "nullLocals", ",", "0", ",", "this", ".", "nullLocals", "=", "new", "LocalVariableBinding", "[", "this", ".", "nullCount", "*", "2", "]", ",", "0", ",", "this", ".", "nullCount", ")", ";", "System", ".", "arraycopy", "(", "this", ".", "nullReferences", ",", "0", ",", "this", ".", "nullReferences", "=", "new", "Expression", "[", "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", "void", "recordUsingNullReference", "(", "Scope", "scope", ",", "LocalVariableBinding", "local", ",", "Expression", "reference", ",", "int", "checkType", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", "||", "flowInfo", ".", "isDefinitelyUnknown", "(", "local", ")", ")", "{", "return", ";", "}", "switch", "(", "checkType", ")", "{", "case", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NULL", ":", "case", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ":", "if", "(", "flowInfo", ".", "isDefinitelyNonNull", "(", "local", ")", ")", "{", "if", "(", "checkType", "==", "(", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ")", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNonNull", "(", "local", ",", "reference", ")", ";", "}", "if", "(", "!", "flowInfo", ".", "isMarkedAsNullOrNonNullInAssertExpression", "(", "local", ")", ")", "{", "flowInfo", ".", "initsWhenFalse", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "}", "else", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNonNullComparedToNull", "(", "local", ",", "reference", ")", ";", "}", "if", "(", "!", "flowInfo", ".", "isMarkedAsNullOrNonNullInAssertExpression", "(", "local", ")", ")", "{", "flowInfo", ".", "initsWhenTrue", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "}", "}", "else", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "if", "(", "checkType", "==", "(", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NULL", ")", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNull", "(", "local", ",", "reference", ")", ";", "}", "if", "(", "!", "flowInfo", ".", "isMarkedAsNullOrNonNullInAssertExpression", "(", "local", ")", ")", "{", "flowInfo", ".", "initsWhenFalse", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "}", "else", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullComparedToNonNull", "(", "local", ",", "reference", ")", ";", "}", "if", "(", "!", "flowInfo", ".", "isMarkedAsNullOrNonNullInAssertExpression", "(", "local", ")", ")", "{", "flowInfo", ".", "initsWhenTrue", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "}", "}", "else", "if", "(", "this", ".", "upstreamNullFlowInfo", ".", "isDefinitelyNonNull", "(", "local", ")", "&&", "!", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", "&&", "!", "flowInfo", ".", "isPotentiallyUnknown", "(", "local", ")", ")", "{", "flowInfo", ".", "markAsDefinitelyNonNull", "(", "local", ")", ";", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "recordNullReference", "(", "local", ",", "reference", ",", "checkType", ")", ";", "}", "}", "else", "if", "(", "flowInfo", ".", "cannotBeDefinitelyNullOrNonNull", "(", "local", ")", ")", "{", "return", ";", "}", "else", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "if", "(", "flowInfo", ".", "isPotentiallyNonNull", "(", "local", ")", ")", "{", "recordNullReference", "(", "local", ",", "reference", ",", "CAN_ONLY_NON_NULL", "|", "checkType", "&", "CONTEXT_MASK", ")", ";", "}", "else", "if", "(", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", ")", "{", "recordNullReference", "(", "local", ",", "reference", ",", "CAN_ONLY_NULL", "|", "checkType", "&", "CONTEXT_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", ":", "if", "(", "flowInfo", ".", "isPotentiallyNonNull", "(", "local", ")", "||", "flowInfo", ".", "isPotentiallyUnknown", "(", "local", ")", "||", "flowInfo", ".", "isProtectedNonNull", "(", "local", ")", ")", "{", "return", ";", "}", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "switch", "(", "checkType", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "if", "(", "(", "(", "checkType", "&", "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", ")", ";", "}", "if", "(", "!", "flowInfo", ".", "isMarkedAsNullOrNonNullInAssertExpression", "(", "local", ")", ")", "{", "flowInfo", ".", "initsWhenFalse", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "return", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "checkType", "&", "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", "(", ")", ".", "localVariableNullComparedToNonNull", "(", "local", ",", "reference", ")", ";", "}", "if", "(", "!", "flowInfo", ".", "isMarkedAsNullOrNonNullInAssertExpression", "(", "local", ")", ")", "{", "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", "(", "checkType", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "if", "(", "(", "(", "checkType", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "reference", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "break", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "checkType", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "reference", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "break", ";", "}", "}", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", "||", "(", "checkType", "&", "CONTEXT_MASK", ")", "==", "FlowContext", ".", "IN_ASSIGNMENT", "||", "(", "checkType", "&", "CONTEXT_MASK", ")", "==", "FlowContext", ".", "IN_INSTANCEOF", ")", "{", "recordNullReference", "(", "local", ",", "reference", ",", "checkType", ")", ";", "}", "return", ";", "case", "MAY_NULL", ":", "if", "(", "flowInfo", ".", "isDefinitelyNonNull", "(", "local", ")", ")", "{", "return", ";", "}", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "if", "(", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "recordNullReference", "(", "local", ",", "reference", ",", "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", ";", "}", "}", "</s>" ]
4,286
[ "<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", "markedAsNullOrNonNullInAssertExpression", "(", "LocalVariableBinding", "local", ")", "{", "this", ".", "initsWhenTrue", ".", "markedAsNullOrNonNullInAssertExpression", "(", "local", ")", ";", "this", ".", "initsWhenFalse", ".", "markedAsNullOrNonNullInAssertExpression", "(", "local", ")", ";", "}", "public", "boolean", "isMarkedAsNullOrNonNullInAssertExpression", "(", "LocalVariableBinding", "local", ")", "{", "return", "(", "this", ".", "initsWhenTrue", ".", "isMarkedAsNullOrNonNullInAssertExpression", "(", "local", ")", "||", "this", ".", "initsWhenFalse", ".", "isMarkedAsNullOrNonNullInAssertExpression", "(", "local", ")", ")", ";", "}", "public", "void", "resetAssignmentInfo", "(", "LocalVariableBinding", "local", ")", "{", "this", ".", "initsWhenTrue", ".", "resetAssignmentInfo", "(", "local", ")", ";", "this", ".", "initsWhenFalse", ".", "resetAssignmentInfo", "(", "local", ")", ";", "}", "}", "</s>" ]
4,287
[ "<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>" ]
4,288
[ "<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", ".", "AbstractMethodDeclaration", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "ASTNode", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "ast", ".", "Expression", ";", "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", "static", "final", "int", "DEFER_NULL_DIAGNOSTIC", "=", "0x1", ";", "public", "static", "final", "int", "PREEMPT_NULL_DIAGNOSTIC", "=", "0x2", ";", "public", "static", "final", "int", "HIDE_NULL_COMPARISON_WARNING", "=", "0x4", ";", "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", "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", ";", "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", ".", "parent", ";", "}", "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", ".", "parent", ";", "}", "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", ".", "parent", ":", "exceptionContext", ".", "initializationParent", ";", "}", "else", "{", "current", "=", "current", ".", "parent", ";", "}", "}", "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", ".", "parent", ";", "}", "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", ".", "parent", ";", "}", "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", ".", "parent", ";", "}", "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", ".", "parent", ";", "}", "return", "null", ";", "}", "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", ")", "{", "}", "protected", "boolean", "recordFinalAssignment", "(", "VariableBinding", "variable", ",", "Reference", "finalReference", ")", "{", "return", "true", ";", "}", "protected", "void", "recordNullReference", "(", "LocalVariableBinding", "local", ",", "Expression", "expression", ",", "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", ".", "parent", ";", "}", "}", "}", "public", "void", "recordUsingNullReference", "(", "Scope", "scope", ",", "LocalVariableBinding", "local", ",", "Expression", "reference", ",", "int", "checkType", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "!=", "0", "||", "flowInfo", ".", "isDefinitelyUnknown", "(", "local", ")", ")", "{", "return", ";", "}", "switch", "(", "checkType", ")", "{", "case", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NULL", ":", "case", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ":", "if", "(", "flowInfo", ".", "isDefinitelyNonNull", "(", "local", ")", ")", "{", "if", "(", "checkType", "==", "(", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ")", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNonNull", "(", "local", ",", "reference", ")", ";", "}", "if", "(", "!", "flowInfo", ".", "isMarkedAsNullOrNonNullInAssertExpression", "(", "local", ")", ")", "{", "flowInfo", ".", "initsWhenFalse", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "}", "else", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNonNullComparedToNull", "(", "local", ",", "reference", ")", ";", "}", "if", "(", "!", "flowInfo", ".", "isMarkedAsNullOrNonNullInAssertExpression", "(", "local", ")", ")", "{", "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", ":", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "switch", "(", "checkType", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "if", "(", "(", "(", "checkType", "&", "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", ")", ";", "}", "if", "(", "!", "flowInfo", ".", "isMarkedAsNullOrNonNullInAssertExpression", "(", "local", ")", ")", "{", "flowInfo", ".", "initsWhenFalse", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "return", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "checkType", "&", "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", "(", ")", ".", "localVariableNullComparedToNonNull", "(", "local", ",", "reference", ")", ";", "}", "if", "(", "!", "flowInfo", ".", "isMarkedAsNullOrNonNullInAssertExpression", "(", "local", ")", ")", "{", "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", "(", "checkType", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "if", "(", "(", "(", "checkType", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "reference", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "break", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "checkType", "&", "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", ",", "reference", ")", ";", "return", ";", "}", "if", "(", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "break", ";", "default", ":", "}", "if", "(", "this", ".", "parent", "!=", "null", ")", "{", "this", ".", "parent", ".", "recordUsingNullReference", "(", "scope", ",", "local", ",", "reference", ",", "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", "(", ")", ";", "}", "}", "</s>" ]
4,289
[ "<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", "int", "[", "]", "nullStatusChangedInAssert", ";", "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", ";", "}", "}", "}", "}", "combineNullStatusChangeInAssertInfo", "(", "otherInits", ")", ";", "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", ";", "}", "}", "}", "}", "combineNullStatusChangeInAssertInfo", "(", "otherInits", ")", ";", "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", "]", ";", "}", "}", "}", "copy", ".", "nullStatusChangedInAssert", "=", "this", ".", "nullStatusChangedInAssert", ";", "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", "[", "0", "]", ".", "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", "[", "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", ";", "}", "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", "[", "0", "]", ".", "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", "[", "0", "]", ".", "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", "[", "0", "]", ".", "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", "[", "0", "]", ".", "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\"", ")", ";", "}", "}", "combineNullStatusChangeInAssertInfo", "(", "otherInits", ")", ";", "return", "this", ";", "}", "if", "(", "(", "this", ".", "tagBits", "&", "UNREACHABLE_OR_DEAD", ")", "!=", "0", ")", "{", "if", "(", "COVERAGE_TEST_FLAG", ")", "{", "if", "(", "CoverageTestId", "==", "29", ")", "{", "throw", "new", "AssertionFailedException", "(", "\"COVERAGE", "29\"", ")", ";", "}", "}", "otherInits", ".", "combineNullStatusChangeInAssertInfo", "(", "this", ")", ";", "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", ";", "}", "}", "}", "}", "combineNullStatusChangeInAssertInfo", "(", "otherInits", ")", ";", "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", ";", "copy", ".", "nullStatusChangedInAssert", "=", "this", ".", "nullStatusChangedInAssert", ";", "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", ";", "}", "copy", ".", "nullStatusChangedInAssert", "=", "this", ".", "nullStatusChangedInAssert", ";", "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", "markedAsNullOrNonNullInAssertExpression", "(", "LocalVariableBinding", "local", ")", "{", "int", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ";", "int", "oldLength", ";", "if", "(", "this", ".", "nullStatusChangedInAssert", "==", "null", ")", "{", "this", ".", "nullStatusChangedInAssert", "=", "new", "int", "[", "position", "+", "1", "]", ";", "}", "else", "{", "if", "(", "position", ">=", "(", "oldLength", "=", "this", ".", "nullStatusChangedInAssert", ".", "length", ")", ")", "{", "System", ".", "arraycopy", "(", "this", ".", "nullStatusChangedInAssert", ",", "0", ",", "(", "this", ".", "nullStatusChangedInAssert", "=", "new", "int", "[", "position", "+", "1", "]", ")", ",", "0", ",", "oldLength", ")", ";", "}", "}", "this", ".", "nullStatusChangedInAssert", "[", "position", "]", "=", "1", ";", "}", "public", "boolean", "isMarkedAsNullOrNonNullInAssertExpression", "(", "LocalVariableBinding", "local", ")", "{", "int", "position", "=", "local", ".", "id", "+", "this", ".", "maxFieldCount", ";", "if", "(", "this", ".", "nullStatusChangedInAssert", "==", "null", "||", "position", ">=", "this", ".", "nullStatusChangedInAssert", ".", "length", ")", "{", "return", "false", ";", "}", "if", "(", "this", ".", "nullStatusChangedInAssert", "[", "position", "]", "==", "1", ")", "{", "return", "true", ";", "}", "return", "false", ";", "}", "private", "void", "combineNullStatusChangeInAssertInfo", "(", "UnconditionalFlowInfo", "otherInits", ")", "{", "if", "(", "this", ".", "nullStatusChangedInAssert", "!=", "null", "||", "otherInits", ".", "nullStatusChangedInAssert", "!=", "null", ")", "{", "int", "mergedLength", ",", "length", ";", "if", "(", "this", ".", "nullStatusChangedInAssert", "!=", "null", ")", "{", "if", "(", "otherInits", ".", "nullStatusChangedInAssert", "!=", "null", ")", "{", "if", "(", "otherInits", ".", "nullStatusChangedInAssert", ".", "length", ">", "this", ".", "nullStatusChangedInAssert", ".", "length", ")", "{", "mergedLength", "=", "otherInits", ".", "nullStatusChangedInAssert", ".", "length", ";", "length", "=", "this", ".", "nullStatusChangedInAssert", ".", "length", ";", "System", ".", "arraycopy", "(", "this", ".", "nullStatusChangedInAssert", ",", "0", ",", "(", "this", ".", "nullStatusChangedInAssert", "=", "new", "int", "[", "mergedLength", "]", ")", ",", "0", ",", "length", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "this", ".", "nullStatusChangedInAssert", "[", "i", "]", "|=", "otherInits", ".", "nullStatusChangedInAssert", "[", "i", "]", ";", "}", "System", ".", "arraycopy", "(", "otherInits", ".", "nullStatusChangedInAssert", ",", "length", ",", "this", ".", "nullStatusChangedInAssert", ",", "length", ",", "mergedLength", "-", "length", ")", ";", "}", "else", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "otherInits", ".", "nullStatusChangedInAssert", ".", "length", ";", "i", "++", ")", "{", "this", ".", "nullStatusChangedInAssert", "[", "i", "]", "|=", "otherInits", ".", "nullStatusChangedInAssert", "[", "i", "]", ";", "}", "}", "}", "}", "else", "if", "(", "otherInits", ".", "nullStatusChangedInAssert", "!=", "null", ")", "{", "this", ".", "nullStatusChangedInAssert", "=", "otherInits", ".", "nullStatusChangedInAssert", ";", "}", "}", "}", "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>" ]
4,290
[ "<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>" ]
4,291
[ "<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>" ]
4,292
[ "<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", ".", "parent", ";", "while", "(", "current", "!=", "null", ")", "{", "char", "[", "]", "currentLabelName", ";", "if", "(", "(", "(", "currentLabelName", "=", "current", ".", "labelName", "(", ")", ")", "!=", "null", ")", "&&", "CharOperation", ".", "equals", "(", "currentLabelName", ",", "this", ".", "labelName", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "alreadyDefinedLabel", "(", "this", ".", "labelName", ",", "this", ".", "associatedNode", ")", ";", "}", "current", "=", "current", ".", "parent", ";", "}", "}", "public", "String", "individualToString", "(", ")", "{", "return", "\"\"", "+", "String", ".", "valueOf", "(", "this", ".", "labelName", ")", "+", "\"]\"", ";", "}", "public", "char", "[", "]", "labelName", "(", ")", "{", "return", "this", ".", "labelName", ";", "}", "}", "</s>" ]
4,293
[ "<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", ".", "TypeIds", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "lookup", ".", "VariableBinding", ";", "public", "class", "FinallyFlowContext", "extends", "FlowContext", "{", "Reference", "[", "]", "finalAssignments", ";", "VariableBinding", "[", "]", "finalVariables", ";", "int", "assignCount", ";", "LocalVariableBinding", "[", "]", "nullLocals", ";", "Expression", "[", "]", "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", ".", "parent", ";", "while", "(", "currentContext", "!=", "null", ")", "{", "currentContext", ".", "removeFinalAssignmentIfAny", "(", "this", ".", "finalAssignments", "[", "i", "]", ")", ";", "currentContext", "=", "currentContext", ".", "parent", ";", "}", "}", "}", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "DEFER_NULL_DIAGNOSTIC", ")", "!=", "0", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "nullCount", ";", "i", "++", ")", "{", "this", ".", "parent", ".", "recordUsingNullReference", "(", "scope", ",", "this", ".", "nullLocals", "[", "i", "]", ",", "this", ".", "nullReferences", "[", "i", "]", ",", "this", ".", "nullCheckTypes", "[", "i", "]", ",", "flowInfo", ")", ";", "}", "}", "else", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "nullCount", ";", "i", "++", ")", "{", "Expression", "expression", "=", "this", ".", "nullReferences", "[", "i", "]", ";", "LocalVariableBinding", "local", "=", "this", ".", "nullLocals", "[", "i", "]", ";", "switch", "(", "this", ".", "nullCheckTypes", "[", "i", "]", ")", "{", "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", "]", "==", "(", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ")", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNonNull", "(", "local", ",", "expression", ")", ";", "}", "}", "else", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNonNullComparedToNull", "(", "local", ",", "expression", ")", ";", "}", "}", "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", ":", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "switch", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "if", "(", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "expression", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "expression", ")", ";", "continue", ";", "}", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNull", "(", "local", ",", "expression", ")", ";", "}", "continue", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "this", ".", "nullCheckTypes", "[", "i", "]", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "expression", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNullReference", "(", "local", ",", "expression", ")", ";", "continue", ";", "}", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "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", ")", "==", "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", ")", "==", "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", ",", "expression", ")", ";", "continue", ";", "}", "if", "(", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "expression", ")", ";", "}", "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", ",", "Expression", "reference", ",", "int", "checkType", ",", "FlowInfo", "flowInfo", ")", "{", "if", "(", "(", "flowInfo", ".", "tagBits", "&", "FlowInfo", ".", "UNREACHABLE", ")", "==", "0", "&&", "!", "flowInfo", ".", "isDefinitelyUnknown", "(", "local", ")", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "DEFER_NULL_DIAGNOSTIC", ")", "!=", "0", ")", "{", "switch", "(", "checkType", ")", "{", "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", ":", "if", "(", "flowInfo", ".", "cannotBeNull", "(", "local", ")", ")", "{", "if", "(", "checkType", "==", "(", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ")", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNonNull", "(", "local", ",", "reference", ")", ";", "}", "if", "(", "!", "flowInfo", ".", "isMarkedAsNullOrNonNullInAssertExpression", "(", "local", ")", ")", "{", "flowInfo", ".", "initsWhenFalse", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "}", "else", "if", "(", "checkType", "==", "(", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NULL", ")", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNonNullComparedToNull", "(", "local", ",", "reference", ")", ";", "}", "if", "(", "!", "flowInfo", ".", "isMarkedAsNullOrNonNullInAssertExpression", "(", "local", ")", ")", "{", "flowInfo", ".", "initsWhenTrue", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "}", "return", ";", "}", "if", "(", "flowInfo", ".", "canOnlyBeNull", "(", "local", ")", ")", "{", "switch", "(", "checkType", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "if", "(", "(", "(", "checkType", "&", "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", ")", ";", "}", "if", "(", "!", "flowInfo", ".", "isMarkedAsNullOrNonNullInAssertExpression", "(", "local", ")", ")", "{", "flowInfo", ".", "initsWhenFalse", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "return", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "checkType", "&", "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", "(", ")", ".", "localVariableNullComparedToNonNull", "(", "local", ",", "reference", ")", ";", "}", "if", "(", "!", "flowInfo", ".", "isMarkedAsNullOrNonNullInAssertExpression", "(", "local", ")", ")", "{", "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", "(", "checkType", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "if", "(", "(", "(", "checkType", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "reference", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "break", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "checkType", "&", "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", ",", "reference", ")", ";", "return", ";", "}", "break", ";", "default", ":", "}", "}", "else", "{", "switch", "(", "checkType", ")", "{", "case", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NULL", ":", "case", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ":", "if", "(", "flowInfo", ".", "isDefinitelyNonNull", "(", "local", ")", ")", "{", "if", "(", "checkType", "==", "(", "CAN_ONLY_NULL_NON_NULL", "|", "IN_COMPARISON_NON_NULL", ")", ")", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableRedundantCheckOnNonNull", "(", "local", ",", "reference", ")", ";", "}", "if", "(", "!", "flowInfo", ".", "isMarkedAsNullOrNonNullInAssertExpression", "(", "local", ")", ")", "{", "flowInfo", ".", "initsWhenFalse", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "}", "else", "{", "if", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariableNonNullComparedToNull", "(", "local", ",", "reference", ")", ";", "}", "if", "(", "!", "flowInfo", ".", "isMarkedAsNullOrNonNullInAssertExpression", "(", "local", ")", ")", "{", "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", ":", "if", "(", "flowInfo", ".", "isDefinitelyNull", "(", "local", ")", ")", "{", "switch", "(", "checkType", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "if", "(", "(", "(", "checkType", "&", "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", ")", ";", "}", "if", "(", "!", "flowInfo", ".", "isMarkedAsNullOrNonNullInAssertExpression", "(", "local", ")", ")", "{", "flowInfo", ".", "initsWhenFalse", "(", ")", ".", "setReachMode", "(", "FlowInfo", ".", "UNREACHABLE_BY_NULLANALYSIS", ")", ";", "}", "return", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "checkType", "&", "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", "(", ")", ".", "localVariableNullComparedToNonNull", "(", "local", ",", "reference", ")", ";", "}", "if", "(", "!", "flowInfo", ".", "isMarkedAsNullOrNonNullInAssertExpression", "(", "local", ")", ")", "{", "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", "(", "checkType", "&", "CONTEXT_MASK", ")", "{", "case", "FlowContext", ".", "IN_COMPARISON_NULL", ":", "if", "(", "(", "(", "checkType", "&", "CHECK_MASK", ")", "==", "CAN_ONLY_NULL", ")", "&&", "(", "reference", ".", "implicitConversion", "&", "TypeIds", ".", "UNBOXING", ")", "!=", "0", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "break", ";", "case", "FlowContext", ".", "IN_COMPARISON_NON_NULL", ":", "if", "(", "(", "(", "checkType", "&", "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", ",", "reference", ")", ";", "return", ";", "}", "if", "(", "flowInfo", ".", "isPotentiallyNull", "(", "local", ")", ")", "{", "scope", ".", "problemReporter", "(", ")", ".", "localVariablePotentialNullReference", "(", "local", ",", "reference", ")", ";", "return", ";", "}", "if", "(", "flowInfo", ".", "isDefinitelyNonNull", "(", "local", ")", ")", "{", "return", ";", "}", "break", ";", "default", ":", "}", "}", "if", "(", "(", "(", "this", ".", "tagBits", "&", "FlowContext", ".", "HIDE_NULL_COMPARISON_WARNING", ")", "==", "0", ")", "||", "checkType", "==", "MAY_NULL", "||", "(", "checkType", "&", "CONTEXT_MASK", ")", "==", "FlowContext", ".", "IN_ASSIGNMENT", "||", "(", "checkType", "&", "CONTEXT_MASK", ")", "==", "FlowContext", ".", "IN_INSTANCEOF", ")", "{", "recordNullReference", "(", "local", ",", "reference", ",", "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", ",", "Expression", "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", ";", "}", "}", "</s>" ]
4,294
[ "<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", ")", "{", "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", "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", "markedAsNullOrNonNullInAssertExpression", "(", "LocalVariableBinding", "local", ")", ";", "abstract", "public", "boolean", "isMarkedAsNullOrNonNullInAssertExpression", "(", "LocalVariableBinding", "local", ")", ";", "abstract", "public", "void", "resetAssignmentInfo", "(", "LocalVariableBinding", "local", ")", ";", "}", "</s>" ]
4,295
[ "<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>" ]
4,296
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ";", "public", "final", "class", "FieldInfoWithAnnotation", "extends", "FieldInfo", "{", "private", "AnnotationInfo", "[", "]", "annotations", ";", "FieldInfoWithAnnotation", "(", "FieldInfo", "info", ",", "AnnotationInfo", "[", "]", "annos", ")", "{", "super", "(", "info", ".", "reference", ",", "info", ".", "constantPoolOffsets", ",", "info", ".", "structOffset", ")", ";", "this", ".", "accessFlags", "=", "info", ".", "accessFlags", ";", "this", ".", "attributeBytes", "=", "info", ".", "attributeBytes", ";", "this", ".", "constant", "=", "info", ".", "constant", ";", "this", ".", "constantPoolOffsets", "=", "info", ".", "constantPoolOffsets", ";", "this", ".", "descriptor", "=", "info", ".", "descriptor", ";", "this", ".", "name", "=", "info", ".", "name", ";", "this", ".", "signature", "=", "info", ".", "signature", ";", "this", ".", "signatureUtf8Offset", "=", "info", ".", "signatureUtf8Offset", ";", "this", ".", "tagBits", "=", "info", ".", "tagBits", ";", "this", ".", "wrappedConstantValue", "=", "info", ".", "wrappedConstantValue", ";", "this", ".", "annotations", "=", "annos", ";", "}", "public", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ".", "IBinaryAnnotation", "[", "]", "getAnnotations", "(", ")", "{", "return", "this", ".", "annotations", ";", "}", "protected", "void", "initialize", "(", ")", "{", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "annotations", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "this", ".", "annotations", "[", "i", "]", ".", "initialize", "(", ")", ";", "super", ".", "initialize", "(", ")", ";", "}", "protected", "void", "reset", "(", ")", "{", "if", "(", "this", ".", "annotations", "!=", "null", ")", "for", "(", "int", "i", "=", "0", ",", "max", "=", "this", ".", "annotations", ".", "length", ";", "i", "<", "max", ";", "i", "++", ")", "this", ".", "annotations", "[", "i", "]", ".", "reset", "(", ")", ";", "super", ".", "reset", "(", ")", ";", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", "getClass", "(", ")", ".", "getName", "(", ")", ")", ";", "if", "(", "this", ".", "annotations", "!=", "null", ")", "{", "buffer", ".", "append", "(", "'\\n'", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "annotations", ".", "length", ";", "i", "++", ")", "{", "buffer", ".", "append", "(", "this", ".", "annotations", "[", "i", "]", ")", ";", "buffer", ".", "append", "(", "'\\n'", ")", ";", "}", "}", "toStringContent", "(", "buffer", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
4,297
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ";", "import", "java", ".", "util", ".", "Arrays", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "core", ".", "compiler", ".", "CharOperation", ";", "public", "class", "ElementValuePairInfo", "implements", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ".", "IBinaryElementValuePair", "{", "static", "final", "ElementValuePairInfo", "[", "]", "NoMembers", "=", "new", "ElementValuePairInfo", "[", "0", "]", ";", "private", "char", "[", "]", "name", ";", "private", "Object", "value", ";", "ElementValuePairInfo", "(", "char", "[", "]", "name", ",", "Object", "value", ")", "{", "this", ".", "name", "=", "name", ";", "this", ".", "value", "=", "value", ";", "}", "public", "char", "[", "]", "getName", "(", ")", "{", "return", "this", ".", "name", ";", "}", "public", "Object", "getValue", "(", ")", "{", "return", "this", ".", "value", ";", "}", "public", "String", "toString", "(", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "buffer", ".", "append", "(", "this", ".", "name", ")", ";", "buffer", ".", "append", "(", "'='", ")", ";", "if", "(", "this", ".", "value", "instanceof", "Object", "[", "]", ")", "{", "final", "Object", "[", "]", "values", "=", "(", "Object", "[", "]", ")", "this", ".", "value", ";", "buffer", ".", "append", "(", "'{'", ")", ";", "for", "(", "int", "i", "=", "0", ",", "l", "=", "values", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "buffer", ".", "append", "(", "\",", "\"", ")", ";", "buffer", ".", "append", "(", "values", "[", "i", "]", ")", ";", "}", "buffer", ".", "append", "(", "'}'", ")", ";", "}", "else", "{", "buffer", ".", "append", "(", "this", ".", "value", ")", ";", "}", "return", "buffer", ".", "toString", "(", ")", ";", "}", "public", "int", "hashCode", "(", ")", "{", "final", "int", "prime", "=", "31", ";", "int", "result", "=", "1", ";", "result", "=", "prime", "*", "result", "+", "CharOperation", ".", "hashCode", "(", "this", ".", "name", ")", ";", "result", "=", "prime", "*", "result", "+", "(", "(", "this", ".", "value", "==", "null", ")", "?", "0", ":", "this", ".", "value", ".", "hashCode", "(", ")", ")", ";", "return", "result", ";", "}", "public", "boolean", "equals", "(", "Object", "obj", ")", "{", "if", "(", "this", "==", "obj", ")", "{", "return", "true", ";", "}", "if", "(", "obj", "==", "null", ")", "{", "return", "false", ";", "}", "if", "(", "getClass", "(", ")", "!=", "obj", ".", "getClass", "(", ")", ")", "{", "return", "false", ";", "}", "ElementValuePairInfo", "other", "=", "(", "ElementValuePairInfo", ")", "obj", ";", "if", "(", "!", "Arrays", ".", "equals", "(", "this", ".", "name", ",", "other", ".", "name", ")", ")", "{", "return", "false", ";", "}", "if", "(", "this", ".", "value", "==", "null", ")", "{", "if", "(", "other", ".", "value", "!=", "null", ")", "{", "return", "false", ";", "}", "}", "else", "if", "(", "!", "this", ".", "value", ".", "equals", "(", "other", ".", "value", ")", ")", "{", "return", "false", ";", "}", "return", "true", ";", "}", "}", "</s>" ]
4,298
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ".", "IBinaryAnnotation", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "util", ".", "Util", ";", "class", "MethodInfoWithParameterAnnotations", "extends", "MethodInfoWithAnnotations", "{", "private", "AnnotationInfo", "[", "]", "[", "]", "parameterAnnotations", ";", "MethodInfoWithParameterAnnotations", "(", "MethodInfo", "methodInfo", ",", "AnnotationInfo", "[", "]", "annotations", ",", "AnnotationInfo", "[", "]", "[", "]", "parameterAnnotations", ")", "{", "super", "(", "methodInfo", ",", "annotations", ")", ";", "if", "(", "methodInfo", ".", "isConstructor", "(", ")", ")", "{", "int", "parametersCount", "=", "Util", ".", "getParameterCount", "(", "methodInfo", ".", "getMethodDescriptor", "(", ")", ")", ";", "if", "(", "parameterAnnotations", ".", "length", "<", "parametersCount", ")", "{", "AnnotationInfo", "[", "]", "[", "]", "temp", "=", "new", "AnnotationInfo", "[", "parametersCount", "]", "[", "]", ";", "System", ".", "arraycopy", "(", "parameterAnnotations", ",", "0", ",", "temp", ",", "1", ",", "parameterAnnotations", ".", "length", ")", ";", "this", ".", "parameterAnnotations", "=", "temp", ";", "}", "else", "{", "this", ".", "parameterAnnotations", "=", "parameterAnnotations", ";", "}", "}", "else", "{", "this", ".", "parameterAnnotations", "=", "parameterAnnotations", ";", "}", "}", "public", "IBinaryAnnotation", "[", "]", "getParameterAnnotations", "(", "int", "index", ")", "{", "return", "this", ".", "parameterAnnotations", "[", "index", "]", ";", "}", "protected", "void", "initialize", "(", ")", "{", "for", "(", "int", "i", "=", "0", ",", "l", "=", "this", ".", "parameterAnnotations", "==", "null", "?", "0", ":", "this", ".", "parameterAnnotations", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "{", "AnnotationInfo", "[", "]", "infos", "=", "this", ".", "parameterAnnotations", "[", "i", "]", ";", "for", "(", "int", "j", "=", "0", ",", "k", "=", "infos", "==", "null", "?", "0", ":", "infos", ".", "length", ";", "j", "<", "k", ";", "j", "++", ")", "infos", "[", "j", "]", ".", "initialize", "(", ")", ";", "}", "super", ".", "initialize", "(", ")", ";", "}", "protected", "void", "reset", "(", ")", "{", "for", "(", "int", "i", "=", "0", ",", "l", "=", "this", ".", "parameterAnnotations", "==", "null", "?", "0", ":", "this", ".", "parameterAnnotations", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "{", "AnnotationInfo", "[", "]", "infos", "=", "this", ".", "parameterAnnotations", "[", "i", "]", ";", "for", "(", "int", "j", "=", "0", ",", "k", "=", "infos", "==", "null", "?", "0", ":", "infos", ".", "length", ";", "j", "<", "k", ";", "j", "++", ")", "infos", "[", "j", "]", ".", "reset", "(", ")", ";", "}", "super", ".", "reset", "(", ")", ";", "}", "protected", "void", "toStringContent", "(", "StringBuffer", "buffer", ")", "{", "super", ".", "toStringContent", "(", "buffer", ")", ";", "for", "(", "int", "i", "=", "0", ",", "l", "=", "this", ".", "parameterAnnotations", "==", "null", "?", "0", ":", "this", ".", "parameterAnnotations", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "{", "buffer", ".", "append", "(", "\"param\"", "+", "(", "i", "-", "1", ")", ")", ";", "buffer", ".", "append", "(", "'\\n'", ")", ";", "AnnotationInfo", "[", "]", "infos", "=", "this", ".", "parameterAnnotations", "[", "i", "]", ";", "for", "(", "int", "j", "=", "0", ",", "k", "=", "infos", "==", "null", "?", "0", ":", "infos", ".", "length", ";", "j", "<", "k", ";", "j", "++", ")", "{", "buffer", ".", "append", "(", "infos", "[", "j", "]", ")", ";", "buffer", ".", "append", "(", "'\\n'", ")", ";", "}", "}", "}", "}", "</s>" ]
4,299
[ "<s>", "package", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "classfmt", ";", "import", "org", ".", "eclipse", ".", "jdt", ".", "internal", ".", "compiler", ".", "env", ".", "IBinaryAnnotation", ";", "public", "class", "AnnotationMethodInfoWithAnnotations", "extends", "AnnotationMethodInfo", "{", "private", "AnnotationInfo", "[", "]", "annotations", ";", "AnnotationMethodInfoWithAnnotations", "(", "MethodInfo", "methodInfo", ",", "Object", "defaultValue", ",", "AnnotationInfo", "[", "]", "annotations", ")", "{", "super", "(", "methodInfo", ",", "defaultValue", ")", ";", "this", ".", "annotations", "=", "annotations", ";", "}", "public", "IBinaryAnnotation", "[", "]", "getAnnotations", "(", ")", "{", "return", "this", ".", "annotations", ";", "}", "protected", "void", "initialize", "(", ")", "{", "for", "(", "int", "i", "=", "0", ",", "l", "=", "this", ".", "annotations", "==", "null", "?", "0", ":", "this", ".", "annotations", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "if", "(", "this", ".", "annotations", "[", "i", "]", "!=", "null", ")", "this", ".", "annotations", "[", "i", "]", ".", "initialize", "(", ")", ";", "super", ".", "initialize", "(", ")", ";", "}", "protected", "void", "reset", "(", ")", "{", "for", "(", "int", "i", "=", "0", ",", "l", "=", "this", ".", "annotations", "==", "null", "?", "0", ":", "this", ".", "annotations", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "if", "(", "this", ".", "annotations", "[", "i", "]", "!=", "null", ")", "this", ".", "annotations", "[", "i", "]", ".", "reset", "(", ")", ";", "super", ".", "reset", "(", ")", ";", "}", "protected", "void", "toStringContent", "(", "StringBuffer", "buffer", ")", "{", "super", ".", "toStringContent", "(", "buffer", ")", ";", "for", "(", "int", "i", "=", "0", ",", "l", "=", "this", ".", "annotations", "==", "null", "?", "0", ":", "this", ".", "annotations", ".", "length", ";", "i", "<", "l", ";", "i", "++", ")", "{", "buffer", ".", "append", "(", "this", ".", "annotations", "[", "i", "]", ")", ";", "buffer", ".", "append", "(", "'\\n'", ")", ";", "}", "}", "}", "</s>" ]