APLX Help : Help on APL language : System Functions & Variables : ⎕GETCLASS Get reference to named class
|
|
|
|
|
The system function The left argument is a character vector which specifies the environment in which the class exists, in the same format as for ⎕GETCLASS 'Point'
{Point}
(⎕GETCLASS 'Point').⎕NL 2
X
Y
Z
In this Java example, we fetch a reference to the class TimeZone, which can then be used to call a static method. tzclass←'java' ⎕GETCLASS 'java.util.TimeZone'
tzclass.⎕CLASSNAME
java:java.util.TimeZone
tz←tzclass.getTimeZone 'America/Los_Angeles'
Note: If you are creating many thousands of instances of an external class, it may be much more efficient to use If you )SAVE a workspace containing references to external classes, the references will be set to |
|
APLX Help : Help on APL language : System Functions & Variables : ⎕GETCLASS Get reference to named class
|
|
Copyright © 1996-2010 MicroAPL Ltd