Class LDC2_W

    • Constructor Detail

      • LDC2_W

        public LDC2_W​(int index)
        Constructs an LDC2_W instruction.
        Parameters:
        index - index into constant pool.
    • Method Detail

      • accept

        public void accept​(Visitor v)
        Call corresponding visitor method(s). The order is: Call visitor methods of implemented interfaces first, then call methods according to the class hierarchy in descending order, that is, the most specific visitXXX() call comes last.
        Specified by:
        accept in class Instruction
        Parameters:
        v - Visitor object.
      • getValue

        public java.lang.Number getValue​(ConstantPoolGen cpg)
        Gets the constant value from the constant pool.
        Parameters:
        cpg - constant pool generator.
        Returns:
        The constant value as a Number.