Interface CtPathElement<P extends CtElement,​T extends CtElement>

Type Parameters:
P - the type of the queried elements
T - the type of the returned elements
All Known Implementing Classes:
AbstractPathElement, CtNamedPathElement, CtRolePathElement, CtTypedNameElement

public interface CtPathElement<P extends CtElement,​T extends CtElement>
A single path element from a CtPath.

Internal interface, not meant to be used by client code.

  • Method Details

    • getElements

      Collection<T> getElements(Collection<P> roots)
      Get elements childs of roots that match with this path.
    • addArgument

      <C extends CtPathElement<P,​ T>> C addArgument(String key, String value)
      Add a path argument. For instance, addArgument("index",3) will select only the third element in an indexed list.