Class ModuleIntrospector
java.lang.Object
org.eclipse.edc.plugins.autodoc.core.processor.introspection.ModuleIntrospector
Contains methods for introspecting the current module using the Java Compiler API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCategories(RoundEnvironment environment) getExtensionElements(RoundEnvironment environment) Get allElements that fulfill any of the following criteria: Are annotated withExtensionAre annotated withProvidesAre annotated withRequiresHave one or more fields annotated withInjectHave one or more methods annotated withProvidergetModuleName(RoundEnvironment environment) List<org.eclipse.edc.runtime.metamodel.domain.Service>resolveExtensionPoints(RoundEnvironment environment) Resolves extension points declared withExtensionPoint.
-
Constructor Details
-
ModuleIntrospector
-
-
Method Details
-
getCategories
-
resolveExtensionPoints
public List<org.eclipse.edc.runtime.metamodel.domain.Service> resolveExtensionPoints(RoundEnvironment environment) Resolves extension points declared withExtensionPoint. -
getModuleName
-
getExtensionElements
Get allElements 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- theRoundEnvironmentthat 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
- Are annotated with
-