aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/utils/nodes/TypeProxyInsnNode.java
blob: 3648278ba4b051cb67fe883c4f11ed5ea97b5dbb (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
package ftbsc.lll.utils.nodes;

import ftbsc.lll.proxies.impl.TypeProxy;
import org.objectweb.asm.tree.TypeInsnNode;

/**
 * Overrides the {@link TypeInsnNode} to add a constructor
 * taking in a {@link TypeProxy}.
 * @since 0.4.0
 */
public class TypeProxyInsnNode extends TypeInsnNode {
   /**
    * Constructs a new {@link TypeInsnNode} starting from a
    * {@link TypeProxy}. The user should ensure that the TypeInsnNode
    * represents a declared type before calling this.
    * @param opcode the opcode, must be one of NEW, ANEWARRAY,
    *               CHECKCAST or INSTANCEOF
    * @param t a {@link TypeProxy} representing the type to call
    */
   public TypeProxyInsnNode(int opcode, TypeProxy t) {
      super(opcode, t.internalName);
   }
}