Execute() 공개 추상적인 메소드

public abstract Execute ( Interpreter interpreter ) : object
interpreter Interpreter
리턴 object
예제 #1
0
		void ExecuteCommand(Command command)
		{
			AbortBackgroudThread();
			
			try {
				command.Execute(engine);
			} catch(ThreadAbortException) {
			} catch(ScriptingException ex) {
				interpreter.Error(ex);
			} catch(TargetException ex) {
				interpreter.Error(ex);
			} catch(Exception ex) {
				interpreter.Error("Caught exception while executing command {0}: {1}", engine, ex);
			}
			
			NotifyStateChange();
		}
예제 #2
0
파일: Main.cs 프로젝트: baulig/debugger
 void execute_command(Command command)
 {
     try {
         if (repeating)
             command.Repeat (Interpreter);
         else
             command.Execute (Interpreter);
     } catch (ST.ThreadAbortException) {
     } catch (ScriptingException ex) {
         Interpreter.Error (ex);
     } catch (TargetException ex) {
         Interpreter.Error (ex);
     } catch (Exception ex) {
         Interpreter.Error (
             "Caught exception while executing command {0}: {1}",
             this, ex);
     }
 }