com.jniwrapper.win32.com.impl
Class IUnknownImpl

java.lang.Object
  extended bycom.jniwrapper.Parameter
      extended bycom.jniwrapper.win32.com.impl.IUnknownImpl
All Implemented Interfaces:
AutoDeleteParameter, IUnknown, PointerParameter
Direct Known Subclasses:
IAdviseSinkImpl, IBindCtxImpl, IClassFactoryImpl, IConnectionPointContainerImpl, IConnectionPointImpl, IContinueCallbackImpl, ICreateErrorInfoImpl, IDataObjectImpl, IDispatchImpl, IDocHostUIHandler2Impl, IDocHostUIHandlerImpl, IDropSourceImpl, IDropTargetImpl, IEnumConnectionPointsImpl, IEnumConnectionsImpl, IEnumFormatEtcImpl, IEnumMonikerImpl, IEnumOleDocumentViewsImpl, IEnumOleVerbImpl, IEnumStatDataImpl, IEnumStatStgImpl, IEnumStringImpl, IEnumUnknownImpl, IEnumVariantImpl, IErrorInfoImpl, IInPlacePrintPreviewImpl, ILockBytesImpl, IMallocImpl, IMessageFilterImpl, IObjectSafetyImpl, IObjectWithSiteImpl, IOleCacheImpl, IOleClientSiteImpl, IOleCommandTargetImpl, IOleControlImpl, IOleControlSiteImpl, IOleDocumentImpl, IOleDocumentSiteImpl, IOleDocumentViewImpl, IOleLinkImpl, IOleObjectImpl, IOleWindowImpl, IParseDisplayNameImpl, IPersistImpl, IPreviewCallbackImpl, IPrintImpl, IPropertyNotifySinkImpl, IProvideClassInfoImpl, IRecordInfoImpl, IRootStorageImpl, IRunningObjectTableImpl, ISequentialStreamImpl, IServiceProviderImpl, IStorageImpl, ISupportErrorInfoImpl, ITypeCompImpl, ITypeInfoImpl, ITypeLibImpl, IViewObjectImpl

public class IUnknownImpl
extends Parameter
implements IUnknown, AutoDeleteParameter, PointerParameter

Class IUnknownImpl is an implementation of the IUnknown interface.


Nested Class Summary
static class IUnknownImpl.MemoryBufferImpl
           
 
Field Summary
static boolean DebugComfyJ
          Specifies whether to debug ComfyJ.
static java.lang.String INTERFACE_IDENTIFIER
           
protected static java.lang.String LICENSE_TYPE
           
protected static Pointer.Void PTR_NULL
           
 
Fields inherited from class com.jniwrapper.Parameter
V
 
Constructor Summary
  IUnknownImpl()
           
  IUnknownImpl(CLSID clsid, ClsCtx dwClsContext)
           
  IUnknownImpl(CLSID clsid, IUnknown pUnkOuter, ClsCtx dwClsContext)
           
  IUnknownImpl(IUnknown that)
           
protected IUnknownImpl(IUnknownImpl that)
           
  IUnknownImpl(Pointer.Void interfacePointer)
          Constructor that creates an object from the pointer.
 
Method Summary
 void acceptIOPerformer(IOPerformer performer, DataBuffer buffer, int initialOffset, boolean isReadOperation, boolean invokedByCallback)
           
 ULongInt addRef()
          Increments the reference count for an interface on an object.
 void asVoidPointer(Pointer.Void target)
           
 java.lang.Object clone()
           
 void dumpVTBL()
           
 boolean equals(java.lang.Object o)
           
 void fromVoidPointer(Pointer.Void source)
           
 java.lang.String getDebugInfo()
           
 IID getIID()
           
 java.lang.String getInterfaceIdentifier()
           
 int getLength()
           
 int hashCode()
           
protected  HResult invokeStandardVirtualMethod(int funcIndex, byte callingConvension)
           
protected  HResult invokeStandardVirtualMethod(int funcIndex, byte callingConvension, Parameter p1)
           
 HResult invokeStandardVirtualMethod(int funcIndex, byte callingConvension, Parameter[] parameters)
          Invokes the method of the COM object specified by the funcIndex parameter.
 HResult invokeStandardVirtualMethod(int funcIndex, byte callingConvension, Parameter[] parameters, boolean nothrow)
          Invokes the method of the COM object specified by the funcIndex parameter.
protected  HResult invokeStandardVirtualMethod(int funcIndex, byte callingConvension, Parameter p1, Parameter p2)
           
protected  HResult invokeStandardVirtualMethod(int funcIndex, byte callingConvension, Parameter p1, Parameter p2, Parameter p3)
           
protected  HResult invokeStandardVirtualMethod(int funcIndex, byte callingConvension, Parameter p1, Parameter p2, Parameter p3, Parameter p4)
           
protected  void invokeVirtualMethod(int funcIndex, byte callingConvension, Parameter returnValue)
           
protected  void invokeVirtualMethod(int funcIndex, byte callingConvension, Parameter returnValue, Parameter p1)
           
protected  void invokeVirtualMethod(int funcIndex, byte callingConvension, Parameter returnValue, Parameter[] parameters)
           
protected  void invokeVirtualMethod(int funcIndex, byte callingConvension, Parameter returnValue, Parameter p1, Parameter p2)
           
protected  void invokeVirtualMethod(int funcIndex, byte callingConvension, Parameter returnValue, Parameter p1, Parameter p2, Parameter p3)
           
protected  void invokeVirtualMethod(int funcIndex, byte callingConvension, Parameter returnValue, Parameter p1, Parameter p2, Parameter p3, Parameter p4)
           
 boolean isAutoDelete()
           
 boolean isNull()
           
static boolean isSameObject(IUnknown itf1, IUnknown itf2)
          Returns true if two interface pointers point to the same object else returns false
 void queryInterface(IID iid, IUnknown pReqInterface)
          Retrieves pointers to the supported interfaces on an object.
 void queryInterface(IUnknown pReqInterface)
           
 void read(DataBuffer stackBuffer, int offset, boolean invokedByCallback)
           
 ULongInt release()
          Decrements the reference count for an interface on an object.
 void setAutoDelete(boolean autoDelete)
           
 void setNull()
           
 void setValue(IUnknown newValue)
          Sets this interface pointer to the specified unknown pointer.
 void write(DataBuffer stackBuffer, int offset, boolean invokedByCallback)
           
 
Methods inherited from class com.jniwrapper.Parameter
, a, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, indent, pop, push, read, read, setDataBuffer, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LICENSE_TYPE

protected static final java.lang.String LICENSE_TYPE

DebugComfyJ

public static boolean DebugComfyJ
Specifies whether to debug ComfyJ. In debug mode ComfyJ prints a complete stack trace if any error occurs during release of a Java COM wrapper.
This option can be also turned on at startup by specifying 'teamdev.comfyj.debug=true' VM parameter.


PTR_NULL

protected static Pointer.Void PTR_NULL

INTERFACE_IDENTIFIER

public static final java.lang.String INTERFACE_IDENTIFIER
See Also:
Constant Field Values
Constructor Detail

IUnknownImpl

public IUnknownImpl()

IUnknownImpl

protected IUnknownImpl(IUnknownImpl that)
                throws ComException

IUnknownImpl

public IUnknownImpl(IUnknown that)

IUnknownImpl

public IUnknownImpl(CLSID clsid,
                    ClsCtx dwClsContext)
             throws ComException

IUnknownImpl

public IUnknownImpl(CLSID clsid,
                    IUnknown pUnkOuter,
                    ClsCtx dwClsContext)
             throws ComException

IUnknownImpl

public IUnknownImpl(Pointer.Void interfacePointer)
Constructor that creates an object from the pointer.

Parameters:
interfacePointer - pointer to interface
Since:
3.0
Method Detail

isNull

public boolean isNull()
Specified by:
isNull in interface IUnknown

setNull

public void setNull()
Specified by:
setNull in interface IUnknown

write

public void write(DataBuffer stackBuffer,
                  int offset,
                  boolean invokedByCallback)
           throws MemoryAccessViolationException
Throws:
MemoryAccessViolationException

read

public void read(DataBuffer stackBuffer,
                 int offset,
                 boolean invokedByCallback)
          throws MemoryAccessViolationException
Throws:
MemoryAccessViolationException

fromVoidPointer

public void fromVoidPointer(Pointer.Void source)

setValue

public void setValue(IUnknown newValue)
Sets this interface pointer to the specified unknown pointer.

Parameters:
newValue - new pointer value

asVoidPointer

public void asVoidPointer(Pointer.Void target)

acceptIOPerformer

public void acceptIOPerformer(IOPerformer performer,
                              DataBuffer buffer,
                              int initialOffset,
                              boolean isReadOperation,
                              boolean invokedByCallback)

getLength

public int getLength()

isAutoDelete

public boolean isAutoDelete()
Specified by:
isAutoDelete in interface AutoDeleteParameter

setAutoDelete

public void setAutoDelete(boolean autoDelete)
Specified by:
setAutoDelete in interface AutoDeleteParameter

dumpVTBL

public void dumpVTBL()

isSameObject

