src/jdk.compiler/share/classes/com/sun/source/tree/ClassTree.java

Print this page




  31 /**
  32  * A tree node for a class, interface, enum, or annotation
  33  * type declaration.
  34  *
  35  * For example:
  36  * <pre>
  37  *   <em>modifiers</em> class <em>simpleName</em> <em>typeParameters</em>
  38  *       extends <em>extendsClause</em>
  39  *       implements <em>implementsClause</em>
  40  *   {
  41  *       <em>members</em>
  42  *   }
  43  * </pre>
  44  *
  45  * @jls sections 8.1, 8.9, 9.1, and 9.6
  46  *
  47  * @author Peter von der Ah&eacute;
  48  * @author Jonathan Gibbons
  49  * @since 1.6
  50  */
  51 @jdk.Exported
  52 public interface ClassTree extends StatementTree {
  53     /**
  54      * Returns the modifiers, including any annotations,
  55      * for this type declaration.
  56      * @return the modifiers
  57      */
  58     ModifiersTree getModifiers();
  59 
  60     /**
  61      * Returns the simple name of this type declaration.
  62      * @return the simple name
  63      */
  64     Name getSimpleName();
  65 
  66     /**
  67      * Returns any type parameters of this type declaration.
  68      * @return the type parameters
  69      */
  70     List<? extends TypeParameterTree> getTypeParameters();
  71 


  31 /**
  32  * A tree node for a class, interface, enum, or annotation
  33  * type declaration.
  34  *
  35  * For example:
  36  * <pre>
  37  *   <em>modifiers</em> class <em>simpleName</em> <em>typeParameters</em>
  38  *       extends <em>extendsClause</em>
  39  *       implements <em>implementsClause</em>
  40  *   {
  41  *       <em>members</em>
  42  *   }
  43  * </pre>
  44  *
  45  * @jls sections 8.1, 8.9, 9.1, and 9.6
  46  *
  47  * @author Peter von der Ah&eacute;
  48  * @author Jonathan Gibbons
  49  * @since 1.6
  50  */

  51 public interface ClassTree extends StatementTree {
  52     /**
  53      * Returns the modifiers, including any annotations,
  54      * for this type declaration.
  55      * @return the modifiers
  56      */
  57     ModifiersTree getModifiers();
  58 
  59     /**
  60      * Returns the simple name of this type declaration.
  61      * @return the simple name
  62      */
  63     Name getSimpleName();
  64 
  65     /**
  66      * Returns any type parameters of this type declaration.
  67      * @return the type parameters
  68      */
  69     List<? extends TypeParameterTree> getTypeParameters();
  70