|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.script.jacl.JaclInterpreter
public class JaclInterpreter
A simple implementation of Interpreter interface to use
JACL Tcl parser.
| Constructor Summary | |
|---|---|
JaclInterpreter()
|
|
| Method Summary | |
|---|---|
void |
bindObject(String name,
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. |
Object |
evaluate(Reader scriptreader)
This method should evaluate a piece of script. |
Object |
evaluate(Reader scriptreader,
String description)
This method should evaluate a piece of script associated to a given description. |
Object |
evaluate(String script)
This method should evaluate a piece of script using a String
instead of a Reader. |
String |
formatMessage(String key,
Object[] args)
|
Locale |
getLocale()
|
String[] |
getMimeTypes()
Returns the content types of the scripting languages this interpreter handles. |
void |
setLocale(Locale locale)
|
void |
setOut(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 String[] getMimeTypes()
getMimeTypes in interface Interpreter
public Object evaluate(Reader scriptreader)
throws IOException
Interpreter
evaluate in interface Interpreterscriptreader - a java.io.Reader on the piece of script
IOException
public Object evaluate(Reader scriptreader,
String description)
throws IOException
Interpreter
evaluate in interface Interpreterscriptreader - a java.io.Reader on the piece of scriptdescription - description which can be later used (e.g., for error
messages).
IOExceptionpublic Object evaluate(String script)
InterpreterString
instead of a Reader. This usually allows do easily do some
caching.
evaluate in interface Interpreterscript - the piece of script
public void dispose()
Interpreter
dispose in interface Interpreter
public void bindObject(String name,
Object object)
InterpreterObject in
the environment of the interpreter.
bindObject in interface Interpretername - the name of the script object to createobject - the Java objectpublic void setOut(Writer out)
InterpreterWriter that will be
used when output function of the scripting langage is used.
setOut in interface Interpreterout - the new out Writer.public Locale getLocale()
getLocale in interface org.apache.batik.i18n.Localizablepublic void setLocale(Locale locale)
setLocale in interface org.apache.batik.i18n.Localizable
public String formatMessage(String key,
Object[] args)
formatMessage in interface org.apache.batik.i18n.Localizable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||