Package com.pogofish.jadt.sink

Examples of com.pogofish.jadt.sink.Sink


        final String version = new Version().getVersion();
        header.append("/*\nThis file was generated based on " + doc.srcInfo + " using jADT version " + version + " http://jamesiry.github.com/jADT/ . Please do not modify directly.\n\n");
        header.append("The source was parsed as: \n\n");
       
        for (DataType dataType : doc.dataTypes) {
            final Sink sink = factory.createSink(doc.pkg.name.isEmpty() ? dataType.name : doc.pkg.name + "." + dataType.name);
            logger.info("Generating " + sink.getInfo());
            try {
                dataTypeEmitter.emit(sink, dataType, header.toString());
            } finally {
                sink.close();
            }
        }       
    }
View Full Code Here


    @Override
    public void emit(SinkFactory factory, Doc doc) {
        if (testDoc != doc) {
            throw new RuntimeException("testDoc and doc argument were not the same");
        }
        final Sink sink = factory.createSink(className);
        try {
            sink.write(doc.srcInfo);
        } finally {
            sink.close();
        }
    }
View Full Code Here

TOP

Related Classes of com.pogofish.jadt.sink.Sink

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.