APIdia Launch Partner
Top Description Inners Methods
java.lang.classfile

public sealed Interface Signature

permits BaseTypeSig, RefTypeSig, ThrowableSig
Known Direct Subinterfaces
java.lang.classfile.Signature.BaseTypeSig, java.lang.classfile.Signature.RefTypeSig, java.lang.classfile.Signature.ThrowableSig
Imports
java.lang.classfile.attribute.SignatureAttribute, java.lang.classfile.constantpool.ClassEntry, java.lang.constant.ClassDesc, java.lang.reflect.GenericArrayType, .GenericDeclaration, .ParameterizedType, .Type, .TypeVariable, .WildcardType, java.util.List, .Optional, jdk.internal.classfile.impl.SignaturesImpl, .Util

Models generic Java type signatures, as defined in JVMS 4.7.9.1.

Names in signatures are identifiers, which must not be empty and must not contain any of the ASCII characters . ; [ / < > :. Top-level class and interface names are denoted by slash-separated identifiers.

Since
24
Java Language Specification
4.1 The Kinds of Types and Values
Java Virtual Machine Specification
4.7.9.1 Signatures
See Also
Type, SignatureAttribute

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
Signature.ArrayTypeSig

Models the signature of an array type.

public static interface
Signature.BaseTypeSig

Models the signature of a primitive type (JLS 4.2) or void.

public static interface
Signature.ClassTypeSig

Models the signature of a possibly-parameterized class or interface type.

public static interface
Signature.RefTypeSig

Models the signature of a reference type, which may be a class, interface, type variable, or array type.

public static interface
Signature.ThrowableSig

Marker interface for a signature for a throwable type.

public static interface
Signature.TypeArg

Models a type argument, an argument to a type parameter.

public static interface
Signature.TypeParam

Models a signature for a type parameter of a generic class, interface, method, or constructor, which introduces a type variable.

public static interface
Signature.TypeVarSig

Models the signature of a type variable.

Method Summary

Modifier and TypeMethod and Description
public static Signature

Returns:

a Java type signature from a field descriptor
of
(ClassDesc
the symbolic description of the Java type
classDesc
)

Returns a Java type signature from a field descriptor.

public static Signature

Returns:

a Java type signature
parseFrom
(String
raw Java type signature string
javaTypeSignature
)

Parses a Java type signature from a raw string.

public String

Returns:

the raw signature string
signatureString
()

Returns the raw signature string.

Method Detail

ofback to summary
public static Signature of(ClassDesc classDesc)

Returns a Java type signature from a field descriptor. The returned signature represents a reifiable type (JLS 4.7).

Parameters
classDesc:ClassDesc

the symbolic description of the Java type

Returns:Signature

a Java type signature from a field descriptor

Exceptions
IllegalArgumentException:
if the field descriptor cannot be denoted
parseFromback to summary
public static Signature parseFrom(String javaTypeSignature)

Parses a Java type signature from a raw string.

Parameters
javaTypeSignature:String

raw Java type signature string

Returns:Signature

a Java type signature

Exceptions
IllegalArgumentException:
if the string is not a valid Java type signature string
signatureStringback to summary
public String signatureString()

Returns the raw signature string.

Returns:String

the raw signature string

java.lang.classfile back to summary

public sealed Interface Signature.ArrayTypeSig

extends RefTypeSig
permits ArrayTypeSigImpl
Known Direct Implementers
jdk.internal.classfile.impl.SignaturesImpl.ArrayTypeSigImpl

Models the signature of an array type.
Since
24
Java Language Specification
10.1 Array Types
Java Virtual Machine Specification
4.7.9.1 Signatures
See Also
Type, GenericArrayType

Method Summary

Modifier and TypeMethod and Description
public Signature

Returns:

the signature of the component type
componentSignature
()

Returns the signature of the component type.

public static Signature.ArrayTypeSig

Returns:

an array type with the given component type
of
(Signature
the component type
componentSignature
)

Returns an array type with the given component type.

public static Signature.ArrayTypeSig

Returns:

a signature for an array type
of
(int
the dimension of the array
dims
,
Signature
the component type
componentSignature
)

Returns a signature for an array type.

Method Detail

componentSignatureback to summary
public Signature componentSignature()

Returns the signature of the component type.

Returns:Signature

the signature of the component type

ofback to summary
public static Signature.ArrayTypeSig of(Signature componentSignature)

Returns an array type with the given component type.

Parameters
componentSignature:Signature

the component type

Returns:Signature.ArrayTypeSig

an array type with the given component type

Exceptions
IllegalArgumentException:
if the component type is void
ofback to summary
public static Signature.ArrayTypeSig of(int dims, Signature componentSignature)

Returns a signature for an array type.

Parameters
dims:int

the dimension of the array

componentSignature:Signature

the component type

Returns:Signature.ArrayTypeSig

a signature for an array type

Exceptions
IllegalArgumentException:
if dims < 1 or the resulting array type exceeds 255 dimensions or the component type is void
java.lang.classfile back to summary

public sealed Interface Signature.BaseTypeSig

extends Signature
permits BaseTypeSigImpl
Known Direct Implementers
jdk.internal.classfile.impl.SignaturesImpl.BaseTypeSigImpl

Models the signature of a primitive type (JLS 4.2) or void.
Since
24
Java Language Specification
4.2 Primitive Types and Values
Java Virtual Machine Specification
4.7.9.1 Signatures

Method Summary

Modifier and TypeMethod and Description
public char

Returns:

the single-letter descriptor for the base type
baseType
()

Returns the single-letter descriptor for the base type.

public static Signature.BaseTypeSig

Returns:

the signature of a primitive type or void
of
(ClassDesc
a symbolic descriptor for the base type, must correspond to a primitive type
classDesc
)

Hides java.lang.classfile.Signature.of.

Returns the signature of a primitive type or void.

public static Signature.BaseTypeSig

Returns:

the signature of a primitive type or void
of
(char
the single-letter descriptor for the base type
baseType
)

Returns the signature of a primitive type or void.

Inherited from java.lang.classfile.Signature:
parseFromsignatureString

Method Detail

baseTypeback to summary
public char baseType()

Returns the single-letter descriptor for the base type.

Returns:char

the single-letter descriptor for the base type

ofback to summary
public static Signature.BaseTypeSig of(ClassDesc classDesc)

Hides java.lang.classfile.Signature.of.

Returns the signature of a primitive type or void.

Parameters
classDesc:ClassDesc

a symbolic descriptor for the base type, must correspond to a primitive type

Returns:Signature.BaseTypeSig

the signature of a primitive type or void

Exceptions
IllegalArgumentException:
if the classDesc is not primitive
ofback to summary
public static Signature.BaseTypeSig of(char baseType)

Returns the signature of a primitive type or void.

Parameters
baseType:char

the single-letter descriptor for the base type

Returns:Signature.BaseTypeSig

the signature of a primitive type or void

Exceptions
IllegalArgumentException:
if the baseType is not a valid descriptor character for a primitive type or void
java.lang.classfile back to summary

public sealed Interface Signature.ClassTypeSig

extends RefTypeSig, ThrowableSig
permits ClassTypeSigImpl
Known Direct Implementers
jdk.internal.classfile.impl.SignaturesImpl.ClassTypeSigImpl

Models the signature of a possibly-parameterized class or interface type.

These are examples of class type signatures:

If the outer type exists, the class name is the simple name of the nested type. Otherwise, it is a binary name in internal form (separated by /).

If a nested type does not have any enclosing parameterization, it may be represented without an outer type and as an internal binary name, in which nesting is represented by $ instead of ..

Since
24
Java Virtual Machine Specification
4.7.9.1 Signatures
See Also
Type, ParameterizedType

Method Summary

Modifier and TypeMethod and Description
public default ClassDesc

Returns:

this class or interface, as a symbolic descriptor
classDesc
()

Returns this class or interface, as a symbolic descriptor.

public String

Returns:

the class or interface name; includes the slash-separated package name if there is no outer type
className
()

Returns the class or interface name; includes the slash-separated package name if there is no outer type.

public static Signature.ClassTypeSig

Returns:

a class or interface signature without an outer type
of
(ClassDesc
the name of the class or interface
className
,
Signature.TypeArg...
the type arguments
typeArgs
)

Returns a class or interface signature without an outer type.

public static Signature.ClassTypeSig

Returns:

a class or interface signature
of
(Signature.ClassTypeSig
signature of the outer type, may be null
outerType
,
ClassDesc
the name of this class or interface
className
,
Signature.TypeArg...
the type arguments
typeArgs
)
Deprecated for removal since 26. The resulting signature does not denote the class represented by className when outerType is not null.

Returns a class or interface signature.

public static Signature.ClassTypeSig

Returns:

a class or interface signature without an outer type
of
(String
the name of the class or interface, may use / to separate
className
,
Signature.TypeArg...
the type arguments
typeArgs
)

Returns a class or interface signature without an outer type.

public static Signature.ClassTypeSig

Returns:

a class type signature
of
(Signature.ClassTypeSig
signature of the outer type, may be null
outerType
,
String
the name of this class or interface, may use / to separate if outer type is absent
className
,
Signature.TypeArg...
the type arguments
typeArgs
)

Returns a class type signature.

public Optional<Signature.ClassTypeSig>

Returns:

the signature of the class that this class is a member of, only if this is a member class
outerType
()

Returns the signature of the class that this class is a member of, only if this is a member class.

public List<Signature.TypeArg>

Returns:

the type arguments of this class or interface
typeArgs
()

Returns the type arguments of this class or interface.

Method Detail

classDescback to summary
public default ClassDesc classDesc()

Returns this class or interface, as a symbolic descriptor.

Returns:ClassDesc

this class or interface, as a symbolic descriptor

classNameback to summary
public String className()

Returns the class or interface name; includes the slash-separated package name if there is no outer type. Note this may indicate a nested class name with $ separators if there is no parameterized enclosing type.

Returns:String

the class or interface name; includes the slash-separated package name if there is no outer type

ofback to summary
public static Signature.ClassTypeSig of(ClassDesc className, Signature.TypeArg... typeArgs)

Returns a class or interface signature without an outer type.

Parameters
className:ClassDesc

the name of the class or interface

typeArgs:Signature.TypeArg[]

the type arguments

Returns:Signature.ClassTypeSig

a class or interface signature without an outer type

Exceptions
IllegalArgumentException:
if className does not represent a class or interface, or if it cannot be denoted
ofback to summary
public static Signature.ClassTypeSig of(Signature.ClassTypeSig outerType, ClassDesc className, Signature.TypeArg... typeArgs)

Deprecated

for removal since 26.

The resulting signature does not denote the class represented by className when outerType is not null. Use of(ClassTypeSig, String, TypeArg...) instead.

Returns a class or interface signature.

Parameters
outerType:Signature.ClassTypeSig

signature of the outer type, may be null

className:ClassDesc

the name of this class or interface

typeArgs:Signature.TypeArg[]

the type arguments

Returns:Signature.ClassTypeSig

a class or interface signature

Annotations
@Deprecated
since:26
forRemoval:true
Exceptions
IllegalArgumentException:
if className does not represent a class or interface, or if it cannot be denoted
ofback to summary
public static Signature.ClassTypeSig of(String className, Signature.TypeArg... typeArgs)

Returns a class or interface signature without an outer type.

Parameters
className:String

the name of the class or interface, may use / to separate

typeArgs:Signature.TypeArg[]

the type arguments

Returns:Signature.ClassTypeSig

a class or interface signature without an outer type

Exceptions
IllegalArgumentException:
if className cannot be denoted
ofback to summary
public static Signature.ClassTypeSig of(Signature.ClassTypeSig outerType, String className, Signature.TypeArg... typeArgs)

Returns a class type signature.

Parameters
outerType:Signature.ClassTypeSig

signature of the outer type, may be null

className:String

the name of this class or interface, may use / to separate if outer type is absent

typeArgs:Signature.TypeArg[]

the type arguments

Returns:Signature.ClassTypeSig

a class type signature

Exceptions
IllegalArgumentException:
if className cannot be denoted
outerTypeback to summary
public Optional<Signature.ClassTypeSig> outerType()

Returns the signature of the class that this class is a member of, only if this is a member class. Note that the outer class may be absent if this is a member class without any parameterized enclosing type.

Returns:Optional<Signature.ClassTypeSig>

the signature of the class that this class is a member of, only if this is a member class

Java Language Specification
4.5 Parameterized Types
typeArgsback to summary
public List<Signature.TypeArg> typeArgs()

Returns the type arguments of this class or interface. Note that the outer type may have more type arguments.

Returns:List<Signature.TypeArg>

the type arguments of this class or interface

Java Language Specification
4.5 Parameterized Types
java.lang.classfile back to summary

public sealed Interface Signature.RefTypeSig

extends Signature
permits ArrayTypeSig, ClassTypeSig, TypeVarSig
Known Direct Subinterfaces
java.lang.classfile.Signature.ClassTypeSig, java.lang.classfile.Signature.TypeVarSig, java.lang.classfile.Signature.ArrayTypeSig

Models the signature of a reference type, which may be a class, interface, type variable, or array type.
Since
24
Java Language Specification
4.3 Reference Types and Values
Java Virtual Machine Specification
4.7.9.1 Signatures

Method Summary

Inherited from java.lang.classfile.Signature:
ofparseFromsignatureString
java.lang.classfile back to summary

public sealed Interface Signature.ThrowableSig

extends Signature
permits ClassTypeSig, TypeVarSig
Known Direct Subinterfaces
java.lang.classfile.Signature.ClassTypeSig, java.lang.classfile.Signature.TypeVarSig

Marker interface for a signature for a throwable type.
Since
24
Java Language Specification
8.4.6 Method Throws
Java Virtual Machine Specification
4.7.9.1 Signatures

Method Summary

Inherited from java.lang.classfile.Signature:
ofparseFromsignatureString
java.lang.classfile back to summary

public sealed Interface Signature.TypeArg

permits Unbounded, Bounded
Known Direct Subinterfaces
java.lang.classfile.Signature.TypeArg.Unbounded, java.lang.classfile.Signature.TypeArg.Bounded

Models a type argument, an argument to a type parameter.
Since
24
Java Language Specification
4.5.1 Type Arguments of Parameterized Types
Java Virtual Machine Specification
4.7.9.1 Signatures
See Also
Type, WildcardType

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
Signature.TypeArg.Bounded

Models a type argument with an explicit bound type.

public static interface
Signature.TypeArg.Unbounded

Models an unbounded wildcard type argument *, or ?

Method Summary

Modifier and TypeMethod and Description
public static Signature.TypeArg.Bounded

Returns:

a bounded type argument
bounded
(Signature.TypeArg.Bounded.WildcardIndicator
the wildcard indicator
wildcard
,
Signature.RefTypeSig
the bound type
boundType
)

Returns a bounded type argument.

public static Signature.TypeArg.Bounded

Returns:

an upper-bounded wildcard type argument
extendsOf
(Signature.RefTypeSig
the upper bound
boundType
)

Returns an upper-bounded wildcard type argument.

public static Signature.TypeArg.Bounded

Returns:

a type argument of a reference type
of
(Signature.RefTypeSig
the reference type
boundType
)

Returns a type argument of a reference type.

public static Signature.TypeArg.Bounded

Returns:

a lower-bounded wildcard type argument
superOf
(Signature.RefTypeSig
the lower bound
boundType
)

Returns a lower-bounded wildcard type argument.

public static Signature.TypeArg.Unbounded

Returns:

an unbounded wildcard type argument *
unbounded
()

Returns an unbounded wildcard type argument *.

Method Detail

boundedback to summary
public static Signature.TypeArg.Bounded bounded(Signature.TypeArg.Bounded.WildcardIndicator wildcard, Signature.RefTypeSig boundType)

Returns a bounded type argument.

Parameters
wildcard:Signature.TypeArg.Bounded.WildcardIndicator

the wildcard indicator

boundType:Signature.RefTypeSig

the bound type

Returns:Signature.TypeArg.Bounded

a bounded type argument

extendsOfback to summary
public static Signature.TypeArg.Bounded extendsOf(Signature.RefTypeSig boundType)

Returns an upper-bounded wildcard type argument.

Parameters
boundType:Signature.RefTypeSig

the upper bound

Returns:Signature.TypeArg.Bounded

an upper-bounded wildcard type argument

See Also
Bounded.WildcardIndicator#EXTENDS
ofback to summary
public static Signature.TypeArg.Bounded of(Signature.RefTypeSig boundType)

Returns a type argument of a reference type.

Parameters
boundType:Signature.RefTypeSig

the reference type

Returns:Signature.TypeArg.Bounded

a type argument of a reference type

See Also
Bounded.WildcardIndicator#NONE
superOfback to summary
public static Signature.TypeArg.Bounded superOf(Signature.RefTypeSig boundType)

Returns a lower-bounded wildcard type argument.

Parameters
boundType:Signature.RefTypeSig

the lower bound

Returns:Signature.TypeArg.Bounded

a lower-bounded wildcard type argument

See Also
Bounded.WildcardIndicator#SUPER
unboundedback to summary
public static Signature.TypeArg.Unbounded unbounded()

Returns an unbounded wildcard type argument *.

Returns:Signature.TypeArg.Unbounded

an unbounded wildcard type argument *

java.lang.classfile back to summary

public sealed Interface Signature.TypeArg.Bounded

extends TypeArg
permits TypeArgImpl
Known Direct Implementers
jdk.internal.classfile.impl.SignaturesImpl.TypeArgImpl

Models a type argument with an explicit bound type.
Since
24
Java Language Specification
4.5.1 Type Arguments of Parameterized Types
Java Virtual Machine Specification
4.7.9.1 Signatures

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
Signature.TypeArg.Bounded.WildcardIndicator

Models a type argument's wildcard indicator.

Method Summary

Modifier and TypeMethod and Description
public Signature.RefTypeSig

Returns:

the signature of the type bound
boundType
()

Returns the signature of the type bound.

public Signature.TypeArg.Bounded.WildcardIndicator

Returns:

the kind of wildcard
wildcardIndicator
()

Returns the kind of wildcard.

Inherited from java.lang.classfile.Signature.TypeArg:
boundedextendsOfofsuperOfunbounded

Method Detail

boundTypeback to summary
public Signature.RefTypeSig boundType()

Returns the signature of the type bound.

Returns:Signature.RefTypeSig

the signature of the type bound

wildcardIndicatorback to summary
public Signature.TypeArg.Bounded.WildcardIndicator wildcardIndicator()

Returns the kind of wildcard.

Returns:Signature.TypeArg.Bounded.WildcardIndicator

the kind of wildcard

java.lang.classfile back to summary

public final Enum Signature.TypeArg.Bounded.WildcardIndicator

extends Enum<Signature.TypeArg.Bounded.WildcardIndicator>
Class Inheritance

Models a type argument's wildcard indicator.
Since
24
Java Language Specification
4.5.1 Type Arguments of Parameterized Types
Java Virtual Machine Specification
4.7.9.1 Signatures

Field Summary

Modifier and TypeField and Description
public static final Signature.TypeArg.Bounded.WildcardIndicator
EXTENDS

Upper-bound indicator +.

public static final Signature.TypeArg.Bounded.WildcardIndicator
NONE

No wildcard (empty), an exact type.

public static final Signature.TypeArg.Bounded.WildcardIndicator
SUPER

Lower-bound indicator -.

Constructor Summary

AccessConstructor and Description
private

Field Detail

EXTENDSback to summary
public static final Signature.TypeArg.Bounded.WildcardIndicator EXTENDS

Upper-bound indicator +. Also known as covariant. This is the ? extends prefix in Java programs.

See Also
WildcardType#getUpperBounds()
NONEback to summary
public static final Signature.TypeArg.Bounded.WildcardIndicator NONE

No wildcard (empty), an exact type. Also known as invariant. This is the direct use of a reference type in Java programs.

See Also
Type
SUPERback to summary
public static final Signature.TypeArg.Bounded.WildcardIndicator SUPER

Lower-bound indicator -. Also known as contravariant. This is the ? super prefix in Java programs.

See Also
WildcardType#getLowerBounds()

Constructor Detail

WildcardIndicatorback to summary
private WildcardIndicator()

Method Detail

valueOfback to summary
public static Signature.TypeArg.Bounded.WildcardIndicator valueOf(String name)
valuesback to summary
public static Signature.TypeArg.Bounded.WildcardIndicator[] values()
java.lang.classfile back to summary

public sealed Interface Signature.TypeArg.Unbounded

extends TypeArg
permits UnboundedTypeArgImpl
Known Direct Implementers
jdk.internal.classfile.impl.SignaturesImpl.UnboundedTypeArgImpl

Models an unbounded wildcard type argument *, or ? in Java programs. This type argument has an implicit upper bound of Object.
Since
24
Java Language Specification
4.5.1 Type Arguments of Parameterized Types
Java Virtual Machine Specification
4.7.9.1 Signatures
See Also
WildcardType#getUpperBounds()
java.lang.classfile back to summary

public sealed Interface Signature.TypeParam

permits TypeParamImpl
Known Direct Implementers
jdk.internal.classfile.impl.SignaturesImpl.TypeParamImpl

Models a signature for a type parameter of a generic class, interface, method, or constructor, which introduces a type variable.
Since
24
Java Language Specification
4.4 Type Variables
Java Virtual Machine Specification
4.7.9.1 Signatures
See Also
GenericDeclaration#getTypeParameters(), TypeVariable, TypeVarSig

Method Summary

Modifier and TypeMethod and Description
public Optional<Signature.RefTypeSig>

Returns:

the class bound of the type parameter
classBound
()

Returns the class bound of the type parameter.

public String

Returns:

the name of the type parameter
identifier
()

Returns the name of the type parameter.

public List<Signature.RefTypeSig>

Returns:

the interface bounds of the type parameter
interfaceBounds
()

Returns the interface bounds of the type parameter.

public static Signature.TypeParam

Returns:

a signature for a type parameter
of
(String
the name of the type parameter
identifier
,
Signature.RefTypeSig
the class bound of the type parameter, may be null
classBound
,
Signature.RefTypeSig...
the interface bounds of the type parameter
interfaceBounds
)

Returns a signature for a type parameter.

public static Signature.TypeParam

Returns:

a signature for a type parameter
of
(String
the name of the type parameter
identifier
,
Optional<Signature.RefTypeSig>
the optional class bound of the type parameter
classBound
,
Signature.RefTypeSig...
the interface bounds of the type parameter
interfaceBounds
)

Returns a signature for a type parameter.

Method Detail

classBoundback to summary
public Optional<Signature.RefTypeSig> classBound()

Returns the class bound of the type parameter. This may be empty if this type parameter only has interface bounds.

Returns:Optional<Signature.RefTypeSig>

the class bound of the type parameter

identifierback to summary
public String identifier()

Returns the name of the type parameter.

Returns:String

the name of the type parameter

interfaceBoundsback to summary
public List<Signature.RefTypeSig> interfaceBounds()

Returns the interface bounds of the type parameter. This may be empty.

Returns:List<Signature.RefTypeSig>

the interface bounds of the type parameter

ofback to summary
public static Signature.TypeParam of(String identifier, Signature.RefTypeSig classBound, Signature.RefTypeSig... interfaceBounds)

Returns a signature for a type parameter.

Parameters
identifier:String

the name of the type parameter

classBound:Signature.RefTypeSig

the class bound of the type parameter, may be null

interfaceBounds:Signature.RefTypeSig[]

the interface bounds of the type parameter

Returns:Signature.TypeParam

a signature for a type parameter

Exceptions
IllegalArgumentException:
if the name cannot be denoted
ofback to summary
public static Signature.TypeParam of(String identifier, Optional<Signature.RefTypeSig> classBound, Signature.RefTypeSig... interfaceBounds)

Returns a signature for a type parameter.

Parameters
identifier:String

the name of the type parameter

classBound:Optional<Signature.RefTypeSig>

the optional class bound of the type parameter

interfaceBounds:Signature.RefTypeSig[]

the interface bounds of the type parameter

Returns:Signature.TypeParam

a signature for a type parameter

Exceptions
IllegalArgumentException:
if the name cannot be denoted
java.lang.classfile back to summary

public sealed Interface Signature.TypeVarSig

extends RefTypeSig, ThrowableSig
permits TypeVarSigImpl
Known Direct Implementers
jdk.internal.classfile.impl.SignaturesImpl.TypeVarSigImpl

Models the signature of a type variable. A type variable is introduced by a type parameter declaration.
Since
24
Java Language Specification
4.4 Type Variables
Java Virtual Machine Specification
4.7.9.1 Signatures
See Also
TypeVariable, TypeParam

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name of the type variable
identifier
()

Returns the name of the type variable.

public static Signature.TypeVarSig

Returns:

a signature for a type variable
of
(String
the name of the type variable
identifier
)

Returns a signature for a type variable.

Method Detail

identifierback to summary
public String identifier()

Returns the name of the type variable.

Returns:String

the name of the type variable

ofback to summary
public static Signature.TypeVarSig of(String identifier)

Returns a signature for a type variable.

Parameters
identifier:String

the name of the type variable

Returns:Signature.TypeVarSig

a signature for a type variable

Exceptions
IllegalArgumentException:
if the name cannot be denoted