org.mozilla.javascript

Class ScriptOrFnNode

Known Direct Subclasses:
FunctionNode

public class ScriptOrFnNode
extends org.mozilla.javascript.Node.Scope

Nested Class Summary

Nested classes/interfaces inherited from class org.mozilla.javascript.Node

Node.Jump

Field Summary

Fields inherited from class org.mozilla.javascript.Node.Scope

symbolTable

Fields inherited from class org.mozilla.javascript.Node.Jump

target

Fields inherited from class org.mozilla.javascript.Node

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, 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, lineno

Constructor Summary

ScriptOrFnNode(int nodeType)

Method Summary

int
addFunction(FunctionNode fnNode)
int
addRegexp(String string, String flags)
int
getBaseLineno()
Object
getCompilerData()
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)
int
getRegexpCount()
String
getRegexpFlags(int index)
String
getRegexpString(int index)
String
getSourceName()
void
setBaseLineno(int lineno)
void
setCompilerData(Object data)
void
setEncodedSourceBounds(int start, int end)
void
setEndLineno(int lineno)
void
setSourceName(String sourceName)

Methods inherited from class org.mozilla.javascript.Node.Scope

getDefiningScope, getParentScope, getSymbol, getSymbolTable, joinScopes, putSymbol, setParent, splitScope

Methods inherited from class org.mozilla.javascript.Node.Jump

getContinue, getDefault, getFinally, getJumpStatement, getLoop, setContinue, setDefault, setFinally, setJumpStatement, setLoop

Methods inherited from class org.mozilla.javascript.Node

addChildAfter, addChildBefore, addChildToBack, addChildToFront, addChildrenToBack, addChildrenToFront, 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

Constructor Details

ScriptOrFnNode

public ScriptOrFnNode(int nodeType)

Method Details

addFunction

public final int addFunction(FunctionNode fnNode)

addRegexp

public final int addRegexp(String string,
                           String flags)

getBaseLineno

public final int getBaseLineno()

getCompilerData

public final Object getCompilerData()

getEncodedSourceEnd

public final int getEncodedSourceEnd()

getEncodedSourceStart

public final int getEncodedSourceStart()

getEndLineno

public final int getEndLineno()

getFunctionCount

public final int getFunctionCount()

getFunctionNode

public final FunctionNode getFunctionNode(int i)

getIndexForNameNode

public int getIndexForNameNode(Node nameNode)

getNextTempName

public String getNextTempName()

getParamAndVarConst

public final boolean[] getParamAndVarConst()

getParamAndVarCount

public final int getParamAndVarCount()

getParamAndVarNames

public final String[] getParamAndVarNames()

getParamCount

public final int getParamCount()

getParamOrVarName

public final String getParamOrVarName(int index)

getRegexpCount

public final int getRegexpCount()

getRegexpFlags

public final String getRegexpFlags(int index)

getRegexpString

public final String getRegexpString(int index)

getSourceName

public final String getSourceName()

setBaseLineno

public final void setBaseLineno(int lineno)

setCompilerData

public final void setCompilerData(Object data)

setEncodedSourceBounds

public final void setEncodedSourceBounds(int start,
                                         int end)

setEndLineno

public final void setEndLineno(int lineno)

setSourceName

public final void setSourceName(String sourceName)