|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.batik.script.jacl.JaclInterpreter
A simple implementation of Interpreter interface to use
JACL Tcl parser.
| Constructor Summary | |
JaclInterpreter()
|
|
| 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. |
java.lang.String |
formatMessage(java.lang.String key,
java.lang.Object[] args)
Creates and returns a localized message, given the key of the message in the resource bundle and the message parameters. |
java.util.Locale |
getLocale()
Returns the current locale or null if the locale currently used is the default one. |
void |
setLocale(java.util.Locale locale)
Provides a way to the user to specify a locale which override the default one. |
void |
setOut(java.io.Writer out)
This method should change the output Writer that will be
used when output function of the scripting langage is used. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JaclInterpreter()
| Method Detail |
public java.lang.Object evaluate(java.io.Reader scriptreader)
throws InterpreterException,
java.io.IOException
Interpreterevaluate in interface Interpreterorg.apache.batik.script.Interpreterscriptreader - a java.io.Reader on the piece of script
public java.lang.Object evaluate(java.lang.String script)
throws InterpreterException
InterpreterString
instead of a Reader. This usually allows do easily do some
caching.evaluate in interface Interpreterorg.apache.batik.script.Interpreterscript - the piece of scriptpublic void dispose()
Interpreterdispose in interface Interpreter
public void bindObject(java.lang.String name,
java.lang.Object object)
InterpreterObject in
the environment of the interpreter.bindObject in interface Interpreterorg.apache.batik.script.Interpretername - the name of the script object to createobject - the Java objectpublic void setOut(java.io.Writer out)
InterpreterWriter that will be
used when output function of the scripting langage is used.setOut in interface Interpreterorg.apache.batik.script.Interpreteroutput - the new out Writer.public java.util.Locale getLocale()
LocalizablegetLocale in interface Localizablepublic void setLocale(java.util.Locale locale)
LocalizablesetLocale in interface Localizableorg.apache.batik.i18n.Localizablel - The locale to set.
public java.lang.String formatMessage(java.lang.String key,
java.lang.Object[] args)
LocalizableformatMessage in interface Localizableorg.apache.batik.i18n.Localizablekey - The key used to retreive the message from the resource
bundle.args - The objects that compose the message.java.util.MissingResourceException - if the key is not in the bundle.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||