equal
deleted
inserted
replaced
2602 /** ClassDeclaration = CLASS Ident TypeParametersOpt [EXTENDS Type] |
2602 /** ClassDeclaration = CLASS Ident TypeParametersOpt [EXTENDS Type] |
2603 * [IMPLEMENTS TypeList] ClassBody |
2603 * [IMPLEMENTS TypeList] ClassBody |
2604 * @param mods The modifiers starting the class declaration |
2604 * @param mods The modifiers starting the class declaration |
2605 * @param dc The documentation comment for the class, or null. |
2605 * @param dc The documentation comment for the class, or null. |
2606 */ |
2606 */ |
2607 JCClassDecl classDeclaration(JCModifiers mods, String dc) { |
2607 protected JCClassDecl classDeclaration(JCModifiers mods, String dc) { |
2608 int pos = token.pos; |
2608 int pos = token.pos; |
2609 accept(CLASS); |
2609 accept(CLASS); |
2610 Name name = ident(); |
2610 Name name = ident(); |
2611 |
2611 |
2612 List<JCTypeParameter> typarams = typeParametersOpt(); |
2612 List<JCTypeParameter> typarams = typeParametersOpt(); |
2631 /** InterfaceDeclaration = INTERFACE Ident TypeParametersOpt |
2631 /** InterfaceDeclaration = INTERFACE Ident TypeParametersOpt |
2632 * [EXTENDS TypeList] InterfaceBody |
2632 * [EXTENDS TypeList] InterfaceBody |
2633 * @param mods The modifiers starting the interface declaration |
2633 * @param mods The modifiers starting the interface declaration |
2634 * @param dc The documentation comment for the interface, or null. |
2634 * @param dc The documentation comment for the interface, or null. |
2635 */ |
2635 */ |
2636 JCClassDecl interfaceDeclaration(JCModifiers mods, String dc) { |
2636 protected JCClassDecl interfaceDeclaration(JCModifiers mods, String dc) { |
2637 int pos = token.pos; |
2637 int pos = token.pos; |
2638 accept(INTERFACE); |
2638 accept(INTERFACE); |
2639 Name name = ident(); |
2639 Name name = ident(); |
2640 |
2640 |
2641 List<JCTypeParameter> typarams = typeParametersOpt(); |
2641 List<JCTypeParameter> typarams = typeParametersOpt(); |
2654 |
2654 |
2655 /** EnumDeclaration = ENUM Ident [IMPLEMENTS TypeList] EnumBody |
2655 /** EnumDeclaration = ENUM Ident [IMPLEMENTS TypeList] EnumBody |
2656 * @param mods The modifiers starting the enum declaration |
2656 * @param mods The modifiers starting the enum declaration |
2657 * @param dc The documentation comment for the enum, or null. |
2657 * @param dc The documentation comment for the enum, or null. |
2658 */ |
2658 */ |
2659 JCClassDecl enumDeclaration(JCModifiers mods, String dc) { |
2659 protected JCClassDecl enumDeclaration(JCModifiers mods, String dc) { |
2660 int pos = token.pos; |
2660 int pos = token.pos; |
2661 accept(ENUM); |
2661 accept(ENUM); |
2662 Name name = ident(); |
2662 Name name = ident(); |
2663 |
2663 |
2664 List<JCExpression> implementing = List.nil(); |
2664 List<JCExpression> implementing = List.nil(); |
2876 * VoidInterfaceMethodDeclaratorRest = |
2876 * VoidInterfaceMethodDeclaratorRest = |
2877 * FormalParameters [THROWS TypeList] ";" |
2877 * FormalParameters [THROWS TypeList] ";" |
2878 * ConstructorDeclaratorRest = |
2878 * ConstructorDeclaratorRest = |
2879 * "(" FormalParameterListOpt ")" [THROWS TypeList] MethodBody |
2879 * "(" FormalParameterListOpt ")" [THROWS TypeList] MethodBody |
2880 */ |
2880 */ |
2881 JCTree methodDeclaratorRest(int pos, |
2881 protected JCTree methodDeclaratorRest(int pos, |
2882 JCModifiers mods, |
2882 JCModifiers mods, |
2883 JCExpression type, |
2883 JCExpression type, |
2884 Name name, |
2884 Name name, |
2885 List<JCTypeParameter> typarams, |
2885 List<JCTypeParameter> typarams, |
2886 boolean isInterface, boolean isVoid, |
2886 boolean isInterface, boolean isVoid, |