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.
|
Java.TypeParameter[] |
optionalTypeParameters
The optional type parameters of this 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() |
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() |
addDeclaredMethod, addMemberTypeDeclaration, createAnonymousClassName, createLocalTypeName, getAnnotations, getEnclosingScope, getLocation, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifierFlags, invalidateMethodCaches, setEnclosingScope, throwCompileException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
accept, createAnonymousClassName, createLocalTypeName, getAnnotations, getClassName, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifierFlags
getLocation, throwCompileException
getEnclosingScope
public final String name
public final Java.TypeParameter[] optionalTypeParameters
public final Java.Type[] extendedTypes
public final List<Java.FieldDeclaration> constantDeclarations
protected InterfaceDeclaration(Location location, String optionalDocComment, Java.Modifiers modifiers, String name, Java.TypeParameter[] optionalTypeParameters, Java.Type[] extendedTypes)
public String toString()
toString
in class Java.AbstractTypeDeclaration
public void addConstantDeclaration(Java.FieldDeclaration fd)
public String getName()
getName
in interface Java.NamedTypeDeclaration
public Java.TypeParameter[] getOptionalTypeParameters()
getOptionalTypeParameters
in interface Java.NamedTypeDeclaration
public String getDocComment()
getDocComment
in interface Java.DocCommentable
null
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
Copyright © 2001–2016. All rights reserved.