|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.resources.AbstractLanguage
public abstract class AbstractLanguage
Inherit this class to define a new language like PLSQL, PHP or C#
Constructor Summary | |
---|---|
AbstractLanguage(String key)
Better to use AbstractLanguage(key, name). |
|
AbstractLanguage(String key,
String name)
Should be the constructor used to build an AbstractLanguage. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
String |
getKey()
For example "java". |
String |
getName()
For example "Java" |
int |
hashCode()
|
void |
setName(String name)
Sets the language name |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.sonar.api.resources.Language |
---|
getFileSuffixes |
Constructor Detail |
---|
public AbstractLanguage(String key)
public AbstractLanguage(String key, String name)
key
- the key that will be used to retrieve the language. This key is important as it will be used to teint rules repositories...name
- the display name of the language in the interfaceMethod Detail |
---|
public String getKey()
getKey
in interface Language
public String getName()
getName
in interface Language
public void setName(String name)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |