예제 #1
0
 /// <seealso cref="org.apache.velocity.runtime.visitor.BaseVisitor.visit(NVelocity.Runtime.Paser.Node.ASTEscapedDirective, java.lang.Object)">
 /// </seealso>
 /// <since> 1.5
 /// </since>
 public override object Visit(ASTEscapedDirective node, object data)
 {
     return(ShowNode(node, data));
 }
예제 #2
0
		/// <summary>  used to separate the notion of a valid directive that has been
		/// escaped, versus something that looks like a directive and
		/// is just schmoo.  This is important to do as a separate production
		/// that creates a node, because we want this, in either case, to stop
		/// the further parsing of the Directive() tree.
		/// </summary>
		public void EscapedDirective()
		{
			/*@bgen(jjtree) EscapedDirective */
			ASTEscapedDirective jjtn000 = new ASTEscapedDirective(this, ParserTreeConstants.ESCAPED_DIRECTIVE);
			bool jjtc000 = true;
			nodeTree.OpenNodeScope(jjtn000);
			try
			{
				Token t = ConsumeToken(ParserConstants.ESCAPE_DIRECTIVE);
				nodeTree.CloseNodeScope(jjtn000, true);
				jjtc000 = false;
				/*
				*  churn and burn..
				*/
				t.Image = EscapedDirective(t.Image);
			}
			finally
			{
				if (jjtc000)
				{
					nodeTree.CloseNodeScope(jjtn000, true);
				}
			}
		}
예제 #3
0
 /// <seealso cref="NVelocity.Runtime.Paser.Node.ParserVisitor.visit(NVelocity.Runtime.Paser.Node.ASTEscapedDirective, java.lang.Object)">
 /// </seealso>
 /// <since> 1.5
 /// </since>
 public virtual object Visit(ASTEscapedDirective node, object data)
 {
     data = node.ChildrenAccept(this, data);
     return(data);
 }