/** * Return the array of resolvable methods (resilience) */ public MethodBinding[] availableMethods() { return methods(); }
/** * Return the array of resolvable methods (resilience) */ public MethodBinding[] availableMethods() { return methods(); }
/** * Return the array of resolvable methods (resilience) */ public MethodBinding[] availableMethods() { return methods(); }
/** * Return the array of resolvable methods (resilience) */ public MethodBinding[] availableMethods() { return methods(); }
/** * Return the array of resolvable methods (resilience) */ public MethodBinding[] availableMethods() { return methods(); }
/** * Return the array of resolvable methods (resilience) */ public MethodBinding[] availableMethods() { return methods(); }
if (exec.declaringClass != null && Arrays.asList(exec.declaringClass.methods()).contains(exec)) { ref.setDeclaringType(getTypeReference(exec.declaringClass)); } else {
/** Apply the given type arguments on the (declaring class of the) actual constructor being represented by this factory method. */ public ParameterizedMethodBinding applyTypeArgumentsOnConstructor(TypeBinding[] typeArguments) { ReferenceBinding parameterizedType = this.environment.createParameterizedType(this.declaringClass, typeArguments, this.enclosingType); for (MethodBinding parameterizedMethod : parameterizedType.methods()) { if (parameterizedMethod.original() == this.staticFactoryFor) return (ParameterizedMethodBinding) parameterizedMethod; } throw new IllegalArgumentException("Type doesn't have its own method?"); //$NON-NLS-1$ } }
/** Apply the given type arguments on the (declaring class of the) actual constructor being represented by this factory method. */ public ParameterizedMethodBinding applyTypeArgumentsOnConstructor(TypeBinding[] typeArguments) { ReferenceBinding parameterizedType = this.environment.createParameterizedType(this.declaringClass, typeArguments, this.enclosingType); for (MethodBinding parameterizedMethod : parameterizedType.methods()) { if (parameterizedMethod.original() == this.staticFactoryFor) return (ParameterizedMethodBinding) parameterizedMethod; } throw new IllegalArgumentException("Type doesn't have its own method?"); //$NON-NLS-1$ } }
/** Apply the given type arguments on the (declaring class of the) actual constructor being represented by this factory method. */ public ParameterizedMethodBinding applyTypeArgumentsOnConstructor(TypeBinding[] typeArguments) { ReferenceBinding parameterizedType = this.environment.createParameterizedType(this.declaringClass, typeArguments, this.enclosingType); for (MethodBinding parameterizedMethod : parameterizedType.methods()) { if (parameterizedMethod.original() == this.staticFactoryFor) return (ParameterizedMethodBinding) parameterizedMethod; } throw new IllegalArgumentException("Type doesn't have its own method?"); //$NON-NLS-1$ } }
private static MethodBinding findInSuperclassHierarchy(MethodBinding baseMethod, ReferenceBinding typeBinding) { while ( typeBinding != null ) { MethodBinding matching = findMatchingMethodBinding( baseMethod, typeBinding.methods() ); if ( matching != null ) { return matching; } typeBinding = typeBinding.superclass(); } return null; }
private void getAllInheritedMethods0(ReferenceBinding binding, ArrayList<MethodBinding> collector) { if (!binding.isInterface()) return; MethodBinding[] methodBindings = binding.methods(); for (int i = 0, max = methodBindings.length; i < max; i++) { collector.add(methodBindings[i]); } ReferenceBinding[] superInterfaces = binding.superInterfaces(); for (int i = 0, max = superInterfaces.length; i < max; i++) { getAllInheritedMethods0(superInterfaces[i], collector); } }
private void getAllInheritedMethods0(ReferenceBinding binding, ArrayList<MethodBinding> collector) { if (!binding.isInterface()) return; MethodBinding[] methodBindings = binding.methods(); for (int i = 0, max = methodBindings.length; i < max; i++) { collector.add(methodBindings[i]); } ReferenceBinding[] superInterfaces = binding.superInterfaces(); for (int i = 0, max = superInterfaces.length; i < max; i++) { getAllInheritedMethods0(superInterfaces[i], collector); } }
private void getAllInheritedMethods0(ReferenceBinding binding, ArrayList<MethodBinding> collector) { if (!binding.isInterface()) return; MethodBinding[] methodBindings = binding.methods(); for (int i = 0, max = methodBindings.length; i < max; i++) { collector.add(methodBindings[i]); } ReferenceBinding[] superInterfaces = binding.superInterfaces(); for (int i = 0, max = superInterfaces.length; i < max; i++) { getAllInheritedMethods0(superInterfaces[i], collector); } }
private void getAllInheritedMethods0(ReferenceBinding binding, ArrayList collector) { if (!binding.isInterface()) return; MethodBinding[] methodBindings = binding.methods(); for (int i = 0, max = methodBindings.length; i < max; i++) { collector.add(methodBindings[i]); } ReferenceBinding[] superInterfaces = binding.superInterfaces(); for (int i = 0, max = superInterfaces.length; i < max; i++) { getAllInheritedMethods0(superInterfaces[i], collector); } }
private void getAllInheritedMethods0(ReferenceBinding binding, ArrayList collector) { if (!binding.isInterface()) return; MethodBinding[] methodBindings = binding.methods(); for (int i = 0, max = methodBindings.length; i < max; i++) { collector.add(methodBindings[i]); } ReferenceBinding[] superInterfaces = binding.superInterfaces(); for (int i = 0, max = superInterfaces.length; i < max; i++) { getAllInheritedMethods0(superInterfaces[i], collector); } }
private void getAllInheritedMethods0(ReferenceBinding binding, ArrayList<MethodBinding> collector) { if (!binding.isInterface()) return; MethodBinding[] methodBindings = binding.methods(); for (int i = 0, max = methodBindings.length; i < max; i++) { collector.add(methodBindings[i]); } ReferenceBinding[] superInterfaces = binding.superInterfaces(); for (int i = 0, max = superInterfaces.length; i < max; i++) { getAllInheritedMethods0(superInterfaces[i], collector); } }
private void getAllInheritedMethods0(ReferenceBinding binding, ArrayList<MethodBinding> collector) { if (!binding.isInterface()) return; MethodBinding[] methodBindings = binding.methods(); for (int i = 0, max = methodBindings.length; i < max; i++) { collector.add(methodBindings[i]); } ReferenceBinding[] superInterfaces = binding.superInterfaces(); for (int i = 0, max = superInterfaces.length; i < max; i++) { getAllInheritedMethods0(superInterfaces[i], collector); } }
private void getAllInheritedMethods0(ReferenceBinding binding, ArrayList collector) { if (!binding.isInterface()) return; MethodBinding[] methodBindings = binding.methods(); for (int i = 0, max = methodBindings.length; i < max; i++) { collector.add(methodBindings[i]); } ReferenceBinding[] superInterfaces = binding.superInterfaces(); for (int i = 0, max = superInterfaces.length; i < max; i++) { getAllInheritedMethods0(superInterfaces[i], collector); } }
private void getAllInheritedMethods0(ReferenceBinding binding, ArrayList<MethodBinding> collector) { if (!binding.isInterface()) return; MethodBinding[] methodBindings = binding.methods(); for (int i = 0, max = methodBindings.length; i < max; i++) { collector.add(methodBindings[i]); } ReferenceBinding[] superInterfaces = binding.superInterfaces(); for (int i = 0, max = superInterfaces.length; i < max; i++) { getAllInheritedMethods0(superInterfaces[i], collector); } }