Package org.eclipse.jdt.core.dom

Examples of org.eclipse.jdt.core.dom.ParenthesizedExpression


        assert rewrite != null;
        assert numberExpression != null;

        final AST ast = rewrite.getAST();
        InfixExpression andOddnessCheck = ast.newInfixExpression();
        ParenthesizedExpression parenthesizedExpression = ast.newParenthesizedExpression();
        InfixExpression andExpression = ast.newInfixExpression();

        andExpression.setLeftOperand((Expression) rewrite.createMoveTarget(numberExpression));
        andExpression.setOperator(AND);
        andExpression.setRightOperand(ast.newNumberLiteral("1"));
        parenthesizedExpression.setExpression(andExpression);
        andOddnessCheck.setLeftOperand(parenthesizedExpression);
        andOddnessCheck.setOperator(EQUALS);
        andOddnessCheck.setRightOperand(ast.newNumberLiteral("1"));

        return andOddnessCheck;
View Full Code Here


            }
        }
      }
    }
    else if(e instanceof ParenthesizedExpression){
      ParenthesizedExpression ex=(ParenthesizedExpression)e;
      processExpression(parent, ex.getExpression(), cu, resource, stack, monitor, HistoryDefinitionLocation.UNDEFINED,false);
    }
    else if(e instanceof CastExpression){
      CastExpression cex=(CastExpression)e;
      processExpression(parent, cex.getExpression(), cu, resource, stack, monitor, HistoryDefinitionLocation.UNDEFINED,false);
    }
View Full Code Here

      }
      break;
    }

    case ASTNode.PARENTHESIZED_EXPRESSION: {
      final ParenthesizedExpression pe = (ParenthesizedExpression) node;
      this.processExpression(pe.getExpression());
      break;
    }

    case ASTNode.SUPER_FIELD_ACCESS: {
      final SuperFieldAccess superFieldAccess = (SuperFieldAccess) node;
View Full Code Here

  public static boolean isNullLiteral(Expression e) {
    if (e instanceof NullLiteral)
      return true;
    if (e instanceof ParenthesizedExpression) {
      ParenthesizedExpression pe = (ParenthesizedExpression) e;
      return isNullLiteral(pe.getExpression());
    }
    return false;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.core.dom.ParenthesizedExpression

Copyright © 2018 www.massapicom. 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.