| 187 | } |
| 188 | |
| 189 | void cmDependsJavaParserHelper::EndClass() |
| 190 | { |
| 191 | if (this->ClassStack.empty()) { |
| 192 | std::cerr << "Error when parsing. Current class is null" << std::endl; |
| 193 | abort(); |
| 194 | } |
| 195 | if (this->ClassStack.size() <= 1) { |
| 196 | std::cerr << "Error when parsing. Parent class is null" << std::endl; |
| 197 | abort(); |
| 198 | } |
| 199 | CurrentClass& current = this->ClassStack.back(); |
| 200 | CurrentClass& parent = this->ClassStack[this->ClassStack.size() - 2]; |
| 201 | this->CurrentDepth--; |
| 202 | parent.NestedClasses.push_back(current); |
| 203 | this->ClassStack.pop_back(); |
| 204 | } |
| 205 | |
| 206 | void cmDependsJavaParserHelper::PrintClasses() |
| 207 | { |