MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / newInstance

Method newInstance

vm/JavaAPI/src/java/lang/Class.java:189–195  ·  view source on GitHub ↗

Creates a new instance of a class.

()

Source from the content-addressed store, hash-verified

187 * Creates a new instance of a class.
188 */
189 public java.lang.Object newInstance() throws java.lang.InstantiationException, java.lang.IllegalAccessException {
190 Object o = newInstanceImpl();
191 if(o == null) {
192 throw new InstantiationException();
193 }
194 return o;
195 }
196
197 private native java.lang.Object newInstanceImpl();
198

Callers 9

populateFromMapMethod · 0.95
fromXmlMethod · 0.95
readObjectMethod · 0.95
createComponentTypeMethod · 0.95
createMethod · 0.95
updateThemePreviewMethod · 0.95
startMIDletMethod · 0.95
getDirectoryChooserMethod · 0.95

Calls 1

newInstanceImplMethod · 0.95

Tested by

no test coverage detected