Java Doc for BeanShell.java in  » Swing-Library » jEdit » org » gjt » sp » jedit » 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 » Swing Library » jEdit » org.gjt.sp.jedit 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.gjt.sp.jedit.BeanShell

BeanShell
public class BeanShell (Code)
BeanShell is jEdit's extension language.

When run from jEdit, BeanShell code has access to the following predefined variables:


author:
   Slava Pestov
version:
   $Id: BeanShell.java 10803 2007-10-04 20:45:31Z kpouer $

Inner Class :static class CustomClassManager extends ClassManagerImpl



Method Summary
public static  Object_eval(View view, NameSpace namespace, String command)
     Evaluates the specified BeanShell expression.
public static  void_runScript(View view, String path, Reader in, boolean ownNamespace)
     Runs a BeanShell script.
public static  void_runScript(View view, String path, Reader in, NameSpace namespace)
     Runs a BeanShell script.
public static  BshMethodcacheBlock(String id, String code, boolean namespace)
     Caches a block of code, returning a handle that can be passed to runCachedBlock().
Parameters:
  id - An identifier.
public static  Objecteval(View view, NameSpace namespace, String command)
     Evaluates the specified BeanShell expression.
public static  Objecteval(View view, String command, boolean rethrowBshErrors)
    
public static  Objecteval(View view, NameSpace namespace, String command, boolean rethrowBshErrors)
    
public static  voidevalSelection(View view, JEditTextArea textArea)
     Evaluates the text selected in the specified text area.
public static  NameSpacegetNameSpace()
     Returns the global namespace.
static  voidinit()
    
public static  booleanisScriptRunning()
     Returns if a BeanShell script or macro is currently running.
static  voidresetClassManager()
     Causes BeanShell internal structures to drop references to cached Class instances.
public static  ObjectrunCachedBlock(BshMethod method, View view, NameSpace namespace)
     Runs a cached block of code in the specified namespace.
public static  voidrunScript(View view, String path, Reader in, boolean ownNamespace)
     Runs a BeanShell script.
public static  voidrunScript(View view, String path, Reader in, NameSpace namespace)
     Runs a BeanShell script.
public static  voidrunScript(View view, String path, boolean ownNamespace, boolean rethrowBshErrors)
    
public static  voidrunScript(View view, String path, Reader in, boolean ownNamespace, boolean rethrowBshErrors)
    
public static  voidshowEvaluateDialog(View view)
     Prompts for a BeanShell expression to evaluate.
public static  voidshowEvaluateLinesDialog(View view)
     Evaluates the specified script for each selected line.



Method Detail
_eval
public static Object _eval(View view, NameSpace namespace, String command) throws Exception(Code)
Evaluates the specified BeanShell expression. Unlike eval(), this method passes any exceptions to the caller.
Parameters:
  view - The view. Within the script, references tobuffer, textArea and editPaneare determined with reference to this parameter.
Parameters:
  namespace - The namespace
Parameters:
  command - The expression
exception:
  Exception - instances are thrown when various BeanShellerrors occur
since:
   jEdit 3.2pre7



_runScript
public static void _runScript(View view, String path, Reader in, boolean ownNamespace) throws Exception(Code)
Runs a BeanShell script. Errors are passed to the caller.

If the in parameter is non-null, the script is read from that stream; otherwise it is read from the file identified by path.

The scriptPath BeanShell variable is set to the path name of the script.
Parameters:
  view - The view. Within the script, references tobuffer, textArea and editPaneare determined with reference to this parameter.
Parameters:
  path - The script file's VFS path.
Parameters:
  in - The reader to read the script from, or null.
Parameters:
  ownNamespace - If set to false, methods andvariables defined in the script will be available to all futureuses of BeanShell; if set to true, they will be lost assoon as the script finishes executing. jEdit uses a value offalse when running startup scripts, and a value oftrue when running all other macros.
exception:
  Exception - instances are thrown when various BeanShell errorsoccur
since:
   jEdit 4.0pre7




_runScript
public static void _runScript(View view, String path, Reader in, NameSpace namespace) throws Exception(Code)
Runs a BeanShell script. Errors are passed to the caller.

If the in parameter is non-null, the script is read from that stream; otherwise it is read from the file identified by path.

The scriptPath BeanShell variable is set to the path name of the script.
Parameters:
  view - The view. Within the script, references tobuffer, textArea and editPaneare determined with reference to this parameter.
