/** TypeDeclaration = ClassOrInterfaceOrEnumDeclaration * | ";" */ JCTree typeDeclaration(JCModifiers mods) { int pos = S.pos(); if (mods == null && S.token() == SEMI) { S.nextToken(); return toP(F.at(pos).Skip()); } else { String dc = S.docComment(); return classOrInterfaceOrEnumDeclaration(modifiersOpt(mods), dc); } }
/** TypeDeclaration = ClassOrInterfaceOrEnumDeclaration * | ";" */ JCTree typeDeclaration(JCModifiers mods) { int pos = S.pos(); if (mods == null && S.token() == SEMI) { S.nextToken(); return toP(F.at(pos).Skip()); } else { String dc = S.docComment(); return classOrInterfaceOrEnumDeclaration(modifiersOpt(mods), dc); } }
case MONKEYS_AT: case FINAL: { String dc = S.docComment(); JCModifiers mods = modifiersOpt(); if (S.token() == INTERFACE || String dc = S.docComment(); JCModifiers mods = modifiersOpt(); stats.append(classOrInterfaceOrEnumDeclaration(mods, dc)); case CLASS: stats.append(classOrInterfaceOrEnumDeclaration(modifiersOpt(), S.docComment())); break; case ENUM: stats. append(classOrInterfaceOrEnumDeclaration(modifiersOpt(), S.docComment())); break; } else if (allowAsserts && S.token() == ASSERT) {
case MONKEYS_AT: case FINAL: { String dc = S.docComment(); JCModifiers mods = modifiersOpt(); if (S.token() == INTERFACE || String dc = S.docComment(); JCModifiers mods = modifiersOpt(); stats.append(classOrInterfaceOrEnumDeclaration(mods, dc)); case CLASS: stats.append(classOrInterfaceOrEnumDeclaration(modifiersOpt(), S.docComment())); break; case ENUM: stats. append(classOrInterfaceOrEnumDeclaration(modifiersOpt(), S.docComment())); break; } else if (allowAsserts && S.token() == ASSERT) {
int pos = S.pos(); JCExpression pid = null; String dc = S.docComment(); JCModifiers mods = null; List<JCAnnotation> packageAnnotations = List.nil();
int pos = S.pos(); JCExpression pid = null; String dc = S.docComment(); JCModifiers mods = null; List<JCAnnotation> packageAnnotations = List.nil();
String dc = S.docComment(); int flags = Flags.PUBLIC|Flags.STATIC|Flags.FINAL|Flags.ENUM; if (S.deprecatedFlag()) {
String dc = S.docComment(); int flags = Flags.PUBLIC|Flags.STATIC|Flags.FINAL|Flags.ENUM; if (S.deprecatedFlag()) {
return List.<JCTree>of(F.at(Position.NOPOS).Block(0, List.<JCStatement>nil())); } else { String dc = S.docComment(); int pos = S.pos(); JCModifiers mods = modifiersOpt();
return List.<JCTree>of(F.at(Position.NOPOS).Block(0, List.<JCStatement>nil())); } else { String dc = S.docComment(); int pos = S.pos(); JCModifiers mods = modifiersOpt();