This content has been marked as final. Show 2 replies
javax.lang.model package does not give you access to the raw source code but the Filer will allow you to get an InputStream or Reader for the source and you could parse it yourself.
Thanks. I ended up using the file() info from the class decl SourcePosition and write a mini lexer to scan it myself.