public abstract class ParamDeclarationBase extends TopDeclarationBase implements ParamDeclaration
Modifier and Type | Field and Description |
---|---|
Statement |
body |
Parameter[] |
params |
name
Constructor and Description |
---|
ParamDeclarationBase(Identifier name,
Parameter[] params,
Statement body)
Construction of a constructor declaration.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
void |
accept(ASTVisitorOld visitor)
Accept visitor for a visit.
|
void |
acceptChildren(ASTVisitor visitor)
Accept visitor for a visit to the children of this node.
|
Statement |
getBody()
Get body of declaration.
|
Parameter[] |
getParams()
Get parameters of declaration.
|
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 ParamDeclarationBase(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 TopDeclarationBase
visitor
- the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept
in interface AST
accept
in class TopDeclarationBase
visitor
- the visitor who is accepted by this node.public void acceptChildren(ASTVisitor visitor)
acceptChildren
in interface AST
acceptChildren
in class TopDeclarationBase
visitor
- the visitor who is accepted by the children of this node.public Parameter[] getParams()
getParams
in interface ParamDeclaration
public Statement getBody()
getBody
in interface ParamDeclaration