Record Class JTestCondition.Instantiation
java.lang.Object
java.lang.Record
honeyroasted.jypestub.model.test.JTestCondition.Instantiation
- All Implemented Interfaces:
JTestCondition
- Enclosing interface:
JTestCondition
public static record JTestCondition.Instantiation(String var, String declaring, String declaringMethod, String type, 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
ConstructorsConstructorDescriptionInstantiation(String var, String declaring, String declaringMethod, String type, JTestCondition.Branch branches) Creates an instance of aInstantiationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbranches()Returns the value of thebranchesrecord 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.test(honeyroasted.jype.system.JTypeSystem system, honeyroasted.almonds.ConstraintTree tree) final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.var()Returns the value of thevarrecord component.
-
Constructor Details
-
Instantiation
public Instantiation(String var, String declaring, String declaringMethod, String type, JTestCondition.Branch branches) Creates an instance of aInstantiationrecord class.- Parameters:
var- the value for thevarrecord componentdeclaring- the value for thedeclaringrecord componentdeclaringMethod- the value for thedeclaringMethodrecord componenttype- the value for thetyperecord 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). -
var
Returns the value of thevarrecord component.- Returns:
- the value of the
varrecord 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
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
branches
Returns the value of thebranchesrecord component.- Returns:
- the value of the
branchesrecord component
-