// find all of my methods, including ITDs
// PLUS: any public ITDs made on interfaces that I implement
public MethodBinding[] methods(SourceTypeBinding sourceTypeBinding) {
- MethodBinding[] orig = sourceTypeBinding.methods();
+ MethodBinding[] orig = sourceTypeBinding.methodsBase();
// if (interTypeMethods.isEmpty()) return orig;
List ret = new ArrayList(Arrays.asList(orig));
// 1st set:
// If the typevariable is one declared on the source method, then we know we are the declaring element
for (int i = 0; i < typeVariables.length; i++) {
- TypeVariableBinding tv = typeVariables[i];
- String name = new String(tv.sourceName);
- TypeVariableBinding[] tv2 = sourceMethod.binding.typeVariables;
- for (int j = 0; j < tv2.length; j++) {
- TypeVariableBinding typeVariable = tv2[j];
- if (new String(tv2[j].sourceName).equals(name)) typeVariables[i].declaringElement = this;
- }
+ typeVariables[i].declaringElement = this;
}
for (int i = 0; i < typeVariables.length; i++) {
if (typeVariables[i].declaringElement==null) throw new RuntimeException("Declaring element not set");