Handles the equivalence operator * == * This operator requires that the LHS and RHS are both of the same Class. *
Наследование: NVelocity.Runtime.Parser.Node.SimpleNode
Пример #1
0
		public virtual Object Visit(ASTEQNode node, Object data)
		{
			data = node.ChildrenAccept(this, data);
			return data;
		}
Пример #2
0
		/// <summary>Display an ASTEQNode ( == )
		/// </summary>
		public override Object Visit(ASTEQNode node, Object data)
		{
			return ShowNode(node, data);
		}
Пример #3
0
	public virtual System.Object visit(ASTEQNode node, System.Object data) {
	    data = node.childrenAccept(this, data);
	    return data;
	}
Пример #4
0
	public void  EqualityExpression() {
	    RelationalExpression();
	    while (true) {
		switch ((jj_ntk_Renamed_Field == - 1)?jj_ntk():jj_ntk_Renamed_Field) {
		case ParserConstants.LOGICAL_EQUALS: case ParserConstants.LOGICAL_NOT_EQUALS:
			;
			break;

		    default:
			jj_la1[39] = jj_gen;
			//UPGRADE_NOTE: Labeled break statement was changed to a goto statement. 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="jlca1012"'
			goto label_15_brk;

		}
		switch ((jj_ntk_Renamed_Field == - 1)?jj_ntk():jj_ntk_Renamed_Field) {
		    case ParserConstants.LOGICAL_EQUALS:
			jj_consume_token(ParserConstants.LOGICAL_EQUALS);
			ASTEQNode jjtn001 = new ASTEQNode(this, ParserTreeConstants.JJTEQNODE);
			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 {
			    RelationalExpression();
			} 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, 2);
			    }
			}
			break;

		    case ParserConstants.LOGICAL_NOT_EQUALS:
			jj_consume_token(ParserConstants.LOGICAL_NOT_EQUALS);
			ASTNENode jjtn002 = new ASTNENode(this, ParserTreeConstants.JJTNENODE);
			bool jjtc002 = true;
			jjtree.openNodeScope(jjtn002);
			//UPGRADE_NOTE: Exception 'java.lang.Throwable' was converted to ' ' which has different behavior. 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="jlca1100"'
			try {
			    RelationalExpression();
			} catch (System.Exception jjte002) {
			    if (jjtc002) {
				jjtree.clearNodeScope(jjtn002);
				jjtc002 = false;
			    } else {
				jjtree.popNode();
			    }
			    if (jjte002 is System.SystemException) { {
				    if (true)
					throw (System.SystemException) jjte002;
				}
			    }
			    if (jjte002 is ParseException) { {
				    if (true)
					throw (ParseException) jjte002;
				}
			    } {
				if (true)
				    throw (System.ApplicationException) jjte002;
			    }
			} finally {
			    if (jjtc002) {
				jjtree.closeNodeScope(jjtn002, 2);
			    }
			}
			break;

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

		}
	    }
	    //UPGRADE_NOTE: Label 'label_15_brk' was added. 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="jlca1011"'
label_15_brk:
	    ;

	}
Пример #5
0
 /// <summary>Display an ASTEQNode ( == )
 /// </summary>
 public override System.Object visit(ASTEQNode node, System.Object data)
 {
     return showNode(node, data);
 }