Examples of ExpressionStmt


Examples of japa.parser.ast.stmt.ExpressionStmt

  @Override
  public Node visit(ExpressionStmt _n, Object _arg) {
    Expression expr = cloneNodes(_n.getExpression(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    ExpressionStmt r = new ExpressionStmt(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        expr
    );
    r.setComment(comment);
    return r;
  }
View Full Code Here

Examples of japa.parser.ast.stmt.ExpressionStmt

  @Override public Boolean visit(final EmptyStmt n1, final Node arg) {
    return Boolean.TRUE;
  }

  @Override public Boolean visit(final ExpressionStmt n1, final Node arg) {
    final ExpressionStmt n2 = (ExpressionStmt) arg;

    if (!nodeEquals(n1.getExpression(), n2.getExpression())) {
      return Boolean.FALSE;
    }

    return Boolean.TRUE;
  }
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.