Interface Visitor<R,C>

Type Parameters:
R - Return type
C - 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 Type
    Method
    Description
    visit(Constant<?> expr, C context)
    Visit a Constant instance with the given context
    visit(FactoryExpression<?> expr, C context)
    Visit a FactoryExpression instance with the given context
    visit(Operation<?> expr, C context)
    Visit an Operation instance with the given context
    visit(ParamExpression<?> expr, C context)
    Visit a ParamExpression instance with the given context
    visit(Path<?> expr, C context)
    Visit a Path instance with the given context
    visit(SubQueryExpression<?> expr, C context)
    Visit a SubQueryExpression instance with the given context
    visit(TemplateExpression<?> expr, C context)
    Visit a TemplateExpression instance with the given context
  • Method Details

    • visit

      R visit(Constant<?> expr, @Nullable C context)
      Visit a Constant instance with the given context
      Parameters:
      expr - expression to visit
      context - context of the visit or null, if not used
      Returns:
      visit result
    • visit

      R visit(FactoryExpression<?> expr, @Nullable C context)
      Visit a FactoryExpression instance with the given context
      Parameters:
      expr - expression to visit
      context - context of the visit or null, if not used
      Returns:
      visit result
    • visit

      R visit(Operation<?> expr, @Nullable C context)
      Visit an Operation instance with the given context
      Parameters:
      expr - expression to visit
      context - context of the visit or null, if not used
      Returns:
      visit result
    • visit

      R visit(ParamExpression<?> expr, @Nullable C context)
      Visit a ParamExpression instance with the given context
      Parameters:
      expr - expression to visit
      context - context of the visit or null, if not used
      Returns:
      visit result
    • visit

      R visit(Path<?> expr, @Nullable C context)
      Visit a Path instance with the given context
      Parameters:
      expr - expression to visit
      context - context of the visit or null, if not used
      Returns:
      visit result
    • visit

      R visit(SubQueryExpression<?> expr, @Nullable C context)
      Visit a SubQueryExpression instance with the given context
      Parameters:
      expr - expression to visit
      context - context of the visit or null, if not used
      Returns:
      visit result
    • visit

      R visit(TemplateExpression<?> expr, @Nullable C context)
      Visit a TemplateExpression instance with the given context
      Parameters:
      expr - expression to visit
      context - context of the visit or null, if not used
      Returns:
      visit result