Interface CBVariantCaseType

All Superinterfaces:
CBFieldOwnerType
All Known Implementing Classes:
CBVariantCase

public non-sealed interface CBVariantCaseType extends CBFieldOwnerType
A single case within a CBVariantType. A (nominal) algebraic product type, analogous to an anonymous CBRecordType.
  • Method Details

    • owner

      CBVariantType owner()
      Returns:
      The type within which this case is declared
    • name

      String name()
      Returns:
      The name of the variant case
    • documentation

      List<String> documentation()
      Returns:
      The documentation for the case