janino.net

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

Base for the various interface declaration kinds.


Field Summary
 List<Java.FieldDeclaration> constantDeclarations
          The constants that this interface declares.
 Java.Type[] extendedTypes
          The types of the interfaces that this interface extends.
 String name
          The simple name of the interface.
 Java.TypeParameter[] optionalTypeParameters
          The optional type parameters of this interface.
 
Fields inherited from class org.codehaus.janino.Java.AbstractTypeDeclaration
anonymousClassCount, localClassCount
 
Constructor Summary
protected Java.InterfaceDeclaration(Location location, String optionalDocComment, Java.Modifiers modifiers, String name, Java.TypeParameter[] optionalTypeParameters, Java.Type[] extendedTypes)
           
 
Method Summary
 void addConstantDeclaration(Java.FieldDeclaration fd)
          Adds one constant declaration to this interface declaration.
 String getDocComment()
           
 String getName()
           
 Java.TypeParameter[] getOptionalTypeParameters()
           
 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.AbstractTypeDeclaration
addDeclaredMethod, addMemberTypeDeclaration, createAnonymousClassName, createLocalTypeName, getAnnotations, getEnclosingScope, getLocation, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifierFlags, 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.TypeDeclaration
accept, createAnonymousClassName, createLocalTypeName, getAnnotations, getClassName, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifierFlags
 
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwCompileException
 
Methods inherited from interface org.codehaus.janino.Java.Scope
getEnclosingScope
 

Field Detail

name

public final String name
The simple name of the interface.


optionalTypeParameters

public final Java.TypeParameter[] optionalTypeParameters
The optional type parameters of this interface.


extendedTypes

public final Java.Type[] extendedTypes
The types of the interfaces that this interface extends.


constantDeclarations

public final List<Java.FieldDeclaration> constantDeclarations
The constants that this interface declares.

Constructor Detail

Java.InterfaceDeclaration

protected Java.InterfaceDeclaration(Location location,
                                    String optionalDocComment,
                                    Java.Modifiers modifiers,
                                    String name,
                                    Java.TypeParameter[] optionalTypeParameters,
                                    Java.Type[] extendedTypes)
Method Detail

toString

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

addConstantDeclaration

public void addConstantDeclaration(Java.FieldDeclaration fd)
Adds one constant declaration to this interface declaration.


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

janino.net