Package ch.so.agi.mcp.constraint
Record Class ConstraintExpression.FunctionDefinition
java.lang.Object
java.lang.Record
ch.so.agi.mcp.constraint.ConstraintExpression.FunctionDefinition
- Enclosing interface:
ConstraintExpression
public static record ConstraintExpression.FunctionDefinition(String semanticId, List<ConstraintExpression.ArgumentSpec> arguments, ConstraintExpression.Type declaredResultType, ConstraintExpression.ResultTypeRule resultTypeRule, Map<ConstraintExpression.IliVersion,ConstraintExpression.SurfaceSyntax> surfaceSyntax)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFunctionDefinition(String semanticId, List<ConstraintExpression.ArgumentSpec> arguments, ConstraintExpression.Type declaredResultType, ConstraintExpression.ResultTypeRule resultTypeRule, Map<ConstraintExpression.IliVersion, ConstraintExpression.SurfaceSyntax> surfaceSyntax) Creates an instance of aFunctionDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentsrecord component.Returns the value of thedeclaredResultTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theresultTypeRulerecord component.Returns the value of thesemanticIdrecord component.Returns the value of thesurfaceSyntaxrecord component.syntax(ConstraintExpression.IliVersion version) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FunctionDefinition
public FunctionDefinition(String semanticId, List<ConstraintExpression.ArgumentSpec> arguments, ConstraintExpression.Type declaredResultType, ConstraintExpression.ResultTypeRule resultTypeRule, Map<ConstraintExpression.IliVersion, ConstraintExpression.SurfaceSyntax> surfaceSyntax) Creates an instance of aFunctionDefinitionrecord class.- Parameters:
semanticId- the value for thesemanticIdrecord componentarguments- the value for theargumentsrecord componentdeclaredResultType- the value for thedeclaredResultTyperecord componentresultTypeRule- the value for theresultTypeRulerecord componentsurfaceSyntax- the value for thesurfaceSyntaxrecord component
-
-
Method Details
-
syntax
-
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
-
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-
declaredResultType
Returns the value of thedeclaredResultTyperecord component.- Returns:
- the value of the
declaredResultTyperecord component
-
resultTypeRule
Returns the value of theresultTypeRulerecord component.- Returns:
- the value of the
resultTypeRulerecord component
-
surfaceSyntax
Returns the value of thesurfaceSyntaxrecord component.- Returns:
- the value of the
surfaceSyntaxrecord component
-