@Override public void visitFieldReference(FieldReference node) { lombok.ast.Select select = new lombok.ast.Select(); select.astIdentifier(toIdentifier(node.token, node.nameSourcePosition)); select.astOperand((lombok.ast.Expression) toTree(node.receiver)); set(node, setPosition(node, select)); }
@Override public void visitFieldReference(FieldReference node) { lombok.ast.Select select = new lombok.ast.Select(); select.astIdentifier(toIdentifier(node.token, node.nameSourcePosition)); select.astOperand((lombok.ast.Expression) toTree(node.receiver)); set(node, setPosition(node, select)); }
@Override public void visitFieldReference(FieldReference node) { lombok.ast.Select select = new lombok.ast.Select(); select.astIdentifier(toIdentifier(node.token, node.nameSourcePosition)); select.astOperand((lombok.ast.Expression) toTree(node.receiver)); set(node, setPosition(node, select)); }
public Node createSelectOperation(Node identifier) { return posify(new Select().astIdentifier(createIdentifierIfNeeded(identifier, currentPos()))); }
public Node createSelectOperation(Node identifier) { return posify(new Select().astIdentifier(createIdentifierIfNeeded(identifier, currentPos()))); }
private lombok.ast.Expression toSelect(char[][] tokens, long[] positions) { if (tokens.length < 2) return null; if (tokens.length != positions.length) throw new IllegalStateException("bug"); lombok.ast.Identifier current0 = toIdentifier(tokens[0], positions[0]); lombok.ast.Expression current = new lombok.ast.VariableReference().astIdentifier(current0); current.setPosition(current0.getPosition()); for (int i = 1; i < tokens.length; i++) { lombok.ast.Select select = new lombok.ast.Select().astIdentifier(toIdentifier(tokens[i], positions[i])); select.astOperand(current); current = select; } return current; }
public Node createSelectOperation(Node identifier) { return posify(new Select().astIdentifier(createIdentifierIfNeeded(identifier, currentPos()))); }
private lombok.ast.Expression toSelect(char[][] tokens, long[] positions) { if (tokens.length < 2) return null; if (tokens.length != positions.length) throw new IllegalStateException("bug"); lombok.ast.Identifier current0 = toIdentifier(tokens[0], positions[0]); lombok.ast.Expression current = new lombok.ast.VariableReference().astIdentifier(current0); current.setPosition(current0.getPosition()); for (int i = 1; i < tokens.length; i++) { lombok.ast.Select select = new lombok.ast.Select().astIdentifier(toIdentifier(tokens[i], positions[i])); select.astOperand(current); current = select; } return current; }
private lombok.ast.Expression toSelect(char[][] tokens, long[] positions) { if (tokens.length < 2) return null; if (tokens.length != positions.length) throw new IllegalStateException("bug"); lombok.ast.Identifier current0 = toIdentifier(tokens[0], positions[0]); lombok.ast.Expression current = new lombok.ast.VariableReference().astIdentifier(current0); current.setPosition(current0.getPosition()); for (int i = 1; i < tokens.length; i++) { lombok.ast.Select select = new lombok.ast.Select().astIdentifier(toIdentifier(tokens[i], positions[i])); select.astOperand(current); current = select; } return current; }
set(node, new Select().astIdentifier(id).rawOperand(toTree(node.getExpression())));
set(node, new Select().astIdentifier(id).rawOperand(toTree(node.getExpression())));
set(node, new Select().astIdentifier(id).rawOperand(toTree(node.getExpression())));