T - the type of object this ChildReader createsP - the type of parent that the read objects are part ofInt2Constructor<T>, Int3Constructor<T>, Int4Constructor<T>, Int5Constructor<T>, Int6Constructor<T>, Int7Constructor<T>, ObjectReader<T>ContainerReader, LineReader@FunctionalInterface
public interface ChildReader<T,P>
Context, consuming as much input as necessary. A ChildReader
creates an object that may require to know the parent object within which it's being constructed. This is why the
read(Context, Object) method requires a non-null parent.| Modifier and Type | Method | Description |
|---|---|---|
T |
read(@NotNull Context context,
P parent) |
Reads an object from the given
Context, consuming as much input as necessary. |
@Nullable T read(@NotNull @NotNull Context context, @Nullable P parent) throws InputParsingException
Context, consuming as much input as necessary.context - the context to read lines fromparent - the parent object within which the object is being createdInputParsingException - if something went wrong when reading the input