1 /* varobj support for Java.
3 Copyright (C) 1999-2016 Free Software Foundation, Inc.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
24 java_number_of_children (const struct varobj *var)
26 return cplus_varobj_ops.number_of_children (var);
30 java_name_of_variable (const struct varobj *parent)
34 name = cplus_varobj_ops.name_of_variable (parent);
35 /* If the name has "-" in it, it is because we
36 needed to escape periods in the name... */
50 java_name_of_child (const struct varobj *parent, int index)
54 name = cplus_varobj_ops.name_of_child (parent, index);
55 /* Escape any periods in the name... */
69 java_path_expr_of_child (const struct varobj *child)
75 java_value_of_child (const struct varobj *parent, int index)
77 return cplus_varobj_ops.value_of_child (parent, index);
81 java_type_of_child (const struct varobj *parent, int index)
83 return cplus_varobj_ops.type_of_child (parent, index);
87 java_value_of_variable (const struct varobj *var,
88 enum varobj_display_formats format)
90 return cplus_varobj_ops.value_of_variable (var, format);
93 /* varobj operations for java. */
95 const struct lang_varobj_ops java_varobj_ops =
97 java_number_of_children,
98 java_name_of_variable,
100 java_path_expr_of_child,
103 java_value_of_variable,
104 varobj_default_value_is_changeable_p,
105 NULL, /* value_has_mutated */
106 varobj_default_is_path_expr_parent