Home | History | Annotate | Download | only in filterfw

Lines Matching refs:field

19 import java.lang.reflect.Field;
31 * InputPorts may be bound to fields of the Filter. When an input port is bound to a field, Frame
32 * values will be assigned to the field once a Frame is received on that port. The Frame value must
33 * be of a type that is compatible with the field type.
52 private Field mField;
54 public FieldBinding(Field field) {
55 mField = field;
69 throw new RuntimeException("Assigning frame " + frame + " to field "
107 * Bind this input port to the specified field.
109 * Use this when you wish to pull frames directly into a field of the filter. This requires
110 * that the input frames can be interpreted as object-based frames of the field's class.
117 * @param field the field to pull frame data into.
121 public void bindToField(Field field) {
123 mListener = new FieldBinding(field);
127 * Bind this input port to the field with the specified name.
129 * Use this when you wish to pull frames directly into a field of the filter. This requires
130 * that the input frames can be interpreted as object-based frames of the field's class.
137 * @param fieldName the field to pull frame data into.
138 * @see #bindToField(Field)
142 Field field = findFieldNamed(fieldName, mFilter.getClass());
143 if (field == null) {
144 throw new IllegalArgumentException("Attempting to bind to unknown field '"
147 bindToField(field);
313 private Field findFieldNamed(String fieldName, Class<?> clazz) {
314 Field field = null;
316 field = clazz.getDeclaredField(fieldName);
317 field.setAccessible(true);
321 field = findFieldNamed(fieldName, superClass);
324 return field;