Examples of expectedType()


Examples of org.eclipse.jdt.internal.compiler.ast.Expression.expectedType()

    int len = this.innerPolies.size();
    for (int i = 0; i < len; i++) {
      Expression inner = (Expression) this.innerPolies.get(i);
      if (inner instanceof Invocation) {
        Invocation innerMessage = (Invocation) inner;
        TypeBinding innerTargetType = inner.expectedType(); // may be set from acceptPendingPolyArguments
        if (innerTargetType != null && !innerTargetType.isProperType(true))
          innerTargetType = null;
        MethodBinding binding = innerMessage.binding(innerTargetType, innerTargetType != null, this.scope);
        if (binding == null)
          continue;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.LambdaExpression.expectedType()

    // Compare FunctionalInterfaceClass
    aload_0();
    invoke(Opcodes.OPC_invokevirtual, 1, 1, ConstantPool.JavaLangInvokeSerializedLambdaConstantPoolName,
        ConstantPool.GetFunctionalInterfaceClass, ConstantPool.GetFunctionalInterfaceClassSignature);
    String functionalInterface = null;
    final TypeBinding expectedType = lambdaEx.expectedType();
    if (expectedType instanceof IntersectionCastTypeBinding) {
      functionalInterface = new String(((IntersectionCastTypeBinding)expectedType).getSAMType(scope).constantPoolName());
    } else {
      functionalInterface = new String(expectedType.constantPoolName());
    }
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.