public class DocumentParseResult extends java.lang.Object implements java.lang.Iterable<DocumentParseResult.Line>
This class is used to report per-line success or failure of the parser.
Modifier and Type | Class and Description |
---|---|
static class |
DocumentParseResult.Line
The parse result of an individual line.
|
Constructor and Description |
---|
DocumentParseResult(int size) |
Modifier and Type | Method and Description |
---|---|
void |
failure(java.lang.Exception e) |
java.util.Iterator<DocumentParseResult.Line> |
iterator() |
void |
success(java.util.List<ModuleDescriptor> descriptors,
java.util.List<java.lang.Exception> errors) |
public void success(java.util.List<ModuleDescriptor> descriptors, java.util.List<java.lang.Exception> errors)
public void failure(java.lang.Exception e)
public java.util.Iterator<DocumentParseResult.Line> iterator()
iterator
in interface java.lang.Iterable<DocumentParseResult.Line>