Class SMFParseWarnings


  • public final class SMFParseWarnings
    extends java.lang.Object
    Convenient functions for constructing parse warnings.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SMFParseWarning warningExpectedGot​(java.lang.String message, java.lang.String expected, java.lang.String received, com.io7m.jlexing.core.LexicalPosition<java.net.URI> position)
      Construct a parse warning that indicates the expected and actual input.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • warningExpectedGot

        public static SMFParseWarning warningExpectedGot​(java.lang.String message,
                                                         java.lang.String expected,
                                                         java.lang.String received,
                                                         com.io7m.jlexing.core.LexicalPosition<java.net.URI> position)
        Construct a parse warning that indicates the expected and actual input.
        Parameters:
        message - An warning message
        expected - The expected input
        received - The received input
        position - The current position
        Returns:
        A parse warning