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 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).LanguagePropertyBundlePmdAnalysis. 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.cpd Modifier and Type Interface Description interfaceCpdCapableLanguageA language that supportsCPD.Methods in net.sourceforge.pmd.cpd with parameters of type Language Modifier and Type Method Description protected voidCPDConfiguration. checkLanguageIsAcceptable(Language lang) -
Uses of Language in net.sourceforge.pmd.lang
Subinterfaces of Language in net.sourceforge.pmd.lang Modifier and Type Interface Description interfacePmdCapableLanguageA language that supportsPMD.Classes in net.sourceforge.pmd.lang that implement Language Modifier and Type Class Description classLanguageModuleBaseBase class for language modules.classPlainTextLanguageA dummy language implementation whose parser produces a single node.Methods in net.sourceforge.pmd.lang that return Language Modifier and Type Method Description LanguageLanguagePropertyBundle. getLanguage()LanguageLanguageVersion. 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 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.LanguageMetadataLanguageModuleBase.LanguageMetadata. addAllVersionsOf(Language language)Add all the versions of the given language, including the default version.intLanguageModuleBase. compareTo(Language o)LanguageVersionLanguageVersionDiscoverer. getDefaultLanguageVersion(Language language)Get the current default LanguageVersion for the given Language.LanguageRegistryLanguageRegistry. 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 LanguageRegistryLanguageRegistry. 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 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)LanguageRegistryLanguageRegistry. 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 booleanFileCollector. 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 voidFileCollector. 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 classCpdOnlyLanguageModuleBaseBase class for language modules that only support CPD and not PMD.classSimpleDialectLanguageModuleBaseThe simplest implementation of a dialect, where only aLanguageModuleBase.LanguageMetadataneeds to be implemented.classSimpleLanguageModuleBaseThe 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 Language Modifier and Type Method Description LanguageAbstractRule. getLanguage()LanguageRule. getLanguage()Get the Language of this Rule.LanguageRuleReference. getLanguage()Methods in net.sourceforge.pmd.lang.rule with parameters of type Language Modifier and Type Method Description voidAbstractRule. 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 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 LanguageTreeExportConfiguration. getLanguage()Methods in net.sourceforge.pmd.util.treeexport with parameters of type Language Modifier and Type Method Description voidTreeExportConfiguration. setLanguage(Language language)
-