|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjasm.lang.JvmType.Wildcard
public static class JvmType.Wildcard
This represents the special "?" type. As used, for example, in the following method declaration: void printAll(Collection extends MyClass> { ... }
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jasm.lang.JvmType |
|---|
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 Summary | |
|---|---|
JvmType.Wildcard(JvmType.Reference lowerBound,
JvmType.Reference upperBound)
|
|
| Method Summary | |
|---|---|
int |
compareTo(JvmType t)
|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
JvmType.Reference |
lowerBound()
Return the lower bound of this wildcard. |
java.lang.String |
toString()
|
JvmType.Reference |
upperBound()
Return the upper bound of this wildcard. |
java.util.List<JvmType.Variable> |
usedVariables()
This method returns the list of generic variables used in this type. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JvmType.Wildcard(JvmType.Reference lowerBound,
JvmType.Reference upperBound)
| Method Detail |
|---|
public JvmType.Reference upperBound()
public JvmType.Reference lowerBound()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(JvmType t)
compareTo in interface java.lang.Comparable<JvmType>public java.util.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 JvmType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||