Package com.sun.jna
Klasse Klass
java.lang.Object
com.sun.jna.Klass
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic <T> T
newInstance
(Class<T> klass) Create a new instance for the givenklass
.
-
Methodendetails
-
newInstance
Create a new instance for the givenklass
. Runtime exceptions thrown from the constructor are rethrown, all other exceptions generated from the reflective call are wrapped into aIllegalArgumentException
and rethrown.- Parameter:
klass
- desired class to instantiate- Gibt zurück:
- the new instance
- Löst aus:
IllegalArgumentException
- if the instantiation failsRuntimeException
- if the constructor forklass
throws a runtime exception
-