edu.umd.cs.findbugs.classfile.engine.bcel.UnpackedCode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spotbugs Show documentation
Show all versions of spotbugs Show documentation
SpotBugs: Because it's easy!
The newest version!
package edu.umd.cs.findbugs.classfile.engine.bcel;
import edu.umd.cs.findbugs.ba.MethodBytecodeSet;
/**
* Unpacked code for a method. Contains set of all opcodes in the method, as
* well as a map of bytecode offsets to opcodes.
*/
public class UnpackedCode {
private final MethodBytecodeSet bytecodeSet;
private final short[] offsetToBytecodeMap;
public UnpackedCode(MethodBytecodeSet bytecodeSet, short[] offsetToBytecodeMap) {
this.bytecodeSet = bytecodeSet;
this.offsetToBytecodeMap = offsetToBytecodeMap;
}
/**
* @return Returns the bytecodeSet.
*/
public MethodBytecodeSet getBytecodeSet() {
return bytecodeSet;
}
/**
* @return Returns the offsetToBytecodeMap.
*/
public short[] getOffsetToBytecodeMap() {
return offsetToBytecodeMap;
}
}