public final class MethodUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Predicate<Method> |
METHOD_IS_DIRECT |
static com.google.common.base.Predicate<Method> |
METHOD_IS_VIRTUAL |
| Modifier and Type | Method and Description |
|---|---|
static int |
getParameterRegisterCount(java.util.Collection<? extends java.lang.CharSequence> parameterTypes,
boolean isStatic) |
static int |
getParameterRegisterCount(Method method) |
static int |
getParameterRegisterCount(MethodReference methodRef,
boolean isStatic) |
static java.lang.String |
getShorty(java.util.Collection<? extends java.lang.CharSequence> params,
java.lang.String returnType) |
static boolean |
isConstructor(MethodReference methodReference) |
static boolean |
isDirect(Method method) |
static boolean |
isPackagePrivate(Method method) |
static boolean |
isStatic(Method method) |
static boolean |
methodSignaturesMatch(MethodReference a,
MethodReference b) |
public static com.google.common.base.Predicate<Method> METHOD_IS_DIRECT
public static com.google.common.base.Predicate<Method> METHOD_IS_VIRTUAL
public static boolean isDirect(@Nonnull
Method method)
public static boolean isStatic(@Nonnull
Method method)
public static boolean isConstructor(@Nonnull
MethodReference methodReference)
public static boolean isPackagePrivate(@Nonnull
Method method)
public static int getParameterRegisterCount(@Nonnull
Method method)
public static int getParameterRegisterCount(@Nonnull
MethodReference methodRef,
boolean isStatic)
public static int getParameterRegisterCount(@Nonnull
java.util.Collection<? extends java.lang.CharSequence> parameterTypes,
boolean isStatic)
public static java.lang.String getShorty(java.util.Collection<? extends java.lang.CharSequence> params,
java.lang.String returnType)
public static boolean methodSignaturesMatch(@Nonnull
MethodReference a,
@Nonnull
MethodReference b)