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

org.nd4j.bytebuddy.method.integer.relative.RelativeLoadIntParamImplementation Maven / Gradle / Ivy

package org.nd4j.bytebuddy.method.integer.relative;

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

/**
 * @author Adam Gibson
 */
public class RelativeLoadIntParamImplementation implements Implementation {
    private int offset = -1;

    public RelativeLoadIntParamImplementation(int offset) {
        this.offset = offset;
    }

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

    @Override
    public ByteCodeAppender appender(Target implementationTarget) {
        return new RelativeLoadIntParam(offset);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy