public class ProblemFormatter extends Object
CompilerProblem's.| Modifier and Type | Field and Description |
|---|---|
static ProblemFormatter |
DEFAULT_FORMATTER |
| Constructor and Description |
|---|
ProblemFormatter() |
| Modifier and Type | Method and Description |
|---|---|
String |
format(ICompilerProblem problem)
Returns a readable description of the problem, by substituting field
values for named placeholders such as ${name} in the message specified
for this compiler problem.
|
protected String |
getMessage(String key)
Returns message for the specified key using the resource
bundle generated for the specified locale.
|
static String |
substitute(String text,
Map<String,Object> parameters)
Resolves the tokens in the text using the key/value pairs in the
specified map.
|
public static ProblemFormatter DEFAULT_FORMATTER
public String format(ICompilerProblem problem)
problem - problem whose message to findpublic static String substitute(String text, Map<String,Object> parameters)
text - compiler message to resolveparameters - map that contains key/value pairs used to resolve the
tokens in the specified message.Copyright © 2016 The Apache Software Foundation. All rights reserved.