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 48 public class EvStrNode extends Node { 49 static final long serialVersionUID = 1681935012117120817L; 50 51 private final Node body; 52 53 public EvStrNode(ISourcePosition position, Node body) { 54 super(position, NodeTypes.EVSTRNODE); 55 this.body = body; 56 } 57 58 62 public Instruction accept(NodeVisitor iVisitor) { 63 return iVisitor.visitEvStrNode(this); 64 } 65 66 70 public Node getBody() { 71 return body; 72 } 73 74 public List childNodes() { 75 return createList(body); 76 } 77 78 } 79 | Popular Tags |