Interface ICheckMetadataManager

All Known Subinterfaces:
ICheckRepository
All Known Implementing Classes:
CheckRepository

public interface ICheckMetadataManager
Manages the check metadata (like EClass affection, rebuild scope collectors and so on) and provides access to them for consumers (DD, forced validation, etc). This interface isn't the part of the public API and shouldn't be used directly.
  • Method Details

    • getApplicableEClasses

      Map<CheckUid,Set<org.eclipse.emf.ecore.EClass>> getApplicableEClasses()
      Gets the set of EClass'es which is being processed by the corresponding checks
      Returns:
      The set of EClass'es mapped to respective check identifiers. May not be null
    • getCheckComplexities

      Map<CheckUid,CheckComplexity> getCheckComplexities()
      Gets complexities for all registered checks
      Returns:
      The check complexities mapped to check identifiers. May not be null
    • getCheckContextDefinitions

      default Map<CheckUid,CheckDefinition> getCheckContextDefinitions()
      Gets all check defintions for all registered checks
      Returns:
      The CheckDefinition's mapped to check identifiers. May not be null
    • getDescription

      ICheckDescription getDescription(CheckUid checkId)
      Returns a check description (without overrides from user preferences).
      Parameters:
      checkId - check id, not null
      Returns:
      check description by default, not null
      Throws:
      NoSuchElementException - if none.
    • getLanguageChecks

      Set<CheckUid> getLanguageChecks()
      Gets identifiers of all registered language checks
      Returns:
      The set of registered language check identifiers. May not be null
    • getLanguageCheckTargetEClasses

      Map<org.eclipse.emf.ecore.EClass,Set<CheckUid>> getLanguageCheckTargetEClasses()
      Gets target EClass'es for language modules check visitor
      Returns:
      The language module's EClass'es mapped to check identifiers. May not be null
    • getLanguageResourceChangesContextCollectors

      default Map<CheckUid,OnLanguageResourceChangesContextCollector> getLanguageResourceChangesContextCollectors()
      Gets language resource change context collectors
      Returns:
      OnLanguageResourceChangesContextCollector mapped to corresponding check identifiers. May not be null
    • getModelRebuildDefinitions

      default Map<org.eclipse.emf.ecore.EClass,ModelRebuildDefinition> getModelRebuildDefinitions()
      Gets registered rebuild scope definitions
      Returns:
      The collection of rebuild scope definitions mapped to their target EClass-es. May not be null