Package net.sourceforge.pmd.lang
Class JvmLanguagePropertyBundle
java.lang.Object
net.sourceforge.pmd.properties.AbstractPropertySource
net.sourceforge.pmd.lang.LanguagePropertyBundle
net.sourceforge.pmd.lang.JvmLanguagePropertyBundle
- All Implemented Interfaces:
PropertySource
Base properties class for JVM languages that use a classpath to resolve
references. This contributes the "auxClasspath" property.
- Author:
- Clément Fournier
-
Field Summary
FieldsFields inherited from class net.sourceforge.pmd.lang.LanguagePropertyBundle
LANGUAGE_VERSION, SUPPRESS_MARKER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull ClassLoaderReturns the classloader to use to resolve classes for this language.voidsetClassLoader(ClassLoader classLoader) Set the classloader to use for analysis.<T> voidsetProperty(PropertyDescriptor<T> propertyDescriptor, T value) Set the property value specified.Methods inherited from class net.sourceforge.pmd.lang.LanguagePropertyBundle
getLanguage, getLanguageVersion, getName, getPropertySourceType, getSuppressMarker, setLanguageVersionMethods inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
definePropertyDescriptor, equals, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, hashCode, isPropertyOverriddenMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sourceforge.pmd.properties.PropertySource
dysfunctionReason
-
Field Details
-
AUX_CLASSPATH
-
-
Constructor Details
-
JvmLanguagePropertyBundle
-
-
Method Details
-
setProperty
Description copied from interface:PropertySourceSet the property value specified. This is also referred to as "overriding" the (default) value of a property.- Specified by:
setPropertyin interfacePropertySource- Overrides:
setPropertyin classAbstractPropertySource- Type Parameters:
T- The underlying type of the property descriptor.- Parameters:
propertyDescriptor- The property descriptor.value- The value to set.
-
setClassLoader
Set the classloader to use for analysis. This overrides the setting of a classpath as a string viasetProperty(PropertyDescriptor, Object). If the parameter is null, the classloader returned bygetAnalysisClassLoader()is constructed from the value of theauxClasspathproperty. -
getAnalysisClassLoader
Returns the classloader to use to resolve classes for this language.
-