Interface ProblemSupport
-
- All Known Subinterfaces:
TransformationContext,ValidationContext
@Beta public interface ProblemSupport- Noimplement:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddError(Element element, java.lang.String message)Adds a problem marker with severityProblem.Severity#ERROR to the given elementvoidaddWarning(Element element, java.lang.String message)Adds a problem marker with severityProblem.Severity#WARNING to the given elementjava.util.List<? extends Problem>getProblems(Element element)voidvalidateLater(org.eclipse.xtext.xbase.lib.Procedures.Procedure0 validationCallback)
-
-
-
Method Detail
-
getProblems
java.util.List<? extends Problem> getProblems(Element element)
- Parameters:
element- the element to look up problems- Returns:
- the problems associated with the given
Element
-
addError
void addError(Element element, java.lang.String message)
Adds a problem marker with severityProblem.Severity#ERROR to the given element- Parameters:
element- the element to which associate the new problem markermessage- the message for the problem marker
-
addWarning
void addWarning(Element element, java.lang.String message)
Adds a problem marker with severityProblem.Severity#WARNING to the given element- Parameters:
element- the element to which associate the new problem markermessage- the message for the problem marker
-
validateLater
void validateLater(org.eclipse.xtext.xbase.lib.Procedures.Procedure0 validationCallback)
- Parameters:
validationCallback- a callback that will be executed in the validation phase, when all transformations have been done and types are inferred.- Since:
- 2.7
-
-