Package com.google.devtools.ksp.symbol
Interface KSAnnotation
-
- All Implemented Interfaces:
-
com.google.devtools.ksp.symbol.KSNode
public interface KSAnnotation implements KSNode
Instance of a constructor-call-like annotation.
-
-
Method Summary
Modifier and Type Method Description abstract KSTypeReferencegetAnnotationType()Reference to the type of the annotation class declaration. abstract List<KSValueArgument>getArguments()The arguments applied to the constructor call to construct this annotation. abstract List<KSValueArgument>getDefaultArguments()The default values of the annotation members abstract KSNamegetShortName()Short name for this annotation, equivalent to the simple name of the declaration of the annotation class. abstract AnnotationUseSiteTargetgetUseSiteTarget()Use site target of the annotation. -
-
Method Detail
-
getAnnotationType
abstract KSTypeReference getAnnotationType()
Reference to the type of the annotation class declaration.
-
getArguments
abstract List<KSValueArgument> getArguments()
The arguments applied to the constructor call to construct this annotation. Must be compile time constants.
-
getDefaultArguments
abstract List<KSValueArgument> getDefaultArguments()
The default values of the annotation members
-
getShortName
abstract KSName getShortName()
Short name for this annotation, equivalent to the simple name of the declaration of the annotation class.
-
getUseSiteTarget
abstract AnnotationUseSiteTarget getUseSiteTarget()
Use site target of the annotation. Could be null if no annotation use site target is specified.
-
-
-
-