@Beta
public interface ProblemSupport
Modifier and Type | Method and Description |
---|---|
void |
addError(Element element,
java.lang.String message)
Adds a problem marker with severity
Problem.Severity #ERROR to the given element |
void |
addWarning(Element element,
java.lang.String message)
Adds a problem marker with severity
Problem.Severity #WARNING to the given element |
java.util.List<? extends Problem> |
getProblems(Element element) |
void |
validateLater(Procedures.Procedure0 validationCallback) |
java.util.List<? extends Problem> getProblems(Element element)
element
- the element to look up problemsElement
void addError(Element element, java.lang.String message)
Problem.Severity
#ERROR to the given elementelement
- the element to which associate the new problem markermessage
- the message for the problem markervoid addWarning(Element element, java.lang.String message)
Problem.Severity
#WARNING to the given elementelement
- the element to which associate the new problem markermessage
- the message for the problem markervoid validateLater(Procedures.Procedure0 validationCallback)
validationCallback
- a callback that will be executed in the validation phase, when
all transformations have been done and types are inferred.