org.modelmapper.internal.util
Class Types

java.lang.Object
  extended by org.modelmapper.internal.util.Types

public final class Types
extends Object

Utilities for working with types.

Author:
Jonathan Halterman

Method Summary
static
<T> Class<T>
deProxy(Class<?> type)
          Returns the proxied type, if any, else returns the given type.
static Method methodFor(Class<?> type, String name, Class<?>... parameterTypes)
          Gets the method for the given parameters.
static String toString(Class<?> type)
          Returns a simplified String representation of the type.
static String toString(Member member)
          Returns a simplified String representation of the member.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

methodFor

public static Method methodFor(Class<?> type,
                               String name,
                               Class<?>... parameterTypes)
Gets the method for the given parameters.

Throws:
RuntimeException - on error

deProxy

public static <T> Class<T> deProxy(Class<?> type)
Returns the proxied type, if any, else returns the given type.


toString

public static String toString(Class<?> type)
Returns a simplified String representation of the type.


toString

public static String toString(Member member)
Returns a simplified String representation of the member.



Copyright © 2011. All Rights Reserved.