Package net.sf.saxon.expr
Record Class TryCatch.CatchClause
java.lang.Object
java.lang.Record
net.sf.saxon.expr.TryCatch.CatchClause
- Enclosing class:
TryCatch
-
Constructor Summary
ConstructorsConstructorDescriptionCatchClause(Operand catchOp, QNameTest nameTest) Creates an instance of aCatchClauserecord class. -
Method Summary
Modifier and TypeMethodDescriptioncatchOp()Returns the value of thecatchOprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.nameTest()Returns the value of thenameTestrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CatchClause
Creates an instance of aCatchClauserecord class.- Parameters:
catchOp- the value for thecatchOprecord componentnameTest- the value for thenameTestrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
catchOp
Returns the value of thecatchOprecord component.- Returns:
- the value of the
catchOprecord component
-
nameTest
Returns the value of thenameTestrecord component.- Returns:
- the value of the
nameTestrecord component
-