All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.pmd.lang.coco.CocoLanguageModule Maven / Gradle / Ivy

There is a newer version: 7.5.0
Show newest version
/*
 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
 */

package net.sourceforge.pmd.lang.coco;

import net.sourceforge.pmd.cpd.CpdLexer;
import net.sourceforge.pmd.lang.LanguagePropertyBundle;
import net.sourceforge.pmd.lang.LanguageRegistry;
import net.sourceforge.pmd.lang.coco.cpd.CocoCpdLexer;
import net.sourceforge.pmd.lang.impl.CpdOnlyLanguageModuleBase;

/**
 * Language implementation for Coco.
 */
public class CocoLanguageModule extends CpdOnlyLanguageModuleBase {
    private static final String ID = "coco";

    public CocoLanguageModule() {
        super(LanguageMetadata.withId(ID).name("Coco").extensions("coco"));
    }

    public static CocoLanguageModule getInstance() {
        return (CocoLanguageModule) LanguageRegistry.CPD.getLanguageById(ID);
    }

    @Override
    public CpdLexer createCpdLexer(LanguagePropertyBundle bundle) {
        return new CocoCpdLexer();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy