|
||||||||||
| 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.LocalVariable
org.fife.rsta.ac.java.rjc.ast.FormalParameter
public class FormalParameter
A parameter to a method.
| Constructor Summary | |
|---|---|
FormalParameter(Scanner s,
boolean isFinal,
Type type,
int offs,
String name,
List annotations)
|
|
| Method Summary | |
|---|---|
int |
getAnnotationCount()
|
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. |
void |
setDeclarationEndOffset(Offset end)
|
protected void |
setDeclarationOffsets(Offset start,
Offset end)
Sets the start and end offsets of this node. |
String |
toString()
Overridden to return " getType() getName()". |
| Methods inherited from class org.fife.rsta.ac.java.rjc.ast.LocalVariable |
|---|
getType, isFinal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FormalParameter(Scanner s,
boolean isFinal,
Type type,
int offs,
String name,
List annotations)
| Method Detail |
|---|
public int getAnnotationCount()
public String toString()
getType() getName()".
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 | |||||||||