Package com.e1c.g5.v8.dt.bsl.check
Class DocumentationCommentBasicDelegateCheck.DocumentationCommentResultAcceptor
java.lang.Object
com.e1c.g5.v8.dt.bsl.check.DocumentationCommentBasicDelegateCheck.DocumentationCommentResultAcceptor
- Enclosing class:
- DocumentationCommentBasicDelegateCheck
public static final class DocumentationCommentBasicDelegateCheck.DocumentationCommentResultAcceptor
extends Object
Accepts results of the check in form of
Issue
's. The result is automatically bound to the context object
of the check and cannot be changed. In case if you need the free navigation and reporting of issues - consider implementing
the ICheck
directly instead of BasicCheck
This class is instantiated by the ACC subsystem and is not intended for the direct instantiation.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an issue which starts at the beginning of the context object's related string and have the specified lengthvoid
Adds issue at the given line, offset and length within the linevoid
addIssue
(String message, org.eclipse.emf.ecore.EObject target, org.eclipse.emf.ecore.EStructuralFeature feature) Adds issue associated with the given target object and feature.void
addIssue
(String message, org.eclipse.emf.ecore.EObject target, org.eclipse.emf.ecore.EStructuralFeature manyFeature, int index) Adds issue for element with given index in feature collection and with the given message.
-
Method Details
-
addIssue
public void addIssue(String message, org.eclipse.emf.ecore.EObject target, org.eclipse.emf.ecore.EStructuralFeature feature) Adds issue associated with the given target object and feature.- Parameters:
message
- The issue's message, notnull
target
- The target object of the current module, cannot benull
.feature
- The target object feature, notnull
-
addIssue
public void addIssue(String message, org.eclipse.emf.ecore.EObject target, org.eclipse.emf.ecore.EStructuralFeature manyFeature, int index) Adds issue for element with given index in feature collection and with the given message.- Parameters:
message
- The issue's message, notnull
target
- the target object of the current module, cannot benull
.manyFeature
- The target object feature, notnull
index
- The index in feature collection. May not be negative
-
addIssue
Adds an issue which starts at the beginning of the context object's related string and have the specified length- Parameters:
message
- The issue's message, notnull
length
- The length of the issue target region, may not be negative
-
addIssue
Adds issue at the given line, offset and length within the line- Parameters:
message
- The issue's message, notnull
lineNumber
- The line number. May not benull
offset
- The offset from the line start. May not benull
length
- The length of the issue target region, may not be negative
-