The CXXRecordDecl of a Stmt


Could anyone tell me how to know what CXXRecordDecl a Stmt belongs to? That is, I retrieve a Stmt and I need to know in which of the classes is contained (if any). I have been searching for a method in the API of Stmt, but I couldn’t find anything for this purpose.

Thanks in advance.