public class InterfaceDeclaration extends TypeDeclaration
| Modifier and Type | Field and Description | 
|---|---|
protected Extends | 
extending  | 
fullName, isLibrary, members, name, parentIsInterfaceDeclarationmodArray| Constructor and Description | 
|---|
InterfaceDeclaration()  | 
InterfaceDeclaration(ExtList children,
                    ProgramElementName fullName,
                    boolean isLibrary)
uses children list to create non-anonymous class 
 | 
InterfaceDeclaration(Modifier[] modifiers,
                    ProgramElementName name,
                    Extends extended,
                    MemberDeclaration[] members,
                    boolean isLibrary)
Construct a new outer or member interface class. 
 | 
InterfaceDeclaration(Modifier[] modifiers,
                    ProgramElementName name,
                    ProgramElementName fullName,
                    Extends extended,
                    MemberDeclaration[] members,
                    boolean isLibrary)
Construct a new outer or member interface class. 
 | 
InterfaceDeclaration(ProgramElementName name)  | 
| Modifier and Type | Method and Description | 
|---|---|
ProgramElement | 
getChildAt(int index)
Returns the child at the specified index in this node's "virtual"
 child array 
 | 
int | 
getChildCount()
Returns the number of children of this node. 
 | 
Extends | 
getExtendedTypes()
Get extended types. 
 | 
ImmutableList<KeYJavaType> | 
getSupertypes()
returns the local declared supertypes 
 | 
boolean | 
isAbstract()
Interfaces are always abstract. 
 | 
boolean | 
isInterface()
Checks if this class type denotes an interface. 
 | 
boolean | 
isNative()
Interfaces are never native. 
 | 
boolean | 
isPrivate()
Interfaces are never private. 
 | 
boolean | 
isProtected()
Interfaces are never protected. 
 | 
boolean | 
isStrictFp()
Interfaces are never strictfp. 
 | 
boolean | 
isSynchronized()
Interfaces are never synchronized. 
 | 
boolean | 
isTransient()
Interfaces are never transient. 
 | 
boolean | 
isVolatile()
Interfaces are never volatile. 
 | 
void | 
prettyPrint(PrettyPrinter p)
Pretty printing the source element. 
 | 
void | 
visit(Visitor v)
calls the corresponding method of a visitor in order to
 perform some action/transformation on this element 
 | 
equals, getAllFields, getAllMethods, getAllSupertypes, getAllTypes, getConstructors, getDefaultValue, getFields, getFirstElement, getFullName, getLastElement, getMembers, getMethods, getName, getPackage, getProgramElementName, getTypeDeclarationAt, getTypeDeclarationCount, getTypes, isFinal, isLibraryClass, isPublic, isStaticgetModifiers, getStateCount, getVisibilityModifier, isGhost, isModelcompatibleBlockSize, computeHashCode, equalsModRenaming, getArrayPos, match, matchChildrengetComments, hashCode, prettyPrintMain, reuseSignaturegetEndPosition, getFirstElementIncludingBlocks, getParentClass, getPositionInfo, getRelativePosition, getStartPosition, setParentClass, toSource, toString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetModifiersgetComments, matchequalsModRenaming, getEndPosition, getFirstElementIncludingBlocks, getPositionInfo, getRelativePosition, getStartPositionprotected final Extends extending
public InterfaceDeclaration()
public InterfaceDeclaration(Modifier[] modifiers, ProgramElementName name, ProgramElementName fullName, Extends extended, MemberDeclaration[] members, boolean isLibrary)
public InterfaceDeclaration(Modifier[] modifiers, ProgramElementName name, Extends extended, MemberDeclaration[] members, boolean isLibrary)
public InterfaceDeclaration(ExtList children, ProgramElementName fullName, boolean isLibrary)
children - an ExtList that may contain: an Extends 
 (as pointer to a class), ProgramElementName (as name), 
 several MemberDeclaration (as members of
 the type), a parentIsInterfaceDeclaration (indicating if parent is
 interface), several Modifier (as modifiers of the type decl), a CommentfullName - the fully qualified ProgramElementName of the declared 
 typeisLibrary - a boolean flag indicating if this interface is part of 
 a library (library interfaces come often with a specification and are
 only available as bytecode)public InterfaceDeclaration(ProgramElementName name)
public int getChildCount()
public ProgramElement getChildAt(int index)
index - an index into this node's "virtual" child arrayjava.lang.ArrayIndexOutOfBoundsException - if index is out
            of boundspublic Extends getExtendedTypes()
public boolean isAbstract()
isAbstract in interface ClassTypeisAbstract in class TypeDeclarationtrue if this member is abstract,
       false otherwise.ClassType.isInterface()public boolean isNative()
isNative in class JavaDeclarationpublic boolean isProtected()
isProtected in interface MemberisProtected in interface MemberDeclarationisProtected in class TypeDeclarationtrue if this member is protected,
       false otherwise.public boolean isPrivate()
isPrivate in interface MemberisPrivate in interface MemberDeclarationisPrivate in class TypeDeclarationtrue if this member is private,
       false otherwise.public boolean isStrictFp()
isStrictFp in interface MemberisStrictFp in interface MemberDeclarationisStrictFp in class TypeDeclarationtrue if this member is strictfp,
       false otherwise.public boolean isSynchronized()
isSynchronized in class JavaDeclarationpublic boolean isTransient()
isTransient in class JavaDeclarationpublic boolean isVolatile()
isVolatile in class JavaDeclarationpublic boolean isInterface()
ClassTypetrue if this object represents an interface,
       false if it is an ordinary class.public ImmutableList<KeYJavaType> getSupertypes()
getSupertypes in interface ClassTypegetSupertypes in class TypeDeclarationpublic void visit(Visitor v)
v - the Visitorpublic void prettyPrint(PrettyPrinter p) throws java.io.IOException
JavaSourceElementprettyPrint in interface SourceElementprettyPrint in class JavaProgramElementp - a pretty printer.java.io.IOException - occasionally thrown.