コード例 #1
0
 /**
  * Get a list of the method annotations in this <code>AnnotationDirectoryItem</code>
  *
  * @return A list of MethodAnnotation objects, or null if there are no method annotations
  */
 @Nonnull
 public List<MethodAnnotation> getMethodAnnotations() {
   if (methodAnnotations == null) {
     return Collections.emptyList();
   }
   return ReadOnlyArrayList.of(methodAnnotations);
 }
コード例 #2
0
 /**
  * Get a list of the parameter annotations in this <code>AnnotationDirectoryItem</code>
  *
  * @return A list of ParameterAnnotation objects, or null if there are no parameter annotations
  */
 @Nonnull
 public List<ParameterAnnotation> getParameterAnnotations() {
   if (parameterAnnotations == null) {
     return Collections.emptyList();
   }
   return ReadOnlyArrayList.of(parameterAnnotations);
 }
コード例 #3
0
 /**
  * Get a list of the field annotations in this <code>AnnotationDirectoryItem</code>
  *
  * @return A list of FieldAnnotation objects, or null if there are no field annotations
  */
 @Nonnull
 public List<FieldAnnotation> getFieldAnnotations() {
   if (fieldAnnotations == null) {
     return Collections.emptyList();
   }
   return ReadOnlyArrayList.of(fieldAnnotations);
 }