Skip to content

Instantly share code, notes, and snippets.

@tshirtman
Created August 26, 2012 10:21
Show Gist options
  • Select an option

  • Save tshirtman/3476928 to your computer and use it in GitHub Desktop.

Select an option

Save tshirtman/3476928 to your computer and use it in GitHub Desktop.
gabriel@tochange:~/pyjnius$ python
Python 2.7.3 (default, Apr 20 2012, 22:44:07)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from jnius import autoclass
<jnius.JavaStaticMethod object at 0x976502c> False
<jnius.JavaMethod object at 0x976db24> False
<jnius.JavaMethod object at 0x976db6c> False
<jnius.JavaMethod object at 0x976dbb4> False
<jnius.JavaMethod object at 0x976dbfc> False
<jnius.JavaMethod object at 0x976dc44> False
<jnius.JavaMethod object at 0x976dc8c> False
resolve <jnius.JavaStaticMethod object at 0x976502c> java/lang/Class forName False
<jnius.JavaMethod object at 0x976dcd4> False
<jnius.JavaStaticMethod object at 0x976507c> False
<jnius.JavaStaticMethod object at 0x97650cc> False
<jnius.JavaStaticMethod object at 0x976511c> False
<jnius.JavaStaticMethod object at 0x976516c> False
<jnius.JavaStaticMethod object at 0x97651bc> False
<jnius.JavaStaticMethod object at 0x976520c> False
<jnius.JavaStaticMethod object at 0x976525c> False
<jnius.JavaStaticMethod object at 0x97652ac> False
<jnius.JavaStaticMethod object at 0x97652fc> False
<jnius.JavaStaticMethod object at 0x976534c> False
<jnius.JavaStaticMethod object at 0x976539c> False
<jnius.JavaStaticMethod object at 0x97653ec> False
resolve <jnius.JavaStaticMethod object at 0x976507c> java/lang/reflect/Modifier isAbstract False
resolve <jnius.JavaStaticMethod object at 0x97650cc> java/lang/reflect/Modifier isFinal False
resolve <jnius.JavaStaticMethod object at 0x976516c> java/lang/reflect/Modifier isNative False
resolve <jnius.JavaStaticMethod object at 0x976525c> java/lang/reflect/Modifier isPublic False
resolve <jnius.JavaStaticMethod object at 0x976534c> java/lang/reflect/Modifier isSynchronized False
resolve <jnius.JavaStaticMethod object at 0x976511c> java/lang/reflect/Modifier isInterface False
resolve <jnius.JavaStaticMethod object at 0x97653ec> java/lang/reflect/Modifier isVolatile False
resolve <jnius.JavaStaticMethod object at 0x97652fc> java/lang/reflect/Modifier isStrict False
resolve <jnius.JavaStaticMethod object at 0x97652ac> java/lang/reflect/Modifier isStatic False
resolve <jnius.JavaStaticMethod object at 0x976520c> java/lang/reflect/Modifier isProtected False
resolve <jnius.JavaStaticMethod object at 0x97651bc> java/lang/reflect/Modifier isPrivate False
resolve <jnius.JavaStaticMethod object at 0x976539c> java/lang/reflect/Modifier isTransient False
<jnius.JavaMethod object at 0x976dd1c> False
<jnius.JavaMethod object at 0x976dd64> False
<jnius.JavaMethod object at 0x976ddac> False
<jnius.JavaMethod object at 0x976ddf4> False
<jnius.JavaMethod object at 0x976de3c> False
<jnius.JavaMethod object at 0x976de84> False
<jnius.JavaMethod object at 0x976decc> False
<jnius.JavaMethod object at 0x976df14> False
<jnius.JavaMethod object at 0x976df5c> False
<jnius.JavaMethod object at 0x976dfa4> False
<jnius.JavaMethod object at 0x977e02c> False
<jnius.JavaMethod object at 0x977e074> False
<jnius.JavaMethod object at 0x977e0bc> False
<jnius.JavaMethod object at 0x977e104> False
>>> autoclass('java.lang.String')
resolve <jnius.JavaMethod object at 0x976dc8c> java/lang/Class getName False
resolve <jnius.JavaMethod object at 0x976db6c> java/lang/Class getMethods False
resolve <jnius.JavaMethod object at 0x976dbfc> java/lang/Class getDeclaredMethods False
resolve <jnius.JavaMethod object at 0x976db24> java/lang/Class getConstructors False
resolve <jnius.JavaMethod object at 0x976dc44> java/lang/Class getDeclaredFields False
resolve <jnius.JavaMethod object at 0x976dbb4> java/lang/Class getFields False
resolve <jnius.JavaMethod object at 0x977e104> java/lang/reflect/Constructor isVarArgs False
resolve <jnius.JavaMethod object at 0x977e0bc> java/lang/reflect/Constructor getModifiers False
resolve <jnius.JavaMethod object at 0x977e02c> java/lang/reflect/Constructor toString False
resolve <jnius.JavaMethod object at 0x977e074> java/lang/reflect/Constructor getParameterTypes False
File "<stdin>", line 1, in <module>
File "jnius/reflect.py", line 115, in autoclass
for constructor in c.getConstructors():
Exception Exception: Exception('set_resolve_info already called <jnius.JavaMethod object at 0x977e104> java/lang/reflect/Constructor isVarArgs',) in 'jnius.JavaMethod.set_resolve_info' ignored
File "<stdin>", line 1, in <module>
File "jnius/reflect.py", line 115, in autoclass
for constructor in c.getConstructors():
Exception Exception: Exception('set_resolve_info already called <jnius.JavaMethod object at 0x977e0bc> java/lang/reflect/Constructor getModifiers',) in 'jnius.JavaMethod.set_resolve_info' ignored
File "<stdin>", line 1, in <module>
File "jnius/reflect.py", line 115, in autoclass
for constructor in c.getConstructors():
Exception Exception: Exception('set_resolve_info already called <jnius.JavaMethod object at 0x977e02c> java/lang/reflect/Constructor toString',) in 'jnius.JavaMethod.set_resolve_info' ignored
File "<stdin>", line 1, in <module>
File "jnius/reflect.py", line 115, in autoclass
for constructor in c.getConstructors():
Exception Exception: Exception('set_resolve_info already called <jnius.JavaMethod object at 0x977e074> java/lang/reflect/Constructor getParameterTypes',) in 'jnius.JavaMethod.set_resolve_info' ignored
File "<stdin>", line 1, in <module>
File "jnius/reflect.py", line 115, in autoclass
for constructor in c.getConstructors():
Exception Exception: Exception('set_resolve_info already called <jnius.JavaMethod object at 0x977e104> java/lang/reflect/Constructor isVarArgs',) in 'jnius.JavaMethod.set_resolve_info' ignored
File "<stdin>", line 1, in <module>
File "jnius/reflect.py", line 115, in autoclass
for constructor in c.getConstructors():
Exception Exception: Exception('set_resolve_info already called <jnius.JavaMethod object at 0x977e0bc> java/lang/reflect/Constructor getModifiers',) in 'jnius.JavaMethod.set_resolve_info' ignored
File "<stdin>", line 1, in <module>
File "jnius/reflect.py", line 115, in autoclass
for constructor in c.getConstructors():
Exception Exception: Exception('set_resolve_info already called <jnius.JavaMethod object at 0x977e02c> java/lang/reflect/Constructor toString',) in 'jnius.JavaMethod.set_resolve_info' ignored
File "<stdin>", line 1, in <module>
File "jnius/reflect.py", line 115, in autoclass
for constructor in c.getConstructors():
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment