Examples of resolveTypeBinding()


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

          hardDep(tb2);
          print(CName.relative(tb2, type, true) + "::valueOf(");

          visits.add(new NodeInfo(node, ")"));
        } else if (expr.resolveUnboxing()) {
          ITypeBinding tb = expr.resolveTypeBinding().getErasure();
          if (TransformUtil.reverses.containsKey(tb
              .getQualifiedName())) {
            hardDep(tb);
            print("(");
            npc();
View Full Code Here

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

  }

  @Override
  public boolean visit(Assignment node) {
    Expression lhs = node.getLeftHandSide();
    ITypeBinding ltb = lhs.resolveTypeBinding();
    Expression rhs = node.getRightHandSide();
    ITypeBinding rtb = rhs.resolveTypeBinding();

    hardDep(rtb);
View Full Code Here

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

  @Override
  public boolean visit(Assignment node) {
    Expression lhs = node.getLeftHandSide();
    ITypeBinding ltb = lhs.resolveTypeBinding();
    Expression rhs = node.getRightHandSide();
    ITypeBinding rtb = rhs.resolveTypeBinding();

    hardDep(rtb);

    if (TransformUtil.same(ltb, String.class)
        && node.getOperator() == Operator.PLUS_ASSIGN) {
View Full Code Here

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

  }

  @Override
  public boolean visit(EnhancedForStatement node) {
    Expression expr = node.getExpression();
    ITypeBinding eb = expr.resolveTypeBinding();
    hardDep(eb);
    deps.setNpc();
    if (eb.isArray()) {
      printi("for(auto ");
      node.getParameter().getName().accept(this);
View Full Code Here

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

    boolean hidden = false;
    if (cast) {
      javaCast(tbe, tb);
    } else {
      hidden = hidden(expr.resolveTypeBinding(), vb);
    }

    if (hidden) {
      staticCast(tbe, vb.getDeclaringClass());
    }
View Full Code Here

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

    if (hidden) {
      staticCast(tbe, vb.getDeclaringClass());
    }

    npcAccept(expr);
    hardDep(expr.resolveTypeBinding());

    if (hidden) {
      print(")");
    }
View Full Code Here

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

    ITypeBinding tb = node.resolveTypeBinding();
    Expression left = node.getLeftOperand();
    Expression right = node.getRightOperand();

    ITypeBinding lt = left.resolveTypeBinding();
    ITypeBinding rt = right.resolveTypeBinding();

    if (TransformUtil.same(tb, String.class)) {
      print("::java::lang::StringBuilder().append(");

      castNull(left);
View Full Code Here

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

      }
    }

    Expression expr = node.getExpression();
    if (expr != null) {
      ITypeBinding etb = expr.resolveTypeBinding().getErasure();
      boolean isType = expr instanceof Name
          && ((Name) expr).resolveBinding() instanceof ITypeBinding;

      int parens = 0;
View Full Code Here

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

    push(new LocalVariableCreation(node.getName().getIdentifier(),
        getTypeSignature(elementBinding), typeDimension,
        elementBinding.isPrimitive(), initializer != null, fCounter));
    if (initializer != null) {
      initializer.accept(this);
      ITypeBinding expBindnig = initializer.resolveTypeBinding();
      if (expBindnig != null) {
        if (checkAutoBoxing(expBindnig, varTypeBinding)) {
          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
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.