|
||||||||||
| 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.NormalClassDeclaration
public class NormalClassDeclaration
A class declaration:
NormalClassDeclaration:
'class' Identifier [TypeParameters] ['extends' Type] ['implements' TypeList] ClassBody
| Constructor Summary | |
|---|---|
NormalClassDeclaration(Scanner s,
int offs,
String className)
|
|
| Method Summary | |
|---|---|
void |
addImplemented(Type implemented)
|
Type |
getExtendedType()
|
int |
getImplementedCount()
|
Iterator |
getImplementedIterator()
|
Method |
getMethodContainingOffset(int offs)
Gets the method in this class that contains a given offset. |
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. |
List |
getTypeParameters()
|
String |
getTypeString()
|
void |
setDeclarationEndOffset(Offset end)
|
protected void |
setDeclarationOffsets(Offset start,
Offset end)
Sets the start and end offsets of this node. |
void |
setExtendedType(Type type)
|
void |
setTypeParameters(List typeParams)
|
| 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 NormalClassDeclaration(Scanner s,
int offs,
String className)
| Method Detail |
|---|
public void addImplemented(Type implemented)
public Type getExtendedType()
public int getImplementedCount()
public Iterator getImplementedIterator()
public Method getMethodContainingOffset(int offs)
offs - The offset.
null if no
method in this class contains the offset.public List getTypeParameters()
public String getTypeString()
public void setExtendedType(Type type)
public void setTypeParameters(List typeParams)
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 | |||||||||