2 * Copyright 2008, Haiku.
3 * Distributed under the terms of the MIT license.
6 * Michael Pfeiffer <laplace@users.sourceforge.net>
9 #ifndef _STATEMENT_LIST_VISITOR_H
10 #define _STATEMENT_LIST_VISITOR_H
12 #include "StatementWrapper.h"
13 #include "StatementList.h"
15 class StatementListVisitor
{
19 StatementListVisitor() : fLevel(0) {}
20 virtual ~StatementListVisitor() {}
22 virtual void Visit(StatementList
* list
);
25 int32
GetLevel() const { return fLevel
; }
27 virtual void BeginGroup(GroupStatement
* group
) {};
28 virtual void DoDefault(Statement
* statement
) {};
29 virtual void DoQuery(Statement
* statement
) {};
30 virtual void DoValue(Statement
* statement
) {};
31 virtual void DoParam(Statement
* statement
) {};
32 virtual void EndGroup(GroupStatement
* group
) {};