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 aGeneratedType
for the specified package.Return the mainGeneratedType
.Return theRuntimeHints
instance to use to contribute hints for generated types.
-
Method Details
-
runtimeHints
RuntimeHints runtimeHints()Return theRuntimeHints
instance to use to contribute hints for generated types.- Returns:
- the runtime hints
-
getGeneratedType
Return aGeneratedType
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 mainGeneratedType
.- Returns:
- the generated type for the target package
-