public abstract static class Java.InterfaceDeclaration extends Java.AbstractTypeDeclaration implements Java.NamedTypeDeclaration, Java.DocCommentable
Modifier and Type | Field and Description |
---|---|
java.util.List |
constantDeclarations |
Java.Type[] |
extendedTypes |
java.lang.String |
name |
anonymousClassCount, localClassCount
Modifier | Constructor and Description |
---|---|
protected |
Java.InterfaceDeclaration(Location location,
java.lang.String optionalDocComment,
Java.ModifiersAndAnnotations modifiersAndAnnotations,
java.lang.String name,
Java.Type[] extendedTypes) |
Modifier and Type | Method and Description |
---|---|
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() |
addDeclaredMethod, addMemberTypeDeclaration, createAnonymousClassName, createLocalTypeName, getEnclosingScope, getLocation, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifiersAndAnnotations, invalidateMethodCaches, setEnclosingScope, throwCompileException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
accept, createAnonymousClassName, createLocalTypeName, getClassName, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifiersAndAnnotations
getLocation, throwCompileException
getEnclosingScope
public final java.lang.String name
public final Java.Type[] extendedTypes
public final java.util.List constantDeclarations
protected Java.InterfaceDeclaration(Location location, java.lang.String optionalDocComment, Java.ModifiersAndAnnotations modifiersAndAnnotations, java.lang.String name, Java.Type[] extendedTypes)
public java.lang.String toString()
toString
in class Java.AbstractTypeDeclaration
public void addConstantDeclaration(Java.FieldDeclaration fd)
public java.lang.String getName()
Java.NamedTypeDeclaration
getName
in interface Java.NamedTypeDeclaration
public java.lang.String getDocComment()
Java.DocCommentable
null
.getDocComment
in interface Java.DocCommentable
public boolean hasDeprecatedDocTag()
Java.DocCommentable
true
if the object has a doc comment and
the @deprecated
tag appears in the doc
comment.hasDeprecatedDocTag
in interface Java.DocCommentable