01: package org.acm.seguin.pmd.symboltable;
02:
03: import net.sourceforge.jrefactory.ast.ASTBlock;
04: import net.sourceforge.jrefactory.ast.ASTForStatement;
05: import net.sourceforge.jrefactory.ast.ASTIfStatement;
06: import net.sourceforge.jrefactory.ast.ASTSwitchStatement;
07: import net.sourceforge.jrefactory.ast.ASTTryStatement;
08: import net.sourceforge.jrefactory.ast.SimpleNode;
09:
10: public class LocalScopeEvaluator extends AbstractScopeEvaluator {
11: public LocalScopeEvaluator() {
12: triggers.add(ASTBlock.class);
13: triggers.add(ASTTryStatement.class);
14: triggers.add(ASTForStatement.class);
15: triggers.add(ASTSwitchStatement.class);
16: triggers.add(ASTIfStatement.class);
17: }
18:
19: public Scope getScopeFor(SimpleNode node) {
20: return new LocalScope();
21: }
22: }
|