Class Patcher

  • All Implemented Interfaces:

    
    public class Patcher
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static Logger logger
    • Constructor Summary

      Constructors 
      Constructor Description
      Patcher()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static XC_MethodHook.Unhook addPatch(Member member, XC_MethodHook hook) Add a patch
      static XC_MethodHook.Unhook addPatch(Class<out Object> clazz, String methodName, Array<Class<out Object>> paramTypes, XC_MethodHook hook) Add a patch
      static XC_MethodHook.Unhook addPatch(String forClass, String methodName, Array<Class<out Object>> paramTypes, XC_MethodHook hook) Add a patch
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Patcher

        Patcher()
    • Method Detail

      • addPatch

         static XC_MethodHook.Unhook addPatch(Member member, XC_MethodHook hook)

        Add a patch

        Parameters:
        member - The member (method, constructor) to patch
        hook - MethodHook
      • addPatch

         static XC_MethodHook.Unhook addPatch(Class<out Object> clazz, String methodName, Array<Class<out Object>> paramTypes, XC_MethodHook hook)

        Add a patch

        Parameters:
        clazz - Class to patch
        methodName - The name of the method
        paramTypes - The types of the parameters (e.g.
        hook - MethodHook
      • addPatch

         static XC_MethodHook.Unhook addPatch(String forClass, String methodName, Array<Class<out Object>> paramTypes, XC_MethodHook hook)

        Add a patch

        Parameters:
        forClass - The full name of the class to patch (e.g.
        methodName - The name of the method
        paramTypes - The types of the parameters (e.g.
        hook - MethodHook