Class EnumOptionsExtractor
java.lang.Object
nl.datasteel.crudcraft.codegen.reader.field.EnumOptionsExtractor
- All Implemented Interfaces:
FieldPartExtractor<EnumOptions>
Singleton extractor for enum field options.
This class implements the FieldPartExtractor interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EnumOptionsExtractor
Singleton instance of EnumExtractor. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextract
(VariableElement field, ProcessingEnvironment env) Extracts enum options from a field.
-
Field Details
-
INSTANCE
Singleton instance of EnumExtractor.
-
-
Constructor Details
-
EnumOptionsExtractor
public EnumOptionsExtractor()
-
-
Method Details
-
extract
Extracts enum options from a field.- Specified by:
extract
in interfaceFieldPartExtractor<EnumOptions>
- Parameters:
field
- the VariableElement representing the fieldenv
- the ProcessingEnvironment for accessing annotations and other processing features- Returns:
- EnumOptions containing information about the enum field
-