How To Parse Java Source Code Use JDK Parser 2 Comments / Java Tutorial / Java Parser, jdk This article will show you how to parse out one java class’s methods via the JDK parser. It will parse out the method modifier, return type, name, parameters, threw exceptions, and method body.