Interface IExternalSymbolMap

All Known Implementing Classes:
ExternalSymbolMapBase, ExternalSymbolMapForMap, ExternalSymbolMapSymbolTableWrapper

public interface IExternalSymbolMap
  • Method Summary

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

    • getValue

      Object getValue(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

      Object getValue(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(String name, 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

      Object invoke(String name, 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