net.sourceforge.pmd

Class SourceTypeToRuleLanguageMapper

public class SourceTypeToRuleLanguageMapper extends Object

Mapping of SourceType to RuleLanguage.

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

Method Summary
static LanguagegetMappedLanguage(SourceType sourceType)
Get the RuleLanguage that corresponds to the given SourceType.

Method Detail

getMappedLanguage

public static Language getMappedLanguage(SourceType sourceType)
Get the RuleLanguage that corresponds to the given SourceType.

Parameters: sourceType the SourceType

Returns: a RuleLanguage