public interface ICompilerProblem extends ISourceLocation
UNKNOWN
Modifier and Type | Method and Description |
---|---|
String |
getID()
Returns a unique identifier for this type of problem.
|
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
String getID()
Clients can use this identifier to look up, in a .properties file, a localized template string describing the problem. The template string can have named placeholders such as ${name} to be filled in, based on correspondingly-named fields in the problem instance.
Clients can also use this identifier to decide whether the problem is an error, a warning, or something else; for example, they might keep a list of error ids and a list of warning ids.
The unique identifier happens to be the fully-qualified classname of the problem class.
Copyright © 2016 The Apache Software Foundation. All rights reserved.