Package org.mvel2.integration.impl
Class SimpleSTValueResolver
- java.lang.Object
-
- org.mvel2.integration.impl.SimpleSTValueResolver
-
- All Implemented Interfaces:
Serializable,VariableResolver
public class SimpleSTValueResolver extends Object implements VariableResolver
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleSTValueResolver(Object value, Class type)SimpleSTValueResolver(Object value, Class type, boolean updated)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetFlags()Returns the bitset of special variable flags.StringgetName()Returns the name of external variable.ClassgetType()This should return the type of the variable.ObjectgetValue()Returns the physical target value of the variable.voidsetStaticType(Class type)voidsetValue(Object value)Sets the value of the physical target value.
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:VariableResolverReturns the name of external variable.- Specified by:
getNamein interfaceVariableResolver- Returns:
- A string representing the variable name.
-
getType
public Class getType()
Description copied from interface:VariableResolverThis should return the type of the variable. However, this is not completely necessary, and is particularily only of benefit to systems that require use of MVEL's strict typing facilities. In most cases, this implementation can simply return: Object.class- Specified by:
getTypein interfaceVariableResolver- Returns:
- A Class instance representing the type of the target variable.
-
setStaticType
public void setStaticType(Class type)
- Specified by:
setStaticTypein interfaceVariableResolver
-
getFlags
public int getFlags()
Description copied from interface:VariableResolverReturns the bitset of special variable flags. Internal use only. This should just return 0 in custom implentations.- Specified by:
getFlagsin interfaceVariableResolver- Returns:
- Bitset of special flags.
-
getValue
public Object getValue()
Description copied from interface:VariableResolverReturns the physical target value of the variable.- Specified by:
getValuein interfaceVariableResolver- Returns:
- The actual variable value.
-
setValue
public void setValue(Object value)
Description copied from interface:VariableResolverSets the value of the physical target value.- Specified by:
setValuein interfaceVariableResolver- Parameters:
value- The new value.
-
-