MCPcopy Create free account
hub / github.com/ReadyTalk/avian / getSimpleName

Method getSimpleName

classpath/java/lang/Class.java:124–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122 }
123
124 public String getSimpleName() {
125 if ((vmClass.vmFlags & PrimitiveFlag) != 0) {
126 return getName();
127 } else if (isArray()) {
128 return getComponentType().getSimpleName() + "[]";
129 } else {
130 String name = getCanonicalName();
131 int index = name.lastIndexOf('.');
132 if (index >= 0) {
133 return name.substring(index + 1);
134 } else {
135 return name;
136 }
137 }
138 }
139
140 public T newInstance()
141 throws IllegalAccessException, InstantiationException

Callers 1

toStringMethod · 0.80

Calls 6

getNameMethod · 0.95
isArrayMethod · 0.95
getComponentTypeMethod · 0.95
getCanonicalNameMethod · 0.95
lastIndexOfMethod · 0.95
substringMethod · 0.95

Tested by

no test coverage detected