class CaptureTypeImpl extends java.lang.Object implements CaptureType
Modifier and Type | Field and Description |
---|---|
private java.lang.reflect.Type[] |
lowerBounds |
private java.lang.reflect.Type[] |
upperBounds |
private java.lang.reflect.TypeVariable<?> |
variable |
private java.lang.reflect.WildcardType |
wildcard |
Constructor and Description |
---|
CaptureTypeImpl(java.lang.reflect.WildcardType wildcard,
java.lang.reflect.TypeVariable<?> variable)
Creates an uninitialized CaptureTypeImpl.
|
Modifier and Type | Method and Description |
---|---|
java.lang.reflect.Type[] |
getLowerBounds()
Returns an array of Type objects representing the lower bound(s) of this type
variable.
|
java.lang.reflect.TypeVariable<?> |
getTypeVariable() |
java.lang.reflect.Type[] |
getUpperBounds()
Returns an array of Type objects representing the upper bound(s) of this capture.
|
java.lang.reflect.WildcardType |
getWildcardType() |
(package private) void |
init(VarMap varMap)
Initialize this CaptureTypeImpl.
|
void |
setUpperBounds(java.lang.reflect.Type[] upperBounds)
Overwrite the upper bounds of this capture.
|
java.lang.String |
toString() |
private final java.lang.reflect.WildcardType wildcard
private final java.lang.reflect.TypeVariable<?> variable
private final java.lang.reflect.Type[] lowerBounds
private java.lang.reflect.Type[] upperBounds
CaptureTypeImpl(java.lang.reflect.WildcardType wildcard, java.lang.reflect.TypeVariable<?> variable)
init(VarMap)
must
be called.wildcard
- The wildcard this is a capture ofvariable
- The type variable where the wildcard is a parameter for.void init(VarMap varMap)
public java.lang.reflect.Type[] getLowerBounds()
CaptureType
WildcardType.getLowerBounds()
.getLowerBounds
in interface CaptureType
public java.lang.reflect.Type[] getUpperBounds()
CaptureType
getUpperBounds
in interface CaptureType
public void setUpperBounds(java.lang.reflect.Type[] upperBounds)
CaptureType
setUpperBounds
in interface CaptureType
upperBounds
- upper bound(s) of this capturepublic java.lang.reflect.TypeVariable<?> getTypeVariable()
getTypeVariable
in interface CaptureType
public java.lang.reflect.WildcardType getWildcardType()
getWildcardType
in interface CaptureType
public java.lang.String toString()
toString
in class java.lang.Object