Interface Resolver.Conversion

  • Enclosing interface:
    Resolver

    public static interface Resolver.Conversion
    Description of an implicit conversion that occurred while resolving an operator call.
    • Method Detail

      • getCost

        int getCost()
        Returns the cost of the conversion. If there are several matching overloads, the one with the lowest overall cost will be preferred.
        Returns:
        Cost of conversion
      • checkValid

        void checkValid()
        Checks the viability of implicit conversions. Converting from a dimension to a hierarchy is valid if is only one hierarchy.
      • apply

        void apply​(Validator validator,
                   List<Exp> args)
        Applies this conversion to its argument, modifying the argument list in place.
        Parameters:
        validator - Validator
        args - Argument list