public static boolean isSameObject(IUnknown itf1,
                                   IUnknown itf2)
Returns true if two interface pointers point to the same object else returns false

Parameters:
itf1 - interface pointer
itf2 - interface pointer
Returns:
true if two interface pointers point to the same object else returns false

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

queryInterface

public final void queryInterface(IUnknown pReqInterface)
                          throws ComException
Throws:
ComException

queryInterface

public final void queryInterface(IID iid,
                                 IUnknown pReqInterface)
                          throws ComException
Description copied from interface: IUnknown
Retrieves pointers to the supported interfaces on an object.

Specified by:
queryInterface in interface IUnknown
Parameters:
iid - [in]
pReqInterface - [out]
Throws:
ComException - if the interface is not supported

addRef

public final ULongInt addRef()
Description copied from interface: IUnknown
Increments the reference count for an interface on an object.

Specified by:
addRef in interface IUnknown
Returns:
new reference count. This value is intended to be used only for test purposes.

release

public final ULongInt release()
Description copied from interface: IUnknown
Decrements the reference count for an interface on an object.

Specified by:
release in interface IUnknown
Returns:
new reference count. This value is intended to be used only for test purposes.

getIID

public IID getIID()

clone

public java.lang.Object clone()

getInterfaceIdentifier

public final java.lang.String getInterfaceIdentifier()

invokeVirtualMethod

protected final void invokeVirtualMethod(int funcIndex,
                                         byte callingConvension,
                                         Parameter returnValue,
                                         Parameter[] parameters)

invokeVirtualMethod

protected final void invokeVirtualMethod(int funcIndex,
                                         byte callingConvension,
                                         Parameter returnValue)

invokeVirtualMethod

protected final void invokeVirtualMethod(int funcIndex,
                                         byte callingConvension,
                                         Parameter returnValue,
                                         Parameter p1)

invokeVirtualMethod

protected final void invokeVirtualMethod(int funcIndex,
                                         byte callingConvension,
                                         Parameter returnValue,
                                         Parameter p1,
                                         Parameter p2)

invokeVirtualMethod

protected final void invokeVirtualMethod(int funcIndex,
                                         byte callingConvension,
                                         Parameter returnValue,
                                         Parameter p1,
                                         Parameter p2,
                                         Parameter p3)

invokeVirtualMethod

protected final void invokeVirtualMethod(int funcIndex,
                                         byte callingConvension,
                                         Parameter returnValue,
                                         Parameter p1,
                                         Parameter p2,
                                         Parameter p3,
                                         Parameter p4)

invokeStandardVirtualMethod

public final HResult invokeStandardVirtualMethod(int funcIndex,
                                                 byte callingConvension,
                                                 Parameter[] parameters)
                                          throws ComException
Invokes the method of the COM object specified by the funcIndex parameter.

Parameters:
funcIndex - is an index of the method in VTBL.
callingConvension - is a calling convention.
parameters - are parameters of the method.
Throws:
ComException

invokeStandardVirtualMethod

public final HResult invokeStandardVirtualMethod(int funcIndex,
                                                 byte callingConvension,
                                                 Parameter[] parameters,
                                                 boolean nothrow)
Invokes the method of the COM object specified by the funcIndex parameter.

Parameters:
funcIndex - is an index of the method in VTBL.
callingConvension - is a calling convention.
parameters - are parameters of the method.
nothrow - do not throw a ComException

invokeStandardVirtualMethod

protected final HResult invokeStandardVirtualMethod(int funcIndex,
                                                    byte callingConvension)
                                             throws ComException
Throws:
ComException

invokeStandardVirtualMethod

protected final HResult invokeStandardVirtualMethod(int funcIndex,
                                                    byte callingConvension,
                                                    Parameter p1)
                                             throws ComException
Throws:
ComException

invokeStandardVirtualMethod

protected final HResult invokeStandardVirtualMethod(int funcIndex,
                                                    byte callingConvension,
                                                    Parameter p1,
                                                    Parameter p2)
                                             throws ComException
Throws:
ComException

invokeStandardVirtualMethod

protected final HResult invokeStandardVirtualMethod(int funcIndex,
                                                    byte callingConvension,
                                                    Parameter p1,
                                                    Parameter p2,
                                                    Parameter p3)
                                             throws ComException
Throws:
ComException

invokeStandardVirtualMethod

protected final HResult invokeStandardVirtualMethod(int funcIndex,
                                                    byte callingConvension,
                                                    Parameter p1,
                                                    Parameter p2,
                                                    Parameter p3,
                                                    Parameter p4)
                                             throws ComException
Throws:
ComException

getDebugInfo

public java.lang.String getDebugInfo()