Interface VariableResolver

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getFlags()
      Returns the bitset of special variable flags.
      java.lang.String getName()
      Returns the name of external variable.
      java.lang.Class getType()
      This should return the type of the variable.
      java.lang.Object getValue()
      Returns the physical target value of the variable.
      void setStaticType​(java.lang.Class type)  
      void setValue​(java.lang.Object value)
      Sets the value of the physical target value.
    • Method Detail

      • getName

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

        java.lang.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​(java.lang.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

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

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