Package com.querydsl.core.support
Class ReplaceVisitor<C>
java.lang.Object
com.querydsl.core.support.ReplaceVisitor<C>
- Type Parameters:
C- context type
- All Implemented Interfaces:
Visitor<Expression<?>,C>
ReplaceVisitor is a deep visitor that can be customized to replace segments of
expression trees-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExpression<?>Visit a Constant instance with the given contextExpression<?>visit(FactoryExpression<?> expr, C context) Visit a FactoryExpression instance with the given contextExpression<?>Visit an Operation instance with the given contextExpression<?>visit(ParamExpression<?> expr, C context) Visit a ParamExpression instance with the given contextExpression<?>Visit a Path instance with the given contextExpression<?>visit(SubQueryExpression<?> expr, C context) Visit a SubQueryExpression instance with the given contextExpression<?>visit(TemplateExpression<?> expr, C context) Visit a TemplateExpression instance with the given context
-
Constructor Details
-
ReplaceVisitor
public ReplaceVisitor()
-
-
Method Details
-
visit
Description copied from interface:VisitorVisit a Constant instance with the given context- Specified by:
visitin interfaceVisitor<Expression<?>,C> - Parameters:
expr- expression to visitcontext- context of the visit or null, if not used- Returns:
- visit result
-
visit
Description copied from interface:VisitorVisit a FactoryExpression instance with the given context- Specified by:
visitin interfaceVisitor<Expression<?>,C> - Parameters:
expr- expression to visitcontext- context of the visit or null, if not used- Returns:
- visit result
-
visit
Description copied from interface:VisitorVisit an Operation instance with the given context- Specified by:
visitin interfaceVisitor<Expression<?>,C> - Parameters:
expr- expression to visitcontext- context of the visit or null, if not used- Returns:
- visit result
-
visit
Description copied from interface:VisitorVisit a ParamExpression instance with the given context- Specified by:
visitin interfaceVisitor<Expression<?>,C> - Parameters:
expr- expression to visitcontext- context of the visit or null, if not used- Returns:
- visit result
-
visit
Description copied from interface:VisitorVisit a Path instance with the given context- Specified by:
visitin interfaceVisitor<Expression<?>,C> - Parameters:
expr- expression to visitcontext- context of the visit or null, if not used- Returns:
- visit result
-
visit
Description copied from interface:VisitorVisit a SubQueryExpression instance with the given context- Specified by:
visitin interfaceVisitor<Expression<?>,C> - Parameters:
expr- expression to visitcontext- context of the visit or null, if not used- Returns:
- visit result
-
visit
Description copied from interface:VisitorVisit a TemplateExpression instance with the given context- Specified by:
visitin interfaceVisitor<Expression<?>,C> - Parameters:
expr- expression to visitcontext- context of the visit or null, if not used- Returns:
- visit result
-