org.mozilla.javascript

Class FunctionNode

public class FunctionNode extends ScriptOrFnNode

Field Summary
static intFUNCTION_EXPRESSION
static intFUNCTION_EXPRESSION_STATEMENT
static intFUNCTION_STATEMENT
There are three types of functions that can be defined.
Constructor Summary
FunctionNode(String name)
Method Summary
StringgetFunctionName()
intgetFunctionType()
booleangetIgnoreDynamicScope()
booleanrequiresActivation()

Field Detail

FUNCTION_EXPRESSION

public static final int FUNCTION_EXPRESSION

FUNCTION_EXPRESSION_STATEMENT

public static final int FUNCTION_EXPRESSION_STATEMENT

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.

Constructor Detail

FunctionNode

public FunctionNode(String name)

Method Detail

getFunctionName

public String getFunctionName()

getFunctionType

public int getFunctionType()

getIgnoreDynamicScope

public boolean getIgnoreDynamicScope()

requiresActivation

public boolean requiresActivation()