Package net.sourceforge.pmd.lang
Class LanguagePropertyBundle
- java.lang.Object
-
- net.sourceforge.pmd.properties.AbstractPropertySource
-
- net.sourceforge.pmd.lang.LanguagePropertyBundle
-
- All Implemented Interfaces:
PropertySource
- Direct Known Subclasses:
JvmLanguagePropertyBundle
public class LanguagePropertyBundle extends AbstractPropertySource
A bundle of properties used by languages (seeLanguage.newPropertyBundle()
). This class declares language properties that are common to all languages. Subclasses may define more properties and provide convenient accessors to them.- Author:
- Clément Fournier
-
-
Field Summary
Fields Modifier and Type Field Description static String
LANGUAGE_VERSION
static PropertyDescriptor<String>
SUPPRESS_MARKER
-
Fields inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
propertyDescriptors, propertyValuesByDescriptor
-
-
Constructor Summary
Constructors Constructor Description LanguagePropertyBundle(@NonNull Language language)
Create a new bundle for the given language.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Language
getLanguage()
LanguageVersion
getLanguageVersion()
String
getName()
Gets the name of this property source.protected String
getPropertySourceType()
String
getSuppressMarker()
void
setLanguageVersion(String string)
-
Methods inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
copyPropertyDescriptors, copyPropertyValues, definePropertyDescriptor, dysfunctionReason, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, isPropertyOverridden, setProperty, setProperty
-
-
-
-
Field Detail
-
SUPPRESS_MARKER
public static final PropertyDescriptor<String> SUPPRESS_MARKER
-
LANGUAGE_VERSION
public static final String LANGUAGE_VERSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LanguagePropertyBundle
public LanguagePropertyBundle(@NonNull Language language)
Create a new bundle for the given language.
-
-
Method Detail
-
setLanguageVersion
public void setLanguageVersion(String string)
-
getPropertySourceType
protected String getPropertySourceType()
- Specified by:
getPropertySourceType
in classAbstractPropertySource
-
getName
public String getName()
Description copied from interface:PropertySource
Gets the name of this property source. This is e.g. the name of the rule or renderer.- Returns:
- The name
-
getLanguage
public Language getLanguage()
-
getLanguageVersion
public LanguageVersion getLanguageVersion()
-
getSuppressMarker
public String getSuppressMarker()
-
-