Package org.kohsuke.stapler
Class ReflectionUtils
- java.lang.Object
-
- org.kohsuke.stapler.ReflectionUtils
-
public class ReflectionUtils extends Object
- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description ReflectionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
getVmDefaultValueFor(Class<?> type)
Given the primitive type, returns the VM default value for that type in a boxed form.static Annotation[]
union(Annotation[] a, Annotation[] b)
Merge two sets of annotations.
-
-
-
Method Detail
-
getVmDefaultValueFor
public static Object getVmDefaultValueFor(Class<?> type)
Given the primitive type, returns the VM default value for that type in a boxed form. For reference types, return null.
-
union
public static Annotation[] union(Annotation[] a, Annotation[] b)
Merge two sets of annotations. If both contains the same annotation, the definition in 'b' overrides the definition in 'a' and shows up in the result
-
-