package yokohama.unit.ast_junit;

import lombok.Value;
import org.apache.commons.lang3.StringUtils;

@Value
public class Type {
    private NonArrayType nonArrayType;
    private int dims;

    public static final Type OBJECT = new Type(new ClassType("java.lang.Object", Span.dummySpan()), 0);
    public static final Type THROWABLE = new Type(new ClassType("java.lang.Throwable", Span.dummySpan()), 0);
    public static final Type STRING = new Type(new ClassType("java.lang.String", Span.dummySpan()), 0);
    public static final Type MATCHER = new Type(new ClassType("org.hamcrest.Matcher", Span.dummySpan()), 0);

    public String getText() {
        return nonArrayType.getText() + StringUtils.repeat("[]", dims);
    }
}

@@ -96,16 +96,48 @@
 gUtils;%0D
+%0Aimport yokohama.unit.ast.Kind;%0D
 %0A%0D%0A@Valu
@@ -655,16 +655,94 @@
 )), 0);%0D
+%0A    public static final Type INT = new Type(new PrimitiveType(Kind.INT), 0);%0D
 %0A%0D%0A    p

Add INT constant