Created
June 17, 2019 14:57
-
-
Save mbigatti/7e82d5a6cdb7bbcb84746ed01019304c to your computer and use it in GitHub Desktop.
Dump Java classes using Guava
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ClassPath cp = ClassPath.from(this.getClass().getClassLoader()); | |
cp.getAllClasses().stream() | |
.filter(ci -> ci.getName().startsWith("com.example")) | |
.forEach(ci -> System.err.println(ci.getName())); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment