org.mozilla.javascript
Class FunctionNode

java.lang.Object
  extended byorg.mozilla.javascript.Node
      extended byorg.mozilla.javascript.ScriptOrFnNode
          extended byorg.mozilla.javascript.FunctionNode

public class FunctionNode
extends ScriptOrFnNode


Nested Class Summary
 
Nested classes inherited from class org.mozilla.javascript.Node
Node.Jump
 
Field Summary
static int FUNCTION_EXPRESSION
           
static int FUNCTION_EXPRESSION_STATEMENT
           
static int FUNCTION_STATEMENT
          There are three types of functions that can be defined.
 
Fields inherited from class org.mozilla.javascript.Node
ATTRIBUTE_FLAG, BOTH, CASEARRAY_PROP, CATCH_SCOPE_PROP, DECR_FLAG, DESCENDANTS_FLAG, DIRECTCALL_PROP, FUNCTION_PROP, INCRDECR_PROP, ISNUMBER_PROP, LABEL_ID_PROP, LAST_PROP, LEFT, LOCAL_BLOCK_PROP, LOCAL_PROP, MEMBER_TYPE_PROP, NAME_PROP, NON_SPECIALCALL, OBJECT_IDS_PROP, POST_FLAG, PROPERTY_FLAG, REGEXP_PROP, RIGHT, SKIP_INDEXES_PROP, SPECIALCALL_EVAL, SPECIALCALL_PROP, SPECIALCALL_WITH, TARGETBLOCK_PROP, VARIABLE_PROP
 
Constructor Summary
FunctionNode(java.lang.String name)
           
 
Method Summary
 java.lang.String getFunctionName()
           
 int getFunctionType()
           
 boolean getIgnoreDynamicScope()
           
 boolean requiresActivation()
           
 
Methods inherited from class org.mozilla.javascript.ScriptOrFnNode
addFunction, addParam, addRegexp, addVar, getBaseLineno, getCompilerData, getEncodedSourceEnd, getEncodedSourceStart, getEndLineno, getFunctionCount, getFunctionNode, getParamAndVarCount, getParamAndVarNames, getParamCount, getParamOrVarIndex, getParamOrVarName, getRegexpCount, getRegexpFlags, getRegexpString, getSourceName, hasParamOrVar, removeParamOrVar, setBaseLineno, setCompilerData, setEncodedSourceBounds, setEndLineno, setSourceName
 
Methods inherited from class org.mozilla.javascript.Node
addChildAfter, addChildBefore, addChildrenToBack, addChildrenToFront, addChildToBack, addChildToFront, getChildBefore, getDouble, getExistingIntProp, getFirstChild, getIntProp, getLastChild, getLastSibling, getLineno, getNext, getProp, getString, getType, hasChildren, labelId, labelId, newNumber, newString, newString, newTarget, putIntProp, putProp, removeChild, removeProp, replaceChild, replaceChildAfter, setDouble, setString, setType, toString, toStringTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FUNCTION_STATEMENT

public static final int 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.

See Also:
Constant Field Values

FUNCTION_EXPRESSION

public static final int FUNCTION_EXPRESSION
See Also:
Constant Field Values

FUNCTION_EXPRESSION_STATEMENT

public static final int FUNCTION_EXPRESSION_STATEMENT
See Also:
Constant Field Values
Constructor Detail

FunctionNode

public FunctionNode(java.lang.String name)
Method Detail

getFunctionName

public java.lang.String getFunctionName()

requiresActivation

public boolean requiresActivation()

getIgnoreDynamicScope

public boolean getIgnoreDynamicScope()

getFunctionType

public int getFunctionType()