org.jboss.errai.codegen.meta.impl.gwt
Class GWTWildcardType
java.lang.Object
org.jboss.errai.codegen.meta.impl.AbstractMetaWildcardType
org.jboss.errai.codegen.meta.impl.gwt.GWTWildcardType
- All Implemented Interfaces:
- MetaType, MetaWildcardType
public class GWTWildcardType
- extends AbstractMetaWildcardType
- Author:
- Mike Brock
Constructor Summary |
GWTWildcardType(com.google.gwt.core.ext.typeinfo.TypeOracle oracle,
com.google.gwt.core.ext.typeinfo.JWildcardType wildcardType)
|
Method Summary |
MetaType[] |
getLowerBounds()
Returns the lower bounds of this wildcard type. |
String |
getName()
Returns the Java source code representation of this wildcard, for example
"? extends java.util.Collection" or "? super org.xyz.Foo". |
MetaType[] |
getUpperBounds()
Returns the upper bounds of this wildcard type. |
GWTWildcardType
public GWTWildcardType(com.google.gwt.core.ext.typeinfo.TypeOracle oracle,
com.google.gwt.core.ext.typeinfo.JWildcardType wildcardType)
getLowerBounds
public MetaType[] getLowerBounds()
- Description copied from interface:
MetaWildcardType
- Returns the lower bounds of this wildcard type. Examples:
<?>
has no lower bounds
<? extends List>
has no lower bounds
<? super List>
has a lower bound of {List}
<? super List & Futzable>
has a lower bound of
{List, Futzable}
- Returns:
- The lower bounds of this wildcard type. The return value is never
null--if the wildcard has no lower bounds, an empty array is
returned.
getUpperBounds
public MetaType[] getUpperBounds()
- Description copied from interface:
MetaWildcardType
- Returns the upper bounds of this wildcard type. Examples:
<?>
has an upper bound of java.lang.Object
<? extends List>
has an upper bound of {List}
<? super List>
has an upper bound of java.lang.Object
<? extends List & Futzable>
upper bounds of {List, Futzable}
- Returns:
- The upper bounds of this wildcard type. The return value is never
null--if the wildcard has no upper bounds, an empty array is
returned.
getName
public String getName()
- Description copied from interface:
MetaWildcardType
- Returns the Java source code representation of this wildcard, for example
"? extends java.util.Collection" or "? super org.xyz.Foo".
- 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.