public class MethodDecl extends ASTList
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
initName |
Constructor and Description |
---|
MethodDecl(ASTree _head,
ASTList _tail) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
Is a method for the visitor pattern.
|
Stmnt |
getBody() |
ASTList |
getModifiers() |
ASTList |
getParams() |
Declarator |
getReturn() |
ASTList |
getThrows() |
boolean |
isConstructor() |
public static final java.lang.String initName
public boolean isConstructor()
public ASTList getModifiers()
public Declarator getReturn()
public ASTList getParams()
public ASTList getThrows()
public Stmnt getBody()
public void accept(Visitor v) throws CompileError
ASTree
atXXX()
on the given visitor, where
XXX
is the class name of the node object.accept
in class ASTList
CompileError