MCPcopy Create free account
hub / github.com/LFYSec/MScan / of

Method of

src/main/java/pascal/taie/language/generics/BaseType.java:70–77  ·  view source on GitHub ↗

@return the primitive type specified by specific name. @throws IllegalArgumentException if given name is irrelevant to any primitive type.

(char descriptor)

Source from the content-addressed store, hash-verified

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() {

Callers 1

getMethod · 0.95

Calls 1

valuesMethod · 0.65

Tested by

no test coverage detected