| Modifier and Type | Field and Description |
|---|---|
| public PyStringMap | |
| public String | |
| public PackageManager | __mgr__
(Control) package manager whose hierarchy contains this java pkg |
| public String | |
| public PyStringMap | clsSet
Its keys are the names of statically known classes. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PyObject | __dir__()
Overrides org. Equivalent to the standard Python __dir__ method. |
| public PyObject | __findattr_ex__(String name)
Overrides org. Attribute lookup hook. |
| public void | __setattr__(String
the name whose value will be set - must be an interned string . attr, PyObject the value to set this name to value)Overrides org. A variant of the __setattr__ method which accepts a String as the key. |
| public PyObject | |
| public PyJavaPackage | |
| public PyJavaPackage | Returns: thePyJavaPackage of the package nameda package name name, String becomes the jarfile)__file__ attributeFrom a dotted package name |
| public void | addPlaceholders(Collection<String>
the names as strings classes)Add the classes named to this package, but with only a placeholder value. |
| public PyObject | Returns: list of member namesUsed for 'from xyz import *', dynamically dir pkg filling up __dict__. |
| public boolean | refersDirectlyTo(PyObject ob)
Implements org. Optional operation. |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| public int | traverse(Visitproc visit, Object arg)
Implements org. Traverses all directly contained |
| __dict__ | back to summary |
|---|---|
| public PyStringMap __dict__ | |
| __file__ | back to summary |
|---|---|
| public String __file__ | |
| __mgr__ | back to summary |
|---|---|
| public PackageManager __mgr__ (Control) package manager whose hierarchy contains this java pkg | |
| __name__ | back to summary |
|---|---|
| public String __name__ | |
| clsSet | back to summary |
|---|---|
| public PyStringMap clsSet Its keys are the names of statically known classes. E.g. from jars pre-scan. | |
| PyJavaPackage | back to summary |
|---|---|
| public PyJavaPackage(String name) | |
| PyJavaPackage | back to summary |
|---|---|
| public PyJavaPackage(String name, String jarfile) | |
| PyJavaPackage | back to summary |
|---|---|
| public PyJavaPackage(String name, PackageManager mgr) | |
| PyJavaPackage | back to summary |
|---|---|
| public PyJavaPackage(String name, PackageManager mgr, String jarfile) | |
| __dir__ | back to summary |
|---|---|
| public PyObject __dir__() Overrides org. Doc from org. Equivalent to the standard Python __dir__ method. | |
| __findattr_ex__ | back to summary |
|---|---|
| public PyObject __findattr_ex__(String name) Overrides org. Doc from org. Attribute lookup hook. If the attribute is not found, null may be returned or a
Py.AttributeError can be thrown, whatever is more correct, efficient and/or convenient for
the implementing class.
Client code should use | |
| __setattr__ | back to summary |
|---|---|
| public void __setattr__(String attr, PyObject value) Overrides org. Doc from org. A variant of the __setattr__ method which accepts a String as the key. This String must be interned.
| |
| addClass | back to summary |
|---|---|
| public PyObject addClass(String name, Class<?> c) | |
| addPackage | back to summary |
|---|---|
| public PyJavaPackage addPackage(String name) | |
| addPackage | back to summary |
|---|---|
| public PyJavaPackage addPackage(String name, String jarfile) From a dotted package name the | |
| addPlaceholders | back to summary |
|---|---|
| public void addPlaceholders(Collection<String> classes) Add the classes named to this package, but with only a placeholder value. These names are statically known, typically from processing JAR files on the class path.
| |
| fillDir | back to summary |
|---|---|
| public PyObject fillDir() Used for 'from xyz import *', dynamically dir pkg filling up __dict__. It uses
| |
| refersDirectlyTo | back to summary |
|---|---|
| public boolean refersDirectlyTo(PyObject ob) Implements org. Doc from org. Optional operation.
Should only be implemented if it is more efficient
than calling
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| traverse | back to summary |
|---|---|
| public int traverse(Visitproc visit, Object arg) Implements org. Doc from org. Traverses all directly contained
| |