Lines Matching defs:ck
91 public FooClass(PackageKind pk, ConstructorKind ck) {
94 source = sourceStub.replace("#P", pk.pkgDecl).replace("#M", ck.mod);
126 for (ConstructorKind ck : ConstructorKind.values()) {
128 compileAndCheck(pk, ck, dk);
134 static void compileAndCheck(PackageKind pk, ConstructorKind ck, DiamondKind dk) throws Exception {
135 FooClass foo = new FooClass(pk, ck);
142 if (el.errors > 0 == check(pk, ck, dk)) {
150 static boolean check(PackageKind pk, ConstructorKind ck, DiamondKind dk) {
152 case A: return ck == ConstructorKind.PUBLIC ||
153 (ck == ConstructorKind.PROTECTED && dk == DiamondKind.ANON);
154 case DEFAULT: return ck != ConstructorKind.PRIVATE;