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 TypeMethodDescriptionstatic Stringstatic Stringstatic Stringstatic StringThis new method 'slightly' outperforms the old method, it was essentially a perfect example of me wasting my time and a premature optimization.static booleanisAssignableFrom(Class<?> from, Class<?> to) 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
-