Package org.jf.dexlib2.util
Class MethodUtil
- java.lang.Object
-
- org.jf.dexlib2.util.MethodUtil
-
public final class MethodUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.base.Predicate<Method>
METHOD_IS_DIRECT
static com.google.common.base.Predicate<Method>
METHOD_IS_VIRTUAL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
isDirect
public static boolean isDirect(@Nonnull Method method)
-
isStatic
public static boolean isStatic(@Nonnull Method method)
-
isConstructor
public static boolean isConstructor(@Nonnull MethodReference methodReference)
-
isPackagePrivate
public static boolean isPackagePrivate(@Nonnull Method method)
-
getParameterRegisterCount
public static int getParameterRegisterCount(@Nonnull Method method)
-
getParameterRegisterCount
public static int getParameterRegisterCount(@Nonnull MethodReference methodRef, boolean isStatic)
-
getParameterRegisterCount
public static int getParameterRegisterCount(@Nonnull java.util.Collection<? extends java.lang.CharSequence> parameterTypes, boolean isStatic)
-
getShorty
public static java.lang.String getShorty(java.util.Collection<? extends java.lang.CharSequence> params, java.lang.String returnType)
-
methodSignaturesMatch
public static boolean methodSignaturesMatch(@Nonnull MethodReference a, @Nonnull MethodReference b)
-
-