tcl.pkg.java
Class JavaImportCmd
java.lang.Object
tcl.pkg.java.JavaImportCmd
- All Implemented Interfaces:
- Command
public class JavaImportCmd
- extends Object
- implements Command
Method Summary |
void |
cmdProc(Interp interp,
TclObject[] objv)
This procedure is invoked to process the "java::import" Tcl comamnd. |
static String |
getImport(Interp interp,
String name)
This method is invoked can be invoked to query the import system to find
the fully qualified name of a class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaImportCmd
public JavaImportCmd()
cmdProc
public void cmdProc(Interp interp,
TclObject[] objv)
throws TclException
- This procedure is invoked to process the "java::import" Tcl comamnd. See
the user documentation for details on what it does.
- Specified by:
cmdProc
in interface Command
- Parameters:
interp
- The interpreter for setting the results and which contains the
contextobjv
- the argument list for the command; objv[0[ is the command name
itself
- Throws:
TclException
- on any errors- See Also:
Command.cmdProc(tcl.lang.Interp, tcl.lang.TclObject[])
getImport
public static String getImport(Interp interp,
String name)
- This method is invoked can be invoked to query the import system to find
the fully qualified name of a class. See the user documentation for
details on what it does.
- Parameters:
interp
- Current interpname
- Class name to qualify
- Returns:
- Returns the fully qualified name if it was imported. If the class
was not imported then null will be returned.
Copyright © 2015. All rights reserved.