NurBahnhof
09/03/2020, 3:57 PMnanodeath
09/03/2020, 3:58 PMCasey Brooks
09/03/2020, 4:03 PMNurBahnhof
09/03/2020, 4:08 PMNurBahnhof
09/03/2020, 4:10 PMval testTasks = reflectionObject::class.memberFunctions.filter {
it.hasAnnotation<TestTask>()
}.sortedBy { it.findAnnotation<TestTask>()!!.order }
try {
for (task in testTasks) {
if (!(task.call(reflectionObject) as Boolean)) {
studentProc.failTest()
return
}
}
}
nanodeath
09/03/2020, 4:11 PMmemberFunctions
nanodeath
09/03/2020, 4:11 PMdeclaredMemberFunctions
?NurBahnhof
09/03/2020, 4:19 PMnanodeath
09/03/2020, 4:20 PMnanodeath
09/03/2020, 4:20 PMexecute the annotated functions from the parent classyou said the parent class did have annotated methods
NurBahnhof
09/03/2020, 4:23 PMnanodeath
09/03/2020, 4:25 PMNurBahnhof
09/03/2020, 4:39 PMnanodeath
09/03/2020, 5:23 PM