org.mozilla.javascript
Class NodeTransformer
java.lang.Object
|
+--org.mozilla.javascript.NodeTransformer
- public class NodeTransformer
- extends java.lang.Object
This class transforms a tree to a lower-level representation for codegen.
- Author:
- Norris Boyd
- See Also:
Node
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeTransformer
public NodeTransformer()
newInstance
public NodeTransformer newInstance()
- Return new instance of this class. So that derived classes
can override methods of the transformer.
createIRFactory
public IRFactory createIRFactory(TokenStream ts,
Scriptable scope)
transform
public Node transform(Node tree,
Node enclosing,
TokenStream ts,
Scriptable scope)