Java.DocCommentable
, Java.Locatable
, Java.NamedTypeDeclaration
, Java.Scope
, Java.TypeDeclaration
Java.MemberInterfaceDeclaration
, Java.PackageMemberInterfaceDeclaration
public abstract static class Java.InterfaceDeclaration extends Java.AbstractTypeDeclaration implements Java.NamedTypeDeclaration, Java.DocCommentable
Modifier and Type | Field | 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 | Description |
---|---|---|
protected |
InterfaceDeclaration(Location location,
String optionalDocComment,
Java.Modifiers modifiers,
String name,
Java.TypeParameter[] optionalTypeParameters,
Java.Type[] extendedTypes) |
Modifier and Type | Method | 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
getLocation, throwCompileException
getEnclosingScope
accept, createAnonymousClassName, createLocalTypeName, getAnnotations, getClassName, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifierFlags
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–2019. All rights reserved.