getStringFromVariable

open fun getStringFromVariable(@NonNull className: String, @NonNull fieldName: String): String

Get specific string field in this class.

Return

String in this class field. If there is no String in this class, null will be return.

Parameters

className

class name to find string.

fieldName

field name to find string.


open fun getStringFromVariable(@NonNull className: String, @NonNull fieldName: String, isStatic: Boolean): String

Get specific string field in this class.

Return

String in this class field. If there is no String in this class, null will be return.

Parameters

className

class name to find string.

fieldName

field name to find string.

isStatic

true if string is static filed. false if not.