KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > compiler > IProblemFactory


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 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.jdt.internal.compiler;
12
13 import java.util.Locale JavaDoc;
14
15 import org.eclipse.jdt.core.compiler.CategorizedProblem;
16
17 /*
18  * Factory used from inside the compiler to build the actual problems
19  * which are handed back in the compilation result.
20  *
21  * This allows sharing the internal problem representation with the environment.
22  *
23  * Note: The factory is responsible for computing and storing a localized error message.
24  */

25
26 public interface IProblemFactory {
27
28     CategorizedProblem createProblem(
29         char[] originatingFileName,
30         int problemId,
31         String JavaDoc[] problemArguments,
32         String JavaDoc[] messageArguments, // shorter versions of the problemArguments
33
int severity,
34         int startPosition,
35         int endPosition,
36         int lineNumber,
37         int columnNumber);
38         
39     Locale JavaDoc getLocale();
40     
41     String JavaDoc getLocalizedMessage(int problemId, String JavaDoc[] messageArguments);
42 }
43
Popular Tags