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 ClassLoaderDeprecated.Since 7.27.0.protected ClassLoaderDeprecated.Since 7.27.0.voidsetClassLoader(ClassLoader classLoader) Deprecated.Since 7.27.0.<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
Deprecated.Since 7.27.0. UsesetProperty(JvmLanguagePropertyBundle.AUX_CLASSPATH, "file.jar")instead.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. -
getClassLoader
Deprecated.Since 7.27.0. Only used to support backwards compatible configuration of classloaders.Returns exactly the same classloader set viasetClassLoader(ClassLoader). UnlikegetAnalysisClassLoader(), no modification is performed.- Since:
- 7.27.0
- See Also:
-
getAnalysisClassLoader
Deprecated.Since 7.27.0. This is language specific and will be moved to the corresponding language. Future versions might not even use a real classloader to resolve class files. UsegetProperty(JvmLanguagePropertyBundle.AUX_CLASSPATH)instead.Returns the classloader to use to resolve classes for this language.
-