Package 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
-
-
Field Summary
Fields Modifier and Type Field Description Java.Type[]implementedTypesjava.lang.StringnameJava.TypeoptionalExtendedType-
Fields inherited from class org.codehaus.janino.Java.ClassDeclaration
constructors, variableDeclaratorsAndInitializers
-
Fields inherited from class org.codehaus.janino.Java.AbstractTypeDeclaration
anonymousClassCount, localClassCount
-
-
Constructor Summary
Constructors Constructor Description NamedClassDeclaration(Location location, java.lang.String optionalDocComment, Java.ModifiersAndAnnotations modifiersAndAnnotations, java.lang.String name, Java.Type optionalExtendedType, Java.Type[] implementedTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDocComment()Returns the doc comment of the object ornull.java.lang.StringgetName()Returns the declared (not the fully qualified) name of the class or interface.booleanhasDeprecatedDocTag()Returnstrueif the object has a doc comment and the@deprecatedtag appears in the doc comment.java.lang.StringtoString()-
Methods inherited from class org.codehaus.janino.Java.ClassDeclaration
addConstructor, addVariableDeclaratorOrInitializer, defineSyntheticField
-
Methods inherited from class org.codehaus.janino.Java.AbstractTypeDeclaration
addDeclaredMethod, addMemberTypeDeclaration, createAnonymousClassName, createLocalTypeName, getEnclosingScope, getLocation, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifiersAndAnnotations, invalidateMethodCaches, setEnclosingScope, throwCompileException
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwCompileException
-
Methods inherited from interface org.codehaus.janino.Java.Scope
getEnclosingScope
-
Methods inherited from interface org.codehaus.janino.Java.TypeDeclaration
accept, createAnonymousClassName, createLocalTypeName, getClassName, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifiersAndAnnotations
-
-
-
-
Constructor Detail
-
NamedClassDeclaration
public NamedClassDeclaration(Location location, java.lang.String optionalDocComment, Java.ModifiersAndAnnotations modifiersAndAnnotations, java.lang.String name, Java.Type optionalExtendedType, Java.Type[] implementedTypes)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Specified by:
toStringin classJava.AbstractTypeDeclaration
-
getName
public java.lang.String getName()
Description copied from interface:Java.NamedTypeDeclarationReturns the declared (not the fully qualified) name of the class or interface.- Specified by:
getNamein interfaceJava.NamedTypeDeclaration
-
getDocComment
public java.lang.String getDocComment()
Description copied from interface:Java.DocCommentableReturns the doc comment of the object ornull.- Specified by:
getDocCommentin interfaceJava.DocCommentable
-
hasDeprecatedDocTag
public boolean hasDeprecatedDocTag()
Description copied from interface:Java.DocCommentableReturnstrueif the object has a doc comment and the@deprecatedtag appears in the doc comment.- Specified by:
hasDeprecatedDocTagin interfaceJava.DocCommentable
-
-