public abstract static class Java.NamedClassDeclaration extends Java.ClassDeclaration implements Java.NamedTypeDeclaration, Java.DocCommentable
Modifier and Type | Field and Description |
---|---|
Java.Type[] |
implementedTypes |
String |
name |
Java.Type |
optionalExtendedType |
constructors, variableDeclaratorsAndInitializers
anonymousClassCount, localClassCount
Constructor and Description |
---|
Java.NamedClassDeclaration(Location location,
String optionalDocComment,
short modifiers,
String name,
Java.Type optionalExtendedType,
Java.Type[] implementedTypes) |
Modifier and Type | Method and Description |
---|---|
String |
getDocComment()
Returns the doc comment of the object or
null . |
String |
getName()
Returns the declared (not the fully qualified) name of the class or interface.
|
boolean |
hasDeprecatedDocTag()
Returns
true if the object has a doc comment and
the @deprecated tag appears in the doc
comment. |
String |
toString() |
addConstructor, addVariableDeclaratorOrInitializer, defineSyntheticField
addDeclaredMethod, addMemberTypeDeclaration, createAnonymousClassName, createLocalTypeName, getEnclosingScope, getLocation, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifiers, invalidateMethodCaches, setEnclosingScope, throwCompileException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
accept, createAnonymousClassName, createLocalTypeName, getClassName, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifiers
getLocation, throwCompileException
getEnclosingScope
public final String name
public final Java.Type optionalExtendedType
public final Java.Type[] implementedTypes
public String toString()
toString
in class Java.AbstractTypeDeclaration
public String getName()
Java.NamedTypeDeclaration
getName
in interface Java.NamedTypeDeclaration
public String getDocComment()
Java.DocCommentable
null
.getDocComment
in interface Java.DocCommentable
public boolean hasDeprecatedDocTag()
Java.DocCommentable
true
if the object has a doc comment and
the @deprecated
tag appears in the doc
comment.hasDeprecatedDocTag
in interface Java.DocCommentable
Copyright © 2001–2013. All rights reserved.