class TableProcessor implements NodeProcessor {

  @Override
  public Object process(Node node, Stack<Node> stack, NodeProcessorCtx procCtx, Object... nodeOutputs)
    throws SemanticException {
    ASTNode astNode = (ASTNode) node;
    if (astNode.getToken() != null && astNode.getToken().getText() != null) {
      if ("TOK_TABNAME".equals(astNode.getToken().getText())) {
        tables.add(extractTableName(astNode));
      }
    }
    return null;
  }

}