Class LdcInsnNode


  • public class LdcInsnNode
    extends AbstractInsnNode
    A node that represents an LDC instruction.
    • Field Detail

      • cst

        public java.lang.Object cst
        The constant to be loaded on the stack. This parameter must be a non null Integer, a Float, a Long, a Double, a String or a Type.
    • Constructor Detail

      • LdcInsnNode

        public LdcInsnNode​(java.lang.Object value)
        Constructs a new LdcInsnNode.
        Parameters:
        value - the constant to be loaded on the stack. This parameter must be a non null Integer, a Float, a Long, a Double or a String.
    • Method Detail

      • getType

        public int getType()
        Description copied from class: AbstractInsnNode
        Returns the type of this instruction.
        Specified by:
        getType in class AbstractInsnNode
        Returns:
        the type of this instruction, i.e. one the constants defined in this class.
      • accept

        public void accept​(org.objectweb.asm.MethodVisitor methodVisitor)
        Description copied from class: AbstractInsnNode
        Makes the given method visitor visit this instruction.
        Specified by:
        accept in class AbstractInsnNode
        Parameters:
        methodVisitor - a method visitor.