Class DirectiveMismatchText
java.lang.Object
org.ek9lang.compiler.directives.DirectiveMismatchText
- All Implemented Interfaces:
BiFunction<CompilableSource, ErrorListener.ErrorDetails, String>
public final class DirectiveMismatchText
extends Object
implements BiFunction<CompilableSource, ErrorListener.ErrorDetails, String>
THE one-line text of a directive mismatch (Steve, 2026-10-11, lane lang-syntax): which directive, its line, and
what the compiler actually found -
line 6: @Error: FULL_RESOLUTION: NOT_RESOLVED - the compiler found no
error on line 7 [E50230]. The directives (@Error, @Resolved, @Complexity, ...) concern
compiler development, so the text is concise: no rich explanation, no source box. The CLI prints one per mismatch
where it once printed only "Compilation failed".
Stateless: hold one.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(CompilableSource source, ErrorListener.ErrorDetails mismatch) One mismatch as one line.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiFunction
andThen
-
Constructor Details
-
DirectiveMismatchText
public DirectiveMismatchText()
-
-
Method Details
-
apply
One mismatch as one line.- Specified by:
applyin interfaceBiFunction<CompilableSource, ErrorListener.ErrorDetails, String>
-