Class SimpleLocation

java.lang.Object
com.helger.base.location.SimpleLocation
All Implemented Interfaces:
ILocation

@Immutable public class SimpleLocation extends Object implements ILocation
Default implementation of the ILocation interface. The implementation is immutable.
Author:
Philip Helger
  • Field Details

    • NO_LOCATION

      public static final SimpleLocation NO_LOCATION
      A constant representing no location
  • Constructor Details

    • SimpleLocation

      public SimpleLocation(@Nullable String sResourceID)
      Constructor with resource ID only.
      Parameters:
      sResourceID - The resource ID. May be null.
    • SimpleLocation

      public SimpleLocation(@Nullable String sResourceID, int nLineNumber, int nColumnNumber)
      Constructor with resource ID, line number and column number.
      Parameters:
      sResourceID - The resource ID. May be null.
      nLineNumber - The line number. Use ILocation.ILLEGAL_NUMBER if not available.
      nColumnNumber - The column number. Use ILocation.ILLEGAL_NUMBER if not available.
  • Method Details