Class MethodDecl

  • All Implemented Interfaces:
    java.io.Serializable

    public class MethodDecl
    extends ASTList
    See Also:
    Serialized Form
    • Constructor Detail

      • MethodDecl

        public MethodDecl​(ASTree _head,
                          ASTList _tail)
    • Method Detail

      • isConstructor

        public boolean isConstructor()
      • getModifiers

        public ASTList getModifiers()
      • getParams

        public ASTList getParams()
      • getThrows

        public ASTList getThrows()
      • getBody

        public Stmnt getBody()
      • accept

        public void accept​(Visitor v)
                    throws CompileError
        Description copied from class: ASTree
        Is a method for the visitor pattern. It calls atXXX() on the given visitor, where XXX is the class name of the node object.
        Overrides:
        accept in class ASTList
        Throws:
        CompileError