public class TSrgWriter extends TextMappingsWriter
MappingsWriter
for the TSRG format.writer
ALPHABETISE_FIELDS, ALPHABETISE_MAPPINGS, ALPHABETISE_METHODS
Constructor and Description |
---|
TSrgWriter(Writer writer)
Creates a new TSRG mappings writer, from the given
Writer . |
Modifier and Type | Method and Description |
---|---|
void |
write(MappingSet mappings)
Writes the given mappings to the previously given output.
|
protected void |
writeClassMapping(ClassMapping<?,?> mapping)
Writes the given
ClassMapping , alongside its member mappings. |
protected void |
writeFieldMapping(FieldMapping mapping)
Writes the given
FieldMapping . |
protected void |
writeMethodMapping(MethodMapping mapping)
Writes the given
MethodMapping . |
close
public void write(MappingSet mappings)
MappingsWriter
write
in class MappingsWriter
mappings
- The mapping setprotected void writeClassMapping(ClassMapping<?,?> mapping)
ClassMapping
, alongside its member mappings.mapping
- The class mappingprotected void writeFieldMapping(FieldMapping mapping)
FieldMapping
.mapping
- The field mappingprotected void writeMethodMapping(MethodMapping mapping)
MethodMapping
.mapping
- The method mapping