Class CppLanguageModule

  • All Implemented Interfaces:
    Comparable<net.sourceforge.pmd.lang.Language>, net.sourceforge.pmd.cpd.CpdCapableLanguage, net.sourceforge.pmd.lang.Language

    public class CppLanguageModule
    extends net.sourceforge.pmd.lang.impl.CpdOnlyLanguageModuleBase
    Defines the Language module for C/C++
    • Nested Class Summary

      • Nested classes/interfaces inherited from class net.sourceforge.pmd.lang.LanguageModuleBase

        net.sourceforge.pmd.lang.LanguageModuleBase.LanguageMetadata
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static net.sourceforge.pmd.properties.PropertyDescriptor<String> CPD_SKIP_BLOCKS  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      net.sourceforge.pmd.cpd.CpdLexer createCpdLexer​(net.sourceforge.pmd.lang.LanguagePropertyBundle bundle)  
      static CppLanguageModule getInstance()  
      net.sourceforge.pmd.lang.LanguagePropertyBundle newPropertyBundle()  
      • Methods inherited from class net.sourceforge.pmd.lang.LanguageModuleBase

        compareTo, equals, getDefaultVersion, getDependencies, getExtensions, getId, getName, getShortName, getVersion, getVersionNamesAndAliases, getVersions, hashCode, toString
      • Methods inherited from interface net.sourceforge.pmd.lang.Language

        getDefaultVersion, getDependencies, getExtensions, getId, getLatestVersion, getName, getShortName, getVersion, getVersionNamesAndAliases, getVersions, hasExtension, hasVersion
    • Field Detail

      • CPD_SKIP_BLOCKS

        public static final net.sourceforge.pmd.properties.PropertyDescriptor<String> CPD_SKIP_BLOCKS
    • Constructor Detail

      • CppLanguageModule

        public CppLanguageModule()
        Creates a new instance of CppLanguageModule with the default extensions for c/c++ files.
    • Method Detail

      • newPropertyBundle

        public net.sourceforge.pmd.lang.LanguagePropertyBundle newPropertyBundle()
      • createCpdLexer

        public net.sourceforge.pmd.cpd.CpdLexer createCpdLexer​(net.sourceforge.pmd.lang.LanguagePropertyBundle bundle)
        Specified by:
        createCpdLexer in interface net.sourceforge.pmd.cpd.CpdCapableLanguage
        Specified by:
        createCpdLexer in class net.sourceforge.pmd.lang.impl.CpdOnlyLanguageModuleBase