Package org.cadixdev.lorenz.io
Class TextMappingsReader.Processor
- java.lang.Object
-
- org.cadixdev.lorenz.io.TextMappingsReader.Processor
-
- All Implemented Interfaces:
java.util.function.Consumer<java.lang.String>
- Direct Known Subclasses:
CSrgReader.Processor,SrgReader.Processor,TSrgReader.Processor,XSrgReader.Processor
- Enclosing class:
- TextMappingsReader
public abstract static class TextMappingsReader.Processor extends java.lang.Object implements java.util.function.Consumer<java.lang.String>A parser for a given mappings format.- Since:
- 0.4.0
- See Also:
SrgReader.Processor,CSrgReader.Processor,TSrgReader.Processor
-
-
Field Summary
Fields Modifier and Type Field Description protected MappingSetmappingsprotected static java.util.regex.PatternSPACEA regular expression used to splitStrings at spaces.
-
Constructor Summary
Constructors Modifier Constructor Description protectedProcessor(MappingSet mappings)Creates a mappings parser, to process the lines in a mappings file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MappingSetgetMappings()Gets the mapping set being read into by the processor.
-
-
-
Field Detail
-
SPACE
protected static final java.util.regex.Pattern SPACE
A regular expression used to splitStrings at spaces.
-
mappings
protected final MappingSet mappings
-
-
Constructor Detail
-
Processor
protected Processor(MappingSet mappings)
Creates a mappings parser, to process the lines in a mappings file.- Parameters:
mappings- The mappings set
-
-
Method Detail
-
getMappings
public MappingSet getMappings()
Gets the mapping set being read into by the processor.- Returns:
- The mappings
- Since:
- 0.5.7
-
-