From 98e2821b38a775737e42a2479a6bc65107210859 Mon Sep 17 00:00:00 2001 From: Elliot Kroo Date: Thu, 11 Mar 2010 15:21:30 -0800 Subject: reorganizing the first level of folders (trunk/branch folders are not the git way :) --- .../mozilla/javascript/debug/DebuggableScript.html | 455 +++++++++++++++++++++ 1 file changed, 455 insertions(+) create mode 100644 infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/debug/DebuggableScript.html (limited to 'infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/debug/DebuggableScript.html') diff --git a/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/debug/DebuggableScript.html b/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/debug/DebuggableScript.html new file mode 100644 index 0000000..1159738 --- /dev/null +++ b/infrastructure/rhino1_7R1/javadoc/org/mozilla/javascript/debug/DebuggableScript.html @@ -0,0 +1,455 @@ + + + + + + +DebuggableScript (Rhino) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.mozilla.javascript.debug +
+Interface DebuggableScript

+
+
+
public interface DebuggableScript
+ + +

+This interface exposes debugging information from executable + code (either functions or top-level scripts). +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ DebuggableScriptgetFunction(int index) + +
+           
+ intgetFunctionCount() + +
+           
+ java.lang.StringgetFunctionName() + +
+          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().
+ intgetParamAndVarCount() + +
+          Get number of declared parameters and local variables.
+ intgetParamCount() + +
+          Get number of declared parameters in the function.
+ java.lang.StringgetParamOrVarName(int index) + +
+          Get name of a declared parameter or local variable.
+ DebuggableScriptgetParent() + +
+           
+ java.lang.StringgetSourceName() + +
+          Get the name of the source (usually filename or URL) + of the script.
+ booleanisFunction() + +
+          Returns true if this is a function, false if it is a script.
+ booleanisGeneratedScript() + +
+          Returns true if this script or function were runtime-generated + from JavaScript using eval function or Function + or Script constructors.
+ booleanisTopLevel() + +
+           
+  +

+ + + + + + + + +
+Method Detail
+ +

+isTopLevel

+
+boolean isTopLevel()
+
+
+
+
+
+
+ +

+isFunction

+
+boolean isFunction()
+
+
Returns true if this is a function, false if it is a script. +

+

+
+
+
+
+ +

+getFunctionName

+
+java.lang.String getFunctionName()
+
+
Get name of the function described by this script. + Return null or an empty string if this script is not a function. +

+

+
+
+
+
+ +

+getParamCount

+
+int getParamCount()
+
+
Get number of declared parameters in the function. + Return 0 if this script is not a function. +

+

+
See Also:
getParamAndVarCount(), +getParamOrVarName(int index)
+
+
+
+ +

+getParamAndVarCount

+
+int getParamAndVarCount()
+
+
Get number of declared parameters and local variables. + Return number of declared global variables if this script is not a + function. +

+

+
See Also:
getParamCount(), +getParamOrVarName(int index)
+
+
+
+ +

+getParamOrVarName

+
+java.lang.String getParamOrVarName(int index)
+
+
Get name of a declared parameter or local variable. + index should be less then 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. +

+

+
+
+
+
+ +

+getSourceName

+
+java.lang.String getSourceName()
+
+
Get the name of the source (usually filename or URL) + of the script. +

+

+
+
+
+
+ +

+isGeneratedScript

+
+boolean isGeneratedScript()
+
+
Returns true if this script or function were runtime-generated + from JavaScript using eval function or Function + or Script constructors. +

+

+
+
+
+
+ +

+getLineNumbers

+
+int[] getLineNumbers()
+
+
Get array containing the line numbers that + that can be passed to DebugFrame.onLineChange(). + Note that line order in the resulting array is arbitrary +

+

+
+
+
+
+ +

+getFunctionCount

+
+int getFunctionCount()
+
+
+
+
+
+
+ +

+getFunction

+
+DebuggableScript getFunction(int index)
+
+
+
+
+
+
+ +

+getParent

+
+DebuggableScript getParent()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + -- cgit v1.2.3-1-g7c22