Module jdk.jshell
Package jdk.jshell

Record Class SourceCodeAnalysis.Highlight

java.lang.Object
java.lang.Record
jdk.jshell.SourceCodeAnalysis.Highlight
Record Components:
start - the starting position of the span
end - the ending position of the span
attributes - the attributes assigned to the span
Enclosing class:
SourceCodeAnalysis

public static record SourceCodeAnalysis.Highlight(int start, int end, Set<SourceCodeAnalysis.Attribute> attributes) extends Record
Assigns attributes usable for coloring to spans inside a snippet.
Since:
19