Interface KSValueArgument

  • 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract KSName getName() The name for the named argument, or null otherwise.
      abstract Boolean isSpread() True if it is a spread argument (i.e., has a "*" in front of the argument).
      abstract Object getValue() The value of the argument.
      • Methods inherited from class com.google.devtools.ksp.symbol.KSNode

        accept, getLocation, getOrigin, getParent
      • 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
    • Constructor Detail

    • 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"

      • isSpread

         abstract Boolean isSpread()

        True if it is a spread argument (i.e., has a "*" in front of the argument).