Record Class SourceRegions.Marker
java.lang.Object
java.lang.Record
org.ek9lang.compiler.common.SourceRegions.Marker
- Enclosing class:
SourceRegions
static record SourceRegions.Marker(SourceRegions.Kind kind, boolean end, String name, String indent)
extends Record
One marker line: whether it opens or closes, its kind, its name and its indentation.
-
Constructor Summary
ConstructorsConstructorDescriptionMarker(SourceRegions.Kind kind, boolean end, String name, String indent) Creates an instance of aMarkerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.indent()Returns the value of theindentrecord 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
-
Marker
Marker(SourceRegions.Kind kind, boolean end, String name, String indent) Creates an instance of aMarkerrecord class.- Parameters:
kind- the value for thekindrecord componentend- the value for theendrecord componentname- the value for thenamerecord componentindent- the value for theindentrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
end
public boolean end()Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
indent
Returns the value of theindentrecord component.- Returns:
- the value of the
indentrecord component
-