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

org.nd4j.bytebuddy.method.args.LoadArgsImplementation Maven / Gradle / Ivy

There is a newer version: 0.9.1
Show newest version
package org.nd4j.bytebuddy.method.args;

import net.bytebuddy.dynamic.scaffold.InstrumentedType;
import net.bytebuddy.implementation.Implementation;
import net.bytebuddy.implementation.bytecode.ByteCodeAppender;

/**
 * @author Adam Gibson
 */
public class LoadArgsImplementation implements Implementation {
    private boolean loadThis = false;

    public LoadArgsImplementation(boolean loadThis) {
        this.loadThis = loadThis;
    }

    public LoadArgsImplementation() {
        this(false);
    }

    @Override
    public InstrumentedType prepare(InstrumentedType instrumentedType) {
        return instrumentedType;
    }

    @Override
    public ByteCodeAppender appender(Target implementationTarget) {
        return new LoadArgsAppender(loadThis);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy