Package com.io7m.cedarbridge.runtime.api
Class CBTypeArguments
java.lang.Object
com.io7m.cedarbridge.runtime.api.CBTypeArguments
Functions over type arguments.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckArgumentCount(String packageName, String typeName, int expectedCount, int receivedCount) Check that the argument count matches the parameter count of the target type.static CBTypeArgumentof(CBQualifiedTypeName target, List<CBTypeArgument> arguments) Construct a type argument.
-
Method Details
-
of
Construct a type argument.- Parameters:
target- The target typearguments- 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 nametypeName- The type nameexpectedCount- The expected number of argumentsreceivedCount- The received number of arguments
-