模块 mxlib.api

类 WrappedClassImplements


  • public class WrappedClassImplements
    extends Object
    Wrapped Abstract class.
    从以下版本开始:
    2.8
    • 字段详细资料

      • MATCH_STATE_SAME

        public static final int MATCH_STATE_SAME
        另请参阅:
        常量字段值
      • MATCH_STATE_CAN_OVERRIDE

        public static final int MATCH_STATE_CAN_OVERRIDE
        另请参阅:
        常量字段值
      • MATCH_STATE_CANNOT_SET

        public static final int MATCH_STATE_CANNOT_SET
        另请参阅:
        常量字段值
    • 构造器详细资料

      • WrappedClassImplements

        public WrappedClassImplements()
    • 方法详细资料

      • putTypeInsn

        public static int putTypeInsn​(Class<?> type,
                                      int slot,
                                      boolean isReturn,
                                      org.objectweb.asm.MethodVisitor visitor)
      • putTypeInsn

        public static int putTypeInsn​(org.objectweb.asm.Type type,
                                      int slot,
                                      boolean isReturn,
                                      org.objectweb.asm.MethodVisitor visitor)
      • AbstractClassInstance

        public static org.objectweb.asm.ClassWriter AbstractClassInstance​(String path,
                                                                          Class<?> source)
        Fast create abstract class implement
        参数:
        path - The implement name
        source - The class source
        返回:
        The implement class
        从以下版本开始:
        2.11
      • getRootAbstractClass

        public static Class<?> getRootAbstractClass​(Class<?> own)
      • doImplement

        public static org.objectweb.asm.ClassWriter doImplement​(Class<?> own)
      • publicObjectConstructor

        public static void publicObjectConstructor​(org.objectweb.asm.ClassVisitor visitor,
                                                   String superClass)
        Create a default constructor.
        参数:
        visitor - The visitor need created.
        superClass - The super class. need internal format
        从以下版本开始:
        2.9
      • genImplementClassName

        public static String genImplementClassName​(String package_,
                                                   String name)
        General Implement Internal Class Name
        参数:
        package_ - The package general.
        name - The full class name.
        返回:
        General class name.
        从以下版本开始:
        2.9
      • genImplementClassName

        public static String genImplementClassName​(String name)
        General implement name
        参数:
        name - The full class name
        返回:
        Internal class name.
      • createMethodWrapper

        public static org.objectweb.asm.ClassWriter createMethodWrapper​(@NotNull
                                                                        @NotNull Method interface_method,
                                                                        @Nullable
                                                                        @Nullable String proxy_name,
                                                                        @NotNull
                                                                        @NotNull Method target_method)
      • getLambdaInterfaceMethod

        public static Method getLambdaInterfaceMethod​(@NotNull
                                                      @NotNull Class<?> lambda_interface)
      • createMethodWrapper

        public static org.objectweb.asm.ClassWriter createMethodWrapper​(@NotNull
                                                                        @NotNull Class<?> lambda_interface,
                                                                        @Nullable
                                                                        @Nullable String proxy_name,
                                                                        @NotNull
                                                                        @NotNull Method target)
      • createMethodWrapper

        public static org.objectweb.asm.ClassWriter createMethodWrapper​(@NotNull
                                                                        @NotNull Class<?> lambda_interface,
                                                                        @Nullable
                                                                        @Nullable String proxy_name,
                                                                        @NotNull
                                                                        @NotNull String target_internal_source_class_name,
                                                                        @NotNull
                                                                        @NotNull String target_method_name,
                                                                        @NotNull
                                                                        @NotNull WrappedClassImplements.MethodWrapperType wrapper_type)
      • createMethodWrapper

        public static org.objectweb.asm.ClassWriter createMethodWrapper​(@NotNull
                                                                        @NotNull String interface_,
                                                                        @NotNull
                                                                        @NotNull String interface_method_name,
                                                                        @NotNull
                                                                        @NotNull String interface_method_desc,
                                                                        @Nullable
                                                                        @Nullable String proxy_name,
                                                                        @NotNull
                                                                        @NotNull String target_internal_source_class_name,
                                                                        @NotNull
                                                                        @NotNull String target_method_name,
                                                                        @NotNull
                                                                        @NotNull WrappedClassImplements.MethodWrapperType wrapper_type)
      • getMatchState

        public static int getMatchState​(@NotNull
                                        @NotNull org.objectweb.asm.Type source,
                                        @NotNull
                                        @NotNull org.objectweb.asm.Type target)
      • createMethodWrapper

        public static org.objectweb.asm.ClassWriter createMethodWrapper​(@NotNull
                                                                        @NotNull String interface_,
                                                                        @NotNull
                                                                        @NotNull String interface_method_name,
                                                                        @NotNull
                                                                        @NotNull String interface_method_desc,
                                                                        @Nullable
                                                                        @Nullable String proxy_name,
                                                                        @NotNull
                                                                        @NotNull String target_internal_source_class_name,
                                                                        @NotNull
                                                                        @NotNull String target_method_name,
                                                                        @Nullable
                                                                        @Nullable String target_method_desc,
                                                                        @NotNull
                                                                        @NotNull WrappedClassImplements.MethodWrapperType wrapper_type)