|
|||||||||
| Home >> All >> org >> apache >> batik >> [ script overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.batik.script
Interface Interpreter

- All Superinterfaces:
- org.apache.batik.i18n.Localizable
- public interface Interpreter
- extends org.apache.batik.i18n.Localizable
An hight level interface that represents an interpreter engine of a particular scripting language.
- Version:
- $Id: Interpreter.java,v 1.9 2004/08/18 07:14:53 vhardy Exp $
| 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.io.Reader scriptreader,
java.lang.String description)
This method should evaluate a piece of script associated to a given description. |
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 |
evaluate
public java.lang.Object evaluate(java.io.Reader scriptreader, java.lang.String description) throws InterpreterException, java.io.IOException
- This method should evaluate a piece of script associated to a given
description.
evaluate
public java.lang.Object evaluate(java.io.Reader scriptreader) throws InterpreterException, java.io.IOException
- This method should evaluate a piece of script.
evaluate
public java.lang.Object evaluate(java.lang.String script) throws InterpreterException
- This method should evaluate a piece of script using a
Stringinstead of aReader. This usually allows do easily do some caching.
bindObject
public void bindObject(java.lang.String name, java.lang.Object object)
- This method should register a particular Java
Objectin the environment of the interpreter.
setOut
public void setOut(java.io.Writer output)
- This method should change the output
Writerthat will be used when output function of the scripting langage is used.
dispose
public void dispose()
- This method can dispose resources used by the interpreter when it is
no longer used. Be careful, you SHOULD NOT use this interpreter instance
after calling this method.
|
|||||||||
| Home >> All >> org >> apache >> batik >> [ script overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC