Class ClassUtils
- java.lang.Object
-
- graphql.annotations.processor.util.ClassUtils
-
public class ClassUtils extends java.lang.ObjectOperates on classes without using reflection.This class handles invalid
nullinputs as best it can. Each method documents its behavior in more detail.The notion of a
canonical nameincludes the human readable name for the type, for exampleint[]. The non-canonical method variants work with the JVM names, such as[I.This class and the functions contained within are from the Apache commons-lang project.
-
-
Constructor Summary
Constructors Constructor Description ClassUtils()ClassUtils instances should NOT be constructed in standard programming.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.lang.Class<?>>getAllInterfaces(java.lang.Class<?> cls)Gets aListof all interfaces implemented by the given class and its superclasses.
-
-
-
Method Detail
-
getAllInterfaces
public static java.util.List<java.lang.Class<?>> getAllInterfaces(java.lang.Class<?> cls)
Gets aListof all interfaces implemented by the given class and its superclasses.The order is determined by looking through each interface in turn as declared in the source file and following its hierarchy up. Then each superclass is considered in the same way. Later duplicates are ignored, so the order is maintained.
- Parameters:
cls- the class to look up, may benull- Returns:
- the
Listof interfaces in order,nullif null input
-
-