-
- All Implemented Interfaces:
-
com.google.devtools.ksp.symbol.KSAnnotated,com.google.devtools.ksp.symbol.KSNode
public interface KSValueArgument implements KSAnnotated
A value argument to function / constructor calls.
Currently, only appears in annotation arguments.
-
-
Method Summary
Modifier and Type Method Description abstract KSNamegetName()The name for the named argument, or null otherwise. abstract BooleangetIsSpread()True if it is a spread argument (i.e., has a "*" in front of the argument). abstract ObjectgetValue()The value of the argument. abstract Sequence<KSAnnotation>getAnnotations()All annotations on this symbol. abstract OrigingetOrigin()abstract LocationgetLocation()abstract KSNodegetParent()-
-
Method Detail
-
getName
abstract KSName getName()
The name for the named argument, or null otherwise.
For example, in
ignore(name=123456), the name value is "name"
-
getIsSpread
abstract Boolean getIsSpread()
True if it is a spread argument (i.e., has a "*" in front of the argument).
-
getAnnotations
abstract Sequence<KSAnnotation> getAnnotations()
All annotations on this symbol.
-
getLocation
abstract Location getLocation()
-
-
-
-