Java Doc for Main.java in  » Scripting » rhino » org » mozilla » javascript » tools » debugger » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Scripting » rhino » org.mozilla.javascript.tools.debugger 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.mozilla.javascript.tools.debugger.Main

Main
public class Main (Code)
Rhino script debugger main class. This class links together a debugger object ( Dim ) and a debugger GUI object ( SwingGui ).



Constructor Summary
public  Main(String title)
     Creates a new Main.

Method Summary
public  voidattachTo(ContextFactory factory)
     Attaches the debugger to the given ContextFactory .
public  voidclearAllBreakpoints()
     Removes all breakpoints.
public  voidcontextCreated(Context cx)
    
public  voidcontextEntered(Context cx)
    
public  voidcontextExited(Context cx)
    
public  voidcontextReleased(Context cx)
    
public  voiddetach()
     Detaches from the current ContextFactory .
public  voiddispose()
     Frees any resources held by the debugger.
public  voiddoBreak()
     Breaks execution of the script.
public  JFramegetDebugFrame()
     Returns the debugger window JFrame .
public  PrintStreamgetErr()
     Returns a PrintStream for stderr in the Debugger's internal Console window.
public  InputStreamgetIn()
     Returns an InputStream for stdin from the debugger's internal Console window.
public  PrintStreamgetOut()
     Returns a PrintStream for stdout to the debugger's internal Console window.
public  voidgo()
     Resumes execution of the script.
public  booleanisVisible()
     Returns whether the debugger GUI frame is visible.
public static  voidmain(String[] args)
     Main entry point.
public static  voidmainEmbedded(String title)
     Entry point for embedded applications.
public static  voidmainEmbedded(ContextFactory factory, Scriptable scope, String title)
     Entry point for embedded applications.
public static  voidmainEmbedded(ContextFactory factory, ScopeProvider scopeProvider, String title)
     Entry point for embedded applications.
public  voidpack()
     Packs the debugger GUI frame.
public  voidsetBreakOnEnter(boolean value)
     Sets whether execution should break when a function is entered.
public  voidsetBreakOnExceptions(boolean value)
     Sets whether execution should break when a script exception is thrown.
public  voidsetBreakOnReturn(boolean value)
     Sets whether execution should break when a function is left.
public  voidsetExitAction(Runnable r)
     Assign a Runnable object that will be invoked when the user selects "Exit..." or closes the Debugger main window.
public  voidsetOptimizationLevel(int level)
    
public  voidsetScope(Scriptable scope)
     Sets the scope to be used for script evaluation.
public  voidsetScopeProvider(ScopeProvider p)
     Sets the ScopeProvider that provides a scope to be used for script evaluation.
public  voidsetSize(int w, int h)
     Sets the debugger GUI frame dimensions.
public  voidsetSize(java.awt.Dimension dimension)
    
public  voidsetVisible(boolean flag)
     Sets the visibility of the debugger GUI frame.


Constructor Detail
Main
public Main(String title)(Code)
Creates a new Main.




Method Detail
attachTo
public void attachTo(ContextFactory factory)(Code)
Attaches the debugger to the given ContextFactory .



clearAllBreakpoints
public void clearAllBreakpoints()(Code)
Removes all breakpoints.



contextCreated
public void contextCreated(Context cx)(Code)



contextEntered
public void contextEntered(Context cx)(Code)



contextExited
public void contextExited(Context cx)(Code)



contextReleased
public void contextReleased(Context cx)(Code)



detach
public void detach()(Code)
Detaches from the current ContextFactory .



dispose
public void dispose()(Code)
Frees any resources held by the debugger.



doBreak
public void doBreak()(Code)
Breaks execution of the script.



getDebugFrame
public JFrame getDebugFrame()(Code)
Returns the debugger window JFrame .



getErr
public PrintStream getErr()(Code)
Returns a PrintStream for stderr in the Debugger's internal Console window.



getIn
public InputStream getIn()(Code)
Returns an InputStream for stdin from the debugger's internal Console window.



getOut
public PrintStream getOut()(Code)
Returns a PrintStream for stdout to the debugger's internal Console window.



go
public void go()(Code)
Resumes execution of the script.



isVisible
public boolean isVisible()(Code)
Returns whether the debugger GUI frame is visible.



main
public static void main(String[] args)(Code)
Main entry point. Creates a debugger attached to a Rhino org.mozilla.javascript.tools.shell.Main shell session.



mainEmbedded
public static void mainEmbedded(String title)(Code)
Entry point for embedded applications. This method attaches to the global ContextFactory with a scope of a newly created Global object. No I/O redirection is performed as with Main.main(String[]) .



mainEmbedded
public static void mainEmbedded(ContextFactory factory, Scriptable scope, String title)(Code)
Entry point for embedded applications. This method attaches to the given ContextFactory with the given scope. No I/O redirection is performed as with Main.main(String[]) .



mainEmbedded
public static void mainEmbedded(ContextFactory factory, ScopeProvider scopeProvider, String title)(Code)
Entry point for embedded applications. This method attaches to the given ContextFactory with the given scope. No I/O redirection is performed as with Main.main(String[]) .



pack
public void pack()(Code)
Packs the debugger GUI frame.



setBreakOnEnter
public void setBreakOnEnter(boolean value)(Code)
Sets whether execution should break when a function is entered.



setBreakOnExceptions
public void setBreakOnExceptions(boolean value)(Code)
Sets whether execution should break when a script exception is thrown.



setBreakOnReturn
public void setBreakOnReturn(boolean value)(Code)
Sets whether execution should break when a function is left.



setExitAction
public void setExitAction(Runnable r)(Code)
Assign a Runnable object that will be invoked when the user selects "Exit..." or closes the Debugger main window.



setOptimizationLevel
public void setOptimizationLevel(int level)(Code)



setScope
public void setScope(Scriptable scope)(Code)
Sets the scope to be used for script evaluation.



setScopeProvider
public void setScopeProvider(ScopeProvider p)(Code)
Sets the ScopeProvider that provides a scope to be used for script evaluation.



setSize
public void setSize(int w, int h)(Code)
Sets the debugger GUI frame dimensions.



setSize
public void setSize(java.awt.Dimension dimension)(Code)
Main.setSize(int,int)



setVisible
public void setVisible(boolean flag)(Code)
Sets the visibility of the debugger GUI frame.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.