Inheritance: NVelocity.Runtime.Parser.Node.SimpleNode
		public virtual Object Visit(ASTNotNode node, Object data)
		{
			data = node.ChildrenAccept(this, data);
			return data;
		}
		/// <summary>Display an ASTNotNode ( ! )
		/// </summary>
		public override Object Visit(ASTNotNode node, Object data)
		{
			return ShowNode(node, data);
		}
	public virtual System.Object visit(ASTNotNode node, System.Object data) {
	    data = node.childrenAccept(this, data);
	    return data;
	}
	public void  UnaryExpression() {
	    if (jj_2_11(2)) {
		switch ((jj_ntk_Renamed_Field == - 1)?jj_ntk():jj_ntk_Renamed_Field) {
		    case ParserConstants.WHITESPACE:
			jj_consume_token(ParserConstants.WHITESPACE);
			break;

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

		}
		jj_consume_token(ParserConstants.LOGICAL_NOT);
		ASTNotNode jjtn001 = new ASTNotNode(this, ParserTreeConstants.JJTNOTNODE);
		bool jjtc001 = true;
		jjtree.openNodeScope(jjtn001);
		//UPGRADE_NOTE: Exception 'java.lang.Throwable' was converted to ' ' which has different behavior. 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="jlca1100"'
		try {
		    UnaryExpression();
		} catch (System.Exception jjte001) {
		    if (jjtc001) {
			jjtree.clearNodeScope(jjtn001);
			jjtc001 = false;
		    } else {
			jjtree.popNode();
		    }
		    if (jjte001 is System.SystemException) { {
			    if (true)
				throw (System.SystemException) jjte001;
			}
		    }
		    if (jjte001 is ParseException) { {
			    if (true)
				throw (ParseException) jjte001;
			}
		    } {
			if (true)
			    throw (System.ApplicationException) jjte001;
		    }
		} finally {
		    if (jjtc001) {
			jjtree.closeNodeScope(jjtn001, 1);
		    }
		}
	    } else {
		switch ((jj_ntk_Renamed_Field == - 1)?jj_ntk():jj_ntk_Renamed_Field) {
case ParserConstants.LBRACKET: case ParserConstants.LPAREN: case ParserConstants.WHITESPACE: case ParserConstants.STRING_LITERAL: case ParserConstants.TRUE: case ParserConstants.FALSE: case ParserConstants.NUMBER_LITERAL: case ParserConstants.IDENTIFIER: case ParserConstants.LCURLY:
			PrimaryExpression();
			break;

		    default:
			jj_la1[48] = jj_gen;
			jj_consume_token(- 1);
			throw new ParseException();

		}
	    }
	}
Exemple #5
0
 /// <summary>Display an ASTNotNode ( ! )
 /// </summary>
 public override System.Object visit(ASTNotNode node, System.Object data)
 {
     return showNode(node, data);
 }