Class CBCGJavaTypeExpressions
java.lang.Object
com.io7m.cedarbridge.codegen.java.internal.type_expressions.CBCGJavaTypeExpressions
Functions to generate code for type expressions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<com.io7m.jodist.TypeVariableName>createTypeVariables(List<CBTypeParameterType> typeParameters) Create type variables for the given list of parameters.static com.io7m.jodist.TypeNameEvaluate the given type expression.static com.io7m.jodist.TypeNameEvaluate the given type expression.
-
Method Details
-
evaluateTypeExpression
Evaluate the given type expression.- Parameters:
type- The type expression- Returns:
- The name of the resulting type
-
evaluateTypeExpressionNamed
public static com.io7m.jodist.TypeName evaluateTypeExpressionNamed(CBTypeExpressionType.CBTypeExprNamedType type) Evaluate the given type expression.- Parameters:
type- The type expression- Returns:
- The name of the resulting type
-
createTypeVariables
public static List<com.io7m.jodist.TypeVariableName> createTypeVariables(List<CBTypeParameterType> typeParameters) Create type variables for the given list of parameters.- Parameters:
typeParameters- The type parameters- Returns:
- The resulting type variables
-