public abstract static class Java.InterfaceDeclaration extends Java.AbstractTypeDeclaration implements Java.NamedTypeDeclaration, Java.DocCommentable
| Modifier and Type | Field and Description |
|---|---|
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.
|
anonymousClassCount, localClassCount| Modifier | Constructor and Description |
|---|---|
protected |
InterfaceDeclaration(Location location,
String optionalDocComment,
Java.Modifiers modifiers,
String name,
Java.TypeParameter[] optionalTypeParameters,
Java.Type[] extendedTypes) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConstantDeclaration(Java.FieldDeclaration fd)
Adds one constant declaration to this interface declaration.
|
String |
getDocComment() |
String |
getName() |
boolean |
hasDeprecatedDocTag()
Returns
true if the object has a doc comment and the @deprecated tag appears in the doc
comment. |
String |
toString() |
addDeclaredMethod, addMemberTypeDeclaration, createAnonymousClassName, createLocalTypeName, getAnnotations, getEnclosingScope, getLocation, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifierFlags, getOptionalTypeParameters, invalidateMethodCaches, setEnclosingScope, throwCompileExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOptionalTypeParametersaccept, createAnonymousClassName, createLocalTypeName, getClassName, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifierFlagsgetAnnotationsgetLocation, throwCompileExceptiongetEnclosingScopepublic final String name
public final Java.Type[] extendedTypes
public final List<Java.FieldDeclaration> constantDeclarations
protected InterfaceDeclaration(Location location, @Nullable String optionalDocComment, Java.Modifiers modifiers, String name, @Nullable Java.TypeParameter[] optionalTypeParameters, Java.Type[] extendedTypes)
public String toString()
toString in class Java.AbstractTypeDeclarationpublic void addConstantDeclaration(Java.FieldDeclaration fd)
public String getName()
getName in interface Java.NamedTypeDeclaration@Nullable public String getDocComment()
getDocComment in interface Java.DocCommentablenullpublic boolean hasDeprecatedDocTag()
Java.DocCommentabletrue if the object has a doc comment and the @deprecated tag appears in the doc
comment.hasDeprecatedDocTag in interface Java.DocCommentable