01: package edu.umd.cs.findbugs.classfile.engine.bcel;
02:
03: import edu.umd.cs.findbugs.ba.MethodBytecodeSet;
04:
05: /**
06: * Unpacked code for a method.
07: * Contains set of all opcodes in the method, as well as a map
08: * of bytecode offsets to opcodes.
09: */
10: public class UnpackedCode {
11: private MethodBytecodeSet bytecodeSet;
12: private short[] offsetToBytecodeMap;
13:
14: public UnpackedCode(MethodBytecodeSet bytecodeSet,
15: short[] offsetToBytecodeMap) {
16: this .bytecodeSet = bytecodeSet;
17: this .offsetToBytecodeMap = offsetToBytecodeMap;
18: }
19:
20: /**
21: * @return Returns the bytecodeSet.
22: */
23: public MethodBytecodeSet getBytecodeSet() {
24: return bytecodeSet;
25: }
26:
27: /**
28: * @return Returns the offsetToBytecodeMap.
29: */
30: public short[] getOffsetToBytecodeMap() {
31: return offsetToBytecodeMap;
32: }
33: }
|