Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-1789

Add possibility to add custom properties for code elements

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Introduce a base interface to ClassInfo, MethodInfo, PackageInfo, FileInfo, StatementInfo, BranchInfo which allows API clients to add arbitrary properties to the model. They values should be raw types, possible Serializable objects too. This should allow instrumentation providers better answer questions Clover may have about the model they've produced.

      Something like:

      interface CustomInfo

      • getProperties(): Map<String, Object>
      • setProperty(String, Object)
      • getProperty(String)

      interface FileInfo extends ..., CustomInfo
      interface TypeInfo extends ..., CustomInfo
      interface MethodInfo extends ..., CustomInfo
      interface BranchInfo extends ..., CustomInfo
      interface StatementInfo extends ..., CustomInfo

      Attachments

        Activity

          People

            Unassigned Unassigned
            mparfianowicz Marek Parfianowicz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: