<s> from ladon . ladonizer import ladonize <EOL> from ladon . types . ladontype import LadonType <EOL> from ladon . compat import PORTABLE_STRING <EOL> class Person ( LadonType ) : <EOL> first_name = PORTABLE_STRING <EOL> last_name = PORTABLE_STRING <EOL> class TestService ( object ) : <EOL> @ ladonize ( PORTABLE_STRING , PORTABLE_STRING , rtype = Person ) <EOL> def returnComplexType ( self , first_name , last_name ) : <EOL> person = Person ( ) <EOL> person . first_name = first_name <EOL> person . last_name = last_name <EOL> return person <EOL> @ ladonize ( Person , rtype = PORTABLE_STRING ) <EOL> def complexTypeArgument ( self , person ) : <EOL> return '<STR_LIT:U+0020>' . join ( ( person . first_name , person . last_name ) ) <EOL> @ ladonize ( rtype = int ) <EOL> def theAnswer ( self ) : <EOL> return <NUM_LIT> <EOL> @ ladonize ( PORTABLE_STRING , rtype = PORTABLE_STRING ) <EOL> def fault ( self , fault_string ) : <EOL> raise RuntimeError ( fault_string ) </s>
