Uses of Interface
net.sourceforge.pmd.lang.Language
-
Packages that use Language Package Description net.sourceforge.pmd This is the PMD programming mistake detector.net.sourceforge.pmd.cpd Token-based copy-paste detection.net.sourceforge.pmd.lang net.sourceforge.pmd.lang.document Contains types to model text files and handle operations on text.net.sourceforge.pmd.lang.impl net.sourceforge.pmd.lang.rule net.sourceforge.pmd.lang.rule.xpath.impl net.sourceforge.pmd.util.treeexport -
-
Uses of Language in net.sourceforge.pmd
Methods in net.sourceforge.pmd with parameters of type Language Modifier and Type Method Description protected void
AbstractConfiguration. checkLanguageIsAcceptable(Language lang)
Check that it is correct to use the given language with this configuration.protected void
PMDConfiguration. checkLanguageIsAcceptable(Language lang)
@NonNull LanguagePropertyBundle
AbstractConfiguration. getLanguageProperties(Language language)
Returns a mutable bundle of language properties that are associated to the given language (always the same for a given language).LanguagePropertyBundle
PmdAnalysis. getLanguageProperties(Language language)
Returns a mutable bundle of language properties that are associated to the given language (always the same for a given language).void
AbstractConfiguration. setOnlyRecognizeLanguage(Language lang)
Make it so that the only extensions that are considered are those of the given language. -
Uses of Language in net.sourceforge.pmd.cpd
Subinterfaces of Language in net.sourceforge.pmd.cpd Modifier and Type Interface Description interface
CpdCapableLanguage
A language that supportsCPD
.Methods in net.sourceforge.pmd.cpd with parameters of type Language Modifier and Type Method Description protected void
CPDConfiguration. checkLanguageIsAcceptable(Language lang)
-
Uses of Language in net.sourceforge.pmd.lang
Subinterfaces of Language in net.sourceforge.pmd.lang Modifier and Type Interface Description interface
PmdCapableLanguage
A language that supportsPMD
.Classes in net.sourceforge.pmd.lang that implement Language Modifier and Type Class Description class
LanguageModuleBase
Base class for language modules.class
PlainTextLanguage
A dummy language implementation whose parser produces a single node.Methods in net.sourceforge.pmd.lang that return Language Modifier and Type Method Description Language
LanguagePropertyBundle. getLanguage()
Language
LanguageVersion. getLanguage()
Returns the language that owns this version.@Nullable Language
LanguageRegistry. getLanguageByFullName(String languageName)
Returns a language from its full name (eg"Java"
).@Nullable Language
LanguageRegistry. getLanguageById(@Nullable String langId)
Returns a language from its ID (eg"java"
).Methods in net.sourceforge.pmd.lang that return types with arguments of type Language Modifier and Type Method Description static Map<Language,LanguagePropertyBundle>
LanguageProcessorRegistry. derivePropertiesFromStrings(Map<Language,Properties> stringProperties, PmdReporter reporter)
Set<Language>
LanguageRegistry. getLanguages()
Returns a set of all the known languages.List<Language>
LanguageVersionDiscoverer. getLanguagesForFile(String fileName)
Get the Languages of a given source file.@NonNull Iterator<Language>
LanguageRegistry. iterator()
Methods in net.sourceforge.pmd.lang with parameters of type Language Modifier and Type Method Description LanguageModuleBase.LanguageMetadata
LanguageModuleBase.LanguageMetadata. addAllVersionsOf(Language language)
Add all the versions of the given language, including the default version.int
LanguageModuleBase. compareTo(Language o)
LanguageVersion
LanguageVersionDiscoverer. getDefaultLanguageVersion(Language language)
Get the current default LanguageVersion for the given Language.LanguageRegistry
LanguageRegistry. getDependenciesOf(Language lang)
Creates a language registry containing the given language and its dependencies, fetched from this language registry or the parameter.@NonNull LanguageProcessor
LanguageProcessorRegistry. getProcessor(Language l)
Return the processor for a given language.static LanguageRegistry
LanguageRegistry. singleton(Language l)
Creates a language registry containing a single language.Method parameters in net.sourceforge.pmd.lang with type arguments of type Language Modifier and Type Method Description @NonNull String
LanguageRegistry. commaSeparatedList(Function<? super Language,String> languageToString)
Formats the set of languages with the given formatter, sort and join everything with commas.static LanguageProcessorRegistry
LanguageProcessorRegistry. create(LanguageRegistry registry, Map<Language,LanguagePropertyBundle> languageProperties, PmdReporter messageReporter)
Create a new instance by creating a processor for each language in the given language registry.static Map<Language,LanguagePropertyBundle>
LanguageProcessorRegistry. derivePropertiesFromStrings(Map<Language,Properties> stringProperties, PmdReporter reporter)
LanguageRegistry
LanguageRegistry. filter(Predicate<Language> filterFun)
Create a new registry with the languages that satisfy the predicate.Constructors in net.sourceforge.pmd.lang with parameters of type Language Constructor Description JvmLanguagePropertyBundle(Language language)
LanguageFilenameFilter(Language language)
Create a LanguageFilenameFilter for a single Language.LanguagePropertyBundle(@NonNull Language language)
Create a new bundle for the given language.Constructor parameters in net.sourceforge.pmd.lang with type arguments of type Language Constructor Description LanguageFilenameFilter(Set<Language> languages)
Create a LanguageFilenameFilter for a List of Languages.LanguageRegistry(Set<? extends Language> languages)
Create a new registry that contains the given set of languages. -
Uses of Language in net.sourceforge.pmd.lang.document
Methods in net.sourceforge.pmd.lang.document with parameters of type Language Modifier and Type Method Description boolean
FileCollector. addFile(Path file, Language language)
Add a file with the given language (which overrides the file patterns).Method parameters in net.sourceforge.pmd.lang.document with type arguments of type Language Modifier and Type Method Description void
FileCollector. filterLanguages(Set<Language> languages)
Exclude all collected files whose language is not part of the given collection. -
Uses of Language in net.sourceforge.pmd.lang.impl
Classes in net.sourceforge.pmd.lang.impl that implement Language Modifier and Type Class Description class
CpdOnlyLanguageModuleBase
Base class for language modules that only support CPD and not PMD.class
SimpleLanguageModuleBase
The simplest implementation of a language, where only aLanguageVersionHandler
needs to be implemented. -
Uses of Language in net.sourceforge.pmd.lang.rule
Methods in net.sourceforge.pmd.lang.rule that return Language Modifier and Type Method Description Language
AbstractRule. getLanguage()
Language
Rule. getLanguage()
Get the Language of this Rule.Language
RuleReference. getLanguage()
Methods in net.sourceforge.pmd.lang.rule with parameters of type Language Modifier and Type Method Description void
AbstractRule. setLanguage(Language language)
void
Rule. setLanguage(Language language)
Set the Language of this Rule.void
RuleReference. setLanguage(Language language)
-
Uses of Language in net.sourceforge.pmd.lang.rule.xpath.impl
Constructors in net.sourceforge.pmd.lang.rule.xpath.impl with parameters of type Language Constructor Description XPathFunctionDefinition(String localName, Language language)
-
Uses of Language in net.sourceforge.pmd.util.treeexport
Methods in net.sourceforge.pmd.util.treeexport that return Language Modifier and Type Method Description Language
TreeExportConfiguration. getLanguage()
Methods in net.sourceforge.pmd.util.treeexport with parameters of type Language Modifier and Type Method Description void
TreeExportConfiguration. setLanguage(Language language)
-