Record Class JTestExpression.Constant
java.lang.Object
java.lang.Record
honeyroasted.jypestub.model.test.JTestExpression.Constant
- All Implemented Interfaces:
JTestExpression
- Enclosing interface:
JTestExpression
public static record JTestExpression.Constant(Object value)
extends Record
implements JTestExpression
-
Nested Class Summary
Nested classes/interfaces inherited from interface honeyroasted.jypestub.model.test.JTestExpression
JTestExpression.Constant, JTestExpression.GetField, JTestExpression.Instantiation, JTestExpression.InstantiationReference, JTestExpression.Invocation, JTestExpression.InvocationReference, JTestExpression.Lambda, JTestExpression.Multi, JTestExpression.SimplyTyped, JTestExpression.Wrapper -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from interface honeyroasted.jypestub.model.test.JTestExpression
SUBTYPE_KEYS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.honeyroasted.jype.system.JExpressionInformationresolve(honeyroasted.jype.system.JTypeSystem system) final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
SERIALIZER
-
DESERIALIZER
public static JStubSerialization.WrappingDeserializer<JTestExpression.Constant, Object> DESERIALIZER
-
-
Constructor Details
-
Constant
Creates an instance of aConstantrecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
resolve
public honeyroasted.jype.system.JExpressionInformation resolve(honeyroasted.jype.system.JTypeSystem system) - Specified by:
resolvein interfaceJTestExpression
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-