Class LineNumberNode

java.lang.Object
org.objectweb.asm.tree.AbstractInsnNode
org.objectweb.asm.tree.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 Details

    • 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 Details

    • 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 Details

    • 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(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.
    • clone

      public AbstractInsnNode clone(Map<LabelNode,LabelNode> clonedLabels)
      Description copied from class: AbstractInsnNode
      Returns a copy of this instruction.
      Specified by:
      clone in class AbstractInsnNode
      Parameters:
      clonedLabels - a map from LabelNodes to cloned LabelNodes.
      Returns:
      a copy of this instruction. The returned instruction does not belong to any InsnList.