|
||||||||||
| 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
public abstract class AbstractTypeDeclarationNode
| Constructor Summary | |
|---|---|
AbstractTypeDeclarationNode(String name,
Offset start)
|
|
AbstractTypeDeclarationNode(String name,
Offset start,
Offset end)
|
|
| Method Summary | |
|---|---|
void |
addMember(Member member)
|
void |
addTypeDeclaration(TypeDeclaration type)
|
boolean |
getBodyContainsOffset(int offs)
|
int |
getBodyEndOffset()
|
int |
getBodyStartOffset()
|
TypeDeclaration |
getChildType(int index)
|
TypeDeclaration |
getChildTypeAtOffset(int offs)
Returns the child type declaration of this one that contains the specified offset, if any. |
int |
getChildTypeCount()
|
String |
getDocComment()
|
Iterator |
getFieldIterator()
Returns an iterator over all fields defined in this type. |
Member |
getMember(int index)
|
int |
getMemberCount()
|
Iterator |
getMemberIterator()
Returns an iterator over all members of this type. |
Iterator |
getMethodIterator()
Returns an iterator over all methods defined in this type. |
List |
getMethodsByName(String name)
Returns all methods declared in this type with the given name. |
Modifiers |
getModifiers()
|
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. |
Package |
getPackage()
Returns the package this type is in. |
boolean |
isDeprecated()
|
void |
setBodyEndOffset(Offset end)
|
void |
setBodyStartOffset(Offset start)
|
void |
setDeclarationEndOffset(Offset end)
|
protected void |
setDeclarationOffsets(Offset start,
Offset end)
Sets the start and end offsets of this node. |
void |
setDeprecated(boolean deprecated)
|
void |
setDocComment(String comment)
|
void |
setModifiers(Modifiers modifiers)
|
void |
setPackage(Package pkg)
Sets the package this type is in. |
String |
toString()
Returns the name of this node (e.g. |
| 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, getTypeString |
| Methods inherited from interface org.fife.rsta.ac.java.rjc.ast.ASTNode |
|---|
getNameEndOffset, getNameStartOffset |
| Constructor Detail |
|---|
public AbstractTypeDeclarationNode(String name,
Offset start)
public AbstractTypeDeclarationNode(String name,
Offset start,
Offset end)
| Method Detail |
|---|
public void addMember(Member member)
public void addTypeDeclaration(TypeDeclaration type)
addTypeDeclaration in interface TypeDeclarationContainerpublic boolean getBodyContainsOffset(int offs)
getBodyContainsOffset in interface TypeDeclarationpublic int getBodyEndOffset()
getBodyEndOffset in interface TypeDeclarationpublic int getBodyStartOffset()
getBodyStartOffset in interface TypeDeclarationpublic TypeDeclaration getChildType(int index)
getChildType in interface TypeDeclarationpublic TypeDeclaration getChildTypeAtOffset(int offs)
getChildTypeAtOffset in interface TypeDeclarationoffs - The offset.
null if the offset is
outside of any child type declaration.public int getChildTypeCount()
getChildTypeCount in interface TypeDeclarationpublic String getDocComment()
getDocComment in interface TypeDeclarationpublic Iterator getFieldIterator()
getFieldIterator in interface TypeDeclarationTypeDeclaration.getMethodIterator(),
TypeDeclaration.getMemberIterator()public Member getMember(int index)
public int getMemberCount()
getMemberCount in interface TypeDeclarationpublic Iterator getMemberIterator()
getMemberIterator in interface TypeDeclarationTypeDeclaration.getMethodIterator()public Iterator getMethodIterator()
getMethodIterator in interface TypeDeclarationTypeDeclaration.getFieldIterator(),
TypeDeclaration.getMemberIterator()public List getMethodsByName(String name)
getMethodsByName in interface TypeDeclarationname - The name to check for.
public Modifiers getModifiers()
getModifiers in interface TypeDeclarationpublic Package getPackage()
getPackage in interface TypeDeclarationnull if it's in the default package.public boolean isDeprecated()
isDeprecated in interface TypeDeclarationpublic void setBodyEndOffset(Offset end)
public void setBodyStartOffset(Offset start)
public void setDeprecated(boolean deprecated)
public void setDocComment(String comment)
setDocComment in interface TypeDeclarationpublic void setModifiers(Modifiers modifiers)
public void setPackage(Package pkg)
pkg - The package, or null if this is in the
default package.getPackage()public String toString()
getName()).
Subclasses can override this method if appropriate.
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 | |||||||||