Scala LanguageAnnotations


Syntax

  • @AnAnnotation def someMethod = {...}
  • @AnAnnotation class someClass {...}
  • @AnnotatioWithArgs(annotation_args) def someMethod = {...}

Parameters

ParameterDetails
@Indicates that the token following is an annotation.
SomeAnnotationThe name of the annotation
constructor_args(optional) The arguments passed to the annotation. If none, the parentheses are unneeded.

Remarks