GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
Go to the source code of this file.
Functions | |
DEFUN (__java_init__,,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} java_init ()\n\ Internal function used @strong{only} when debugging Java interface.\n\ Function will directly call initialize_java() to create an instance of a JVM.\n\ @end deftypefn") | |
DEFUN (__java_exit__,,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} java_exit ()\n\ Internal function used @strong{only} when debugging Java interface.\n\ Function will directly call terminate_jvm() to destroy the current JVM\n\ instance.\n\ @end deftypefn") | |
DEFUN (javaObject, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{jobj} =} javaObject (@var{classname})\n\ @deftypefnx {Built-in Function} {@var{jobj} =} javaObject (@var{classname}, @var{arg1}, @dots{})\n\ Create a Java object of class @var{classsname}, by calling the class\n\ constructor with the arguments @var{arg1}, @dots{}\n\ \n\ The first example below creates an uninitialized object,\n\ while the second example supplies an initial argument to the constructor.\n\ \n\ @example\n\ @group\n\ x = javaObject (\"java.lang.StringBuffer\")\n\ x = javaObject (\"java.lang.StringBuffer\", \"Initial string\")\n\ @end group\n\ @end example\n\ \n\ @seealso{javaMethod, javaArray}\n\ @end deftypefn") | |
DEFUN (javaMethod, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{ret} =} javaMethod (@var{methodname}, @var{obj})\n\ @deftypefnx {Built-in Function} {@var{ret} =} javaMethod (@var{methodname}, @var{obj}, @var{arg1}, @dots{})\n\ Invoke the method @var{methodname} on the Java object @var{obj} with the\n\ arguments @var{arg1}, @dots{} For static methods, @var{obj} can be a string\n\ representing the fully qualified name of the corresponding class. The\n\ function returns the result of the method invocation.\n\ \n\ When @var{obj} is a regular Java object, structure-like indexing can be\n\ used as a shortcut syntax. For instance, the two following statements are\n\ equivalent\n\ \n\ @example\n\ @group\n\ ret = javaMethod (\"method1\", x, 1.0, \"a string\")\n\ ret = x.method1 (1.0, \"a string\")\n\ @end group\n\ @end example\n\ \n\ @seealso{methods, javaObject}\n\ @end deftypefn") | |
DEFUN (__java_get__, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{val} =} __java_get__ (@var{obj}, @var{name})\n\ Get the value of the field @var{name} of the Java object @var{obj}. For\n\ static fields, @var{obj} can be a string representing the fully qualified\n\ name of the corresponding class.\n\ \n\ When @var{obj} is a regular Java object, structure-like indexing can be\n\ used as a shortcut syntax. For instance, the two following statements are\n\ equivalent\n\ \n\ @example\n\ @group\n\ __java_get__ (x, \"field1\")\n\ x.field1\n\ @end group\n\ @end example\n\ \n\ @seealso{__java_set__, javaMethod, javaObject}\n\ @end deftypefn") | |
DEFUN (__java_set__, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{obj} =} __java_set__ (@var{obj}, @var{name}, @var{val})\n\ Set the value of the field @var{name} of the Java object @var{obj} to\n\ @var{val}. For static fields, @var{obj} can be a string representing the\n\ fully qualified named of the corresponding Java class.\n\ \n\ When @var{obj} is a regular Java object, structure-like indexing can be\n\ used as a shortcut syntax. For instance, the two following statements are\n\ equivalent\n\ \n\ @example\n\ @group\n\ __java_set__ (x, \"field1\", val)\n\ x.field1 = val\n\ @end group\n\ @end example\n\ \n\ @seealso{__java_get__, javaMethod, javaObject}\n\ @end deftypefn") | |
DEFUN (java2mat, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} java2mat (@var{javaobj})\n\ Undocumented internal function.\n\ @end deftypefn") | |
DEFUN (java_matrix_autoconversion, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{val} =} java_matrix_autoconversion ()\n\ @deftypefnx {Built-in Function} {@var{old_val} =} java_matrix_autoconversion (@var{new_val})\n\ @deftypefnx {Built-in Function} {} java_matrix_autoconversion (@var{new_val}, \"local\")\n\ Query or set the internal variable that controls whether Java arrays are\n\ automatically converted to Octave matrices. The default value is false.\n\ \n\ When called from inside a function with the @qcode{\"local\"} option, the\n\ variable is changed locally for the function and any subroutines it calls. \n\ The original variable value is restored when exiting the function.\n\ @seealso{java_unsigned_autoconversion, debug_java}\n\ @end deftypefn") | |
DEFUN (java_unsigned_autoconversion, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{val} =} java_unsigned_autoconversion ()\n\ @deftypefnx {Built-in Function} {@var{old_val} =} java_unsigned_autoconversion (@var{new_val})\n\ @deftypefnx {Built-in Function} {} java_unsigned_autoconversion (@var{new_val}, \"local\")\n\ Query or set the internal variable that controls how integer classes are\n\ converted when @code{java_matrix_autoconversion} is enabled. When enabled,\n\ Java arrays of class Byte or Integer are converted to matrices of class\n\ uint8 or uint32 respectively. The default value is true.\n\ \n\ When called from inside a function with the @qcode{\"local\"} option, the\n\ variable is changed locally for the function and any subroutines it calls. \n\ The original variable value is restored when exiting the function.\n\ @seealso{java_matrix_autoconversion, debug_java}\n\ @end deftypefn") | |
DEFUN (debug_java, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{val} =} debug_java ()\n\ @deftypefnx {Built-in Function} {@var{old_val} =} debug_java (@var{new_val})\n\ @deftypefnx {Built-in Function} {} debug_java (@var{new_val}, \"local\")\n\ Query or set the internal variable that determines whether extra debugging\n\ information regarding the initialization of the JVM and any Java exceptions\n\ is printed.\n\ \n\ When called from inside a function with the @qcode{\"local\"} option, the\n\ variable is changed locally for the function and any subroutines it calls. \n\ The original variable value is restored when exiting the function.\n\ @seealso{java_matrix_autoconversion, java_unsigned_autoconversion}\n\ @end deftypefn") | |
DEFUN (isjava, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} isjava (@var{x})\n\ Return true if @var{x} is a Java object.\n\ @seealso{class, typeinfo, isa, javaObject}\n\ @end deftypefn") |
DEFUN | ( | __java_init__ | ) |
Definition at line 1979 of file ov-java.cc.
References error(), error_state, and octave_value().
DEFUN | ( | __java_exit__ | ) |
Definition at line 2004 of file ov-java.cc.
References error(), and octave_value().
DEFUN | ( | javaObject | , |
args | |||
) |
Definition at line 2021 of file ov-java.cc.
References octave_java::do_javaObject(), error(), error_state, octave_value_list::length(), octave_value(), print_usage(), and octave_java::thread_jni_env().
DEFUN | ( | javaMethod | , |
args | |||
) |
Definition at line 2082 of file ov-java.cc.
References octave_java::do_javaMethod(), error(), error_state, octave_value_list::length(), octave_value(), print_usage(), and octave_java::thread_jni_env().
DEFUN | ( | __java_get__ | , |
args | |||
) |
Definition at line 2157 of file ov-java.cc.
References octave_java::do_java_get(), error(), error_state, octave_value_list::length(), octave_value(), print_usage(), and octave_java::thread_jni_env().
DEFUN | ( | __java_set__ | , |
args | |||
) |
Definition at line 2219 of file ov-java.cc.
References octave_java::do_java_set(), error(), error_state, octave_value_list::length(), octave_value(), print_usage(), and octave_java::thread_jni_env().
DEFUN | ( | java2mat | , |
args | |||
) |
Definition at line 2281 of file ov-java.cc.
References box_more(), error(), error_state, octave_value_list::length(), octave_value(), print_usage(), octave_java::thread_jni_env(), and octave_java::to_java().
DEFUN | ( | java_matrix_autoconversion | , |
args | , | ||
nargout | |||
) |
Definition at line 2317 of file ov-java.cc.
References error(), octave_value(), and SET_INTERNAL_VARIABLE.
DEFUN | ( | java_unsigned_autoconversion | , |
args | , | ||
nargout | |||
) |
Definition at line 2339 of file ov-java.cc.
References error(), octave_value(), and SET_INTERNAL_VARIABLE.
DEFUN | ( | debug_java | , |
args | , | ||
nargout | |||
) |
Definition at line 2363 of file ov-java.cc.
References error(), octave_value(), and SET_INTERNAL_VARIABLE.
DEFUN | ( | isjava | , |
args | |||
) |
Definition at line 2388 of file ov-java.cc.
References octave_value_list::length(), and print_usage().