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 |
|---|
Function(JvmType returnType,
JvmType... parameters) |
Function(JvmType returnType,
List<JvmType> parameters) |
Function(JvmType returnType,
List<JvmType> parameters,
List<JvmType.Variable> typeArgs) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(JvmType t) |
boolean |
equals(Object o) |
int |
hashCode() |
List<JvmType> |
parameterTypes() |
JvmType |
returnType() |
String |
toString() |
List<JvmType.Variable> |
typeArguments() |
List<JvmType.Variable> |
usedVariables()
This method returns the list of generic variables used in this type.
|
public Function(JvmType returnType, List<JvmType> parameters, List<JvmType.Variable> typeArgs)
public JvmType returnType()
public List<JvmType.Variable> typeArguments()
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.