Package org.fife.rsta.ac.java.rjc.ast
Class NormalInterfaceDeclaration
- java.lang.Object
-
- org.fife.rsta.ac.java.rjc.ast.AbstractASTNode
-
- org.fife.rsta.ac.java.rjc.ast.AbstractTypeDeclarationNode
-
- org.fife.rsta.ac.java.rjc.ast.NormalInterfaceDeclaration
-
- All Implemented Interfaces:
ASTNode,TypeDeclaration,TypeDeclarationContainer
public class NormalInterfaceDeclaration extends AbstractTypeDeclarationNode
An interface declaration. Its structure is as follows:NormalInterfaceDeclaration: 'interface' Identifier [TypeParameters] ['extends' TypeList] InterfaceBody- Version:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Type>extendedList
-
Constructor Summary
Constructors Constructor Description NormalInterfaceDeclaration(Scanner s, int offs, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExtended(Type extended)Adds a type this interface extends.intgetExtendedCount()java.util.Iterator<Type>getExtendedIterator()java.lang.StringgetTypeString()Returns the type of this type declaration, as a string.-
Methods inherited from class org.fife.rsta.ac.java.rjc.ast.AbstractTypeDeclarationNode
addMember, addTypeDeclaration, getBodyContainsOffset, getBodyEndOffset, getBodyStartOffset, getChildType, getChildTypeAtOffset, getChildTypeCount, getDocComment, getFieldIterator, getMember, getMemberCount, getMemberIterator, getMethodIterator, getMethodsByName, getModifiers, getName, getPackage, getParentType, isDeprecated, isStatic, setBodyEndOffset, setBodyStartOffset, setDeprecated, setDocComment, setModifiers, setPackage, setParentType, toString
-
Methods inherited from class org.fife.rsta.ac.java.rjc.ast.AbstractASTNode
getName, getNameEndOffset, getNameStartOffset, setDeclarationEndOffset, setDeclarationOffsets
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.fife.rsta.ac.java.rjc.ast.ASTNode
getNameEndOffset, getNameStartOffset
-
Methods inherited from interface org.fife.rsta.ac.java.rjc.ast.TypeDeclaration
getName
-
-
-
-
Field Detail
-
extendedList
private java.util.List<Type> extendedList
-
-
Constructor Detail
-
NormalInterfaceDeclaration
public NormalInterfaceDeclaration(Scanner s, int offs, java.lang.String name)
-
-
Method Detail
-
addExtended
public void addExtended(Type extended)
Adds a type this interface extends.- Parameters:
extended- The extended type.
-
getExtendedCount
public int getExtendedCount()
-
getExtendedIterator
public java.util.Iterator<Type> getExtendedIterator()
-
getTypeString
public java.lang.String getTypeString()
Description copied from interface:TypeDeclarationReturns the type of this type declaration, as a string.- Returns:
- The type.
-
-