Package org.mvel2.ast
Class Proto.ProtoResolver
java.lang.Object
org.mvel2.ast.Proto.ProtoResolver
- All Implemented Interfaces:
Serializable,VariableResolver
- Enclosing class:
- Proto
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetFlags()Returns the bitset of special variable flags.getName()Returns the name of external variable.getType()This should return the type of the variable.getValue()Returns the physical target value of the variable.voidvoidsetStaticType(Class knownType) voidSets the value of the physical target value.
-
Constructor Details
-
ProtoResolver
-
ProtoResolver
-
-
Method Details
-
setName
-
setStaticType
- Specified by:
setStaticTypein interfaceVariableResolver
-
getName
Description copied from interface:VariableResolverReturns the name of external variable.- Specified by:
getNamein interfaceVariableResolver- Returns:
- A string representing the variable name.
-
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.
-
setValue
Description copied from interface:VariableResolverSets the value of the physical target value.- Specified by:
setValuein interfaceVariableResolver- Parameters:
value- The new value.
-
getValue
Description copied from interface:VariableResolverReturns the physical target value of the variable.- Specified by:
getValuein interfaceVariableResolver- Returns:
- The actual variable value.
-
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.
-