test_class.file: cosmic-common/src/test/java/com/cloud/utils/ReflectUtilTest.java
test_class.identifier: ReflectUtilTest
test_case.body: @Test
      public void getAllFieldsForClassWithBazWithoutBar() throws NoSuchFieldException, SecurityException {
          final Set<Field> bazFields = ReflectUtil.getAllFieldsForClass(Baz.class, new Class<?>[]{Bar.class});
          Assert.assertNotNull(bazFields);
          Assert.assertTrue(bazFields.contains(Foo.class.getDeclaredField("fooField")));
          Assert.assertTrue(bazFields.contains(Foo.class.getDeclaredField("fooIntField")));
          Assert.assertTrue(bazFields.contains(Baz.class.getDeclaredField("bazField")));
          Assert.assertTrue(bazFields.contains(Baz.class.getDeclaredField("bazIntField")));
      }
test_case.class_method_signature: ReflectUtilTest.getAllFieldsForClassWithBazWithoutBar()
test_case.full_signature: @Test public void getAllFieldsForClassWithBazWithoutBar()
test_case.identifier: getAllFieldsForClassWithBazWithoutBar
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 getAllFieldsForClassWithBazWithoutBar()
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: cosmic-common/src/main/java/com/cloud/utils/ReflectUtil.java
focal_class.identifier: ReflectUtil
focal_class.class_method_signature: ReflectUtil.getAnyField(final Class<?> clazz, final String fieldName)
focal_class.full_signature: public static Pair<Class<?>, Field> getAnyField(final Class<?> clazz, final String fieldName)
focal_class.identifier: getAnyField
focal_class.modifiers: public static
focal_class.parameters: (final Class<?> clazz, final String fieldName)
focal_class.return: Pair<Class<?>, Field>
focal_class.signature: Pair<Class<?>, Field> getAnyField(final Class<?> clazz, final String fieldName)
focal_class.class_method_signature: ReflectUtil.getClassesWithAnnotation(final Class<? extends Annotation> annotation, final String[] packageNames)
focal_class.full_signature: public static Set<Class<?>> getClassesWithAnnotation(final Class<? extends Annotation> annotation, final String[] packageNames)
focal_class.identifier: getClassesWithAnnotation
focal_class.modifiers: public static
focal_class.parameters: (final Class<? extends Annotation> annotation, final String[] packageNames)
focal_class.return: Set<Class<?>>
focal_class.signature: Set<Class<?>> getClassesWithAnnotation(final Class<? extends Annotation> annotation, final String[] packageNames)
focal_class.class_method_signature: ReflectUtil.isCmdClassAsync(final Class<?> cmdClass, final Class<?>[] searchClasses)
focal_class.full_signature: public static boolean isCmdClassAsync(final Class<?> cmdClass, final Class<?>[] searchClasses)
focal_class.identifier: isCmdClassAsync
focal_class.modifiers: public static
focal_class.parameters: (final Class<?> cmdClass, final Class<?>[] searchClasses)
focal_class.return: boolean
focal_class.signature: boolean isCmdClassAsync(final Class<?> cmdClass, final Class<?>[] searchClasses)
focal_class.class_method_signature: ReflectUtil.getAllFieldsForClass(final Class<?> cmdClass, final Class<?> baseClass)
focal_class.full_signature: public static List<Field> getAllFieldsForClass(final Class<?> cmdClass, final Class<?> baseClass)
focal_class.identifier: getAllFieldsForClass
focal_class.modifiers: public static
focal_class.parameters: (final Class<?> cmdClass, final Class<?> baseClass)
focal_class.return: List<Field>
focal_class.signature: List<Field> getAllFieldsForClass(final Class<?> cmdClass, final Class<?> baseClass)
focal_class.class_method_signature: ReflectUtil.getAllFieldsForClass(final Class<?> cmdClass, final Class<?>[] excludeClasses)
focal_class.full_signature: public static Set<Field> getAllFieldsForClass(final Class<?> cmdClass, final Class<?>[] excludeClasses)
focal_class.identifier: getAllFieldsForClass
focal_class.modifiers: public static
focal_class.parameters: (final Class<?> cmdClass, final Class<?>[] excludeClasses)
focal_class.return: Set<Field>
focal_class.signature: Set<Field> getAllFieldsForClass(final Class<?> cmdClass, final 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(final Class clz)
focal_class.full_signature: public static String getEntityName(final Class clz)
focal_class.identifier: getEntityName
focal_class.modifiers: public static
focal_class.parameters: (final Class clz)
focal_class.return: String
focal_class.signature: String getEntityName(final Class clz)
focal_method.body: public static List<Field> getAllFieldsForClass(final Class<?> cmdClass, final Class<?> baseClass) {
          final List<Field> fields = new ArrayList<>();
          Collections.addAll(fields, cmdClass.getDeclaredFields());
          Class<?> superClass = cmdClass.getSuperclass();
          while (baseClass.isAssignableFrom(superClass) && baseClass != superClass) {
              final Field[] superClassFields = superClass.getDeclaredFields();
              if (superClassFields != null) {
                  Collections.addAll(fields, superClassFields);
              }
              superClass = superClass.getSuperclass();
          }
          return fields;
      }
focal_method.class_method_signature: ReflectUtil.getAllFieldsForClass(final Class<?> cmdClass, final Class<?> baseClass)
focal_method.full_signature: public static List<Field> getAllFieldsForClass(final Class<?> cmdClass, final Class<?> baseClass)
focal_method.identifier: getAllFieldsForClass
focal_method.invocations: addAll getDeclaredFields getSuperclass isAssignableFrom getDeclaredFields addAll getSuperclass
focal_method.modifiers: public static
focal_method.parameters: (final Class<?> cmdClass, final Class<?> baseClass)
focal_method.return: List<Field>
focal_method.signature: List<Field> getAllFieldsForClass(final Class<?> cmdClass, final Class<?> baseClass)