Interface Message<S,T>
- All Known Implementing Classes:
SimpleMessage
public interface Message<S,T>
Represents a model error or warning message.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumMessage IDs for use with `@SuppressWarnings()`.static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.vavr.collection.Map<String,Function<? super SrcElement<?, ?>, io.vavr.control.Option<String>>> static final Pattern -
Method Summary
Modifier and TypeMethodDescriptionstatic <S,T> SimpleMessage<S, T> abstractMethodWillNotBeImplemented(SrcElement<S, T> element, SrcElement<S, T> conflict) static <S,T> SimpleMessage<S, T> configTypeNotSupported(SrcElement<S, T> element) static <S,T> SimpleMessage<S, T> conflictingCompositionRoles(SrcElement<S, T> element, io.vavr.collection.Seq<SrcElement<S, T>> conflicts) static <S,T> SimpleMessage<S, T> conflictingExtensionPoints(SrcElement<S, T> element, io.vavr.collection.Seq<SrcElement<S, T>> conflicts) static <S,T> SimpleMessage<S, T> conflictingOverride(SrcElement<S, T> element, io.vavr.collection.Seq<SrcElement<S, T>> conflicts) static <S,T> SimpleMessage<S, T> conflictingProvisions(SrcElement<S, T> element, io.vavr.collection.Seq<SrcElement<S, T>> conflicts) io.vavr.collection.Seq<SrcElement<S,T>> static <S,T> String defaultRenderMessage(Message<S, T> msg, Function<? super S, ? extends CharSequence> elementRenderer) SrcElement<S,T> element()static <S,T> SimpleMessage<S, T> elementNotAccessible(SrcElement<S, T> element, SrcElement<S, T> conflict) static <S,T> SimpleMessage<S, T> extensionPointReturnRecommended(SrcElement<S, T> element, SrcElement<S, T> conflict) static <S,T> SimpleMessage<S, T> featureInterfacesShouldDeclareProvisionsOnly(SrcElement<S, T> methodElement, SrcElement<S, T> typeElement) io.vavr.control.Option<Message.Id>id()static <S,T> SimpleMessage<S, T> illegalFeatureClass(SrcElement<S, T> element) static <S,T> SimpleMessage<S, T> illegalInnerClass(SrcElement<S, T> type) static <S,T> SimpleMessage<S, T> illegalInnerClass(SrcElement<S, T> elem, SrcElement<S, T> type) static <S,T> SimpleMessage<S, T> incompatibleProvisionThrows(SrcElement<S, T> element, SrcElement<S, T> provision, SrcElement<S, T> exception) static <S,T> SimpleMessage<S, T> incompatibleProvisionTypes(SrcElement<S, T> element, SrcElement<S, T> provision, SrcElement<S, T> implementation, io.vavr.control.Option<SrcElement<S, T>> implementationVia) default booleanisId(Message.Id id) booleanstatic <S,T> SimpleMessage<S, T> meldAnnotationOutsideFeature(SrcElement<S, T> element) message()static <S,T> SimpleMessage<S, T> missingFeatureImportAnnotation(SrcElement<S, T> element, SrcElement<S, T> superType) static <S,T> SimpleMessage<S, T> missingNoArgsConstructor(SrcElement<S, T> type) static <S,T> SimpleMessage<S, T> missingNoArgsConstructor(SrcElement<S, T> elem, SrcElement<S, T> type) static <S,T> SimpleMessage<S, T> mountAttributeClassMustNotBeParametrized(SrcElement<S, T> element, SrcElement<S, T> conflict) static <S,T> SimpleMessage<S, T> mountedProvisionOverridesMethod(SrcElement<S, T> element, SrcElement<S, T> method, SrcElement<S, T> mount) static <S,T> SimpleMessage<S, T> mountMethodMustBeAbstract(SrcElement<S, T> element) static <S,T> SimpleMessage<S, T> mountMethodMustReturnFeature(SrcElement<S, T> element, SrcElement<S, T> conflict) static <S,T> SimpleMessage<S, T> mountMethodsAllowedInConfigurationsOnly(SrcElement<S, T> element) static <S,T> SimpleMessage<S, T> mustReturnReference(SrcElement<S, T> element) static <S,T> SimpleMessage<S, T> nonOverridableMethod(SrcElement<S, T> element) static <S,T> SimpleMessage<S, T> noParametersAllowed(SrcElement<S, T> element) static <S,T> SimpleMessage<S, T> objectOverride(SrcElement<S, T> element) origins()static <S,T> SimpleMessage<S, T> provisionOverrideMissing(SrcElement<S, T> element, SrcElement<S, T> conflict) default StringrenderMessage(Function<? super S, ? extends CharSequence> elementRenderer) static <S,T> SimpleMessage<S, T> returnValueIgnored(SrcElement<S, T> element) static <S,T> SimpleMessage<S, T> typeNotExtendable(SrcElement<S, T> element, SrcElement<S, T> type) static <S,T> SimpleMessage<S, T> typesafeConfigNotOnClasspath(SrcElement<S, T> element) static <S,T> SimpleMessage<S, T> unresolvedExtensionPoint(SrcElement<S, T> epConsumer, SrcElement<S, T> epType) static <S,T> SimpleMessage<S, T> unresolvedExtensionPoint(SrcElement<S, T> source, SrcElement<S, T> epConsumer, SrcElement<S, T> epType) static <S,T> SimpleMessage<S, T> unresolvedProvision(SrcElement<S, T> element, SrcElement<S, T> conflict)
-
Field Details
-
RENDER_ATTRIBUTE_EXTRACTORS
static final io.vavr.collection.Map<String,Function<? super SrcElement<?, RENDER_ATTRIBUTE_EXTRACTORS?>, io.vavr.control.Option<String>>> -
RENDER_SUBSTITUTION_RE
-
-
Method Details
-
id
io.vavr.control.Option<Message.Id> id() -
isId
-
element
SrcElement<S,T> element() -
origins
-
message
String message() -
conflicts
io.vavr.collection.Seq<SrcElement<S,T>> conflicts() -
languageError
boolean languageError() -
renderMessage
-
conflictingCompositionRoles
static <S,T> SimpleMessage<S,T> conflictingCompositionRoles(SrcElement<S, T> element, io.vavr.collection.Seq<SrcElement<S, T>> conflicts) -
conflictingOverride
static <S,T> SimpleMessage<S,T> conflictingOverride(SrcElement<S, T> element, io.vavr.collection.Seq<SrcElement<S, T>> conflicts) -
objectOverride
-
typeNotExtendable
-
illegalFeatureClass
-
nonOverridableMethod
-
provisionOverrideMissing
static <S,T> SimpleMessage<S,T> provisionOverrideMissing(SrcElement<S, T> element, SrcElement<S, T> conflict) -
unresolvedProvision
static <S,T> SimpleMessage<S,T> unresolvedProvision(SrcElement<S, T> element, SrcElement<S, T> conflict) -
incompatibleProvisionTypes
static <S,T> SimpleMessage<S,T> incompatibleProvisionTypes(SrcElement<S, T> element, SrcElement<S, T> provision, SrcElement<S, T> implementation, io.vavr.control.Option<SrcElement<S, T>> implementationVia) -
incompatibleProvisionThrows
static <S,T> SimpleMessage<S,T> incompatibleProvisionThrows(SrcElement<S, T> element, SrcElement<S, T> provision, SrcElement<S, T> exception) -
conflictingProvisions
static <S,T> SimpleMessage<S,T> conflictingProvisions(SrcElement<S, T> element, io.vavr.collection.Seq<SrcElement<S, T>> conflicts) -
mountedProvisionOverridesMethod
static <S,T> SimpleMessage<S,T> mountedProvisionOverridesMethod(SrcElement<S, T> element, SrcElement<S, T> method, SrcElement<S, T> mount) -
elementNotAccessible
static <S,T> SimpleMessage<S,T> elementNotAccessible(SrcElement<S, T> element, SrcElement<S, T> conflict) -
abstractMethodWillNotBeImplemented
static <S,T> SimpleMessage<S,T> abstractMethodWillNotBeImplemented(SrcElement<S, T> element, SrcElement<S, T> conflict) -
noParametersAllowed
-
mustReturnReference
-
mountMethodMustBeAbstract
-
mountMethodsAllowedInConfigurationsOnly
-
mountMethodMustReturnFeature
static <S,T> SimpleMessage<S,T> mountMethodMustReturnFeature(SrcElement<S, T> element, SrcElement<S, T> conflict) -
mountAttributeClassMustNotBeParametrized
static <S,T> SimpleMessage<S,T> mountAttributeClassMustNotBeParametrized(SrcElement<S, T> element, SrcElement<S, T> conflict) -
missingNoArgsConstructor
-
missingNoArgsConstructor
static <S,T> SimpleMessage<S,T> missingNoArgsConstructor(SrcElement<S, T> elem, SrcElement<S, T> type) -
illegalInnerClass
-
illegalInnerClass
-
extensionPointReturnRecommended
static <S,T> SimpleMessage<S,T> extensionPointReturnRecommended(SrcElement<S, T> element, SrcElement<S, T> conflict) -
returnValueIgnored
-
meldAnnotationOutsideFeature
-
typesafeConfigNotOnClasspath
-
configTypeNotSupported
-
unresolvedExtensionPoint
static <S,T> SimpleMessage<S,T> unresolvedExtensionPoint(SrcElement<S, T> epConsumer, SrcElement<S, T> epType) -
unresolvedExtensionPoint
static <S,T> SimpleMessage<S,T> unresolvedExtensionPoint(SrcElement<S, T> source, SrcElement<S, T> epConsumer, SrcElement<S, T> epType) -
conflictingExtensionPoints
static <S,T> SimpleMessage<S,T> conflictingExtensionPoints(SrcElement<S, T> element, io.vavr.collection.Seq<SrcElement<S, T>> conflicts) -
missingFeatureImportAnnotation
static <S,T> SimpleMessage<S,T> missingFeatureImportAnnotation(SrcElement<S, T> element, SrcElement<S, T> superType) -
featureInterfacesShouldDeclareProvisionsOnly
static <S,T> SimpleMessage<S,T> featureInterfacesShouldDeclareProvisionsOnly(SrcElement<S, T> methodElement, SrcElement<S, T> typeElement) -
defaultRenderMessage
static <S,T> String defaultRenderMessage(Message<S, T> msg, Function<? super S, ? extends CharSequence> elementRenderer)
-