Errai 3.0.1-SNAPSHOT

org.jboss.errai.codegen.meta.impl.java
Class JavaReflectionUtil

java.lang.Object
  extended by org.jboss.errai.codegen.meta.impl.java.JavaReflectionUtil

public class JavaReflectionUtil
extends Object

Author:
Mike Brock , Jonathan Fuerth

Nested Class Summary
static class JavaReflectionUtil.CacheHolder
           
 
Constructor Summary
JavaReflectionUtil()
           
 
Method Summary
static MetaType fromType(Type t)
          Returns an instance of the appropriate MetaType that wraps the given Java Reflection Type.
static MetaType[] fromTypeArray(Type[] types)
           
static MetaTypeVariable[] fromTypeVariable(TypeVariable<?>[] typeVariables)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaReflectionUtil

public JavaReflectionUtil()
Method Detail

fromTypeVariable

public static MetaTypeVariable[] fromTypeVariable(TypeVariable<?>[] typeVariables)

fromTypeArray

public static MetaType[] fromTypeArray(Type[] types)

fromType

public static MetaType fromType(Type t)
Returns an instance of the appropriate MetaType that wraps the given Java Reflection Type.

Parameters:
t - the Type to wrap in a MetaType
Returns:
A (possibly cached) MetaType instance that represents the same thing as the given Type. Never null.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.