Package ch.raffael.meldioc.model
Class ModelType<S,T>
java.lang.Object
ch.raffael.meldioc.model.ModelType<S,T>
public final class ModelType<S,T>
extends java.lang.Object
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
-
Method Summary
Modifier and Type Method Description io.vavr.collection.Seq<ch.raffael.meldioc.model.ModelMethod<S,T>>allMethods()io.vavr.collection.Seq<ch.raffael.meldioc.model.ModelMethod<S,T>>allProvisionMethods()ch.raffael.meldioc.model.SrcElement<S,T>element()io.vavr.collection.Seq<ch.raffael.meldioc.model.ModelMethod<S,T>>extensionPointMethods()booleanisImported(ModelType<S,T> type)Model<S,T>model()io.vavr.collection.Seq<ch.raffael.meldioc.model.ModelMethod<S,T>>mountMethods()io.vavr.collection.Seq<ch.raffael.meldioc.model.ModelMethod<S,T>>parameterMethods()io.vavr.collection.Seq<ch.raffael.meldioc.model.ModelMethod<S,T>>provisionMethods()io.vavr.collection.Seq<ch.raffael.meldioc.model.ModelMethod<S,T>>setupMethods()io.vavr.collection.Seq<ModelType<S,T>>superTypes()java.lang.StringtoString()Ttype()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ModelType
-
-
Method Details
-
model
-
type
-
element
-
superTypes
-
isImported
-
allMethods
-
provisionMethods
-
extensionPointMethods
-
allProvisionMethods
-
mountMethods
-
setupMethods
-
parameterMethods
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-