net.sourceforge.pmd

Class Language

public final class Language extends Object

Enumeration of languages for which a rule can be written.

This has no 1-on-1 mapping to the SourceType enumeration, because rules will often apply to all versions of a programming language, and SourceType is version-specific.

Author: pieter_van_raemdonck - Application Engineers NV/SA - www.ae.be

Field Summary
static LanguageJAVA
static LanguageJSP
Method Summary
booleanequals(Object obj)
static LanguagegetByName(String name)
Get the RuleLanguage that corresponds to the given name.
StringgetName()
inthashCode()
StringtoString()

Field Detail

JAVA

public static final Language JAVA

JSP

public static final Language JSP

Method Detail

equals

public boolean equals(Object obj)

getByName

public static Language getByName(String name)
Get the RuleLanguage that corresponds to the given name.

Parameters: name the common name of the rule language; this must correspond to one of the name constants.

Returns: the corresponding RuleLanuage; or null if the name is not recognized

getName

public String getName()

Returns: Returns the name.

hashCode

public int hashCode()

toString

public String toString()