Record Class JTestExpression.Lambda
java.lang.Object
java.lang.Record
honeyroasted.jypestub.model.test.JTestExpression.Lambda
- All Implemented Interfaces:
JTestExpression
- Enclosing interface:
JTestExpression
public static record JTestExpression.Lambda(JTestExpression.Wrapper body, String declaring, String declaringMethod, List<String> parameterTypes, int parameterCount, boolean implicitReturn)
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
Fields inherited from interface honeyroasted.jypestub.model.test.JTestExpression
SUBTYPE_KEYS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.Returns the value of thedeclaringrecord component.Returns the value of thedeclaringMethodrecord 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 theimplicitReturnrecord component.intReturns the value of theparameterCountrecord component.Returns the value of theparameterTypesrecord component.honeyroasted.jype.system.JExpressionInformationresolve(honeyroasted.jype.system.JTypeSystem system) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Lambda
public Lambda(JTestExpression.Wrapper body, String declaring, String declaringMethod, List<String> parameterTypes, int parameterCount, boolean implicitReturn) Creates an instance of aLambdarecord class.- Parameters:
body- the value for thebodyrecord componentdeclaring- the value for thedeclaringrecord componentdeclaringMethod- the value for thedeclaringMethodrecord componentparameterTypes- the value for theparameterTypesrecord componentparameterCount- the value for theparameterCountrecord componentimplicitReturn- the value for theimplicitReturnrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
declaring
Returns the value of thedeclaringrecord component.- Returns:
- the value of the
declaringrecord component
-
declaringMethod
Returns the value of thedeclaringMethodrecord component.- Returns:
- the value of the
declaringMethodrecord component
-
parameterTypes
-
parameterCount
public int parameterCount()Returns the value of theparameterCountrecord component.- Returns:
- the value of the
parameterCountrecord component
-
implicitReturn
public boolean implicitReturn()Returns the value of theimplicitReturnrecord component.- Returns:
- the value of the
implicitReturnrecord component
-