public boolean isSubtype(Object annotationType, Object potentialSupertype) { return wrapped.isSubtype(annotationType, potentialSupertype); }
private boolean isSubtype(Object annotationType) { if (fAnnotationAccess instanceof IAnnotationAccessExtension) { IAnnotationAccessExtension extension= (IAnnotationAccessExtension) fAnnotationAccess; return extension.isSubtype(annotationType, fType); } return fType.equals(annotationType); }
private boolean isSubtype(Object annotationType) { if (fAnnotationAccess instanceof IAnnotationAccessExtension) { IAnnotationAccessExtension extension= (IAnnotationAccessExtension) fAnnotationAccess; return extension.isSubtype(annotationType, fType); } return fType.equals(annotationType); }
/** * Computes whether the annotation of the given type should be skipped or * not. * * @param annotationType the annotation type * @return <code>true</code> if annotation should be skipped, <code>false</code> * otherwise * @since 3.0 */ private boolean skip(Object annotationType) { if (fAnnotationAccessExtension != null) { Iterator<Object> e= fConfiguredAnnotationTypes.iterator(); while (e.hasNext()) { if (fAnnotationAccessExtension.isSubtype(annotationType, e.next())) return false; } return true; } return !fConfiguredAnnotationTypes.contains(annotationType); }
/** * Computes whether the annotation of the given type should be skipped or * not. * * @param annotationType the annotation type * @return <code>true</code> if annotation should be skipped, <code>false</code> * otherwise * @since 3.0 */ private boolean skip(Object annotationType) { if (fAnnotationAccessExtension != null) { Iterator<Object> e= fConfiguredAnnotationTypes.iterator(); while (e.hasNext()) { if (fAnnotationAccessExtension.isSubtype(annotationType, e.next())) return false; } return true; } return !fConfiguredAnnotationTypes.contains(annotationType); }
/** * Computes whether the annotations of the given type are covered by the given <code>configured</code> * set. This is the case if either the type of the annotation or any of its * super types is contained in the <code>configured</code> set. * * @param annotationType the annotation type * @param configured the set with configured annotation types * @return <code>true</code> if annotation is covered, <code>false</code> * otherwise * @since 3.0 */ private boolean isCovered(Object annotationType, Set<Object> configured) { if (fAnnotationAccess instanceof IAnnotationAccessExtension) { IAnnotationAccessExtension extension= (IAnnotationAccessExtension) fAnnotationAccess; Iterator<Object> e= configured.iterator(); while (e.hasNext()) { if (extension.isSubtype(annotationType,e.next())) return true; } return false; } return configured.contains(annotationType); }
/** * Computes whether the annotations of the given type are covered by the given <code>configured</code> * set. This is the case if either the type of the annotation or any of its * super types is contained in the <code>configured</code> set. * * @param annotationType the annotation type * @param configured the set with configured annotation types * @return <code>true</code> if annotation is covered, <code>false</code> * otherwise * @since 3.0 */ private boolean isCovered(Object annotationType, Set<Object> configured) { if (fAnnotationAccess instanceof IAnnotationAccessExtension) { IAnnotationAccessExtension extension= (IAnnotationAccessExtension) fAnnotationAccess; Iterator<Object> e= configured.iterator(); while (e.hasNext()) { if (extension.isSubtype(annotationType,e.next())) return true; } return false; } return configured.contains(annotationType); }