org.mvel2.util
Class ReflectionUtil
java.lang.Object
org.mvel2.util.ReflectionUtil
public class ReflectionUtil
- extends Object
Utilities for working with reflection.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectionUtil
public ReflectionUtil()
getSetter
public static String getSetter(String s)
- 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
public static String getGetter(String s)
getIsGetter
public static String getIsGetter(String s)
getPropertyFromAccessor
public static String getPropertyFromAccessor(String s)
toNonPrimitiveType
public static Class<?> toNonPrimitiveType(Class<?> c)
toNonPrimitiveArray
public static Class<?> toNonPrimitiveArray(Class<?> c)
toPrimitiveArrayType
public static Class<?> toPrimitiveArrayType(Class<?> c)
isAssignableFrom
public static boolean isAssignableFrom(Class<?> from,
Class<?> to)
Copyright © 2012. All Rights Reserved.