Description Usage Arguments Details Value Note Author(s) References See Also Examples
This takes the partially qualified name of a Java class
and queries the Omegahat class list to resolve the
appropriate Java class. This then returns the name
(via the Java method getName()
) of
that class with all the package information in the name.
1 | expandClassName(klass)
|
klass |
the partially qualified name of the Java class which is to be resolved. |
This uses the Omegahat evaluator's class list, including the locally added classes (i.e. those not in the Java classpath, but added to the Omegahat class search path) and the dynamically generated and loaded classes.
a character vector of length 1 containing the fully qualified name of the Java class.
Note that this causes the Java class to be loaded.
If one wanted to simply determine from which Java package
a partially qualified class name would be loaded without
loading it (e.g. one might want to test whether Vector
is from the antlr package or the core java.util
package)
then one should loop over the evaluator's class list
(classLists()
) object and use its
matchesClassName
method.
Duncan Temple Lang
http://www.omegahat.org/RSJava
1 | expandClassName("util.Vector")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.