@copy(copyright.tjh) @include(header.tjh) @include(subinc/subhdr.tjh) package PACKAGE_ROOT; /** * Class ComplexClass: * * A software entity with several fields and collections. */ import PACKAGE_ROOT.subpackage.SimpleClass; import java.util.Date; public class ComplexClass extends SimpleClass { |--- | This is a tjpp comment that will not appear in the | generated Java file. The "%" in the lines below is | tjpp's line-concatenation operator. |--- @ enumeration(Color,% RED, % GREEN, % BLUE % ) @ property(boolean, a_bool) @ property(int, a_color) @ property(double, a_float) @ property(int, a_range) @ property(String, a_string) @ property(Date, a_time) @ property(int, a_unique_id, readonly) @ property(int, an_int, readonly) @ property(int, another_color, readonly) @ property(Object, a_thing) @ property(int [][], an_int_array) @ getters @ setters /** * Method 'A function' */ public boolean aFunction ( int aRange, int aColor ) { @ trace(aRange,aColor) @ assert(aRange >= 0 && aRange < 20000) return true; } /** * Method 'A function' */ public double aFunction ( int anInt ) { : TRACE_SWITCH=off @ trace(anInt) double d = $my_macros/perc(anInt,1000); : TRACE_SWITCH=on @ trace(d) return d; } @ to_string }