Class ReplaceVisitor<C>

java.lang.Object
com.querydsl.core.support.ReplaceVisitor<C>
Type Parameters:
C - context type
All Implemented Interfaces:
Visitor<Expression<?>,C>

public class ReplaceVisitor<C> extends Object implements Visitor<Expression<?>,C>
ReplaceVisitor is a deep visitor that can be customized to replace segments of expression trees
  • Constructor Details

    • ReplaceVisitor

      public ReplaceVisitor()
  • Method Details

    • visit

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

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

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

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

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

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

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