org.codehaus.janino
Class Java.NamedClassDeclaration
java.lang.Object
org.codehaus.janino.Java.AbstractTypeDeclaration
org.codehaus.janino.Java.ClassDeclaration
org.codehaus.janino.Java.NamedClassDeclaration
- All Implemented Interfaces:
- Java.DocCommentable, Java.Locatable, Java.NamedTypeDeclaration, Java.Scope, Java.TypeDeclaration
- Direct Known Subclasses:
- Java.LocalClassDeclaration, Java.MemberClassDeclaration, Java.PackageMemberClassDeclaration
- Enclosing class:
- Java
public abstract static class Java.NamedClassDeclaration
- extends Java.ClassDeclaration
- implements Java.NamedTypeDeclaration, Java.DocCommentable
Base for the various named class declarations.
| Methods inherited from class org.codehaus.janino.Java.AbstractTypeDeclaration |
addDeclaredMethod, addMemberTypeDeclaration, createAnonymousClassName, createLocalTypeName, getAnnotations, getEnclosingScope, getLocation, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifierFlags, invalidateMethodCaches, setEnclosingScope, throwCompileException |
name
public final String name
- The simple name of this class.
optionalTypeParameters
public final Java.TypeParameter[] optionalTypeParameters
- The optional type parameters of this interface.
optionalExtendedType
public final Java.Type optionalExtendedType
- The type of the extended class.
implementedTypes
public final Java.Type[] implementedTypes
- The types of the implemented interfaces.
Java.NamedClassDeclaration
public Java.NamedClassDeclaration(Location location,
String optionalDocComment,
Java.Modifiers modifiers,
String name,
Java.TypeParameter[] optionalTypeParameters,
Java.Type optionalExtendedType,
Java.Type[] implementedTypes)
toString
public String toString()
- Specified by:
toString in class Java.AbstractTypeDeclaration
getName
public String getName()
- Specified by:
getName in interface Java.NamedTypeDeclaration
- Returns:
- The declared (not the fully qualified) name of the class or interface
getOptionalTypeParameters
public Java.TypeParameter[] getOptionalTypeParameters()
- Specified by:
getOptionalTypeParameters in interface Java.NamedTypeDeclaration
- Returns:
- The declared type parameters
getDocComment
public String getDocComment()
- Specified by:
getDocComment in interface Java.DocCommentable
- Returns:
- The doc comment of the object or
null
hasDeprecatedDocTag
public boolean hasDeprecatedDocTag()
- Description copied from interface:
Java.DocCommentable
- Returns
true if the object has a doc comment and
the @deprecated tag appears in the doc
comment.
- Specified by:
hasDeprecatedDocTag in interface Java.DocCommentable