| |
|
| java.lang.Object org.mozilla.javascript.Node org.mozilla.javascript.ScriptOrFnNode
ScriptOrFnNode | public class ScriptOrFnNode extends Node (Code) | | |
DUPLICATE_CONST | final public static int DUPLICATE_CONST(Code) | | |
DUPLICATE_PARAMETER | final public static int DUPLICATE_PARAMETER(Code) | | |
DUPLICATE_VAR | final public static int DUPLICATE_VAR(Code) | | |
NO_DUPLICATE | final public static int NO_DUPLICATE(Code) | | |
ScriptOrFnNode | public ScriptOrFnNode(int nodeType)(Code) | | |
addFunction | final public int addFunction(FunctionNode fnNode)(Code) | | |
addVar | final public int addVar(String name)(Code) | | This function adds a variable to the set of var declarations for a
function (or script). This returns an indicator of a duplicate that
overrides a formal parameter (false if this dups a parameter).
Parameters: name - variable name 1 if the name is not any form of duplicate, 0 if it duplicates anon-parameter, -1 if it duplicates a parameter and -2 if it duplicates aconst. |
getBaseLineno | final public int getBaseLineno()(Code) | | |
getEncodedSourceEnd | final public int getEncodedSourceEnd()(Code) | | |
getEncodedSourceStart | final public int getEncodedSourceStart()(Code) | | |
getEndLineno | final public int getEndLineno()(Code) | | |
getFunctionCount | final public int getFunctionCount()(Code) | | |
getFunctionNode | final public FunctionNode getFunctionNode(int i)(Code) | | |
getParamAndVarConst | final public boolean[] getParamAndVarConst()(Code) | | |
getParamAndVarCount | final public int getParamAndVarCount()(Code) | | |
getParamAndVarNames | final public String[] getParamAndVarNames()(Code) | | |
getParamCount | final public int getParamCount()(Code) | | |
getParamOrVarIndex | final public int getParamOrVarIndex(String name)(Code) | | |
getParamOrVarName | final public String getParamOrVarName(int index)(Code) | | |
getRegexpCount | final public int getRegexpCount()(Code) | | |
getRegexpFlags | final public String getRegexpFlags(int index)(Code) | | |
getRegexpString | final public String getRegexpString(int index)(Code) | | |
hasParamOrVar | final public boolean hasParamOrVar(String name)(Code) | | |
removeParamOrVar | final public void removeParamOrVar(String name)(Code) | | |
setBaseLineno | final public void setBaseLineno(int lineno)(Code) | | |
setCompilerData | final public void setCompilerData(Object data)(Code) | | |
setEncodedSourceBounds | final public void setEncodedSourceBounds(int start, int end)(Code) | | |
setEndLineno | final public void setEndLineno(int lineno)(Code) | | |
setSourceName | final public void setSourceName(String sourceName)(Code) | | |
|
|
|