Package net.sourceforge.pmd.lang
Class LanguageVersion
- java.lang.Object
-
- net.sourceforge.pmd.lang.LanguageVersion
-
- All Implemented Interfaces:
java.lang.Comparable<LanguageVersion>
public class LanguageVersion extends java.lang.Object implements java.lang.Comparable<LanguageVersion>
Created by christoferdutz on 21.09.14.
-
-
Constructor Summary
Constructors Constructor Description LanguageVersion(Language language, java.lang.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()
java.lang.String
getName()
Get the name of this LanguageVersion.java.lang.String
getShortName()
Get the short name of this LanguageVersion.java.lang.String
getTerseName()
Get the terse name of this LanguageVersion.java.lang.String
getVersion()
java.lang.String
toString()
-
-
-
Constructor Detail
-
LanguageVersion
public LanguageVersion(Language language, java.lang.String version, LanguageVersionHandler languageVersionHandler)
-
-
Method Detail
-
getLanguage
public Language getLanguage()
-
getVersion
public java.lang.String getVersion()
-
getLanguageVersionHandler
public LanguageVersionHandler getLanguageVersionHandler()
-
getName
public java.lang.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 java.lang.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 java.lang.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 interfacejava.lang.Comparable<LanguageVersion>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-