Package java.dyn
Class MethodType
java.lang.Object
java.dyn.MethodType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchangeParameterType
(int num, Class<?> nptype) changeReturnType
(Class<?> nrtype) dropParameterType
(int num) boolean
erase()
static MethodType
fromBytecodeString
(String descriptor, ClassLoader loader) static MethodType
fromMethodDescriptorString
(String descriptor, ClassLoader loader) generic()
int
hashCode()
boolean
boolean
insertParameterType
(int num, Class<?> nptype) static MethodType
static MethodType
make
(Class<?> rtype, MethodType ptypes) static MethodType
static MethodType
static MethodType
static MethodType
static MethodType
makeGeneric
(int objectArgCount) static MethodType
makeGeneric
(int objectArgCount, boolean varargs) Class<?>[]
int
int
int
parameterSlotDepth
(int num) Class
<?> parameterType
(int num) int
Class
<?> toString()
unwrap()
wrap()
-
Constructor Details
-
MethodType
public MethodType()
-
-
Method Details
-
make
-
make
-
make
-
make
-
make
-
make
-
makeGeneric
-
makeGeneric
-
changeParameterType
-
insertParameterType
-
dropParameterType
-
changeReturnType
-
hasPrimitives
public boolean hasPrimitives() -
hasWrappers
public boolean hasWrappers() -
erase
-
generic
-
wrap
-
unwrap
-
parameterType
-
parameterCount
public int parameterCount() -
returnType
-
parameterList
-
parameterArray
-
equals
-
hashCode
public int hashCode() -
toString
-
parameterSlotCount
public int parameterSlotCount() -
parameterSlotDepth
public int parameterSlotDepth(int num) -
returnSlotCount
public int returnSlotCount() -
fromMethodDescriptorString
public static MethodType fromMethodDescriptorString(String descriptor, ClassLoader loader) throws IllegalArgumentException, TypeNotPresentException -
toMethodDescriptorString
-
toBytecodeString
-
fromBytecodeString
public static MethodType fromBytecodeString(String descriptor, ClassLoader loader) throws IllegalArgumentException, TypeNotPresentException
-