Class IdentityExtractor
java.lang.Object
nl.datasteel.crudcraft.codegen.reader.field.IdentityExtractor
- All Implemented Interfaces:
FieldPartExtractor<Identity>
Singleton extractor for the Identity field part.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IdentityExtractorSingleton instance of IdentityExtractor. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextract(VariableElement field, ProcessingEnvironment env) Extracts the Identity field part from a VariableElement.
-
Field Details
-
INSTANCE
Singleton instance of IdentityExtractor.
-
-
Constructor Details
-
IdentityExtractor
public IdentityExtractor()
-
-
Method Details
-
extract
Extracts the Identity field part from a VariableElement.- Specified by:
extractin interfaceFieldPartExtractor<Identity>- Parameters:
field- the VariableElement representing the fieldenv- the ProcessingEnvironment for accessing annotations and other processing features- Returns:
- an Identity object representing the field's identity
-