Record Class JTestConstraint.Throws
java.lang.Object
java.lang.Record
honeyroasted.jypestub.model.test.JTestConstraint.Throws
- All Implemented Interfaces:
JTestConstraint
- Enclosing interface:
JTestConstraint
public static record JTestConstraint.Throws(JTestExpression.Wrapper expr, String declaring, String declaringMethod, String type)
extends Record
implements JTestConstraint
-
Nested Class Summary
Nested classes/interfaces inherited from interface honeyroasted.jypestub.model.test.JTestConstraint
JTestConstraint.Capture, JTestConstraint.Compatible, JTestConstraint.Contains, JTestConstraint.Contradiction, JTestConstraint.Equal, JTestConstraint.ExpressionCompatible, JTestConstraint.Subtype, JTestConstraint.Throws, JTestConstraint.Wrapper -
Field Summary
Fields inherited from interface honeyroasted.jypestub.model.test.JTestConstraint
SUBTYPE_KEYS -
Constructor Summary
ConstructorsConstructorDescriptionThrows(JTestExpression.Wrapper expr, String declaring, String declaringMethod, String type) Creates an instance of aThrowsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeclaringrecord component.Returns the value of thedeclaringMethodrecord component.final booleanIndicates whether some other object is "equal to" this one.expr()Returns the value of theexprrecord component.final inthashCode()Returns a hash code value for this object.Set<honeyroasted.almonds.Constraint> resolve(honeyroasted.jype.system.JTypeSystem system) final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Throws
Creates an instance of aThrowsrecord class.- Parameters:
expr- the value for theexprrecord componentdeclaring- the value for thedeclaringrecord componentdeclaringMethod- the value for thedeclaringMethodrecord componenttype- the value for thetyperecord component
-
-
Method Details
-
resolve
- Specified by:
resolvein interfaceJTestConstraint
-
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). -
expr
Returns the value of theexprrecord component.- Returns:
- the value of the
exprrecord 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
-