Skip to main content
summaryrefslogtreecommitdiffstats
blob: 316e1eef449cb4037736873f6a772fbf973a9105 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * @see ITypeBinding#getDeclaredMethods()
 */
public IMethodBinding[] getDeclaredMethods() {
if (this.binding.isClass() || this.binding.isInterface()) {
ReferenceBinding referenceBinding = (ReferenceBinding) this.binding;
	org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding[] methods = referenceBinding.methods();
int length = methods.length;
		int removeSyntheticsCounter = 0;
IMethodBinding[] newMethods = new IMethodBinding[length];
	for (int i = 0; i < length; i++) {
		org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding methodBinding = methods[i];
if (!shouldBeRemoved(methodBinding)) { 
			newMethods[removeSyntheticsCounter++] = this.resolver.getMethodBinding(methodBinding);
}
}
if (removeSyntheticsCounter != length) {
		System.arraycopy(newMethods, 0, (newMethods = new IMethodBinding[removeSyntheticsCounter]), 0, removeSyntheticsCounter);
	}
return newMethods;
	} else {

return NO_DECLARED_METHODS;
	}
}
// comment 1
// comment 2
// comment 3


// comment 4

Back to the top