Class SourceLanguage


  • public class SourceLanguage
    extends Object
    Part of PMD Ant task configuration. Setters of this class are interpreted by Ant as properties settable in the XML. This is therefore published API.

    This class is used to configure the language and version to use. It might look like this:

    
     <pmd>
       <sourceLanguage name="java" version="21"/>
     </pmd>
     
    See Also:
    PMDTask.addConfiguredSourceLanguage(SourceLanguage)
    • Constructor Detail

      • SourceLanguage

        public SourceLanguage()
    • Method Detail

      • getVersion

        public String getVersion()
      • setVersion

        public void setVersion​(String version)
      • getName

        public String getName()
        This actually corresponds to Language.getId().
      • setName

        public void setName​(String name)