Improves the help rendering for signatures.py

This commit is contained in:
Christopher Neugebauer 2014-09-17 17:50:31 +10:00
parent c222e479fa
commit 422b5b122c
1 changed files with 4 additions and 3 deletions

View File

@ -40,15 +40,16 @@ from . import java_method
''' Type specifiers for primitives '''
class _SignaturePrimitive(object):
class _JavaSignaturePrimitive(object):
_spec = ""
def _MakeSignaturePrimitive(name, spec):
class __Primitive(_SignaturePrimitive):
class __Primitive(_JavaSignaturePrimitive):
''' PyJnius signature for Java %s type ''' % name
_name = name
_spec = spec
__name__ = "j" + name
__Primitive.__name__ = "j" + name
return __Primitive
jboolean = _MakeSignaturePrimitive("boolean", "Z")