generate impl class for alias interface