Class ReflectUtils
java.lang.Object
org.apache.beam.sdk.schemas.utils.ReflectUtils
A set of reflection helper methods.
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a class and a schema.static classRepresents a type descriptor and a schema. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic TypeDescriptorboxIfPrimitive(TypeDescriptor typeDescriptor) static @Nullable ConstructorgetAnnotatedConstructor(Class<?> clazz) getAnnotatedCreateMethod(Class<?> clazz) static @Nullable TypeDescriptorgetIterableComponentType(TypeDescriptor valueType) For an array T[] or a subclass of Iterable, return a TypeDescriptor describing T. static TypeDescriptorgetMapType(TypeDescriptor valueType, int index) getMethods(Class<?> clazz) Returns the list of non private/protected, non-static methods in the class, caching the results.getMethodsMap(Class<?> clazz) static booleanstatic booleanstatic StringstripGetterPrefix(String method) static StringstripPrefix(String methodName, String prefix) static StringstripSetterPrefix(String method)  
- 
Constructor Details
- 
ReflectUtils
public ReflectUtils() 
 - 
 - 
Method Details
- 
getMethods
Returns the list of non private/protected, non-static methods in the class, caching the results. - 
getMethodsMap
 - 
getAnnotatedConstructor
 - 
getAnnotatedCreateMethod
 - 
getFields
 - 
isGetter
 - 
isSetter
 - 
stripPrefix
 - 
stripGetterPrefix
 - 
stripSetterPrefix
 - 
getIterableComponentType
For an array T[] or a subclass of Iterable, return a TypeDescriptor describing T.  - 
getMapType
 - 
boxIfPrimitive
 
 -