Eidola home

org.eidola.kernel.event
Class CompileRequired

java.lang.Object
  |
  +--org.eidola.kernel.event.ContainerEvent
        |
        +--org.eidola.kernel.event.CompileRequired
All Implemented Interfaces:
Event
Direct Known Subclasses:
ContainerCreated, NamespaceChanged, SignatureChanged, StructureChanged

public class CompileRequired
extends ContainerEvent

Signals that a container needs to be recompiled.

This is a generalization for other events, such as StructureChanged and SignatureChanged, which require recompilation but convey more specific information. This class also works alone for forcing recompilation of a conatiner without signaling any changes to it.

CompileEvents can propagate other compile events. For example, if the name of a parameter of a function changes, the structure change in the parameter propagates a signature change in the parameter, which in turn propagates a signature change in the function, which might require recompilation of a class of which the function is a member.

Version:
[Development version]
Author:
Paul Cantrell

Constructor Summary
CompileRequired(Container source)
          Creates a new compile required event which is the start of a propagation chain.
CompileRequired(Container source, ContainerEvent propagatedFrom)
          Creates a compile required event which was propagated from another such event.
 
Methods inherited from class org.eidola.kernel.event.ContainerEvent
equals, getPropagatedFrom, getSource, hashCode, propagationChainContains, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompileRequired

public CompileRequired(Container source)
Creates a new compile required event which is the start of a propagation chain.
Parameters:
source - The element which needs to be recompiled.

CompileRequired

public CompileRequired(Container source,
                       ContainerEvent propagatedFrom)
Creates a compile required event which was propagated from another such event.
Parameters:
source - The element which needs to be recompiled.
propagatedFrom - The event which propagated this one.

Eidola home