java.lang.Object
org.eclipse.edc.plugins.autodoc.core.processor.introspection.ModuleIntrospector

public class ModuleIntrospector extends Object
Contains methods for introspecting the current module using the Java Compiler API.
  • Constructor Details

  • Method Details

    • getCategories

      public List<String> getCategories(RoundEnvironment environment)
    • resolveExtensionPoints

      public List<org.eclipse.edc.runtime.metamodel.domain.Service> resolveExtensionPoints(RoundEnvironment environment)
      Resolves extension points declared with ExtensionPoint.
    • getModuleName

      public String getModuleName(RoundEnvironment environment)
    • getExtensionElements

      public Set<Element> getExtensionElements(RoundEnvironment environment)
      Get all Elements that fulfill any of the following criteria:
      • Are annotated with Extension
      • Are annotated with Provides
      • Are annotated with Requires
      • Have one or more fields annotated with Inject
      • Have one or more methods annotated with Provider

      Note that elements are pruned, i.e. every extension only occurs once. This is important because extensions that have multiple relevant fields and are annotated, will only occur once in the result.

      Parameters:
      environment - the RoundEnvironment that is passed in to the annotation processor
      Returns:
      a set containing the distinct extension symbols. Elements in that set are most likely of type Symbol.ClassSymbol