Interface ComponentHelper.VariableScope

    • Method Detail

      • close

        void close()
        Restores the previous mapping of the variable.
        Specified by:
        close in interface AutoCloseable
      • getPreviousValue

        Object getPreviousValue()
        Gets the previous value of the variable before it was overridden by this scope. If the variable did not exist before, this method returns null.
        Returns:
        The previous value of the variable, or null if the variable did not exist before.
      • isHadPreviousValue

        boolean isHadPreviousValue()
        Gets whether the variable existed before it was overridden by this scope.
        Returns:
        true if the variable existed before, or false if the variable did not exist before.