@return the primitive type specified by specific name. @throws IllegalArgumentException if given name is irrelevant to any primitive type.
(char descriptor)
| 68 | * @throws IllegalArgumentException if given name is irrelevant to any primitive type. |
| 69 | */ |
| 70 | public static BaseType of(char descriptor) { |
| 71 | for (BaseType t : values()) { |
| 72 | if (t.descriptor == descriptor) { |
| 73 | return t; |
| 74 | } |
| 75 | } |
| 76 | throw new IllegalArgumentException(descriptor + " is not base type"); |
| 77 | } |
| 78 | |
| 79 | @Override |
| 80 | public String toString() { |