File tree 2 files changed +17
-12
lines changed
2 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,10 @@ reference_typet java_lang_object_type()
87
87
return java_reference_type (symbol_typet (" java::java.lang.Object" ));
88
88
}
89
89
90
+ // / Construct an array pointer type. It is a pointer to a symbol with identifier
91
+ // / java::array[]. Its ID_C_element_type is set to the corresponding primitive
92
+ // / type, or void* for arrays of references.
93
+ // / \param subtype Character indicating the type of array
90
94
reference_typet java_array_type (const char subtype)
91
95
{
92
96
std::string subtype_str;
@@ -160,13 +164,24 @@ bool is_multidim_java_array_type(const typet &type)
160
164
}
161
165
162
166
// / See above
163
- // / \par parameters: Struct tag 'tag'
164
- // / \return True if the given struct is a Java array
167
+ // / \param tag Tag of a struct
168
+ // / \return True if the given string is a Java array tag, i.e., has a prefix
169
+ // / of java::array[
165
170
bool is_java_array_tag (const irep_idt& tag)
166
171
{
167
172
return has_prefix (id2string (tag), " java::array[" );
168
173
}
169
174
175
+ // / Constructs a type indicated by the given character:
176
+ // / - i integer
177
+ // / - l long
178
+ // / - s short
179
+ // / - b byte
180
+ // / - c character
181
+ // / - f float
182
+ // / - d double
183
+ // / - z boolean
184
+ // / - a reference
170
185
typet java_type_from_char (char t)
171
186
{
172
187
switch (t)
Original file line number Diff line number Diff line change @@ -250,16 +250,6 @@ typet &java_array_element_type(symbol_typet &array_symbol);
250
250
bool is_java_array_type (const typet &type);
251
251
bool is_multidim_java_array_type (const typet &type);
252
252
253
- // i integer
254
- // l long
255
- // s short
256
- // b byte
257
- // c character
258
- // f float
259
- // d double
260
- // z boolean
261
- // a reference
262
-
263
253
typet java_type_from_char (char t);
264
254
typet java_type_from_string (
265
255
const std::string &,
You can’t perform that action at this time.
0 commit comments