public final class MoreAnnotations extends Object
|Modifier and Type||Method and Description|
Returns declaration annotations of the given symbol, as well as 'top-level' type annotations, including : Type annotations of the return type of a method.
public static Stream<com.sun.tools.javac.code.Attribute.Compound> getDeclarationAndTypeAttributes(com.sun.tools.javac.code.Symbol sym)
One might expect this to be equivalent to information returned by
Type.getAnnotationMirrors(), but javac doesn't associate type
annotation information with types for symbols completed from class files, so that approach
doesn't work across compilation boundaries.
Copyright © 2018. All rights reserved.