an extension of Java with incomplete objects. This extension is based on the definition of specific annotations (thus the Java grammar is not extended). It provides a preprocessor that, given a program that uses our special annotations (for incomplete classes) and generates standard Java classes. Incomplete Objects The programmer, besides standard classes, can define incomplete classes whose instances are incomplete objects that can be composed in an object-based fashion. Hence, in our language it is possible: 1. to instantiate standard classes, obtaining fully-fledged objects ready to be used; 2. to instantiate incomplete classes, obtaining incomplete objects that can be composed (by object composition) with complete objects, thus yielding new complete objects at run-time; 3. in turn, to use a complete object obtained by composition for composing with other incomplete objects. .
Object composition
BETTINI, LORENZO;BONO, Viviana;
2010-01-01
Abstract
an extension of Java with incomplete objects. This extension is based on the definition of specific annotations (thus the Java grammar is not extended). It provides a preprocessor that, given a program that uses our special annotations (for incomplete classes) and generates standard Java classes. Incomplete Objects The programmer, besides standard classes, can define incomplete classes whose instances are incomplete objects that can be composed in an object-based fashion. Hence, in our language it is possible: 1. to instantiate standard classes, obtaining fully-fledged objects ready to be used; 2. to instantiate incomplete classes, obtaining incomplete objects that can be composed (by object composition) with complete objects, thus yielding new complete objects at run-time; 3. in turn, to use a complete object obtained by composition for composing with other incomplete objects. .I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.