leibnitz27 / cfr

This is the public repository for the CFR Java decompiler
https://www.benf.org/other/cfr
MIT License
1.93k stars 249 forks source link

Is there a similar method to analyze(List<String>) that returns a String instead of void? #318

Closed Andreas-White closed 2 years ago

Andreas-White commented 2 years ago

Hello great work! I want get the context of a .class file as String in order to traverse it and display specific methods from the source file to the user. Is there such capability?

leibnitz27 commented 2 years ago

You can sink into a string like this https://github.com/leibnitz27/cfr_client/blob/master/src/org/benf/cfr_client_example/WithSink.java

Sorry - there isn't a handy 'split up into methods' sink right now.

Andreas-White commented 2 years ago

Thank you for the response! That's fine what you provided works for me too.