MethodType

public final class MethodType extends Object
implements Serializable

Public Constructor Summary

Public Method Summary

MethodType
appendParameterTypes(Class...<?> ptypesToInsert)
MethodType
appendParameterTypes(List<Class<?>> ptypesToInsert)
MethodType
changeParameterType(int num, Class<?> nptype)
MethodType
changeReturnType(Class<?> nrtype)
MethodType
dropParameterTypes(int start, int end)
MethodType
erase()
static MethodType
MethodType
static MethodType
genericMethodType(int objectArgCount, boolean finalArray)
static MethodType
genericMethodType(int objectArgCount)
boolean
boolean
MethodType
insertParameterTypes(int num, Class...<?> ptypesToInsert)
MethodType
insertParameterTypes(int num, List<Class<?>> ptypesToInsert)
static MethodType
methodType(Class<?> rtype, MethodType ptypes)
static MethodType
methodType(Class<?> rtype, Class[]<?> ptypes)
static MethodType
methodType(Class<?> rtype, Class<?> ptype0)
static MethodType
methodType(Class<?> rtype)
static MethodType
methodType(Class<?> rtype, List<Class<?>> ptypes)
static MethodType
methodType(Class<?> rtype, Class<?> ptype0, Class...<?> ptypes)
Class[]<?>
int
List<Class<?>>
Class<?>
parameterType(int num)
Class<?>
String
MethodType
unwrap()
MethodType
wrap()

Inherited Method Summary

Public Constructors

public MethodType ()

Public Methods

public MethodType appendParameterTypes (Class...<?> ptypesToInsert)

Parameters
ptypesToInsert

public MethodType appendParameterTypes (List<Class<?>> ptypesToInsert)

Parameters
ptypesToInsert

public MethodType changeParameterType (int num, Class<?> nptype)

Parameters
num
nptype

public MethodType changeReturnType (Class<?> nrtype)

Parameters
nrtype

public MethodType dropParameterTypes (int start, int end)

Parameters
start
end

public MethodType erase ()

public static MethodType fromMethodDescriptorString (String descriptor, ClassLoader loader)

Parameters
descriptor
loader

public MethodType generic ()

public static MethodType genericMethodType (int objectArgCount, boolean finalArray)

Parameters
objectArgCount
finalArray

public static MethodType genericMethodType (int objectArgCount)

Parameters
objectArgCount

public boolean hasPrimitives ()

public boolean hasWrappers ()

public MethodType insertParameterTypes (int num, Class...<?> ptypesToInsert)

Parameters
num
ptypesToInsert

public MethodType insertParameterTypes (int num, List<Class<?>> ptypesToInsert)

Parameters
num
ptypesToInsert

public static MethodType methodType (Class<?> rtype, MethodType ptypes)

Parameters
rtype
ptypes

public static MethodType methodType (Class<?> rtype, Class[]<?> ptypes)

Parameters
rtype
ptypes

public static MethodType methodType (Class<?> rtype, Class<?> ptype0)

Parameters
rtype
ptype0

public static MethodType methodType (Class<?> rtype)

Parameters
rtype

public static MethodType methodType (Class<?> rtype, List<Class<?>> ptypes)

Parameters
rtype
ptypes

public static MethodType methodType (Class<?> rtype, Class<?> ptype0, Class...<?> ptypes)

Parameters
rtype
ptype0
ptypes

public Class[]<?> parameterArray ()

public int parameterCount ()

public List<Class<?>> parameterList ()

public Class<?> parameterType (int num)

Parameters
num

public Class<?> returnType ()

public String toMethodDescriptorString ()

public MethodType unwrap ()

public MethodType wrap ()