Package org.eclipse.jdt.core.dom

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


        _output("super(");

        for (Iterator it = node.arguments().iterator(); it.hasNext();) {
            Expression e = (Expression) it.next();
            e.accept(this);

            if (it.hasNext()) {
                _output(", ");
            }
        }
View Full Code Here


        node.getName().accept(this);
        _output("(");

        for (Iterator it = node.arguments().iterator(); it.hasNext();) {
            Expression e = (Expression) it.next();
            e.accept(this);

            if (it.hasNext()) {
                _output(", ");
            }
        }
View Full Code Here

                if (lInit != null) {
                    FamixAssociation access = getFactory().createAccess(getCurrMethod(), lField);
                    access.setSourceAnchor(getSourceAnchor(fragment));
                    getModel().addRelation(access);

                    lInit.accept(getCrawler());
                }
            } else {
                sLogger.warn("Could not get name of variable declaration " + fragment);
            }
        }
View Full Code Here

    private Set<String> findVariableReferences(List<?> arguments) {
        final Set<String> refs = new HashSet<String>();
        for (Object argumentObj : arguments) {
            Expression argument = (Expression) argumentObj;
            argument.accept(new ASTVisitor() {

                @Override
                public boolean visit(SimpleName node) {
                    if (!(node.getParent() instanceof Type)) {
                        refs.add(node.getFullyQualifiedName());
View Full Code Here

  public boolean visit(ForStatement node) {
    printIndent();
    this.buffer.append("for (");//$NON-NLS-1$
    for (Iterator it = node.initializers().iterator(); it.hasNext(); ) {
      Expression e = (Expression) it.next();
      e.accept(this);
      if (it.hasNext()) this.buffer.append(", ");//$NON-NLS-1$
    }
    this.buffer.append("; ");//$NON-NLS-1$
    if (node.getExpression() != null) {
      node.getExpression().accept(this);
View Full Code Here

      node.getExpression().accept(this);
    }
    this.buffer.append("; ");//$NON-NLS-1$
    for (Iterator it = node.updaters().iterator(); it.hasNext(); ) {
      Expression e = (Expression) it.next();
      e.accept(this);
      if (it.hasNext()) this.buffer.append(", ");//$NON-NLS-1$
    }
    this.buffer.append(") ");//$NON-NLS-1$
    node.getBody().accept(this);
    return false;
View Full Code Here

    if (extendedOperands.size() != 0) {
      this.buffer.append(' ');
      for (Iterator it = extendedOperands.iterator(); it.hasNext(); ) {
        this.buffer.append(node.getOperator().toString()).append(' ');
        Expression e = (Expression) it.next();
        e.accept(this);
      }
    }
    return false;
  }
View Full Code Here

    }
    node.getName().accept(this);
    this.buffer.append("(");//$NON-NLS-1$
    for (Iterator it = node.arguments().iterator(); it.hasNext(); ) {
      Expression e = (Expression) it.next();
      e.accept(this);
      if (it.hasNext()) {
        this.buffer.append(",");//$NON-NLS-1$
      }
    }
    this.buffer.append(")");//$NON-NLS-1$
View Full Code Here

      }
    }
    this.buffer.append("super(");//$NON-NLS-1$
    for (Iterator it = node.arguments().iterator(); it.hasNext(); ) {
      Expression e = (Expression) it.next();
      e.accept(this);
      if (it.hasNext()) {
        this.buffer.append(",");//$NON-NLS-1$
      }
    }
    this.buffer.append(");\n");//$NON-NLS-1$
View Full Code Here

    }
    node.getName().accept(this);
    this.buffer.append("(");//$NON-NLS-1$
    for (Iterator it = node.arguments().iterator(); it.hasNext(); ) {
      Expression e = (Expression) it.next();
      e.accept(this);
      if (it.hasNext()) {
        this.buffer.append(",");//$NON-NLS-1$
      }
    }
    this.buffer.append(")");//$NON-NLS-1$
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.