Mercurial > octave-antonio
comparison scripts/deprecated/javamethods.m @ 19833:9fc020886ae9
maint: Clean up m-files to follow Octave coding conventions.
Try to trim long lines to < 80 chars.
Use '##' for single line comments.
Use '(...)' around tests for if/elseif/switch/while.
Abut cell indexing operator '{' next to variable.
Abut array indexing operator '(' next to variable.
Use space between negation operator '!' and following expression.
Use two newlines between endfunction and start of %!test or %!demo code.
Remove unnecessary parens grouping between short-circuit operators.
Remove stray extra spaces (typos) between variables and assignment operators.
Remove stray extra spaces from ends of lines.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 23 Feb 2015 14:54:39 -0800 |
parents | e124ae274013 |
children | bcf0a288aa6c |
comparison
equal
deleted
inserted
replaced
19832:a1acca0c2216 | 19833:9fc020886ae9 |
---|---|
18 | 18 |
19 ## -*- texinfo -*- | 19 ## -*- texinfo -*- |
20 ## @deftypefn {Function File} {} javamethods (@var{javaobj}) | 20 ## @deftypefn {Function File} {} javamethods (@var{javaobj}) |
21 ## @deftypefnx {Function File} {} javamethods ("@var{classname}") | 21 ## @deftypefnx {Function File} {} javamethods ("@var{classname}") |
22 ## @deftypefnx {Function File} {@var{mtd_names} =} javamethods (@dots{}) | 22 ## @deftypefnx {Function File} {@var{mtd_names} =} javamethods (@dots{}) |
23 ## Return the methods of a Java object or Java class in the form of a cell | 23 ## Return the methods of a Java object or Java class in the form of a cell |
24 ## array of strings. If no output is requested, print the result to the | 24 ## array of strings. If no output is requested, print the result to the |
25 ## standard output. | 25 ## standard output. |
26 ## @seealso{methods, fieldnames, javaMethod, javaObject} | 26 ## @seealso{methods, fieldnames, javaMethod, javaObject} |
27 ## @end deftypefn | 27 ## @end deftypefn |
28 | 28 |
32 if (! warned) | 32 if (! warned) |
33 warned = true; | 33 warned = true; |
34 warning ("Octave:deprecated-function", | 34 warning ("Octave:deprecated-function", |
35 "javamethods is obsolete and will be removed from a future version of Octave, please use methods instead"); | 35 "javamethods is obsolete and will be removed from a future version of Octave, please use methods instead"); |
36 endif | 36 endif |
37 | 37 |
38 if (nargin != 1) | 38 if (nargin != 1) |
39 print_usage (); | 39 print_usage (); |
40 endif | 40 endif |
41 | 41 |
42 cls_methods = javaMethod ("getMethods", "org.octave.ClassHelper", classname); | 42 cls_methods = javaMethod ("getMethods", "org.octave.ClassHelper", classname); |