org.mozilla.javascript
Class FunctionNode

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

public class FunctionNode
extends Node


Field Summary
static byte FUNCTION_EXPRESSION
           
static byte FUNCTION_EXPRESSION_STATEMENT
           
static byte FUNCTION_STATEMENT
          There are three types of functions that can be defined.
 
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
FunctionNode(java.lang.String name, Node left, Node right)
           
 
Method Summary
 boolean getCheckThis()
           
 java.lang.String getFunctionName()
           
 byte getFunctionType()
           
 VariableTable getVariableTable()
           
 boolean requiresActivation()
           
 void setCheckThis(boolean b)
           
 void setFunctionType(byte functionType)
           
 boolean setRequiresActivation(boolean b)
           
 
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
 

Field Detail

FUNCTION_STATEMENT

public static final byte FUNCTION_STATEMENT
There are three types of functions that can be defined. The first is a function statement. This is a function appearing as a top-level statement (i.e., not nested inside some other statement) in either a script or a function. The second is a function expression, which is a function appearing in an expression except for the third type, which is... The third type is a function expression where the expression is the top-level expression in an expression statement. The three types of functions have different treatment and must be distinquished.

FUNCTION_EXPRESSION

public static final byte FUNCTION_EXPRESSION

FUNCTION_EXPRESSION_STATEMENT

public static final byte FUNCTION_EXPRESSION_STATEMENT
Constructor Detail

FunctionNode

public FunctionNode(java.lang.String name,
                    Node left,
                    Node right)
Method Detail

getFunctionName

public java.lang.String getFunctionName()

getVariableTable

public VariableTable getVariableTable()

requiresActivation

public boolean requiresActivation()

setRequiresActivation

public boolean setRequiresActivation(boolean b)

getCheckThis

public boolean getCheckThis()

setCheckThis

public void setCheckThis(boolean b)

getFunctionType

public byte getFunctionType()

setFunctionType

public void setFunctionType(byte functionType)