Package japa.parser.ast.body

Examples of japa.parser.ast.body.MultiTypeParameter


    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
    );
    r.setComment(comment);
    return r;
  }
View Full Code Here


    return r;
  }

  @Override
  public Node visit(CatchClause _n, Object _arg) {
    MultiTypeParameter except = cloneNodes(_n.getExcept(), _arg);
    BlockStmt catchBlock = cloneNodes(_n.getCatchBlock(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    CatchClause r = new CatchClause(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        except.getModifiers(), except.getAnnotations(), except.getTypes(), except.getId(), catchBlock
    );
    r.setComment(comment);
    return r;
  }
View Full Code Here

        setExcept(except);
        setCatchBlock(catchBlock);
    }
 
    public CatchClause(int exceptModifier, List<AnnotationExpr> exceptAnnotations, List<Type> exceptTypes, VariableDeclaratorId exceptId, BlockStmt catchBlock) {
        this(new MultiTypeParameter(exceptModifier, exceptAnnotations, exceptTypes, exceptId), catchBlock);
    }
View Full Code Here

    public CatchClause(final int beginLine, final int beginColumn, final int endLine, final int endColumn,
          final int exceptModifier, final List<AnnotationExpr> exceptAnnotations, final List<Type> exceptTypes,
          final VariableDeclaratorId exceptId, final BlockStmt catchBlock) {
        super(beginLine, beginColumn, endLine, endColumn);
        setExcept(new MultiTypeParameter(beginLine, beginColumn, endLine, endColumn, exceptModifier, exceptAnnotations, exceptTypes, exceptId));
        setCatchBlock(catchBlock);
    }
View Full Code Here

    }
    return visit((BaseParameter) n1, arg);
  }
 
  @Override public Boolean visit(MultiTypeParameter n1, Node arg) {
    MultiTypeParameter n2 = (MultiTypeParameter) arg;
    if (n1.getTypes().size() != n2.getTypes().size()) {
      return Boolean.FALSE;
    }
    Iterator<Type> n1types = n1.getTypes().iterator();
    Iterator<Type> n2types = n2.getTypes().iterator();
    while (n1types.hasNext() && n2types.hasNext()) {
      if (!nodeEquals(n1types.next(), n2types.next())) {
        return Boolean.FALSE;
      }
    }
View Full Code Here

TOP

Related Classes of japa.parser.ast.body.MultiTypeParameter

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.