Interface Path<X>

All Superinterfaces:
Expression<X>, Selection<X>, TupleElement<X>
All Known Subinterfaces:
Root<X>
All Known Implementing Classes:
AbstractPathExpression, PathImpl, RootImpl

public interface Path<X> extends Expression<X>
  • Method Details

    • getAttr

      <Y> Path<Y> getAttr(String attributeName)
      Create a path corresponding to the referenced attribute.
      Parameters:
      attributeName - name of the attribute
      Returns:
      path corresponding to the referenced attribute
      Throws:
      IllegalArgumentException - if attribute of the given name does not otherwise exist
    • getAttr

      <Y> Path<Y> getAttr(SingularAttribute<? super X,Y> attribute)
      Create a path corresponding to the referenced single-valued attribute.
      Parameters:
      attribute - single-valued attribute
      Returns:
      path corresponding to the referenced attribute
    • getParentPath

      Path<?> getParentPath()
      Return the parent "node" in the path or null if no parent.
      Returns:
      parent