Package org.jline.builtins
Interface Nano.Diagnostic
- Enclosing class:
Nano
public static interface Nano.Diagnostic
Interface representing a diagnostic message for code in the editor.
Diagnostics are used to highlight issues in the code and display tooltips with error messages or warnings. They define a region in the text (from start line/column to end line/column) and a message to display when hovering over that region.
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the ending column number of the diagnostic region (0-based).int
Gets the ending line number of the diagnostic region (1-based).Gets the message to display for this diagnostic.int
Gets the starting column number of the diagnostic region (0-based).int
Gets the starting line number of the diagnostic region (1-based).
-
Method Details
-
getStartLine
int getStartLine()Gets the starting line number of the diagnostic region (1-based).- Returns:
- the starting line number
-
getStartColumn
int getStartColumn()Gets the starting column number of the diagnostic region (0-based).- Returns:
- the starting column number
-
getEndLine
int getEndLine()Gets the ending line number of the diagnostic region (1-based).- Returns:
- the ending line number
-
getEndColumn
int getEndColumn()Gets the ending column number of the diagnostic region (0-based).- Returns:
- the ending column number
-
getMessage
String getMessage()Gets the message to display for this diagnostic.- Returns:
- the diagnostic message
-