Record Class JTypeContext.ChosenMethod
java.lang.Object
java.lang.Record
honeyroasted.jype.system.solver.constraints.JTypeContext.ChosenMethod
- All Implemented Interfaces:
honeyroasted.almonds.SimpleName
- Enclosing interface:
JTypeContext
public static record JTypeContext.ChosenMethod(JExpressionInformation.Invocation expression, JMethodReference chosen, JTypeConstraints.Compatible.Context context, boolean vararg)
extends Record
implements honeyroasted.almonds.SimpleName
-
Constructor Summary
ConstructorsConstructorDescriptionChosenMethod(JExpressionInformation.Invocation expression, JMethodReference chosen, JTypeConstraints.Compatible.Context context, boolean vararg) Creates an instance of aChosenMethodrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchosen()Returns the value of thechosenrecord component.context()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpressionrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.booleanvararg()Returns the value of thevarargrecord component.
-
Constructor Details
-
ChosenMethod
public ChosenMethod(JExpressionInformation.Invocation expression, JMethodReference chosen, JTypeConstraints.Compatible.Context context, boolean vararg) Creates an instance of aChosenMethodrecord class.- Parameters:
expression- the value for theexpressionrecord componentchosen- the value for thechosenrecord componentcontext- the value for thecontextrecord componentvararg- the value for thevarargrecord component
-
-
Method Details
-
simpleName
- Specified by:
simpleNamein interfacehoneyroasted.almonds.SimpleName
-
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. -
expression
Returns the value of theexpressionrecord component.- Returns:
- the value of the
expressionrecord component
-
chosen
Returns the value of thechosenrecord component.- Returns:
- the value of the
chosenrecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
vararg
public boolean vararg()Returns the value of thevarargrecord component.- Returns:
- the value of the
varargrecord component
-