1 32 package org.jruby.ast; 33 34 import java.util.List ; 35 36 import org.jruby.ast.visitor.NodeVisitor; 37 import org.jruby.evaluator.Instruction; 38 import org.jruby.lexer.yacc.ISourcePosition; 39 40 53 public class NewlineNode extends Node { 54 static final long serialVersionUID = -6180129177863553832L; 55 56 private final Node nextNode; 57 58 public NewlineNode(ISourcePosition position, Node nextNode) { 59 super(position, NodeTypes.NEWLINENODE); 60 61 this.nextNode = nextNode; 62 } 63 64 69 public Instruction accept(NodeVisitor iVisitor) { 70 return iVisitor.visitNewlineNode(this); 71 } 72 73 77 public Node getNextNode() { 78 return nextNode; 79 } 80 81 public List childNodes() { 82 return createList(nextNode); 83 } 84 85 86 } 87 | Popular Tags |