Package org.daiitech.naftah.builtin.lang
Record Class BuiltinFunctionInfo
java.lang.Object
java.lang.Record
org.daiitech.naftah.builtin.lang.BuiltinFunctionInfo
- Record Components:
methodName- the Java method name implementing the functionclassName- fully qualified name of the declaring classmethodParameterTypes- fully qualified parameter type names used to resolve the method via reflectioncanonicalKey- the primary lookup key used in function indexing (normalized name)qualifiedAliases- alternative lookup keys (possibly qualified or namespaced aliases)
public record BuiltinFunctionInfo(String methodName, String className, String[] methodParameterTypes, String canonicalKey, String[] qualifiedAliases)
extends Record
Lightweight metadata descriptor for a built-in function.
This record represents the static, serializable information required to
locate and resolve a built-in function at runtime without directly holding
reflective Method references.
It is primarily used by the runtime index system to support:
- fast lookup of built-in functions
- deferred reflective resolution
- alias-based function resolution
- Author:
- Chakib Daii
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thecanonicalKeyrecord component.private final StringThe field for theclassNamerecord component.private final StringThe field for themethodNamerecord component.private final String[]The field for themethodParameterTypesrecord component.private final String[]The field for thequalifiedAliasesrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecanonicalKeyrecord component.Returns the value of theclassNamerecord 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 themethodNamerecord component.String[]Returns the value of themethodParameterTypesrecord component.String[]Returns the value of thequalifiedAliasesrecord component.toString()Returns a simplified human-readable representation of this function descriptor.
-
Field Details
-
methodName
The field for themethodNamerecord component. -
className
The field for theclassNamerecord component. -
methodParameterTypes
The field for themethodParameterTypesrecord component. -
canonicalKey
The field for thecanonicalKeyrecord component. -
qualifiedAliases
The field for thequalifiedAliasesrecord component.
-
-
Constructor Details
-
BuiltinFunctionInfo
public BuiltinFunctionInfo(String methodName, String className, String[] methodParameterTypes, String canonicalKey, String[] qualifiedAliases) Creates an instance of aBuiltinFunctionInforecord class.- Parameters:
methodName- the value for themethodNamerecord componentclassName- the value for theclassNamerecord componentmethodParameterTypes- the value for themethodParameterTypesrecord componentcanonicalKey- the value for thecanonicalKeyrecord componentqualifiedAliases- the value for thequalifiedAliasesrecord component
-
-
Method Details
-
toString
Returns a simplified human-readable representation of this function descriptor.Format:
className#methodNameThis is primarily intended for debugging and logging and does not uniquely identify overloaded methods.
-
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). -
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
methodParameterTypes
Returns the value of themethodParameterTypesrecord component.- Returns:
- the value of the
methodParameterTypesrecord component
-
canonicalKey
Returns the value of thecanonicalKeyrecord component.- Returns:
- the value of the
canonicalKeyrecord component
-
qualifiedAliases
Returns the value of thequalifiedAliasesrecord component.- Returns:
- the value of the
qualifiedAliasesrecord component
-