Modifier and Type | Field and Description |
---|---|
protected Compiler |
compiler |
protected boolean |
lineMode |
protected IParser |
parser |
protected boolean |
shutdown |
protected boolean |
verbose |
protected IObjectWriter |
writer |
Constructor and Description |
---|
REPL() |
Modifier and Type | Method and Description |
---|---|
Integer |
execute(Reader reader,
String inputName)
Run interactive REPL loop.
|
Compiler |
getCompiler() |
boolean |
getLineMode() |
IObjectWriter |
getObjectWriter() |
IParser |
getParser() |
boolean |
getVerbose() |
boolean |
isExitRequested() |
void |
requestExit() |
void |
setCompiler(Compiler compiler) |
void |
setLineMode(boolean lineMode) |
void |
setObjectWriter(IObjectWriter writer) |
void |
setParser(IParser parser) |
void |
setVerbose(boolean val) |
protected boolean verbose
protected boolean lineMode
protected Compiler compiler
protected IParser parser
protected volatile boolean shutdown
protected IObjectWriter writer
public void requestExit()
requestExit
in interface IREPL
public boolean isExitRequested()
isExitRequested
in interface IREPL
public void setVerbose(boolean val)
setVerbose
in interface IREPL
public boolean getVerbose()
getVerbose
in interface IREPL
public Compiler getCompiler()
getCompiler
in interface IREPL
public void setCompiler(Compiler compiler)
setCompiler
in interface IREPL
public void setObjectWriter(IObjectWriter writer)
setObjectWriter
in interface IREPL
public IObjectWriter getObjectWriter()
getObjectWriter
in interface IREPL
public boolean getLineMode()
getLineMode
in interface IREPL
public void setLineMode(boolean lineMode)
setLineMode
in interface IREPL
public Integer execute(Reader reader, String inputName) throws IOException
execute
in interface IREPL
reader
- input streaminputName
- name of input in REPL UIIOException
Copyright © 2022. All rights reserved.