org.spockframework.gentyref
Interface CaptureType

All Superinterfaces:
Type

public interface CaptureType
extends Type

CaptureType represents a wildcard that has gone through capture conversion. It is a custom subinterface of Type, not part of the java builtin Type hierarchy.

Author:
Wouter Coekaerts

Method Summary
 Type[] getLowerBounds()
          Returns an array of Type objects representing the lower bound(s) of this type variable.
 Type[] getUpperBounds()
          Returns an array of Type objects representing the upper bound(s) of this capture.
 

Method Detail

getUpperBounds

Type[] getUpperBounds()
Returns an array of Type objects representing the upper bound(s) of this capture. This includes both the upper bound of a ? extends wildcard, and the bounds declared with the type variable. References to other (or the same) type variables in bounds coming from the type variable are replaced by their matching capture.


getLowerBounds

Type[] getLowerBounds()
Returns an array of Type objects representing the lower bound(s) of this type variable. This is the bound of a ? super wildcard. This normally contains only one or no types; it is an array for consistency with WildcardType.getLowerBounds().



Copyright © 2010. All Rights Reserved.