Schnittstelle ISourceRange

Alle bekannten Implementierungsklassen:
SourceRange

public interface ISourceRange
A source range defines an element's source coordinates relative to its source buffer.

Clients may use the method SourceRange.isAvailable(ISourceRange) in order to find out if a source range is available. This method returns false when the source range offset is equals to -1.

Clients may use the default implementation provided by SourceRange.

Siehe auch:
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    int
    Returns the number of characters of the source code for this element, relative to the source buffer in which this element is contained.
    int
    Returns the 0-based index of the first character of the source code for this element, relative to the source buffer in which this element is contained.
  • Methodendetails

    • getLength

      int getLength()
      Returns the number of characters of the source code for this element, relative to the source buffer in which this element is contained.
      Gibt zurück:
      the number of characters of the source code for this element, relative to the source buffer in which this element is contained
    • getOffset

      int getOffset()
      Returns the 0-based index of the first character of the source code for this element, relative to the source buffer in which this element is contained. However, if the element has no associated source code, an implementation may return -1.
      Gibt zurück:
      the 0-based index of the first character of the source code for this element, relative to the source buffer in which this element is contained. However, if the element has no associated source code, an implementation may return -1.