comparison libinterp/octave-value/ov-java.h @ 20063:107130a0490c

isa: check parent class of java objects (bug #42702) * libinterp/octave-value/ov-java.h, libinterp/octave-value/ov-java.cc (octave_java::is_instance_of): implement method since the one in the parent octave_class is not able to handle java. * libinterp/octave-value/ov-class.cc: add tests.
author Carnë Draug <carandraug@octave.org>
date Mon, 06 Apr 2015 04:55:56 +0100
parents 76478d2da117
children 302e48c2de5d
comparison
equal deleted inserted replaced
20062:70bb0bd4a53f 20063:107130a0490c
137 std::string java_class_name (void) const { return java_classname; } 137 std::string java_class_name (void) const { return java_classname; }
138 138
139 octave_base_value* clone (void) const { return new octave_java (*this); } 139 octave_base_value* clone (void) const { return new octave_java (*this); }
140 octave_base_value* empty_clone (void) const { return new octave_java (); } 140 octave_base_value* empty_clone (void) const { return new octave_java (); }
141 141
142 bool is_instance_of (const std::string&) const;
143
142 bool is_defined (void) const { return true; } 144 bool is_defined (void) const { return true; }
143 145
144 bool is_map (void) const { return false; } 146 bool is_map (void) const { return false; }
145 147
146 bool is_java (void) const { return true; } 148 bool is_java (void) const { return true; }