|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An hight level interface that represents an interpreter engine of a particular scripting language.
Method Summary | |
void |
bindObject(java.lang.String name,
java.lang.Object object)
This method should register a particular Java Object in
the environment of the interpreter. |
void |
dispose()
This method can dispose resources used by the interpreter when it is no longer used. |
java.lang.Object |
evaluate(java.io.Reader scriptreader)
This method should evaluate a piece of script. |
java.lang.Object |
evaluate(java.lang.String script)
This method should evaluate a piece of script using a String
instead of a Reader . |
void |
setOut(java.io.Writer output)
This method should change the output Writer that will be
used when output function of the scripting langage is used. |
Methods inherited from interface org.apache.batik.i18n.Localizable |
formatMessage, getLocale, setLocale |
Method Detail |
public java.lang.Object evaluate(java.io.Reader scriptreader) throws InterpreterException, java.io.IOException
scriptreader
- a java.io.Reader
on the piece of scriptpublic java.lang.Object evaluate(java.lang.String script) throws InterpreterException
String
instead of a Reader
. This usually allows do easily do some
caching.script
- the piece of scriptpublic void bindObject(java.lang.String name, java.lang.Object object)
Object
in
the environment of the interpreter.name
- the name of the script object to createobject
- the Java objectpublic void setOut(java.io.Writer output)
Writer
that will be
used when output function of the scripting langage is used.output
- the new out Writer
.public void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |