JNA API 3.4.0
com.sun.jna

Class PointerType

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object o)
      Instances of PointerType with identical pointers compare equal by default.
      java.lang.Object fromNative(java.lang.Object nativeValue, FromNativeContext context)
      The default implementation simply creates a new instance of the class and assigns its pointer field.
      Pointer getPointer()
      Returns the associated native Pointer.
      int hashCode()
      The hash code for a PointerType is the same as that for its pointer.
      java.lang.Class nativeType()
      All PointerType classes represent a native Pointer.
      void setPointer(Pointer p) 
      java.lang.Object toNative()
      Convert this object to its native type (a Pointer).
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • nativeType

        public java.lang.Class nativeType()
        All PointerType classes represent a native Pointer.
        Specified by:
        nativeType in interface NativeMapped
      • toNative

        public java.lang.Object toNative()
        Convert this object to its native type (a Pointer).
        Specified by:
        toNative in interface NativeMapped
      • getPointer

        public Pointer getPointer()
        Returns the associated native Pointer.
      • setPointer

        public void setPointer(Pointer p)
      • fromNative

        public java.lang.Object fromNative(java.lang.Object nativeValue,
                                  FromNativeContext context)
        The default implementation simply creates a new instance of the class and assigns its pointer field. Override if you need different behavior, such as ensuring a single PointerType instance for each unique Pointer value, or instantiating a different PointerType subclass.
        Specified by:
        fromNative in interface NativeMapped
      • hashCode

        public int hashCode()
        The hash code for a PointerType is the same as that for its pointer.
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals(java.lang.Object o)
        Instances of PointerType with identical pointers compare equal by default.
        Overrides:
        equals in class java.lang.Object
      • toString

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

Copyright © 2007-2010 Timothy Wall. All Rights Reserved.