public final class ClassMethodDeclaration extends MethodDeclaration
type
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 ClassMethodDeclaration |
construct(Identifier name,
TypeExpression type,
Parameter[] params,
Statement body)
Construction of a class method declaration
|
static ClassMethodDeclaration |
construct(Identifier name,
TypeExpression type,
java.util.Vector<Parameter> params,
Statement body)
Construction of a class method 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 ClassMethodDeclaration construct(Identifier name, TypeExpression type, java.util.Vector<Parameter> params, Statement body)
name
- the name of the methodtype
- its return typeparams
- the method parametersbody
- the method bodypublic static ClassMethodDeclaration construct(Identifier name, TypeExpression type, Parameter[] params, Statement body)
name
- the name of the methodtype
- its return typeparams
- the method parametesbody
- the method bodypublic void accept(ASTVisitorOld visitor)
accept
in interface AST
accept
in class MethodDeclaration
visitor
- the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept
in interface AST
accept
in class MethodDeclaration
visitor
- the visitor who is accepted by this node.