예제 #1
0
        public string GetParameters()
        {
            if (!EmonicInterpreter.IsCurrentThreadStopped())
            {
                // would block if current thread is not stopped!
                return("--");
            }
            EmonicLineInterpreter.AddCmd("show parameters");
            string result = EmonicInterpreter.GetParamsOutput();

            return(result);
        }
예제 #2
0
 public EmonicInterpreter.printData Print(string variableName)
 {
     if (!EmonicInterpreter.IsCurrentThreadStopped())
     {
         // would block if current thread is not stopped!
         EmonicInterpreter.printData error = new EmonicInterpreter.printData();
         error.type = error.varValue = error.varNames = "";
         return(error);
     }
     EmonicLineInterpreter.AddCmd("print " + variableName);
     EmonicInterpreter.printData pd = EmonicInterpreter.GetPrintOutput();
     return(pd);
 }
예제 #3
0
        public string PtypeFieldsOnly(string className, bool staticOnly)
        {
            if (!EmonicInterpreter.IsCurrentThreadStopped())
            {
                // would block if current thread is not stopped!
                return("--");
            }
            EmonicLineInterpreter.AddCmd("ptype " + className);
            string result;

            if (staticOnly)
            {
                result = EmonicInterpreter.GetPTypeOutputStaticOnly();
            }
            else
            {
                result = EmonicInterpreter.GetPTypeOutput();
            }
            return(result);
        }