return false;
}
+ /**
+ * Note: Only overridden by Name subtype
+ */
+ public void addAnnotation(AnnotationX annotationX) {
+ throw new RuntimeException("ResolvedTypeX.addAnnotation() should never be called");
+ }
+
+ /**
+ * Note: Only overridden by Name subtype
+ */
+ public AnnotationX[] getAnnotations() {
+ throw new RuntimeException("ResolvedTypeX.getAnnotations() should never be called");
+ }
+
+
/**
* Note: Only overridden by Name subtype.
*/
return delegate.isClass();
}
+ public AnnotationX[] getAnnotations() {
+ return delegate.getAnnotations();
+ }
+
+ public void addAnnotation(AnnotationX annotationX) {
+ delegate.addAnnotation(annotationX);
+ }
public boolean hasAnnotation(TypeX ofType) {
return delegate.hasAnnotation(ofType);
}
this.exposedToWeaver = exposedToWeaver;
}
- public final boolean isClass() {
+
+ public final boolean isClass() {
return !isAspect() && !isInterface();
}
public abstract boolean isAnnotation();
public abstract boolean isAnnotationWithRuntimeRetention();
+ public abstract AnnotationX[] getAnnotations();
+ public abstract void addAnnotation(AnnotationX annotationX);
public abstract boolean hasAnnotation(TypeX ofType);
public abstract ResolvedTypeX[] getAnnotationTypes();