Package ch.so.agi.mcp.constraint
Record Class StandardFunctionRegistry.StandardFunction
java.lang.Object
java.lang.Record
ch.so.agi.mcp.constraint.StandardFunctionRegistry.StandardFunction
- Enclosing class:
StandardFunctionRegistry
public static record StandardFunctionRegistry.StandardFunction(String semanticId, StandardFunctionRegistry.Family family, String localName, List<StandardFunctionRegistry.Parameter> parameters, String declaredReturnType, ConstraintExpression.FunctionDefinition definition)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionStandardFunction(String semanticId, StandardFunctionRegistry.Family family, String localName, List<StandardFunctionRegistry.Parameter> parameters, String declaredReturnType, ConstraintExpression.FunctionDefinition definition) Creates an instance of aStandardFunctionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeclaredReturnTyperecord component.Returns the value of thedefinitionrecord component.final booleanIndicates whether some other object is "equal to" this one.family()Returns the value of thefamilyrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelocalNamerecord component.modelName(ConstraintExpression.IliVersion version) Returns the value of theparametersrecord component.Returns the value of thesemanticIdrecord component.signature(ConstraintExpression.IliVersion version) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StandardFunction
public StandardFunction(String semanticId, StandardFunctionRegistry.Family family, String localName, List<StandardFunctionRegistry.Parameter> parameters, String declaredReturnType, ConstraintExpression.FunctionDefinition definition) Creates an instance of aStandardFunctionrecord class.- Parameters:
semanticId- the value for thesemanticIdrecord componentfamily- the value for thefamilyrecord componentlocalName- the value for thelocalNamerecord componentparameters- the value for theparametersrecord componentdeclaredReturnType- the value for thedeclaredReturnTyperecord componentdefinition- the value for thedefinitionrecord component
-
-
Method Details
-
modelName
-
qualifiedName
-
functionSignature
-
signature
-
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). -
semanticId
Returns the value of thesemanticIdrecord component.- Returns:
- the value of the
semanticIdrecord component
-
family
Returns the value of thefamilyrecord component.- Returns:
- the value of the
familyrecord component
-
localName
Returns the value of thelocalNamerecord component.- Returns:
- the value of the
localNamerecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
declaredReturnType
Returns the value of thedeclaredReturnTyperecord component.- Returns:
- the value of the
declaredReturnTyperecord component
-
definition
Returns the value of thedefinitionrecord component.- Returns:
- the value of the
definitionrecord component
-