@Override public boolean visit(LambdaExpression node) { boolean hasParentheses= node.hasParentheses(); if (hasParentheses) this.fBuffer.append('('); for (Iterator<? extends VariableDeclaration> it= node.parameters().iterator(); it.hasNext(); ) { VariableDeclaration v= it.next(); v.accept(this); if (it.hasNext()) { this.fBuffer.append(",");//$NON-NLS-1$ } } if (hasParentheses) this.fBuffer.append(')'); this.fBuffer.append(" -> "); //$NON-NLS-1$ node.getBody().accept(this); return false; }
@Override public boolean visit(LambdaExpression node) { boolean hasParentheses = node.hasParentheses(); if (hasParentheses) this.buffer.append('('); for (Iterator it = node.parameters().iterator(); it.hasNext(); ) { VariableDeclaration v = (VariableDeclaration) it.next(); v.accept(this); if (it.hasNext()) { this.buffer.append(",");//$NON-NLS-1$ } } if (hasParentheses) this.buffer.append(')'); this.buffer.append(" -> "); //$NON-NLS-1$ node.getBody().accept(this); return false; }
@Override public boolean visit(LambdaExpression node) { boolean hasParentheses= node.hasParentheses(); if (hasParentheses) this.fBuffer.append('('); for (Iterator<? extends VariableDeclaration> it= node.parameters().iterator(); it.hasNext(); ) { VariableDeclaration v= it.next(); v.accept(this); if (it.hasNext()) { this.fBuffer.append(",");//$NON-NLS-1$ } } if (hasParentheses) this.fBuffer.append(')'); this.fBuffer.append(" -> "); //$NON-NLS-1$ node.getBody().accept(this); return false; }
public boolean visit(LambdaExpression node) { boolean hasParentheses = node.hasParentheses(); if (hasParentheses) this.buffer.append('('); for (Iterator it = node.parameters().iterator(); it.hasNext(); ) { VariableDeclaration v = (VariableDeclaration) it.next(); v.accept(this); if (it.hasNext()) { this.buffer.append(",");//$NON-NLS-1$ } } if (hasParentheses) this.buffer.append(')'); this.buffer.append(" -> "); //$NON-NLS-1$ node.getBody().accept(this); return false; }
public boolean visit(LambdaExpression node) { boolean hasParentheses = node.hasParentheses(); if (hasParentheses) this.buffer.append('('); for (Iterator it = node.parameters().iterator(); it.hasNext(); ) { VariableDeclaration v = (VariableDeclaration) it.next(); v.accept(this); if (it.hasNext()) { this.buffer.append(",");//$NON-NLS-1$ } } if (hasParentheses) this.buffer.append(')'); this.buffer.append(" -> "); //$NON-NLS-1$ node.getBody().accept(this); return false; }
public boolean visit(LambdaExpression node) { boolean hasParentheses = node.hasParentheses(); if (hasParentheses) this.buffer.append('('); for (Iterator it = node.parameters().iterator(); it.hasNext(); ) { VariableDeclaration v = (VariableDeclaration) it.next(); v.accept(this); if (it.hasNext()) { this.buffer.append(",");//$NON-NLS-1$ } } if (hasParentheses) this.buffer.append(')'); this.buffer.append(" -> "); //$NON-NLS-1$ node.getBody().accept(this); return false; }
public boolean visit(LambdaExpression node) { boolean hasParentheses = node.hasParentheses(); if (hasParentheses) this.buffer.append('('); for (Iterator it = node.parameters().iterator(); it.hasNext(); ) { VariableDeclaration v = (VariableDeclaration) it.next(); v.accept(this); if (it.hasNext()) { this.buffer.append(",");//$NON-NLS-1$ } } if (hasParentheses) this.buffer.append(')'); this.buffer.append(" -> "); //$NON-NLS-1$ node.getBody().accept(this); return false; }