package greed.model;

/**
 * Greed is good! Cheers!
 */
public class Type {
    private Primitive primitive;
    private int dim;

    public Type(Primitive primitive, int dim) {
        this.primitive = primitive;
        this.dim = dim;
    }

    public Primitive getPrimitive() {
        return primitive;
    }

    public int getDim() {
        return dim;
    }

    public boolean isArray() {
        return dim > 0;
    }

    public boolean isString() {
        return this.primitive == Primitive.STRING;
    }

    public boolean isRealNumber() {
        return this.primitive == Primitive.DOUBLE;
    }
}

@@ -608,10 +608,104 @@
 ;%0A    %7D%0A
+%0A    public boolean isLongInteger() %7B%0A        return this.primitive == Primitive.LONG;%0A    %7D%0A%0A
 %7D%0A

Add .LongInteger field to the Type object so that templates can do specific actions if 64 bits integers are used.