Interface CBExpressionSourceType
- All Superinterfaces:
AutoCloseable, CBExpressionLineLogType, Closeable
- All Known Implementing Classes:
CBExpressionSource
A source of expressions.
The source provides access to previously encountered lines of text in order
to provide good diagnostic messages.
-
Method Summary
Methods inherited from interface CBExpressionLineLogType
contextualize, showLineFor
-
Method Details
-
source
URI source()- Returns:
- The URI of the source
-
parseExpressionOrEOF
Optional<com.io7m.jsx.SExpressionType> parseExpressionOrEOF() throws com.io7m.jsx.api.parser.JSXParserException, IOException- Returns:
- The next expression, or
Optional.empty()if EOF is reached - Throws:
com.io7m.jsx.api.parser.JSXParserException- On parse errorsIOException- On I/O errors
-