Interface VariableResolver

    • Method Detail

      • getName

        String getName()
        Returns the name of external variable.
        Returns:
        A string representing the variable name.
      • getType

        Class getType()
        This 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
        Returns:
        A Class instance representing the type of the target variable.
      • setStaticType

        void setStaticType​(Class type)
      • getFlags

        int getFlags()
        Returns the bitset of special variable flags. Internal use only. This should just return 0 in custom implentations.
        Returns:
        Bitset of special flags.
      • getValue

        Object getValue()
        Returns the physical target value of the variable.
        Returns:
        The actual variable value.
      • setValue

        void setValue​(Object value)
        Sets the value of the physical target value.
        Parameters:
        value - The new value.