Errai 3.0.1-SNAPSHOT

org.jboss.errai.codegen.meta
Interface MetaWildcardType

All Superinterfaces:
MetaType
All Known Implementing Classes:
AbstractMetaWildcardType, GWTWildcardType, JavaReflectionWildcardType

public interface MetaWildcardType
extends MetaType

Represents a wildcard type such as ?, ? extends List or ? super MyType.

Author:
Mike Brock , Jonathan Fuerth

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.
 String toString()
          Equivalent to getName().
 

Method Detail

getName

String getName()
Returns the Java source code representation of this wildcard, for example "? extends java.util.Collection" or "? super org.xyz.Foo".

Specified by:
getName in interface MetaType
Returns:
The name of this type as it was written in the original source code.

toString

String toString()
Equivalent to getName().

Overrides:
toString in class Object

getLowerBounds

MetaType[] getLowerBounds()
Returns the lower bounds of this wildcard type. Examples:

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

MetaType[] getUpperBounds()
Returns the upper bounds of this wildcard type. Examples:

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.

Errai 3.0.1-SNAPSHOT

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