[英]How do I find the type declaration of an identifier using the Java Tree Compiler API?
[英]Java compiler tree API - how do I set it up?
使用:
com.sun.source.tree.*
com.sun.source.util.*
上述包可以在tools.jar中找到。 請將tools.jar添加到classpath。 您可以在<JDK_HOME> / lib文件夾中找到tools.jar。 此外,您可以提取src.zip並在那里找到相關的API源文件。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.