/** * Sets the position of {@code node} to {@code position}, and then does the same for all of {@code node}'s children, recursively. */ public static Node setAllPositions(Node node, Position position) { node.setPosition(position); for (Node child : node.getChildren()) setAllPositions(child, position); return node; }
/** * Sets the position of {@code node} to {@code position}, and then does the same for all of {@code node}'s children, recursively. */ public static Node setAllPositions(Node node, Position position) { node.setPosition(position); for (Node child : node.getChildren()) setAllPositions(child, position); return node; }
/** * Sets the position of {@code node} to {@code position}, and then does the same for all of {@code node}'s children, recursively. */ public static Node setAllPositions(Node node, Position position) { node.setPosition(position); for (Node child : node.getChildren()) setAllPositions(child, position); return node; }
Iterator<Node> iterator = parent.getChildren().iterator(); while (iterator.hasNext()) { if (iterator.next() == sibling) {
for (lombok.ast.Node rootNode : compilationUnit.getChildren()) { if (rootNode instanceof ImportDeclaration) { ImportDeclaration importDeclaration = (ImportDeclaration) rootNode;
for (lombok.ast.Node subclass : body.getChildren()) { if (subclass instanceof ClassDeclaration) { String className = ((ClassDeclaration) subclass).astName().astValue(); for (lombok.ast.Node innerBody : subclass.getChildren()) { if (innerBody instanceof NormalTypeBody) { for (lombok.ast.Node field : innerBody.getChildren()) { if (field instanceof VariableDeclaration) { for (lombok.ast.Node child : field.getChildren()) { if (child instanceof VariableDefinition) { VariableDefinition def =
Statement statement = getParentOfType(node, Statement.class, false); if (statement != null) { ListIterator<Node> iterator = statement.getParent().getChildren().listIterator(); while (iterator.hasNext()) { if (iterator.next() == statement) {
Statement statement = getParentOfType(argument, Statement.class, false); if (statement != null) { ListIterator<Node> iterator = statement.getParent().getChildren().listIterator(); while (iterator.hasNext()) { if (iterator.next() == statement) {
Statement statement = getParentOfType(argument, Statement.class, false); if (statement != null) { ListIterator<Node> iterator = statement.getParent().getChildren().listIterator(); while (iterator.hasNext()) { if (iterator.next() == statement) {
Statement statement = getParentOfType(node, Statement.class, false); if (statement != null) { ListIterator<Node> iterator = statement.getParent().getChildren().listIterator(); while (iterator.hasNext()) { if (iterator.next() == statement) {