Package com.querydsl.core.types
Interface Visitor<R,C>
- Type Parameters:
R- Return typeC- Context type
- All Known Implementing Classes:
CollectionAnyVisitor,HashCodeVisitor,ParamsVisitor,PathExtractor,PathsExtractor,ReplaceVisitor,SerializerBase,ToStringVisitor,ValidatingVisitor
public interface Visitor<R,C>
Visitor defines a visitor signature for Expression instances.- Author:
- tiwe
-
Method Summary
Modifier and TypeMethodDescriptionVisit a Constant instance with the given contextvisit(FactoryExpression<?> expr, C context) Visit a FactoryExpression instance with the given contextVisit an Operation instance with the given contextvisit(ParamExpression<?> expr, C context) Visit a ParamExpression instance with the given contextVisit a Path instance with the given contextvisit(SubQueryExpression<?> expr, C context) Visit a SubQueryExpression instance with the given contextvisit(TemplateExpression<?> expr, C context) Visit a TemplateExpression instance with the given context
-
Method Details
-
visit
Visit a Constant instance with the given context- Parameters:
expr- expression to visitcontext- context of the visit or null, if not used- Returns:
- visit result
-
visit
Visit a FactoryExpression instance with the given context- Parameters:
expr- expression to visitcontext- context of the visit or null, if not used- Returns:
- visit result
-
visit
Visit an Operation instance with the given context- Parameters:
expr- expression to visitcontext- context of the visit or null, if not used- Returns:
- visit result
-
visit
Visit a ParamExpression instance with the given context- Parameters:
expr- expression to visitcontext- context of the visit or null, if not used- Returns:
- visit result
-
visit
Visit a Path instance with the given context- Parameters:
expr- expression to visitcontext- context of the visit or null, if not used- Returns:
- visit result
-
visit
Visit a SubQueryExpression instance with the given context- Parameters:
expr- expression to visitcontext- context of the visit or null, if not used- Returns:
- visit result
-
visit
Visit a TemplateExpression instance with the given context- Parameters:
expr- expression to visitcontext- context of the visit or null, if not used- Returns:
- visit result
-