Mercurial > hg > octave-nkf
diff scripts/deprecated/java_invoke.m @ 19791:fe689210525c gui-release
maint: Periodic merge of stable to gui-release.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 20 Jan 2015 10:05:42 -0500 (2015-01-20) |
parents | e124ae274013 446c46af4b42 |
children |
line wrap: on
line diff
--- a/scripts/deprecated/java_invoke.m +++ b/scripts/deprecated/java_invoke.m @@ -21,20 +21,20 @@ ## @deftypefnx {Built-in Function} {@var{ret} =} java_invoke (@var{obj}, @var{methodname}, @var{arg1}, @dots{}) ## Invoke the method @var{methodname} on the Java object @var{obj} with the ## arguments @var{arg1}, @dots{} For static methods, @var{obj} can be a -## string representing the fully qualified name of the corresponding class. +## string representing the fully qualified name of the corresponding class. ## The function returns the result of the method invocation. -## +## ## When @var{obj} is a regular Java object, structure-like indexing can be ## used as a shortcut syntax. For instance, the two following statements are ## equivalent -## +## ## @example ## @group ## ret = java_invoke (x, "method1", 1.0, "a string") ## ret = x.method1 (1.0, "a string") ## @end group ## @end example -## +## ## @seealso{javaMethod, javaObject} ## @end deftypefn @@ -46,7 +46,7 @@ warning ("Octave:deprecated-function", "java_invoke is obsolete and will be removed from a future version of Octave, please use javaMethod instead"); endif - + if (nargin < 2) print_usage (); endif