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
10
namespace
rpnx::cortado::examples
11
{
18
struct
tutorial_class_hierarchy
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
rpnx::cortado::examples::tutorial_class_hierarchy
A deliberately conservative hierarchy resolver for the code-generation tutorial.
Definition
tutorial_support.hpp:19
rpnx::cortado::examples::tutorial_class_hierarchy::common_superclass
std::string common_superclass(std::string_view left, std::string_view right) const
Returns the common superclass used in the tutorial's verifier frame.
Definition
tutorial_support.hpp:25
examples
tutorial_support.hpp
Generated by
1.13.2