Examples of resolveTypeBinding()


Examples of org.eclipse.jdt.core.dom.Expression.resolveTypeBinding()

          getTypeSignature(varargsElementType), argCount - paramCount
              + 1, varargsParameterType.getDimensions(), fCounter));
      while (iterator.hasNext()) {
        Expression argument = iterator.next();
        boolean storeRequired = checkAutoBoxing(
            argument.resolveTypeBinding(), varargsElementType);
        argument.accept(this);
        if (storeRequired) {
          storeInstruction();
        }
      }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Expression.resolveTypeBinding()

      Iterator<Expression> iterator = arguments.iterator();
      int i = 0;
      while (iterator.hasNext()) {
        Expression argument = iterator.next();
        boolean storeRequired = checkAutoBoxing(
            argument.resolveTypeBinding(), parameterTypes[i++]);
        argument.accept(this);
        if (storeRequired) {
          storeInstruction();
        }
      }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Expression.resolveTypeBinding()

      Iterator<Expression> iterator = arguments.iterator();
      // process the first arguments (no part of the variable argument)
      for (int i = 0; i < paramCount - 1; i++) {
        Expression argument = iterator.next();
        boolean storeRequired = checkAutoBoxing(
            argument.resolveTypeBinding(), parameterTypes[i]);
        argument.accept(this);
        if (storeRequired) {
          storeInstruction();
        }
      }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Expression.resolveTypeBinding()

          getTypeSignature(varargsElementType), argCount - paramCount
              + 1, varargsParameterType.getDimensions(), fCounter));
      while (iterator.hasNext()) {
        Expression argument = iterator.next();
        boolean storeRequired = checkAutoBoxing(
            argument.resolveTypeBinding(), varargsElementType);
        argument.accept(this);
        if (storeRequired) {
          storeInstruction();
        }
      }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Expression.resolveTypeBinding()

      Iterator<Expression> iterator = arguments.iterator();
      int i = 0;
      while (iterator.hasNext()) {
        Expression argument = iterator.next();
        boolean storeRequired = checkAutoBoxing(
            argument.resolveTypeBinding(), parameterTypes[i++]);
        argument.accept(this);
        if (storeRequired) {
          storeInstruction();
        }
      }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Expression.resolveTypeBinding()

        qualifiedName.addName(new NameInfo(methodInvocation.getName()).getName());
        call = f.newIdExpression(qualifiedName);
      } else {
        final Expression qualifier = methodInvocation.getExpression();
        final ICPPASTFieldReference fieldReference = f.newFieldReference(new NameInfo(methodInvocation.getName()).getName(), new ExpressionInfo(qualifier, typeDeclaration, compilationUnitInfo).getExpression());
        final ITypeBinding typeBinding = qualifier.resolveTypeBinding();
        if ((typeBinding != null) && !(typeBinding.isPrimitive() || typeBinding.isEnum())) {
          fieldReference.setIsPointerDereference(true);
        }
        call = fieldReference;
      }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Expression.resolveTypeBinding()

        } catch (RuntimeException e) {
          System.out.println("HELLO");
          throw e;
        }
        Element newNode = push("Constant");
        updateType(expr, expr.resolveTypeBinding());
        newNode.setAttribute("value", expr
            .resolveConstantExpressionValue().toString());
        newNode.setAttribute("node", node.getClass().getSimpleName());
        newNode.setAttribute(MAPPING_ATTRIBUTE, ((Element)oldNode).getAttribute(MAPPING_ATTRIBUTE));
      }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Expression.resolveTypeBinding()

    // Only remove the call to super if the class extends TestCase directly
    if (m_testCase != null) {
      List args = sci.arguments();
      if (args.size() == 1) {
        Expression arg = (Expression) args.get(0);
        ITypeBinding binding = arg.resolveTypeBinding();
        if (binding != null && String.class.getName().equals(binding.getBinaryName())) {
          m_superConstructorInvocation = sci;
        }
      }
    }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.FieldAccess.resolveTypeBinding()

        final IJavaElement elem = fieldAccess.resolveFieldBinding()
            .getJavaElement();
        if (elem.isReadOnly() || fieldAccess.resolveBoxing())
          throw new DefinitelyNotEnumerizableException(
              Messages.ASTNodeProcessor_SourceNotPresent, node);
        if (fieldAccess.resolveTypeBinding().isEqualTo(
            node.getAST().resolveWellKnownType("java.lang.Object"))) //$NON-NLS-1$
          throw new NonEnumerizableASTException(
              Messages.ASTNodeProcessor_IllegalArrayUpcast, fieldAccess);
        this.found.add(elem);
      }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Name.resolveTypeBinding()

        final IJavaElement elem = name.resolveBinding()
            .getJavaElement();
        if (elem.isReadOnly() || name.resolveBoxing())
          throw new DefinitelyNotEnumerizableException(
              Messages.ASTNodeProcessor_SourceNotPresent, node);
        if (name.resolveTypeBinding().isEqualTo(
            node.getAST().resolveWellKnownType("java.lang.Object"))) //$NON-NLS-1$
          throw new NonEnumerizableASTException(
              Messages.ASTNodeProcessor_IllegalArrayUpcast, name);
        this.found.add(elem);
      }
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.