RPNXCortado
C++23 JVM class-file, bytecode, validation, and JAR toolkit
Loading...
Searching...
No Matches
tutorial_support.hpp
1// AI Generated 2026 Ryan P. Nicholl <rnicholl@protonmail.com>
2// SPDX-License-Identifier: Apache-2.0
3
4#ifndef RPNX_CORTADO_EXAMPLES_TUTORIAL_SUPPORT_HPP
5#define RPNX_CORTADO_EXAMPLES_TUTORIAL_SUPPORT_HPP
6
7#include <string>
8#include <string_view>
9
10namespace rpnx::cortado::examples
11{
19 {
25 [[nodiscard]] std::string common_superclass(std::string_view left, std::string_view right) const
26 {
27 static_cast< void >(left);
28 static_cast< void >(right);
29 return "java/lang/Object";
30 }
31 };
32} // namespace rpnx::cortado::examples
33
34#endif // RPNX_CORTADO_EXAMPLES_TUTORIAL_SUPPORT_HPP
A deliberately conservative hierarchy resolver for the code-generation tutorial.
std::string common_superclass(std::string_view left, std::string_view right) const
Returns the common superclass used in the tutorial's verifier frame.