public interface ElEnvironment
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(String expression,
Class<T> resultCls)
Evaluates the given expression and cast the result of it to the given
result class.
|
<T> T |
getVar(String name,
Class<T> resultCls)
Gets the value of the specified variable.
|
String |
getVarAsString(String name)
Gets the var as the string.
|
void |
popVar(String name)
Pops the value out of the stack of the given variable.
|
<T> void |
pushVar(String name,
T value)
Push the value into the stack of the specified variable.
|
<T> void |
set(String expression,
T value)
Sets the given expression to the specified value.
|
boolean |
varExists(String name)
Determines if the given var exists in the enviroment.
|
<T> T get(String expression, Class<T> resultCls)
T - The type of the result of the expression.expression - The expression.resultCls - The result class for the expression.<T> void set(String expression, T value)
T - The type of the value.expression - The expression to assign.value - The value to assign.<T> T getVar(String name, Class<T> resultCls)
T - The type of the variable.name - The name of the variable.resultCls - The result class for the variable.<T> void pushVar(String name, T value)
T - The type of the variable.name - The name of the variable.value - The value of the variable.void popVar(String name)
name - The name of the variable.String getVarAsString(String name)
name - The name of the var.boolean varExists(String name)
name - The name of the var to test.Copyright © 2015–2018 Bridje Framework. All rights reserved.