public final class ConstructorDeclaration extends ParamDeclarationBase
body, params
name
Modifier and Type | Method and Description |
---|---|
void |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
void |
accept(ASTVisitorOld visitor)
Accept visitor for a visit.
|
static ConstructorDeclaration |
construct(Identifier name,
Parameter[] params,
Statement body)
Construction of a constructor declaration.
|
static ConstructorDeclaration |
construct(Identifier name,
java.util.Vector<Parameter> params,
Statement body)
Construction of a constructor declaration.
|
acceptChildren, getBody, getParams
getAnnotation, setAnnotation
getName
getPosition, setPosition
accept, accept, print, printCore, toString, toStringCore
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName
getPosition, setPosition
getAnnotation, setAnnotation
print, printCore, toString, toStringCore
public static ConstructorDeclaration construct(Identifier name, java.util.Vector<Parameter> params, Statement body)
name
- the name of the constructorparams
- the constructor parametersbody
- the constructor bodypublic static ConstructorDeclaration construct(Identifier name, Parameter[] params, Statement body)
name
- the name of the constructorparams
- the constructor parametersbody
- the constructor bodypublic void accept(ASTVisitorOld visitor)
accept
in interface AST
accept
in class ParamDeclarationBase
visitor
- the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept
in interface AST
accept
in class ParamDeclarationBase
visitor
- the visitor who is accepted by this node.