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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getEndColumn()
Gets the ending column number of the diagnostic region (0-based).int
getEndLine()
Gets the ending line number of the diagnostic region (1-based).java.lang.String
getMessage()
Gets the message to display for this diagnostic.int
getStartColumn()
Gets the starting column number of the diagnostic region (0-based).int
getStartLine()
Gets the starting line number of the diagnostic region (1-based).
-
-
-
Method Detail
-
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
java.lang.String getMessage()
Gets the message to display for this diagnostic.- Returns:
- the diagnostic message
-
-