add extractor for enumerated class