Class MethodUtil


  • public final class MethodUtil
    extends java.lang.Object
    • Field Detail

      • METHOD_IS_DIRECT

        public static com.google.common.base.Predicate<Method> METHOD_IS_DIRECT
      • METHOD_IS_VIRTUAL

        public static com.google.common.base.Predicate<Method> METHOD_IS_VIRTUAL
    • 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)