public interface Language extends Comparable<Language>
The following are key components of a Language in PMD:
LanguageVersion,
LanguageVersionDiscoverer| Modifier and Type | Field and Description |
|---|---|
static String |
LANGUAGE_MODULES_CLASS_NAMES_PROPERTY |
| Modifier and Type | Method and Description |
|---|---|
LanguageVersion |
getDefaultVersion()
Get the current PMD defined default LanguageVersion for this Language.
|
List<String> |
getExtensions()
Get the list of file extensions associated with this Language.
|
String |
getName()
Get the full name of this Language.
|
Class<?> |
getRuleChainVisitorClass()
Get the RuleChainVisitor implementation class used when visiting the AST
structure for this Rules for this Language.
|
String |
getShortName()
Get the short name of this Language.
|
String |
getTerseName()
Get the terse name of this Language.
|
LanguageVersion |
getVersion(String version)
Get the LanguageVersion for the version string from this Language.
|
List<LanguageVersion> |
getVersions()
Gets the list of supported LanguageVersion for this Language.
|
boolean |
hasExtension(String extension)
Returns whether the given Language handles the given file extension.
|
boolean |
hasVersion(String version) |
compareTostatic final String LANGUAGE_MODULES_CLASS_NAMES_PROPERTY
String getName()
String getShortName()
String getTerseName()
List<String> getExtensions()
boolean hasExtension(String extension)
extension - A file extension.true if this Language handles this extension, false otherwise.Class<?> getRuleChainVisitorClass()
RuleChainVisitorList<LanguageVersion> getVersions()
boolean hasVersion(String version)
LanguageVersion getVersion(String version)
version - The language version string.null if the
version string is not recognized.LanguageVersion getDefaultVersion()
Copyright © 2002-2016 InfoEther. All Rights Reserved.