< prev index next >

src/java.compiler/share/classes/javax/lang/model/element/NestingKind.java

Print this page

        

*** 87,115 **** */ TOP_LEVEL, /** * A type that is a named member of another type. */ MEMBER, /** * A named type declared within a construct other than a type. */ LOCAL, /** * A type without a name. */ ANONYMOUS; /** * Does this constant correspond to a nested type element? * A <i>nested</i> type element is any that is not top-level. ! * An <i>inner</i> type element is any nested type element that * is not {@linkplain Modifier#STATIC static}. * @return whether or not the constant is nested */ public boolean isNested() { return this != TOP_LEVEL; } } --- 87,119 ---- */ TOP_LEVEL, /** * A type that is a named member of another type. + * @jls 8.5 Member Type Declarations */ MEMBER, /** * A named type declared within a construct other than a type. + * @jls 14.3 Local Class Declarations */ LOCAL, /** * A type without a name. + * @jls 15.9.5 Anonymous Class Declarations */ ANONYMOUS; /** * Does this constant correspond to a nested type element? * A <i>nested</i> type element is any that is not top-level. ! * More specifically, an <i>inner</i> type element is any nested type element that * is not {@linkplain Modifier#STATIC static}. * @return whether or not the constant is nested + * @jls 14.3 Inner Classes and Enclosing Instances */ public boolean isNested() { return this != TOP_LEVEL; } }
< prev index next >