static void copyDocumentedAnnotations( @Nonnull final AnnotatedConstruct element,
@Nonnull final MethodSpec.Builder builder )
{
for ( final AnnotationMirror annotation : element.getAnnotationMirrors() )
{
final DeclaredType annotationType = annotation.getAnnotationType();
if ( !annotationType.toString().startsWith( "arez.annotations." ) &&
null != annotationType.asElement().getAnnotation( Documented.class ) )
{
builder.addAnnotation( AnnotationSpec.get( annotation ) );
}
}
}
ProcessorUtil.java 文件源码
java
阅读 44
收藏 0
点赞 0
评论 0
项目:arez
作者:
评论列表
文章目录