public interface VarDecl extends Decl
| Modifier and Type | Interface and Description |
|---|---|
static class |
VarDecl.Impl |
static interface |
VarDecl.Visitor<P,R> |
| Modifier and Type | Method and Description |
|---|---|
default <P,R> R |
accept(Decl.Visitor<P,R> visitor,
P par) |
default <P,R> R |
accept(Node.Visitor<P,R> visitor,
P par) |
default <P,R> R |
accept(VarDecl.Visitor<P,R> visitor,
P par) |
Expr |
getExpr() |
java.lang.String |
getName() |
Type |
getType() |
static VarDecl |
of(java.lang.String name,
Type type,
Expr expr) |
void |
setExpr(Expr expr) |
void |
setName(java.lang.String name) |
void |
setType(Type type) |
Expr getExpr()
void setExpr(Expr expr)
default <P,R> R accept(VarDecl.Visitor<P,R> visitor, P par)
default <P,R> R accept(Decl.Visitor<P,R> visitor, P par)
default <P,R> R accept(Node.Visitor<P,R> visitor, P par)