|
||||||||||
| 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.Field
public class Field
| Constructor Summary | |
|---|---|
Field(Scanner s,
Modifiers modifiers,
Type type,
Token t)
|
|
| Method Summary | |
|---|---|
String |
getDocComment()
|
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. |
TypeDeclaration |
getParentTypeDeclaration()
|
Type |
getType()
|
boolean |
isDeprecated()
|
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 Field(Scanner s,
Modifiers modifiers,
Type type,
Token t)
| Method Detail |
|---|
public String getDocComment()
public Modifiers getModifiers()
public Type getType()
public boolean isDeprecated()
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 | |||||||||