jeudi 9 avril 2015

Generate scala source for a class instance using reflection

Assuming you have an instance of a class. What is the best approach to generate valid scala source code, which could be written out into a file and compiled, of that instance during runtime? (Utilizing the scala reflection-api/macros?) Is it possible to parse the AST representation into source code?






Aucun commentaire:

Enregistrer un commentaire