Class CBTypeArguments

java.lang.Object
com.io7m.cedarbridge.runtime.api.CBTypeArguments

public final class CBTypeArguments extends Object
Functions over type arguments.
  • Method Details

    • of

      public static CBTypeArgument of(CBQualifiedTypeName target, List<CBTypeArgument> arguments)
      Construct a type argument.
      Parameters:
      target - The target type
      arguments - The type arguments
      Returns:
      The type argument
    • checkArgumentCount

      public static void checkArgumentCount(String packageName, String typeName, int expectedCount, int receivedCount)
      Check that the argument count matches the parameter count of the target type.
      Parameters:
      packageName - The package name
      typeName - The type name
      expectedCount - The expected number of arguments
      receivedCount - The received number of arguments