org.millscript.millscript.vm
Class ImportJavaClass
java.lang.Object
org.millscript.millscript.vm.ImportJavaClass
public class ImportJavaClass
- extends java.lang.Object
This class imports all available methods and constructors in a specified
Java class into the specified package. The available methods and
constructors are imported as functions. If there are multiple constructors
or methods that take the same number of parameters, they will not be
imported.
The imported constructor function will be called by the name of the class
prefixed with "new". A recognizer function for instances of this class can
be imported called by the name of the class prefixed with "is".
|
Constructor Summary |
ImportJavaClass(java.lang.String className,
Package p)
Constructs an instance to import all methods and constructors in the
specified Java class into the specified package. |
|
Method Summary |
void |
importAll()
Convenience method to import all available constructors and methods. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImportJavaClass
public ImportJavaClass(java.lang.String className,
Package p)
- Constructs an instance to import all methods and constructors in the
specified Java class into the specified package.
- Parameters:
className - the class to import methods and constructors fromp - the package to define the new functions in
importAll
public void importAll()
- Convenience method to import all available constructors and methods.
Copyright © 2001-2007 Open World Ltd. All Rights Reserved.