Package gw.lang.reflect.gs
Interface IExternalSymbolMap
-
- All Known Implementing Classes:
ExternalSymbolMapBase
,ExternalSymbolMapForMap
,ExternalSymbolMapSymbolTableWrapper
public interface IExternalSymbolMap
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
getValue(String name)
Returns the value for the symbol with the given name.Object
getValue(String name, int iArrayDims)
Called via bytecode.Object
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 Detail
-
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 symbolvalue
- 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 symbolargs
- the arguments to the method- Returns:
- the result of the function invocation
-
-