public static TypeKind fromPrimitiveOrVoidTypeChar(char ch){
switch (ch) {
case 'Z':
    return TypeKind.BOOLEAN;
case 'C':
  return TypeKind.CHAR;
case 'F':
return TypeKind.FLOAT;
case 'D':
return TypeKind.DOUBLE;
case 'B':
return TypeKind.BYTE;
case 'S':
return TypeKind.SHORT;
case 'I':
return TypeKind.INT;
case 'J':
return TypeKind.LONG;
case 'V':
return TypeKind.VOID;
}
throw new IllegalArgumentException("unknown primitive or void type character: " + ch);
}

public static TypeKind fromPrimitiveOrVoidTypeChar ( char ch ) { switch ( ch ) { case 'Z' : return TypeKind . BOOLEAN ; case 'C' : return TypeKind . CHAR ; case 'F' : return TypeKind . FLOAT ; case 'D' : return TypeKind . DOUBLE ; case 'B' : return TypeKind . BYTE ; case 'S' : return TypeKind . SHORT ; case 'I' : return TypeKind . INT ; case 'J' : return TypeKind . LONG ; case 'V' : return TypeKind . VOID ; } throw new IllegalArgumentException ( "unknown primitive or void type character: " + ch ) ; }
returns the kind from the character describing a primitive or void .
