|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Basic interface that defines the object that can be compiled. Each such object has to hold a set of its dependencies and also a set of Compilers that should be used to compile it.
The semantics says that before the Compilers can run all other Compileable objects that this one depends on must already be compiled.
The third important method of Compileable is that it should have equals method overriden to correctly recognize all other compileable objects that represents the same compilation. But *WITHOUT* checking
Field Summary | |
static Mutex |
MUTEX
Mutex to synchronize in adding/changing and reading dependencies between compilable objects. |
Method Summary | |
Collection |
compilers()
A collection of all compilers that have to be compiled to finish compilation of this Compilable |
Collection |
dependsOn()
A collection of other Compilable objects that have to be finished before the compilers of this Compilable can be started. |
boolean |
equals(Object other)
Equal method should be implemented to return true for all Compilable objects that are "compiled in the same way" but ignoring their dependencies. |
Field Detail |
public static final Mutex MUTEX
Method Detail |
public Collection compilers()
public Collection dependsOn()
public boolean equals(Object other)
equals
in class Object
other
- the other object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |