|
Scala Library
|
|
scala/reflect/BeanProperty.scala]
class
BeanProperty
extends StaticAnnotationWhen attached to a field, this annotation adds a setter and a getter method following the Java Bean convention. For example:
@BeanProperty
var status = ""
adds the following methods to the class:
def setStatus(s: String) { this.status = s }
def getStatus: String = this.status
For fields of type Boolean, if you need a getter
named isStatus, use the
scala.reflect.BooleanBeanProperty annotation instead.
| Methods inherited from AnyRef | |
| getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
| Methods inherited from Any | |
| ==, !=, isInstanceOf, asInstanceOf |
|
Scala Library
|
|