/* * @see ASTVisitor#visit(MethodRefParameter) * @since 3.0 */ public boolean visit(MethodRefParameter node) { node.getType().accept(this); if (node.getAST().apiLevel() >= AST.JLS3) { if (node.isVarargs()) { this.fBuffer.append("..."); // $NON-NLS-1$ } } if (node.getName() != null) { this.fBuffer.append(" "); // $NON-NLS-1$ node.getName().accept(this); } return false; }
/* * @see ASTVisitor#visit(MethodRef) * @since 3.0 */ public boolean visit(MethodRef node) { if (node.getQualifier() != null) { node.getQualifier().accept(this); } this.fBuffer.append("#"); // $NON-NLS-1$ node.getName().accept(this); this.fBuffer.append("("); // $NON-NLS-1$ for (Iterator it = node.parameters().iterator(); it.hasNext(); ) { MethodRefParameter e = (MethodRefParameter) it.next(); e.accept(this); if (it.hasNext()) { this.fBuffer.append(","); // $NON-NLS-1$ } } this.fBuffer.append(")"); // $NON-NLS-1$ return false; }