DynamicClassWriter adding getter methods for virtual
attributes so that 3rd party frameworks such as jakarta.validation can access
the attribute values.
| Modifier and Type | Field and Description |
|---|---|
| private MetadataDescriptor | descriptor
The |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addMethods(ClassWriter cw, String parentClassType)
Overrides org. |
| private Type | |
| public MetadataDescriptor | |
| private String | propertyName(String attributeName)
Convert attribute name into property name to be used in get/set method names by upper casing first letter. |
| descriptor | back to summary |
|---|---|
| private MetadataDescriptor descriptor The | |
| DYNAMIC_EXCEPTION | back to summary |
|---|---|
| private static final String DYNAMIC_EXCEPTION | |
| GET | back to summary |
|---|---|
| private static final String GET | |
| LDYNAMIC_ENTITY | back to summary |
|---|---|
| private static final String LDYNAMIC_ENTITY | |
| LJAVA_LANG_OBJECT | back to summary |
|---|---|
| private static final String LJAVA_LANG_OBJECT | |
| LJAVA_LANG_STRING | back to summary |
|---|---|
| private static final String LJAVA_LANG_STRING | |
| SET | back to summary |
|---|---|
| private static final String SET | |
| MetadataDynamicClassWriter | back to summary |
|---|---|
| public MetadataDynamicClassWriter(MetadataDescriptor descriptor) | |
| addMethods | back to summary |
|---|---|
| protected void addMethods(ClassWriter cw, String parentClassType) Overrides org. Add get methods for all virtual attributes
| |
| getAsmType | back to summary |
|---|---|
| private Type getAsmType(MappingAccessor accessor) Get the | |
| getDescriptor | back to summary |
|---|---|
| public MetadataDescriptor getDescriptor() | |
| propertyName | back to summary |
|---|---|
| private String propertyName(String attributeName) Convert attribute name into property name to be used in get/set method names by upper casing first letter. | |