Record Class JTestCondition.InferConstraint
java.lang.Object
java.lang.Record
honeyroasted.jypestub.model.test.JTestCondition.InferConstraint
- All Implemented Interfaces:
JTestCondition
- Enclosing interface:
JTestCondition
public static record JTestCondition.InferConstraint(String metaVar, String var, Boolean status, JTestCondition.Branch branches)
extends Record
implements JTestCondition
-
Nested Class Summary
Nested classes/interfaces inherited from interface honeyroasted.jypestub.model.test.JTestCondition
JTestCondition.Branch, JTestCondition.Constraint, JTestCondition.InferConstraint, JTestCondition.Instantiation, JTestCondition.InstantiationConstraint, JTestCondition.Op, JTestCondition.Result, JTestCondition.Status, JTestCondition.ThrowsConstraint, JTestCondition.Wrapper -
Field Summary
Fields inherited from interface honeyroasted.jypestub.model.test.JTestCondition
SUBTYPE_KEYS -
Constructor Summary
ConstructorsConstructorDescriptionInferConstraint(String metaVar, String var, Boolean status, JTestCondition.Branch branches) Creates an instance of aInferConstraintrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbranches()Returns the value of thebranchesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metaVar()Returns the value of themetaVarrecord component.status()Returns the value of thestatusrecord component.test(honeyroasted.jype.system.JTypeSystem system, honeyroasted.almonds.ConstraintTree tree) final StringtoString()Returns a string representation of this record class.var()Returns the value of thevarrecord component.
-
Constructor Details
-
InferConstraint
Creates an instance of aInferConstraintrecord class.- Parameters:
metaVar- the value for themetaVarrecord componentvar- the value for thevarrecord componentstatus- the value for thestatusrecord componentbranches- the value for thebranchesrecord component
-
-
Method Details
-
test
public JTestCondition.Result test(honeyroasted.jype.system.JTypeSystem system, honeyroasted.almonds.ConstraintTree tree) - Specified by:
testin interfaceJTestCondition
-
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). -
metaVar
Returns the value of themetaVarrecord component.- Returns:
- the value of the
metaVarrecord component
-
var
Returns the value of thevarrecord component.- Returns:
- the value of the
varrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
branches
Returns the value of thebranchesrecord component.- Returns:
- the value of the
branchesrecord component
-