|
||||||||||
| 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.Method
public class Method
| Constructor Summary | |
|---|---|
Method(Scanner s,
Modifiers modifiers,
Type type,
Token nameToken,
List params,
List thrownTypeNames)
|
|
| Method Summary | |
|---|---|
CodeBlock |
getBody()
|
boolean |
getBodyContainsOffset(int offs)
|
int |
getBodyEndOffset()
|
int |
getBodyStartOffset()
|
String |
getDocComment()
|
Modifiers |
getModifiers()
|
String |
getName()
Returns the "name" of this node. |
String |
getNameAndParameters()
|
int |
getNameEndOffset()
Returns the end offset of the "name" of this node. |
int |
getNameStartOffset()
Returns the start offset of the "name" of this node. |
FormalParameter |
getParameter(int index)
|
int |
getParameterCount()
|
Iterator |
getParameterIterator()
|
TypeDeclaration |
getParentTypeDeclaration()
|
int |
getThrownTypeNameCount()
|
Type |
getType()
|
boolean |
isConstructor()
|
boolean |
isDeprecated()
|
void |
setBody(CodeBlock body)
|
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 |
setParentTypeDeclaration(TypeDeclaration dec)
|
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.Member |
|---|
getName, getNameEndOffset, getNameStartOffset |
| Constructor Detail |
|---|
public Method(Scanner s,
Modifiers modifiers,
Type type,
Token nameToken,
List params,
List thrownTypeNames)
| Method Detail |
|---|
public CodeBlock getBody()
public boolean getBodyContainsOffset(int offs)
public int getBodyEndOffset()
public int getBodyStartOffset()
public String getDocComment()
public Modifiers getModifiers()
public String getNameAndParameters()
public FormalParameter getParameter(int index)
public int getParameterCount()
public Iterator getParameterIterator()
public int getThrownTypeNameCount()
public Type getType()
public boolean isConstructor()
public boolean isDeprecated()
public void setBody(CodeBlock body)
public void setDeprecated(boolean deprecated)
public void setDocComment(String comment)
public TypeDeclaration getParentTypeDeclaration()
getParentTypeDeclaration in interface Memberpublic void setParentTypeDeclaration(TypeDeclaration dec)
setParentTypeDeclaration in interface Memberpublic 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.public String toString()
getName()).
Subclasses can override this method if appropriate.
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||