org.codehaus.janino
Class Java.InterfaceDeclaration
java.lang.Object
org.codehaus.janino.Java.AbstractTypeDeclaration
org.codehaus.janino.Java.InterfaceDeclaration
- All Implemented Interfaces:
- Java.DocCommentable, Java.Locatable, org.codehaus.janino.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 org.codehaus.janino.Java.NamedTypeDeclaration, Java.DocCommentable
name
protected String name
Java.InterfaceDeclaration
protected Java.InterfaceDeclaration(Location location,
Java.Scope enclosingScope,
String optionalDocComment,
short modifiers,
String name,
Java.Type[] extendedTypes)
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
addConstantDeclaration
public void addConstantDeclaration(Java.FieldDeclarator fd)
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