Java Doc for BSFEngineImpl.java in  » Scripting » bsf-2.4.0 » org » apache » bsf » util » 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 » bsf 2.4.0 » org.apache.bsf.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.bsf.util.BSFEngineImpl

All known Subclasses:   org.apache.bsf.engines.javaclass.JavaClassEngine,  org.apache.bsf.engines.java.JavaEngine,  org.apache.bsf.engines.jacl.JaclEngine,  org.apache.bsf.engines.jython.JythonEngine,  org.apache.bsf.engines.javascript.JavaScriptEngine,  org.apache.bsf.engines.xslt.XSLTEngine,  org.apache.bsf.engines.netrexx.NetRexxEngine,
BSFEngineImpl
abstract public class BSFEngineImpl implements BSFEngine(Code)
This is a base implementation of the BSFEngine interface which engine implementations may choose to extend to get the basic methods of the interface implemented.


author:
   Sanjiva Weerawarana
author:
   Olivier Gruber (added original debugging support)



Field Summary
protected  ClassLoaderclassLoader
    
protected  StringclassPath
    
protected  VectordeclaredBeans
    
protected  Stringlang
    
protected  BSFManagermgr
    
protected  StringtempDir
    


Method Summary
public  Objectapply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments)
     Default impl of apply - calls eval ignoring parameters and returns the result.
public  voidcompileApply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments, CodeBuffer cb)
     Default impl of compileApply - calls compileExpr ignoring parameters.
public  voidcompileExpr(String source, int lineNo, int columnNo, Object expr, CodeBuffer cb)
     Default impl of compileExpr - generates code that'll create a new manager, evaluate the expression, and return the value.
public  voidcompileScript(String source, int lineNo, int columnNo, Object script, CodeBuffer cb)
     Default impl of compileScript - generates code that'll create a new manager, and execute the script.
public  voiddeclareBean(BSFDeclaredBean bean)
    
public  voidexec(String source, int lineNo, int columnNo, Object script)
     Default impl of execute - calls eval and ignores the result.
public  voidiexec(String source, int lineNo, int columnNo, Object script)
     Default impl of interactive execution - calls eval and ignores the result.
public  voidinitialize(BSFManager mgr, String lang, Vector declaredBeans)
     initialize the engine; called right after construction by the manager.
public  voidpropertyChange(PropertyChangeEvent e)
     Receive property change events from the manager and update my fields as needed.
public  voidterminate()
    
public  voidundeclareBean(BSFDeclaredBean bean)
    

Field Detail
classLoader
protected ClassLoader classLoader(Code)



classPath
protected String classPath(Code)



declaredBeans
protected Vector declaredBeans(Code)



lang
protected String lang(Code)



mgr
protected BSFManager mgr(Code)



tempDir
protected String tempDir(Code)





Method Detail
apply
public Object apply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments) throws BSFException(Code)
Default impl of apply - calls eval ignoring parameters and returns the result.



compileApply
public void compileApply(String source, int lineNo, int columnNo, Object funcBody, Vector paramNames, Vector arguments, CodeBuffer cb) throws BSFException(Code)
Default impl of compileApply - calls compileExpr ignoring parameters.



compileExpr
public void compileExpr(String source, int lineNo, int columnNo, Object expr, CodeBuffer cb) throws BSFException(Code)
Default impl of compileExpr - generates code that'll create a new manager, evaluate the expression, and return the value.



compileScript
public void compileScript(String source, int lineNo, int columnNo, Object script, CodeBuffer cb) throws BSFException(Code)
Default impl of compileScript - generates code that'll create a new manager, and execute the script.



declareBean
public void declareBean(BSFDeclaredBean bean) throws BSFException(Code)



exec
public void exec(String source, int lineNo, int columnNo, Object script) throws BSFException(Code)
Default impl of execute - calls eval and ignores the result.



iexec
public void iexec(String source, int lineNo, int columnNo, Object script) throws BSFException(Code)
Default impl of interactive execution - calls eval and ignores the result.



initialize
public void initialize(BSFManager mgr, String lang, Vector declaredBeans) throws BSFException(Code)
initialize the engine; called right after construction by the manager. Declared beans are simply kept in a vector and that's it. Subclasses must do whatever they want with it.



propertyChange
public void propertyChange(PropertyChangeEvent e)(Code)
Receive property change events from the manager and update my fields as needed.
Parameters:
  e - PropertyChange event with the change data



terminate
public void terminate()(Code)



undeclareBean
public void undeclareBean(BSFDeclaredBean bean) throws BSFException(Code)



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.