getClass method (LotusScript® Language)
This method returns a reference to a Java™ class.
Defined in
Syntax
Set JavaClass = javasession .getClass( ClassName $ )
Parameters
ClassName$
String. The name of the class you would like to retrieve. For example, "java/lang/Integer."
Usage
This method will return a Java™ class reference with which a Java™ object can be created within LotusScript®.
java.lang.String |
example: set MyClass = Session.getClass("java.lang.String") |
---|---|
java/lang/String |
example: set MyClass = Session.getClass("java/lang/String") |
When you use the dot "." notation on the Macintosh, the Mac will return an error that the Class cannot be found. Instead, use the slash "/" notation. The slash "/" notation works on all platforms. Use the slash "/" notation in your applications for multi-platform support.
The nested class name has $ as a separator for nested classes.
Error thrown
"JavaClassNotFound" is thrown if the Java™ class cannot be located.