org.boris.xlloop.util
Class XLoperObjectConverter

java.lang.Object
  extended by org.boris.xlloop.util.XLoperObjectConverter

public class XLoperObjectConverter
extends java.lang.Object

Used to map arguments to objects.


Field Summary
static java.lang.Double DZERO
           
static java.lang.Integer IZERO
           
static java.lang.Long LZERO
           
 
Constructor Summary
XLoperObjectConverter()
           
 
Method Summary
 void clearRegistry()
          Clear out the internal registry to release memory.
 java.lang.Object[] convert(XLoper[] args, java.lang.Class[] hints)
           
 XLoper createFrom(java.lang.Object obj)
          Creates an Variant from a java object (best attempt).
 java.lang.Object createFrom(XLoper obj, java.lang.Class hint)
          Creates a java object from an XLObject.
 int getRegistrySize()
          Get the size of the registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IZERO

public static final java.lang.Integer IZERO

DZERO

public static final java.lang.Double DZERO

LZERO

public static final java.lang.Long LZERO
Constructor Detail

XLoperObjectConverter

public XLoperObjectConverter()
Method Detail

clearRegistry

public void clearRegistry()
Clear out the internal registry to release memory.


getRegistrySize

public int getRegistrySize()
Get the size of the registry.

Returns:
int.

createFrom

public XLoper createFrom(java.lang.Object obj)
Creates an Variant from a java object (best attempt).

Parameters:
obj. -
Returns:
XLObject.

createFrom

public java.lang.Object createFrom(XLoper obj,
                                   java.lang.Class hint)
Creates a java object from an XLObject.

Parameters:
obj. -
hint. -
Returns:
Object.

convert

public java.lang.Object[] convert(XLoper[] args,
                                  java.lang.Class[] hints)