package yokohama.unit.ast_junit;

import lombok.Value;
import yokohama.unit.ast.Kind;

@Value
public class PrimitiveType implements NonArrayType {
    private Kind kind;

    @Override
    public String getText() {
        return kind.name().toLowerCase();
    }

    @Override
    public <T> T accept(NonArrayTypeVisitor<T> visitor) {
        return visitor.visitPrimitiveType(this);
    }
}

@@ -267,24 +267,974 @@
 ;%0D%0A    %7D%0D%0A%0D%0A
+    public ClassType box() %7B%0D%0A        switch (kind) %7B%0D%0A            case BOOLEAN:%0D%0A                return new ClassType(%22java.lang.Boolean%22, Span.dummySpan());%0D%0A            case BYTE:%0D%0A                return new ClassType(%22java.lang.Byte%22, Span.dummySpan());%0D%0A            case SHORT:%0D%0A                return new ClassType(%22java.lang.Short%22, Span.dummySpan());%0D%0A            case INT:%0D%0A                return new ClassType(%22java.lang.Integer%22, Span.dummySpan());%0D%0A            case LONG:%0D%0A                return new ClassType(%22java.lang.Long%22, Span.dummySpan());%0D%0A            case CHAR:%0D%0A                return new ClassType(%22java.lang.Character%22, Span.dummySpan());%0D%0A            case FLOAT:%0D%0A                return new ClassType(%22java.lang.Float%22, Span.dummySpan());%0D%0A            case DOUBLE:%0D%0A                return new ClassType(%22java.lang.Double%22, Span.dummySpan());%0D%0A        %7D%0D%0A        throw new RuntimeException(%22should not reach here%22);%0D%0A    %7D%0D%0A%0D%0A
     @Overrid

Add box method