org.mozilla.javascript.optimizer
Class OptIRFactory

java.lang.Object
  |
  +--org.mozilla.javascript.IRFactory
        |
        +--org.mozilla.javascript.optimizer.OptIRFactory

public class OptIRFactory
extends IRFactory

This class allows the creation of nodes, and follows the Factory pattern.

Author:
Norris Boyd
See Also:
IRFactory

Constructor Summary
OptIRFactory(TokenStream ts, ClassNameHelper nameHelper, Scriptable scope)
           
 
Method Summary
 java.lang.Object createFunctionNode(java.lang.String name, java.lang.Object args, java.lang.Object statements)
           
 
Methods inherited from class org.mozilla.javascript.IRFactory
addChildToBack, createArrayLiteral, createAssignment, createBinary, createBinary, createBlock, createBreak, createCatch, createContinue, createDoWhile, createExprStatement, createFor, createForIn, createFunction, createIf, createLabel, createLeaf, createLeaf, createLeaf, createName, createNewLocal, createNewTemp, createNumber, createObjectLiteral, createRegExp, createReturn, createScript, createString, createSwitch, createTernary, createThrow, createTryCatchFinally, createUnary, createUnary, createUseLocal, createUseTemp, createVariables, createWhile, createWith, getLeafType, hasSideEffects, setFunctionExpressionStatement
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptIRFactory

public OptIRFactory(TokenStream ts,
                    ClassNameHelper nameHelper,
                    Scriptable scope)
Method Detail

createFunctionNode

public java.lang.Object createFunctionNode(java.lang.String name,
                                           java.lang.Object args,
                                           java.lang.Object statements)
Overrides:
createFunctionNode in class IRFactory