Uses of Interface
net.sourceforge.pmd.lang.Language
Packages that useLanguage
Package
Description
This is the PMD programming mistake detector.
Token-based copy-paste detection.
Contains types to model text files and handle operations on text.
Uses ofLanguage innet.sourceforge.pmd
Methods innet.sourceforge.pmd with parameters of typeLanguageModifier and TypeMethodDescriptionprotected voidAbstractConfiguration.checkLanguageIsAcceptable(Language lang) Check that it is correct to use the given language with this configuration.protected voidPMDConfiguration.checkLanguageIsAcceptable(Language lang) @NonNullLanguagePropertyBundleAbstractConfiguration.getLanguageProperties(Language language) Returns a mutable bundle of language properties that are associated to the given language (always the same for a given language).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).voidAbstractConfiguration.setOnlyRecognizeLanguage(Language lang) Make it so that the only extensions that are considered are those of the given language.Uses ofLanguage innet.sourceforge.pmd.cpd
Subinterfaces ofLanguage innet.sourceforge.pmd.cpdMethods innet.sourceforge.pmd.cpd with parameters of typeLanguageModifier and TypeMethodDescriptionprotected voidCPDConfiguration.checkLanguageIsAcceptable(Language lang) Uses ofLanguage innet.sourceforge.pmd.lang
Subinterfaces ofLanguage innet.sourceforge.pmd.langClasses innet.sourceforge.pmd.lang that implementLanguageModifier and TypeClassDescriptionclassBase class for language modules.final classA dummy language implementation whose parser produces a single node.Methods innet.sourceforge.pmd.lang that returnLanguageModifier and TypeMethodDescriptionLanguagePropertyBundle.getLanguage()LanguageVersion.getLanguage()Returns the language that owns this version.@NullableLanguageLanguageRegistry.getLanguageByFullName(String languageName) Returns a language from itsfull name (eg"Java").@NullableLanguageLanguageRegistry.getLanguageById(@NullableString langId) Returns a language from itsID (eg"java").Methods innet.sourceforge.pmd.lang that return types with arguments of typeLanguageModifier and TypeMethodDescriptionstaticMap<Language,LanguagePropertyBundle> LanguageProcessorRegistry.derivePropertiesFromStrings(Map<Language, Properties> stringProperties,PmdReporter reporter) LanguageRegistry.getLanguages()Returns a set of all the known languages.LanguageVersionDiscoverer.getLanguagesForFile(String fileName) Get the Languages of a given source file.LanguageRegistry.iterator()Methods innet.sourceforge.pmd.lang with parameters of typeLanguageModifier and TypeMethodDescriptionLanguageModuleBase.LanguageMetadata.addAllVersionsOf(Language language) Add all the versions of the given language, including the default version.intLanguageVersionDiscoverer.getDefaultLanguageVersion(Language language) Get the current default LanguageVersion for the given Language.LanguageRegistry.getDependenciesOf(Language lang) Creates a language registry containing the given language and its dependencies, fetched from this language registry or the parameter.@NonNullLanguageProcessorLanguageProcessorRegistry.getProcessor(Language l) Return the processor for a given language.default booleanLanguage.isDialectOf(Language language) Return true if this language is a dialect of the given language.staticLanguageRegistryCreates a language registry containing a single language.Method parameters innet.sourceforge.pmd.lang with type arguments of typeLanguageModifier and TypeMethodDescription@NonNullStringLanguageRegistry.commaSeparatedList(Function<? superLanguage, String> languageToString) Formats the set of languages with the given formatter, sort and join everything with commas.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.staticMap<Language,LanguagePropertyBundle> LanguageProcessorRegistry.derivePropertiesFromStrings(Map<Language, Properties> stringProperties,PmdReporter reporter) Create a new registry with the languages that satisfy the predicate.Constructors innet.sourceforge.pmd.lang with parameters of typeLanguageModifierConstructorDescriptionJvmLanguagePropertyBundle(Language language) LanguageFilenameFilter(Language language) Create a LanguageFilenameFilter for a single Language.LanguagePropertyBundle(@NonNullLanguage language) Create a new bundle for the given language.Constructor parameters innet.sourceforge.pmd.lang with type arguments of typeLanguageModifierConstructorDescriptionLanguageFilenameFilter(Set<Language> languages) Create a LanguageFilenameFilter for a List of Languages.LanguageRegistry(Set<? extendsLanguage> languages) Create a new registry that contains the given set of languages.Uses ofLanguage innet.sourceforge.pmd.lang.document
Methods innet.sourceforge.pmd.lang.document with parameters of typeLanguageModifier and TypeMethodDescriptionbooleanAdd a file with the given language (which overrides the file patterns).Method parameters innet.sourceforge.pmd.lang.document with type arguments of typeLanguageModifier and TypeMethodDescriptionvoidFileCollector.filterLanguages(Set<Language> languages) Exclude all collected files whose language is not part of the given collection.Uses ofLanguage innet.sourceforge.pmd.lang.impl
Classes innet.sourceforge.pmd.lang.impl that implementLanguageModifier and TypeClassDescriptionclassBase class for language modules that only support CPD and not PMD.classThe simplest implementation of a dialect, where only aLanguageModuleBase.LanguageMetadataneeds to be implemented.classThe simplest implementation of a language, where only aLanguageVersionHandlerneeds to be implemented.Uses ofLanguage innet.sourceforge.pmd.lang.rule
Methods innet.sourceforge.pmd.lang.rule that returnLanguageModifier and TypeMethodDescriptionAbstractRule.getLanguage()Rule.getLanguage()Get the Language of this Rule.RuleReference.getLanguage()Methods innet.sourceforge.pmd.lang.rule with parameters of typeLanguageModifier and TypeMethodDescriptionvoidAbstractRule.setLanguage(Language language) voidRule.setLanguage(Language language) Set the Language of this Rule.voidRuleReference.setLanguage(Language language) Uses ofLanguage innet.sourceforge.pmd.lang.rule.xpath.impl
Constructors innet.sourceforge.pmd.lang.rule.xpath.impl with parameters of typeLanguageUses ofLanguage innet.sourceforge.pmd.util.treeexport
Methods innet.sourceforge.pmd.util.treeexport that returnLanguageMethods innet.sourceforge.pmd.util.treeexport with parameters of typeLanguage