Class Unit
java.lang.Object
ca.mcscert.jpipe.model.Unit
Root of a compiled jPipe file. Contains all named justification models
defined in the file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(JustificationVisitor<R> visitor) voidadd(JustificationModel<?> model) voidaddInto(String modelName, JustificationElement element) aliases()Unmodifiable view of all recorded aliases.locationOf(String modelName) Returns the declared location of a model, orSourceLocation.UNKNOWN.locationOf(String modelName, String elementId) Returns the declared location of an element inside a model, orSourceLocation.UNKNOWN.Unmodifiable view of the full location registry.voidrecordAlias(String modelName, String oldId, String newId) Records thatoldIdin modelmodelNamewas merged intonewId.voidrecordLocation(String modelName, SourceLocation loc) Records where a model (justification or template) was declared.voidrecordLocation(String modelName, String elementId, SourceLocation loc) Records where a named element inside a model was declared.voidremoveFrom(String modelName, String elementId) resolveAlias(String modelName, String id) Returns the id thatidresolves to inmodelName, oriditself if no alias was registered.
-
Constructor Details
-
Unit
-
-
Method Details
-
getSource
-
add
-
getModels
-
findModel
-
get
-
addInto
-
removeFrom
-
justifications
-
templates
-
locations
Unmodifiable view of the full location registry. -
aliases
-
recordLocation
Records where a model (justification or template) was declared. -
locationOf
Returns the declared location of a model, orSourceLocation.UNKNOWN. -
recordLocation
Records where a named element inside a model was declared. -
locationOf
Returns the declared location of an element inside a model, orSourceLocation.UNKNOWN. -
recordAlias
-
resolveAlias
-
accept
-