Interface IPluginCoreAccess

All Superinterfaces:
IBaseCoreAccess, IElementAccess, INamedElementAccess
All Known Subinterfaces:
IPluginLanguageBasedAccess

public interface IPluginCoreAccess extends IBaseCoreAccess
  • Method Details

    • addIssue

      boolean addIssue(IElementAccess element, IPluginIssueId id, String description, int line)
      Add an issue to an element.
      Parameters:
      element - The element associated with the issue
      id - Issue specific id, should be equal for all issues of the same kind
      description - Issue description (can be null)
      line - Line number or 0 or negative when unknown
      Returns:
      true, if issue is not ignored
    • getExternalRoot

      IExternalAccess getExternalRoot(String language, String identifier)
      Parameters:
      language - (as of now "Java", "C#" or "C,C++")
      identifier - a plugin id
      Returns:
      the external root for the given identifier or null if it does not exist.
    • getACDMetric

      Float getACDMetric()
      Get ACD (John Lakos) metric for system scope.
      Returns:
      see above
    • getBiggestComponentCycleGroupMetric

      Integer getBiggestComponentCycleGroupMetric()
      Get number of elements in the biggest component cycle group of the system.
      Returns:
      see above
    • getCCDMetric

      Integer getCCDMetric()
      Get CCD (John Lakos) metric for system scope.
      Returns:
      see above
    • getCodeCommentLinesMetric

      Integer getCodeCommentLinesMetric()
      Get number of code comment lines on system scope.
      Returns:
      see above
    • getCommentLinesMetric

      Integer getCommentLinesMetric()
      Get number of comment lines including header comments.
      Returns:
      see above
    • getLinesOfCodeMetric

      Integer getLinesOfCodeMetric()
      Get lines of codes (excluding empty lines and comment lines) on system scope.
      Returns:
      see above
    • getNCCDMetric

      Float getNCCDMetric()
      Get NCCD metric for system scope (John Lakos).
      Returns:
      see above
    • getNumberOfComponentCycleGroupsMetric

      Integer getNumberOfComponentCycleGroupsMetric()
      Get the number of component cycle groups on system scope.
      Returns:
      see above
    • getNumberOfComponentsMetric

      Integer getNumberOfComponentsMetric()
      Get the number of internal components in the system.
      Returns:
      see above
    • getNumberOfCyclicComponentsMetric

      Integer getNumberOfCyclicComponentsMetric()
      Get the number of internal components involved in cyclic dependencies that are not ignored.
      Returns:
      see above
    • getNumberOfIgnoredCyclicComponentsMetric

      Integer getNumberOfIgnoredCyclicComponentsMetric()
      Get the number of internal components involved in ignored cyclic dependencies.
      Returns:
      see above
    • getNumberOfStatementsMetric

      Integer getNumberOfStatementsMetric()
      Get the total number of statements on system scope.
      Returns:
      see above
    • getPropagationCostMetric

      Float getPropagationCostMetric()
      Get the value of Propagation Cost for the system scope (John Lakos).
      Returns:
      see above
    • getSourceElementCountMetric

      Integer getSourceElementCountMetric()
      Get the total source element count of all internal elements of the system.
      Returns:
      see above
    • getTotalLinesMetric

      Integer getTotalLinesMetric()
      Get the total number of lines in the system, including empty and comment lines.
      Returns:
      see above
    • getNumberOfCodeDuplicatesMetric

      Integer getNumberOfCodeDuplicatesMetric()
      Get total number of non-ignored duplicated code blocks on system scope.
      Returns:
      see above
    • getNumberOfDuplicatedLinesMetric

      Integer getNumberOfDuplicatedLinesMetric()
      Get total number of duplicated lines in non-ignored duplicated code blocks on system scope.
      Returns:
      see above
    • getNumberOfIgnoredCodeDuplicatesMetric

      Integer getNumberOfIgnoredCodeDuplicatesMetric()
      Get total number of ignored duplicated code blocks on system scope.
      Returns:
      see above
    • getBiggestModuleACDMetric

      Float getBiggestModuleACDMetric()
      Get the biggest ACD value (John Lakos) of all modules in the system.
      Returns:
      see above
    • getComponentCyclicityMetric

      Integer getComponentCyclicityMetric()
      Get system wide component cyclicity metric.
      Returns:
      see above
    • getComponentRelativeCyclicityMetric

      Float getComponentRelativeCyclicityMetric()
      Get system wide relative cyclicity between components.
      Returns:
      see above
    • getComponentStructuralDebtIndexMetric

      Integer getComponentStructuralDebtIndexMetric()
      Get system wide structural debt index on component level.
      Returns:
      see above
    • getComponentParserDependenciesToRemoveMetric

      Integer getComponentParserDependenciesToRemoveMetric()
      Get number of references between components to remove to untangle all component cycle groups.
      Returns:
      see above
    • getComponentDependenciesToRemoveMetric

      Integer getComponentDependenciesToRemoveMetric()
      Get number of component dependencies to remove to untangle all component cycle groups.
      Returns:
      see above
    • getNumberOfUnassignedComponentsMetric

      Integer getNumberOfUnassignedComponentsMetric()
      Get number of component not assigned to any active architectural artifact. (Architecture feature needed)
      Returns:
      see above
    • getNumberOfComponentViolationsMetric

      Integer getNumberOfComponentViolationsMetric()
      Get number of architecture violations between components. (Architecture feature needed)
      Returns:
      see above
    • getNumberOfViolatingComponentsMetric

      Integer getNumberOfViolatingComponentsMetric()
      Get number of components containing architecture violations. (Architecture feature needed)
      Returns:
      see above
    • getNumberOfParserDependencyViolationsMetric

      Integer getNumberOfParserDependencyViolationsMetric()
      Get number of violating parser dependencies. (Architecture feature needed)
      Returns:
      see above
    • getNumberOfIgnoredParserDependencyViolationsMetric

      Integer getNumberOfIgnoredParserDependencyViolationsMetric()
      Get number of ignored violating parser dependencies. (Architecture feature needed)
      Returns:
      see above
    • getHiddenDataDirectory

      File getHiddenDataDirectory(String pluginId)
      Get hidden data directory for a plugin.
      Parameters:
      pluginId - plugin id, must not be null or empty.
      Returns:
      hidden data directory for plugin id, or null if it could't be created