Uses of Class
net.sourceforge.pmd.lang.LanguageVersion
-
Packages that use LanguageVersion Package Description net.sourceforge.pmd This is the PMD programming mistake detector.net.sourceforge.pmd.lang net.sourceforge.pmd.lang.rule net.sourceforge.pmd.util.viewer.model -
-
Uses of LanguageVersion in net.sourceforge.pmd
Methods in net.sourceforge.pmd that return LanguageVersion Modifier and Type Method Description LanguageVersion
RuleContext. getLanguageVersion()
Get the LanguageVersion associated with the current source file.LanguageVersion
PMDConfiguration. getLanguageVersionOfFile(String fileName)
Get the LanguageVersion of the source file with given name.LanguageVersion
Rule. getMaximumLanguageVersion()
Get the maximum LanguageVersion to which this Rule applies.LanguageVersion
Rule. getMinimumLanguageVersion()
Get the minimum LanguageVersion to which this Rule applies.Methods in net.sourceforge.pmd with parameters of type LanguageVersion Modifier and Type Method Description static boolean
RuleSet. applies(Rule rule, LanguageVersion languageVersion)
Does the given Rule apply to the given LanguageVersion? If so, the Language must be the same and be between the minimum and maximums versions on the Rule.static Parser
PMD. parserFor(LanguageVersion languageVersion, PMDConfiguration configuration)
Helper method to get a configured parser for the requested language.void
PMDConfiguration. setDefaultLanguageVersion(LanguageVersion languageVersion)
Set the given LanguageVersion as the current default for it's Language.void
RuleContext. setLanguageVersion(LanguageVersion languageVersion)
Set the LanguageVersion associated with the current source file.void
Rule. setMaximumLanguageVersion(LanguageVersion maximumLanguageVersion)
Set the maximum LanguageVersion to which this Rule applies.void
Rule. setMinimumLanguageVersion(LanguageVersion minimumLanguageVersion)
Set the minimum LanguageVersion to which this Rule applies.Method parameters in net.sourceforge.pmd with type arguments of type LanguageVersion Modifier and Type Method Description void
PMDConfiguration. setDefaultLanguageVersions(List<LanguageVersion> languageVersions)
Set the given LanguageVersions as the current default for their Languages. -
Uses of LanguageVersion in net.sourceforge.pmd.lang
Fields in net.sourceforge.pmd.lang declared as LanguageVersion Modifier and Type Field Description protected LanguageVersion
BaseLanguageModule. defaultVersion
Fields in net.sourceforge.pmd.lang with type parameters of type LanguageVersion Modifier and Type Field Description protected Map<String,LanguageVersion>
BaseLanguageModule. versions
Methods in net.sourceforge.pmd.lang that return LanguageVersion Modifier and Type Method Description static LanguageVersion
LanguageRegistry. findLanguageVersionByTerseName(String terseNameAndVersion)
Deprecated.This is not useful, will be removed with 7.0.0LanguageVersion
LanguageVersionDiscoverer. getDefaultLanguageVersion(Language language)
Get the current default LanguageVersion for the given Language.LanguageVersion
LanguageVersionDiscoverer. getDefaultLanguageVersionForFile(File sourceFile)
Get the default LanguageVersion for the first Language of a given source file.LanguageVersion
LanguageVersionDiscoverer. getDefaultLanguageVersionForFile(String fileName)
Get the LanguageVersion for the first Language of a source file with the given name.LanguageVersion
BaseLanguageModule. getDefaultVersion()
LanguageVersion
Language. getDefaultVersion()
Get the current PMD defined default LanguageVersion for this Language.LanguageVersion
BaseLanguageModule. getVersion(String versionName)
LanguageVersion
Language. getVersion(String version)
Get the LanguageVersion for the version string from this Language.LanguageVersion
LanguageVersionDiscoverer. setDefaultLanguageVersion(LanguageVersion languageVersion)
Set the given LanguageVersion as the current default for it's Language.Methods in net.sourceforge.pmd.lang that return types with arguments of type LanguageVersion Modifier and Type Method Description static List<LanguageVersion>
LanguageRegistry. findAllVersions()
Deprecated.This is not useful, will be removed with 7.0.0List<LanguageVersion>
BaseLanguageModule. getVersions()
List<LanguageVersion>
Language. getVersions()
Gets the list of supported LanguageVersion for this Language.Methods in net.sourceforge.pmd.lang with parameters of type LanguageVersion Modifier and Type Method Description int
LanguageVersion. compareTo(LanguageVersion o)
LanguageVersion
LanguageVersionDiscoverer. setDefaultLanguageVersion(LanguageVersion languageVersion)
Set the given LanguageVersion as the current default for it's Language.Method parameters in net.sourceforge.pmd.lang with type arguments of type LanguageVersion Modifier and Type Method Description static String
LanguageRegistry. commaSeparatedTerseNamesForLanguageVersion(List<LanguageVersion> languageVersions)
Deprecated.This is too specific, will be removed with 7.0.0 -
Uses of LanguageVersion in net.sourceforge.pmd.lang.rule
Methods in net.sourceforge.pmd.lang.rule that return LanguageVersion Modifier and Type Method Description LanguageVersion
AbstractDelegateRule. getMaximumLanguageVersion()
Deprecated.LanguageVersion
AbstractRule. getMaximumLanguageVersion()
LanguageVersion
AbstractDelegateRule. getMinimumLanguageVersion()
Deprecated.LanguageVersion
AbstractRule. getMinimumLanguageVersion()
LanguageVersion
RuleReference. getOverriddenMaximumLanguageVersion()
LanguageVersion
RuleReference. getOverriddenMinimumLanguageVersion()
Methods in net.sourceforge.pmd.lang.rule with parameters of type LanguageVersion Modifier and Type Method Description void
AbstractDelegateRule. setMaximumLanguageVersion(LanguageVersion maximumlanguageVersion)
Deprecated.void
AbstractRule. setMaximumLanguageVersion(LanguageVersion maximumLanguageVersion)
void
RuleReference. setMaximumLanguageVersion(LanguageVersion maximumLanguageVersion)
void
AbstractDelegateRule. setMinimumLanguageVersion(LanguageVersion minimumlanguageVersion)
Deprecated.void
AbstractRule. setMinimumLanguageVersion(LanguageVersion minimumLanguageVersion)
void
RuleReference. setMinimumLanguageVersion(LanguageVersion minimumLanguageVersion)
-
Uses of LanguageVersion in net.sourceforge.pmd.util.viewer.model
Methods in net.sourceforge.pmd.util.viewer.model with parameters of type LanguageVersion Modifier and Type Method Description void
ViewerModel. commitSource(String source, LanguageVersion languageVersion)
Deprecated.Commits source code to the model.
-