P - the type of parent that this FieldsAndVarsReader can updateSectionReader<P>public class FieldsAndVarsReader<P> extends java.lang.Object implements SectionReader<P>
SectionReader that reads the values as fields of the parent object, and/or context variables.| Constructor | Description |
|---|---|
FieldsAndVarsReader(java.lang.String... fieldAndVarNames) |
Creates a new
FieldsAndVarsReader with the given field/variable names. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
readAndSet(@NotNull Context context,
P object) |
Reads as much input as necessary to update the given object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsettingArray, settingChild, settingCollection, settingDouble, settingInt, settingList, settingObject, settingStringpublic FieldsAndVarsReader(java.lang.String... fieldAndVarNames)
FieldsAndVarsReader with the given field/variable names.
The field/variable names are given as strings that can each be one of:
Note that "" describe neither a field nor a variable, and thus the corresponding entry in the line will be ignored during parsing. Null descriptions and descriptions ending in '@' are forbidden.
fieldAndVarNames - an array of field/variable names, as described abovepublic void readAndSet(@NotNull
@NotNull Context context,
@Nullable
P object)
throws InputParsingException
SectionReaderreadAndSet in interface SectionReader<P>context - the context to read fromobject - the object to updateInputParsingException - if something went wrong while reading the input