KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > core > model > IErrorReportingExpression


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.debug.core.model;
12
13 /**
14  * An expression that can report errors which occurred during the
15  * expression's evaluation.
16  *
17  * @since 3.0
18  */

19 public interface IErrorReportingExpression extends IExpression {
20     /**
21      * Returns whether this expression has errors to report. An expression
22      * can have errors if errors were generated the last time its value was
23      * computed
24      *
25      * @return whether this expression's result has errors
26      */

27     public boolean hasErrors();
28     /**
29      * Returns this expression's error messages, if any. An expression can
30      * have errors if errors were generated the last time its value was
31      * computed.
32      *
33      * @return this expression's error messages
34      */

35     public String JavaDoc[] getErrorMessages();
36 }
37
Popular Tags