Package org.jline.console
Interface ScriptEngine
public interface ScriptEngine
Manage scriptEngine variables, statements and script execution.
- Author:
- Matti Rinta-Nikkola
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deletes variables.default Object
deserialize
(String value) Deserialize valuedeserialize
(String value, String format) Deserialize valuedefault Object
Executes scriptEngine scriptExecutes scriptEngine scriptExecutes scriptEngine closureExecutes scriptEngine statementfind()
Gets all variables with valuesGets all the variables that match the name.Gets variable valueboolean
hasVariable
(String name) Tests if console variable existsvoid
Persists object value to file.void
Persists object value to file.void
Creates variableSerialize object to JSON string.Converts object fields to map.Converts object to string.
-
Method Details
-
getEngineName
String getEngineName()- Returns:
- scriptEngine name
-
getExtensions
Collection<String> getExtensions()- Returns:
- script file name extensions
-
getScriptCompleter
Completer getScriptCompleter()- Returns:
- script tab completer
-
hasVariable
Tests if console variable exists- Parameters:
name
- variable name- Returns:
- true if variable exists
-
put
-
get
-
find
-
find
-
del
Deletes variables. Variable name can contain * wild cards.- Parameters:
vars
- variables to be deleted
-
toJson
-
toString
-
toMap
-
deserialize
-
deserialize
-
getSerializationFormats
-
getDeserializationFormats
-
persist
-
persist
-
execute
-
execute
-
execute
-
execute
-