tcl.pkg.java
Class JavaInvoke
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaInvoke
public JavaInvoke()
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 interpreterclsName
- string name of the class
- Returns:
- Class object for the class
- Throws:
TclException
Copyright © 2015. All rights reserved.