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_DIRECTstatic com.google.common.base.Predicate<Method>METHOD_IS_VIRTUAL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetParameterRegisterCount(java.util.Collection<? extends java.lang.CharSequence> parameterTypes, boolean isStatic)static intgetParameterRegisterCount(Method method)static intgetParameterRegisterCount(MethodReference methodRef, boolean isStatic)static java.lang.StringgetShorty(java.util.Collection<? extends java.lang.CharSequence> params, java.lang.String returnType)static booleanisConstructor(MethodReference methodReference)static booleanisDirect(Method method)static booleanisPackagePrivate(Method method)static booleanisStatic(Method method)static booleanmethodSignaturesMatch(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)
-
-