protected LanguageModuleBase(LanguageModuleBase.LanguageMetadata metadata)
Construct a module instance using the given metadata. The metadata must be properly constructed.
IllegalStateException
- If the metadata is invalid (eg missing extensions or name or no versions)
public List<LanguageVersion> getVersions()Description copied from interface:
Language
Returns an ordered list of supported versions for this language.
getVersions
in interface Language
public @NonNull LanguageVersion getDefaultVersion()Description copied from interface:
Language
Returns the default language version for this language. This is an arbitrary choice made by the PMD product, and can change between PMD releases. Every language has a default version.
getDefaultVersion
in interface Language
public LanguageVersion getVersion(String version)Description copied from interface:
Language
Returns the language version with the given
version string. Returns null if no such version exists.
getVersion
in interface Language
version
- A language version string.
null
if the version string is not recognized.
public Set<String> getVersionNamesAndAliases()Description copied from interface:
Language
Returns a complete set of supported version names for this language including all aliases.
getVersionNamesAndAliases
in interface Language
public Set<String> getDependencies()Description copied from interface:
Language
Returns a set of the IDs of languages that this language instance depends on. Whenever this language is loaded into a
LanguageProcessorRegistry
, those dependencies need to be loaded as well.
getDependencies
in interface Language
public String getName()Description copied from interface:
Language
Returns the full name of this Language. This is generally the name of this language without the use of acronyms, but possibly some capital letters, eg "Java"
. It's suitable for displaying in a GUI.
public String getShortName()Description copied from interface:
Language
Returns the short name of this language. This is the commonly used short form of this language's name, perhaps an acronym, but possibly with special characters.
getShortName
in interface Language
public String getId()Description copied from interface:
Language
Returns the ID of this language. This is a short, alphanumeric, lowercase name, eg "java"
. It's used to identify the language in the ruleset XML, and is also in the package name of the language module.
public @NonNull List<String> getExtensions()Description copied from interface:
Language
Returns the list of file extensions associated with this language. This list is unmodifiable. Extensions do not have a '.' prefix.
getExtensions
in interface Language
public int compareTo(Language o)
compareTo
in interface Comparable<Language>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4