Package japa.parser.ast.expr

Examples of japa.parser.ast.expr.Expression


  }

  @Override
  public Node visit(SingleMemberAnnotationExpr _n, Object _arg) {
    NameExpr name = cloneNodes(_n.getName(), _arg);
    Expression memberValue = cloneNodes(_n.getMemberValue(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    SingleMemberAnnotationExpr r = new SingleMemberAnnotationExpr(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        name, memberValue
View Full Code Here


    return r;
  }

  @Override
  public Node visit(MemberValuePair _n, Object _arg) {
    Expression value = cloneNodes(_n.getValue(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    MemberValuePair r = new MemberValuePair(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        _n.getName(), value
View Full Code Here

  }

  @Override
  public Node visit(ExplicitConstructorInvocationStmt _n, Object _arg) {
    List<Type> typeArgs = visit(_n.getTypeArgs(), _arg);
    Expression expr = cloneNodes(_n.getExpr(), _arg);
    List<Expression> args = visit(_n.getArgs(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    ExplicitConstructorInvocationStmt r = new ExplicitConstructorInvocationStmt(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
View Full Code Here

    return r;
  }

  @Override
  public Node visit(AssertStmt _n, Object _arg) {
    Expression check = cloneNodes(_n.getCheck(), _arg);
    Expression message = cloneNodes(_n.getMessage(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    AssertStmt r = new AssertStmt(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        check, message
View Full Code Here

    return r;
  }

  @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
View Full Code Here

    return r;
  }

  @Override
  public Node visit(SwitchStmt _n, Object _arg) {
    Expression selector = cloneNodes(_n.getSelector(), _arg);
    List<SwitchEntryStmt> entries = visit(_n.getEntries(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    SwitchStmt r = new SwitchStmt(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
View Full Code Here

    return r;
  }

  @Override
  public Node visit(SwitchEntryStmt _n, Object _arg) {
    Expression label = cloneNodes(_n.getLabel(), _arg);
    List<Statement> stmts = visit(_n.getStmts(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    SwitchEntryStmt r = new SwitchEntryStmt(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
View Full Code Here

    return r;
  }

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

    ReturnStmt r = new ReturnStmt(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        expr
View Full Code Here

    return r;
  }

  @Override
  public Node visit(IfStmt _n, Object _arg) {
    Expression condition = cloneNodes(_n.getCondition(), _arg);
    Statement thenStmt = cloneNodes(_n.getThenStmt(), _arg);
    Statement elseStmt = cloneNodes(_n.getElseStmt(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    IfStmt r = new IfStmt(
View Full Code Here

    return r;
  }

  @Override
  public Node visit(WhileStmt _n, Object _arg) {
    Expression condition = cloneNodes(_n.getCondition(), _arg);
    Statement body = cloneNodes(_n.getBody(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    WhileStmt r = new WhileStmt(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
View Full Code Here

TOP

Related Classes of japa.parser.ast.expr.Expression

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.