Package net.sourceforge.pmd.lang
Class PlainTextLanguage
- java.lang.Object
-
- net.sourceforge.pmd.lang.BaseLanguageModule
-
- net.sourceforge.pmd.lang.PlainTextLanguage
-
- All Implemented Interfaces:
Comparable<Language>
,Language
@Experimental public final class PlainTextLanguage extends BaseLanguageModule
A dummy language implementation whose parser produces a single node. This is provided for cases where a non-null language is required, but the parser is not useful. This is useful eg to mock rules when no other language is on the classpath. This language is not exposed byLanguageRegistry
and can only be used explicitly withgetInstance()
.- Since:
- 6.48.0
- Author:
- Clément Fournier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PlainTextLanguage.PlainTextFile
The only node produced by the parser ofPlainTextLanguage
.
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.lang.BaseLanguageModule
defaultVersion, extensions, name, ruleChainVisitorClass, shortName, terseName, versions
-
Fields inherited from interface net.sourceforge.pmd.lang.Language
LANGUAGE_MODULES_CLASS_NAMES_PROPERTY
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Language
getInstance()
Returns the singleton instance of this language.-
Methods inherited from class net.sourceforge.pmd.lang.BaseLanguageModule
addDefaultVersion, addVersion, addVersion, compareTo, equals, getDefaultVersion, getExtensions, getName, getRuleChainVisitorClass, getShortName, getTerseName, getVersion, getVersions, hasExtension, hashCode, hasVersion, toString
-
-
-
-
Method Detail
-
getInstance
public static Language getInstance()
Returns the singleton instance of this language.
-
-