Class SignatureBinder


  • public class SignatureBinder
    extends Object
    Determines whether, and how, a callsite matches a generic function signature. Which is equivalent to finding assignments for the variables in the generic signature, such that all of the function's declared parameters are super types of the corresponding arguments, and also satisfy the declared constraints (such as a given type parameter must bind to an orderable type)

    This implementation has made assumptions. When any of the assumptions is not satisfied, it will fail loudly.

    Here are some known implementation limitations:

    • Binding signature (decimal(x,2))boolean with arguments decimal(1,0) fails. It should produce decimal(3,1).