Java Doc for InteractionsModelCallback.java in  » IDE » DrJava » edu » rice » cs » drjava » model » repl » 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 » IDE » DrJava » edu.rice.cs.drjava.model.repl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


edu.rice.cs.drjava.model.repl.InteractionsModelCallback

All known Subclasses:   edu.rice.cs.drjava.model.repl.InteractionsModel,
InteractionsModelCallback
public interface InteractionsModelCallback (Code)
Callback interface which allows an InteractionsModel to respond to events in a remote Java interpreter.
version:
   $Id: InteractionsModelCallback.java 4255 2007-08-28 19:17:37Z mgricken $




Method Summary
public  voidchangeInputListener(InputListener oldListener, InputListener newListener)
     Changes the input listener.
public  StringgetConsoleInput()
     Called when input is request from System.in.
public  intgetDebugPort()
     Returns an available port number to use for debugging a remote interpreter.
public  voidinterpreterReady(File wd)
     Called when a new Java interpreter has registered and is ready for use.
public  voidinterpreterResetFailed(Throwable th)
    
public  voidinterpreterResetting()
     Called when the interpreter starts to reset.
public  voidreplCalledSystemExit(int status)
     Signifies that the most recent interpretation contained a call to System.exit.
public  voidreplReturnedResult(String result, String style)
     Signifies that the most recent interpretation completed successfully, returning a value.
Parameters:
  result - The .toString-ed version of the value that was returnedby the interpretation.
public  voidreplReturnedSyntaxError(String errorMessage, String interaction, int startRow, int startCol, int endRow, int endCol)
     Signifies that the most recent interpretation was preempted by a syntax error.
public  voidreplReturnedVoid()
     Signifies that the most recent interpretation completed successfully, returning no value.
public  voidreplSystemErrPrint(String s)
     Called when the repl prints to System.err.
public  voidreplSystemOutPrint(String s)
     Called when the repl prints to System.out.
public  voidreplThrewException(String exceptionClass, String message, String stackTrace, String specialMessage)
     Signifies that the most recent interpretation was ended due to an exception being thrown.
public  voidsetInputListener(InputListener listener)
     Sets the listener for any type of single-source input event.
public  voidslaveJVMUsed()
    



Method Detail
changeInputListener
public void changeInputListener(InputListener oldListener, InputListener newListener)(Code)
Changes the input listener. Takes in the old listener to ensure that the owner of the original listener is aware that it is being changed.
Parameters:
  oldListener - the previous listener
Parameters:
  newListener - the listener to install
throws:
  IllegalArgumentException - if oldListener is not the currently installed listener



getConsoleInput
public String getConsoleInput()(Code)
Called when input is request from System.in. the input given to System.in



getDebugPort
public int getDebugPort() throws IOException(Code)
Returns an available port number to use for debugging a remote interpreter.
throws:
  IOException - if unable to get a valid port number.



interpreterReady
public void interpreterReady(File wd)(Code)
Called when a new Java interpreter has registered and is ready for use.



interpreterResetFailed
public void interpreterResetFailed(Throwable th)(Code)
This method is called by the Main JVM if the Interpreter JVM cannot be exited (likely because of its having a security manager)
Parameters:
  th - The Throwable thrown by System.exit



interpreterResetting
public void interpreterResetting()(Code)
Called when the interpreter starts to reset.



replCalledSystemExit
public void replCalledSystemExit(int status)(Code)
Signifies that the most recent interpretation contained a call to System.exit.
Parameters:
  status - The exit status that will be returned.



replReturnedResult
public void replReturnedResult(String result, String style)(Code)
Signifies that the most recent interpretation completed successfully, returning a value.
Parameters:
  result - The .toString-ed version of the value that was returnedby the interpretation. We must return the String formbecause returning the Object directly would require thedata type to be serializable.



replReturnedSyntaxError
public void replReturnedSyntaxError(String errorMessage, String interaction, int startRow, int startCol, int endRow, int endCol)(Code)
Signifies that the most recent interpretation was preempted by a syntax error.
Parameters:
  errorMessage - The syntax error message
Parameters:
  startRow - The starting row of the error
Parameters:
  startCol - The starting column of the error
Parameters:
  endRow - The end row of the error
Parameters:
  endCol - The end column of the error



replReturnedVoid
public void replReturnedVoid()(Code)
Signifies that the most recent interpretation completed successfully, returning no value.



replSystemErrPrint
public void replSystemErrPrint(String s)(Code)
Called when the repl prints to System.err.
Parameters:
  s - String to print



replSystemOutPrint
public void replSystemOutPrint(String s)(Code)
Called when the repl prints to System.out.
Parameters:
  s - String to print



replThrewException
public void replThrewException(String exceptionClass, String message, String stackTrace, String specialMessage)(Code)
Signifies that the most recent interpretation was ended due to an exception being thrown.
Parameters:
  exceptionClass - The name of the class of the thrown exception
Parameters:
  message - The exception's message
Parameters:
  stackTrace - The stack trace of the exception



setInputListener
public void setInputListener(InputListener listener)(Code)
Sets the listener for any type of single-source input event. The listener can only be changed with the changeInputListener method.
Parameters:
  listener - a listener that reacts to input requests
throws:
  IllegalStateException - if the input listener is locked



slaveJVMUsed
public void slaveJVMUsed()(Code)
Called when the slave JVM is used



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