Package org.apache.groovy.contracts.util
Class FieldValues
java.lang.Object
org.apache.groovy.contracts.util.FieldValues
This utility is meant to be used to replace direct calls to private
field variables in class invariants.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
fieldValue
(Object obj, String fieldName, Class<T> type)
-
Constructor Details
-
FieldValues
public FieldValues()
-
-
Method Details
-
fieldValue
public static <T> T fieldValue(Object obj, String fieldName, Class<T> type) throws IllegalAccessException - Throws:
IllegalAccessException
-