public static final class CodeEvaluator.DefaultExpressionsHistoryPersistence extends Object
CodeEvaluator.EvaluatorService.getExpressionsHistory()
.Modifier and Type | Method and Description |
---|---|
void |
addExpression(String expression)
Add a new expression to the history.
|
static CodeEvaluator.DefaultExpressionsHistoryPersistence |
create(String engineName)
Create a new instance of default expressions history persistence.
|
List<String> |
getExpressions()
Get the list of stored expressions.
|
public static CodeEvaluator.DefaultExpressionsHistoryPersistence create(String engineName)
engineName
- The name of the persistence storage. Usually the engine name to be unique.public List<String> getExpressions()
public void addExpression(String expression)
expression
- a new expression to store.