01: package org.acm.seguin.pmd.symboltable;
02:
03: import net.sourceforge.jrefactory.ast.SimpleNode;
04:
05: import java.util.HashSet;
06: import java.util.Set;
07:
08: public abstract class AbstractScopeEvaluator implements ScopeEvaluator {
09: protected Set triggers = new HashSet();
10:
11: public abstract Scope getScopeFor(SimpleNode node);
12:
13: public boolean isScopeCreatedBy(SimpleNode node) {
14: return triggers.contains(node.getClass());
15: }
16: }
|