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

com.packenius.datadivider.javaclass.instr.ASTORE Maven / Gradle / Ivy

package com.packenius.datadivider.javaclass.instr;

import com.packenius.dumpapi.DumpReader;

/**
 * JVM-Instruktion.
 * @author Christian Packenius, 2016
 */
public class ASTORE extends JvmInstruction implements UsingLocalVariable {
    /**
     * Index auf eine lokale Variable.
     */
    public final int index;

    /**
     * Konstruktor.
     */
    public ASTORE(int address, DumpReader reader) {
        super(address, reader);
        index = reader.readU1("Variable index: ##DEC##").value;
        setEndAddress(reader);
    }

    @Override
    public String toString() {
        return "astore v" + index;
    }

    /**
     * @see com.packenius.datadivider.javaclass.instr.UsingLocalVariable#getLocalVariableIndex()
     */
    @Override
    public int getLocalVariableIndex() {
        return index;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy