Interface CompoundSourcePosition

All Superinterfaces:
Serializable, SourcePosition
All Known Subinterfaces:
BodyHolderSourcePosition, DeclarationSourcePosition
All Known Implementing Classes:
BodyHolderSourcePositionImpl, CompoundSourcePositionImpl, DeclarationSourcePositionImpl

public interface CompoundSourcePosition extends SourcePosition
This interface represents the position of a program element like an expression in a source file. The start/end represents range of whole program element including children element and comments The nameStart/End represents range of core part of program element.
  • Method Details

    • getDeclarationStart

      int getDeclarationStart()
      returns the start of everything incl. type, name and default value
    • getDeclarationEnd

      int getDeclarationEnd()
      returns the end of everything incl. type, name and default value
    • getNameStart

      int getNameStart()
      returns the start of name (int foo = 0 ➡ pos('f'))
    • getNameEnd

      int getNameEnd()
      returns the end of name (int bar = 0 ➡ pos('r'))