Home > freetb4matlab > java > javaArray.m

javaArray

PURPOSE ^

%

SYNOPSIS ^

function [ ret ] = javaArray (class_name, varargin)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function file} {@var{a} =} javaArray (@var{class},@var{[M,N,...]})
% @deftypefnx {Function file} {@var{a} =} javaArray (@var{class},@var{M},@var{N},...)
%
% Creates a Java array of size [@var{M},@var{N},...] with elements of
% class @var{class}. @var{class} can be a Java object representing a class
% or a string containing the fully qualified class name.
%
% The generated array is uninitialized, all elements are set to null
% if @var{class} is a reference type, or to a default value (usually 0)
% if @var{class} is a primitive type.
%
% @example
%   a = javaArray ('java.lang.String', 2, 2);
%   a(1,1) = 'Hello';
% @end example
%
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003