org.xwiki.portlet.view
Class JavaScriptIdASTFilter
java.lang.Object
org.xwiki.portlet.view.JavaScriptIdASTFilter
- All Implemented Interfaces:
- org.mozilla.javascript.ast.NodeVisitor
public class JavaScriptIdASTFilter
- extends Object
- implements org.mozilla.javascript.ast.NodeVisitor
Name-spaces all occurrences of HTML element identifiers inside the AST tree.
- Version:
- $Id: 51422a166f3fa60da9434f4c899359863af50d66 $
|
Constructor Summary |
JavaScriptIdASTFilter(String namespace)
Creates a new filter that uses the given string to name-space all occurrences of HTML element identifiers inside
the AST tree. |
|
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 |
JavaScriptIdASTFilter
public JavaScriptIdASTFilter(String namespace)
- Creates a new filter that uses the given string to name-space all occurrences of HTML element identifiers inside
the AST tree.
- 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.