# Uses of Class
org.springframework.aot.generate.GeneratedClass

Packages that use GeneratedClass
Package
Description
org.springframework.aot.generate
Support classes for components that contribute generated code equivalent to a runtime behavior.

## Uses of GeneratedClass in org.springframework.aot.generate

Methods in org.springframework.aot.generate that return GeneratedClass
Modifier and Type
Method
Description
`GeneratedClass`
GeneratedClasses.`addForFeature(String featureName, Consumer<org.springframework.javapoet.TypeSpec.Builder> type)`
Add a new generated class for the specified `featureName` and no particular component.
`GeneratedClass`
GeneratedClasses.`addForFeatureComponent(String featureName, Class<?> targetComponent, Consumer<org.springframework.javapoet.TypeSpec.Builder> type)`
Add a new generated class for the specified `featureName` targeting the specified `component`.
`GeneratedClass`
GeneratedClasses.`addForFeatureComponent(String featureName, org.springframework.javapoet.ClassName targetComponent, Consumer<org.springframework.javapoet.TypeSpec.Builder> type)`
Add a new generated class for the specified `featureName` targeting the specified `component`.
`GeneratedClass`
GeneratedClass.`getEnclosingClass()`
Return the enclosing `GeneratedClass` or `null` if this instance represents a top-level class.
`GeneratedClass`
GeneratedClass.`getOrAdd(String name, Consumer<org.springframework.javapoet.TypeSpec.Builder> type)`
Get or add a nested generated class with the specified name.
`GeneratedClass`
GeneratedClasses.`getOrAddForFeature(String featureName, Consumer<org.springframework.javapoet.TypeSpec.Builder> type)`
Get or add a generated class for the specified `featureName` and no particular component.
`GeneratedClass`
GeneratedClasses.`getOrAddForFeatureComponent(String featureName, Class<?> targetComponent, Consumer<org.springframework.javapoet.TypeSpec.Builder> type)`
Get or add a generated class for the specified `featureName` targeting the specified `component`.
`GeneratedClass`
GeneratedClasses.`getOrAddForFeatureComponent(String featureName, org.springframework.javapoet.ClassName targetComponent, Consumer<org.springframework.javapoet.TypeSpec.Builder> type)`
Get or add a generated class for the specified `featureName` targeting the specified `component`.