Class FunctionFromInterfaceCoercer

  • All Implemented Interfaces:
    ICoercer

    public class FunctionFromInterfaceCoercer
    extends BaseCoercer
    • Method Detail

      • handlesNull

        public boolean handlesNull()
        Returns:
        true if this coercer knows how to handle the null value.
      • isExplicitCoercion

        public boolean isExplicitCoercion()
      • areTypesCompatible

        public static boolean areTypesCompatible​(IFunctionType functionType,
                                                 IType interfaceType)
      • getPriority

        public int getPriority​(IType to,
                               IType from)
        Returns:
        a value between 0 and MAX_PRIORITY, inclusive that indicates the priority of this coercer when resolving overloaded methods. Typically a coercer should return 0, but coercers that have a high affinity between the target and coerced type, such as primitives, can have higher priorities.