blob: 50c095486f915bc3b34e180995aa644d19e2e4fd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002-2009, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
// $Id$
package scala.reflect
/** <p>
* When attached to a field, this annotation adds a setter and a getter
* method following the Java Bean convention. For example:
* </p><pre>
* @BeanProperty
* <b>var</b> status = ""</pre>
* <p>
* adds the following methods to the class:
* </p><pre>
* <b>def</b> setStatus(s: String) { <b>this</b>.status = s }
* <b>def</b> getStatus: String = <b>this</b>.status
* </pre>
* <p>
* For fields of type <code>Boolean</code>, if you need a getter
* named <code>isStatus</code>, use the
* <code>scala.reflect.BooleanBeanProperty</code> annotation instead.
* </p>
*/
class BeanProperty extends StaticAnnotation
|