expose generic sig for structural comparison
return !isParameterizedType() && !isRawType() && delegate.isGeneric();
}
+ public String getGenericSignature() {
+ String sig = delegate.getDeclaredGenericSignature();
+ return (sig == null) ? "" : sig;
+ }
+
public AnnotationX[] getAnnotations() {
return delegate.getAnnotations();
}
return null;
}
+ /**
+ * overriden by ReferenceType to return the gsig for a generic type
+ * @return
+ */
+ public String getGenericSignature() {
+ return "";
+ }
+
+
public ResolvedType parameterizedWith(UnresolvedType[] typeParameters) {
if (!(isGenericType() || isParameterizedType())) return this;
return TypeFactory.createParameterizedType(this.getGenericType(), typeParameters, getWorld());