Uses of Interface
net.sourceforge.pmd.lang.Language
Packages that use Language
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 of Language in net.sourceforge.pmd
Methods in net.sourceforge.pmd with parameters of type LanguageModifier and TypeMethodDescriptionprotected voidAbstractConfiguration.checkLanguageIsAcceptable(Language lang) Check that it is correct to use the given language with this configuration.protected voidPMDConfiguration.checkLanguageIsAcceptable(Language lang) @NonNull LanguagePropertyBundleAbstractConfiguration.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 of Language in net.sourceforge.pmd.cpd
Subinterfaces of Language in net.sourceforge.pmd.cpdMethods in net.sourceforge.pmd.cpd with parameters of type LanguageModifier and TypeMethodDescriptionprotected voidCPDConfiguration.checkLanguageIsAcceptable(Language lang) -
Uses of Language in net.sourceforge.pmd.lang
Subinterfaces of Language in net.sourceforge.pmd.langClasses in net.sourceforge.pmd.lang that implement LanguageModifier and TypeClassDescriptionclassBase class for language modules.final classA dummy language implementation whose parser produces a single node.Methods in net.sourceforge.pmd.lang that return LanguageModifier and TypeMethodDescriptionLanguagePropertyBundle.getLanguage()LanguageVersion.getLanguage()Returns the language that owns this version.@Nullable LanguageLanguageRegistry.getLanguageByFullName(String languageName) Returns a language from its full name (eg"Java").@Nullable LanguageLanguageRegistry.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 LanguageModifier and TypeMethodDescriptionstatic Map<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 in net.sourceforge.pmd.lang with parameters of type LanguageModifier 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.@NonNull LanguageProcessorLanguageProcessorRegistry.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.static LanguageRegistryCreates a language registry containing a single language.Method parameters in net.sourceforge.pmd.lang with type arguments of type LanguageModifier and TypeMethodDescription@NonNull StringLanguageRegistry.commaSeparatedList(Function<? super Language, String> languageToString) Formats the set of languages with the given formatter, sort and join everything with commas.static LanguageProcessorRegistryLanguageProcessorRegistry.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) Create a new registry with the languages that satisfy the predicate.Constructors in net.sourceforge.pmd.lang with parameters of type LanguageModifierConstructorDescriptionJvmLanguagePropertyBundle(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 LanguageModifierConstructorDescriptionLanguageFilenameFilter(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 LanguageModifier and TypeMethodDescriptionbooleanAdd a file with the given language (which overrides the file patterns).Method parameters in net.sourceforge.pmd.lang.document with type arguments of type LanguageModifier and TypeMethodDescriptionvoidFileCollector.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 LanguageModifier 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 of Language in net.sourceforge.pmd.lang.rule
Methods in net.sourceforge.pmd.lang.rule that return LanguageModifier and TypeMethodDescriptionAbstractRule.getLanguage()Rule.getLanguage()Get the Language of this Rule.RuleReference.getLanguage()Methods in net.sourceforge.pmd.lang.rule with parameters of type LanguageModifier and TypeMethodDescriptionvoidAbstractRule.setLanguage(Language language) voidRule.setLanguage(Language language) Set the Language of this Rule.voidRuleReference.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 LanguageModifierConstructorDescriptionprotectedXPathFunctionDefinition(String localName, Language language) -
Uses of Language in net.sourceforge.pmd.util.treeexport
Methods in net.sourceforge.pmd.util.treeexport that return LanguageMethods in net.sourceforge.pmd.util.treeexport with parameters of type Language