Package org.opensolaris.opengrok.analysis.plain

Examples of org.opensolaris.opengrok.analysis.plain.PlainSymbolTokenizer


    protected TokenStreamComponents createComponents(String fieldName, Reader reader) {
        switch (fieldName) {
            case QueryBuilder.FULL:
                return new TokenStreamComponents(new PlainFullTokenizer(reader));
            case QueryBuilder.REFS:
                return new TokenStreamComponents(new PlainSymbolTokenizer(reader));
            case QueryBuilder.DEFS:
                return new TokenStreamComponents(new PlainSymbolTokenizer(reader));
            case QueryBuilder.PATH:
            case QueryBuilder.PROJECT:
                return new TokenStreamComponents(new PathTokenizer(reader));
            case QueryBuilder.HIST:
                return new HistoryAnalyzer().createComponents(fieldName, reader);
View Full Code Here


                return new TokenStreamComponents(new PathTokenizer(reader));
            case "hist":
                return new HistoryAnalyzer().createComponents(fieldName, reader);
            case "refs":
            case "defs":
                return new TokenStreamComponents(new PlainSymbolTokenizer(reader));
            default:
                OpenGrokLogger.getLogger().log(
                        Level.WARNING, "Have no analyzer for: {0}", fieldName);
                return null;
        }
View Full Code Here

TOP

Related Classes of org.opensolaris.opengrok.analysis.plain.PlainSymbolTokenizer

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.