Package ch.so.agi.mcp.change
Record Class IliSourceLocator.BlockLocation
java.lang.Object
java.lang.Record
ch.so.agi.mcp.change.IliSourceLocator.BlockLocation
- Enclosing class:
IliSourceLocator
public static record IliSourceLocator.BlockLocation(IliSourceLocator.BlockKind kind, String name, IliSourceSpan declarationSpan, IliSourceSpan headerSpan, IliSourceSpan bodySpan, IliSourceSpan endMarkerSpan)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockLocation(IliSourceLocator.BlockKind kind, String name, IliSourceSpan declarationSpan, IliSourceSpan headerSpan, IliSourceSpan bodySpan, IliSourceSpan endMarkerSpan) Creates an instance of aBlockLocationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbodySpan()Returns the value of thebodySpanrecord component.Returns the value of thedeclarationSpanrecord component.Returns the value of theendMarkerSpanrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theheaderSpanrecord component.kind()Returns the value of thekindrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockLocation
public BlockLocation(IliSourceLocator.BlockKind kind, String name, IliSourceSpan declarationSpan, IliSourceSpan headerSpan, IliSourceSpan bodySpan, IliSourceSpan endMarkerSpan) Creates an instance of aBlockLocationrecord class.- Parameters:
kind- the value for thekindrecord componentname- the value for thenamerecord componentdeclarationSpan- the value for thedeclarationSpanrecord componentheaderSpan- the value for theheaderSpanrecord componentbodySpan- the value for thebodySpanrecord componentendMarkerSpan- the value for theendMarkerSpanrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
declarationSpan
Returns the value of thedeclarationSpanrecord component.- Returns:
- the value of the
declarationSpanrecord component
-
headerSpan
Returns the value of theheaderSpanrecord component.- Returns:
- the value of the
headerSpanrecord component
-
bodySpan
Returns the value of thebodySpanrecord component.- Returns:
- the value of the
bodySpanrecord component
-
endMarkerSpan
Returns the value of theendMarkerSpanrecord component.- Returns:
- the value of the
endMarkerSpanrecord component
-