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 Summary
Modifier and TypeMethodDescriptiongetGeneratedType(String packageName) Return aGeneratedTypefor the specified package.Return the mainGeneratedType.Return theRuntimeHintsinstance to use to contribute hints for generated types.
-
Method Details
-
runtimeHints
RuntimeHints runtimeHints()Return theRuntimeHintsinstance to use to contribute hints for generated types.- Returns:
- the runtime hints
-
getGeneratedType
Return aGeneratedTypefor 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 mainGeneratedType.- Returns:
- the generated type for the target package
-