Package japa.parser.ast.comments

Examples of japa.parser.ast.comments.Comment


  @Override
  public Node visit(MultiTypeParameter _n, Object _arg) {
    List<AnnotationExpr> annotations = visit(_n.getAnnotations(), _arg);
    List<Type> types = visit(_n.getTypes(), _arg);
    VariableDeclaratorId id = cloneNodes(_n.getId(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    MultiTypeParameter r = new MultiTypeParameter(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        _n.getModifiers(), annotations, types, id
    );
View Full Code Here


  }

  @Override
  public Node visit(EmptyMemberDeclaration _n, Object _arg) {
    JavadocComment javaDoc = cloneNodes(_n.getJavaDoc(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    EmptyMemberDeclaration r = new EmptyMemberDeclaration(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn()
    );
    r.setComment(comment);
View Full Code Here

  @Override
  public Node visit(InitializerDeclaration _n, Object _arg) {
    JavadocComment javaDoc = cloneNodes(_n.getJavaDoc(), _arg);
    BlockStmt block = cloneNodes(_n.getBlock(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    InitializerDeclaration r = new InitializerDeclaration(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
         _n.isStatic(), block
    );
View Full Code Here

    return r;
  }

  @Override
  public Node visit(JavadocComment _n, Object _arg) {
    Comment comment = cloneNodes(_n.getComment(), _arg);
    JavadocComment r = new JavadocComment(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        _n.getContent()
    );
    r.setComment(comment);
View Full Code Here

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

    ClassOrInterfaceType r = new ClassOrInterfaceType(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        scope, _n.getName(), typeArgs
    );
View Full Code Here

    return r;
  }

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

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

  }

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

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

    return r;
  }

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

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

  @Override
  public Node visit(WildcardType _n, Object _arg) {
    ReferenceType ext = cloneNodes(_n.getExtends(), _arg);
    ReferenceType sup = cloneNodes(_n.getSuper(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    WildcardType r = new WildcardType(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        ext, sup
    );
View Full Code Here

  @Override
  public Node visit(ArrayAccessExpr _n, Object _arg) {
    Expression name = cloneNodes(_n.getName(), _arg);
    Expression index = cloneNodes(_n.getIndex(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    ArrayAccessExpr r = new ArrayAccessExpr(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        name, index
    );
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.