org.omegahat.Environment.Language.UserClasses
Interface UserClassChangeListener

All Known Implementing Classes:
AbstractUserClass

public interface UserClassChangeListener

Interface allowing an object to register for notification of a change to the definition of an interpreted class. This allows propogation of the addition or removal of a field, method or constructor. This can be used to notify instances of a class of a change to the definition so that they can take appropriate action.


Method Summary
 boolean classRepresentationChanged(UserClassChangeEvent ev, boolean force)
          Method invoked when a user-level class definition is changed to notify an object of this modification.
 

Method Detail

classRepresentationChanged

public boolean classRepresentationChanged(UserClassChangeEvent ev,
                                          boolean force)
Method invoked when a user-level class definition is changed to notify an object of this modification. This might be a class viewer, an instance of the class, a logging system, etc.
Parameters:
ev - an event containing information about which class and element was changed.
force - ?
Returns:
boolean indicating whether the change is ok or if this object wishes to veto the change (false)