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

Method get

src/main/java/pascal/taie/language/type/PrimitiveType.java:61–68  ·  view source on GitHub ↗

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

(String name)

Source from the content-addressed store, hash-verified

59 * @throws IllegalArgumentException if given name is irrelevant to any primitive type.
60 */
61 public static PrimitiveType get(String name) {
62 for (PrimitiveType t : values()) {
63 if (t.name.equals(name)) {
64 return t;
65 }
66 }
67 throw new IllegalArgumentException(name + " is not primitive type");
68 }
69
70 @Override
71 public String getName() {

Callers 2

getTypeMethod · 0.95
getPrimitiveClassMethod · 0.95

Calls 2

valuesMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected