Record Class ConceptualAccess.OrderingStep
java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.ConceptualAccess.OrderingStep
- Record Components:
body- the method or function the step is written ininOwnComparison- true when that body is the generic's own hand-written self-comparison<=>into- the method or function the values are handed on to; null when the body orders themintoParameter- the type parameter they become ininto; null when the body orders them
- Enclosing class:
ConceptualAccess
public static record ConceptualAccess.OrderingStep(IScopedSymbol body, boolean inOwnComparison, IScopedSymbol into, ISymbol intoParameter)
extends Record
One step towards a
<=> on a bare type parameter, recorded on that parameter (D89, D91 step 4): the body of
a method or function orders the parameter's values itself (into null - a <=> on them, or a value
given to a function delegate), or hands them on to another body that may (into, whose own parameter
intoParameter they become - the generic's own method, the same parameter; a generic function, the type
parameter they are bound to). Read only by TypeParameterOrderedInOwnComparison, from the steps written in
the generic's own hand-written <=>.-
Constructor Summary
ConstructorsConstructorDescriptionOrderingStep(IScopedSymbol body, boolean inOwnComparison, IScopedSymbol into, ISymbol intoParameter) Creates an instance of aOrderingSteprecord class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theinOwnComparisonrecord component.into()Returns the value of theintorecord component.Returns the value of theintoParameterrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OrderingStep
public OrderingStep(IScopedSymbol body, boolean inOwnComparison, IScopedSymbol into, ISymbol intoParameter) Creates an instance of aOrderingSteprecord class.- Parameters:
body- the value for thebodyrecord componentinOwnComparison- the value for theinOwnComparisonrecord componentinto- the value for theintorecord componentintoParameter- the value for theintoParameterrecord 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. -
body
-
inOwnComparison
public boolean inOwnComparison()Returns the value of theinOwnComparisonrecord component.- Returns:
- the value of the
inOwnComparisonrecord component
-
into
-
intoParameter
Returns the value of theintoParameterrecord component.- Returns:
- the value of the
intoParameterrecord component
-