Class ToStringVisitor

java.lang.Object
com.querydsl.core.types.ToStringVisitor
All Implemented Interfaces:
Visitor<String,Templates>

public final class ToStringVisitor extends Object implements Visitor<String,Templates>
ToStringVisitor is used for toString() serialization in Expression implementations.
Author:
tiwe
  • Field Details

  • Method Details

    • visit

      public String visit(Constant<?> e, Templates templates)
      Description copied from interface: Visitor
      Visit a Constant instance with the given context
      Specified by:
      visit in interface Visitor<String,Templates>
      Parameters:
      e - expression to visit
      templates - context of the visit or null, if not used
      Returns:
      visit result
    • visit

      public String visit(FactoryExpression<?> e, Templates templates)
      Description copied from interface: Visitor
      Visit a FactoryExpression instance with the given context
      Specified by:
      visit in interface Visitor<String,Templates>
      Parameters:
      e - expression to visit
      templates - context of the visit or null, if not used
      Returns:
      visit result
    • visit

      public String visit(Operation<?> o, Templates templates)
      Description copied from interface: Visitor
      Visit an Operation instance with the given context
      Specified by:
      visit in interface Visitor<String,Templates>
      Parameters:
      o - expression to visit
      templates - context of the visit or null, if not used
      Returns:
      visit result
    • visit

      public String visit(ParamExpression<?> param, Templates templates)
      Description copied from interface: Visitor
      Visit a ParamExpression instance with the given context
      Specified by:
      visit in interface Visitor<String,Templates>
      Parameters:
      param - expression to visit
      templates - context of the visit or null, if not used
      Returns:
      visit result
    • visit

      public String visit(Path<?> p, Templates templates)
      Description copied from interface: Visitor
      Visit a Path instance with the given context
      Specified by:
      visit in interface Visitor<String,Templates>
      Parameters:
      p - expression to visit
      templates - context of the visit or null, if not used
      Returns:
      visit result
    • visit

      public String visit(SubQueryExpression<?> expr, Templates templates)
      Description copied from interface: Visitor
      Visit a SubQueryExpression instance with the given context
      Specified by:
      visit in interface Visitor<String,Templates>
      Parameters:
      expr - expression to visit
      templates - context of the visit or null, if not used
      Returns:
      visit result
    • visit

      public String visit(TemplateExpression<?> expr, Templates templates)
      Description copied from interface: Visitor
      Visit a TemplateExpression instance with the given context
      Specified by:
      visit in interface Visitor<String,Templates>
      Parameters:
      expr - expression to visit
      templates - context of the visit or null, if not used
      Returns:
      visit result