Add support for class member variable

supersedes #1417
parsePropertyDefinition can deal with getters and setters