diff --git a/docs/pages/release_notes.md b/docs/pages/release_notes.md index c2c83bac84..23cb2d867b 100644 --- a/docs/pages/release_notes.md +++ b/docs/pages/release_notes.md @@ -552,4 +552,5 @@ a warning will now be produced suggesting users to adopt it for better performan * [#744](https://github.com/pmd/pmd/pull/744): \[doc] Added Apex to supported languages - [Michał Kuliński](https://github.com/coola) * [#746](https://github.com/pmd/pmd/pull/746): \[doc] Fix typo in incremental analysis log message - [Clément Fournier](https://github.com/oowekyala) * [#749](https://github.com/pmd/pmd/pull/749): \[doc] Update the documentation for properties - [Clément Fournier](https://github.com/oowekyala) +* [#758](https://github.com/pmd/pmd/pull/758): \[core] Expose the full mapping from property type id to property extractor - [Clément Fournier](https://github.com/oowekyala) diff --git a/pmd-core/src/main/java/net/sourceforge/pmd/properties/PropertyDescriptorUtil.java b/pmd-core/src/main/java/net/sourceforge/pmd/properties/PropertyDescriptorUtil.java index 8949e91d30..43db194d09 100644 --- a/pmd-core/src/main/java/net/sourceforge/pmd/properties/PropertyDescriptorUtil.java +++ b/pmd-core/src/main/java/net/sourceforge/pmd/properties/PropertyDescriptorUtil.java @@ -56,6 +56,16 @@ public class PropertyDescriptorUtil { private PropertyDescriptorUtil() { } + + /** + * Returns the full mappings from type ids to extractors. + * + * @return The full mapping. + */ + public static Map> typeIdsToExtractors() { + return DESCRIPTOR_FACTORIES_BY_TYPE; + } + /** * Gets the factory for the descriptor identified by the string id.