![JAR search and dependency download from the Maven repository](/logo.png)
com.packenius.datadivider.javaclass.instr.INVOKESTATIC Maven / Gradle / Ivy
package com.packenius.datadivider.javaclass.instr;
import com.packenius.datadivider.javaclass.ConstantPool;
import com.packenius.datadivider.javaclass.ConstantPoolEntryCrossPointer;
import com.packenius.dumpapi.DumpReader;
import com.packenius.dumpapi.DumpReader.BigEndianUnsigned2ByteInteger;
/**
* JVM-Instruktion.
* @author Christian Packenius, 2016
*/
public class INVOKESTATIC extends InvokeInstruction {
/**
* Index in den Konstantenpool.
*/
public final int index;
/**
* Konstruktor.
*/
public INVOKESTATIC(int address, DumpReader reader) {
super(address, reader);
BigEndianUnsigned2ByteInteger indexDumpBlock = reader.readBigEndianU2("Method index: ###DEC##");
indexDumpBlock.setCrossPointer(new ConstantPoolEntryCrossPointer(indexDumpBlock.value));
index = indexDumpBlock.value;
setEndAddress(reader);
}
@Override
public String toString() {
return "invokestatic " + reader.getUserObject(ConstantPool.class).getMethodRefEntry(index).getString()
+ " // #" + index;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy