Package com.io7m.cedarbridge.codegen.java.internal.type_expressions

# Class CBCGJavaTypeExpressions

java.lang.Object
com.io7m.cedarbridge.codegen.java.internal.type_expressions.CBCGJavaTypeExpressions

public final class CBCGJavaTypeExpressions extends Object
Functions to generate code for type expressions.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static List<com.io7m.jodist.TypeVariableName>`
  `createTypeVariables(List<CBTypeParameterType> typeParameters)`
  Create type variables for the given list of parameters.
  `static com.io7m.jodist.TypeName`
  `evaluateTypeExpression(CBTypeExpressionType type)`
  Evaluate the given type expression.
  `static com.io7m.jodist.TypeName`
  `evaluateTypeExpressionNamed(CBTypeExpressionType.CBTypeExprNamedType type)`
  Evaluate the given type expression.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### evaluateTypeExpression

    public static com.io7m.jodist.TypeName evaluateTypeExpression(CBTypeExpressionType type)
    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