Package com.io7m.smfj.parser.api
Class SMFParseWarnings
- java.lang.Object
-
- com.io7m.smfj.parser.api.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.
-
-
-
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 messageexpected
- The expected inputreceived
- The received inputposition
- The current position- Returns:
- A parse warning
-
-