Package org.sonar.objectivec

Examples of org.sonar.objectivec.ObjectiveCConfiguration


    private ObjectiveCLexer() {
    }

    public static Lexer create() {
        return create(new ObjectiveCConfiguration());
    }
View Full Code Here


    public ObjectiveCTokenizer(Charset charset) {
        this.charset = charset;
    }

    public void tokenize(SourceCode source, Tokens cpdTokens) throws IOException {
        Lexer lexer = ObjectiveCLexer.create(new ObjectiveCConfiguration(charset));
        String fileName = source.getFileName();
        List<Token> tokens = lexer.lex(new File(fileName));
        for (Token token : tokens) {
            TokenEntry cpdToken = new TokenEntry(getTokenImage(token), fileName, token.getLine());
            cpdTokens.add(cpdToken);
View Full Code Here

        Collection<SourceCode> squidSourceFiles = scanner.getIndex().search(new QueryByType(SourceFile.class));
        save(squidSourceFiles);
    }

    private ObjectiveCConfiguration createConfiguration(Project project) {
        return new ObjectiveCConfiguration(project.getFileSystem().getSourceCharset());
    }
View Full Code Here

    private ObjectiveCParser() {
    }

    public static Parser<ObjectiveCGrammar> create(ParsingEventListener... parsingEventListeners) {
        return create(new ObjectiveCConfiguration(), parsingEventListeners);
    }
View Full Code Here

TOP

Related Classes of org.sonar.objectivec.ObjectiveCConfiguration

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.