org.mozilla.javascript.optimizer
Class OptFunctionNode

java.lang.Object
  |
  +--org.mozilla.javascript.Node
        |
        +--org.mozilla.javascript.FunctionNode
              |
              +--org.mozilla.javascript.optimizer.OptFunctionNode
All Implemented Interfaces:
java.lang.Cloneable

public class OptFunctionNode
extends FunctionNode


Fields inherited from class org.mozilla.javascript.FunctionNode
FUNCTION_EXPRESSION, FUNCTION_EXPRESSION_STATEMENT, FUNCTION_STATEMENT
 
Fields inherited from class org.mozilla.javascript.Node
BASE_LINENO_PROP, BOTH, BREAK_PROP, CASEARRAY_PROP, CASES_PROP, CODEOFFSET_PROP, CONTINUE_PROP, DEBUGSOURCE_PROP, DEFAULT_PROP, DIRECTCALL_PROP, END_LINENO_PROP, ENUM_PROP, FINALLY_PROP, FIXUPS_PROP, FUNCTION_PROP, ISNUMBER_PROP, LABEL_PROP, LASTUSE_PROP, LEFT, LOCAL_PROP, LOCALCOUNT_PROP, REGEXP_PROP, RIGHT, SOURCE_PROP, SOURCENAME_PROP, SPECIAL_PROP_PROP, SPECIALCALL_PROP, TARGET_PROP, TARGETBLOCK_PROP, TEMP_PROP, TYPE_PROP, USES_PROP, VARIABLE_PROP, VARS_PROP
 
Constructor Summary
OptFunctionNode(java.lang.String name, Node left, Node right, ClassNameHelper nameHelper)
           
 
Method Summary
 void addDirectCallTarget(FunctionNode target)
           
 boolean containsCalls(int argCount)
           
 java.lang.String getClassName()
           
 java.lang.String getDirectCallParameterSignature()
           
 java.util.Vector getDirectCallTargets()
           
 boolean getParameterNumberContext()
           
 void incrementLocalCount()
           
 boolean isTargetOfDirectCall()
           
 void setContainsCalls(int argCount)
           
 void setIsTargetOfDirectCall()
           
 void setParameterNumberContext(boolean b)
           
 
Methods inherited from class org.mozilla.javascript.FunctionNode
getCheckThis, getFunctionName, getFunctionType, getVariableTable, requiresActivation, setCheckThis, setFunctionType, setRequiresActivation
 
Methods inherited from class org.mozilla.javascript.Node
addChildAfter, addChildBefore, addChildrenToBack, addChildrenToFront, addChildToBack, addChildToFront, cloneNode, getChildBefore, getDatum, getDouble, getExistingIntProp, getFirst, getFirstChild, getInt, getIntProp, getLastChild, getLastSibling, getLong, getNext, getNextSibling, getNumber, getPreorderIterator, getProp, getString, getType, hasChildren, putIntProp, putProp, removeChild, removeProp, replaceChild, replaceChildAfter, setDatum, setType, toString, toStringTree
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OptFunctionNode

public OptFunctionNode(java.lang.String name,
                       Node left,
                       Node right,
                       ClassNameHelper nameHelper)
Method Detail

getDirectCallParameterSignature

public java.lang.String getDirectCallParameterSignature()

getClassName

public java.lang.String getClassName()

isTargetOfDirectCall

public boolean isTargetOfDirectCall()

addDirectCallTarget

public void addDirectCallTarget(FunctionNode target)

getDirectCallTargets

public java.util.Vector getDirectCallTargets()

setIsTargetOfDirectCall

public void setIsTargetOfDirectCall()

setParameterNumberContext

public void setParameterNumberContext(boolean b)

getParameterNumberContext

public boolean getParameterNumberContext()

containsCalls

public boolean containsCalls(int argCount)

setContainsCalls

public void setContainsCalls(int argCount)

incrementLocalCount

public void incrementLocalCount()