Package com.sun.jna
Klasse Klass
java.lang.Object
com.sun.jna.Klass
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic <T> TnewInstance(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 aIllegalArgumentExceptionand rethrown.- Parameter:
klass- desired class to instantiate- Gibt zurück:
- the new instance
- Löst aus:
IllegalArgumentException- if the instantiation failsRuntimeException- if the constructor forklassthrows a runtime exception
-