Package gw.lang.reflect.gs
Interface IExternalSymbolMap
- All Known Implementing Classes:
ExternalSymbolMapBase
,ExternalSymbolMapForMap
,ExternalSymbolMapSymbolTableWrapper
public interface IExternalSymbolMap
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value for the symbol with the given name.Called via bytecode.Invokes the named external function with the given arguments.void
Sets the value of the symbol with the given name.
-
Method Details
-
getValue
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
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
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 symbolvalue
- the new value to give that symbol
-
invoke
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 symbolargs
- the arguments to the method- Returns:
- the result of the function invocation
-