Package japa.parser.ast.comments

Examples of japa.parser.ast.comments.Comment


  @Override
  public Node visit(ArrayCreationExpr _n, Object _arg) {
    Type type_ = cloneNodes(_n.getType(), _arg);
    List<Expression> dimensions = visit(_n.getDimensions(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    ArrayCreationExpr r = new ArrayCreationExpr(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        type_, dimensions, _n.getArrayCount()
    );
View Full Code Here


  }

  @Override
  public Node visit(ArrayInitializerExpr _n, Object _arg) {
    List<Expression> values = visit(_n.getValues(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

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

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

    AssignExpr r = new AssignExpr(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        target, value, _n.getOperator());
    r.setComment(comment);
View Full Code Here

  @Override
  public Node visit(BinaryExpr _n, Object _arg) {
    Expression left = cloneNodes(_n.getLeft(), _arg);
    Expression right = cloneNodes(_n.getRight(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    BinaryExpr r = new BinaryExpr(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        left, right, _n.getOperator()
    );
View Full Code Here

  @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

  }

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

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

  @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

  }

  @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

  @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(),
        scope, typeArgs, _n.getField()
    );
View Full Code Here

  @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(),
        expr, type_
    );
View Full Code Here

TOP

Related Classes of japa.parser.ast.comments.Comment

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.