|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fife.rsta.ac.java.rjc.ast.AbstractTypeDeclarationNode
org.fife.rsta.ac.java.rjc.ast.NormalInterfaceDeclaration
public class NormalInterfaceDeclaration
An interface declaration:
NormalInterfaceDeclaration:
'interface' Identifier [TypeParameters] ['extends' TypeList] InterfaceBody
| Constructor Summary | |
|---|---|
NormalInterfaceDeclaration(Scanner s,
int offs,
String name)
|
|
| Method Summary | |
|---|---|
void |
addExtended(Type extended)
|
int |
getExtendedCount()
|
Iterator |
getExtendedIterator()
|
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. |
String |
getTypeString()
|
void |
setDeclarationEndOffset(Offset end)
|
protected void |
setDeclarationOffsets(Offset start,
Offset end)
Sets the start and end offsets of this node. |
| 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, getPackage, isDeprecated, setBodyEndOffset, setBodyStartOffset, setDeprecated, setDocComment, setModifiers, setPackage, toString |
| 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.TypeDeclaration |
|---|
getName |
| Methods inherited from interface org.fife.rsta.ac.java.rjc.ast.ASTNode |
|---|
getNameEndOffset, getNameStartOffset |
| Constructor Detail |
|---|
public NormalInterfaceDeclaration(Scanner s,
int offs,
String name)
| Method Detail |
|---|
public void addExtended(Type extended)
public int getExtendedCount()
public Iterator getExtendedIterator()
public String getTypeString()
public 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.
getName in interface ASTNodepublic int getNameEndOffset()
getNameEndOffset in interface ASTNodepublic int getNameStartOffset()
getNameStartOffset in interface ASTNodepublic void setDeclarationEndOffset(Offset end)
protected void setDeclarationOffsets(Offset start,
Offset end)
start - The start offset.end - The end offset.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||