Class JvmLanguagePropertyBundle

All Implemented Interfaces:
PropertySource

public class JvmLanguagePropertyBundle extends LanguagePropertyBundle
Base properties class for JVM languages that use a classpath to resolve references. This contributes the "auxClasspath" property.
Author:
Clément Fournier
  • Field Details

  • Constructor Details

    • JvmLanguagePropertyBundle

      public JvmLanguagePropertyBundle(Language language)
  • Method Details

    • setProperty

      public <T> void setProperty(PropertyDescriptor<T> propertyDescriptor, T value)
      Description copied from interface: PropertySource
      Set the property value specified. This is also referred to as "overriding" the (default) value of a property.
      Specified by:
      setProperty in interface PropertySource
      Overrides:
      setProperty in class AbstractPropertySource
      Type Parameters:
      T - The underlying type of the property descriptor.
      Parameters:
      propertyDescriptor - The property descriptor.
      value - The value to set.
    • setClassLoader

      public void setClassLoader(ClassLoader classLoader)
      Set the classloader to use for analysis. This overrides the setting of a classpath as a string via setProperty(PropertyDescriptor, Object). If the parameter is null, the classloader returned by getAnalysisClassLoader() is constructed from the value of the auxClasspath property.
    • getAnalysisClassLoader

      public @NonNull ClassLoader getAnalysisClassLoader()
      Returns the classloader to use to resolve classes for this language.