VarType (int family) { return switch (family) { case CodeConstants.TYPE_FAMILY_BOOLEAN -> VARTYPE_BOOLEAN; case CodeConstants.TYPE_FAMILY_INTEGER -> VARTYPE_BYTECHAR; case CodeConstants.TYPE_FAMILY_OBJECT -> VARTYPE_NULL; case CodeConstants.TYPE_FAMILY_FLOAT -> VARTYPE_FLOAT; case CodeConstants.TYPE_FAMILY_LONG -> VARTYPE_LONG; case CodeConstants.TYPE_FAMILY_DOUBLE -> VARTYPE_DOUBLE; case CodeConstants.TYPE_FAMILY_UNKNOWN -> VARTYPE_UNKNOWN; default -> throw new IllegalArgumentException("Invalid type family: " + family); }; }