C - context typepublic 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 and Description |
|---|
ReplaceVisitor() |
| Modifier and Type | Method and Description |
|---|---|
Expression<?> |
visit(Constant<?> expr,
C context)
Visit a Contant instance with the given context
|
Expression<?> |
visit(FactoryExpression<?> expr,
C context)
Visit a FactoryExpression instance with the given context
|
Expression<?> |
visit(Operation<?> expr,
C context)
Vist a Operation instance with the given context
|
Expression<?> |
visit(ParamExpression<?> expr,
C context)
Visit a ParamExpression instance with the given context
|
Expression<?> |
visit(Path<?> expr,
C context)
Visit a Path instance with the given context
|
Expression<?> |
visit(SubQueryExpression<?> expr,
C context)
Visit a SubQueryExpression instance with the given context
|
Expression<?> |
visit(TemplateExpression<?> expr,
C context)
Visit a TemplateExpression instance with the given context
|
public Expression<?> visit(Constant<?> expr, C context)
Visitorvisit in interface Visitor<Expression<?>,C>expr - expression to visitcontext - context of the visit or null, if not usedpublic Expression<?> visit(FactoryExpression<?> expr, C context)
Visitorvisit in interface Visitor<Expression<?>,C>expr - expression to visitcontext - context of the visit or null, if not usedpublic Expression<?> visit(Operation<?> expr, C context)
Visitorvisit in interface Visitor<Expression<?>,C>expr - expression to visitcontext - context of the visit or null, if not usedpublic Expression<?> visit(ParamExpression<?> expr, C context)
Visitorvisit in interface Visitor<Expression<?>,C>expr - expression to visitcontext - context of the visit or null, if not usedpublic Expression<?> visit(Path<?> expr, C context)
Visitorvisit in interface Visitor<Expression<?>,C>expr - expression to visitcontext - context of the visit or null, if not usedpublic Expression<?> visit(SubQueryExpression<?> expr, C context)
Visitorvisit in interface Visitor<Expression<?>,C>expr - expression to visitcontext - context of the visit or null, if not usedpublic Expression<?> visit(TemplateExpression<?> expr, C context)
Visitorvisit in interface Visitor<Expression<?>,C>expr - expression to visitcontext - context of the visit or null, if not usedCopyright © 2007–2015 Mysema Ltd. All rights reserved.