Package net.sourceforge.pmd.cpd
Interface CpdCapableLanguage
-
- All Superinterfaces:
Comparable<Language>
,Language
- All Known Implementing Classes:
CpdOnlyLanguageModuleBase
,PlainTextLanguage
,SimpleLanguageModuleBase
public interface CpdCapableLanguage extends Language
A language that supportsCPD
.- Author:
- Clément Fournier
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default CpdLexer
createCpdLexer(LanguagePropertyBundle bundle)
Create a newCpdLexer
for this language, given a property bundle with configuration.-
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, newPropertyBundle
-
-
-
-
Method Detail
-
createCpdLexer
default CpdLexer createCpdLexer(LanguagePropertyBundle bundle)
Create a newCpdLexer
for this language, given a property bundle with configuration. The bundle was created by this instance usingLanguage.newPropertyBundle()
. It can be assumed that the bundle will never be mutated anymore, and this method takes ownership of it.- Parameters:
bundle
- A bundle of properties created by this instance.- Returns:
- A new language processor
-
-