|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--koala.dynamicjava.tree.Node
|
+--koala.dynamicjava.tree.FieldDeclaration
This class represents field declarations in an AST
| Field Summary | |
static java.lang.String |
ACCESS_FLAGS
The accessFlags property name |
static java.lang.String |
INITIALIZER
The initializer property name |
static java.lang.String |
NAME
The name property name |
static java.lang.String |
TYPE
The type property name |
| Fields inherited from class koala.dynamicjava.tree.Node |
BEGIN_COLUMN, BEGIN_LINE, END_COLUMN, END_LINE, FILENAME |
| Constructor Summary | |
FieldDeclaration(int flags,
Type type,
java.lang.String name,
Expression init)
Creates a new field declaration |
|
FieldDeclaration(int flags,
Type type,
java.lang.String name,
Expression init,
java.lang.String fn,
int bl,
int bc,
int el,
int ec)
Creates a new field declaration |
|
| Method Summary | |
java.lang.Object |
acceptVisitor(Visitor visitor)
Allows a visitor to traverse the tree |
int |
getAccessFlags()
Returns the access flags for this method |
Expression |
getInitializer()
Returns the initializer for this field |
java.lang.String |
getName()
Returns the name of this field |
Type |
getType()
Gets the declared type for this field |
void |
setAccessFlags(int f)
Sets the access flags for this constructor |
void |
setInitializer(Expression e)
Sets the initializer |
void |
setName(java.lang.String s)
Sets the field's name |
void |
setType(Type t)
Sets the type of this field |
| Methods inherited from class koala.dynamicjava.tree.Node |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getFilename, getProperties, getProperty, hasProperty, removePropertyChangeListener, removePropertyChangeListener, setBeginColumn, setBeginLine, setEndColumn, setEndLine, setFilename, setProperty |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String ACCESS_FLAGS
public static final java.lang.String TYPE
public static final java.lang.String NAME
public static final java.lang.String INITIALIZER
| Constructor Detail |
public FieldDeclaration(int flags,
Type type,
java.lang.String name,
Expression init)
flags - the access flagstype - the type of this fieldname - the name of this fieldinit - the initializer. Can be nulljava.lang.IllegalArgumentException - if name is null or type is null
public FieldDeclaration(int flags,
Type type,
java.lang.String name,
Expression init,
java.lang.String fn,
int bl,
int bc,
int el,
int ec)
flags - the access flagstype - the type of this fieldname - the name of this fieldinit - the initializer. Can be nullfn - the filenamebl - the begin linebc - the begin columnel - the end lineec - the end columnjava.lang.IllegalArgumentException - if name is null or type is null| Method Detail |
public int getAccessFlags()
public void setAccessFlags(int f)
public Type getType()
public void setType(Type t)
java.lang.IllegalArgumentException - if t is nullpublic java.lang.String getName()
public void setName(java.lang.String s)
java.lang.IllegalArgumentException - if s is nullpublic Expression getInitializer()
public void setInitializer(Expression e)
public java.lang.Object acceptVisitor(Visitor visitor)
acceptVisitor in class Nodevisitor - the visitor to accept
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||