01: package org.acm.seguin.pmd.symboltable;
02:
03: import net.sourceforge.jrefactory.ast.ASTConstructorDeclaration;
04: import net.sourceforge.jrefactory.ast.ASTMethodDeclaration;
05: import net.sourceforge.jrefactory.ast.SimpleNode;
06:
07: public class MethodScopeEvaluator extends AbstractScopeEvaluator {
08: public MethodScopeEvaluator() {
09: triggers.add(ASTConstructorDeclaration.class);
10: triggers.add(ASTMethodDeclaration.class);
11: }
12:
13: public Scope getScopeFor(SimpleNode node) {
14: return new MethodScope();
15: }
16: }
|