Package org.watermint.sourcecolon.org.opensolaris.opengrok.analysis

Examples of org.watermint.sourcecolon.org.opensolaris.opengrok.analysis.FileAnalyzerFactory


        ZipEntry entry;
        while ((entry = zis.getNextEntry()) != null) {
            String ename = entry.getName();
            String xref = null;
            doc.add(new Field("full", new StringReader(ename)));
            FileAnalyzerFactory fac = AnalyzerGuru.find(ename);
            if (fac instanceof JavaClassAnalyzerFactory) {
                JavaClassAnalyzer jca =
                        (JavaClassAnalyzer) fac.getAnalyzer();
                jca.analyze(doc, new BufferedInputStream(zis));
                xref = jca.getXref();
            }
            xrefs.put(ename, xref);
        }
View Full Code Here


        return files;
    }

    public FileAnalyzer.Genre getGenre() {
        FileAnalyzerFactory a = AnalyzerGuru.find(getResourceFile().getName());
        return AnalyzerGuru.getGenre(a);
    }
View Full Code Here

        try {
            try (BufferedInputStream bin = new BufferedInputStream(new FileInputStream(getResourceFile()))) {
                Definitions defs = null;

                defs = IndexDatabase.getDefinitions(resourceFile);
                FileAnalyzerFactory a = AnalyzerGuru.find(resourceFile.getName());
                AnalyzerGuru.writeXref(a, new InputStreamReader(bin), writer, defs, Project.getProject(resourceFile));

                writer.flush();
                return content.toString();
            }
View Full Code Here

TOP

Related Classes of org.watermint.sourcecolon.org.opensolaris.opengrok.analysis.FileAnalyzerFactory

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.