Interface RtElement


public interface RtElement
The element object that represents various declarations in the source file depending on the target parser language. A Java language declaration represents class, method, field, static block and some additional elements. Used to denote the context that link objects RtLink are related to.
Since:
3.17.0
  • Method Details

    • getPosition

      @NotNull RtPosition getPosition()
      Returns:
      the position of the element in the source file. For the provided Java and XML parsers, the position represents the line number of the declaration.
    • getType

      @NotNull String getType()
      Returns:
      language specific element types like 'class' and 'method'.
    • getId

      @NotNull String getId()
      Returns:
      the identifier of a element. (Can be used to search for it in the source file and distinguish it from other elements.)
    • getLinks

      @NotNull List<RtLink> getLinks()
      Returns:
      a list of link objects related to the element.