Exemplo n.º 1
0
 /**
  * Visit a method node
  *
  * @param node the method node
  * @return result of the visit
  */
 public Object visit(Method node) {
   this.currMethodName = node.getName();
   this.numLocalVars.put(this.currKey(), new Integer(0));
   return super.visit(node);
 }
Exemplo n.º 2
0
 public Object visit(Method node) {
   return layoutBinary(
       "Method " + node.getName() + ":" + node.getReturnType(),
       node.getFormalList(),
       node.getStmtList());
 }