Class LineNumberGen

    • Constructor Detail

      • LineNumberGen

        public LineNumberGen​(InstructionHandle ih,
                             int srcLine)
        Create a line number.
        Parameters:
        ih - instruction handle to reference.
        srcLine - source line number.
    • Method Detail

      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object
      • getLineNumber

        public LineNumber getLineNumber()
        Gets LineNumber attribute. This relies on that the instruction list has already been dumped to byte code or that the 'setPositions' methods has been called for the instruction list.
        Returns:
        The line number attribute.
      • getSourceLine

        public int getSourceLine()
        Gets the source line number.
        Returns:
        The source line number.
      • setInstruction

        public void setInstruction​(InstructionHandle instructionHandle)
        Sets the instruction handle.
        Parameters:
        instructionHandle - The instruction handle to set.
      • setSourceLine

        public void setSourceLine​(int srcLine)
        Sets the source line number.
        Parameters:
        srcLine - The source line number to set.