Module java.base
Package java.lang.classfilePREVIEW

# Interface Signature.TypeVarSig

All Superinterfaces:
  `SignaturePREVIEW`, `Signature.RefTypeSigPREVIEW`, `Signature.ThrowableSigPREVIEW`

Enclosing interface:
  `SignaturePREVIEW`

public static sealed interface Signature.TypeVarSig extends Signature.RefTypeSigPREVIEW, Signature.ThrowableSigPREVIEW
`TypeVarSig` is a preview API of the Java platform.
Programs can only use `TypeVarSig` when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models the signature of a type variable.

Since:
  22

- ## Nested Class Summary

  ## Nested classes/interfaces declared in interface java.lang.classfile.SignaturePREVIEW

  `Signature.ArrayTypeSigPREVIEW, Signature.BaseTypeSigPREVIEW, Signature.ClassTypeSigPREVIEW, Signature.RefTypeSigPREVIEW, Signature.ThrowableSigPREVIEW, Signature.TypeArgPREVIEW, Signature.TypeParamPREVIEW, Signature.TypeVarSigPREVIEW`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `identifier()`
  Returns the name of the type variable.
  `static Signature.TypeVarSigPREVIEW`
  `of(String identifier)`
  Returns a signature for a type variable.

  ### Methods declared in interface java.lang.classfile.SignaturePREVIEW

  `signatureString`

- ## Method Details

  - ### identifier

    String identifier()
    Returns the name of the type variable.
    Returns:
      the name of the type variable

  - ### of

    static Signature.TypeVarSigPREVIEW of(String identifier)
    Returns a signature for a type variable.
    Parameters:
      `identifier` - the name of the type variable
    Returns:
      a signature for a type variable