public class ScriptOrFnNode extends Node.Jump
Modifier and Type | Field and Description |
---|---|
protected java.util.LinkedHashMap<java.lang.String,org.mozilla.javascript.Node.Symbol> |
symbolTable |
ATTRIBUTE_FLAG, BOTH, CASEARRAY_PROP, CATCH_SCOPE_PROP, CONTROL_BLOCK_PROP, DECR_FLAG, DESCENDANTS_FLAG, DESTRUCTURING_ARRAY_LENGTH, DESTRUCTURING_NAMES, DIRECTCALL_PROP, FUNCTION_PROP, GENERATOR_END_PROP, INCRDECR_PROP, ISNUMBER_PROP, LABEL_ID_PROP, LAST_PROP, LEFT, lineno, LOCAL_BLOCK_PROP, LOCAL_PROP, MEMBER_TYPE_PROP, NAME_PROP, NON_SPECIALCALL, OBJECT_IDS_PROP, PARENTHESIZED_PROP, POST_FLAG, PROPERTY_FLAG, REGEXP_PROP, RIGHT, SKIP_INDEXES_PROP, SPECIALCALL_EVAL, SPECIALCALL_PROP, SPECIALCALL_WITH, TARGETBLOCK_PROP, VARIABLE_PROP
Constructor and Description |
---|
ScriptOrFnNode(int nodeType) |
Modifier and Type | Method and Description |
---|---|
int |
addFunction(FunctionNode fnNode) |
int |
addRegexp(java.lang.String string,
java.lang.String flags) |
int |
getBaseLineno() |
java.lang.Object |
getCompilerData() |
org.mozilla.javascript.Node.Scope |
getDefiningScope(java.lang.String name) |
int |
getEncodedSourceEnd() |
int |
getEncodedSourceStart() |
int |
getEndLineno() |
int |
getFunctionCount() |
FunctionNode |
getFunctionNode(int i) |
int |
getIndexForNameNode(Node nameNode) |
java.lang.String |
getNextTempName() |
boolean[] |
getParamAndVarConst() |
int |
getParamAndVarCount() |
java.lang.String[] |
getParamAndVarNames() |
int |
getParamCount() |
java.lang.String |
getParamOrVarName(int index) |
org.mozilla.javascript.Node.Scope |
getParentScope() |
int |
getRegexpCount() |
java.lang.String |
getRegexpFlags(int index) |
java.lang.String |
getRegexpString(int index) |
java.lang.String |
getSourceName() |
org.mozilla.javascript.Node.Symbol |
getSymbol(java.lang.String name) |
java.util.Map<java.lang.String,org.mozilla.javascript.Node.Symbol> |
getSymbolTable() |
static void |
joinScopes(org.mozilla.javascript.Node.Scope source,
org.mozilla.javascript.Node.Scope dest) |
void |
putSymbol(java.lang.String name,
org.mozilla.javascript.Node.Symbol symbol) |
void |
setBaseLineno(int lineno) |
void |
setCompilerData(java.lang.Object data) |
void |
setEncodedSourceBounds(int start,
int end) |
void |
setEndLineno(int lineno) |
void |
setParent(org.mozilla.javascript.Node.Scope parent) |
void |
setSourceName(java.lang.String sourceName) |
static org.mozilla.javascript.Node.Scope |
splitScope(org.mozilla.javascript.Node.Scope scope) |
getContinue, getDefault, getFinally, getJumpStatement, getLoop, setContinue, setDefault, setFinally, setJumpStatement, setLoop
addChildAfter, addChildBefore, addChildrenToBack, addChildrenToFront, addChildToBack, addChildToFront, getChildBefore, getDouble, getExistingIntProp, getFirstChild, getIntProp, getLastChild, getLastSibling, getLineno, getNext, getProp, getScope, getString, getType, hasChildren, hasConsistentReturnUsage, hasSideEffects, labelId, labelId, newNumber, newString, newString, newTarget, putIntProp, putProp, removeChild, removeProp, replaceChild, replaceChildAfter, setDouble, setScope, setString, setType, toString, toStringTree
protected java.util.LinkedHashMap<java.lang.String,org.mozilla.javascript.Node.Symbol> symbolTable
public final java.lang.String getSourceName()
public final void setSourceName(java.lang.String sourceName)
public final int getEncodedSourceStart()
public final int getEncodedSourceEnd()
public final void setEncodedSourceBounds(int start, int end)
public final int getBaseLineno()
public final void setBaseLineno(int lineno)
public final int getEndLineno()
public final void setEndLineno(int lineno)
public final int getFunctionCount()
public final FunctionNode getFunctionNode(int i)
public final int addFunction(FunctionNode fnNode)
public final int getRegexpCount()
public final java.lang.String getRegexpString(int index)
public final java.lang.String getRegexpFlags(int index)
public final int addRegexp(java.lang.String string, java.lang.String flags)
public int getIndexForNameNode(Node nameNode)
public final java.lang.String getParamOrVarName(int index)
public final int getParamCount()
public final int getParamAndVarCount()
public final java.lang.String[] getParamAndVarNames()
public final boolean[] getParamAndVarConst()
public final java.lang.Object getCompilerData()
public final void setCompilerData(java.lang.Object data)
public java.lang.String getNextTempName()
public static org.mozilla.javascript.Node.Scope splitScope(org.mozilla.javascript.Node.Scope scope)
public static void joinScopes(org.mozilla.javascript.Node.Scope source, org.mozilla.javascript.Node.Scope dest)
public void setParent(org.mozilla.javascript.Node.Scope parent)
public org.mozilla.javascript.Node.Scope getParentScope()
public org.mozilla.javascript.Node.Scope getDefiningScope(java.lang.String name)
public org.mozilla.javascript.Node.Symbol getSymbol(java.lang.String name)
public void putSymbol(java.lang.String name, org.mozilla.javascript.Node.Symbol symbol)
public java.util.Map<java.lang.String,org.mozilla.javascript.Node.Symbol> getSymbolTable()