added isSystem;
authorwenzelm
Sun, 30 Dec 2007 22:10:20 +0100
changeset 25747 be58ef74140a
parent 25746 1ff2dd0a6740
child 25748 55a458a31e37
added isSystem; tune isRaw;
lib/classes/isabelle/IsabelleProcess.java
--- a/lib/classes/isabelle/IsabelleProcess.java	Sun Dec 30 13:15:33 2007 +0100
+++ b/lib/classes/isabelle/IsabelleProcess.java	Sun Dec 30 22:10:20 2007 +0100
@@ -81,6 +81,20 @@
             this.result = result;
         }
 
+        public boolean isRaw() {
+            return
+              this.kind == Kind.STDOUT ||
+              this.kind == Kind.STDERR;
+        }
+
+        public boolean isSystem() {
+            return
+              this.kind == Kind.STDIN ||
+              this.kind == Kind.SIGNAL ||
+              this.kind == Kind.EXIT ||
+              this.kind == Kind.SYSTEM;
+        }
+
         public String toString() {
             return this.kind.toString() + " [[" + this.result + "]]";
         }