Package org.immutables.generator
Class Output.AppendServiceFile
- java.lang.Object
-
- org.immutables.generator.Output.AppendServiceFile
-
- Enclosing class:
- Output
private static class Output.AppendServiceFile extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Templates.CharConsumerconsumer(package private) Output.ResourceKeykeyprivate static java.util.regex.PatternSERVICE_FILE_COMMENT_LINE
-
Constructor Summary
Constructors Constructor Description AppendServiceFile(Output.ResourceKey key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidcomplete()private voidcopyNewMetaservicesInto(java.util.Collection<java.lang.String> services)private voidreadExistingEntriesInto(java.util.Collection<java.lang.String> services)private voidremoveBlankLinesIn(java.lang.Iterable<java.lang.String> services)private voidwriteFile()private voidwriteLinesFrom(java.lang.Iterable<java.lang.String> services)
-
-
-
Field Detail
-
SERVICE_FILE_COMMENT_LINE
private static final java.util.regex.Pattern SERVICE_FILE_COMMENT_LINE
-
key
final Output.ResourceKey key
-
consumer
final Templates.CharConsumer consumer
-
-
Constructor Detail
-
AppendServiceFile
AppendServiceFile(Output.ResourceKey key)
-
-
Method Detail
-
complete
void complete()
-
writeFile
private void writeFile() throws java.io.IOException- Throws:
java.io.IOException
-
readExistingEntriesInto
private void readExistingEntriesInto(java.util.Collection<java.lang.String> services)
-
writeLinesFrom
private void writeLinesFrom(java.lang.Iterable<java.lang.String> services) throws java.io.IOException- Throws:
java.io.IOException
-
removeBlankLinesIn
private void removeBlankLinesIn(java.lang.Iterable<java.lang.String> services)
-
copyNewMetaservicesInto
private void copyNewMetaservicesInto(java.util.Collection<java.lang.String> services)
-
-