Class ReturnExprStmt


public class ReturnExprStmt extends JumpStmt
ReturnExprStmt represents the areturn opcode which returns a reference from a method.
  • Constructor Details

    • ReturnExprStmt

      public ReturnExprStmt(Expr expr)
      Constructor.
      Parameters:
      expr - The expression (reference) returned by this return statement.
  • Method Details

    • expr

      public Expr expr()
    • visitForceChildren

      public void visitForceChildren(TreeVisitor visitor)
      Description copied from class: Node
      Visit the children of this node. Not all Nodes will have children to visit.
      Specified by:
      visitForceChildren in class Node
    • visit

      public void visit(TreeVisitor visitor)
      Specified by:
      visit in class Node
    • clone

      public Object clone()
      Specified by:
      clone in class Stmt