1 /* varobj support for Java.
3 Copyright (C) 1999-2014 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 (struct varobj *var)
26 return cplus_varobj_ops.number_of_children (var);
30 java_name_of_variable (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 (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 (struct varobj *child)
75 java_value_of_child (struct varobj *parent, int index)
77 return cplus_varobj_ops.value_of_child (parent, index);
81 java_type_of_child (struct varobj *parent, int index)
83 return cplus_varobj_ops.type_of_child (parent, index);
87 java_value_of_variable (struct varobj *var, enum varobj_display_formats format)
89 return cplus_varobj_ops.value_of_variable (var, format);
92 /* varobj operations for java. */
94 const struct lang_varobj_ops java_varobj_ops =
96 java_number_of_children,
97 java_name_of_variable,
99 java_path_expr_of_child,
102 java_value_of_variable,
103 varobj_default_value_is_changeable_p,
104 NULL, /* value_has_mutated */
105 varobj_default_is_path_expr_parent