unoidl2

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/unoidl2.git/
Log | Files | Refs

commit 37526460d9d2a15419e1a64026a3dec983d54449
parent b7fb9b4490271cb55e52f80d3cf0610e7caa96f8
Author: Tomas Hlavaty <tom@logand.com>
Date:   Wed, 25 Jan 2012 00:53:37 +0100

2java attribute setter can throw

Diffstat:
Munoidl2java.c | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/unoidl2java.c b/unoidl2java.c @@ -534,7 +534,14 @@ static void pr_attribute(Any x) { // (attribute (string) KeyName (readonly)) Any o = cadddr(x); pr(" public abstract "); pp(t); pr(" get"); pp(n); pl("();"); if(NIL == some(readonlyp, o)) { - pr(" public abstract void set"); pp(n); pr("("); pp(t); pl(" x);"); + Any b = caddddr(x); + // (attribute (short) WhiteSpaceTreatment NIL (set ((relative com sun star lang IllegalArgumentException)))) + pr(" public abstract void set"); pp(n); pr("("); pp(t); pr(" x)"); + if(NIL != b && SET == kind(car(b))) { + pr(" throws "); + pp_list(cadr(b), ", "); + } + pl(";"); } }