Class PathsExtractor

java.lang.Object
com.querydsl.core.support.PathsExtractor
All Implemented Interfaces:
Visitor<Void,List<Path<?>>>

public final class PathsExtractor extends Object implements Visitor<Void,List<Path<?>>>
Extracts the paths that occurs in an expression via breadth first search
Author:
tiwe
  • Field Details

  • Method Details

    • visit

      public Void visit(Constant<?> expr, List<Path<?>> paths)
      Description copied from interface: Visitor
      Visit a Constant instance with the given context
      Specified by:
      visit in interface Visitor<Void,List<Path<?>>>
      Parameters:
      expr - expression to visit
      paths - context of the visit or null, if not used
      Returns:
      visit result
    • visit

      public Void visit(FactoryExpression<?> expr, List<Path<?>> paths)
      Description copied from interface: Visitor
      Visit a FactoryExpression instance with the given context
      Specified by:
      visit in interface Visitor<Void,List<Path<?>>>
      Parameters:
      expr - expression to visit
      paths - context of the visit or null, if not used
      Returns:
      visit result
    • visit

      public Void visit(Operation<?> expr, List<Path<?>> paths)
      Description copied from interface: Visitor
      Visit an Operation instance with the given context
      Specified by:
      visit in interface Visitor<Void,List<Path<?>>>
      Parameters:
      expr - expression to visit
      paths - context of the visit or null, if not used
      Returns:
      visit result
    • visit

      public Void visit(ParamExpression<?> expr, List<Path<?>> paths)
      Description copied from interface: Visitor
      Visit a ParamExpression instance with the given context
      Specified by:
      visit in interface Visitor<Void,List<Path<?>>>
      Parameters:
      expr - expression to visit
      paths - context of the visit or null, if not used
      Returns:
      visit result
    • visit

      public Void visit(Path<?> expr, List<Path<?>> paths)
      Description copied from interface: Visitor
      Visit a Path instance with the given context
      Specified by:
      visit in interface Visitor<Void,List<Path<?>>>
      Parameters:
      expr - expression to visit
      paths - context of the visit or null, if not used
      Returns:
      visit result
    • visit

      public Void visit(SubQueryExpression<?> expr, List<Path<?>> paths)
      Description copied from interface: Visitor
      Visit a SubQueryExpression instance with the given context
      Specified by:
      visit in interface Visitor<Void,List<Path<?>>>
      Parameters:
      expr - expression to visit
      paths - context of the visit or null, if not used
      Returns:
      visit result
    • visit

      public Void visit(TemplateExpression<?> expr, List<Path<?>> paths)
      Description copied from interface: Visitor
      Visit a TemplateExpression instance with the given context
      Specified by:
      visit in interface Visitor<Void,List<Path<?>>>
      Parameters:
      expr - expression to visit
      paths - context of the visit or null, if not used
      Returns:
      visit result
    • visit

      public Path<?> visit(Collection<?> exprs, List<Path<?>> paths)