test_class.file: code/src/test/java/com/googlecode/cqengine/attribute/ReflectiveAttributeTest.java
test_class.identifier: ReflectiveAttributeTest
test_case.body: @Test
      public void testGetInheritedField() throws NoSuchFieldException {
          Assert.assertEquals("foo", ReflectiveAttribute.getField(Bar.class, "foo").getName());
          Assert.assertEquals("bar", ReflectiveAttribute.getField(Bar.class, "bar").getName());
          NoSuchFieldException expected = null;
          try {
              ReflectiveAttribute.getField(Bar.class, "baz");
          }
          catch (NoSuchFieldException nsfe) {
              expected = nsfe;
          }
          Assert.assertNotNull(expected);
      }
test_case.class_method_signature: ReflectiveAttributeTest.testGetInheritedField()
test_case.full_signature: @Test public void testGetInheritedField()
test_case.identifier: testGetInheritedField
test_case.invocations: assertEquals getName getField assertEquals getName getField getField assertNotNull
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetInheritedField()
focal_class.declarator: field
focal_class.modifier: final
focal_class.original_string: final Field field;
focal_class.type: Field
focal_class.var_name: field
focal_class.file: code/src/main/java/com/googlecode/cqengine/attribute/ReflectiveAttribute.java
focal_class.identifier: ReflectiveAttribute
focal_class.class_method_signature: ReflectiveAttribute.ReflectiveAttribute(Class<O> objectType, Class<A> fieldType, String fieldName)
focal_class.full_signature: public  ReflectiveAttribute(Class<O> objectType, Class<A> fieldType, String fieldName)
focal_class.identifier: ReflectiveAttribute
focal_class.modifiers: public
focal_class.parameters: (Class<O> objectType, Class<A> fieldType, String fieldName)
focal_class.signature:  ReflectiveAttribute(Class<O> objectType, Class<A> fieldType, String fieldName)
focal_class.class_method_signature: ReflectiveAttribute.getField(Class<?> cls, String fieldName)
focal_class.full_signature: static Field getField(Class<?> cls, String fieldName)
focal_class.identifier: getField
focal_class.modifiers: static
focal_class.parameters: (Class<?> cls, String fieldName)
focal_class.return: Field
focal_class.signature: Field getField(Class<?> cls, String fieldName)
focal_class.class_method_signature: ReflectiveAttribute.getValue(O object, QueryOptions queryOptions)
focal_class.full_signature: @Override public A getValue(O object, QueryOptions queryOptions)
focal_class.identifier: getValue
focal_class.modifiers: @Override public
focal_class.parameters: (O object, QueryOptions queryOptions)
focal_class.return: A
focal_class.signature: A getValue(O object, QueryOptions queryOptions)
focal_class.class_method_signature: ReflectiveAttribute.equals(Object o)
focal_class.full_signature: @Override public boolean equals(Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(Object o)
focal_class.class_method_signature: ReflectiveAttribute.canEqual(Object other)
focal_class.full_signature: @Override public boolean canEqual(Object other)
focal_class.identifier: canEqual
focal_class.modifiers: @Override public
focal_class.parameters: (Object other)
focal_class.return: boolean
focal_class.signature: boolean canEqual(Object other)
focal_class.class_method_signature: ReflectiveAttribute.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: ReflectiveAttribute.forField(Class<O> objectType, Class<A> fieldType, String fieldName)
focal_class.full_signature: public static ReflectiveAttribute<O, A> forField(Class<O> objectType, Class<A> fieldType, String fieldName)
focal_class.identifier: forField
focal_class.modifiers: public static
focal_class.parameters: (Class<O> objectType, Class<A> fieldType, String fieldName)
focal_class.return: ReflectiveAttribute<O, A>
focal_class.signature: ReflectiveAttribute<O, A> forField(Class<O> objectType, Class<A> fieldType, String fieldName)
focal_class.superclass: extends SimpleAttribute<O, A>
focal_method.body: static Field getField(Class<?> cls, String fieldName) throws NoSuchFieldException {
          while (cls != null && cls != Object.class) {
              try {
                  return cls.getDeclaredField(fieldName);
              }
              catch (NoSuchFieldException e) {
                  cls = cls.getSuperclass();
              }
          }
          throw new NoSuchFieldException("No such field: " + fieldName);
      }
focal_method.class_method_signature: ReflectiveAttribute.getField(Class<?> cls, String fieldName)
focal_method.full_signature: static Field getField(Class<?> cls, String fieldName)
focal_method.identifier: getField
focal_method.invocations: getDeclaredField getSuperclass
focal_method.modifiers: static
focal_method.parameters: (Class<?> cls, String fieldName)
focal_method.return: Field
focal_method.signature: Field getField(Class<?> cls, String fieldName)