cprover
java_types.h
Go to the documentation of this file.
1 /*******************************************************************\
2 
3 Module:
4 
5 Author: Daniel Kroening, kroening@kroening.com
6 
7 \*******************************************************************/
8 
9 
10 #ifndef CPROVER_JAVA_BYTECODE_JAVA_TYPES_H
11 #define CPROVER_JAVA_BYTECODE_JAVA_TYPES_H
12 
13 #include <util/type.h>
14 #include <util/std_types.h>
15 
26 symbol_typet java_classname(const std::string &);
27 
28 reference_typet java_array_type(const char subtype);
29 
30 bool is_reference_type(char t);
31 
32 // i integer
33 // l long
34 // s short
35 // b byte
36 // c character
37 // f float
38 // d double
39 // z boolean
40 // a reference
41 
43 typet java_type_from_string(const std::string &);
44 char java_char_from_type(const typet &type);
45 
48 
49 #endif // CPROVER_JAVA_BYTECODE_JAVA_TYPES_H
The type of an expression.
Definition: type.h:20
char java_char_from_type(const typet &type)
Definition: java_types.cpp:252
bool is_reference_type(char t)
Definition: java_types.cpp:106
typet java_char_type()
Definition: java_types.cpp:44
typet java_double_type()
Definition: java_types.cpp:54
typet java_float_type()
Definition: java_types.cpp:49
typet java_byte_type()
Definition: java_types.cpp:39
typet java_short_type()
Definition: java_types.cpp:34
A reference into the symbol table.
Definition: std_types.h:109
typet java_long_type()
Definition: java_types.cpp:29
typet java_int_type()
Definition: java_types.cpp:19
symbol_typet java_classname(const std::string &)
Definition: java_types.cpp:294
typet java_type_from_string(const std::string &)
Definition: java_types.cpp:152
typet java_bytecode_promotion(const typet &)
Java does not support byte/short return types. These are always promoted.
Definition: java_types.cpp:130
reference_typet java_lang_object_type()
Definition: java_types.cpp:72
The reference type.
Definition: std_types.h:1394
API to type classes.
Base class for all expressions.
Definition: expr.h:46
typet java_boolean_type()
Definition: java_types.cpp:59
typet java_type_from_char(char t)
Definition: java_types.cpp:111
reference_typet java_reference_type(const typet &subtype)
Definition: java_types.cpp:67
reference_typet java_array_type(const char subtype)
Definition: java_types.cpp:77