If I enter a class name of a class that doesn't have a "new classname()" constructor (e.g. "lotus.domino.local.Item"), the API Inspector returns an error message. Using the java.lang.Class class it is possible to retrieve the information for these classes also:
// Test expression as Class name
try {
expressionClass = eval( 'new ' + expression + '()' ).getClass();<br/>
} catch( e ){
expressionClass = java.lang.Class.forName(expression);<br/>
}