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

Constructor Summary
NodeTransformer()
           
 
Method Summary
 IRFactory createIRFactory(TokenStream ts, Scriptable scope)
           
 NodeTransformer newInstance()
          Return new instance of this class.
 Node transform(Node tree, Node enclosing, TokenStream ts, Scriptable scope)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeTransformer

public NodeTransformer()
Method Detail

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)