blob: d8e733dc3768e66546782b24bc9f5cdebceeb699 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package ftbsc.lll.tools.nodes;
import ftbsc.lll.proxies.FieldProxy;
import ftbsc.lll.proxies.MethodProxy;
import org.objectweb.asm.tree.FieldInsnNode;
/**
* Overrides the {@link FieldInsnNode} to add a constructor
* taking in a {@link FieldProxy}.
* @since 0.3.0
*/
public class FieldProxyInsnNode extends FieldInsnNode {
/**
* Constructs a new {@link FieldInsnNode} starting
* from a {@link FieldProxy}.
* @param opcode the opcode, must be one of GETSTATIC, PUTSTATIC,
* GETFIELD or PUTFIELD
* @param a {@link FieldProxy} representing the field to call
*/
public FieldProxyInsnNode(int opcode, FieldProxy proxy) {
super(
opcode,
proxy.getParent().replace('.', '/'),
proxy.getSrgName(),
proxy.getDescriptor()
);
}
}
|