damp.ekeko.ekekomodel documentation
Central point of access to the EkekoModel for reification relations.
*queried-project-models*
Seq of ProjectModel instances that are to be queried.
Will be used as the source for all reification predicates if
it is non-false, otherwise all Java project models are used
(see all-project-models).
Expected to be a subset of those on which the EkekoNature has been enabled.
Example usage:
;;temporarily query JHotDraw51 only:
(binding [*queried-project-models*
(atom
(filter
(fn [project-model]
(= "JHotDraw51" (.getName (.getProject project-model))))
(all-project-models)))]
(ekeko* [?cu] (ast :CompilationUnit ?cu)))
all-project-models
(all-project-models)
Returns all ProjectModel instances managed by the EkekoModel.
Corresponds to all IProjects that have the Ekeko nature enabled.
ekeko-model
(ekeko-model)
Returns the current EkekoModel singleton.
queried-project-models
(queried-project-models)
Returns the Seq of ProjectModel instances that are to be queried.
Defaults to all ProjectModel instances gathered by the EkekoModel
(see all-project-models), unless dynamic variable *queried-project-models*
is set.
register-listener
(register-listener ?l)
Registers EkekoModelUpdateListener ?l.
unregister-listener
(unregister-listener ?l)
Unregisters EkekoModelUpdateListener ?l.