A question about javac API

Dmitry Batkovich batya239 at gmail.com
Thu Jun 29 13:50:42 UTC 2017


I want to find a way how to determine whether given TypeElement is defined
in some class from classpath or in source code. Or it is not possible? I've
found that com.sun.tools.javac.code.Symbol.ClassSymbol has sourcefile and
classfile fields and it may helps. But unfortunately ClassSymbol is not
part of officially supported API.

Best regards,
Dmitry Batkovich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20170629/a1560633/attachment.html>

More information about the compiler-dev mailing list