JCFunctionalExpression targets

Antonio Cortes Perez antoniocortes at google.com
Wed Jan 23 20:54:49 UTC 2019


While visiting a CompilationUnitTree, I need to access the target(s) of a
LambdaExpressionTree and a MemberReferenceTree. Right now, I am downcasting
them to the underlying (non-public) JCFunctionalExpression and directly
accessing the member variable “targets”. Is there a simple public API to
obtain the same data? Something like Trees.getX

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20190123/7e59aea0/attachment.html>


More information about the compiler-dev mailing list