1 28 package org.jruby.ast; 29 30 import java.util.List ; 31 32 import org.jruby.ast.visitor.NodeVisitor; 33 import org.jruby.evaluator.Instruction; 34 import org.jruby.lexer.yacc.ISourcePosition; 35 36 42 public class CommentNode extends Node { 43 private static final long serialVersionUID = -8304070370230933044L; 44 45 String content; 48 49 public CommentNode(ISourcePosition position, String content) { 50 super(position, NodeTypes.COMMENTNODE); 51 52 this.content = content; 53 } 54 55 public Instruction accept(NodeVisitor visitor) { 56 return null; 57 } 58 59 public String getContent() { 60 return content; 61 } 62 63 public List childNodes() { 64 return EMPTY_LIST; 65 } 66 67 } 68 | Popular Tags |