Package org.smooks.engine.expression
Class MVELVariables
- java.lang.Object
-
- org.smooks.engine.expression.MVELVariables
-
public class MVELVariables extends Object
The MVELVariables is utility class for MVEL. It can be used to inspect the MVEL Variable Context.- Author:
- maurice.zeijen@smies.com
-
-
Constructor Summary
Constructors Constructor Description MVELVariables(org.mvel2.integration.VariableResolverFactory variableResolverFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
get(String var)
Returns the value of the variable or null if it is not defined.boolean
isdef(String var)
Returns true if the variable is defined within the MVEL Context.boolean
isResolveable(String var)
Returns true if the variable is defined within the MVEL Context.boolean
isUnresolveable(String var)
Returns true if the variable is not defined within the MVEL Context.
-
-
-
Method Detail
-
isdef
public boolean isdef(String var)
Returns true if the variable is defined within the MVEL Context.- Parameters:
var
-- Returns:
-
isResolveable
public boolean isResolveable(String var)
Returns true if the variable is defined within the MVEL Context.- Parameters:
var
-- Returns:
-
isUnresolveable
public boolean isUnresolveable(String var)
Returns true if the variable is not defined within the MVEL Context.- Parameters:
var
-- Returns:
-
-