Node for the #set directive
Inheritance: NVelocity.Runtime.Parser.Node.SimpleNode
Example #1
0
		public virtual Object Visit(ASTSetDirective node, Object data)
		{
			data = node.ChildrenAccept(this, data);
			return data;
		}
Example #2
0
		public override Object Visit(ASTSetDirective node, Object data)
		{
			return ShowNode(node, data);
		}
	public virtual System.Object visit(ASTSetDirective node, System.Object data) {
	    data = node.childrenAccept(this, data);
	    return data;
	}
Example #4
0
	/// <summary>  Currently support both types of set :
	/// #set( expr )
	/// #set expr
	/// </summary>
	public void  SetDirective() {
	    /*@bgen(jjtree) SetDirective */
	    ASTSetDirective jjtn000 = new ASTSetDirective(this, ParserTreeConstants.JJTSETDIRECTIVE);
	    bool jjtc000 = true;
	    jjtree.openNodeScope(jjtn000);
	    //UPGRADE_NOTE: Exception 'java.lang.Throwable' was converted to ' ' which has different behavior. 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="jlca1100"'
	    try {
		jj_consume_token(ParserConstants.SET_DIRECTIVE);
		if (jj_2_9(2)) {
		    jj_consume_token(ParserConstants.WHITESPACE);
		} else {
		    ;
		}
		jj_consume_token(ParserConstants.LPAREN);
		Expression();
		jj_consume_token(ParserConstants.RPAREN);
		/*
				* ensure that inSet is false.  Leads to some amusing bugs...
				*/

		token_source.inSet = false;
		switch ((jj_ntk_Renamed_Field == - 1)?jj_ntk():jj_ntk_Renamed_Field) {
		    case ParserConstants.NEWLINE:
			jj_consume_token(ParserConstants.NEWLINE);
			break;

		    default:
			jj_la1[35] = jj_gen;
			;
			break;

		}
	    } catch (System.Exception jjte000) {
		if (jjtc000) {
		    jjtree.clearNodeScope(jjtn000);
		    jjtc000 = false;
		} else {
		    jjtree.popNode();
		}
		if (jjte000 is System.SystemException) { {
			if (true)
			    throw (System.SystemException) jjte000;
		    }
		}
		if (jjte000 is ParseException) { {
			if (true)
			    throw (ParseException) jjte000;
		    }
		} {
		    if (true)
			throw (System.ApplicationException) jjte000;
		}
	    } finally {
		if (jjtc000) {
		    jjtree.closeNodeScope(jjtn000, true);
		}
	    }
	}
Example #5
0
 public override System.Object visit(ASTSetDirective node, System.Object data)
 {
     return showNode(node, data);
 }