Package org.jline.console
Interface ScriptEngine
public interface ScriptEngine
Manage scriptEngine variables, statements and script execution.
- Author:
- Matti Rinta-Nikkola
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeletes variables.default Objectdeserialize(String value) Deserialize valuedeserialize(String value, String format) Deserialize valuedefault ObjectExecutes scriptEngine scriptExecutes scriptEngine scriptExecutes scriptEngine closureExecutes scriptEngine statementfind()Gets all variables with valuesGets all the variables that match the name.Gets variable valuebooleanhasVariable(String name) Tests if console variable existsvoidPersists object value to file.voidPersists object value to file.voidCreates 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
-