public function getExactlyOneClass($fileSource) {
        if (count($this->ast) !== 1 || $this->ast[0]->getType() !== "Stmt_Class")
            throw new PhpParserException("\"$fileSource\" does not define exactly one class");
        return $this->ast[0];
    }