public List getParameterSignatures();
- public void setParameterSignatures(List list);
+ public List getParameterSignaturesSourceRefs();
+
+ public void setParameterSignatures(List list, List paramSourceRefs);
public List getParameterTypes();
INTERFACE, ASPECT, ENUM, ENUM_VALUE, ANNOTATION, INITIALIZER, INTER_TYPE_FIELD, INTER_TYPE_METHOD,
INTER_TYPE_CONSTRUCTOR, INTER_TYPE_PARENT, CONSTRUCTOR, METHOD, FIELD, POINTCUT, ADVICE, DECLARE_PARENTS,
DECLARE_WARNING, DECLARE_ERROR, DECLARE_SOFT, DECLARE_PRECEDENCE, CODE, ERROR, DECLARE_ANNOTATION_AT_CONSTRUCTOR,
- DECLARE_ANNOTATION_AT_FIELD, DECLARE_ANNOTATION_AT_METHOD, DECLARE_ANNOTATION_AT_TYPE, SOURCE_FOLDER, PACKAGE_DECLARATION
+ DECLARE_ANNOTATION_AT_FIELD, DECLARE_ANNOTATION_AT_METHOD, DECLARE_ANNOTATION_AT_TYPE, SOURCE_FOLDER,
+ PACKAGE_DECLARATION
};
public boolean isSourceFile() {
return this == FILE_ASPECTJ || this == FILE_JAVA;
}
+
public boolean isFile() {
return this == FILE;
}
if (ipe.getParameterSignatures() == null || ipe.getParameterSignatures().isEmpty()) {
return "";
}
- StringBuffer sb = new StringBuffer();
+ List sourceRefs = ipe.getParameterSignaturesSourceRefs();
List parameterTypes = ipe.getParameterSignatures();
- for (Iterator iter = parameterTypes.iterator(); iter.hasNext();) {
- char[] element = (char[]) iter.next();
- sb.append(HandleProviderDelimiter.getDelimiter(ipe));
- sb.append(NameConvertor.createShortName(element, false, false));
+ StringBuffer sb = new StringBuffer();
+ if (sourceRefs != null) {
+ for (int i = 0; i < sourceRefs.size(); i++) {
+ String sourceRef = (String) sourceRefs.get(i);
+ sb.append(HandleProviderDelimiter.getDelimiter(ipe));
+ sb.append(sourceRef);
+ }
+ } else {
+ for (Iterator iter = parameterTypes.iterator(); iter.hasNext();) {
+ char[] element = (char[]) iter.next();
+ sb.append(HandleProviderDelimiter.getDelimiter(ipe));
+ sb.append(NameConvertor.createShortName(element, false, false));
+ }
}
return sb.toString();
}
return parameters;
}
- public void setParameterSignatures(List list) {
- if (kvpairs == Collections.EMPTY_MAP)
+ public List getParameterSignaturesSourceRefs() {
+ List parameters = (List) kvpairs.get("parameterSigsSourceRefs");
+ return parameters;
+ }
+
+ /**
+ * Set the parameter signatures for this method/constructor. The bit flags tell us if any were not singletypereferences in the
+ * the source. A singletypereference would be 'String' - whilst a qualifiedtypereference would be 'java.lang.String' - this has
+ * an effect on the handles.
+ */
+ public void setParameterSignatures(List list, List sourceRefs) {
+ if (kvpairs == Collections.EMPTY_MAP) {
kvpairs = new HashMap();
- if (list == null || list.size() == 0)
+ }
+ if (list == null || list.size() == 0) {
kvpairs.put("parameterSigs", Collections.EMPTY_LIST);
- else
+ } else {
kvpairs.put("parameterSigs", list);
+ }
+ if (sourceRefs != null && sourceRefs.size() != 0) {
+ kvpairs.put("parameterSigsSourceRefs", sourceRefs);
+ }
}
public String getDetails() {