Package japa.parser.ast.comments

Examples of japa.parser.ast.comments.Comment


  }

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

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


  @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

  @Override
  public Node visit(NormalAnnotationExpr _n, Object _arg) {
    NameExpr name = cloneNodes(_n.getName(), _arg);
    List<MemberValuePair> pairs = visit(_n.getPairs(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    NormalAnnotationExpr r = new NormalAnnotationExpr(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        name, pairs
    );
View Full Code Here

  }

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

  }

  @Override
  public Node visit(TypeDeclarationStmt _n, Object _arg) {
    TypeDeclaration typeDecl = cloneNodes(_n.getTypeDeclaration(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

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

  @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

  }

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

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

  }

  @Override
  public Node visit(LabeledStmt _n, Object _arg) {
    Statement stmt = cloneNodes(_n.getStmt(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    LabeledStmt r = new LabeledStmt(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        _n.getLabel(), stmt
    );
View Full Code Here

    return r;
  }

  @Override
  public Node visit(EmptyStmt _n, Object _arg) {
    Comment comment = cloneNodes(_n.getComment(), _arg);

    EmptyStmt r = new EmptyStmt(_n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn());
    r.setComment(comment);
    return r;
  }
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.