Package japa.parser.ast.expr

Examples of japa.parser.ast.expr.Expression


  }

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

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


    return r;
  }

  @Override
  public Node visit(ConditionalExpr _n, Object _arg) {
    Expression condition = cloneNodes(_n.getCondition(), _arg);
    Expression thenExpr = cloneNodes(_n.getThenExpr(), _arg);
    Expression elseExpr = cloneNodes(_n.getElseExpr(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    ConditionalExpr r = new ConditionalExpr(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        condition, thenExpr, elseExpr
View Full Code Here

    return r;
  }

  @Override
  public Node visit(EnclosedExpr _n, Object _arg) {
    Expression inner = cloneNodes(_n.getInner(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

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

    return r;
  }

  @Override
  public Node visit(FieldAccessExpr _n, Object _arg) {
    Expression scope = cloneNodes(_n.getScope(), _arg);
    List<Type> typeArgs = visit(_n.getTypeArgs(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

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

    return r;
  }

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

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

    return r;
  }

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

    MethodCallExpr r = new MethodCallExpr(
View Full Code Here

    return r;
  }

  @Override
  public Node visit(ObjectCreationExpr _n, Object _arg) {
    Expression scope = cloneNodes(_n.getScope(), _arg);
    ClassOrInterfaceType type_ = cloneNodes(_n.getType(), _arg);
    List<Type> typeArgs = visit(_n.getTypeArgs(), _arg);
    List<Expression> args = visit(_n.getArgs(), _arg);
    List<BodyDeclaration> anonymousBody = visit(_n.getAnonymousClassBody(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);
View Full Code Here

    return r;
  }

  @Override
  public Node visit(ThisExpr _n, Object _arg) {
    Expression classExpr = cloneNodes(_n.getClassExpr(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

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

    return r;
  }

  @Override
  public Node visit(SuperExpr _n, Object _arg) {
    Expression classExpr = cloneNodes(_n.getClassExpr(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

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

    return r;
  }

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

    UnaryExpr r = new UnaryExpr(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        expr, _n.getOperator()
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.