All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.virjar.sekiro.api.databind.InnerClassCreateHelper Maven / Gradle / Ivy

Go to download

ratel api,used for developer on ratel system,an extension for xposed framewrok,ratel api compatable with original xposed framework

There is a newer version: 1.0.5
Show newest version
package com.virjar.sekiro.api.databind;

import com.virjar.sekiro.api.SekiroRequest;
import com.virjar.sekiro.api.SekiroRequestHandler;

import java.lang.reflect.Constructor;

public class InnerClassCreateHelper implements ActionRequestHandlerGenerator {
    private Constructor theConstructor;
    private Object outClassObject;

    public InnerClassCreateHelper(Constructor theConstructor, Object outClassObject) {
        this.theConstructor = theConstructor;
        this.outClassObject = outClassObject;
    }

    @Override
    public SekiroRequestHandler gen(SekiroRequest invokeRequest) {
        try {
            return theConstructor.newInstance(outClassObject);
        } catch (Exception e) {
            // not happen
            throw new IllegalStateException(e);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy