public static PPrimitive findByName ( String name ) { switch ( name ) { case "void" : return VOID ; case "bool" : return BOOL ; case "byte" : case "i8" : return BYTE ; case "i16" : return I16 ; case "i32" : return I32 ; case "i64" : return I64 ; case "double" : return DOUBLE ; case "string" : return STRING ; case "binary" : return BINARY ; } return null ; }
Find primitive by name .