public static class JvmType.Wildcard extends Object implements JvmType.Reference
JvmType.Array, JvmType.Bool, JvmType.Byte, JvmType.Char, JvmType.Clazz, JvmType.Double, JvmType.Float, JvmType.Function, JvmType.Int, JvmType.Intersection, JvmType.Long, JvmType.Null, JvmType.Primitive, JvmType.Reference, JvmType.Short, JvmType.Variable, JvmType.Void, JvmType.Wildcard| Constructor and Description |
|---|
Wildcard(JvmType.Reference lowerBound,
JvmType.Reference upperBound) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(JvmType t) |
boolean |
equals(Object o) |
int |
hashCode() |
JvmType.Reference |
lowerBound()
Return the lower bound of this wildcard.
|
String |
toString() |
JvmType.Reference |
upperBound()
Return the upper bound of this wildcard.
|
List<JvmType.Variable> |
usedVariables()
This method returns the list of generic variables used in this type.
|
public Wildcard(JvmType.Reference lowerBound, JvmType.Reference upperBound)
public JvmType.Reference upperBound()
public JvmType.Reference lowerBound()
public int compareTo(JvmType t)
compareTo in interface Comparable<JvmType>public List<JvmType.Variable> usedVariables()
JvmTypeThis method returns the list of generic variables used in this type. So, for example, suppose we have:
T = java.lang.ArrayList<? extends S>
Then, T.usedVariables()=[S].
usedVariables in interface JvmTypeCopyright © 2016. All rights reserved.