tcl.pkg.java
Class JavaImportCmd

java.lang.Object
  extended by tcl.pkg.java.JavaImportCmd
All Implemented Interfaces:
Command

public class JavaImportCmd
extends Object
implements Command


Constructor Summary
JavaImportCmd()
           
 
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
 

Constructor Detail

JavaImportCmd

public JavaImportCmd()
Method Detail

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 context
objv - 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 interp
name - 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.