|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory
public class DefaultProblemFactory
| 字段摘要 | |
|---|---|
HashtableOfInt |
messageTemplates
|
| 构造方法摘要 | |
|---|---|
DefaultProblemFactory()
|
|
DefaultProblemFactory(Locale loc)
|
|
| 方法摘要 | |
|---|---|
CategorizedProblem |
createProblem(char[] originatingFileName,
int problemId,
String[] problemArguments,
int elaborationId,
String[] messageArguments,
int severity,
int startPosition,
int endPosition,
int lineNumber,
int columnNumber)
Answer a new IProblem created according to the parameters values. |
CategorizedProblem |
createProblem(char[] originatingFileName,
int problemId,
String[] problemArguments,
String[] messageArguments,
int severity,
int startPosition,
int endPosition,
int lineNumber,
int columnNumber)
Answer a new IProblem created according to the parameters value originatingFileName the name of the file name from which the problem is originated problemId the problem id problemArguments the fully qualified arguments recorded inside the problem messageArguments the arguments needed to set the error message (shorter names than problemArguments ones) severity the severity of the problem startPosition the starting position of the problem endPosition the end position of the problem lineNumber the line on which the problem occured |
Locale |
getLocale()
Answer the locale used to retrieve the error messages |
String |
getLocalizedMessage(int id,
int elaborationId,
String[] problemArguments)
Inject the supplied message arguments into a localized template elaborated from the supplied problem id and an optional elaboration id and return the resulting message. |
String |
getLocalizedMessage(int id,
String[] problemArguments)
|
static HashtableOfInt |
loadMessageTemplates(Locale loc)
This method initializes the MessageTemplates class variable according to the current Locale. |
String |
localizedMessage(CategorizedProblem problem)
|
void |
setLocale(Locale locale)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public HashtableOfInt messageTemplates
| 构造方法详细信息 |
|---|
public DefaultProblemFactory()
public DefaultProblemFactory(Locale loc)
loc - the locale used to get the right message| 方法详细信息 |
|---|
public CategorizedProblem createProblem(char[] originatingFileName,
int problemId,
String[] problemArguments,
String[] messageArguments,
int severity,
int startPosition,
int endPosition,
int lineNumber,
int columnNumber)
IProblemFactory 中的 createProblemoriginatingFileName - char[]problemId - intproblemArguments - String[]messageArguments - String[]severity - intstartPosition - intendPosition - intlineNumber - int
public CategorizedProblem createProblem(char[] originatingFileName,
int problemId,
String[] problemArguments,
int elaborationId,
String[] messageArguments,
int severity,
int startPosition,
int endPosition,
int lineNumber,
int columnNumber)
IProblemFactory 复制的描述
IProblemFactory 中的 createProblemoriginatingFileName - the name of the file from which the problem is originatedproblemId - the problem idproblemArguments - the fully qualified arguments recorded inside the problemelaborationId - the message elaboration id (0 for problems that have no message elaboration)messageArguments - the arguments needed to set the error message (shorter names than problemArguments ones)severity - the severity of the problemstartPosition - the start position of the problemendPosition - the end position of the problemlineNumber - the line on which the problem occurred
public Locale getLocale()
IProblemFactory 中的 getLocalepublic void setLocale(Locale locale)
public final String getLocalizedMessage(int id,
String[] problemArguments)
IProblemFactory 中的 getLocalizedMessage
public final String getLocalizedMessage(int id,
int elaborationId,
String[] problemArguments)
IProblemFactory 复制的描述
IProblemFactory 中的 getLocalizedMessageid - the problem id taken from
IProblem constantselaborationId - 0 if the considered problem has no elaboration, a
valid elaboration id elseproblemArguments - the arguments to inject into the template
public final String localizedMessage(CategorizedProblem problem)
problem - CategorizedProblem
public static HashtableOfInt loadMessageTemplates(Locale loc)
loc - Locale
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||