Package org.cadixdev.lorenz.io.srg.xsrg
Class XSrgWriter
- java.lang.Object
-
- org.cadixdev.lorenz.io.MappingsWriter
-
- org.cadixdev.lorenz.io.TextMappingsWriter
-
- org.cadixdev.lorenz.io.srg.xsrg.XSrgWriter
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class XSrgWriter extends TextMappingsWriter
An implementation ofMappingsWriterfor the XSRG format.- Since:
- 0.5.3
-
-
Field Summary
-
Fields inherited from class org.cadixdev.lorenz.io.TextMappingsWriter
writer
-
Fields inherited from class org.cadixdev.lorenz.io.MappingsWriter
ALPHABETISE_FIELDS, ALPHABETISE_MAPPINGS, ALPHABETISE_METHODS, config
-
-
Constructor Summary
Constructors Constructor Description XSrgWriter(java.io.Writer writer)Creates a new XSRG mappings writer, from the givenWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(MappingSet mappings)Writes the given mappings to the previously given output.protected voidwriteClassMapping(ClassMapping<?,?> mapping)Writes the givenClassMapping, alongside its member mappings.protected voidwriteFieldMapping(FieldMapping mapping)Writes the givenFieldMapping.protected voidwriteMethodMapping(MethodMapping mapping)Writes the givenMethodMapping.-
Methods inherited from class org.cadixdev.lorenz.io.TextMappingsWriter
close
-
Methods inherited from class org.cadixdev.lorenz.io.MappingsWriter
getConfig, setConfig
-
-
-
-
Method Detail
-
write
public void write(MappingSet mappings)
Description copied from class:MappingsWriterWrites the given mappings to the previously given output.- Specified by:
writein classMappingsWriter- Parameters:
mappings- The mapping set
-
writeClassMapping
protected void writeClassMapping(ClassMapping<?,?> mapping)
Writes the givenClassMapping, alongside its member mappings.- Parameters:
mapping- The class mapping
-
writeFieldMapping
protected void writeFieldMapping(FieldMapping mapping)
Writes the givenFieldMapping.- Parameters:
mapping- The field mapping
-
writeMethodMapping
protected void writeMethodMapping(MethodMapping mapping)
Writes the givenMethodMapping.- Parameters:
mapping- The method mapping
-
-