Class PdeIssueEmitter.IssueLocation

java.lang.Object
processing.mode.java.preproc.PdeIssueEmitter.IssueLocation
Enclosing class:
PdeIssueEmitter

public static class PdeIssueEmitter.IssueLocation extends Object
Data structure describing where an issue occurred.
  • Constructor Details

    • IssueLocation

      public IssueLocation(int newLine, int newCharPosition)
      Create a new issue location structure.
      Parameters:
      newLine - The line (1-indexed) where the issue occurred. This should be in the global file generated by the preprocessor and not relative to the start of the tab.
      newCharPosition - The position on the line.
  • Method Details

    • getLine

      public int getLine()
      Get the 1-indexed line on which this error occurred.
      Returns:
      The line on which this error occurred. Note that this will be relative to the global file generated by the preprocessor and not relative to the start of the tab.
    • getCharPosition

      public int getCharPosition()
      The the position of the error within the line.
      Returns:
      The number of characters including whitespace from the start of the line at which the error occurred.