Lines Matching refs:Node
36 * Each Node can have one associated comment which describe it and
42 public abstract class Node implements Cloneable {
46 public static Comparator<Node> NODE_BY_BEGIN_POSITION = (a, b) -> a.getBegin().compareTo(b.getBegin());
50 private Node parentNode;
52 private List<Node> childrenNodes = new LinkedList<>();
59 public Node() {
63 public Node(Range range) {
120 public Node setBegin(Position begin) {
128 public Node setEnd(Position end) {
143 public Node setRange(Range range) {
153 public final Node setComment(final Comment comment) {
174 public final Node setLineComment(String comment) {
183 public final Node setBlockComment(String comment) {
212 if (obj == null || !(obj instanceof Node)) {
215 return EqualsVisitor.equals(this, (Node) obj);
219 public Node clone() {
223 public Node getParentNode() {
229 Node parent = parentNode;
238 public List<Node> getChildrenNodes() {
242 public boolean contains(Node other) {
253 * with any meaningful AST Node.
268 * This is the list of Comment which are contained in the Node either because
270 * around inside the Node
278 for (Node child : getChildrenNodes()) {
294 public void setParentNode(Node parentNode) {
306 protected void setAsParentNodeOf(List<? extends Node> childNodes) {
308 for (Node current : childNodes) {
314 protected void setAsParentNodeOf(Node childNode) {
347 public <N extends Node> List<N> getNodesByType(Class<N> clazz) {
349 for (Node child : getChildrenNodes()) {