public final class ValidatingVisitor extends Object implements Visitor<Set<Expression<?>>,Set<Expression<?>>>, Serializable
ValidatingVisitor
visits expressions and ensures that only known path instances are usedModifier and Type | Field and Description |
---|---|
static ValidatingVisitor |
DEFAULT |
Constructor and Description |
---|
ValidatingVisitor() |
ValidatingVisitor(String errorTemplate) |
Modifier and Type | Method and Description |
---|---|
Set<Expression<?>> |
visit(Constant<?> expr,
Set<Expression<?>> known)
Visit a Constant instance with the given context
|
Set<Expression<?>> |
visit(FactoryExpression<?> expr,
Set<Expression<?>> known)
Visit a FactoryExpression instance with the given context
|
Set<Expression<?>> |
visit(Operation<?> expr,
Set<Expression<?>> known)
Visit an Operation instance with the given context
|
Set<Expression<?>> |
visit(ParamExpression<?> expr,
Set<Expression<?>> known)
Visit a ParamExpression instance with the given context
|
Set<Expression<?>> |
visit(Path<?> expr,
Set<Expression<?>> known)
Visit a Path instance with the given context
|
Set<Expression<?>> |
visit(SubQueryExpression<?> expr,
Set<Expression<?>> known)
Visit a SubQueryExpression instance with the given context
|
Set<Expression<?>> |
visit(TemplateExpression<?> expr,
Set<Expression<?>> known)
Visit a TemplateExpression instance with the given context
|
public static final ValidatingVisitor DEFAULT
public ValidatingVisitor()
public ValidatingVisitor(String errorTemplate)
public Set<Expression<?>> visit(Constant<?> expr, Set<Expression<?>> known)
Visitor
visit
in interface Visitor<Set<Expression<?>>,Set<Expression<?>>>
expr
- expression to visitknown
- context of the visit or null, if not usedpublic Set<Expression<?>> visit(FactoryExpression<?> expr, Set<Expression<?>> known)
Visitor
visit
in interface Visitor<Set<Expression<?>>,Set<Expression<?>>>
expr
- expression to visitknown
- context of the visit or null, if not usedpublic Set<Expression<?>> visit(Operation<?> expr, Set<Expression<?>> known)
Visitor
visit
in interface Visitor<Set<Expression<?>>,Set<Expression<?>>>
expr
- expression to visitknown
- context of the visit or null, if not usedpublic Set<Expression<?>> visit(ParamExpression<?> expr, Set<Expression<?>> known)
Visitor
visit
in interface Visitor<Set<Expression<?>>,Set<Expression<?>>>
expr
- expression to visitknown
- context of the visit or null, if not usedpublic Set<Expression<?>> visit(Path<?> expr, Set<Expression<?>> known)
Visitor
visit
in interface Visitor<Set<Expression<?>>,Set<Expression<?>>>
expr
- expression to visitknown
- context of the visit or null, if not usedpublic Set<Expression<?>> visit(SubQueryExpression<?> expr, Set<Expression<?>> known)
Visitor
visit
in interface Visitor<Set<Expression<?>>,Set<Expression<?>>>
expr
- expression to visitknown
- context of the visit or null, if not usedpublic Set<Expression<?>> visit(TemplateExpression<?> expr, Set<Expression<?>> known)
Visitor
visit
in interface Visitor<Set<Expression<?>>,Set<Expression<?>>>
expr
- expression to visitknown
- context of the visit or null, if not usedCopyright © 2007–2016 Querydsl. All rights reserved.