Get name of class-attribute or class-function as String
- by ifischer
Say i have the following class:
class Person {
@BeanProperty
var firstName: String = _
}
Is it possible to get the String representation of "firstName" in a type-safe way, by reflection or something? Or the String representation of the generated "getFirstName"-Function?