public class ScriptOrFnNode extends Node.Jump
| Modifier and Type | Field and Description |
|---|---|
protected LinkedHashMap<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(String string,
String flags) |
int |
getBaseLineno() |
Object |
getCompilerData() |
org.mozilla.javascript.Node.Scope |
getDefiningScope(String name) |
int |
getEncodedSourceEnd() |
int |
getEncodedSourceStart() |
int |
getEndLineno() |
int |
getFunctionCount() |
FunctionNode |
getFunctionNode(int i) |
int |
getIndexForNameNode(Node nameNode) |
String |
getNextTempName() |
boolean[] |
getParamAndVarConst() |
int |
getParamAndVarCount() |
String[] |
getParamAndVarNames() |
int |
getParamCount() |
String |
getParamOrVarName(int index) |
org.mozilla.javascript.Node.Scope |
getParentScope() |
int |
getRegexpCount() |
String |
getRegexpFlags(int index) |
String |
getRegexpString(int index) |
String |
getSourceName() |
org.mozilla.javascript.Node.Symbol |
getSymbol(String name) |
Map<String,org.mozilla.javascript.Node.Symbol> |
getSymbolTable() |
static void |
joinScopes(org.mozilla.javascript.Node.Scope source,
org.mozilla.javascript.Node.Scope dest) |
void |
putSymbol(String name,
org.mozilla.javascript.Node.Symbol symbol) |
void |
setBaseLineno(int lineno) |
void |
setCompilerData(Object data) |
void |
setEncodedSourceBounds(int start,
int end) |
void |
setEndLineno(int lineno) |
void |
setParent(org.mozilla.javascript.Node.Scope parent) |
void |
setSourceName(String sourceName) |
static org.mozilla.javascript.Node.Scope |
splitScope(org.mozilla.javascript.Node.Scope scope) |
getContinue, getDefault, getFinally, getJumpStatement, getLoop, setContinue, setDefault, setFinally, setJumpStatement, setLoopaddChildAfter, 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, toStringTreeprotected LinkedHashMap<String,org.mozilla.javascript.Node.Symbol> symbolTable
public final String getSourceName()
public final void setSourceName(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 String getRegexpString(int index)
public final String getRegexpFlags(int index)
public int getIndexForNameNode(Node nameNode)
public final String getParamOrVarName(int index)
public final int getParamCount()
public final int getParamAndVarCount()
public final String[] getParamAndVarNames()
public final boolean[] getParamAndVarConst()
public final Object getCompilerData()
public final void setCompilerData(Object data)
public 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(String name)
public org.mozilla.javascript.Node.Symbol getSymbol(String name)
public void putSymbol(String name, org.mozilla.javascript.Node.Symbol symbol)
Copyright © 2015–2017 The veraPDF Consortium. All rights reserved.