|
org.netbeans.spi.editor.hints/0 1.24.0 7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.spi.editor.hints.ErrorDescriptionFactory
public class ErrorDescriptionFactory
Factory class with static methods that allow creation of ErrorDescription.
| Method Summary | |
|---|---|
static Fix |
attachSubfixes(Fix to,
Iterable<? extends Fix> subfixes)
Attach given sub-fixes to the given fix. |
static ErrorDescription |
createErrorDescription(Severity severity,
String description,
Document doc,
int lineNumber)
Should be called inside document read lock to assure consistency |
static ErrorDescription |
createErrorDescription(Severity severity,
String description,
Document doc,
Position start,
Position end)
Acquires read lock on the provided document to assure consistency |
static ErrorDescription |
createErrorDescription(Severity severity,
String description,
FileObject file,
int start,
int end)
Should be called inside document read lock to assure consistency |
static ErrorDescription |
createErrorDescription(Severity severity,
String description,
LazyFixList fixes,
Document doc,
int lineNumber)
Should be called inside document read lock to assure consistency |
static ErrorDescription |
createErrorDescription(Severity severity,
String description,
LazyFixList fixes,
Document doc,
Position start,
Position end)
Acquires read lock on the provided document to assure consistency |
static ErrorDescription |
createErrorDescription(Severity severity,
String description,
LazyFixList fixes,
FileObject file,
int start,
int end)
Should be called inside document read lock to assure consistency |
static ErrorDescription |
createErrorDescription(Severity severity,
String description,
List<Fix> fixes,
Document doc,
int lineNumber)
Should be called inside document read lock to assure consistency |
static ErrorDescription |
createErrorDescription(Severity severity,
String description,
List<Fix> fixes,
Document doc,
Position start,
Position end)
Acquires read lock on the provided document to assure consistency |
static ErrorDescription |
createErrorDescription(Severity severity,
String description,
List<Fix> fixes,
FileObject file,
int start,
int end)
Should be called inside document read lock to assure consistency |
static ErrorDescription |
createErrorDescription(String id,
Severity severity,
String description,
CharSequence details,
LazyFixList fixes,
Document doc,
int lineNumber)
Create a new ErrorDescription with the given parameters. |
static ErrorDescription |
createErrorDescription(String id,
Severity severity,
String description,
CharSequence details,
LazyFixList fixes,
Document doc,
Position start,
Position end)
Create a new ErrorDescription with the given parameters. |
static ErrorDescription |
createErrorDescription(String id,
Severity severity,
String description,
CharSequence details,
LazyFixList fixes,
FileObject file,
int start,
int end)
Create a new ErrorDescription with the given parameters. |
static ErrorDescription |
createErrorDescription(String id,
Severity severity,
String description,
CharSequence details,
LazyFixList fixes,
FileObject file,
PositionBounds errorBounds)
Create a new ErrorDescription with the given parameters. |
static LazyFixList |
lazyListForDelegates(List<LazyFixList> delegates)
Concatenates several LazyFixLists into one. |
static LazyFixList |
lazyListForFixes(List<Fix> fixes)
Converts "normal" list of Fixes into LazyFixList |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
@NonNull
public static ErrorDescription createErrorDescription(@NonNull
Severity severity,
@NonNull
String description,
@NonNull
Document doc,
int lineNumber)
@NonNull
public static ErrorDescription createErrorDescription(@NonNull
Severity severity,
@NonNull
String description,
@NonNull
List<Fix> fixes,
@NonNull
Document doc,
int lineNumber)
@NonNull
public static ErrorDescription createErrorDescription(@NonNull
Severity severity,
@NonNull
String description,
@NonNull
LazyFixList fixes,
@NonNull
Document doc,
int lineNumber)
@NonNull
public static ErrorDescription createErrorDescription(@NullAllowed
String id,
@NonNull
Severity severity,
@NonNull
String description,
@NullAllowed
CharSequence details,
@NonNull
LazyFixList fixes,
@NonNull
Document doc,
int lineNumber)
ErrorDescription with the given parameters.
Should be called inside document read lock to assure consistency
id - an optional ID of the ErrorDescription. Should represent a "type" of an error/warning.
It is recommended that providers prefix the ID with their unique prefix.severity - the desired Severitydescription - the text of the error/warningdetails - optional "more details" describing the error/warningfixes - a collection of Fixes that should be shown for the error/warningdoc - document for which the ErrorDescription should be createdlineNumber - line on which the error/warning should be shown
ErrorDescription based on the given parameters
@NonNull
public static ErrorDescription createErrorDescription(@NonNull
Severity severity,
@NonNull
String description,
@NonNull
Document doc,
@NonNull
Position start,
@NonNull
Position end)
@NonNull
public static ErrorDescription createErrorDescription(@NonNull
Severity severity,
@NonNull
String description,
@NonNull
List<Fix> fixes,
@NonNull
Document doc,
@NonNull
Position start,
@NonNull
Position end)
@NonNull
public static ErrorDescription createErrorDescription(@NonNull
Severity severity,
@NonNull
String description,
@NonNull
LazyFixList fixes,
@NonNull
Document doc,
@NonNull
Position start,
@NonNull
Position end)
@NonNull
public static ErrorDescription createErrorDescription(@NullAllowed
String id,
@NonNull
Severity severity,
@NonNull
String description,
@NullAllowed
CharSequence details,
@NonNull
LazyFixList fixes,
@NonNull
Document doc,
@NonNull
Position start,
@NonNull
Position end)
ErrorDescription with the given parameters.
Acquires read lock on the provided document to assure consistency
id - an optional ID of the ErrorDescription. Should represent a "type" of an error/warning.
It is recommended that providers prefix the ID with their unique prefix.severity - the desired Severitydescription - the text of the error/warningdetails - optional "more details" describing the error/warningfixes - a collection of Fixes that should be shown for the error/warningdoc - document for which the ErrorDescription should be createdstart - starting offset of the error/warningend - ending offset of the error/warning
ErrorDescription based on the given parameters
@NonNull
public static ErrorDescription createErrorDescription(@NonNull
Severity severity,
@NonNull
String description,
@NonNull
FileObject file,
int start,
int end)
@NonNull
public static ErrorDescription createErrorDescription(@NonNull
Severity severity,
@NonNull
String description,
@NonNull
List<Fix> fixes,
@NonNull
FileObject file,
int start,
int end)
@NonNull
public static ErrorDescription createErrorDescription(@NonNull
Severity severity,
@NonNull
String description,
@NonNull
LazyFixList fixes,
@NonNull
FileObject file,
int start,
int end)
@NonNull
public static ErrorDescription createErrorDescription(@NullAllowed
String id,
@NonNull
Severity severity,
@NonNull
String description,
@NullAllowed
CharSequence details,
@NonNull
LazyFixList fixes,
@NonNull
FileObject file,
int start,
int end)
ErrorDescription with the given parameters.
Should be called inside document read lock to assure consistency
id - an optional ID of the ErrorDescription. Should represent a "type" of an error/warning.
It is recommended that providers prefix the ID with their unique prefix.severity - the desired Severitydescription - the text of the error/warningdetails - optional "more details" describing the error/warningfixes - a collection of Fixes that should be shown for the error/warningfile - for which the ErrorDescription should be createdstart - starting offset of the error/warningend - ending offset of the error/warning
ErrorDescription based on the given parameters
@NonNull
public static ErrorDescription createErrorDescription(@NullAllowed
String id,
@NonNull
Severity severity,
@NonNull
String description,
@NullAllowed
CharSequence details,
@NonNull
LazyFixList fixes,
@NonNull
FileObject file,
@NonNull
PositionBounds errorBounds)
ErrorDescription with the given parameters.
id - an optional ID of the ErrorDescription. Should represent a "type" of an error/warning.
It is recommended that providers prefix the ID with their unique prefix.severity - the desired Severitydescription - the text of the error/warningdetails - optional "more details" describing the error/warningfixes - a collection of Fixes that should be shown for the error/warningfile - for which the ErrorDescription should be createderrorBounds - start and end position of the error/warning
ErrorDescription based on the given parameters
@NonNull
public static LazyFixList lazyListForFixes(@NonNull
List<Fix> fixes)
Fixes into LazyFixList
fixes -
@NonNull
public static LazyFixList lazyListForDelegates(@NonNull
List<LazyFixList> delegates)
LazyFixLists into one.
delegates - the lists to be delegated to
@NonNull
public static Fix attachSubfixes(@NonNull
Fix to,
@NonNull
Iterable<? extends Fix> subfixes)
to - fix to which should be the sub-fixes attachedsubfixes - the sub-fixes to attach
|
org.netbeans.spi.editor.hints/0 1.24.0 7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||