Spec-Zone .ru
спецификации, руководства, описания, API

Mirror API
DRAFT ea-b118

com.sun.mirror.type
Interface WildcardType

All Superinterfaces:
TypeMirror

Deprecated. All components of this API have been superseded by the standardized annotation processing API. The replacement for the functionality of this interface is WildcardType.

@Deprecated
public interface WildcardType
extends TypeMirror

Represents a wildcard type argument. Examples include:


   ?
   ? extends Number
   ? super T
 

A wildcard may have its upper bound explicitly set by an extends clause, its lower bound explicitly set by a super clause, or neither (but not both).

Since:
1.5

Method Summary
Modifier and Type Method and Description
 Collection<ReferenceType> getLowerBounds()
          Deprecated. Returns the lower bounds of this wildcard.
 Collection<ReferenceType> getUpperBounds()
          Deprecated. Returns the upper bounds of this wildcard.
 
Methods inherited from interface com.sun.mirror.type.TypeMirror
accept, equals, toString
 

Method Detail

getUpperBounds

Collection<ReferenceType> getUpperBounds()
Deprecated. 
Returns the upper bounds of this wildcard. If no upper bound is explicitly declared, then an empty collection is returned.

Returns:
the upper bounds of this wildcard

getLowerBounds

Collection<ReferenceType> getLowerBounds()
Deprecated. 
Returns the lower bounds of this wildcard. If no lower bound is explicitly declared, then an empty collection is returned.

Returns:
the lower bounds of this wildcard

Mirror API
DRAFT ea-b118

Copyright © 2004, 2010, Oracle Corporation. All rights reserved.
DRAFT ea-b118

Scripting on this page tracks web page traffic, but does not change the content in any way.