Class PathExtractor

java.lang.Object
com.querydsl.core.types.PathExtractor
All Implemented Interfaces:
Visitor<Path<?>,Void>

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

  • Method Details

    • visit

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

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

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

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

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

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

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