Web Site

org.codehaus.janino
Class Java.InterfaceDeclaration

java.lang.Object
  extended by org.codehaus.janino.Java.AbstractTypeDeclaration
      extended by org.codehaus.janino.Java.InterfaceDeclaration
All Implemented Interfaces:
Java.DocCommentable, Java.Locatable, Java.NamedTypeDeclaration, Java.Scope, Java.TypeDeclaration
Direct Known Subclasses:
Java.MemberInterfaceDeclaration, Java.PackageMemberInterfaceDeclaration
Enclosing class:
Java

public abstract static class Java.InterfaceDeclaration
extends Java.AbstractTypeDeclaration
implements Java.NamedTypeDeclaration, Java.DocCommentable


Field Summary
 java.util.List constantDeclarations
           
 Java.Type[] extendedTypes
           
 java.lang.String name
           
 
Fields inherited from class org.codehaus.janino.Java.AbstractTypeDeclaration
anonymousClassCount, declaredClassesAndInterfaces, declaredMethods, localClassCount, modifiers
 
Constructor Summary
protected Java.InterfaceDeclaration(Location location, java.lang.String optionalDocComment, short modifiers, java.lang.String name, Java.Type[] extendedTypes)
           
 
Method Summary
 void addConstantDeclaration(Java.FieldDeclaration fd)
           
 java.lang.String getDocComment()
          Returns the doc comment of the object or null.
 java.lang.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.
 java.lang.String toString()
           
 
Methods inherited from class org.codehaus.janino.Java.AbstractTypeDeclaration
addDeclaredMethod, addMemberTypeDeclaration, createAnonymousClassName, createLocalTypeName, getEnclosingScope, getLocation, getMemberTypeDeclaration, getMemberTypeDeclarations, setEnclosingScope, 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
accept, createAnonymousClassName, createLocalTypeName, getClassName, getMemberTypeDeclaration
 
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwParseException
 
Methods inherited from interface org.codehaus.janino.Java.Scope
getEnclosingScope
 

Field Detail

name

public java.lang.String name

extendedTypes

public Java.Type[] extendedTypes

constantDeclarations

public final java.util.List constantDeclarations
Constructor Detail

Java.InterfaceDeclaration

protected Java.InterfaceDeclaration(Location location,
                                    java.lang.String optionalDocComment,
                                    short modifiers,
                                    java.lang.String name,
                                    Java.Type[] extendedTypes)
Method Detail

toString

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

addConstantDeclaration

public void addConstantDeclaration(Java.FieldDeclaration fd)

getName

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

Specified by:
getName in interface Java.NamedTypeDeclaration

getDocComment

public java.lang.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