Examples of inferInvocationType()


Examples of org.eclipse.jdt.internal.compiler.lookup.InferenceContext18.inferInvocationType()

public TypeBinding checkAgainstFinalTargetType(TypeBinding targetType, Scope scope) {
  if (this.binding instanceof ParameterizedGenericMethodBinding) {
    InferenceContext18 ctx = getInferenceContext((ParameterizedMethodBinding) this.binding);
    if (ctx != null && ctx.stepCompleted < InferenceContext18.TYPE_INFERRED) {
      this.expectedType = targetType;
      MethodBinding updatedBinding = ctx.inferInvocationType(this, (ParameterizedGenericMethodBinding) this.binding);
      if (updateBindings(updatedBinding, targetType)) {
        ASTNode.resolvePolyExpressionArguments(this, updatedBinding, scope);
      }
    }
  }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.InferenceContext18.inferInvocationType()

            ParameterizedGenericMethodBinding parameterizedMethod = (ParameterizedGenericMethodBinding) binding;
            InferenceContext18 innerContext = innerInvocation.getInferenceContext(parameterizedMethod);
            if (innerContext != null) {
              if (!innerContext.hasResultFor(parameterType)) {
                argument.setExpectedType(parameterType);
                MethodBinding improvedBinding = innerContext.inferInvocationType(innerInvocation, parameterizedMethod);
                if (!improvedBinding.isValidBinding()) {
                  innerContext.reportInvalidInvocation(innerInvocation, improvedBinding);
                }
                if (innerInvocation.updateBindings(improvedBinding, parameterType)) {
                  resolvePolyExpressionArguments(innerInvocation, improvedBinding, scope);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.