All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface Iava.observation.SymbolDeclListener

public interface SymbolDeclListener
The interface SymbolDeclListener is implemented by classes which need to be notified about the declaration of symbols in a IavaRuntime. Each time a script declares a new symbol in a given instance of IavaRuntime, the registered symbol listeners for this runtime are notified and passed the new symbol's name, type and initial value. Each time a variable scope is closed during script interpretation, the listeners are notified of this.

See Also:
addSymbolDeclListener, removeSymbolDeclListener

Method Index

 o symbolDeclared(String, Class, Object)
Called by the runtime this listener is registered to when a new symbol is declared.
 o symbolScopeClosed()
Called by the runtime when a scope is closed (i.e.

Methods

 o symbolDeclared
 public abstract void symbolDeclared(String symbolName,
                                     Class symbolType,
                                     Object symbolValue)
Called by the runtime this listener is registered to when a new symbol is declared.

 o symbolScopeClosed
 public abstract void symbolScopeClosed()
Called by the runtime when a scope is closed (i.e. all symbols defined in this scope are discarded). Refer to the Java variable scoping rules for details.


All Packages  Class Hierarchy  This Package  Previous  Next  Index