Class ExplicitLocation

java.lang.Object
net.sf.saxon.expr.parser.ExplicitLocation
All Implemented Interfaces:
SourceLocator, Location, Locator

public class ExplicitLocation extends Object implements Location
Class to hold details of the location of an expression, of an error in a source file, etc. The object is immutable.
  • Field Details

  • Constructor Details

    • ExplicitLocation

      public ExplicitLocation(SourceLocator loc)
      Create an ExpressionLocation, taking the data from a supplied JAXP SourceLocator
      Parameters:
      loc - the JAXP SourceLocator
    • ExplicitLocation

      public ExplicitLocation(String systemId, int lineNumber, int columnNumber)
      Create an ExpressionLocation corresponding to a given module, line number, and column number
      Parameters:
      systemId - the module URI
      lineNumber - the line number (starting at 1; -1 means unknown)
      columnNumber - the column number (starting at 1; -1 means unknown)
  • Method Details