Is there any API to class and method builder

I need to develop a plugin that will generate source from xml file , is there an API to do that 

like a class builder or something else

Please sign in to leave a comment.