public class NormalInterfaceDeclaration extends AbstractTypeDeclarationNode
NormalInterfaceDeclaration:
'interface' Identifier [TypeParameters] ['extends' TypeList] InterfaceBody
| Constructor and Description |
|---|
NormalInterfaceDeclaration(Scanner s,
int offs,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExtended(Type extended) |
int |
getExtendedCount() |
java.util.Iterator<Type> |
getExtendedIterator() |
java.lang.String |
getName()
Returns the "name" of this node.
|
int |
getNameEndOffset()
Returns the end offset of the "name" of this node.
|
int |
getNameStartOffset()
Returns the start offset of the "name" of this node.
|
java.lang.String |
getTypeString() |
void |
setDeclarationEndOffset(Offset end) |
protected void |
setDeclarationOffsets(Offset start,
Offset end)
Sets the start and end offsets of this node.
|
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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamegetNameEndOffset, getNameStartOffsetpublic NormalInterfaceDeclaration(Scanner s, int offs, java.lang.String name)
public void addExtended(Type extended)
public int getExtendedCount()
public java.util.Iterator<Type> getExtendedIterator()
public java.lang.String getTypeString()
public java.lang.String getName()
CodeBlocks
it will be CodeBlock.NAME.Note that this may not be unique. For example, a class with an overloaded method will have multiple methods with the same "name," just with different signatures.
public int getNameEndOffset()
getNameEndOffset in interface ASTNodepublic int getNameStartOffset()
getNameStartOffset in interface ASTNodepublic void setDeclarationEndOffset(Offset end)