1 package org.apache.velocity.runtime.parser.node; 2 3 18 19 import java.io.Writer ; 20 import java.io.IOException ; 21 22 import org.apache.velocity.context.InternalContextAdapter; 23 import org.apache.velocity.runtime.parser.Parser; 24 25 35 public class ASTEscapedDirective extends SimpleNode 36 { 37 public ASTEscapedDirective(int id) 38 { 39 super(id); 40 } 41 42 public ASTEscapedDirective(Parser p, int id) 43 { 44 super(p, id); 45 } 46 47 48 49 public Object jjtAccept(ParserVisitor visitor, Object data) 50 { 51 return visitor.visit(this, data); 52 } 53 54 public boolean render(InternalContextAdapter context, Writer writer) 55 throws IOException 56 { 57 writer.write(getFirstToken().image); 58 return true; 59 } 60 61 } 62 | Popular Tags |