Class Parser.Config

java.lang.Object
dev.hilla.parser.core.Parser.Config
Enclosing class:
Parser

public static final class Parser.Config extends Object
An immutable parser configuration object. It allows to peek into the initial configuration of the parser during the scan.
  • Method Details

    • getClassLoader

      @Nonnull public ClassLoader getClassLoader()
      Gets the class loader for reflection in the parser.
      Returns:
      the class loader
    • getClassPathElements

      @Nonnull public Set<String> getClassPathElements()
      Gets the collection of classpath elements.
      Returns:
      the collection of classpath elements.
    • getEndpointAnnotationName

      @Nonnull public String getEndpointAnnotationName()
      Gets the name of endpoint annotation.
      Returns:
      the annotation name.
    • getEndpointExposedAnnotationName

      @Nonnull public String getEndpointExposedAnnotationName()
      Gets the name of `EndpointExposed` annotation.
      Returns:
      the annotation name.
    • getExposedPackages

      @Nonnull public Collection<String> getExposedPackages()
    • getOpenAPI

      @Nonnull public io.swagger.v3.oas.models.OpenAPI getOpenAPI()
      Gets the OpenAPI object.

      Note that the object is mutable.

      Returns:
      OpenAPI object.
    • getPlugins

      @Nonnull public Collection<Plugin> getPlugins()
      Returns a collection of parser plugins.
      Returns:
      the collection of parser plugins.