tcl.pkg.java
Class JavaInvoke

java.lang.Object
  extended by tcl.pkg.java.JavaInvoke

public class JavaInvoke
extends Object

This class implements the common routines used by the java::* commands to create Java objects, call Java methods and access fields and properties. It also has auxiliary routines for converting between TclObject's and Java Object's.


Constructor Summary
JavaInvoke()
           
 
Method Summary
static Class getClassByName(Interp interp, String clsName)
          Returns Class object identified by the string name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaInvoke

public JavaInvoke()
Method Detail

getClassByName

public static Class getClassByName(Interp interp,
                                   String clsName)
                            throws TclException
Returns Class object identified by the string name. We allow abbreviation of the java.lang.* class if there is no ambiguity: e.g., if there is no class whose fully qualified name is "String", then "String" means java.lang.String. Inner classes are supported both with fully qualified names and imported class names.

Parameters:
interp - current interpreter
clsName - string name of the class
Returns:
Class object for the class
Throws:
TclException


Copyright © 2015. All rights reserved.