Interface IExternalSymbolMap

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object getValue​(java.lang.String name)
      Returns the value for the symbol with the given name.
      java.lang.Object getValue​(java.lang.String name, int iArrayDims)
      Called via bytecode.
      java.lang.Object invoke​(java.lang.String name, java.lang.Object[] args)
      Invokes the named external function with the given arguments.
      void setValue​(java.lang.String name, java.lang.Object value)
      Sets the value of the symbol with the given name.
    • Method Detail

      • getValue

        java.lang.Object getValue​(java.lang.String name)
        Returns the value for the symbol with the given name. Throws a runtime exception if the name does not correspond to a valid external symbol.
        Parameters:
        name - the name of the symbol
        Returns:
        the current value of the symbol
      • getValue

        java.lang.Object getValue​(java.lang.String name,
                                  int iArrayDims)
        Called via bytecode.
        Parameters:
        name -
        iArrayDims - the expected number of array dimensions of the the symbol's type, useful for debugger expr evaluation for dynamically unwrapping type a single elem array (a captured var)
        Returns:
      • setValue

        void setValue​(java.lang.String name,
                      java.lang.Object value)
        Sets the value of the symbol with the given name. Throws a runtime exception if the name does not correspond to a valid external symbol.
        Parameters:
        name - the name of the symbol
        value - the new value to give that symbol
      • invoke

        java.lang.Object invoke​(java.lang.String name,
                                java.lang.Object[] args)
        Invokes the named external function with the given arguments. The name argument should correspond to the result of calling getName() on the external function symbol.
        Parameters:
        name - the name of the function symbol
        args - the arguments to the method
        Returns:
        the result of the function invocation