public abstract static class Java.NamedClassDeclaration extends Java.AbstractClassDeclaration implements Java.NamedTypeDeclaration, Java.DocCommentable
| Modifier and Type | Field and Description |
|---|---|
Java.Type[] |
implementedTypes
The types of the implemented interfaces.
|
String |
name
The simple name of this class.
|
Java.Type |
optionalExtendedType
The type of the extended class.
|
constructors, variableDeclaratorsAndInitializersanonymousClassCount, localClassCount| Constructor and Description |
|---|
NamedClassDeclaration(Location location,
String optionalDocComment,
Java.Modifiers modifiers,
String name,
Java.TypeParameter[] optionalTypeParameters,
Java.Type optionalExtendedType,
Java.Type[] implementedTypes) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDocComment() |
String |
getName() |
boolean |
hasDeprecatedDocTag()
Returns
true if the object has a doc comment and the @deprecated tag appears in the doc
comment. |
String |
toString() |
addConstructor, addFieldDeclaration, addInitializer, defineSyntheticField, getSyntheticFields, getVariableDeclaratorsAndInitializersaddDeclaredMethod, addMemberTypeDeclaration, createAnonymousClassName, createLocalTypeName, getAnnotations, getEnclosingScope, getLocation, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifierFlags, getOptionalTypeParameters, invalidateMethodCaches, setEnclosingScope, throwCompileExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOptionalTypeParametersaccept, createAnonymousClassName, createLocalTypeName, getClassName, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifierFlagsgetAnnotationsgetLocation, throwCompileExceptiongetEnclosingScopepublic final String name
@Nullable public final Java.Type optionalExtendedType
public final Java.Type[] implementedTypes
public NamedClassDeclaration(Location location, @Nullable String optionalDocComment, Java.Modifiers modifiers, String name, @Nullable Java.TypeParameter[] optionalTypeParameters, @Nullable Java.Type optionalExtendedType, Java.Type[] implementedTypes)
public String toString()
toString in class Java.AbstractTypeDeclarationpublic String getName()
getName in interface Java.NamedTypeDeclaration@Nullable public String getDocComment()
getDocComment in interface Java.DocCommentablenullpublic boolean hasDeprecatedDocTag()
Java.DocCommentabletrue if the object has a doc comment and the @deprecated tag appears in the doc
comment.hasDeprecatedDocTag in interface Java.DocCommentable