Web Site

org.codehaus.janino
Class Java.NamedClassDeclaration

java.lang.Object
  extended byorg.codehaus.janino.Java.AbstractTypeDeclaration
      extended byorg.codehaus.janino.Java.ClassDeclaration
          extended byorg.codehaus.janino.Java.NamedClassDeclaration
All Implemented Interfaces:
Java.DocCommentable, Java.Locatable, org.codehaus.janino.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 org.codehaus.janino.Java.NamedTypeDeclaration, Java.DocCommentable


Field Summary
protected  String name
           
 
Fields inherited from class org.codehaus.janino.Java.AbstractTypeDeclaration
anonymousClassCount, enclosingScope, localClassCount, modifiers
 
Constructor Summary
Java.NamedClassDeclaration(Location location, Java.Scope enclosingScope, String optionalDocComment, short modifiers, String name, Java.Type optionalExtendedType, Java.Type[] implementedTypes)
           
 
Method Summary
 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()
           
 
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, throwParseException
 
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.TypeDeclaration
createAnonymousClassName, createLocalTypeName, getClassName, getMemberTypeDeclaration, visit
 
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwParseException
 
Methods inherited from interface org.codehaus.janino.Java.Scope
getEnclosingScope
 

Field Detail

name

protected final String name
Constructor Detail

Java.NamedClassDeclaration

public Java.NamedClassDeclaration(Location location,
                                  Java.Scope enclosingScope,
                                  String optionalDocComment,
                                  short modifiers,
                                  String name,
                                  Java.Type optionalExtendedType,
                                  Java.Type[] implementedTypes)
Method Detail

getName

public String getName()
Description copied from interface: org.codehaus.janino.Java.NamedTypeDeclaration
Returns the declared (not the fully qualified) name of the class or interface.

Specified by:
getName in interface org.codehaus.janino.Java.NamedTypeDeclaration

toString

public String toString()
Specified by:
toString in class Java.AbstractTypeDeclaration

getDocComment

public String getDocComment()
Description copied from interface: Java.DocCommentable
Returns the doc comment of the object or null.

Specified by:
getDocComment in interface Java.DocCommentable

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

Web Site