Package net.sourceforge.pmd.lang
Class LanguageVersion
- java.lang.Object
-
- net.sourceforge.pmd.lang.LanguageVersion
-
- All Implemented Interfaces:
Comparable<LanguageVersion>
public class LanguageVersion extends Object implements Comparable<LanguageVersion>
Created by christoferdutz on 21.09.14.
-
-
Constructor Summary
Constructors Constructor Description LanguageVersion(Language language, String version, LanguageVersionHandler languageVersionHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(LanguageVersion o)
Language
getLanguage()
LanguageVersionHandler
getLanguageVersionHandler()
String
getName()
Get the name of this LanguageVersion.String
getShortName()
Get the short name of this LanguageVersion.String
getTerseName()
Get the terse name of this LanguageVersion.String
getVersion()
String
toString()
-
-
-
Constructor Detail
-
LanguageVersion
public LanguageVersion(Language language, String version, LanguageVersionHandler languageVersionHandler)
-
-
Method Detail
-
getLanguage
public Language getLanguage()
-
getVersion
public String getVersion()
-
getLanguageVersionHandler
public LanguageVersionHandler getLanguageVersionHandler()
-
getName
public String getName()
Get the name of this LanguageVersion. This is Language name appended with the LanguageVersion version if not an empty String.- Returns:
- The name of this LanguageVersion.
-
getShortName
public String getShortName()
Get the short name of this LanguageVersion. This is Language short name appended with the LanguageVersion version if not an empty String.- Returns:
- The short name of this LanguageVersion.
-
getTerseName
public String getTerseName()
Get the terse name of this LanguageVersion. This is Language terse name appended with the LanguageVersion version if not an empty String.- Returns:
- The terse name of this LanguageVersion.
-
compareTo
public int compareTo(LanguageVersion o)
- Specified by:
compareTo
in interfaceComparable<LanguageVersion>
-
-