org.jboss.errai.codegen.meta.impl.java
Class JavaReflectionTypeVariable
java.lang.Object
org.jboss.errai.codegen.meta.impl.java.JavaReflectionTypeVariable
- All Implemented Interfaces:
- MetaType, MetaTypeVariable
public class JavaReflectionTypeVariable
- extends Object
- implements MetaTypeVariable
Java Reflection based implementation of MetaTypeVariable
.
- Author:
- Mike Brock , Jonathan Fuerth
Method Summary |
MetaType[] |
getBounds()
Returns an array of the upper bounds on this type variable. |
String |
getName()
Returns the name of this type as it was written in the original source code. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaReflectionTypeVariable
public JavaReflectionTypeVariable(TypeVariable<?> variable)
getBounds
public MetaType[] getBounds()
- Description copied from interface:
MetaTypeVariable
- Returns an array of the upper bounds on this type variable. For each entry
in the array, if the bound can be resolved to a type, it will be resolved
(the array entry will be a
MetaClass
or a
MetaParameterizedType
); otherwise (the type variable is
unresolvable) it will be a type variable or a parameterized type with an
unresolved type variable itself.
- Specified by:
getBounds
in interface MetaTypeVariable
getName
public String getName()
- Description copied from interface:
MetaType
- Returns the name of this type as it was written in the original source code.
- Specified by:
getName
in interface MetaType
- Returns:
- The name of this type as it was written in the original source code.
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.