1 31 package org.jruby.ast; 32 33 import java.util.List ; 34 35 import org.jruby.ast.visitor.NodeVisitor; 36 import org.jruby.evaluator.Instruction; 37 import org.jruby.lexer.yacc.ISourcePosition; 38 39 43 public class PostExeNode extends Node { 44 static final long serialVersionUID = -2851659895226590014L; 45 private Node body; 46 47 public PostExeNode(ISourcePosition position, Node body) { 48 super(position, NodeTypes.POSTEXENODE); 49 50 this.body = body; 51 } 52 53 public Node getBodyNode() { 54 return body; 55 } 56 57 61 public Instruction accept(NodeVisitor iVisitor) { 62 return iVisitor.visitPostExeNode(this); 63 } 64 65 public List childNodes() { 66 return Node.createList(body); 67 } 68 } 69 | Popular Tags |