|
||||||||||
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.FormalParameter
This class represents the method parameters in the syntax tree
Field Summary | |
static java.lang.String |
FINAL
The final 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 | |
FormalParameter(boolean f,
Type t,
java.lang.String n)
Initializes the node |
|
FormalParameter(boolean f,
Type t,
java.lang.String n,
java.lang.String fn,
int bl,
int bc,
int el,
int ec)
Initializes the node |
Method Summary | |
java.lang.Object |
acceptVisitor(Visitor visitor)
Allows a visitor to traverse the tree |
java.lang.String |
getName()
The name of this parameter |
Type |
getType()
Returns the declaring type of this parameter |
boolean |
isFinal()
Is this parameter final? |
void |
setName(java.lang.String s)
Sets this parameter's name |
void |
setType(Type t)
Sets the type of this parameter |
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 FINAL
public static final java.lang.String TYPE
public static final java.lang.String NAME
Constructor Detail |
public FormalParameter(boolean f, Type t, java.lang.String n)
f
- is the parameter final?t
- the type of the parametern
- the name of the parameterjava.lang.IllegalArgumentException
- if t is null or n is nullpublic FormalParameter(boolean f, Type t, java.lang.String n, java.lang.String fn, int bl, int bc, int el, int ec)
f
- is the parameter final?t
- the type of the parametern
- the name of the parameterfn
- the filenamebl
- the begin linebc
- the begin columnel
- the end lineec
- the end columnjava.lang.IllegalArgumentException
- if t is null or n is nullMethod Detail |
public boolean isFinal()
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 java.lang.Object acceptVisitor(Visitor visitor)
acceptVisitor
in class Node
visitor
- the visitor to accept
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |