Lines Matching refs:field

1120      * Returns true if the type of the field matches the specified class.
1122 * the field is of the primitive "boolean" type. Also handles all of
1125 private static boolean fieldTypeMatches(Field field, Class<?> cl) {
1126 Class<?> fieldClass = field.getType();
1133 * have a Class field called "TYPE" that points to the corresponding
1149 * Looks up the property that corresponds to the field, and sets the field's value
1152 private static void modifyFieldIfSet(final Field field, final TypedProperties properties,
1154 if (field.getType() == java.lang.String.class) {
1162 field.set(null, null); // null object for static fields; null string
1165 "Cannot set field for " + propertyName, ex);
1173 " does not match field type (" + field.getType() + ")");
1182 if (!fieldTypeMatches(field, value.getClass())) {
1185 " does not match field type (" + field.getType() + ")");
1188 field.set(null, value); // null object for static fields
1191 "Cannot set field for " + propertyName, ex);
1219 * after the field definitions/initializations, pass the class to
1247 * setFieldsOn() may override the value of any field in the class based
1260 * or if the type of the field does not match the type of
1269 for (Field field : cl.getDeclaredFields()) {
1270 if (!partial || field.getAnnotation(DebugProperty.class) != null) {
1271 final String propertyName = cl.getName() + "." + field.getName();
1272 boolean isStatic = Modifier.isStatic(field.getModifiers());
1273 boolean isFinal = Modifier.isFinal(field.getModifiers());
1279 modifyFieldIfSet(field, debugProperties, propertyName);