15 #ifndef CPROVER_JAVA_TESTING_UTILS_REQUIRE_TYPE_H
16 #define CPROVER_JAVA_TESTING_UTILS_REQUIRE_TYPE_H
27 #if defined(__GNUC__) && __GNUC__ >= 14
67 typedef std::initializer_list<expected_type_argumentt>
84 const std::optional<struct_tag_typet> &expect_subtype);
93 const typet &class_type,
94 const std::initializer_list<irep_idt> &type_variables);
100 const typet &class_type,
101 const std::initializer_list<irep_idt> &type_parameters);
107 const typet &class_type,
108 const std::initializer_list<irep_idt> &implicit_type_variables);
115 const typet &class_type,
116 const std::initializer_list<irep_idt> &implicit_type_variables);
125 const std::string &identifier);
129 const std::string &identifier,
137 const std::vector<std::string> &expected_identifiers);
dstringt has one field, an unsigned integer no which is an index into a static table of strings.
std::vector< java_lambda_method_handlet > java_lambda_method_handlest
Class to hold a class with generics, extends the java class type with a vector of java generic type p...
Reference that points to a java_generic_parameter_tagt.
Class to hold type with generic type arguments, for example java.util.List in either a reference of t...
Reference that points to a java_generic_struct_tag_typet.
Type to hold a Java class that is implicitly generic, e.g., an inner class of a generic outer class o...
The pointer type These are both 'bitvector_typet' (they have a width) and 'type_with_subtypet' (they ...
A struct tag type, i.e., struct_typet with an identifier.
Structure type, corresponds to C style structs.
The type of an expression, extends irept.
java_implicitly_generic_class_typet require_java_implicitly_generic_class(const typet &class_type)
Verify that a class is a valid java implicitly generic class.
class_typet require_incomplete_class(const typet &class_type)
Checks that the given type is an incomplete class.
const struct_tag_typet & require_struct_tag(const typet &type, const irep_idt &identifier="")
Verify a given type is a symbol type, optionally with a specific identifier.
pointer_typet require_pointer_to_tag(const typet &type, const irep_idt &identifier=irep_idt())
code_typet::parametert require_parameter(const code_typet &function_type, const irep_idt ¶m_name)
Verify that a function has a parameter of a specific name.
java_lambda_method_handlest require_lambda_method_handles(const java_class_typet &class_type, const std::vector< std::string > &expected_identifiers)
Verify that the lambda method handles of a class match the given expectation.
java_generic_typet require_java_generic_type(const typet &type)
Verify a given type is a java_generic_type.
std::initializer_list< expected_type_argumentt > expected_type_argumentst
class_typet require_complete_class(const typet &class_type)
Checks that the given type is a complete class.
java_class_typet::java_lambda_method_handlest java_lambda_method_handlest
java_generic_parametert require_java_generic_parameter(const typet &type)
Verify a given type is a java_generic_parameter, e.g., T
java_class_typet require_complete_java_non_generic_class(const typet &class_type)
Verify that a class is a complete, valid nongeneric java class.
java_generic_class_typet require_java_generic_class(const typet &class_type)
Verify that a class is a valid java generic class.
java_generic_class_typet require_complete_java_generic_class(const typet &class_type)
Verify that a class is a complete, valid java generic class.
const typet & require_java_non_generic_type(const typet &type, const std::optional< struct_tag_typet > &expect_subtype)
Test a type to ensure it is not a java generics type.
java_generic_struct_tag_typet require_java_generic_struct_tag_type(const typet &type, const std::string &identifier)
Verify a given type is a java generic symbol type.
java_class_typet require_java_non_generic_class(const typet &class_type)
Verify that a class is a valid nongeneric java class.
code_typet require_code(const typet &type)
Checks a type is a code_type (i.e.
java_implicitly_generic_class_typet require_complete_java_implicitly_generic_class(const typet &class_type)
Verify that a class is a complete, valid java implicitly generic class.
java_method_typet require_java_method(const typet &type)
Checks a type is a java_method_typet (i.e.
pointer_typet require_pointer(const typet &type, const std::optional< typet > &subtype)
Checks a type is a pointer type optionally with a specific subtype.
java_class_typet::componentt require_component(const java_class_typet &java_class_type, const irep_idt &component_name)
Checks that a class has a component with a specific name.