|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.python.core.PyObject org.python.core.PyJavaPackage
A representation of java package.
Nested Class Summary |
Nested classes inherited from class org.python.core.PyObject |
PyObject.ConversionException |
Field Summary | |
PyStringMap |
__dict__
|
java.lang.String |
__file__
|
PackageManager |
__mgr__
(Control) package manager whose hierarchy contains this java pkg. |
java.lang.String |
__name__
|
PyStringMap |
clsSet
Its keys are the names of statically known classes. |
Fields inherited from class org.python.core.PyObject |
exposed_name |
Constructor Summary | |
PyJavaPackage(java.lang.String name)
|
|
PyJavaPackage(java.lang.String name,
PackageManager mgr)
|
|
PyJavaPackage(java.lang.String name,
PackageManager mgr,
java.lang.String jarfile)
|
|
PyJavaPackage(java.lang.String name,
java.lang.String jarfile)
|
Method Summary | |
PyObject |
__dir__()
Equivalent to the standard Python __dir__ method. |
PyObject |
__findattr__(java.lang.String name)
A variant of the __findattr__ method which accepts a Java String as the name.
|
void |
__setattr__(java.lang.String attr,
PyObject value)
A variant of the __setattr__ method which accepts a String as the key. |
PyObject |
addClass(java.lang.String name,
java.lang.Class c)
|
PyObject |
addLazyClass(java.lang.String name)
|
PyJavaPackage |
addPackage(java.lang.String name)
|
PyJavaPackage |
addPackage(java.lang.String name,
java.lang.String jarfile)
|
void |
addPlaceholders(java.lang.String classes)
Add statically known classes. |
PyObject |
fillDir()
Used for 'from xyz import *', dynamically dir pkg filling up __dict__. |
java.lang.String |
safeRepr()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public java.lang.String __name__
public PyStringMap __dict__
public PyStringMap clsSet
public java.lang.String __file__
public PackageManager __mgr__
Constructor Detail |
public PyJavaPackage(java.lang.String name)
public PyJavaPackage(java.lang.String name, java.lang.String jarfile)
public PyJavaPackage(java.lang.String name, PackageManager mgr)
public PyJavaPackage(java.lang.String name, PackageManager mgr, java.lang.String jarfile)
Method Detail |
public PyJavaPackage addPackage(java.lang.String name)
public PyJavaPackage addPackage(java.lang.String name, java.lang.String jarfile)
public PyObject addClass(java.lang.String name, java.lang.Class c)
public PyObject addLazyClass(java.lang.String name)
public void addPlaceholders(java.lang.String classes)
classes
- their names as comma-separated stringpublic PyObject __dir__()
PyObject
__dir__
in class PyObject
public PyObject fillDir()
PackageManager.doDir(org.python.core.PyJavaPackage, boolean, boolean)
implementation furnished by
the control package manager with instatiate true. The package
manager should lazily load classes with addLazyClass(java.lang.String)
in
the package.
public PyObject __findattr__(java.lang.String name)
PyObject
String
as the name.
By default, this method will call __findattr__(PyString
name)
with the appropriate args. The only reason to override
this method is for performance.
Warning: name must be an interned string!!!!!!!!
__findattr__
in class PyObject
name
- the name to lookup in this namespace
must be an interned string .
PyObject.__findattr__(PyString)
public void __setattr__(java.lang.String attr, PyObject value)
PyObject
__setattr__
in class PyObject
attr
- the name whose value will be set -
must be an interned string .value
- the value to set this name toPyObject.__setattr__(PyString, PyObject)
public java.lang.String toString()
toString
in class PyObject
public java.lang.String safeRepr() throws PyIgnoreMethodTag
safeRepr
in class PyObject
PyIgnoreMethodTag
PyObject.safeRepr()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |