|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.scripts.groovy.GroovyScriptEngine
public class GroovyScriptEngine
A scripting engine using Groovy
Copyright (c) Formaria Ltd., 2008
License: see license.txt
| Field Summary | |
|---|---|
protected GroovyClassLoader |
classLoader
|
protected ExceptionHandler |
exceptionHandler
|
protected GroovyShell |
groovyShell
|
protected java.util.Hashtable |
referenceObjects
|
protected java.lang.Object |
result
|
| Constructor Summary | |
|---|---|
GroovyScriptEngine()
Creates a new instance of JavaScriptEngine |
|
| Method Summary | |
|---|---|
java.lang.Object |
executeScript(java.lang.String script)
Executes a given script and returns the result. |
java.lang.String |
getPageScript()
Returns the scripts for this page |
java.lang.Object |
loadClass(java.io.InputStream stream)
Executes a given script and returns the result. |
void |
setProject(Project proj)
Set the owning project |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Hashtable referenceObjects
protected GroovyShell groovyShell
protected GroovyClassLoader classLoader
protected ExceptionHandler exceptionHandler
protected java.lang.Object result
| Constructor Detail |
|---|
public GroovyScriptEngine()
proj - the current project| Method Detail |
|---|
public void setProject(Project proj)
proj - the current projectpublic java.lang.String getPageScript()
public java.lang.Object executeScript(java.lang.String script)
throws ScriptException
script - the script to be executed for the current page
ScriptException
public java.lang.Object loadClass(java.io.InputStream stream)
throws ScriptException
script - the script to be executed for the current page
ScriptException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||