Class LineNumberNode


  • public class LineNumberNode
    extends AbstractInsnNode
    A node that represents a line number declaration. These nodes are pseudo instruction nodes in order to be inserted in an instruction list.
    • Field Detail

      • line

        public int line
        A line number. This number refers to the source file from which the class was compiled.
      • start

        public LabelNode start
        The first instruction corresponding to this line number.
    • Constructor Detail

      • LineNumberNode

        public LineNumberNode​(int line,
                              LabelNode start)
        Constructs a new LineNumberNode.
        Parameters:
        line - a line number. This number refers to the source file from which the class was compiled.
        start - the first instruction corresponding to this line number.
    • 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.