public interface ScriptInterpreter extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
Object |
getClassMethods(Class<?> classToGet)
Print all methods of a java class.
|
String |
getFileExtension() |
String |
getFileHeader() |
boolean |
isClosed() |
void |
print(String toPrint)
Utility function, print a line in console.
|
Object |
runCommand(String command)
Execute a command.
|
ParsedScript |
runScript(String file)
Parse and run a script file.
|
void |
setOutput(Writer output)
Redirect the output.
|
closeParsedScript runScript(String file) throws ScriptException
file - File to execute.ScriptException - If an exception occurs while parsing the script.Object runCommand(String command) throws ScriptException
command - Command to execute.ScriptException - If an exception occurs while parsing the command.void print(String toPrint)
toPrint - Line to print.void setOutput(Writer output)
output - New script engine output.Object getClassMethods(Class<?> classToGet)
classToGet - Class to retrieve methods.String getFileHeader()
String getFileExtension()
boolean isClosed()
Copyright © 2014–2017. All rights reserved.