public TypeBinding getSAMType(Scope scope) { TypeBinding samType = null; for (int i = 0, max = this.intersectingTypes.length; i < max; i++) { TypeBinding typeBinding = this.intersectingTypes[i]; MethodBinding methodBinding = typeBinding.getSingleAbstractMethod(scope, true); // Why doesn't getSingleAbstractMethod do as the javadoc says, and return null // when it is not a SAM type if (methodBinding instanceof ProblemMethodBinding && ((ProblemMethodBinding) methodBinding).problemId()==ProblemReasons.NoSuchSingleAbstractMethod) { continue; } if (samType != null) { return null; // There is more than one (!), so we don't know which } samType = typeBinding; } return samType; }
public TypeBinding getSAMType(Scope scope) { TypeBinding samType = null; for (int i = 0, max = this.intersectingTypes.length; i < max; i++) { TypeBinding typeBinding = this.intersectingTypes[i]; MethodBinding methodBinding = typeBinding.getSingleAbstractMethod(scope, true); // Why doesn't getSingleAbstractMethod do as the javadoc says, and return null // when it is not a SAM type if (methodBinding instanceof ProblemMethodBinding && ((ProblemMethodBinding) methodBinding).problemId()==ProblemReasons.NoSuchSingleAbstractMethod) { continue; } if (samType != null) { return null; // There is more than one (!), so we don't know which } samType = typeBinding; } return samType; }
public TypeBinding getSAMType(Scope scope) { TypeBinding samType = null; for (int i = 0, max = this.intersectingTypes.length; i < max; i++) { TypeBinding typeBinding = this.intersectingTypes[i]; MethodBinding methodBinding = typeBinding.getSingleAbstractMethod(scope, true); // Why doesn't getSingleAbstractMethod do as the javadoc says, and return null // when it is not a SAM type if (methodBinding instanceof ProblemMethodBinding && ((ProblemMethodBinding) methodBinding).problemId()==ProblemReasons.NoSuchSingleAbstractMethod) { continue; } if (samType != null) { return null; // There is more than one (!), so we don't know which } samType = typeBinding; } return samType; }
public TypeBinding[] getMarkerInterfaces() { if (this.expectedType instanceof IntersectionCastTypeBinding) { Set markerBindings = new LinkedHashSet(); TypeBinding[] intersectionTypes = ((IntersectionCastTypeBinding)this.expectedType).intersectingTypes; for (int i = 0,max = intersectionTypes.length; i < max; i++) { TypeBinding typeBinding = intersectionTypes[i]; MethodBinding methodBinding = typeBinding.getSingleAbstractMethod(this.scope, true); // Why doesn't getSingleAbstractMethod do as the javadoc says, and return null // when it is not a SAM type if (!(methodBinding instanceof ProblemMethodBinding && ((ProblemMethodBinding)methodBinding).problemId()==ProblemReasons.NoSuchSingleAbstractMethod)) { continue; } if (typeBinding.id == TypeIds.T_JavaIoSerializable) { // Serializable is captured as a bitflag continue; } markerBindings.add(typeBinding); } if (markerBindings.size() > 0) { return (TypeBinding[])markerBindings.toArray(new TypeBinding[markerBindings.size()]); } } return null; }
public TypeBinding[] getMarkerInterfaces() { if (this.expectedType instanceof IntersectionCastTypeBinding) { Set markerBindings = new LinkedHashSet(); TypeBinding[] intersectionTypes = ((IntersectionCastTypeBinding)this.expectedType).intersectingTypes; for (int i = 0,max = intersectionTypes.length; i < max; i++) { TypeBinding typeBinding = intersectionTypes[i]; MethodBinding methodBinding = typeBinding.getSingleAbstractMethod(this.scope, true); // Why doesn't getSingleAbstractMethod do as the javadoc says, and return null // when it is not a SAM type if (!(methodBinding instanceof ProblemMethodBinding && ((ProblemMethodBinding)methodBinding).problemId()==ProblemReasons.NoSuchSingleAbstractMethod)) { continue; } if (typeBinding.id == TypeIds.T_JavaIoSerializable) { // Serializable is captured as a bitflag continue; } markerBindings.add(typeBinding); } if (markerBindings.size() > 0) { return (TypeBinding[])markerBindings.toArray(new TypeBinding[markerBindings.size()]); } } return null; }
public TypeBinding[] getMarkerInterfaces() { if (this.expectedType instanceof IntersectionCastTypeBinding) { Set markerBindings = new LinkedHashSet(); TypeBinding[] intersectionTypes = ((IntersectionCastTypeBinding)this.expectedType).intersectingTypes; for (int i = 0,max = intersectionTypes.length; i < max; i++) { TypeBinding typeBinding = intersectionTypes[i]; MethodBinding methodBinding = typeBinding.getSingleAbstractMethod(this.scope, true); // Why doesn't getSingleAbstractMethod do as the javadoc says, and return null // when it is not a SAM type if (!(methodBinding instanceof ProblemMethodBinding && ((ProblemMethodBinding)methodBinding).problemId()==ProblemReasons.NoSuchSingleAbstractMethod)) { continue; } if (typeBinding.id == TypeIds.T_JavaIoSerializable) { // Serializable is captured as a bitflag continue; } markerBindings.add(typeBinding); } if (markerBindings.size() > 0) { return (TypeBinding[])markerBindings.toArray(new TypeBinding[markerBindings.size()]); } } return null; }
if (!method.isValidBinding() && ((ProblemMethodBinding)method).problemId() == ProblemReasons.Ambiguous) {
if (!method.isValidBinding() && ((ProblemMethodBinding)method).problemId() == ProblemReasons.Ambiguous) {
if (!method.isValidBinding() && ((ProblemMethodBinding)method).problemId() == ProblemReasons.Ambiguous) {
if (!method.isValidBinding() && ((ProblemMethodBinding)method).problemId() == ProblemReasons.Ambiguous) {
if (!method.isValidBinding() && ((ProblemMethodBinding)method).problemId() == ProblemReasons.Ambiguous) {
if (!method.isValidBinding() && ((ProblemMethodBinding)method).problemId() == ProblemReasons.Ambiguous) {
if (!(this.binding = scope.getConstructor(allocatedType, argumentTypes, this)).isValidBinding()) { if (this.binding instanceof ProblemMethodBinding && ((ProblemMethodBinding) this.binding).problemId() == NotVisible) { if (this.evaluationContext.declaringTypeName != null) { this.delegateThis = scope.getField(scope.enclosingSourceType(), DELEGATE_THIS, this);
&& ((ProblemMethodBinding) this.binding).problemId() == ProblemReasons.NotVisible) { if (this.evaluationContext.declaringTypeName != null) { this.delegateThis = scope.getField(scope.enclosingSourceType(), EvaluationConstants.DELEGATE_THIS, this);
&& ((ProblemMethodBinding) this.binding).problemId() == ProblemReasons.NotVisible) { if (this.evaluationContext.declaringTypeName != null) { this.delegateThis = scope.getField(scope.enclosingSourceType(), EvaluationConstants.DELEGATE_THIS, this);
&& ((ProblemMethodBinding) this.binding).problemId() == NotVisible) { if (this.evaluationContext.declaringTypeName != null) { this.delegateThis = scope.getField(scope.enclosingSourceType(), DELEGATE_THIS, this);
&& ((ProblemMethodBinding) this.binding).problemId() == ProblemReasons.NotVisible) { if (this.evaluationContext.declaringTypeName != null) { this.delegateThis = scope.getField(scope.enclosingSourceType(), EvaluationConstants.DELEGATE_THIS, this);
&& ((ProblemMethodBinding) this.binding).problemId() == NotVisible) { if (this.evaluationContext.declaringTypeName != null) { this.delegateThis = scope.getField(scope.enclosingSourceType(), DELEGATE_THIS, this);
&& ((ProblemMethodBinding) this.binding).problemId() == NotVisible) { if (this.evaluationContext.declaringTypeName != null) { this.delegateThis = scope.getField(scope.enclosingSourceType(), DELEGATE_THIS, this);
&& ((ProblemMethodBinding) this.binding).problemId() == NotVisible) { if (this.evaluationContext.declaringTypeName != null) { this.delegateThis = scope.getField(scope.enclosingSourceType(), DELEGATE_THIS, this);