Package org.mvel2.util
Class ReflectionUtil
java.lang.Object
org.mvel2.util.ReflectionUtil
Utilities for working with reflection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
areBoxingCompatible
(Class<?> c1, Class<?> c2) static String
static String
static String
static String
This new method 'slightly' outperforms the old method, it was essentially a perfect example of me wasting my time and a premature optimization.static boolean
isAssignableFrom
(Class<?> from, Class<?> to) private static boolean
isPrimitiveOf
(Class<?> boxed, Class<?> primitive) static Class
<?> toNonPrimitiveArray
(Class<?> c) static Class
<?> toNonPrimitiveType
(Class<?> c) static Class
<?> toPrimitiveArrayType
(Class<?> c)
-
Constructor Details
-
ReflectionUtil
public ReflectionUtil()
-
-
Method Details
-
getSetter
This new method 'slightly' outperforms the old method, it was essentially a perfect example of me wasting my time and a premature optimization. But what the hell...- Parameters:
s
- -- Returns:
- String
-
getGetter
-
getIsGetter
-
getPropertyFromAccessor
-
toNonPrimitiveType
-
toNonPrimitiveArray
-
toPrimitiveArrayType
-
isAssignableFrom
-
areBoxingCompatible
-
isPrimitiveOf
-