public abstract static class Java.NamedClassDeclaration extends Java.ClassDeclaration 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.
|
Java.TypeParameter[] |
optionalTypeParameters
The optional type parameters of this interface.
|
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() |
Java.TypeParameter[] |
getOptionalTypeParameters() |
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, defineSyntheticFieldaddDeclaredMethod, addMemberTypeDeclaration, createAnonymousClassName, createLocalTypeName, getAnnotations, getEnclosingScope, getLocation, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifierFlags, invalidateMethodCaches, setEnclosingScope, throwCompileExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, createAnonymousClassName, createLocalTypeName, getAnnotations, getClassName, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifierFlagsgetLocation, throwCompileExceptiongetEnclosingScopepublic final String name
public final Java.TypeParameter[] optionalTypeParameters
public final Java.Type optionalExtendedType
public final Java.Type[] implementedTypes
public NamedClassDeclaration(Location location, String optionalDocComment, Java.Modifiers modifiers, String name, Java.TypeParameter[] optionalTypeParameters, Java.Type optionalExtendedType, Java.Type[] implementedTypes)
public String toString()
toString in class Java.AbstractTypeDeclarationpublic String getName()
getName in interface Java.NamedTypeDeclarationpublic Java.TypeParameter[] getOptionalTypeParameters()
getOptionalTypeParameters in interface Java.NamedTypeDeclarationpublic 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.DocCommentableCopyright © 2001–2025. All rights reserved.