getparameters() public method

public getparameters ( ) : List
return List
示例#1
0
    static void Main()
    {
        FunctionCallElement funccall = new FunctionCallElement();
        

        VariableElement name = new VariableElement();
        name.setText("functioncall");
        funccall.setfunctioncallname(name);
        VariableElement name1 = new VariableElement();
        VariableElement name2 = new VariableElement();
        name1.setText("a");
        name2.setText("b");
        funccall.setparameters(name1);
        funccall.setparameters(name2);

        List<Element> s = funccall.getparameters();
        Element e;
        
        e = (Element)funccall.getfunctioncallname();
    }  
示例#2
0
 public override void VisitFunctionCallElement(FunctionCallElement element)
 {
     VisitElement(element.getfunctioncallname());
     Console.Write("(");
     List<Element> param = element.getparameters();
     for (int i = 0; i < param.Count; i++)
     {
         VisitElement(param[i]);
         if (i < (param.Count - 1))
         {
             Console.Write(",");
         }
     }
     Console.Write(");\n");
 }