start
- the starting position of the spanend
- the ending position of the spanattributes
- the attributes assigned to the spanSourceCodeAnalysis
public static record SourceCodeAnalysis.Highlight(int start, int end, Set<SourceCodeAnalysis.Attribute> attributes) extends Record
Constructor | Description |
---|---|
Highlight |
Creates an instance of a Highlight record class. |
Modifier and Type | Method | Description |
---|---|---|
Set |
attributes() |
Returns the value of the attributes record component. |
int |
end() |
Returns the value of the end record component. |
final boolean |
equals |
Indicates whether some other object is "equal to" this one. |
final int |
hashCode() |
Returns a hash code value for this object. |
int |
start() |
Returns the value of the start record component. |
final String |
toString() |
Returns a string representation of this record class. |
public Highlight(int start, int end, Set<SourceCodeAnalysis.Attribute> attributes)
Highlight
record class.start
- the value for the start
record componentend
- the value for the end
record componentattributes
- the value for the attributes
record componentpublic final String toString()
public final int hashCode()
public final boolean equals(Object o)
Objects::equals(Object,Object)
; primitive components are compared with '=='.public int start()
start
record component.start
record componentpublic int end()
end
record component.end
record componentpublic Set<SourceCodeAnalysis.Attribute> attributes()
attributes
record component.attributes
record component
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/jdk.jshell/jdk/jshell/SourceCodeAnalysis.Highlight.html