Class CSrgWriter

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class CSrgWriter
    extends TextMappingsWriter
    An implementation of MappingsWriter for the CSRG format.
    Since:
    0.4.0
    • Constructor Detail

      • CSrgWriter

        public CSrgWriter​(java.io.Writer writer)
        Creates a new CSRG mappings writer, from the given Writer.
        Parameters:
        writer - The writer
    • Method Detail

      • write

        public void write​(MappingSet mappings)
        Description copied from class: MappingsWriter
        Writes the given mappings to the previously given output.
        Specified by:
        write in class MappingsWriter
        Parameters:
        mappings - The mapping set
      • writeClassMapping

        protected void writeClassMapping​(ClassMapping<?,​?> mapping)
        Writes the given ClassMapping, alongside its member mappings.
        Parameters:
        mapping - The class mapping
      • writeFieldMapping

        protected void writeFieldMapping​(FieldMapping mapping)
        Writes the given FieldMapping.
        Parameters:
        mapping - The field mapping
      • writeMethodMapping

        protected void writeMethodMapping​(MethodMapping mapping)
        Writes the given MethodMapping.
        Parameters:
        mapping - The method mapping