Parameters:
  path - The script file's VFS path.
Parameters:
  in - The reader to read the script from, or null.
Parameters:
  namespace - The namespace to run the script in.
exception:
  Exception - instances are thrown when various BeanShell errorsoccur
since:
   jEdit 4.2pre5




cacheBlock
public static BshMethod cacheBlock(String id, String code, boolean namespace) throws Exception(Code)
Caches a block of code, returning a handle that can be passed to runCachedBlock().
Parameters:
  id - An identifier. If null, a unique identifier is generated
Parameters:
  code - The code
Parameters:
  namespace - If true, the namespace will be set
exception:
  Exception - instances are thrown when various BeanShell errorsoccur
since:
   jEdit 4.1pre1



eval
public static Object eval(View view, NameSpace namespace, String command)(Code)
Evaluates the specified BeanShell expression. Errors are reported in a dialog box.
Parameters:
  view - The view. Within the script, references tobuffer, textArea and editPaneare determined with reference to this parameter.
Parameters:
  namespace - The namespace
Parameters:
  command - The expression
since:
   jEdit 4.0pre8



eval
public static Object eval(View view, String command, boolean rethrowBshErrors)(Code)



eval
public static Object eval(View view, NameSpace namespace, String command, boolean rethrowBshErrors)(Code)



evalSelection
public static void evalSelection(View view, JEditTextArea textArea)(Code)
Evaluates the text selected in the specified text area.
since:
   jEdit 2.7pre2



getNameSpace
public static NameSpace getNameSpace()(Code)
Returns the global namespace.
since:
   jEdit 3.2pre5



init
static void init()(Code)



isScriptRunning
public static boolean isScriptRunning()(Code)
Returns if a BeanShell script or macro is currently running.
since:
   jEdit 2.7pre2



resetClassManager
static void resetClassManager()(Code)
Causes BeanShell internal structures to drop references to cached Class instances.



runCachedBlock
public static Object runCachedBlock(BshMethod method, View view, NameSpace namespace) throws Exception(Code)
Runs a cached block of code in the specified namespace. Faster than evaluating the block each time.
Parameters:
  method - The method instance returned by cacheBlock()
Parameters:
  view - The view
Parameters:
  namespace - The namespace to run the code in
exception:
  Exception - instances are thrown when various BeanShellerrors occur
since:
   jEdit 4.1pre1



runScript
public static void runScript(View view, String path, Reader in, boolean ownNamespace)(Code)
Runs a BeanShell script. Errors are shown in a dialog box.

If the in parameter is non-null, the script is read from that stream; otherwise it is read from the file identified by path.

The scriptPath BeanShell variable is set to the path name of the script.
Parameters:
  view - The view. Within the script, references tobuffer, textArea and editPaneare determined with reference to this parameter.
Parameters:
  path - The script file's VFS path.
Parameters:
  in - The reader to read the script from, or null.
Parameters:
  ownNamespace - If set to false, methods andvariables defined in the script will be available to all futureuses of BeanShell; if set to true, they will be lost assoon as the script finishes executing. jEdit uses a value offalse when running startup scripts, and a value oftrue when running all other macros.
since:
   jEdit 4.0pre7




runScript
public static void runScript(View view, String path, Reader in, NameSpace namespace)(Code)
Runs a BeanShell script. Errors are shown in a dialog box.

If the in parameter is non-null, the script is read from that stream; otherwise it is read from the file identified by path.

The scriptPath BeanShell variable is set to the path name of the script.
Parameters:
  view - The view. Within the script, references tobuffer, textArea and editPaneare determined with reference to this parameter.
Parameters:
  path - The script file's VFS path.
Parameters:
  in - The reader to read the script from, or null.
Parameters:
  namespace - The namespace to run the script in.
since:
   jEdit 4.2pre5




runScript
public static void runScript(View view, String path, boolean ownNamespace, boolean rethrowBshErrors)(Code)



runScript
public static void runScript(View view, String path, Reader in, boolean ownNamespace, boolean rethrowBshErrors)(Code)



showEvaluateDialog
public static void showEvaluateDialog(View view)(Code)
Prompts for a BeanShell expression to evaluate.
since:
   jEdit 2.7pre2



showEvaluateLinesDialog
public static void showEvaluateLinesDialog(View view)(Code)
Evaluates the specified script for each selected line.
since:
   jEdit 4.0pre1



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.