Package ch.raffael.meldioc.model
Class ModelType<S,T>
java.lang.Object
ch.raffael.meldioc.model.ModelType<S,T>
A rich representation of a Meld model type.
This class also does all the analysis and validations and reports
errors to the model's MessageSink. If there are
validation errors, it tries to keep the model as consistent as possible,
errors are only reported but won't cause building the model type to fail.
Consequently, its contents may cause a code generator to generate BS. It's up to the code generator to watch the message sink for errors. A generator will usually not generate any code if there are model errors.
OTOH, this way, we can collect as many errors as possible in one analysis run.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.vavr.collection.Seq<ModelMethod<S,T>> SrcElement<S,T> element()io.vavr.collection.Seq<ModelMethod<S,T>> booleanisImported(ModelType<S, T> type) model()io.vavr.collection.Seq<ModelMethod<S,T>> io.vavr.collection.Seq<ModelMethod<S,T>> io.vavr.collection.Seq<ModelMethod<S,T>> io.vavr.collection.Seq<ModelMethod<S,T>> booleantoString()type()