Package net.sourceforge.pmd.lang.cpp
Class CppLanguageModule
- java.lang.Object
-
- net.sourceforge.pmd.lang.LanguageModuleBase
-
- net.sourceforge.pmd.lang.impl.CpdOnlyLanguageModuleBase
-
- net.sourceforge.pmd.lang.cpp.CppLanguageModule
-
- All Implemented Interfaces:
Comparable<Language>
,CpdCapableLanguage
,Language
public class CppLanguageModule extends CpdOnlyLanguageModuleBase
Defines the Language module for C/C++
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sourceforge.pmd.lang.LanguageModuleBase
LanguageModuleBase.LanguageMetadata
-
-
Field Summary
Fields Modifier and Type Field Description static PropertyDescriptor<String>
CPD_SKIP_BLOCKS
-
Constructor Summary
Constructors Constructor Description CppLanguageModule()
Creates a new instance ofCppLanguageModule
with the default extensions for c/c++ files.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CpdLexer
createCpdLexer(LanguagePropertyBundle bundle)
static CppLanguageModule
getInstance()
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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
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 PropertyDescriptor<String> CPD_SKIP_BLOCKS
-
-
Constructor Detail
-
CppLanguageModule
public CppLanguageModule()
Creates a new instance ofCppLanguageModule
with the default extensions for c/c++ files.
-
-
Method Detail
-
getInstance
public static CppLanguageModule getInstance()
-
newPropertyBundle
public LanguagePropertyBundle newPropertyBundle()
-
createCpdLexer
public CpdLexer createCpdLexer(LanguagePropertyBundle bundle)
- Specified by:
createCpdLexer
in interfaceCpdCapableLanguage
- Specified by:
createCpdLexer
in classCpdOnlyLanguageModuleBase
-
-