| 1 | /* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */ |
| 2 | |
| 3 | /* |
| 4 | Part of the Processing project - http://processing.org |
| 5 | |
| 6 | Copyright (c) 2004-06 Ben Fry and Casey Reas |
| 7 | Copyright (c) 2001-04 Massachusetts Institute of Technology |
| 8 | |
| 9 | This program is free software; you can redistribute it and/or modify |
| 10 | it under the terms of the GNU General Public License as published by |
| 11 | the Free Software Foundation; either version 2 of the License, or |
| 12 | (at your option) any later version. |
| 13 | |
| 14 | This program is distributed in the hope that it will be useful, |
| 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | GNU General Public License for more details. |
| 18 | |
| 19 | You should have received a copy of the GNU General Public License |
| 20 | along with this program; if not, write to the Free Software Foundation, |
| 21 | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 22 | */ |
| 23 | |
| 24 | package processing.app.debug; |
| 25 | |
| 26 | |
| 27 | /** |
| 28 | * Interface for dealing with parser/compiler output. |
| 29 | * <p> |
| 30 | * Different instances of MessageStream need to do different things with |
| 31 | * messages. In particular, a stream instance used for parsing output from |
| 32 | * the compiler compiler has to interpret its messages differently than one |
| 33 | * parsing output from the runtime. |
| 34 | * <p> |
| 35 | * Classes which consume messages and do something with them |
| 36 | * should implement this interface. |
| 37 | */ |
| 38 | public interface MessageConsumer { |
| 39 | |
| 40 | void message(String s); |
| 41 | |
| 42 | } |