package ceylon;

public final class Boolean extends Object {
    private final boolean value;

    private Boolean(boolean b) {
        value = b;
    }

    public static ceylon.Boolean instance(boolean b) {
        return new ceylon.Boolean(b);
    }

    @Extension
    public ceylon.String string() {
        return ceylon.String.instance(java.lang.Boolean.toString(value));
    }

    public boolean booleanValue() {
        return value;
    }
}

package ceylon;

public final class Boolean extends Object {
    private final boolean value;

    private Boolean(boolean b) {
        value = b;
    }

    public static ceylon.Boolean instance(boolean b) {
        return new ceylon.Boolean(b);
    }

    @Extension
    public ceylon.String string() {
        return ceylon.String.instance(java.lang.Boolean.toString(value));
    }
}

--- 
+++ 
@@ -15,4 +15,8 @@
     public ceylon.String string() {
         return ceylon.String.instance(java.lang.Boolean.toString(value));
     }
+
+    public boolean booleanValue() {
+        return value;
+    }
 }
Tidy up ClassVisitor.  While statement.
