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

org.jruby.ast.executable.ScriptAndCode Maven / Gradle / Ivy

There is a newer version: 9.4.12.0
Show newest version
package org.jruby.ast.executable;

import java.util.Arrays;

/**
 * Represents an executable Script object and the bytecode that goes with it.
 */
public class ScriptAndCode {
    private final byte[] bytecode;
    private final Script script;

    public ScriptAndCode(byte[] bytecode, Script script) {
        this.bytecode = bytecode;
        this.script = script;
    }

    public byte[] bytecode() {
        return Arrays.copyOf(bytecode, bytecode.length);
    }

    public Script script() {
        return script;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy