expandClassName: The fully qualified name of a Java class

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

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.

Usage

1

Arguments

klass

the partially qualified name of the Java class which is to be resolved.

Details

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.

Value

a character vector of length 1 containing the fully qualified name of the Java class.

Note

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.

Author(s)

Duncan Temple Lang

References

http://www.omegahat.org/RSJava

See Also

.JClass

Examples

1
 expandClassName("util.Vector")

SJava documentation built on Oct. 5, 2016, 4:17 a.m.

Related to expandClassName in SJava...