test_class.file: utils/src/test/java/com/cloud/utils/ReflectUtilTest.java
test_class.identifier: ReflectUtilTest
test_case.body: @Test
      public void getAllFieldsForClassWithBar() throws NoSuchFieldException, SecurityException {
          Set<Field> barFields = ReflectUtil.getAllFieldsForClass(Bar.class, new Class<?>[] {});
          Assert.assertNotNull(barFields);
          Assert.assertTrue(barFields.contains(Foo.class.getDeclaredField("fooField")));
          Assert.assertTrue(barFields.contains(Foo.class.getDeclaredField("fooIntField")));
          Assert.assertTrue(barFields.contains(Bar.class.getDeclaredField("barField")));
          Assert.assertTrue(barFields.contains(Bar.class.getDeclaredField("barIntField")));
      }
test_case.class_method_signature: ReflectUtilTest.getAllFieldsForClassWithBar()
test_case.full_signature: @Test public void getAllFieldsForClassWithBar()
test_case.identifier: getAllFieldsForClassWithBar
test_case.invocations: getAllFieldsForClass assertNotNull assertTrue contains getDeclaredField assertTrue contains getDeclaredField assertTrue contains getDeclaredField assertTrue contains getDeclaredField
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getAllFieldsForClassWithBar()
focal_class.declarator: s_logger = LoggerFactory.getLogger(ReflectUtil.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger s_logger = LoggerFactory.getLogger(ReflectUtil.class);
focal_class.type: Logger
focal_class.var_name: s_logger
focal_class.declarator: logger = LoggerFactory.getLogger(Reflections.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(Reflections.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.file: utils/src/main/java/com/cloud/utils/ReflectUtil.java
focal_class.identifier: ReflectUtil
focal_class.class_method_signature: ReflectUtil.getAnyField(Class<?> clazz, String fieldName)
focal_class.full_signature: public static Pair<Class<?>, Field> getAnyField(Class<?> clazz, String fieldName)
focal_class.identifier: getAnyField
focal_class.modifiers: public static
focal_class.parameters: (Class<?> clazz, String fieldName)
focal_class.return: Pair<Class<?>, Field>
focal_class.signature: Pair<Class<?>, Field> getAnyField(Class<?> clazz, String fieldName)
focal_class.class_method_signature: ReflectUtil.getClassesWithAnnotation(Class<? extends Annotation> annotation, String[] packageNames)
focal_class.full_signature: public static Set<Class<?>> getClassesWithAnnotation(Class<? extends Annotation> annotation, String[] packageNames)
focal_class.identifier: getClassesWithAnnotation
focal_class.modifiers: public static
focal_class.parameters: (Class<? extends Annotation> annotation, String[] packageNames)
focal_class.return: Set<Class<?>>
focal_class.signature: Set<Class<?>> getClassesWithAnnotation(Class<? extends Annotation> annotation, String[] packageNames)
focal_class.class_method_signature: ReflectUtil.isCmdClassAsync(Class<?> cmdClass, Class<?>[] searchClasses)
focal_class.full_signature: public static boolean isCmdClassAsync(Class<?> cmdClass, Class<?>[] searchClasses)
focal_class.identifier: isCmdClassAsync
focal_class.modifiers: public static
focal_class.parameters: (Class<?> cmdClass, Class<?>[] searchClasses)
focal_class.return: boolean
focal_class.signature: boolean isCmdClassAsync(Class<?> cmdClass, Class<?>[] searchClasses)
focal_class.class_method_signature: ReflectUtil.getAllFieldsForClass(Class<?> cmdClass, Class<?> baseClass)
focal_class.full_signature: public static List<Field> getAllFieldsForClass(Class<?> cmdClass, Class<?> baseClass)
focal_class.identifier: getAllFieldsForClass
focal_class.modifiers: public static
focal_class.parameters: (Class<?> cmdClass, Class<?> baseClass)
focal_class.return: List<Field>
focal_class.signature: List<Field> getAllFieldsForClass(Class<?> cmdClass, Class<?> baseClass)
focal_class.class_method_signature: ReflectUtil.getAllFieldsForClass(Class<?> cmdClass, Class<?>[] excludeClasses)
focal_class.full_signature: public static Set<Field> getAllFieldsForClass(Class<?> cmdClass, Class<?>[] excludeClasses)
focal_class.identifier: getAllFieldsForClass
focal_class.modifiers: public static
focal_class.parameters: (Class<?> cmdClass, Class<?>[] excludeClasses)
focal_class.return: Set<Field>
focal_class.signature: Set<Field> getAllFieldsForClass(Class<?> cmdClass, Class<?>[] excludeClasses)
focal_class.class_method_signature: ReflectUtil.flattenProperties(final Object target, final Class<?> clazz)
focal_class.full_signature: public static List<String> flattenProperties(final Object target, final Class<?> clazz)
focal_class.identifier: flattenProperties
focal_class.modifiers: public static
focal_class.parameters: (final Object target, final Class<?> clazz)
focal_class.return: List<String>
focal_class.signature: List<String> flattenProperties(final Object target, final Class<?> clazz)
focal_class.class_method_signature: ReflectUtil.flattenPropeties(final Object target, final Class<?> clazz, final String... excludedProperties)
focal_class.full_signature: public static List<String> flattenPropeties(final Object target, final Class<?> clazz, final String... excludedProperties)
focal_class.identifier: flattenPropeties
focal_class.modifiers: public static
focal_class.parameters: (final Object target, final Class<?> clazz, final String... excludedProperties)
focal_class.return: List<String>
focal_class.signature: List<String> flattenPropeties(final Object target, final Class<?> clazz, final String... excludedProperties)
focal_class.class_method_signature: ReflectUtil.flattenProperties(final Object target, final Class<?> clazz, final ImmutableSet<String> excludedProperties)
focal_class.full_signature: private static List<String> flattenProperties(final Object target, final Class<?> clazz, final ImmutableSet<String> excludedProperties)
focal_class.identifier: flattenProperties
focal_class.modifiers: private static
focal_class.parameters: (final Object target, final Class<?> clazz, final ImmutableSet<String> excludedProperties)
focal_class.return: List<String>
focal_class.signature: List<String> flattenProperties(final Object target, final Class<?> clazz, final ImmutableSet<String> excludedProperties)
focal_class.class_method_signature: ReflectUtil.getEntityName(Class clz)
focal_class.full_signature: public static String getEntityName(Class clz)
focal_class.identifier: getEntityName
focal_class.modifiers: public static
focal_class.parameters: (Class clz)
focal_class.return: String
focal_class.signature: String getEntityName(Class clz)
focal_method.body: public static List<Field> getAllFieldsForClass(Class<?> cmdClass, Class<?> baseClass) {
          List<Field> fields = new ArrayList<Field>();
          Collections.addAll(fields, cmdClass.getDeclaredFields());
          Class<?> superClass = cmdClass.getSuperclass();
          while (baseClass.isAssignableFrom(superClass) && baseClass != superClass) {
              Field[] superClassFields = superClass.getDeclaredFields();
              if (superClassFields != null)
                  Collections.addAll(fields, superClassFields);
              superClass = superClass.getSuperclass();
          }
          return fields;
      }
focal_method.class_method_signature: ReflectUtil.getAllFieldsForClass(Class<?> cmdClass, Class<?> baseClass)
focal_method.full_signature: public static List<Field> getAllFieldsForClass(Class<?> cmdClass, Class<?> baseClass)
focal_method.identifier: getAllFieldsForClass
focal_method.invocations: addAll getDeclaredFields getSuperclass isAssignableFrom getDeclaredFields addAll getSuperclass
focal_method.modifiers: public static
focal_method.parameters: (Class<?> cmdClass, Class<?> baseClass)
focal_method.return: List<Field>
focal_method.signature: List<Field> getAllFieldsForClass(Class<?> cmdClass, Class<?> baseClass)