Add convert method that takes the Java code as a string

I'm making a Scala IDE plugin to convert Java to Scala, and it would be helpful to be able to pass the code in as a string rather than writing it out to a file (only to have scalagen read it in again).