|
||||||||||
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.ConstructorDeclaration
This class represents constructor declarations in an AST
Field Summary | |
static java.lang.String |
ACCESS_FLAGS
The accessFlags property name |
static java.lang.String |
EXCEPTIONS
The exceptions property name |
static java.lang.String |
NAME
The name property name |
static java.lang.String |
PARAMETERS
The parameters property name |
static java.lang.String |
STATEMENTS
The statements property name |
Fields inherited from class koala.dynamicjava.tree.Node |
BEGIN_COLUMN, BEGIN_LINE, END_COLUMN, END_LINE, FILENAME |
Constructor Summary | |
ConstructorDeclaration(int flags,
java.lang.String name,
java.util.List params,
java.util.List excepts,
ConstructorInvocation eci,
java.util.List stmts)
Creates a new method declaration |
|
ConstructorDeclaration(int flags,
java.lang.String name,
java.util.List params,
java.util.List excepts,
ConstructorInvocation eci,
java.util.List stmts,
java.lang.String fn,
int bl,
int bc,
int el,
int ec)
Creates a new method declaration |
Method Summary | |
java.lang.Object |
acceptVisitor(Visitor visitor)
Allows a visitor to traverse the tree |
int |
getAccessFlags()
Returns the access flags for this constructor |
ConstructorInvocation |
getConstructorInvocation()
The explicit constructor invocation if one or null |
java.util.List |
getExceptions()
Returns the list of the exception thrown by this method |
java.lang.String |
getName()
Returns the name of this constructor |
java.util.List |
getParameters()
Returns the parameters list |
java.util.List |
getStatements()
Returns the statements |
void |
setAccessFlags(int f)
Sets the access flags for this constructor |
void |
setConstructorInvocation(ConstructorInvocation ci)
Sets the constructor invocation |
void |
setExceptions(java.util.List l)
Sets the exceptions thrown by this method |
void |
setName(java.lang.String s)
Sets the constructor's name |
void |
setParameters(java.util.List l)
Sets the parameters |
void |
setStatements(java.util.List l)
Sets the statements |
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 NAME
public static final java.lang.String PARAMETERS
public static final java.lang.String EXCEPTIONS
public static final java.lang.String STATEMENTS
Constructor Detail |
public ConstructorDeclaration(int flags, java.lang.String name, java.util.List params, java.util.List excepts, ConstructorInvocation eci, java.util.List stmts)
flags
- the access flagsname
- the name of this constructorparams
- the parameters listexcepts
- the exception list (a list of list of token)eci
- the explicit constructor invocationstmts
- the statementsjava.lang.IllegalArgumentException
- if name is null or params is null or
excepts is null or stmts is nullpublic ConstructorDeclaration(int flags, java.lang.String name, java.util.List params, java.util.List excepts, ConstructorInvocation eci, java.util.List stmts, java.lang.String fn, int bl, int bc, int el, int ec)
flags
- the access flagsname
- the name of this constructorparams
- the parameters listexcepts
- the exception list (a list of list of token)eci
- the explicit constructor invocationstmts
- the statementsfn
- the filenamebl
- the begin linebc
- the begin columnel
- the end lineec
- the end columnjava.lang.IllegalArgumentException
- if name is null or params is null or
excepts is null or stmts is nullMethod Detail |
public int getAccessFlags()
public void setAccessFlags(int f)
public java.lang.String getName()
public void setName(java.lang.String s)
java.lang.IllegalArgumentException
- if s is nullpublic java.util.List getParameters()
public void setParameters(java.util.List l)
public java.util.List getExceptions()
public void setExceptions(java.util.List l)
l
- a list of stringjava.lang.IllegalArgumentException
- if l is nullpublic ConstructorInvocation getConstructorInvocation()
public void setConstructorInvocation(ConstructorInvocation ci)
public java.util.List getStatements()
public void setStatements(java.util.List l)
java.lang.IllegalArgumentException
- if l 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 |