JSqlParser parses an SQL statement and translate it into a hierarchy of Java classes. The generated hierarchy can be navigated using the Visitor Pattern
Why do you think that https://github.com/chrisseaton/rhizome is a good alternative to JSqlParser