Interface IContextSource.IOutputSink

  • All Superinterfaces:
    java.lang.AutoCloseable
    Enclosing interface:
    IContextSource

    public static interface IContextSource.IOutputSink
    extends java.lang.AutoCloseable
    A collector for output derived from this specific context entry.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void acceptClass​(java.lang.String qualifiedName, java.lang.String fileName, java.lang.String content, int[] mapping)
      Write a class to this entry
      void acceptDirectory​(java.lang.String directory)
      Create a directory in this output location.
      void acceptOther​(java.lang.String path)
      Accept other files, which should be copied directly through from the source.
      void begin()
      Begin this entry, performing any necessary setup work such as creating an archive
      void close()  
    • Method Detail

      • begin

        void begin()
        Begin this entry, performing any necessary setup work such as creating an archive
      • acceptClass

        void acceptClass​(java.lang.String qualifiedName,
                         java.lang.String fileName,
                         java.lang.String content,
                         int[] mapping)
        Write a class to this entry
        Parameters:
        qualifiedName - the qualified name of the class
        fileName - the file name of the class, relative to its source
        content - the class text content
        mapping - a flat array of pairs of (input line number, output line number), null when -bsm=0
      • acceptDirectory

        void acceptDirectory​(java.lang.String directory)
        Create a directory in this output location.
        Parameters:
        directory - the directory to create
      • acceptOther

        void acceptOther​(java.lang.String path)
        Accept other files, which should be copied directly through from the source.
        Parameters:
        path - the path
      • close

        void close()
            throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException