Package org.eclipse.jdt.core.dom

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


    Expression initializer = node.getInitializer();
    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


      }
      Expression rightOperand = node.getRightOperand();
      if (visit(rightOperand, false)) {
        if (firstConstant == null
            || !isReplacedByConstantValue(rightOperand)) {
          rightOperand.accept(this);
          return false;
        }
      } else {
        if (isReplacedByConstantValue(rightOperand)) {
          if (firstConstant == null) {
View Full Code Here

            fLocationFound = true;
            fLocationType = LOCATION_LINE;
            fTypeName = computeTypeName(node);
          return false;
        }
        initializer.accept(this);
      } else {
        // the variable has no initializer
        int offset = node.getName().getStartPosition();
        // check if the breakpoint is to be set on the line which
        // contains the name of the field
View Full Code Here

        boolean storeRequired = false;
        if (rightBinding.isPrimitive()) {
          boxing(leftBinding, rightBinding);
          storeRequired = true;
        }
        rightHandSide.accept(this);
        if (storeRequired) {
          storeInstruction(); // boxing
        }

      } else {
View Full Code Here

        push(new Dup());
        storeInstruction(); // dupe
        storeInstruction(); // un-boxing

        boolean storeRequired = unBoxing(rightBinding);
        rightHandSide.accept(this);
        if (storeRequired) {
          storeInstruction(); // un-boxing
        }

        storeInstruction(); // operation
View Full Code Here

        return false;
      }

      leftHandSide.accept(this);
      boolean storeRequired = unBoxing(rightBinding);
      rightHandSide.accept(this);
      if (storeRequired) {
        storeInstruction();
      }
    }
View Full Code Here

    storeInstruction();

    if (isInstanceMemberType) {
      Expression optionalExpression = node.getExpression();
      if (optionalExpression != null) {
        optionalExpression.accept(this);
      } else {
        // for a non-static inner class, check if we are not in a static
        // context (method)
        ASTNode parent = node;
        do {
View Full Code Here

      String fieldId = fieldName.getIdentifier();

      if (Modifier.isStatic(fieldBinding.getModifiers())) {
        push(new PushStaticFieldVariable(fieldId,
            getTypeName(declaringTypeBinding), fCounter));
        expression.accept(this);
        addPopInstruction();
      } else {
        if (declaringTypeBinding == null) { // it is a field without
                          // declaring type => it is
                          // the special length array
View Full Code Here

            return false;
          }
          push(new PushFieldVariable(fieldId,
              getTypeSignature(declaringTypeBinding), fCounter));
        }
        expression.accept(this);
      }
    }
    return false;
  }
View Full Code Here

    push(new NoOp(fCounter));

    push(new NoOp(fCounter));
    for (Iterator<Expression> iter = node.initializers().iterator(); iter.hasNext();) {
      Expression expr = iter.next();
      expr.accept(this);
      addPopInstructionIfNeeded(expr);
    }
    storeInstruction();

    Expression condition = node.getExpression();
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.