org.mvel2.util
Class ReflectionUtil

java.lang.Object
  extended by org.mvel2.util.ReflectionUtil

public class ReflectionUtil
extends Object

Utilities for working with reflection.


Constructor Summary
ReflectionUtil()
           
 
Method Summary
static String getGetter(String s)
           
static String getIsGetter(String s)
           
static String getPropertyFromAccessor(String s)
           
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.
static boolean isAssignableFrom(Class<?> from, Class<?> to)
           
static Class<?> toNonPrimitiveArray(Class<?> c)
           
static Class<?> toNonPrimitiveType(Class<?> c)
           
static Class<?> toPrimitiveArrayType(Class<?> c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionUtil

public ReflectionUtil()
Method Detail

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.