Packages

class defaultsToName extends Annotation with StaticAnnotation

Meta annotation that may be used on String constructor parameter of an annotation. This constructor parameter must take a default null value. defaultsToName makes annotation processing macro engines insert the name of annotated symbol instead of null.

Example:
  1. class SomeMethodAnnotation(@defaultsToName val name: String = null)
    
    @SomeMethodAnnotation def someMethod: String

    Now, when some macro engine has to inspect SomeMethodAnnotation of someMethod, it will automatically insert the string "someMethod" as the argument of SomeMethodAnnotation.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. defaultsToName
  2. StaticAnnotation
  3. Annotation
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new defaultsToName()