Class IndexedCodeWriter


  • public class IndexedCodeWriter
    extends com.sun.codemodel.CodeWriter
    Author:
    eric.wittmann@gmail.com
    • Constructor Detail

      • IndexedCodeWriter

        public IndexedCodeWriter()
        Constructor.
    • Method Detail

      • openBinary

        public OutputStream openBinary​(com.sun.codemodel.JPackage pkg,
                                       String fileName)
                                throws IOException
        Specified by:
        openBinary in class com.sun.codemodel.CodeWriter
        Throws:
        IOException
        See Also:
        CodeWriter.openBinary(com.sun.codemodel.JPackage, java.lang.String)
      • close

        public void close()
                   throws IOException
        Specified by:
        close in class com.sun.codemodel.CodeWriter
        Throws:
        IOException
        See Also:
        CodeWriter.close()
      • getBean

        public CodegenJavaBean getBean​(String className)
        Gets the bean for a given class name.
        Parameters:
        className -
      • set

        public void set​(String className,
                        ByteArrayOutputStream data)
        Updates the index with the given content.
        Parameters:
        className -
        data -
      • keys

        public Set<String> keys()
        Gets the keys.