public interface DebuggableScript
Modifier and Type | Method and Description |
---|---|
DebuggableScript |
getFunction(int index) |
int |
getFunctionCount() |
java.lang.String |
getFunctionName()
Get name of the function described by this script.
|
int[] |
getLineNumbers()
Get array containing the line numbers that
that can be passed to
DebugFrame.onLineChange() |
int |
getParamAndVarCount()
Get number of declared parameters and local variables.
|
int |
getParamCount()
Get number of declared parameters in the function.
|
java.lang.String |
getParamOrVarName(int index)
Get name of a declared parameter or local variable.
|
DebuggableScript |
getParent() |
java.lang.String |
getSourceName()
Get the name of the source (usually filename or URL)
of the script.
|
boolean |
isFunction()
Returns true if this is a function, false if it is a script.
|
boolean |
isGeneratedScript()
Returns true if this script or function were runtime-generated
from JavaScript using eval function or Function
or Script constructors.
|
boolean |
isTopLevel() |
boolean isTopLevel()
boolean isFunction()
java.lang.String getFunctionName()
int getParamCount()
int getParamAndVarCount()
getParamCount()
,
getParamOrVarName(int index)
java.lang.String getParamOrVarName(int index)
getParamAndVarCount()
.
If index < getParamCount()
, return
the name of the corresponding parameter, otherwise return the name
of variable.
If this script is not function, return the name of the declared
global variable.java.lang.String getSourceName()
boolean isGeneratedScript()
int[] getLineNumbers()
DebugFrame.onLineChange().
Note that line order in the resulting array is arbitrary
int getFunctionCount()
DebuggableScript getFunction(int index)
DebuggableScript getParent()
Copyright © 2010 - 2020 Adobe. All Rights Reserved