gov.llnl.sidl

Class BaseClass

Implemented Interfaces:
BaseInterface

public abstract class BaseClass
extends RuntimeException
implements BaseInterface

Class BaseClass is the base class for all sidl Java classes in the run-time system. This class provides support for dymaic loading, Java JNI name registration, and reference counting.

Field Summary

protected long
d_ior

Constructor Summary

BaseClass(long ior)
Construct a BaseClass object and initialize the IOR reference to point to a valid sidl IOR structure.

Method Summary

BaseInterface
_cast2(String name)
Cast this object to the specified sidl name.
long
_cast_ior(String name)
Cast this object to the specified type and return the IOR pointer.
String
_getURL()
Returns the URL of this object
long
_get_ior()
Retrieve a reference to the sidl IOR structure.
boolean
_isLocal()
Returns true if this object is locally implemented, false otherwise
boolean
_isRemote()
Returns true if this object is remotely implemented, false otherwise
static void
_registerNatives(String sidl_symbol)
Register native functions for the sidl interface or class specified in the argument.
protected void
finalize()
The finalizer of this method decreases the IOR reference count to this Java object and then calls other finalizers in the chain.

Field Details

d_ior

protected long d_ior

Constructor Details

BaseClass

protected BaseClass(long ior)
Construct a BaseClass object and initialize the IOR reference to point to a valid sidl IOR structure.

Method Details

_cast2

public final BaseInterface _cast2(String name)
Cast this object to the specified sidl name. If the cast is invalid, then return null. If the cast is successful, then the returned object can be cast to the proper Java type using a standard Java cast.
Specified by:
_cast2 in interface BaseInterface

_cast_ior

public final long _cast_ior(String name)
Cast this object to the specified type and return the IOR pointer.

_getURL

public final String _getURL()
Returns the URL of this object
Specified by:
_getURL in interface BaseInterface

_get_ior

public final long _get_ior()
Retrieve a reference to the sidl IOR structure.
Specified by:
_get_ior in interface BaseInterface

_isLocal

public final boolean _isLocal()
Returns true if this object is locally implemented, false otherwise
Specified by:
_isLocal in interface BaseInterface

_isRemote

public final boolean _isRemote()
Returns true if this object is remotely implemented, false otherwise
Specified by:
_isRemote in interface BaseInterface

_registerNatives

public static void _registerNatives(String sidl_symbol)
Register native functions for the sidl interface or class specified in the argument. This method must be called before any native method is called on the Java object representing the sidl symbol.

finalize

protected void finalize()
            throws Throwable
The finalizer of this method decreases the IOR reference count to this Java object and then calls other finalizers in the chain.