public class FormalParameter extends LocalVariable
| Constructor and Description |
|---|
FormalParameter(Scanner s,
boolean isFinal,
Type type,
int offs,
java.lang.String name,
java.util.List<Annotation> annotations) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAnnotationCount() |
java.lang.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.
|
java.lang.String |
toString()
Overridden to return "
getType() getName()". |
getType, isFinalpublic FormalParameter(Scanner s, boolean isFinal, Type type, int offs, java.lang.String name, java.util.List<Annotation> annotations)
public int getAnnotationCount()
public java.lang.String toString()
getType() getName()".public java.lang.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.
public int getNameEndOffset()
getNameEndOffset in interface ASTNodepublic int getNameStartOffset()
getNameStartOffset in interface ASTNodepublic void setDeclarationEndOffset(Offset end)