public ReferenceType buildGenericType() {
throw new UnsupportedOperationException("Shouldn't be asking for generic type at 1.4 source level or lower");
}
+
public boolean isAspect() {
// we could do better than this in Java 5 by looking at the annotations
// on the type...
return false;
}
+
/*
* (non-Javadoc)
*
// on the type...
return false;
}
-
+
public boolean isInterface() {
return this.myClass.isInterface();
}
+
public boolean isEnum() {
// cant be an enum in Java 1.4 or prior
return false;
}
+
/*
* (non-Javadoc)
*
// cant be an annotation in Java 1.4 or prior
return false;
}
-public boolean isAnnotation() {
+
+ public boolean isAnnotation() {
// cant be an annotation in Java 1.4 or prior
return false;
}
+
public String getRetentionPolicy() {
// cant be an annotation in Java 1.4 or prior
return null;
public AnnotationTargetKind[] getAnnotationTargetKinds() {
return null;
}
+
public boolean isClass() {
return !this.myClass.isInterface() && !this.myClass.isPrimitive() && !this.myClass.isArray();
}
return interfaces;
}
+ public boolean isCacheable() {
+ return true;
+ }
+
/*
* (non-Javadoc)
*