Interface GeneratedTypeContext

All Known Implementing Classes:
DefaultGeneratedTypeContext

public interface GeneratedTypeContext
Context passed to object that can generate code, giving access to a main GeneratedType as well as to a GeneratedType in a given package if privileged access is required.
Since:
6.0
Author:
Stephane Nicoll
  • Method Details

    • runtimeHints

      RuntimeHints runtimeHints()
      Return the RuntimeHints instance to use to contribute hints for generated types.
      Returns:
      the runtime hints
    • getGeneratedType

      GeneratedType getGeneratedType(String packageName)
      Return a GeneratedType for the specified package. If it does not exist, it is created.
      Parameters:
      packageName - the package name to use
      Returns:
      a generated type
    • getMainGeneratedType

      GeneratedType getMainGeneratedType()
      Return the main GeneratedType.
      Returns:
      the generated type for the target package