Skip navigation links
http://www.jsweet.org

Package org.jsweet.transpiler.extension

This package contains the basic extensions of the JSweet transpiler, as printer adapters.

See: Description

Package org.jsweet.transpiler.extension Description

This package contains the basic extensions of the JSweet transpiler, as printer adapters.

A printer adapter is an object that can override the JSweet's default printer. The programmer needs to subclass the PrinterAdapter class and use a factory that creates an instance of this subclass. Printer adapters shall avoid using the javac API in order to rely on public and stable interfaces, such as the javax.lang.model and org.jsweet.transpiler.model.

Printer adapters are chainable (decorator pattern) and the default behavior defined in PrinterAdapter is to delegate to the parent adapter if any. To enhance reuse of adapters, programmers should use delegation rather than subclassing.

Author:
Renaud Pawlak
Skip navigation links
http://www.jsweet.org

Copyright 2015, Cinchéo SAS - Web site: http://www.jsweet.org