|
|||||||||
| Home >> All >> openjava >> [ ptree overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
openjava.ptree
Class ConstructorDeclaration

java.lang.Objectopenjava.ptree.ParseTreeObject
openjava.ptree.NonLeaf
openjava.ptree.ConstructorDeclaration
- All Implemented Interfaces:
- java.lang.Cloneable, MemberDeclaration, ParseTree
- public class ConstructorDeclaration
- extends NonLeaf
- implements MemberDeclaration
- extends NonLeaf
The ConstructorDeclaration class represents
constructor declaration node of the parse tree.
| Field Summary | |
private java.util.Hashtable |
suffixes
|
| Fields inherited from class openjava.ptree.NonLeaf |
|
| Fields inherited from class openjava.ptree.ParseTreeObject |
LN |
| Fields inherited from interface openjava.ptree.MemberDeclaration |
CONSTRUCTOR, FIELD, METHOD, STATICINIT, STATICINITIALIZER, TYPE |
| Constructor Summary | |
(package private) |
ConstructorDeclaration()
for recursive copy |
|
ConstructorDeclaration(ModifierList modiflist,
java.lang.String name,
ParameterList params,
TypeName[] throwlist,
ConstructorInvocation scstmt,
StatementList stmtlist)
Constructs new ConstructorDeclaration from its elements. |
|
ConstructorDeclaration(ModifierList modiflist,
java.lang.String name,
ParameterList params,
TypeName[] throwlist,
StatementList stmtlist)
Constructs new ConstructorDeclaration from its elements. |
| Method Summary | |
void |
accept(openjava.ptree.util.ParseTreeVisitor v)
Accepts a ParseTreeVisitor object as the role of a
Visitor in the Visitor pattern, as the role of an Element in the
Visitor pattern. |
StatementList |
getBody()
Gets the statement list of this constructor body. |
ConstructorInvocation |
getConstructorInvocation()
Gets the special call statement. |
ModifierList |
getModifiers()
Gets modifier list. |
java.lang.String |
getName()
Gets the name of this constructor node. |
ParameterList |
getParameters()
Gets the parameter list. |
java.util.Hashtable |
getSuffixes()
|
TypeName[] |
getThrows()
Gets the class type list thrown by this constructor. |
void |
setBody(StatementList stmts)
Sets the statement list of this constructor body. |
void |
setConstructorInvocation(ConstructorInvocation scstmt)
Sets the special call statement. |
void |
setModifiers(ModifierList modifs)
Sets modifier list. |
void |
setName(java.lang.String name)
Sets the name of this constructor node. |
void |
setParameters(ParameterList params)
Sets the parameter list. |
void |
setSuffixes(java.util.Hashtable suffixes)
|
void |
setThrows(TypeName[] ctlist)
Sets the class type list thrown by this constructor. |
| Methods inherited from class openjava.ptree.NonLeaf |
childrenAccept, elementAt, equals, getComment, getContents, getLength, makeRecursiveCopy, replaceChildWith, set, set, set, set, set, set, set, set, set, setComment, setElementAt |
| Methods inherited from class openjava.ptree.ParseTreeObject |
clone, equal, getObjectID, getParent, hashCode, lastObjectID, makeCopy, replace, setParent, toFlattenString, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface openjava.ptree.MemberDeclaration |
equals |
| Methods inherited from interface openjava.ptree.ParseTree |
childrenAccept, getObjectID, makeCopy, makeRecursiveCopy, replace, toFlattenString, toString |
| Field Detail |
suffixes
private java.util.Hashtable suffixes
| Constructor Detail |
ConstructorDeclaration
public ConstructorDeclaration(ModifierList modiflist, java.lang.String name, ParameterList params, TypeName[] throwlist, ConstructorInvocation scstmt, StatementList stmtlist)
- Constructs new ConstructorDeclaration from its elements.
ConstructorDeclaration
public ConstructorDeclaration(ModifierList modiflist, java.lang.String name, ParameterList params, TypeName[] throwlist, StatementList stmtlist)
- Constructs new ConstructorDeclaration from its elements.
ConstructorDeclaration
ConstructorDeclaration()
- for recursive copy
| Method Detail |
getModifiers
public ModifierList getModifiers()
- Gets modifier list.
setModifiers
public void setModifiers(ModifierList modifs)
- Sets modifier list.
getName
public java.lang.String getName()
- Gets the name of this constructor node.
setName
public void setName(java.lang.String name)
- Sets the name of this constructor node.
getParameters
public ParameterList getParameters()
- Gets the parameter list.
setParameters
public void setParameters(ParameterList params)
- Sets the parameter list.
getThrows
public TypeName[] getThrows()
- Gets the class type list thrown by this constructor.
setThrows
public void setThrows(TypeName[] ctlist)
- Sets the class type list thrown by this constructor.
getConstructorInvocation
public ConstructorInvocation getConstructorInvocation()
- Gets the special call statement.
Special call statement is like:
super();
setConstructorInvocation
public void setConstructorInvocation(ConstructorInvocation scstmt)
- Sets the special call statement.
getBody
public StatementList getBody()
- Gets the statement list of this constructor body.
setBody
public void setBody(StatementList stmts)
- Sets the statement list of this constructor body.
setSuffixes
public void setSuffixes(java.util.Hashtable suffixes)
getSuffixes
public java.util.Hashtable getSuffixes()
accept
public void accept(openjava.ptree.util.ParseTreeVisitor v) throws ParseTreeException
- Description copied from interface:
ParseTree - Accepts a
ParseTreeVisitorobject as the role of a Visitor in the Visitor pattern, as the role of an Element in the Visitor pattern.This invoke an appropriate
visit()method on the accepted visitor.- Specified by:
acceptin interfaceParseTree- Specified by:
acceptin classParseTreeObject
|
|||||||||
| Home >> All >> openjava >> [ ptree overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC