public final class Parameter extends VariableDeclarationBase
type
annotation, 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 Parameter |
construct(TypeExpression type,
Identifier name)
Construct a parameter.
|
acceptChildren, getType
getAnnotation, getName, setAnnotation
getPosition, setPosition
accept, accept, print, printCore, toString, toStringCore
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName
getPosition, setPosition
print, printCore, toString, toStringCore
public static Parameter construct(TypeExpression type, Identifier name)
type
- the type of the parameter.name
- its name.public void accept(ASTVisitorOld visitor)
accept
in interface AST
accept
in class VariableDeclarationBase
visitor
- the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept
in interface AST
accept
in class VariableDeclarationBase
visitor
- the visitor who is accepted by this node.