parsedTemplate() method which is the template to substitute them into. Once the values
of the fields have been assigned, the toText() method returns the result of substituting
them into the template.
The subclass may be a direct subclass of this class or a more distant descendant. Every field in the starting class and its ancestors up to this class will be included. Fields cannot be static unless they are also final. They cannot be private, though they can be package-private if the class is in the same package as this class. They cannot be primitive or null, so that there is a clear indication when a field has not been set.
| Modifier and Type | Field and Description |
|---|---|
| private final ImmutableList |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static Object | |
| private static ImmutableList | |
| private static boolean | |
| pack-priv abstract Template | |
| pack-priv static Template | |
| private static Reader | |
| private static Reader | |
| private static Reader | |
| public String | |
| pack-priv String | toText()
Returns the result of substituting the variables defined by the fields of this class (a
concrete subclass of TemplateVars) into the template returned by |
| private ImmutableMap |
| fields | back to summary |
|---|---|
| private final ImmutableList<Field> fields | |
| TemplateVars | back to summary |
|---|---|
| pack-priv TemplateVars() | |
| addFields | back to summary |
|---|---|
| private static void addFields(ImmutableList. | |
| fieldValue | back to summary |
|---|---|
| private static Object fieldValue(Field field, Object container) | |
| getFields | back to summary |
|---|---|
| private static ImmutableList | |
| isStaticFinal | back to summary |
|---|---|
| private static boolean isStaticFinal(Field field) | |
| parsedTemplate | back to summary |
|---|---|
| pack-priv abstract Template parsedTemplate() | |
| parsedTemplateForResource | back to summary |
|---|---|
| pack-priv static Template parsedTemplateForResource(String resourceName) | |
| readerFromFile | back to summary |
|---|---|
| private static Reader readerFromFile(URL resourceUrl) throws IOException, URISyntaxException | |
| readerFromJar | back to summary |
|---|---|
| private static Reader readerFromJar(URL resourceUrl) throws URISyntaxException, IOException | |
| readerFromUrl | back to summary |
|---|---|
| private static Reader readerFromUrl(String resourceName) throws IOException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| toText | back to summary |
|---|---|
| pack-priv String toText() Returns the result of substituting the variables defined by the fields of this class (a
concrete subclass of TemplateVars) into the template returned by | |
| toVars | back to summary |
|---|---|
| private ImmutableMap | |