Package com.sun.jna

Klasse Klass

java.lang.Object
com.sun.jna.Klass

abstract class Klass extends Object
  • Methodendetails

    • newInstance

      public static <T> T newInstance(Class<T> klass)
      Create a new instance for the given klass. Runtime exceptions thrown from the constructor are rethrown, all other exceptions generated from the reflective call are wrapped into a IllegalArgumentException and rethrown.
      Parameter:
      klass - desired class to instantiate
      Gibt zurück:
      the new instance
      Löst aus:
      IllegalArgumentException - if the instantiation fails
      RuntimeException - if the constructor for klass throws a runtime exception