1 package com.oocode; 2 import java.util.*; 3 4 import org.sablecc.java.analysis.DepthFirstAdapter; 5 import org.sablecc.java.node.AMethodDeclaration; 6 7 37 public class MethodGettingWalker extends DepthFirstAdapter { 38 39 private List methods = new Vector(); 40 41 44 public void caseAMethodDeclaration(AMethodDeclaration node) { 45 methods.add(node); 46 } 47 48 public List getMethods(){ 49 return methods; 50 } 51 } 52 | Popular Tags |