01: package net.sourceforge.pmd.symboltable;
02:
03: import net.sourceforge.pmd.jsp.ast.ASTCompilationUnit;
04:
05: /**
06: * Setting the scope in the root of a JSP AST.
07: *
08: * @author pieter_van_raemdonck - Application Engineers NV/SA - www.ae.be
09: */
10: public class JspScopeAndDeclarationFinder {
11:
12: /**
13: * Set a DummyScope as scope of the given compilationUnit.
14: *
15: * @param compilationUnit the ASTCompilationUnit
16: */
17: public void setJspScope(ASTCompilationUnit compilationUnit) {
18: compilationUnit.setScope(new DummyScope());
19: }
20: }
|