first scanner /parser copied from the jdt java version
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / IDebugRequestor.java
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/IDebugRequestor.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/IDebugRequestor.java
new file mode 100644 (file)
index 0000000..bd9ca5c
--- /dev/null
@@ -0,0 +1,42 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others.
+ * All rights reserved. This program and the accompanying materials 
+ * are made available under the terms of the Common Public License v0.5 
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v05.html
+ * 
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ ******************************************************************************/
+package net.sourceforge.phpdt.internal.compiler;
+
+public interface IDebugRequestor {
+
+       /*
+        * Debug callback method allowing to take into account a new compilation result.
+        * Any side-effect performed on the actual result might interfere with the
+        * original compiler requestor, and should be prohibited.
+        */
+       void acceptDebugResult(CompilationResult result);
+
+       /*
+        * Answers true when in active mode
+        */
+       boolean isActive();
+       
+       /* 
+        * Activate debug callbacks
+        */     
+       void activate();
+
+       /* 
+        * Deactivate debug callbacks
+        */     
+       void deactivate();
+       
+       /*
+        * Reset debug requestor after compilation has finished
+        */
+       void reset();
+}
+