Method support for references : $foo.method() NOTE : introspection is now done at render time. Please look at the Parser.jjt file which is what controls the generation of this class.
Наследование: NVelocity.Runtime.Parser.Node.SimpleNode
Пример #1
0
		public virtual Object Visit(ASTMethod node, Object data)
		{
			data = node.ChildrenAccept(this, data);
			return data;
		}
Пример #2
0
		/// <summary>Display an ASTMethod node
		/// </summary>
		public override Object Visit(ASTMethod node, Object data)
		{
			return ShowNode(node, data);
		}
Пример #3
0
	public virtual System.Object visit(ASTMethod node, System.Object data) {
	    data = node.childrenAccept(this, data);
	    return data;
	}
Пример #4
0
	/// <summary> This method has yet to be fully implemented
	/// but will allow arbitrarily nested method
	/// calls
	/// </summary>
	public void  Method() {
	    /*@bgen(jjtree) Method */
	    ASTMethod jjtn000 = new ASTMethod(this, ParserTreeConstants.JJTMETHOD);
	    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 {
		Identifier();
		jj_consume_token(ParserConstants.LPAREN);
		switch ((jj_ntk_Renamed_Field == - 1)?jj_ntk():jj_ntk_Renamed_Field) {
case ParserConstants.LBRACKET: case ParserConstants.WHITESPACE: case ParserConstants.STRING_LITERAL: case ParserConstants.TRUE: case ParserConstants.FALSE: case ParserConstants.NUMBER_LITERAL: case ParserConstants.IDENTIFIER: case ParserConstants.LCURLY:
			Parameter();
			while (true) {
			    switch ((jj_ntk_Renamed_Field == - 1)?jj_ntk():jj_ntk_Renamed_Field) {
				case ParserConstants.COMMA:
				    ;
				    break;

				default:
				    jj_la1[21] = 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_6_brk;

			    }
			    jj_consume_token(ParserConstants.COMMA);
			    Parameter();
			}
			//UPGRADE_NOTE: Label 'label_6_brk' was added. 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="jlca1011"'
label_6_brk:
			;

			break;

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

		}
		jj_consume_token(ParserConstants.REFMOD2_RPAREN);
	    } 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);
		}
	    }
	}
Пример #5
0
 /// <summary>Display an ASTMethod node
 /// </summary>
 public override System.Object visit(ASTMethod node, System.Object data)
 {
     return showNode(node, data);
 }