org.xwiki.portlet.view
Class JavaScriptNameASTFilter
java.lang.Object
org.xwiki.portlet.view.JavaScriptNameASTFilter
- All Implemented Interfaces:
- org.mozilla.javascript.ast.NodeVisitor
public class JavaScriptNameASTFilter
- extends Object
- implements org.mozilla.javascript.ast.NodeVisitor
Name-spaces all global variable names.
- Version:
- $Id: 256feb6d26a9d93561a62baa209010a801171a2a $
|
Constructor Summary |
JavaScriptNameASTFilter(String namespace)
Creates a new filter that uses the given string to name-space all global variable names. |
|
Method Summary |
boolean |
visit(org.mozilla.javascript.ast.AstNode node)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaScriptNameASTFilter
public JavaScriptNameASTFilter(String namespace)
- Creates a new filter that uses the given string to name-space all global variable names.
- Parameters:
namespace - the name-space
visit
public boolean visit(org.mozilla.javascript.ast.AstNode node)
- Specified by:
visit in interface org.mozilla.javascript.ast.NodeVisitor
Copyright © 2004-2013 XWiki. All Rights Reserved.