-
- All Implemented Interfaces:
-
com.google.devtools.ksp.symbol.KSAnnotated,com.google.devtools.ksp.symbol.KSDeclaration,com.google.devtools.ksp.symbol.KSExpectActual,com.google.devtools.ksp.symbol.KSModifierListOwner,com.google.devtools.ksp.symbol.KSNode
public interface KSTypeParameter implements KSDeclaration
A type parameter
-
-
Method Summary
Modifier and Type Method Description abstract KSNamegetName()Name of the type parameterFor example, in class Foo<T>, the name value is "T"abstract VariancegetVariance()Declaration-site variance abstract BooleanisReified()True if it is reified, i.e., has the reified modifier. abstract Sequence<KSTypeReference>getBounds()Upper bounds of the type parameter. -
Methods inherited from class com.google.devtools.ksp.symbol.KSNode
accept, getLocation, getOrigin, getParent -
Methods inherited from class com.google.devtools.ksp.symbol.KSExpectActual
findActuals, findExpects, isActual, isExpect -
Methods inherited from class com.google.devtools.ksp.symbol.KSDeclaration
getContainingFile, getDocString, getPackageName, getParentDeclaration, getQualifiedName, getSimpleName, getTypeParameters -
Methods inherited from class com.google.devtools.ksp.symbol.KSModifierListOwner
getModifiers -
Methods inherited from class com.google.devtools.ksp.symbol.KSAnnotated
getAnnotations -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getName
abstract KSName getName()
Name of the type parameter
For example, in
class Foo<T>, the name value is "T"
-
getVariance
abstract Variance getVariance()
Declaration-site variance
-
getBounds
abstract Sequence<KSTypeReference> getBounds()
Upper bounds of the type parameter.
-
-
-
-