2#ifndef ROSE_BinaryAnalysis_ByteCode_ClassHierarchy_JvmCompatibility_H
3#define ROSE_BinaryAnalysis_ByteCode_ClassHierarchy_JvmCompatibility_H 1
8#include <Rose/Common/Analysis/AnalysisTypes.h>
9#include <Rose/Common/Analysis/AbstractCompatibilityBridge.h>
11namespace Rose::BinaryAnalysis::ByteCode::ClassHierarchy
80 Rose::Common::Analysis::FunctionTypeRelation
111 Rose::Common::Analysis::LanguageSpecificFn
a stateless mapping of JVM related nodes to fundamental functions of the class hierarchy analysis.
bool isPureVirtual(Rose::Common::Analysis::FunctionKeyType key) const override
returns true if the class represented by key is an abstract function.
void extractFromMemoryPool(Rose::Common::Analysis::ClassAnalysis &classes) const override
extracts class information from the memory pool if available
bool isAbstract(Rose::Common::Analysis::ClassKeyType key) const override
returns true if the class represented by key is an abstract class.
std::string nameOf(Rose::Common::Analysis::ClassKeyType key) const override
returns the source name of the class represented by key.
bool inheritedMethodsImplementVirtualBaseMethods() const override
returns true: in Java a method inherited from a superclass implements an interface method of a subcla...
std::string nameOf(Rose::Common::Analysis::FunctionKeyType key) const override
returns the source name of the function represented by key.
Rose::Common::Analysis::DataMemberType typeOf(Rose::Common::Analysis::VariableKeyType var) const override
returns the type of a non-static data member var.
int compareFunctionsByType(Rose::Common::Analysis::FunctionKeyType lhs, Rose::Common::Analysis::FunctionKeyType rhs, bool exclReturnType=true) const override
compares the canonical types of functions lhs and rhs
bool isInheritableImplementation(Rose::Common::Analysis::FunctionKeyType fnkey) const override
returns whether an inherited method qualifies as implementation of an interface method.
void inheritanceEdges(Rose::Common::Analysis::ClassKeyType clkey, std::function< void(Rose::Common::Analysis::ClassKeyType, Rose::Common::Analysis::ClassKeyType, bool)> fn) const override
calls the callback function fn(derived, base, isvirtual) for all direct base classes of clkey
void extractFromProject(Rose::Common::Analysis::ClassAnalysis &classes, Rose::Common::Analysis::ASTRootType root) const override
extracts class by walking the AST rooted at root.
int compareNames(Rose::Common::Analysis::FunctionKeyType lhs, Rose::Common::Analysis::FunctionKeyType rhs) const override
compares the source name of the functions lhs and rhs.
Rose::Common::Analysis::FunctionTypeRelation haveSameOrCovariantReturn(const Rose::Common::Analysis::ClassAnalysis &classes, Rose::Common::Analysis::FunctionKeyType basId, Rose::Common::Analysis::FunctionKeyType drvId) const override
tests if drvId has the same or covariant return type with respect to basId
Rose::Common::Analysis::LanguageSpecificFn languageSpecificProcessing() const override
returns JVM-specific class post-processing.
bool canOverride(Rose::Common::Analysis::FunctionKeyType drv, Rose::Common::Analysis::FunctionKeyType bas) const override
applies the access rules of JVMS 5.4.5 to a signature match.
This is a stateless, abstract base class for implementing some functionality required by the class hi...
holds data about all classes in a program
Describes the class-valued type and selected qualifiers of a data member.
Strongly typed wrapper around an abstract pointer-sized analysis key.