GenerationContext implementation.
Generated classes can be flushed out using writeGeneratedContent()
which should be called only once after the generation process using this instance
has completed.
| Modifier and Type | Field and Description |
|---|---|
| private final GeneratedClasses | |
| private final GeneratedFiles | |
| private final RuntimeHints | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | DefaultGenerationContext(ClassNameGenerator
the naming convention to use for generated
class names classNameGenerator, GeneratedFiles the generated files generatedFiles)Create a new |
| public | DefaultGenerationContext(ClassNameGenerator
the naming convention to use for generated
class names classNameGenerator, GeneratedFiles the generated files generatedFiles, RuntimeHints the runtime hints runtimeHints)Create a new |
| pack-priv | DefaultGenerationContext(GeneratedClasses
the generated classes generatedClasses, GeneratedFiles the generated files generatedFiles, RuntimeHints the runtime hints runtimeHints)Create a new |
| protected | DefaultGenerationContext(DefaultGenerationContext
the existing context upon which to base the new one existing, String the feature name to use featureName)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public GeneratedClasses | getGeneratedClasses()
Implements org. GeneratedClasses used by the context.
|
| public GeneratedFiles | getGeneratedFiles()
Implements org. GeneratedFiles used by the context.
|
| public RuntimeHints | getRuntimeHints()
Implements org. RuntimeHints used by the context.
|
| public DefaultGenerationContext | withName(String
the name to use name)Implements org. GenerationContext instance using the specified
name to qualify generated assets for a dedicated round of code
generation.
|
| public void |
| generatedClasses | back to summary |
|---|---|
| private final GeneratedClasses generatedClasses | |
| generatedFiles | back to summary |
|---|---|
| private final GeneratedFiles generatedFiles | |
| runtimeHints | back to summary |
|---|---|
| private final RuntimeHints runtimeHints | |
| sequenceGenerator | back to summary |
|---|---|
| private final Map<String, AtomicInteger> sequenceGenerator | |
| DefaultGenerationContext | back to summary |
|---|---|
| public DefaultGenerationContext(ClassNameGenerator classNameGenerator, GeneratedFiles generatedFiles) Create a new
| |
| DefaultGenerationContext | back to summary |
|---|---|
| public DefaultGenerationContext(ClassNameGenerator classNameGenerator, GeneratedFiles generatedFiles, RuntimeHints runtimeHints) Create a new
| |
| DefaultGenerationContext | back to summary |
|---|---|
| pack-priv DefaultGenerationContext(GeneratedClasses generatedClasses, GeneratedFiles generatedFiles, RuntimeHints runtimeHints) Create a new
| |
| DefaultGenerationContext | back to summary |
|---|---|
| protected DefaultGenerationContext(DefaultGenerationContext existing, String featureName) Create a new
| |
| getGeneratedClasses | back to summary |
|---|---|
| public GeneratedClasses getGeneratedClasses() Implements org. Doc from org. Get the All generated classes are written at the end of AOT processing.
| |
| getGeneratedFiles | back to summary |
|---|---|
| public GeneratedFiles getGeneratedFiles() Implements org. Doc from org. Get the Used to write resource, java source, or class bytecode files.
| |
| getRuntimeHints | back to summary |
|---|---|
| public RuntimeHints getRuntimeHints() Implements org. Doc from org. Get the Used to record reflection, resource, serialization, and proxy hints so that the application can run as a native image.
| |
| withName | back to summary |
|---|---|
| public DefaultGenerationContext withName(String name) Implements org. Doc from org. Create a new If the specified name is already in use, a unique sequence is added to ensure the name is unique.
| |
| writeGeneratedContent | back to summary |
|---|---|
| public void writeGeneratedContent() Write any generated content out to the generated files. | |