|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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)
key - The key of the language. Must not be more than 20 chars.
public AbstractLanguage(String key,
String name)
key - the key that will be used to retrieve the language. Must not be more than 20 chars. This key is important as it will be used to teint rules repositories...name - the display name of the language in the interface| Method Detail |
|---|
public String getKey()
getKey in interface Languagepublic String getName()
getName in interface Languagepublic void setName(String name)
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||