12.07.2015 Views

JCML - Java Card Modeling Language: Definição e ... - Ifrn

JCML - Java Card Modeling Language: Definição e ... - Ifrn

JCML - Java Card Modeling Language: Definição e ... - Ifrn

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CAPÍTULO 3. JML - JAVA MODELING LANGUAGE 5601 T m(T1 x1, : : :, Tn xn) {02 checkInv$S();03 checkPre$m$S(x1, : : :, xn);04 T rac$result;05 try {06 rac$result = orig$m(x1, :::, xn);07 checkPost$m$S(x1, : : :, xn, rac$result);08 return rac$result;09 }10 catch (JMLEntryPreconditionError rac$e) {11 throw new JMLInternalPreconditionError(rac$e);12 }13 catch (JMLAssertionError rac$e) {14 throw rac$e;15 }16 catch (Throwable rac$e) {17 checkXPost$m$S(x1, : : :, xn, rac$e);18 }19 finally {20 if (/* no postcondition violation? */) {21 checkInv$S();22 checkHC$S();23 }24 }25 }Figura 3.16: Estrutura do método wrapper [9].Figura 3.17: Abordagem Wrapper - Controle de Fluxo.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!