public abstract class AbstractScriptEngine extends Object implements ScriptEngine
Modifier and Type | Field and Description |
---|---|
protected Writer |
errorWriter
This is the writer to be used to output errors from scripts.
|
protected Reader |
reader
This is the reader to be used for input from scripts.
|
protected Writer |
writer
This is the writer to be used to output from scripts.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractScriptEngine() |
Modifier and Type | Method and Description |
---|---|
Object |
compileObject(Context context,
Object value)
{@inheritDoc
|
Writer |
getErrorWriter() |
static List<String> |
getImports() |
protected Object |
getNull()
Gets the
null object representation. |
Reader |
getReader() |
Writer |
getWriter() |
void |
setErrorWriter(Writer writer) |
void |
setReader(Reader reader) |
void |
setWriter(Writer writer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compileBindings, compileScript, getFactory
protected Writer writer
PrintWriter
based on System.out
is used.
Accessor methods getWriter, setWriter are used to manage this field.System.out
,
PrintWriter
protected Writer errorWriter
PrintWriter
based on System.err
is used.
Accessor methods getErrorWriter, setErrorWriter are used to manage this
field.System.err
,
PrintWriter
protected Reader reader
InputStreamReader
based on System.in
is used
and default charset is used by this reader. Accessor methods getReader,
setReader are used to manage this field.System.in
,
InputStreamReader
public Writer getWriter()
ScriptContext.getWriter()
public Reader getReader()
ScriptContext.getReader()
public void setReader(Reader reader)
ScriptContext.setReader(java.io.Reader)
public void setWriter(Writer writer)
ScriptContext.setWriter(java.io.Writer)
public Writer getErrorWriter()
ScriptContext.getErrorWriter()
public void setErrorWriter(Writer writer)
public Object compileObject(Context context, Object value)
compileObject
in interface ScriptEngine
context
- A visitor specified parameter.value
- The ScriptContext instance.protected Object getNull()
null
object representation.
If the null
object has special representation in the script scope
this method returns with that object.null
or representation of null
object.Copyright © 2025 Open Identity Platform Community. All rights reserved.