Class NativeRuntime.TypeDelegate

  • Enclosing class:
    NativeRuntime

    private static final class NativeRuntime.TypeDelegate
    extends Type
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private NativeType nativeType  
      private com.kenai.jffi.Type type  
    • Constructor Summary

      Constructors 
      Constructor Description
      TypeDelegate​(com.kenai.jffi.Type type, NativeType nativeType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int alignment()
      The native alignment of this type, in bytes
      NativeType getNativeType()
      The native type of this type
      int size()
      The size in bytes of this type.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • type

        private final com.kenai.jffi.Type type
    • Constructor Detail

      • TypeDelegate

        public TypeDelegate​(com.kenai.jffi.Type type,
                            NativeType nativeType)
    • Method Detail

      • alignment

        public int alignment()
        Description copied from class: Type
        The native alignment of this type, in bytes
        Specified by:
        alignment in class Type
        Returns:
        An integer
      • size

        public int size()
        Description copied from class: Type
        The size in bytes of this type.
        Specified by:
        size in class Type
        Returns:
        An integer
      • getNativeType

        public NativeType getNativeType()
        Description copied from class: Type
        The native type of this type
        Specified by:
        getNativeType in class Type
        Returns:
        the native type of this type
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object