void checkForMissingHashCodeMethod() { MethodBinding[] choices = this.type.getMethods(TypeConstants.EQUALS); boolean overridesEquals = false; for (int i = choices.length; !overridesEquals && --i >= 0;) overridesEquals = choices[i].parameters.length == 1 && choices[i].parameters[0].id == TypeIds.T_JavaLangObject; if (overridesEquals) { MethodBinding hashCodeMethod = this.type.getExactMethod(TypeConstants.HASHCODE, Binding.NO_PARAMETERS, null); if (hashCodeMethod != null && hashCodeMethod.declaringClass.id == TypeIds.T_JavaLangObject) this.problemReporter().shouldImplementHashcode(this.type); } }
void checkForMissingHashCodeMethod() { MethodBinding[] choices = this.type.getMethods(TypeConstants.EQUALS); boolean overridesEquals = false; for (int i = choices.length; !overridesEquals && --i >= 0;) overridesEquals = choices[i].parameters.length == 1 && choices[i].parameters[0].id == TypeIds.T_JavaLangObject; if (overridesEquals) { MethodBinding hashCodeMethod = this.type.getExactMethod(TypeConstants.HASHCODE, Binding.NO_PARAMETERS, null); if (hashCodeMethod != null && hashCodeMethod.declaringClass.id == TypeIds.T_JavaLangObject) this.problemReporter().shouldImplementHashcode(this.type); } }
void checkForMissingHashCodeMethod() { MethodBinding[] choices = this.type.getMethods(TypeConstants.EQUALS); boolean overridesEquals = false; for (int i = choices.length; !overridesEquals && --i >= 0;) overridesEquals = choices[i].parameters.length == 1 && choices[i].parameters[0].id == TypeIds.T_JavaLangObject; if (overridesEquals) { MethodBinding hashCodeMethod = this.type.getExactMethod(TypeConstants.HASHCODE, Binding.NO_PARAMETERS, null); if (hashCodeMethod != null && hashCodeMethod.declaringClass.id == TypeIds.T_JavaLangObject) this.problemReporter().shouldImplementHashcode(this.type); } }
void checkForMissingHashCodeMethod() { MethodBinding[] choices = this.type.getMethods(TypeConstants.EQUALS); boolean overridesEquals = false; for (int i = choices.length; !overridesEquals && --i >= 0;) overridesEquals = choices[i].parameters.length == 1 && choices[i].parameters[0].id == TypeIds.T_JavaLangObject; if (overridesEquals) { MethodBinding hashCodeMethod = this.type.getExactMethod(TypeConstants.HASHCODE, Binding.NO_PARAMETERS, null); if (hashCodeMethod != null && hashCodeMethod.declaringClass.id == TypeIds.T_JavaLangObject) this.problemReporter().shouldImplementHashcode(this.type); } }
void checkForMissingHashCodeMethod() { MethodBinding[] choices = this.type.getMethods(TypeConstants.EQUALS); boolean overridesEquals = false; for (int i = choices.length; !overridesEquals && --i >= 0;) overridesEquals = choices[i].parameters.length == 1 && choices[i].parameters[0].id == TypeIds.T_JavaLangObject; if (overridesEquals) { MethodBinding hashCodeMethod = this.type.getExactMethod(TypeConstants.HASHCODE, Binding.NO_PARAMETERS, null); if (hashCodeMethod != null && hashCodeMethod.declaringClass.id == TypeIds.T_JavaLangObject) this.problemReporter().shouldImplementHashcode(this.type); } }
void checkForMissingHashCodeMethod() { MethodBinding[] choices = this.type.getMethods(TypeConstants.EQUALS); boolean overridesEquals = false; for (int i = choices.length; !overridesEquals && --i >= 0;) overridesEquals = choices[i].parameters.length == 1 && choices[i].parameters[0].id == TypeIds.T_JavaLangObject; if (overridesEquals) { MethodBinding hashCodeMethod = this.type.getExactMethod(TypeConstants.HASHCODE, Binding.NO_PARAMETERS, null); if (hashCodeMethod != null && hashCodeMethod.declaringClass.id == TypeIds.T_JavaLangObject) this.problemReporter().shouldImplementHashcode(this.type); } }
void checkForMissingHashCodeMethod() { MethodBinding[] choices = this.type.getMethods(TypeConstants.EQUALS); boolean overridesEquals = false; for (int i = choices.length; !overridesEquals && --i >= 0;) overridesEquals = choices[i].parameters.length == 1 && choices[i].parameters[0].id == TypeIds.T_JavaLangObject; if (overridesEquals) { MethodBinding hashCodeMethod = this.type.getExactMethod(TypeConstants.HASHCODE, Binding.NO_PARAMETERS, null); if (hashCodeMethod != null && hashCodeMethod.declaringClass.id == TypeIds.T_JavaLangObject) this.problemReporter().shouldImplementHashcode(this.type); } }
void checkForMissingHashCodeMethod() { MethodBinding[] choices = this.type.getMethods(TypeConstants.EQUALS); boolean overridesEquals = false; for (int i = choices.length; !overridesEquals && --i >= 0;) overridesEquals = choices[i].parameters.length == 1 && choices[i].parameters[0].id == TypeIds.T_JavaLangObject; if (overridesEquals) { MethodBinding hashCodeMethod = this.type.getExactMethod(TypeConstants.HASHCODE, Binding.NO_PARAMETERS, null); if (hashCodeMethod != null && hashCodeMethod.declaringClass.id == TypeIds.T_JavaLangObject) this.problemReporter().shouldImplementHashcode(this.type); } }
void checkForMissingHashCodeMethod() { MethodBinding[] choices = this.type.getMethods(TypeConstants.EQUALS); boolean overridesEquals = false; for (int i = choices.length; !overridesEquals && --i >= 0;) overridesEquals = choices[i].parameters.length == 1 && choices[i].parameters[0].id == TypeIds.T_JavaLangObject; if (overridesEquals) { MethodBinding hashCodeMethod = this.type.getExactMethod(TypeConstants.HASHCODE, Binding.NO_PARAMETERS, null); if (hashCodeMethod != null && hashCodeMethod.declaringClass.id == TypeIds.T_JavaLangObject) this.problemReporter().shouldImplementHashcode(this.type); } }
void checkForMissingHashCodeMethod() { MethodBinding[] choices = this.type.getMethods(TypeConstants.EQUALS); boolean overridesEquals = false; for (int i = choices.length; !overridesEquals && --i >= 0;) overridesEquals = choices[i].parameters.length == 1 && choices[i].parameters[0].id == TypeIds.T_JavaLangObject; if (overridesEquals) { MethodBinding hashCodeMethod = this.type.getExactMethod(TypeConstants.HASHCODE, Binding.NO_PARAMETERS, null); if (hashCodeMethod != null && hashCodeMethod.declaringClass.id == TypeIds.T_JavaLangObject) this.problemReporter().shouldImplementHashcode(this.type); } }
void checkForMissingHashCodeMethod() { MethodBinding[] choices = this.type.getMethods(TypeConstants.EQUALS); boolean overridesEquals = false; for (int i = choices.length; !overridesEquals && --i >= 0;) overridesEquals = choices[i].parameters.length == 1 && choices[i].parameters[0].id == TypeIds.T_JavaLangObject; if (overridesEquals) { MethodBinding hashCodeMethod = this.type.getExactMethod(TypeConstants.HASHCODE, Binding.NO_PARAMETERS, null); if (hashCodeMethod != null && hashCodeMethod.declaringClass.id == TypeIds.T_JavaLangObject) this.problemReporter().shouldImplementHashcode(this.type); } }
binding.getExactMethod(VALUE_OF, new TypeBinding[]{x.scope.getJavaLangString()}, curCud.scope); assert valueOfBinding != null; MethodBinding valuesBinding = binding.getExactMethod(VALUES, NO_TYPES, curCud.scope); assert valuesBinding != null; createSyntheticMethodFromBinding(info, valuesBinding, null);
public MethodBinding getExactMethod(char[] selector, TypeBinding[] argumentTypes, CompilationUnitScope refScope) { if (!isPrototype()) return this.prototype.getExactMethod(selector, argumentTypes, refScope); if (resolveTypesFor(method) == null || method.returnType == null) { methods(); return getExactMethod(selector, argumentTypes, refScope); // try again since the problem methods have been removed if (paramsMatch) { methods(); return getExactMethod(selector, argumentTypes, refScope); // try again since the problem methods have been removed
public MethodBinding getExactMethod(char[] selector, TypeBinding[] argumentTypes, CompilationUnitScope refScope) { if (!isPrototype()) return this.prototype.getExactMethod(selector, argumentTypes, refScope); if (resolveTypesFor(method) == null || method.returnType == null) { methods(); return getExactMethod(selector, argumentTypes, refScope); // try again since the problem methods have been removed if (paramsMatch) { methods(); return getExactMethod(selector, argumentTypes, refScope); // try again since the problem methods have been removed
public MethodBinding getExactMethod(char[] selector, TypeBinding[] argumentTypes, CompilationUnitScope refScope) { if (!isPrototype()) return this.prototype.getExactMethod(selector, argumentTypes, refScope); if (resolveTypesFor(method) == null || method.returnType == null) { methods(); return getExactMethod(selector, argumentTypes, refScope); // try again since the problem methods have been removed if (paramsMatch) { methods(); return getExactMethod(selector, argumentTypes, refScope); // try again since the problem methods have been removed
public MethodBinding getExactMethod(char[] selector, TypeBinding[] argumentTypes, CompilationUnitScope refScope) { if (!isPrototype()) return this.prototype.getExactMethod(selector, argumentTypes, refScope); if (resolveTypesFor(method) == null || method.returnType == null) { methods(); return getExactMethod(selector, argumentTypes, refScope); // try again since the problem methods have been removed if (paramsMatch) { methods(); return getExactMethod(selector, argumentTypes, refScope); // try again since the problem methods have been removed
@Override public MethodBinding getExactMethod(char[] selector, TypeBinding[] argumentTypes, CompilationUnitScope refScope) { if (!isPrototype()) return this.prototype.getExactMethod(selector, argumentTypes, refScope); if (resolveTypesFor(method) == null || method.returnType == null) { methods(); return getExactMethod(selector, argumentTypes, refScope); // try again since the problem methods have been removed if (paramsMatch) { methods(); return getExactMethod(selector, argumentTypes, refScope); // try again since the problem methods have been removed
public MethodBinding getExactMethod(char[] selector, TypeBinding[] argumentTypes, CompilationUnitScope refScope) { if (!isPrototype()) return this.prototype.getExactMethod(selector, argumentTypes, refScope); if (resolveTypesFor(method) == null || method.returnType == null) { methods(); return getExactMethod(selector, argumentTypes, refScope); // try again since the problem methods have been removed if (paramsMatch) { methods(); return getExactMethod(selector, argumentTypes, refScope); // try again since the problem methods have been removed
if (resolveTypesFor(method) == null || method.returnType == null) { methods(); return getExactMethod(selector, argumentTypes, refScope); // try again since the problem methods have been removed if (paramsMatch) { methods(); return getExactMethod(selector, argumentTypes, refScope); // try again since the problem methods have been removed
if (resolveTypesFor(method) == null || method.returnType == null) { methods(); return getExactMethod(selector, argumentTypes, refScope); // try again since the problem methods have been removed if (paramsMatch) { methods(); return getExactMethod(selector, argumentTypes, refScope); // try again since the problem methods have been removed